:root {
            --primary: #25327b;
            --secondary: #1a1f4b;
            --accent: #c9a227;
            --accent-hover: #b8921f;
            --light: #f0f2f8;
            --dark: #0f1229;
            --text: #2d3142;
            --text-light: #5a5f73;
            --white: #ffffff;
            --border: #d8dce8;
            --shadow: 0 4px 20px rgba(37,50,123,0.08);
            --shadow-lg: 0 10px 40px rgba(37,50,123,0.12);
        }
        /* Tells the browser to use system fonts until the custom web font finishes downloading */
@font-face {
    font-family: 'Font Awesome 6 Free';
    font-display: swap;
}
@font-face {
    font-family: 'Font Awesome 6 Brands';
    font-display: swap;
}


        * { margin: 0; padding: 0; box-sizing: border-box; }
        
/* Global sizing fix */
*, *::before, *::after {
    box-sizing: border-box;
}

img, video {
    max-width: 100%;
    height: auto;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}
        body {
            font-family: 'Inter', sans-serif;
            color: var(--text);
            line-height: 1.6;
            overflow-x: hidden;
            min-height: 3000px !important;
        }
        
/* Core layout safety */
*, *::before, *::after {
    box-sizing: border-box;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

body {
    margin: 0;
         overscroll-behavior-x: none;
        }
        /* ===== RESET / BASE FIXES ===== */
         *, *::before, *::after {
         box-sizing: border-box;
        }

        img, video {
            max-width: 100%;
            height: auto;
            display: block;
        }

        h1, h2, h3, h4 { font-family: 'Playfair Display', serif; font-weight: 600; }

        /* Utility */
        .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
        .btn {
            display: inline-block;
            padding: 14px 32px;
            border-radius: 6px;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.3s ease;
            cursor: pointer;
            border: none;
            font-size: 1rem;
        }
        .btn-primary {
            background: var(--accent);
            color: var(--white);
        }
        .btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
        .btn-outline {
            background: transparent;
            color: var(--white);
            border: 2px solid var(--white);
        }
        .btn-outline:hover { background: var(--white); color: var(--primary); }
        .btn-dark {
            background: var(--primary);
            color: var(--white);
        }
        .btn-dark:hover { background: var(--secondary); }

        .section-padding { padding: 100px 0; }
        .text-center { text-align: center; }

        /* Top Bar */
        .top-bar {
            background: var(--dark);
            color: var(--white);
            padding: 10px 0;
            font-size: 0.9rem;
        }
        .top-bar .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .top-bar a { color: var(--accent); text-decoration: none; font-weight: 600; }
        .top-bar i { margin-right: 6px; }

        /* Header */
        header {
            background: var(--white);
            box-shadow: var(--shadow);
            position: sticky;
            top: 0;
            z-index: 1000;
        }
        nav .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 90px;
        }
        .logo {
            display: flex;
            align-items: center;
            gap: 12px;
            text-decoration: none;
            margin-right: auto;
        }
        .logo img {
            height: 60px;
            width: auto;
        }
        .logo-text {
            font-family: 'Playfair Display', serif;
            font-size: 1.6rem;
            font-weight: 700;
            color: var(--primary);
            line-height: 1.2;
        }
        .logo-text span {
            display: block;
            font-family: 'Inter', sans-serif;
            font-size: 0.7rem;
            font-weight: 500;
            color: var(--text-light);
            letter-spacing: 2px;
            text-transform: uppercase;
        }
        .nav-links {
            display: flex;
            list-style: none;
            gap: 40px;
        }
        .nav-links a {
            text-decoration: none;
            color: var(--text);
            font-weight: 500;
            transition: color 0.3s;
            position: relative;
        }
        .nav-links a:hover { color: var(--primary); }
        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--accent);
            transition: width 0.3s;
        }
        .nav-links a:hover::after { width: 100%; }
        
/* MORE dropdown */
.nav-links > li.dropdown {
    position: relative;
}

/* Force dropdown menu to behave independently */
.nav-links > li.dropdown > .dropdown-menu {
    display: none !important;
    position: absolute !important;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    margin: 0;
    padding: 8px 0;
    list-style: none !important;

    /* critical overrides */
    flex: none !important;
    width: auto !important;
    gap: 0 !important;

    border-radius: 6px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
    z-index: 9999;
}

/* Show only when hovering "More" */
.nav-links > li.dropdown:hover > .dropdown-menu {
    display: block !important;
}

/* Stack dropdown items vertically */
.nav-links > li.dropdown > .dropdown-menu > li {
    display: block !important;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Dropdown links */
.nav-links > li.dropdown > .dropdown-menu > li > a {
    display: block;
    padding: 12px 20px;
    white-space: nowrap;
    color: var(--text);
    text-decoration: none;
}

/* Blue on hover */
.nav-links > li.dropdown > .dropdown-menu > li > a:hover {
    color: var(--primary);
    background: rgba(0,0,0,0.03);
}

/* Remove underline animation inside dropdown */
/* Gold underline animation for dropdown links */
.nav-links > li.dropdown > .dropdown-menu a::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 20px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-links > li.dropdown > .dropdown-menu a:hover::after {
    width: calc(100% - 40px);
}
        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: var(--primary);
        }

        /* Hero */
        .hero {
            position: relative;
            height: 90vh;
            padding-bottom: 130px; /* adjust based on stats height */
            min-height: 800px;
            display: flex;
            align-items: center;
            background: linear-gradient(135deg, rgba(37,50,123,0.95) 0%, rgba(26,31,75,0.92) 100%),
                        url('images/residentialhomepage.webp') center/cover;
            color: var(--white);
        }
        .hero-content { max-width: 600px; }
        .hero .container {
            padding-top: 0px;
        }
        .hero-badge {
            display: inline-block;
            background: rgba(201,162,39,0.2);
            border: 1px solid var(--accent);
            color: var(--accent);
            padding: 8px 20px;
            border-radius: 50px;
            font-size: 0.85rem;
            font-weight: 600;
            margin-bottom: 24px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        .hero h1 {
            font-size: 3.8rem;
            line-height: 1.1;
            margin-bottom: 20px;
            font-weight: 700;
            
        }
        .hero p {
            font-size: 1.25rem;
            margin-bottom: 40px;
            opacity: 0.9;
            line-height: 1.7;
        }
        .hero-buttons { display: flex; gap: 20px; flex-wrap: wrap; }

        .hero-stats {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(255,255,255,0.05);
            backdrop-filter: blur(10px);
            border-top: 1px solid rgba(255,255,255,0.1);
        }
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            padding: 40px 0;
        }
        .stat-item { text-align: center; border-right: 1px solid rgba(255,255,255,0.1); }
        .stat-item:last-child { border-right: none; }
        .stat-number {
            font-family: 'Playfair Display', serif;
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--accent);
            display: block;
        }
        .stat-label { font-size: 0.9rem; opacity: 0.8; text-transform: uppercase; letter-spacing: 1px; }

        /* Trust Bar */
        .trust-bar {
            background: var(--light);
            padding: 40px 0;
            border-bottom: 1px solid var(--border);
        }
        .trust-grid {
            display: flex;
            justify-content: space-around;
            align-items: center;
            flex-wrap: wrap;
            gap: 30px;
        }
        .trust-item {
            display: flex;
            align-items: center;
            gap: 12px;
            color: var(--text-light);
            font-weight: 500;
        }
        .trust-item i { color: var(--primary); font-size: 1.2rem; }

        /* Section Headers */
        .section-header { margin-bottom: 60px; }
        .section-header h2 {
            font-size: 2.8rem;
            color: var(--primary);
            margin-bottom: 16px;
        }
        .section-header p {
            font-size: 1.15rem;
            color: var(--text-light);
            max-width: 600px;
        }

        /* Services */
        .section-padding {
             padding-top: 30px;
             padding-bottom: 100px;
        }
        .services { background: var(--white); }
        .services-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 30px;
        }
        .service-card {
            background: var(--white);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 40px 30px;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        .service-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: var(--primary);
            transform: scaleX(0);
            transition: transform 0.3s;
        }
        .service-card:hover::before { transform: scaleX(1); }
        .service-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-lg);
            border-color: transparent;
        }
        .service-icon {
            width: 60px;
            height: 60px;
            background: rgba(37,50,123,0.08);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 24px;
        }
        .service-icon i { font-size: 1.5rem; color: var(--primary); }
        .service-card h3 {
            font-size: 1.4rem;
            margin-bottom: 12px;
            color: var(--primary);
        }
        .service-card p { color: var(--text-light); margin-bottom: 20px; }
        .service-link {
            color: var(--primary);
            text-decoration: none;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }
        .service-link:hover { gap: 12px; color: var(--accent); }

        /* Projects Gallery */
        .projects { background: var(--light); }
        .projects-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
        }
        .project-card {
            position: relative;
            border-radius: 12px;
            overflow: hidden;
            aspect-ratio: 4/5;
            cursor: pointer;
        }
        .project-card img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s;
        }
        .project-card:hover img { transform: scale(1.1); }
        .project-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(to top, rgba(37,50,123,0.9) 0%, transparent 60%);
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            padding: 30px;
            opacity: 0;
            transition: opacity 0.3s;
        }
        .project-card:hover .project-overlay { opacity: 1; }
        .project-overlay h4 {
            color: var(--white);
            font-size: 1.3rem;
            margin-bottom: 8px;
        }
        .project-overlay p {
            color: rgba(255,255,255,0.8);
            font-size: 0.9rem;
        }
        .project-tag {
            position: absolute;
            top: 20px;
            left: 20px;
            background: var(--accent);
            color: var(--white);
            padding: 6px 16px;
            border-radius: 50px;
            font-size: 0.8rem;
            font-weight: 600;
        }

        /* Why Choose Us */
        .why-us { background: var(--white); }
        .why-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
            align-items: center;
        }
        .why-image {
            position: relative;
            border-radius: 12px;
            overflow: hidden;
        }
        .why-image img { width: 100%; border-radius: 12px; }
        .experience-badge {
            position: absolute;
            bottom: -30px;
            right: -30px;
            background: var(--primary);
            color: var(--white);
            width: 180px;
            height: 180px;
            border-radius: 50%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            box-shadow: var(--shadow-lg);
            border: 4px solid var(--accent);
        }
        .experience-badge .years { font-family: 'Playfair Display', serif; font-size: 3rem; font-weight: 700; line-height: 1; color: var(--accent); }
        .experience-badge .text { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
        .features-list { list-style: none; margin-top: 30px; }
        .features-list li {
            display: flex;
            align-items: flex-start;
            gap: 16px;
            margin-bottom: 24px;
        }
        .features-list i {
            color: var(--primary);
            font-size: 1.2rem;
            margin-top: 4px;
        }
        .features-list h4 { font-size: 1.1rem; margin-bottom: 4px; color: var(--primary); }
        .features-list p { color: var(--text-light); font-size: 0.95rem; }

        /* Testimonials */
        .testimonials { background: var(--primary); color: var(--white); }
        .testimonials .section-header h2,
        .testimonials .section-header p { color: var(--white); }
        .testimonials-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 30px;
        }
        .testimonial-card {
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 12px;
            padding: 40px 30px;
            position: relative;
        }
        .testimonial-card::before {
            content: '"';
            font-family: 'Playfair Display', serif;
            font-size: 6rem;
            color: var(--accent);
            opacity: 0.3;
            position: absolute;
            top: 10px;
            left: 20px;
            line-height: 1;
        }
        .testimonial-card p {
            font-size: 1.05rem;
            line-height: 1.8;
            margin-bottom: 24px;
            position: relative;
            z-index: 1;
        }
        .testimonial-author {
            display: flex;
            align-items: center;
            gap: 16px;
        }
        .author-avatar {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: var(--accent);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            color: var(--white);
        }
        .author-info h5 { font-size: 1rem; margin-bottom: 4px; }
        .author-info span { font-size: 0.85rem; opacity: 0.7; }
        .stars { color: var(--accent); margin-bottom: 16px; }

        /* Service Areas */
        .service-areas { background: var(--light); }
        .areas-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
        }
        .area-card {
            background: var(--white);
            padding: 24px;
            border-radius: 10px;
            text-align: center;
            border: 1px solid var(--border);
            transition: all 0.3s;
        }
        .area-card:hover {
            border-color: var(--primary);
            transform: translateY(-3px);
            box-shadow: var(--shadow);
        }
        .area-card i { color: var(--primary); font-size: 1.5rem; margin-bottom: 12px; }
        .area-card h4 { font-size: 1.1rem; color: var(--primary); }

        /* CTA Section */
        
        .cta-section {
            overflow: hidden;
        }
        .cta-section::before {
         pointer-events: none;
        }
        .cta-section,
        .cta-section::before {
         transform-origin: center;
         will-change: transform;
        }
        .cta-section {
            background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
            color: var(--white);
            text-align: center;
            padding: 100px 0;
            position: relative;
            overflow: hidden;
        }
        .cta-section::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(201,162,39,0.1) 0%, transparent 70%);
            animation: pulse 4s ease-in-out infinite;
        }
        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.1); }
        }
        .cta-content { position: relative; z-index: 1; }
        .cta-section h2 {
            font-size: 2.8rem;
            margin-bottom: 20px;
        }
        .cta-section p {
            font-size: 1.2rem;
            opacity: 0.9;
            max-width: 600px;
            margin: 0 auto 40px;
        }
        .cta-buttons { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }

        /* Contact / Quote Form */
        .contact { background: var(--white); }
        .contact-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
        }
        .contact-info h3 {
            font-size: 2rem;
            color: var(--primary);
            margin-bottom: 20px;
        }
        .contact-info > p {
            color: var(--text-light);
            margin-bottom: 40px;
            font-size: 1.1rem;
        }
        .contact-methods { list-style: none; }
        .contact-methods li {
            display: flex;
            align-items: center;
            gap: 20px;
            margin-bottom: 30px;
        }
        .contact-icon {
            width: 56px;
            height: 56px;
            background: rgba(37,50,123,0.08);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .contact-icon i { color: var(--primary); font-size: 1.3rem; }
        .contact-methods h4 { font-size: 1.1rem; margin-bottom: 4px; color: var(--primary); }
        .contact-methods p, .contact-methods a { color: var(--text-light); text-decoration: none; }
        .contact-methods a:hover { color: var(--primary); }

        .form-card {
            background: var(--white);
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 40px;
            box-shadow: var(--shadow-lg);
        }
        .form-card h3 {
            font-size: 1.5rem;
            margin-bottom: 8px;
            color: var(--primary);
        }
        .form-card > p {
            color: var(--text-light);
            margin-bottom: 30px;
        }
        .form-group { margin-bottom: 24px; }
        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: var(--primary);
            font-size: 0.95rem;
        }
        .form-group input,
        .form-group select,
        .form-group textarea {
            width: 100%;
            padding: 14px 16px;
            border: 1px solid var(--border);
            border-radius: 8px;
            font-family: 'Inter', sans-serif;
            font-size: 1rem;
            transition: border-color 0.3s;
        }
        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(37,50,123,0.1);
        }
        .form-group textarea { resize: vertical; min-height: 120px; }
        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }
        .form-note {
            font-size: 0.85rem;
            color: var(--text-light);
            margin-top: 16px;
            text-align: center;
        }
        

        /* Footer */
        footer {
            background: var(--dark);
            color: rgba(255,255,255,0.7);
            padding: 80px 0 30px;
        }
        .footer-grid {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1fr;
            gap: 40px;
            margin-bottom: 60px;
        }
        .footer-brand .logo { color: var(--white); margin-bottom: 20px; display: inline-block; }
        .footer-brand p { line-height: 1.8; margin-bottom: 24px; }
        .social-links { display: flex; gap: 16px; }
        .social-links a {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: rgba(255,255,255,0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--white);
            text-decoration: none;
            transition: all 0.3s;
        }
        .social-links a:hover { background: var(--accent); transform: translateY(-3px); }
        .footer-col h4 {
            color: var(--white);
            font-size: 1.1rem;
            margin-bottom: 24px;
            font-family: 'Inter', sans-serif;
            font-weight: 600;
        }
        .footer-col ul { list-style: none; }
        .footer-col li { margin-bottom: 12px; }
        .footer-col a {
            color: rgba(255,255,255,0.7);
            text-decoration: none;
            transition: color 0.3s;
        }
        .footer-col a:hover { color: var(--accent); }
        .footer-bottom {
            border-top: 1px solid rgba(255,255,255,0.1);
            padding-top: 30px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 20px;
        }
        .footer-bottom p { font-size: 0.9rem; }

        /* Logo in Footer */
        .footer-logo {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 20px;
        }
        .footer-logo img {
            height: 50px;
            width: auto;
            filter: brightness(0) invert(1);
        }

        /* Mobile Responsive */
        @media (max-width: 1024px) {
            .services-grid { grid-template-columns: repeat(2, 1fr); }
            .projects-grid { grid-template-columns: repeat(2, 1fr); }
            .areas-grid { grid-template-columns: repeat(2, 1fr); }
            .why-grid { grid-template-columns: 1fr; }
            .contact-grid { grid-template-columns: 1fr; }
            .footer-grid { grid-template-columns: repeat(2, 1fr); }
        }

        @media (max-width: 768px) {
            .nav-links { display: none; }
            .mobile-menu-btn { display: block; }
            .hero h1 { font-size: 2.5rem; }
            .stats-grid { grid-template-columns: repeat(2, 1fr); }
            .stat-item:nth-child(2) { border-right: none; }
            .stat-item:nth-child(1), .stat-item:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 20px; }
            .services-grid { grid-template-columns: 1fr; }
            .projects-grid { grid-template-columns: 1fr; }
            .testimonials-grid { grid-template-columns: 1fr; }
            .areas-grid { grid-template-columns: 1fr; }
            .footer-grid { grid-template-columns: 1fr; }
            .hero-buttons { flex-direction: column; }
            .hero-buttons .btn { width: 100%; text-align: center; }
            .form-row { grid-template-columns: 1fr; }
            .hero {
                 height: auto;
                 min-height: 135vh;
                 padding-bottom: 300px; /* creates room for stats bar */
    }
            .experience-badge {
                width: 140px;
                height: 140px;
                bottom: -20px;
                right: -20px;
            }
            .experience-badge .years { font-size: 2.2rem; }
            .section-header h2 { font-size: 2.2rem; }
            .section-padding { padding: 60px 0; }
            nav .container { height: 80px; }
            .logo img { height: 45px; }
            .logo-text { font-size: 1.3rem; }
        }

        /* Animations */
        .fade-in {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.6s ease, transform 0.6s ease;
        }
        .fade-in.visible {
            opacity: 1;
            transform: translateY(0);
        }
        
        /* Top bar mobile fix */
@media (max-width: 768px) {
    .top-bar .container {
        display: block !important;
        text-align: center !important;
    }

    .top-bar .container > div {
        display: block !important;
        width: 100% !important;
        margin-bottom: 6px;
        line-height: 1.4;
    }

    .top-bar span {
        display: none !important; /* hides the | separators */
    }

    .top-bar {
        padding: 8px 10px !important;
        font-size: 12px !important;
    }

    .top-bar a {
        display: inline-block;
        word-break: keep-all;
    }
}
@media (max-width: 768px) {

    .mobile-menu-btn {
        display: block;
        margin-left: auto;
        z-index: 10001;
    }

    nav .container {
        flex-wrap: wrap;
        position: relative;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        z-index: 9999;
        box-shadow: var(--shadow);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 14px 20px;
    }

    /* dropdown */
    .nav-links li.dropdown {
    position: relative;
}

.nav-links li.dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    min-width: 200px;
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
}

.nav-links li.dropdown:hover .dropdown-menu {
    display: block;
}
@media (max-width: 768px) {
    nav .container {
        align-items: center;
    }

    .logo {
        flex: 1;
    }

    .mobile-menu-btn {
        flex-shrink: 0;
    }
}

/* ==================== BACK TO TOP - MAXIMUM FORCE ==================== */
#backToTop {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    width: 60px !important;
    height: 60px !important;
    background: #25327b !important;
    color: white !important;
    border-radius: 50% !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 24px !important;
    text-decoration: none !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4) !important;
    z-index: 99999 !important;
    transition: all 0.3s ease !important;
}

#backToTop.show {
    display: flex !important;
}

#backToTop:hover {
    background: #c9a227 !important;
    transform: translateY(-5px) !important;
}
/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* ===== FINAL DESKTOP NAV FIX (OVERRIDES EVERYTHING ABOVE) ===== */
@media (min-width: 769px) {

    nav .container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .logo {
        margin-right: auto !important;
    }

    .nav-links {
        display: flex !important;
        position: static !important;
        flex-direction: row !important;
        gap: 40px !important;
        width: auto !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .nav-links li {
        width: auto !important;
    }
    
}}