/* Navigation Styles - Reusable across all pages */
:root {
    --quantum-purple: #6A1B9A;
    --electric-blue: #007BFF;
    --deep-navy: #001F3F;
    --cyber-cyan: #00D4FF;
    --neon-green: #39FF14;
    --gradient-primary: linear-gradient(135deg, #001F3F 0%, #6A1B9A 50%, #007BFF 100%);
    --gradient-secondary: linear-gradient(45deg, #00D4FF, #39FF14);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --nav-glass-bg: rgba(255, 255, 255, 0.08);
    --nav-glass-border: rgba(255, 255, 255, 0.12);
}

/* Professional Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--nav-glass-border);
    z-index: 1000;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
    box-shadow: 0 4px 30px rgba(0, 123, 255, 0.08);
    border-bottom: 1px solid rgba(0, 212, 255, 0.15);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    position: relative;
}

/* Professional Logo */
.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00D4FF 0%, #39FF14 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: -0.02em;
    position: relative;
    flex-shrink: 0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.3));
}

/* Professional Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-item {
    position: relative;
    margin: 0;
}

.nav-item > a,
.nav-item > span {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 1.2rem 1.5rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    border-radius: 8px;
    letter-spacing: 0.01em;
}

.nav-item > a::before,
.nav-item > span::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--nav-glass-bg);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-item:hover > a,
.nav-item:hover > span,
.nav-item.active > a {
    color: var(--cyber-cyan);
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.3);
    transform: translateY(-1px);
}

.nav-item:hover > a::before,
.nav-item:hover > span::before,
.nav-item.active > a::before {
    opacity: 1;
}

/* Professional Dropdown */
.nav-item.has-dropdown .dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 280px;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 0.8rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-8px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    list-style: none;
    z-index: 1001;
}

.nav-item.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    left: 50%; /* Ensure it stays centered */
}

/* For mobile specific positioning */
@media (max-width: 768px) {
    .nav-item.has-dropdown .dropdown {
        position: static;
        transform: none;
        left: auto;
        width: 90%;
        max-width: 400px;
        margin: 0.5rem auto;
    }

    .nav-item.has-dropdown:hover .dropdown {
        transform: none;
        left: auto;
    }
}

.dropdown li {
    margin: 0;
}

.dropdown li a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.3s ease;
    border-radius: 0;
    position: relative;
}

.dropdown li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--cyber-cyan);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dropdown li a:hover {
    color: var(--cyber-cyan);
    background: rgba(0, 212, 255, 0.08);
    padding-left: 2rem;
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.3);
}

.dropdown li a:hover::before {
    opacity: 1;
}

/* Professional CTA Button */
.cta-btn {
    background: linear-gradient(135deg, #007BFF 0%, #6A1B9A 100%);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.2);
    cursor: pointer;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 123, 255, 0.4);
    filter: brightness(1.1);
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.cta-btn:hover::before {
    left: 100%;
}

/* Professional Mobile Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 0.5rem;
    border-radius: 6px;
    background: transparent;
    border: none;
    transition: background 0.3s ease;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hamburger span {
    width: 26px;
    height: 3px;
    background: var(--cyber-cyan);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 2px;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Responsive */
@media (max-width: 1200px) {
    .nav-menu {
        gap: 0;
    }
    
    .nav-item > a,
    .nav-item > span {
        padding: 1rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 992px) {
    .nav-item > a,
    .nav-item > span {
        padding: 1rem;
        font-size: 0.85rem;
    }
    
    .cta-btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.97);
        backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-item {
        width: 100%;
        max-width: 300px;
        margin: 0.5rem 0;
    }

    .nav-item > a,
    .nav-item > span {
        width: 100%;
        text-align: center;
        padding: 1.5rem 2rem;
        font-size: 1.1rem;
        border-radius: 12px;
        justify-content: center;
    }

    .nav-item.has-dropdown .dropdown {
        position: static;
        transform: none;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 0.5rem;
        opacity: 1;
        visibility: visible;
        width: 100%;
        min-width: unset;
        box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
    }

    .dropdown li a {
        padding: 1rem 2rem;
        font-size: 1rem;
        text-align: center;
    }

    .hamburger {
        display: flex;
    }

    .nav-container {
        height: 70px;
    }

    .logo {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
        height: 65px;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    .cta-btn {
        display: none;
    }
}

/* Smooth scroll offset for fixed navbar */
html {
    scroll-padding-top: 100px;
}
/* Mobile and Tablet Navigation Optimization */

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

/* Logo adjustments */
.logo-img {
    height: 40px;
    width: auto;
}

/* Mobile menu enhancements */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 2rem;
        transition: left 0.3s ease;
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        width: 90%;
        max-width: 400px;
        margin: 0.5rem 0;
    }

    .nav-item > a,
    .nav-item > span {
        padding: 1rem;
        font-size: 1rem;
        justify-content: center;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.05);
    }

    /* Dropdown adjustments */
    .nav-item.has-dropdown .dropdown {
        position: static;
        width: 100%;
        transform: none;
        margin-top: 0.5rem;
        border-radius: 12px;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        display: none;
    }

    .nav-item.has-dropdown.active .dropdown {
        display: block;
    }

    .dropdown li a {
        text-align: center;
        padding: 0.8rem;
    }

    /* CTA Button adjustments */
    .cta-btn {
        display: none;
    }

    /* Enhanced hamburger menu */
    .hamburger {
        display: flex;
        padding: 0.8rem;
        margin-left: auto;
    }
}

/* Tablet specific adjustments */
@media (min-width: 768px) and (max-width: 992px) {
    .nav-container {
        height: 80px;
    }

    .logo-img {
        height: 42px;
    }

    .nav-menu {
        padding-top: 1.5rem;
    }

    .nav-item > a,
    .nav-item > span {
        font-size: 1.1rem;
    }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
        height: 65px;
    }

    .logo-img {
        height: 36px;
    }

    .nav-item {
        width: 85%;
    }
}