/* ============================================
   NAVBAR COMPONENT STYLES
   ============================================ */
   .navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: 1000;
    padding: 10px 0;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInDown 0.8s ease forwards;
    box-shadow: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

/* Scrolled state - solid background */
.navbar.scrolled {
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(6, 182, 212, 0.1);
}

:root[data-theme="light"] .navbar {
    background: transparent;
}

:root[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(6, 182, 212, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

@keyframes fadeInDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0;
    cursor: pointer;
    position: relative;
    width: 180px;
    height: 60px;
    overflow: hidden;
}

.logo-icon {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    object-fit: contain;
    object-position: left center;
    display: block;
    flex-shrink: 0;
    transition: opacity 0.3s ease;
    height: 50px;
    width: auto;
    max-width: 180px;
}

/* Light mode logo size */
.logo-light {
    height: 50px;
    width: auto;
}

/* Dark mode logo size - same dimensions as light to prevent jumping */
.logo-dark {
    height: 50px;
    width: auto;
}

/* Ensure both logos have exact same rendering */
.logo-dark,
.logo-light {
    max-width: 180px;
    max-height: 50px;
}

/* Increase dark mode logo size */
:root[data-theme="dark"] .logo-dark {
    display: block;
    opacity: 1;
}

/* Show/hide logos based on theme */
:root[data-theme="light"] .logo-dark {
    display: none;
    opacity: 0;
}

:root[data-theme="light"] .logo-light {
    display: block;
    opacity: 1;
}

:root[data-theme="dark"] .logo-light {
    display: none;
    opacity: 0;
}

/* Default (dark mode) */
.logo-light {
    display: none;
    opacity: 0;
}

.logo-dark {
    display: block;
    opacity: 1;
}

.logo-container:hover .logo-icon {
    transform: none;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    transform: translateX(-10px) translateY(6px);
    transition: none;
    margin-left: 0;
}

.logo-ai {
    color: var(--accent);
    font-weight: 700;
    margin-left: 2px;
}

.logo-container:hover .logo-text,
.logo-container.logo-expanded .logo-text {
    opacity: 0;
    max-width: 0;
    transform: translateX(-10px) translateY(6px);
    margin-left: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-cta-group {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-left: 10px;
}

.nav-link-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.nav-link-btn.login {
    color: var(--text);
    border: 2px solid transparent;
}

.nav-link-btn.login:hover {
    color: var(--accent);
}

.nav-link-btn.demo {
    background: linear-gradient(135deg, var(--accent), var(--success));
    color: white;
    border: 2px solid transparent;
}

.nav-link-btn.demo:hover {
    opacity: 0.9;
}

.nav-link {
    color: var(--text);
    font-weight: 400;
    font-size: 0.95rem;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 4px;
    transition: var(--transition-fast);
    position: relative;
}

/* Active page styling */
.nav-link.active {
    color: var(--accent);
    font-weight: 600;
}

/* Hover effects removed - navbar links are now static */

.nav-link.contact-btn {
    /* Extends global button styles */
    background: var(--button-color);
    color: var(--bg);
    border: 2px solid var(--button-color);
    padding: var(--spacing-xs) var(--spacing-md);
    font-weight: 500;
}


.nav-link.contact-btn::after {
    display: none;
}

/* Hamburger Menu (Mobile) */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
    transition: var(--transition-fast);
    box-shadow: 0 0 5px var(--shadow-glow);
}

/* ============================================
   THEME TOGGLE BUTTON COMPONENT
   ============================================ */
#theme-toggle {
    background: linear-gradient(135deg, var(--accent), var(--success));
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    margin-left: var(--spacing-sm);
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

#theme-toggle::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--success));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#theme-toggle:hover::before {
    opacity: 0;
}

#theme-toggle:hover {
    transform: none;
    box-shadow: none;
}

#theme-toggle:active {
    transform: scale(0.95);
}

#theme-toggle i {
    transition: transform 0.5s ease;
}

#theme-toggle:hover i {
    transform: rotate(0deg);
}

/* ============================================
   RESPONSIVE DESIGN FOR NAVBAR
   ============================================ */

/* Large Tablets and Small Desktops (769px - 1024px) */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 var(--spacing-sm);
    }
}

/* Tablets (481px - 853px) */
@media (max-width: 912px) {
    .hamburger {
        display: flex;
        order: 3;
    }

    .nav-container {
        max-width: 100%;
        width: 100%;
        margin: 0;
        padding: 0 var(--spacing-sm);
        justify-content: space-between;
    }

    .logo-container {
        order: 1;
        margin-left: 15px;
    }

    .logo-icon {
        height: 40px;
    }

    /* Mobile logo adjustments - consistent for both themes */
    .logo-light {
        height: 40px;
        width: auto;
        max-width: 150px;
    }

    .logo-dark {
        height: 40px;
        width: auto;
        max-width: 150px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: var(--panel);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--spacing-md);
        transition: var(--transition-normal);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
        z-index: 999;
        order: 2;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .nav-link.contact-btn {
        margin-top: var(--spacing-sm);
        width: auto;
    }

    .nav-cta-group {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 80%;
        margin: 0;
        align-items: stretch;
    }

    .nav-link-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        width: 100%;
        text-align: center;
    }

    #theme-toggle {
        margin-left: 0;
        margin-top: var(--spacing-sm);
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 3px 0;
    }

    .nav-container {
        padding: 0 5px;
        min-height: 50px;
    }

    .logo-container {
        gap: var(--spacing-xs);
        margin-left: 8px;
        height: 40px;
        width: 120px;
    }

    .logo-icon {
        height: 35px;
    }

    /* Mobile logo adjustments for small screens - consistent for both themes */
    .logo-light {
        height: 35px;
        width: auto;
        max-width: 120px;
    }

    .logo-dark {
        height: 35px;
        width: auto;
        max-width: 120px;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .nav-menu {
        width: 80%;
        max-width: 280px;
        gap: var(--spacing-md);
    }

    .nav-link {
        font-size: 1rem;
        padding: var(--spacing-xs) var(--spacing-sm);
    }

    #theme-toggle {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
        margin-left: 0;
    }
}

/* Extra Small Mobile Devices (below 360px) */
@media (max-width: 360px) {
    .logo-container {
        gap: var(--spacing-xs);
        margin-left: 10px;
    }

    .logo-icon {
        height: 36px;
    }

    .logo-text {
        font-size: 1rem;
    }

    .nav-menu {
        width: 85%;
    }
}

/* Specific adjustment for 344px to 360px screens */
@media (min-width: 344px) and (max-width: 360px) {
    .logo-dark,
    .logo-light {
        height: 32px;
        width: auto;
        max-width: 110px;
    }
}

/* Large Desktops (1200px and above) */
@media (min-width: 1200px) {
    .nav-container {
        max-width: 1400px;
    }
}

