/* ===================================================================
   DROOM DAZLEAN SOLUTIONS - RESPONSIVE CSS
   Optimized for mobile-first design with perfect dropdown functionality
   =================================================================== */

/* ==================== ROOT VARIABLES ==================== */
:root {
    --primary-blue: #00008B;
    --dark-blue: #000066;
    --sky-blue: #87CEEB;
    --light-sky: #B0E0E6;
    --pure-white: #FFFFFF;
    --off-white: #F8F9FA;
    --pure-black: #000000;
    --dark-gray: #212529;
    --medium-gray: #6C757D;
    --light-gray: #E9ECEF;
    --success: #28A745;
    --warning: #FFC107;
    --danger: #DC3545;
    --navbar-height: 77px;
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    overflow-x: hidden;
    background: var(--pure-white);
}
boady.loading{overflow:hidden;}
modal.fade{transition: opacity 1s ease;}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.skip-to-main {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==================== NAVIGATION ==================== */
.navbar {
    background: var(--pure-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: bold;
    color: var(--primary-blue);
    z-index: 1002;
}

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
}

/* Desktop Navigation */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 600;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue);
}

.dropdown-icon,
.sub-dropdown-icon {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

/* Desktop Dropdowns - Click-based */
.dropdown-menu,
.sub-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--pure-white);
    min-width: 240px;
    max-width: 280px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
    border-radius: 12px;
    border: 1px solid var(--light-gray);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1002;
    padding: 8px 0;
    list-style: none;
    pointer-events: none;
}

.sub-dropdown-menu {
    display: none; /* Sub-dropdowns never show in desktop, use modals instead */
}

/* Show dropdown when active (clicked) */
.nav-item.active > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: all;
}

/* Intelligent positioning to prevent overflow */
.dropdown-menu.flip-horizontal {
    left: auto;
    right: 0;
}

.nav-item:hover > .dropdown-menu {
    /* Removed hover - using click instead */
}

.dropdown-item:hover > .sub-dropdown-menu,
.dropdown-item.hover > .sub-dropdown-menu {
    /* Removed hover - using modals instead */
}

.dropdown-item {
    padding: 0;
    position: relative;
}

.dropdown-item > a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 4px 8px;
}

.dropdown-item > a:hover {
    background: linear-gradient(135deg, var(--sky-blue), var(--light-sky));
    color: var(--dark-blue);
    transform: translateX(8px);
    box-shadow: 0 6px 20px rgba(135, 206, 235, 0.3);
}

.dropdown-item > a i {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1002;
    background: none;
    border: none;
    padding: 5px;
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background: var(--primary-blue);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ==================== HERO SECTION ==================== */
.hero {
    margin-top: var(--navbar-height);
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: url('/assets/bg1.webp') center/cover no-repeat;
    transition: background-image 1s ease-in-out;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 139, 0.5), rgba(0, 0, 102, 0.95));
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--pure-white);
    padding: 2rem;
    max-width: 900px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==================== BUTTONS ==================== */
.btn {
    padding: 14px 35px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--sky-blue);
    color: var(--dark-blue);
    border: 2px solid var(--sky-blue);
}

.btn-primary:hover {
    background: var(--light-sky);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(135, 206, 235, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--pure-white);
    border: 2px solid var(--pure-white);
}

.btn-secondary:hover {
    background: var(--pure-white);
    color: var(--primary-blue);
    transform: translateY(-3px);
}

.btn-light {
    background: var(--pure-white);
    color: var(--primary-blue);
    border: 2px solid var(--pure-white);
}

.btn-light:hover {
    background: var(--off-white);
    transform: translateY(-3px);
}

/* ==================== SECTIONS ==================== */
.stats {
    background: var(--primary-blue);
    color: var(--pure-white);
    padding: 5rem 0;
}

.wave-bg {
    background: var(--dark-blue);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-item i {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--sky-blue);
}

.stat-item h3 {
    font-size: 3.5rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.stat-item p {
    font-size: 1.15rem;
    color: var(--light-sky);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
    color: var(--dark-blue);
    font-weight: 700;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--medium-gray);
    max-width: 650px;
    margin: 0 auto;
}

.services-preview,
.portfolio,
.testimonials {
    padding: 5rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.service-card {
    background: var(--pure-white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    text-align: center;
    border: 2px solid var(--light-gray);
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 40px rgba(0, 0, 139, 0.2);
    border-color: var(--sky-blue);
}

.service-card i {
    font-size: 3.5rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    color: var(--dark-blue);
    font-weight: 700;
}

.service-card p {
    color: var(--medium-gray);
    line-height: 1.8;
}

.text-center {
    text-align: center;
}

/* ==================== PORTFOLIO ==================== */
.portfolio {
    background: var(--off-white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2.5rem;
}

.portfolio-item {
    position: relative;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    height: 500px;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 139, 0.95), rgba(0, 0, 102, 0.95));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2.5rem;
    opacity: 0;
    transition: opacity 0.4s ease;
    text-align: center;
    color: var(--pure-white);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover img {
    transform: scale(1.15);
}

.portfolio-overlay h3 {
    font-size: 2rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.portfolio-overlay p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.portfolio-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.portfolio-tags span {
    background: var(--sky-blue);
    color: var(--dark-blue);
    padding: 6px 18px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
}

/* ==================== TESTIMONIALS ==================== */
.testimonials {
    background: var(--off-white);
}

.testimonials-slider {
    position: relative;
    max-width: 850px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--pure-white);
    padding: 3.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    display: none;
    border: 2px solid var(--light-gray);
}

.testimonial-card.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.stars {
    color: #FFC107;
    font-size: 1.6rem;
    margin-bottom: 1.8rem;
}

.testimonial-card p {
    font-size: 1.25rem;
    line-height: 1.9;
    color: var(--medium-gray);
    margin-bottom: 2.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.author-avatar {
    width: 65px;
    height: 65px;
    background: var(--primary-blue);
    color: var(--pure-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: bold;
}

.testimonial-author h4 {
    color: var(--dark-blue);
    margin-bottom: 0.3rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.testimonial-author span {
    color: var(--medium-gray);
    font-size: 0.95rem;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.slider-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: none;
    background: var(--primary-blue);
    color: var(--pure-white);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.3rem;
}

.slider-btn:hover {
    background: var(--dark-blue);
    transform: scale(1.15);
}

/* ==================== CTA ==================== */
.cta {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: var(--pure-white);
    text-align: center;
    padding: 6rem 0;
}

.cta h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.cta p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: var(--light-sky);
}

/* ==================== FOOTER ==================== */
footer {
    background: var(--dark-gray);
    color: var(--pure-white);
    padding: 5rem 0 2rem;
}

/* ==================== MODAL SYSTEM ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.dropdown-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--pure-white);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    max-width: 420px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dropdown-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: var(--pure-white);
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--sky-blue);
}

.modal-header-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.modal-logo {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    object-fit: contain;
    background: var(--pure-white);
    padding: 4px;
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--pure-white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 1.2rem;
    max-height: calc(85vh - 80px);
    overflow-y: auto;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--dark-blue);
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.modal-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--off-white);
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 600;
    font-size: 0.95rem;
}

.modal-btn:hover {
    background: linear-gradient(135deg, var(--sky-blue), var(--light-sky));
    border-color: var(--primary-blue);
    color: var(--dark-blue);
    transform: translateX(6px);
    box-shadow: 0 4px 12px rgba(0, 0, 139, 0.2);
}

.modal-btn-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-btn i {
    font-size: 1.1rem;
    opacity: 0.8;
}

.modal-btn .chevron {
    color: var(--primary-blue);
    font-size: 0.9rem;
}

.modal-btn.has-children {
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.1), rgba(176, 224, 230, 0.1));
    border-color: var(--sky-blue);
}

.modal-btn.has-children:hover {
    background: linear-gradient(135deg, var(--sky-blue), var(--light-sky));
}

/* Back button */
.modal-back-btn {
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
}

.modal-back-btn:hover {
    background: var(--primary-blue);
    color: var(--pure-white);
    transform: translateX(-6px);
}

/* Mobile modal adjustments */
@media (max-width: 768px) {
    .dropdown-modal {
        max-width: 95%;
        max-height: 80vh;
    }
    
    .modal-title {
        font-size: 1rem;
    }
    
    .modal-logo {
        width: 32px;
        height: 32px;
    }
    
    .modal-btn {
        font-size: 0.9rem;
        padding: 0.7rem 0.9rem;
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.2rem;
}

.footer-logo img {
    height: 45px;
    width: auto;
    border-radius: 8px;
}

.footer-col h4 {
    margin-bottom: 1.8rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 1rem;
}

.footer-col ul li a {
    color: var(--light-sky);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--sky-blue);
}

.contact-info ul {
    list-style: none;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--light-sky);
    margin-bottom: 1rem;
}

.contact-info i {
    color: var(--sky-blue);
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    gap: 1.2rem;
    margin-top: 1.2rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: var(--primary-blue);
    color: var(--pure-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--sky-blue);
    color: var(--dark-blue);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 2px solid rgba(135, 206, 235, 0.2);
}

.footer-bottom p {
    color: var(--light-sky);
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeInUp 1s ease;
}

.fade-in-delay {
    animation: fadeInUp 1s ease 0.3s both;
}

.fade-in-delay-2 {
    animation: fadeInUp 1s ease 0.6s both;
}

/* ==================== MOBILE RESPONSIVE ==================== */
@media (max-width: 768px) {
    /* Mobile Navigation */
    .nav-toggle {
        display: flex;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .logo span {
        max-width: 150px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--navbar-height);
        flex-direction: column;
        background: var(--dark-blue);
        width: 100%;
        text-align: left;
        transition: left 0.3s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        padding: 1.5rem 0;
        overflow-y: auto;
        max-height: calc(100vh - var(--navbar-height));
        gap: 0;
        align-items: stretch;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-link {
        color: var(--pure-white) !important;
        padding: 18px 24px;
            }
    
    .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .dropdown-icon,
    .sub-dropdown-icon {
        color: var(--sky-blue);
    }
    
    /* Mobile Dropdowns */
    .dropdown-menu,
    .sub-dropdown-menu {
        position: static;
        background: rgba(0, 0, 139, 0.95);
        box-shadow: none;
        border: none;
        border-radius: 0;
        margin: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 0;
    }
    
    .has-dropdown.active > .dropdown-menu,
    .has-sub-dropdown.active > .sub-dropdown-menu {
        max-height: 800px;
        padding: 12px 0;
    }
    
    .has-dropdown.active > .nav-link .dropdown-icon,
    .has-sub-dropdown.active > .nav-link .sub-dropdown-icon {
        transform: rotate(180deg);
    }
    
    .dropdown-item > a {
        padding: 16px 24px;
        margin: 0;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        color: var(--pure-white);
    }
    
    .dropdown-item > a:hover {
        background: rgba(135, 206, 235, 0.2);
        transform: translateX(8px);
    }
    
    .has-sub-dropdown > .nav-link {
        position: relative;
        padding-right: 50px;
    }
    
    .sub-dropdown-icon {
        position: absolute;
        right: 24px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .has-sub-dropdown.active > .nav-link .sub-dropdown-icon {
        transform: translateY(-50%) rotate(90deg);
    }
    
    /* Hero Section Mobile */
    .hero {
        min-height: 500px;
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Sections Mobile */
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .section-header p {
        font-size: 1.1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-item {
        height: 500px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .stat-item h3 {
        font-size: 2.5rem;
    }
    
    .testimonial-card {
        padding: 2rem;
    }
    
    .testimonial-card p {
        font-size: 1.1rem;
    }
    
    .cta h2 {
        font-size: 2.2rem;
    }
    
    .cta p {
        font-size: 1.1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .contact-info li {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1rem;
    }
    
    .logo img {
        height: 40px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
}

  /* Floating WhatsApp Button */
        .whatsapp-float {
            position: fixed;
            width: 60px;
            height: 60px;
            bottom: 30px;
            right: 30px;
            background-color: #25d366;
            color: #FFF;
            border-radius: 50px;
            text-align: center;
            font-size: 30px;
            box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
            z-index: 1000;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            animation: pulse 2s infinite;
text-decoration:none;
        }
        
        .whatsapp-float:hover {
            transform: scale(1.1);
            box-shadow: 2px 2px 20px rgba(37, 211, 102, 0.6);
        }
        
        @keyframes pulse {
            0% {
                box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
            }
            70% {
                box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
            }
            100% {
                box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
            }
        }
        
        /* Modal Styles */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            z-index: 2000;
            animation: fadeIn 0.3s ease;
        }
        
        .modal-overlay.show {
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .modal-content {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            padding: 40px;
            border-radius: 15px;
            max-width: 500px;
            width: 90%;
            color: white;
            text-align: center;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            animation: slideIn 0.4s ease;
            position: relative;
        }
        
        .modal-close {
            position: absolute;
            top: 15px;
            right: 20px;
            font-size: 28px;
            color: white;
            cursor: pointer;
            background: none;
            border: none;
            transition: transform 0.2s;
        }
        .modal-overlay.show,
.modal-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

        .modal-close:hover {
            transform: rotate(90deg);
        }
        
        .modal-content h2 {
            margin-bottom: 15px;
            font-size: 28px;
        }
        
        .modal-content p {
            margin-bottom: 25px;
            font-size: 16px;
            line-height: 1.6;
        }
        
        .modal-content .btn {
            display: inline-block;
            padding: 12px 30px;
            background-color: #25d366;
            color: white;
            text-decoration: none;
            border-radius: 50px;
            font-weight: 600;
            transition: all 0.3s ease;
            margin: 5px;
        }
        
        .modal-content .btn:hover {
            background-color: #128c7e;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        }
        
        .modal-content .btn-secondary {
            background-color: #1877f2;
        }
        
        .modal-content .btn-secondary:hover {
            background-color: #145dbf;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        @keyframes slideIn {
            from {
                transform: translateY(-50px);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }
        
        /* Portfolio Filter */
        .portfolio-filter {
            text-align: center;
            margin-bottom: 50px;
        }
        
        .filter-btn {
            background: none;
            border: 2px solid #667eea;
            color: #667eea;
            padding: 10px 25px;
            margin: 5px;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 600;
        }
        
        .filter-btn:hover,
        .filter-btn.active {
            background-color: #667eea;
            color: white;
        }
        
        /* Portfolio Grid */
        .portfolio-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 30px;
            margin-bottom: 50px;
        }
        
        .portfolio-item {
            background: white;
            border-radius: 15px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            animation: fadeInUp 0.6s ease;
        }
        
        .portfolio-item:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
        }
        
        .portfolio-image {
            width: 100%;
            height: 250px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 80px;
            color: white;
        }
        
        .portfolio-content {
            padding: 25px;
        }
        
        .portfolio-category {
            display: inline-block;
            background-color: #667eea;
            color: white;
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            margin-bottom: 10px;
        }
        
        .portfolio-content h3 {
            margin: 15px 0;
            font-size: 22px;
            color: #333;
        }
        
        .portfolio-content p {
            color: #666;
            line-height: 1.6;
            margin-bottom: 15px;
        }
        
        .portfolio-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 15px;
        }
        
        .portfolio-tag {
            background-color: #f0f0f0;
            padding: 5px 12px;
            border-radius: 15px;
            font-size: 12px;
            color: #666;
        }
        
        .portfolio-stats {
            display: flex;
            justify-content: space-around;
            padding-top: 15px;
            border-top: 1px solid #eee;
            margin-top: 15px;
        }
        
        .stat-item {
            text-align: center;
        }
        
        .stat-item .stat-number {
            font-size: 24px;
            font-weight: bold;
            color: #667eea;
        }
        
        .stat-item .stat-label {
            font-size: 12px;
            color: #999;
        }
        
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        /* Stats Section */
        .stats-section {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 80px 0;
            margin-bottom: 80px;
        }
        
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 40px;
            text-align: center;
        }
        
        .stat-box h3 {
            font-size: 48px;
            margin-bottom: 10px;
        }
        
        .stat-box p {
            font-size: 18px;
            opacity: 0.9;
        }
        
        /* Testimonials */
        .testimonials-section {
            padding: 80px 0;
            background-color: #f8f9fa;
        }
        
        .testimonials-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 30px;
            margin-top: 50px;
        }
        
        .testimonial-card {
            background: white;
            padding: 30px;
            border-radius: 15px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        }
        
        .testimonial-header {
            display: flex;
            align-items: center;
            margin-bottom: 20px;
        }
        
        .testimonial-avatar {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 24px;
            font-weight: bold;
            margin-right: 15px;
        }
        
        .testimonial-info h4 {
            margin: 0 0 5px 0;
            color: #333;
        }
        
        .testimonial-info p {
            margin: 0;
            color: #999;
            font-size: 14px;
        }
        
        .testimonial-text {
            color: #666;
            line-height: 1.6;
            font-style: italic;
        }
        
        .testimonial-rating {
            color: #ffc107;
            margin-top: 15px;
        }
        
        @media (max-width: 768px) {
            .portfolio-grid {
                grid-template-columns: 1fr;
            }
            
            .whatsapp-float {
                width: 50px;
                height: 50px;
                font-size: 24px;
                bottom: 20px;
                right: 20px;text-decoration:none;
            }
            
            .modal-content {
                padding: 30px 20px;
            }
            
            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }




