/* --- Base & Global Styles --- */
body {
    font-family: 'Manrope', sans-serif;
    background-color: #0d1117; /* GitHub Dark */
    color: #e5e7eb;
    overflow-x: hidden;
}

.aurora-background {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    z-index: -1;
    background: radial-gradient(ellipse at 70% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 30% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
    animation: moveAurora 20s infinite linear;
}

@keyframes moveAurora {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Animated Gradient Border (Used by both Navbar & Footer) */
.animated-gradient-border {
    width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, #3b82f6, #8b5cf6, transparent);
    animation: moveBorder 4s infinite linear;
}

@keyframes moveBorder {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* --- Navbar Styles --- */
#navbar {
    padding: 1.5rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#navbar.scrolled {
    padding: 0.75rem 0;
    background: rgba(13, 17, 23, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.navbar-border {
    position: absolute;
    bottom: -1px; left: 0;
}

.nav-link {
    transition: color 0.3s ease;
}
.nav-link:hover {
    color: white;
}

.service-dropdown {
    background: rgba(23, 30, 44, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(20px) scale(0.95);
}
.group:hover .service-dropdown {
    transform: translateY(0) scale(1);
}
.dropdown-item:hover {
    background: rgba(59, 130, 246, 0.1);
}

.cta-button {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.cta-button:hover {
    transform: translateY(-3px);
}
.cta-button-primary {
    background: #3b82f6;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4), 0 0 40px rgba(59, 130, 246, 0.2);
}
.cta-button-primary:hover {
    background: #2563eb;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.6), 0 0 60px rgba(59, 130, 246, 0.3);
}
.cta-button-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.cta-button-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Mobile Menu Styles */
@media (max-width: 1024px) {
    #mobile-menu {
        background: #111827 !important; /* Solid dark background */
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important; /* Explicitly disable webkit backdrop filter */
        box-shadow: -4px 0 12px rgba(0, 0, 0, 0.3);
    }
    #navbar.scrolled #mobile-menu,
    #navbar #mobile-menu {
        background: #111827 !important; /* Force solid background regardless of navbar state */
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
}

/* Mobile Dropdown Styles */
#mobile-solutions-dropdown {
    transition: all 0.3s ease;
}
#mobile-solutions-dropdown.open {
    display: block;
}
#mobile-solutions-toggle .fa-chevron-down {
    transition: transform 0.3s ease;
}
#mobile-solutions-toggle.open .fa-chevron-down {
    transform: rotate(180deg);
}

/* --- Mobile Menu Background Fix --- */
#mobile-menu {
    /* Ensures the mobile menu always has a solid, non-transparent background */
    background-color: #0d1117; 
}

/* --- Mobile Menu Overlay Fix --- */
body.menu-open {
    overflow: hidden; /* Stops background from scrolling when menu is open */
}

#mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto; /* Allows overlay to be clicked */
}

/* --- Footer Styles --- */
.footer-link {
    color: #9ca3af; /* Gray-400 */
    transition: color 0.3s ease, transform 0.3s ease;
}
.footer-link:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.social-icon {
    transition: transform 0.3s ease, color 0.3s ease;
}
.social-icon:hover {
    transform: scale(1.2) rotate(10deg);
    color: #3b82f6; /* Blue-500 */
}