/* 3D & Animations Upgrade */

:root {
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --accent-color: #f15a24;
}

/* 3D Background Container */
#vanta-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.hero-3d-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(11, 28, 63, 0.8) 100%);
    z-index: 0;
    pointer-events: none;
}

.hero-3d-wrapper {
    position: relative;
    overflow: hidden;
    background-color: #0b1c3f !important;
    color: #ffffff !important;
    padding: 160px 0 100px; /* Ample padding instead of 100vh */
}

.hero-3d-wrapper h1, 
.hero-3d-wrapper p,
.hero-3d-wrapper .title-small {
    color: #ffffff !important;
}

.hero-3d-wrapper p {
    opacity: 0.9;
}

/* Ensure mobile menu icon is white */
.custom-menu-toggle img {
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.custom-menu-toggle {
    z-index: 1001;
    cursor: pointer;
    display: none; /* Hidden on desktop by default */
}

@media screen and (max-width: 991px) {
    .custom-menu-toggle {
        display: block;
    }
}

.custom-menu-toggle.active img {
    transform: rotate(90deg) scale(1.1);
}

/* Sticky Navbar Styles */
.navbar {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent !important; /* Force transparent at top */
}

.navbar.scrolled, 
.navbar.menu-open {
    background: rgba(11, 28, 63, 0.95) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 15px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
}

/* Force navbar text and logo to white on scroll (Desktop & Mobile) */
.navbar.scrolled .nav-link-2,
.navbar.menu-open .nav-link-2,
.navbar.scrolled .login-link,
.navbar.menu-open .login-link {
    color: #ffffff !important;
}

.navbar.scrolled .header-logo,
.navbar.menu-open .header-logo {
    filter: brightness(0) invert(1) !important;
}


/* Glassmorphism Styles */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
}

/* Animation Utilities */
.gsap-reveal {
    opacity: 0;
    transform: translateY(30px);
}

/* Tilt Effect Placeholder */
.tilt-card {
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.tilt-inner {
    transform: translateZ(20px);
}

/* Desktop Navigation Spacing */
@media screen and (min-width: 992px) {
    .custom-nav-menu {
        display: flex !important;
        align-items: center;
        gap: 30px;
    }
}

/* Mobile Menu GSAP Preparation */
@media screen and (max-width: 991px) {
    .custom-nav-menu {
        display: flex !important; /* Force display for GSAP */
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%; /* Hidden by default */
        width: 85%;
        height: 100vh;
        background: rgba(11, 28, 63, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 100px 40px;
        z-index: 999;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }

    .custom-nav-menu .nav-link-2 {
        opacity: 0;
        transform: translateX(50px);
        font-size: 20px;
        font-weight: 600;
        margin-bottom: 25px;
        color: #ffffff !important; /* Always white on dark mobile menu */
        text-decoration: none;
        display: block;
        transition: color 0.3s ease;
    }

    .custom-nav-menu .nav-link-2:active {
        color: var(--accent-color) !important;
    }

    /* Force navbar text to white on mobile if navbar is dark or menu is open */
}

/* Section Transitions */
section {
    position: relative;
    z-index: 1;
}

/* Scroll progress bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--accent-color);
}

/* Active Nav Link Styles */
.nav-link-2.custom-active {
    color: var(--accent-color) !important;
    font-weight: 600;
    position: relative;
}

.nav-link-2.custom-active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
}

.mobile-only {
    display: none !important;
}

@media screen and (max-width: 991px) {
    .mobile-only {
        display: block !important;
    }
}

/* Body scroll lock */
body.no-scroll {
    overflow: hidden;
}
