/* ========================================= PERFORMANCE OPTIMIZED NAVBAR STYLES ========================================= */
:root {
    --primary: #2563eb;
    --primary-dark: #0f172a;
    --accent: #fbbf24;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --radius: 16px;
    --red: #ef4444;
    --transition: all 0.2s ease-out;
    /* Simplified transitions */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

a:focus-visible, button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Removed scroll-behavior: smooth to un-hijack native scrolling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 5%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 800;
    font-size: 22px;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
}


.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 15px;
    position: relative;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -3px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-auth-btn {
    background: linear-gradient(135deg, var(--primary), #1d4ed8);
    color: var(--white);
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-block;
}

.nav-auth-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary-dark);
    cursor: pointer;
    padding: 5px;
}

nav .active {
    color: #2563eb;
    font-weight: 600;
}

/* --- Ticker --- */
.ticker-wrap {
    height: 40px;
    display: flex;
    font-weight: 600;
    align-items: center;
    overflow: hidden;
    font-size: 14px;
    position: relative;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
}

.ticker-label {
    background: var(--red);
    color: #fff;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
}

.ticker-move {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    will-change: transform;
    /* Hardware Acceleration */
    animation: ticker 30s linear infinite;
}

.ticker-move:hover {
    animation-play-state: paused;
}

.ticker-item {
    margin-right: 50px;
    color: var(--primary-dark);
}

.ticker-item i {
    color: var(--primary);
    margin-right: 8px;
}

@keyframes ticker {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

/* ========================================= FOOTER STYLES ========================================= */
footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 80px 5% 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-col h4 {
    margin-bottom: 25px;
    font-size: 1.2rem;
    color: var(--white);
    font-weight: 700;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94a3b8;
    transition: color 0.2s ease, padding-left 0.2s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-icons i {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s, transform 0.2s;
    cursor: pointer;
}

.social-icons i:hover {
    background: var(--primary);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    color: #64748b;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .logo {
        font-weight: 700;
        font-size: 20px;
    }

    .logo span {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 0;
        gap: 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        max-height: 500px;
        padding: 20px 0;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 15px 0;
        border-bottom: 1px solid #f1f5f9;
    }

    .nav-links a::after {
        display: none;
    }
}