:root {
    --primary-color: #FFD700;
    --dark-bg: #111111;
    --text-light: #ffffff;
    --header-height: 70px;
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--primary-color);
    z-index: 10000;
    width: 0;
    transition: width 0.1s linear;
}

/* Global Animated Background */
.global-racing-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg,
        transparent 0%,
        rgba(255, 215, 0, 0.03) 25%,
        transparent 50%,
        rgba(255, 215, 0, 0.02) 75%,
        transparent 100%);
    background-size: 400% 400%;
    animation: globalRacingLines 20s ease infinite;
    z-index: 1;
    pointer-events: none;
}

.global-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 215, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 215, 0, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
    pointer-events: none;
}

#global-particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

#global-particles-js canvas {
    pointer-events: none !important;
    position: relative !important;
    z-index: 2 !important;
}

@keyframes globalRacingLines {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    padding-top: var(--header-height);
}

/* Header Styles */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.main-header.scrolled {
    background: rgba(0, 0, 0, 0.98);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5),
                0 0 20px rgba(255, 215, 0, 0.3),
                0 0 30px rgba(255, 215, 0, 0.1);
    height: 60px;
}

.navbar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 4rem;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    height: 100%;
}

/* Logo Styles */
.nav-brand {
    position: relative;
    top: 0;
    left: 0;
    font-family: 'Michroma',sans-serif;
}

.nav-logo {
    height: 40px;
    width: auto;
}

/* Navigation Links */
.nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    margin-left: auto;
}

.nav-link {
    position: relative;
    color: var(--text-light);
    text-decoration: none;
    padding: 0.4rem 0.5rem;
    font-family: 'Michroma',sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.nav-link i {
    font-size: 1rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 8px;
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
    transform: scale(1);
    opacity: 1;
}

.nav-link:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.nav-link:hover i {
    transform: translateY(-3px) scale(1.1);
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

/* Apply Button */
.nav-actions {
    position: relative;
    margin-left: 2rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.login-btn {
    background: transparent;
    color: var(--primary-color);
    padding: 0.4rem 0.75rem;
    height: 35px;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Michroma',sans-serif;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.login-btn:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.login-btn i {
    font-size: 0.9rem;
}

.apply-btn {
    background: var(--primary-color);
    color: var(--dark-bg);
    padding: 0.4rem 0.75rem;
    height: 35px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Michroma',sans-serif;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.apply-btn i {
    font-size: 0.9rem;
}

/* Mobile Menu */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1001;
}

.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.4s ease;
    border-radius: 2px;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 8px;
    padding: 6px;
    border-radius: 30px;
    background: rgba(17, 17, 17, 0.95);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

/* Desktop Language Switcher */
.language-switcher.desktop-only {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 999;
    margin-top: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3),
                0 0 15px rgba(255, 215, 0, 0.2);
}

/* Mobile Language Switcher */
.language-switcher.mobile-only {
    margin-top: 15px;
    display: none;
}

/* Visibility Controls */
.desktop-only {
    display: flex;
}

.mobile-only {
    display: none;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-light);
    padding: 8px 16px;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Michroma',sans-serif;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background: var(--primary-color);
    color: var(--dark-bg);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .main-header {
        height: 60px;
    }

    .navbar {
        padding: 0 1.5rem;
    }

    .nav-logo {
        height: 35px;
    }

    .top-bar {
        display: none;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        padding: 1rem;
        margin: 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-actions {
        margin-left: 0;
        margin-right: 3rem;
        gap: 0.5rem;
    }

    .login-btn,
    .apply-btn {
        padding: 0.35rem 0.75rem;
        height: 32px;
        font-size: 0.85rem;
    }

    .login-btn span,
    .apply-btn span {
        display: none;
    }

    .login-btn i,
    .apply-btn i {
        font-size: 1rem;
        margin: 0;
    }

    /* Hide desktop language switcher on tablet */
    .desktop-only {
        display: none !important;
    }

    /* Show mobile language switcher on tablet */
    .mobile-only {
        display: flex !important;
    }

    .language-switcher.mobile-only {
        width: fit-content;
        margin: 20px auto 10px auto;
        background: rgba(17, 17, 17, 0.98);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5),
                    0 0 15px rgba(255, 215, 0, 0.2);
    }

    .nav-links {
        padding-top: 20px;
    }
}

@media (max-width: 768px) {
    .main-header {
        height: 60px;
    }

    .navbar {
        padding: 0 1.5rem;
    }

    .nav-logo {
        height: 35px;
    }

    .top-bar {
        display: none;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        padding: 1rem;
        margin: 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-actions {
        margin-left: 0;
        margin-right: 3rem;
        gap: 0.5rem;
    }

    .login-btn,
    .apply-btn {
        padding: 0.35rem 0.75rem;
        height: 32px;
        font-size: 0.85rem;
    }

    .login-btn span,
    .apply-btn span {
        display: none;
    }

    .login-btn i,
    .apply-btn i {
        font-size: 1rem;
        margin: 0;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0 1rem;
    }

    .nav-logo {
        height: 35px;
    }
}


