@import url('https://fonts.googleapis.com/css2?family=Onest:wght@400;700&display=swap');

:root {
    --primary-color: #000000; /* Black */
    --secondary-color: #19284b; /* Navy */
    --accent-color-1: #FFFFFF; /* White */
    --accent-color-2: #E0E0E0; /* Light Gray */
    --text-color: #19284b; /* Light Gray */
    --hero-text-color: #FFFFFF; /* White */
    --navbar-height: 120px; /* Height of the navbar including both rows */
}

.hero {
    top: calc(var(--navbar-height) - 45px);
}

body {
    font-family: 'Onest', sans-serif; /* Apply Onest as default */
    margin: 0;
    background-color: white;
    color: var(--text-color);
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif; /* Apply Poppins to all headings */
}

.container {
    max-width: 2400px;
    margin: 0 auto;
    padding: 0 20px;
    top: -15px;
    position: relative;
}

.content-container {
    margin: 0 auto;
    margin-top: 225px; /* navbar-visuals height (210px) + 15px margin */
}

/* When content container follows service-hero, remove top margin */
.service-hero + .content-container {
    margin-top: 0;
}

.navbar-visuals {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 210px; /* Updated to match working viewBox height */
    z-index: 8999;
    overflow: hidden; /* Ensure content outside bounds is hidden */
}

.navbar-svg {
    position: absolute; /* Position relative to .navbar-visuals */
    bottom: 0; /* Align bottom of SVG with bottom of container */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Adjust for true centering */
    width: 2200px; /* Fixed width as per user request */
    height: auto; /* Let height be determined by aspect ratio */
}

.navbar-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 210px; /* Updated to match new SVG height */
    z-index: 9000;
    display: flex;
    align-items: center;
}

.navbar-content .container {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 2rem;
    max-width: 2400px;
    margin: 0 auto;
    padding: 0 20px;
    top: -15px;
    position: relative;
}

.navbar-brand {
    text-decoration: none;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.navbar-logo {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand:hover .navbar-logo {
    transform: scale(1.05);
}

/* Global Display Rules (Desktop First) */
.navbar-content .container > .navbar-brand {
    display: flex;
}
.desktop-buttons {
    display: flex;
}
.desktop-nav {
    display: flex;
}
.navbar-mobile-header {
    display: none;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.mobile-buttons {
    display: none;
}

.desktop-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-left: auto;
}

.navbar-mobile-header {
    display: none;
}

/* Hide nav-top and nav-bottom on desktop */
.nav-top, .nav-bottom {
    display: none;
}

/* Desktop-specific styles */
@media (min-width: 769px) {
    .navbar-menu {
        margin-left: auto;
        padding-left: 2rem;
    }
}

.call-button, .quote-button {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    font-size: 0.9rem;
}

.call-button {
    background: transparent;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}

.call-button:hover {
    background: linear-gradient(135deg, rgba(0, 255, 146, 0.2), rgba(64, 224, 208, 0.2));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(83, 168, 182, 0.2);
}

.quote-button {
    background: linear-gradient(135deg, var(--accent-color-1), var(--secondary-color));
    color: white;
    border: none;
}

.quote-button:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color-1));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(83, 168, 182, 0.3);
}

.phone-icon {
    margin-right: 0.5rem;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.desktop-nav a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 1.1rem;
}

.desktop-nav a:hover {
    color: var(--primary-color);
}

@media (max-width: 800px) {
    .desktop-nav {
        display: none;
    }
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 5px 0;
}

.service-hero {
    position: relative;
    margin-top: 0;
    top: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 0;
    text-align: center;
    color: var(--accent-color-1);
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    position: relative;
    max-width: 1200px;
    margin: 210px auto 0;
    padding: 4rem 2rem;
    z-index: 2;
}

.hero-content h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .service-hero {
        height: 60vh;
        min-height: 400px;
        background-attachment: scroll; /* Better mobile performance */
    }

    .hero-content {
        margin-top: 180px;
        padding: 2rem 1rem;
    }

    .hero-content h1 {
        font-size: clamp(2.5rem, 5vw, 3.5rem);
    }

    .hero-subtitle {
        font-size: clamp(1.1rem, 2vw, 1.3rem);
    }

    .project-meta {
        display: none;
    }
}

.hero img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.6);
}

.hero-text {
    opacity: 0; /* Start hidden */
    transition: opacity 1s ease-in-out; /* Smooth transition */
}

.hero-text h1 {
    font-size: 4rem;
    color: var(--hero-text-color);
    margin-bottom: 1rem;
    font-weight: 700; /* Make h1 bold */
}

.hero-text p {
    font-size: 1.5rem;
    color: var(--hero-text-color);
}

    .site-footer {
        background-color: #FFFFFF; /* White background */
        padding: 2rem 0;
        text-align: center;
        position: relative;
        border-top: 5px solid #0C1446; /* Navy bar on top */
        border-bottom: 5px solid #0C1446; /* Navy bar on bottom */
        z-index: 2; /* Same as services section to scroll over hero */
    }

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-logo {
    max-width: 200px; /* Adjust size as needed */
    margin-bottom: 1rem;
}

.site-footer p {
    color: #0C1446; /* Navy text color */
    margin: 0;
}

.northern-lights-container {
    position: fixed;
    left: 0;
    width: 100vw;
    top: var(--navbar-height);
}

.aurora-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
    mix-blend-mode: screen;
    animation: shimmer 8s ease-in-out infinite;
    will-change: transform, opacity;
}

@keyframes shimmer {
    0%, 100% {
        opacity: 0.4; /* Slightly lower min opacity */
        transform: translateY(30px) translateX(-20px) rotate(1deg) scale(0.95); /* More movement */
    }
    20% {
        opacity: 0.8; /* Higher max opacity */
        transform: translateY(-20px) translateX(25px) rotate(2deg) scale(1.05); /* More movement */
    }
    40% {
        opacity: 0.5;
        transform: translateY(-40px) translateX(-15px) rotate(-1.5deg) scale(0.98); /* More movement */
    }
    60% {
        opacity: 0.9; /* Higher max opacity */
        transform: translateY(-25px) translateX(30px) rotate(1.5deg) scale(1.03); /* More movement */
    }
    80% {
        opacity: 0.7;
        transform: translateY(25px) translateX(-18px) rotate(-1deg) scale(1.02); /* More movement */
    }
}

.aurora-layer:nth-child(1) {
    background: radial-gradient(ellipse 100% 60% at 50% 40%,
        transparent 40%,
        rgba(12, 20, 70, 0.3) 50%,
        rgba(12, 20, 70, 0.5) 55%,
        transparent 70%);
    animation-duration: 10s; /* Increased duration */
    animation-delay: 0s;
    filter: blur(4px); /* Increased blur */
}

.aurora-layer:nth-child(2) {
    background: radial-gradient(ellipse 90% 50% at 30% 60%,
        transparent 30%,
        rgba(12, 20, 70, 0.2) 45%,
        rgba(12, 20, 70, 0.4) 50%,
        transparent 65%);
    animation-duration: 14s; /* Increased duration */
    animation-delay: -3s; /* More varied delay */
    filter: blur(3px); /* Increased blur */
}

.aurora-layer:nth-child(3) {
    background: radial-gradient(ellipse 110% 70% at 70% 30%,
        transparent 35%,
        rgba(12, 20, 70, 0.25) 48%,
        rgba(12, 20, 70, 0.45) 52%,
        transparent 68%);
    animation-duration: 18s; /* Increased duration */
    animation-delay: -6s; /* More varied delay */
    filter: blur(5px); /* Increased blur */
}

.aurora-layer:nth-child(4) {
    background: radial-gradient(ellipse 80% 45% at 80% 70%,
        transparent 25%,
        rgba(12, 20, 70, 0.15) 42%,
        rgba(12, 20, 70, 0.35) 48%,
        transparent 62%);
    animation-duration: 12s; /* Increased duration */
    animation-delay: -2s; /* More varied delay */
    filter: blur(4px); /* Increased blur */
}

.aurora-layer:nth-child(5) {
    background: radial-gradient(ellipse 120% 80% at 20% 80%,
        transparent 45%,
        rgba(12, 20, 70, 0.2) 52%,
        rgba(12, 20, 70, 0.4) 56%,
        transparent 72%);
    animation-duration: 16s; /* Increased duration */
    animation-delay: -5s; /* More varied delay */
    filter: blur(3px); /* Increased blur */
}

@media (max-width: 800px) {
    .navbar {
        padding: 0.3rem 0;
    }

    .navbar-content .container > .navbar-brand {
        display: none;
    }
    .desktop-buttons {
        display: none;
    }
    .desktop-nav {
        display: none;
    }
    .navbar-mobile-header {
        display: flex;
    }

    .navbar .container {
        height: 60px;
    }

    .navbar-logo {
        height: 40px;
    }

    .navbar-mobile-header {
        display: flex;
        flex-direction: column; /* Stack items vertically */
        align-items: center; /* Center items horizontally */
        justify-content: center; /* Center items vertically */
        width: 100%;
        height: 210px; /* Updated to match new SVG height */
        padding: 0.75rem 1rem; /* Consistent padding */
        box-sizing: border-box;
        /* background-color: var(--accent-color-1); */ /* Removed for transparency */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar-mobile-header .navbar-brand {
        display: flex; /* Ensure logo is visible */
        /* margin-right: auto; */ /* Removed, now centered by parent */
    }

    .navbar-mobile-header .nav-buttons {
        display: flex;
        gap: 0.5rem;
        align-items: center;
        margin-top: 15px;
        margin-bottom: 15px;
    }

    .navbar-mobile-header .hamburger {
        /* order: 1; */ /* Removed to let it flow naturally */
        width: 45px;
        height: 45px;
        /* margin-left: auto; */ /* Removed to let it flow naturally */
        margin-top: 0.5rem; /* Add some space below CTA buttons */
    }

    /* Adjust hamburger positioning for centering on its own line */
    .navbar-mobile-header .hamburger {
        /* flex-basis: 100%; */ /* Removed to allow it on the same line */
        /* justify-content: center; */ /* Removed as it's not on its own line */
        margin-top: 0; /* Remove top margin */
        /* order: unset; */ /* Already unset, but keeping for clarity */
    }

    .navbar-content {
        height: auto; /* Let content define height */
        background-color: transparent; /* Ensure no background */
    }

    .navbar-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        /* top: 60px; */ /* Removed, now controlled by JS */
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--secondary-color);
        transform: translateY(-100%);
        transition: transform 0.3s ease-in-out;
    }

    .navbar-menu.active {
        display: flex;
        transform: translateY(0);
    }

    

    .call-button, .quote-button {
        justify-content: center;
        /* width: auto; */ /* Removed as it's redundant with flex item */
        padding: 0.4rem 0.6rem; /* Reduced padding */
        font-size: 0.8rem; /* Reduced font size */
        margin: 0 0.5rem; /* Reduced margin */
    }

    .navbar-menu a:not(.call-button):not(.quote-button) {
        padding: 1rem;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 1.1rem;
        margin: 0;
    }

    .navbar-menu a:not(.call-button):not(.quote-button):last-child {
        border-bottom: none;
    }

    .hamburger {
        display: block;
        margin-left: auto;
    }
}

.main-content {
    position: relative;
    z-index: 1; /* Below navbar and menu */
    margin-top: calc(var(--navbar-height) + 100px); /* Account for curved navbar */
    background: var(--primary-color);
}

.data-section {
    position: relative;
    padding: 4rem 0;
    background: var(--primary-color);
    z-index: 1;
    margin-top: 100px; /* Additional space for curved navbar */
}



.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--accent-color-1);
    border-radius: 5px;
    background-color: var(--primary-color);
    color: var(--text-color);
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color-2);
    box-shadow: 0 0 5px rgba(83, 168, 182, 0.5);
}

.submit-button {
    background-color: var(--accent-color-1);
    color: var(--hero-text-color);
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: var(--accent-color-2);
}

@media (max-width: 1024px) {
    .hero-text h1 {
        font-size: 3rem;
    }
    .hero-text p {
        font-size: 1.2rem;
    }
    .data-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 800px) {
    .navbar {
        padding: 0;
    }

    .navbar .container {
        flex-direction: column;
        height: auto;
        padding: 0;
        gap: 0;
    }

    /* Adjust content spacing for mobile */
    .main-content {
        margin-top: calc(var(--navbar-height) + 160px);
    }

    .data-section {
        margin-top: 160px;
    }

    .services-accordion {
        margin-top: 160px;
    }

    

    

    .nav-buttons {
        /* width: 100%; */ /* Removed to allow natural width */
        max-width: 400px;
        margin: 0 auto;
        padding: 0;
    }

    

    .desktop-nav {
        display: none;
    }

    

    .mobile-hamburger {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0.5rem;
        background-color: var(--secondary-color); /* Navy color */
        border-radius: 4px;
        width: 45px;
        height: 45px;
        margin: 0 auto;
        position: relative;
        z-index: 2000;
        transition: all 0.3s ease;
    }

    @media (max-width: 800px) {
        body {
            position: relative;
        }

        .desktop-nav {
            display: none;
        }

        .nav-bottom {
            justify-content: space-between;
            padding: 0.5rem 1rem;
        }

        .navbar-menu {
            display: flex;
            position: fixed;
            top: 210px; /* Updated to match new SVG height */
            left: 0;
            width: 100%;
            height: calc(100vh - 210px); /* Adjusted height calculation */
            background-color: #000;
            z-index: 8999;
            pointer-events: none;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            overflow: hidden;
            opacity: 0;
            transform: translateY(-100%);
            flex-direction: column;
            align-items: center;
            padding-top: 3rem;
            transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                      opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .navbar-menu::before {
            content: '';
            position: absolute;
            inset: 0;
            background-color: #000;
            z-index: 1;
            backface-visibility: hidden;
            -webkit-backface-visibility: hidden;
            transform: none;
        }

        .navbar-menu::after,
        .navbar-menu .aurora-top,
        .navbar-menu .aurora-bottom {
            content: '';
            position: absolute;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(ellipse at center,
                transparent 0%,
                rgba(186, 85, 211, 0.05) 30%,
                rgba(186, 85, 211, 0.1) 40%,
                rgba(186, 85, 211, 0.05) 50%,
                transparent 60%
            );
            z-index: 2;
            filter: blur(20px);
            pointer-events: none;
            opacity: 0;
        }

        .navbar-menu .aurora-top {
            top: -100%;
            background: radial-gradient(ellipse at center,
                transparent 0%,
                rgba(64, 224, 208, 0.05) 30%,
                rgba(64, 224, 208, 0.1) 40%,
                rgba(64, 224, 208, 0.05) 50%,
                transparent 60%
            );
        }

        .navbar-menu .aurora-bottom {
            bottom: -100%;
        }

        .navbar-menu.menu-open {
            pointer-events: auto;
            opacity: 1;
            transform: translateY(0);
        }

        .navbar-menu.closing {
            pointer-events: none;
            opacity: 0;
            transform: translateY(100%);
        }

        .navbar-menu.menu-open .aurora-top {
            animation: auroraRevealDown 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
            animation-delay: 0.2s;
        }

        .navbar-menu.menu-open .aurora-bottom {
            animation: auroraRevealUp 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
            animation-delay: 0.2s;
        }

        @keyframes revealMenu {
            0% {
                clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
            }
            100% {
                clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
            }
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes auroraRevealDown {
            0% {
                transform: translateY(-50%) rotate(0deg) scale(0.8);
                opacity: 0;
            }
            20% {
                opacity: 1;
                transform: translateY(-30%) rotate(5deg) scale(1);
            }
            80% {
                opacity: 1;
                transform: translateY(30%) rotate(15deg) scale(1.2);
            }
            100% {
                transform: translateY(50%) rotate(20deg) scale(0.8);
                opacity: 0;
            }
        }

        @keyframes auroraRevealUp {
            0% {
                transform: translateY(50%) rotate(0deg) scale(0.8);
                opacity: 0;
            }
            20% {
                opacity: 1;
                transform: translateY(30%) rotate(-5deg) scale(1);
            }
            80% {
                opacity: 1;
                transform: translateY(-30%) rotate(-15deg) scale(1.2);
            }
            100% {
                transform: translateY(-50%) rotate(-20deg) scale(0.8);
                opacity: 0;
            }
        }

        @keyframes blackDown {
            0% {
                transform: translateY(-101%);
            }
            100% {
                transform: translateY(0);
            }
        }

        .menu-close {
            display: none; /* Hide the close button since we'll use hamburger */
        }

        .menu-close span {
            position: absolute;
            left: 0;
            width: 100%;
            height: 2px;
            background-color: var(--secondary-color);
            transition: transform 0.3s ease;
        }

        .menu-close span:first-child {
            transform: rotate(45deg);
        }

        .menu-close span:last-child {
            transform: rotate(-45deg);
        }

        .menu-close:hover span {
            background-color: var(--accent-color-1);
        }

        .menu-items {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1.5rem;
            width: 100%;
            padding: 1rem;
        }

        .menu-items {
            position: relative;
            z-index: 2;
        }

        .menu-items a {
            font-size: 2rem;
            color: var(--hero-text-color);
            text-decoration: none;
            text-align: center;
            transition: all 0.4s ease-out;
            padding: 0.75rem;
            opacity: 0;
            transform: translateY(-20px);
            text-shadow: 0 0 20px rgba(83, 168, 182, 0.3);
        }

        .navbar-menu.menu-open .menu-items a {
            opacity: 1;
            transform: translateY(0);
        }

        .menu-items a:nth-child(1) { transition-delay: 0.4s; }
        .menu-items a:nth-child(2) { transition-delay: 0.5s; }
        .menu-items a:nth-child(3) { transition-delay: 0.6s; }
        .menu-items a:nth-child(4) { transition-delay: 0.7s; }

        .menu-items a:hover {
            color: var(--accent-color-1);
            transform: translateY(-2px);
            text-shadow: 0 0 30px rgba(83, 168, 182, 0.5);
        }

        /* Ensure hamburger stays above menu */
        .hamburger {
            position: relative;
            z-index: 1000000;
        }

        /* Prevent scrolling when menu is open */
        body.menu-open {
            overflow: hidden;
        }
    }

    .navbar-menu::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.02),
            rgba(224, 224, 224, 0.03) 25%,
            rgba(204, 214, 246, 0.02) 50%,
            rgba(224, 224, 224, 0.03) 75%,
            rgba(255, 255, 255, 0.02)
        );
        animation: menuShimmer 12s ease-in-out infinite;
        z-index: -1;
    }

    @keyframes menuShimmer {
        0%, 100% {
            opacity: 0.3;
            transform: scale(1);
        }
        50% {
            opacity: 0.6;
            transform: scale(1.05);
        }
    }

    .navbar-menu a {
        font-size: 2.5rem;
        color: var(--hero-text-color);
        text-decoration: none;
        text-shadow: 0 0 10px rgba(83, 168, 182, 0.5);
        transition: all 0.3s ease;
        padding: 1rem;
    }

    .navbar-menu a:hover {
        color: var(--accent-color-1);
        transform: scale(1.1);
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    }

    .call-button, .quote-button {
        justify-content: center;
        flex: 1;
        margin: 0;
    }

    .hamburger {
        display: flex;
        margin: 0.5rem auto;
        order: 3;
        flex-direction: column;
        align-items: center;
        padding: 0.5rem;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
        width: 45px;
        height: 45px;
        justify-content: center;
        position: relative;
        z-index: 2000;
        transition: all 0.3s ease;
    }

    .hamburger:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }

    .hamburger span {
        width: 25px;
        height: 3px;
        margin: 3px 0;
        background-color: var(--secondary-color);
        transition: all 0.3s ease;
        position: relative;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .hamburger.active {
        background-color: rgba(239, 241, 241, 0.959);
    }

    .hero {
        height: 70vh;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    .hero-text p {
        font-size: 0.9rem;
    }
    .data-section h2 {
        font-size: 1.8rem;
    }
    .container {
        padding: 0 15px; /* Increased side padding */
    }
    
    /* Ensure all content has minimum side padding */
    .section-content,
    .overview-content,
    .hero-content,
    .project-content {
        padding-left: 15px;
        padding-right: 15px;
    }
}



.scroll-prompt {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    opacity: 0; /* Initially hidden */
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
    display: flex; /* To center text and indicator */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.scroll-prompt.visible {
    opacity: 1;
}

.scroll-prompt.hidden {
    display: none; /* Use display: none to completely remove from layout */
}

.scroll-prompt-text {
    font-size: 1.2rem; /* Adjust font size */
    color: rgba(255, 255, 255, 0.5); /* Dimmed white */
    margin-bottom: 8px; /* Space between text and arrow */
    text-shadow: 0 0 8px rgba(0,0,0,0.4); /* Slightly less pronounced shadow */
}

.scroll-prompt-logo {
    max-width: 100px; /* Adjust size as needed */
    height: auto;
    opacity: 0.3; /* Dim the logo */
    margin-bottom: 15px; /* Space between logo and text */
    transition: opacity 0.5s ease-in-out;
}

.scroll-prompt-logo:hover {
    opacity: 0.5; /* Slightly brighter on hover */
}

.scroll-arrow {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid rgba(255, 255, 255, 0.5); /* Dimmed white arrow */
    animation: bounce 1.5s infinite; /* Subtle bounce animation */
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}



.hidden-section {
    display: none; /* Hide sections initially */
}

/* Services Accordion Styles */
.services-accordion {
    padding: 4rem 0;
    margin-top: 100px; /* Additional space for curved navbar */
}

.services-accordion .lead {
    max-width: 700px;
    margin: 0 auto 2rem auto;
    font-size: 1.1rem;
    color: var(--accent-color-2);
}

.accordion-container {
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid var(--secondary-color);
    border-radius: 10px;
    overflow: hidden;
    background-color: rgba(12, 20, 70, 0.5); /* Semi-transparent dark blue */
}

.accordion-item {
    border-bottom: 1px solid var(--secondary-color);
    transition: background-color 0.4s ease-in-out;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-title {
    padding: 1.5rem;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--hero-text-color);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: transparent;
    transition: background-color 0.4s ease;
}

.accordion-title::-webkit-details-marker {
    display: none;
}

.accordion-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(83, 168, 182, 0.3), transparent);
    transition: left 0.6s ease;
    z-index: 0;
}

.accordion-title:hover::before,
details[open] > .accordion-title::before {
    left: 150%;
}

.accordion-title > span {
    position: relative;
    z-index: 1;
}

.accordion-title::after {
    content: '+';
    font-size: 2rem;
    font-weight: 400;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    z-index: 1;
}

details[open] > .accordion-title::after {
    transform: rotate(45deg);
}

.accordion-title:hover {
    background-color: rgba(26, 122, 137, 0.2);
}

details[open] > .accordion-title {
    background-color: var(--secondary-color);
}

.accordion-content {
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1), padding 0.5s ease;
    max-height: 0;
    padding: 0 1.5rem;
    color: var(--text-color);
}

details[open] > .accordion-content {
    padding: 1.5rem;
}

.accordion-content p {
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s;
}

details[open] .accordion-content p {
    opacity: 1;
    transform: translateY(0);
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--accent-color-1);
    color: var(--primary-color);
    border: 1px solid var(--accent-color-1);
}

.btn-primary:hover {
    background-color: var(--accent-color-2);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.text-center {
    text-align: center;
}
