/* ===========================================
   FUTURISTIC NAVIGATION
   =========================================== */

:root {
    --nav-height: 80px;
    --nav-bg: rgba(0, 0, 0, 0.95);
    --nav-border: rgba(8, 159, 255, 0.3);
    --nav-glow: rgba(8, 159, 255, 0.5);
}

.futuristic-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--nav-border);
    z-index: 9999;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.futuristic-nav.scrolled {
    background: rgba(0, 0, 0, 0.98);
    box-shadow: 0 8px 40px rgba(8, 159, 255, 0.2);
}

.futuristic-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%,
        var(--nav-glow) 50%,
        transparent 100%
    );
    animation: navGlow 3s ease-in-out infinite;
}

@keyframes navGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    gap: 2rem;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    background: #000;
    padding: 0.5rem 1rem;
    border-radius: 12px;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-logo img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(8, 159, 255, 0.5)) brightness(1.5) contrast(1.2);
    transition: filter 0.3s ease;
    display: block;
    visibility: visible;
    opacity: 1;
    background: transparent;
}

.nav-logo:hover img {
    filter: drop-shadow(0 0 20px rgba(8, 159, 255, 0.8));
}

.logo-text {
    display: none; /* Hide text logo, keep only icon */
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #089FFF 0%, #00D4FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
    flex: 1;
    justify-content: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(8, 159, 255, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.nav-link:hover {
    color: #089FFF;
    transform: translateY(-2px);
}

.nav-link:hover i {
    transform: scale(1.2) rotate(5deg);
}

/* Active state */
.nav-item.active .nav-link {
    background: linear-gradient(135deg, rgba(8, 159, 255, 0.2) 0%, rgba(0, 212, 255, 0.2) 100%);
    color: #089FFF;
    box-shadow: 0 0 20px rgba(8, 159, 255, 0.3);
}

.nav-item.active .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #089FFF, transparent);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* CTA Button */
.nav-cta {
    display: flex;
    align-items: center;
}

.cta-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, #089FFF 0%, #00D4FF 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(8, 159, 255, 0.3);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(8, 159, 255, 0.5);
}

.cta-button i {
    font-size: 1.2rem;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 10001;
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background: linear-gradient(90deg, #089FFF, #00D4FF);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-toggle:hover span {
    box-shadow: 0 0 10px rgba(8, 159, 255, 0.8);
}

.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(8px, -8px);
}

/* ===========================================
   RESPONSIVE DESIGN
   =========================================== */

@media (max-width: 1024px) {
    .nav-container {
        padding: 0 1.5rem;
    }
    
    .nav-link {
        padding: 0.65rem 1rem;
        font-size: 0.9rem;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 70px;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(20px);
        padding: 2rem;
        gap: 1rem;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-bottom: 1px solid var(--nav-border);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    }
    
    .nav-menu.active {
        max-height: calc(100vh - var(--nav-height));
        opacity: 1;
        overflow-y: auto;
    }
    
    .nav-item {
        width: 100%;
        animation: slideIn 0.3s ease forwards;
        opacity: 0;
    }
    
    .nav-menu.active .nav-item:nth-child(1) { animation-delay: 0.1s; }
    .nav-menu.active .nav-item:nth-child(2) { animation-delay: 0.15s; }
    .nav-menu.active .nav-item:nth-child(3) { animation-delay: 0.2s; }
    .nav-menu.active .nav-item:nth-child(4) { animation-delay: 0.25s; }
    .nav-menu.active .nav-item:nth-child(5) { animation-delay: 0.3s; }
    .nav-menu.active .nav-item:nth-child(6) { animation-delay: 0.35s; }
    
    @keyframes slideIn {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .nav-link {
        width: 100%;
        padding: 1rem 1.25rem;
        font-size: 1.05rem;
        justify-content: flex-start;
    }
    
    .nav-link i {
        font-size: 1.1rem;
    }
    
    .nav-cta {
        display: none;
    }
    
    .logo-text {
        display: none;
    }
    
    .nav-logo img {
        height: 45px;
    }
}

@media (max-width: 480px) {
    :root {
        --nav-height: 65px;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-logo img {
        height: 40px;
    }
    
    .nav-toggle span {
        width: 25px;
    }
}

/* Smooth scroll offset for fixed nav */
html {
    scroll-padding-top: calc(var(--nav-height) + 20px);
}

/* Page transition effects */
.page-transition {
    animation: pageIn 0.5s ease-out;
}

@keyframes pageIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

