/* Revolutionary Futuristic Navbar Styles */

.futuristic-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1002;
    background: rgba(10, 10, 20, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5),
                0 0 20px rgba(102, 126, 234, 0.1);
    animation: navbar-entrance 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes navbar-entrance {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(102, 126, 234, 0.8),
        rgba(246, 147, 251, 0.8),
        transparent
    );
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 2rem;
}

/* Futuristic Brand */
.nav-brand-futuristic {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.nav-brand-futuristic:hover {
    transform: scale(1.05);
}

.brand-icon-wrapper {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-orbit {
    position: absolute;
    inset: -5px;
    border: 2px solid transparent;
    border-top-color: #667eea;
    border-right-color: #f693fb;
    border-radius: 50%;
    animation: orbit-spin 3s linear infinite;
}

@keyframes orbit-spin {
    to { transform: rotate(360deg); }
}

.brand-icon {
    font-size: 2rem;
    background: linear-gradient(135deg, #667eea, #f693fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.5));
    animation: icon-float 2s ease-in-out infinite;
    z-index: 1;
}

@keyframes icon-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.icon-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.3), transparent 70%);
    animation: pulse-expand 2s ease-in-out infinite;
}

@keyframes pulse-expand {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0; }
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.brand-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, #667eea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

.brand-tagline {
    font-size: 0.7rem;
    color: rgba(246, 147, 251, 0.8);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    flex: 1;
    justify-content: center;
}

.nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.link-text {
    position: relative;
    z-index: 1;
}

.link-icon {
    font-size: 0.75rem;
    opacity: 0.7;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-link:hover .link-icon {
    transform: translateX(3px);
    opacity: 1;
}

.link-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #f693fb);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link:hover .link-underline {
    width: 100%;
}

/* Revolutionary CTA Button */
.nav-cta {
    position: relative;
}

.cta-button-futuristic {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4),
                inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.button-content {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    position: relative;
    z-index: 2;
}

.button-glow {
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #667eea, #f693fb);
    border-radius: 50px;
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.3s ease;
    z-index: 0;
}

.button-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-20deg);
    z-index: 1;
}

.cta-button-futuristic:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6),
                inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.cta-button-futuristic:hover .button-glow {
    opacity: 1;
}

.cta-button-futuristic:hover .button-shine {
    animation: shine-slide 1.5s ease-in-out;
}

@keyframes shine-slide {
    to { left: 150%; }
}

.cta-button-futuristic:active {
    transform: translateY(0);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: relative;
    z-index: 1003;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

.hamburger-line {
    width: 28px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #f693fb);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translateY(9px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translateY(-9px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 20, 0.98);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 3rem 2rem;
    width: 100%;
    max-width: 500px;
}

.mobile-menu-overlay.active .mobile-menu-content {
    animation: mobile-menu-slide 0.5s ease-out forwards;
}

@keyframes mobile-menu-slide {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 300px;
    text-align: center;
    display: block;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(246, 147, 251, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.mobile-nav-link:hover::before,
.mobile-nav-link:active::before {
    opacity: 1;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
    color: #ffffff;
    transform: scale(1.05);
    background: rgba(102, 126, 234, 0.1);
}

.mobile-nav-cta {
    margin-top: 1rem;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 700;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.5);
    transition: all 0.3s ease;
    display: block;
    text-align: center;
    width: 100%;
    max-width: 300px;
}

.mobile-nav-cta:hover,
.mobile-nav-cta:active {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.7);
}

/* Scrolled State */
.futuristic-navbar.scrolled {
    background: rgba(10, 10, 20, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.7),
                0 0 30px rgba(102, 126, 234, 0.2);
}

.futuristic-navbar.scrolled .nav-glow {
    opacity: 1;
    animation: glow-pulse 2s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-menu {
        display: none;
    }
    
    .nav-cta {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    .nav-content {
        padding: 0.75rem 0;
    }
    
    .brand-icon-wrapper {
        width: 40px;
        height: 40px;
    }
    
    .brand-icon {
        font-size: 1.5rem;
    }
    
    .brand-name {
        font-size: 1.2rem;
    }
    
    .brand-tagline {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .brand-tagline {
        display: none;
    }
    
    .brand-name {
        font-size: 1rem;
    }
    
    .brand-icon-wrapper {
        width: 35px;
        height: 35px;
    }
    
    .brand-icon {
        font-size: 1.3rem;
    }
    
    .nav-content {
        padding: 0.5rem 0;
    }
    
    .mobile-nav-link {
        font-size: 1.3rem;
        padding: 0.9rem 1.5rem;
    }
    
    .mobile-nav-cta {
        font-size: 1.2rem;
        padding: 1rem 2.5rem;
    }
    
    .mobile-menu-overlay {
        padding-top: 0;
    }
    
    .mobile-menu-content {
        padding: 2rem 1.5rem;
        gap: 1.5rem;
    }
}

/* Accessibility */
.nav-link:focus,
.cta-button-futuristic:focus,
.mobile-menu-toggle:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Performance Optimizations */
.futuristic-navbar {
    will-change: transform;
    transform: translateZ(0);
}

.brand-icon,
.icon-orbit,
.icon-pulse {
    will-change: transform;
}
