:root {
    --primary: #0ea5e9;
    --primary-glow: rgba(14, 165, 233, 0.4);
    --bg: #020617;
    --surface: rgba(15, 23, 42, 0.6);
    --surface-hover: rgba(30, 41, 59, 0.8);
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
    --font-main: 'Outfit', sans-serif;
    --transition: transform 0.4s cubic-bezier(0.2, 0, 0, 1), opacity 0.4s ease, background-color 0.4s ease, border-color 0.4s ease, filter 0.4s ease, height 0.4s ease, max-height 0.4s ease, padding 0.4s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    background-image:
        radial-gradient(circle at 0% 0%, rgba(14, 165, 233, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(14, 165, 233, 0.05) 0%, transparent 40%);
}

.glass {
    background: var(--surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    z-index: 2000;
    transition: var(--transition);
    background: transparent;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    height: 70px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

@media (max-width: 768px) {
    .nav-desktop {
        display: none !important;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 32px;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -1.5px;
    text-transform: uppercase;
}

.logo span {
    color: #fff;
}

.nav-btn {
    background: var(--primary);
    color: #fff;
    padding: 6px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: var(--transition);
}

.nav-btn:hover {
    filter: brightness(1.2);
    transform: scale(1.05);
}

.hero {
    position: relative;
    height: 95vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('velox_hero_bg.png') center/cover no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.8) 100%),
        linear-gradient(to top, #000 0%, transparent 40%),
        linear-gradient(to bottom, #000 0%, transparent 20%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 900px;
}

.hero-title {
    font-size: clamp(40px, 8vw, 90px);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 24px;
    letter-spacing: -3px;
    color: #fff;
}

.hero-title span {
    color: var(--primary);
}

.hero-desc {
    font-size: clamp(16px, 2.5vw, 22px);
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-inline: auto;
    font-weight: 400;
    line-height: 1.4;
}

.search-box {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 8px;
    border-radius: 100px;
    border: 1px solid var(--border);
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 10px 40px var(--primary-glow);
    transform: translateY(-5px);
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0 24px;
    font-size: 18px;
    color: #fff;
    font-family: inherit;
    outline: none;
}

.search-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Content Sections ── */
.section {
    padding: 80px 5% 40px;
    position: relative;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.section-title {
    font-size: 28px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: var(--primary);
}

.trending-row-container {
    position: relative;
}

.trending-row {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 20px;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.trending-row::-webkit-scrollbar {
    display: none;
}

.trending-card {
    flex: 0 0 180px;
    aspect-ratio: 2/3;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border);
}

@media (max-width: 768px) {
    .trending-card {
        flex: 0 0 140px;
    }
}

.trending-card:hover {
    transform: scale(1.05) translateY(-5px);
    border-color: var(--primary);
    z-index: 10;
}

.rank-number {
    position: absolute;
    left: -15px;
    bottom: -15px;
    font-size: 90px;
    font-weight: 900;
    line-height: 1;
    color: rgba(255, 255, 255, 0.1);
    -webkit-text-stroke: 1.5px rgba(14, 165, 233, 0.4);
    z-index: 2;
    font-style: italic;
    pointer-events: none;
}

.movie-poster-wrap {
    width: 100%;
    height: 100%;
    background: #111;
}

.movie-poster-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.trending-card:hover img {
    filter: brightness(1.2);
}

/* Scroll Arrows */
.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    z-index: 100;
    transition: 0.3s;
    opacity: 0;
}

.trending-row-container:hover .scroll-arrow {
    opacity: 1;
}

.scroll-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.arrow-left {
    left: -20px;
}

.arrow-right {
    right: -20px;
}

/* Animations */
.animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0, 0, 1);
}

.animate.show {
    opacity: 1;
    transform: translateY(0);
}

/* FAQ Accordion */
.faq-grid {
    max-width: 800px;
    margin: 40px auto;
    display: grid;
    gap: 15px;
}

.accordion-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.accordion-header {
    padding: 20px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 600;
    font-size: 18px;
}

.accordion-header i {
    transition: 0.3s;
}

.accordion-item.active .accordion-header i {
    transform: rotate(45deg);
    color: var(--primary);
}

.accordion-content {
    max-height: 0;
    padding: 0 25px;
    color: var(--text-muted);
    transition: 0.4s ease;
    overflow: hidden;
}

.accordion-item.active .accordion-content {
    max-height: 300px;
    padding-bottom: 25px;
}

/* SEO Section */
.seo-content-section {
    padding: 80px 5%;
    border-top: 1px solid var(--border);
}

.seo-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

@media (max-width: 992px) {
    .seo-inner {
        grid-template-columns: 1fr;
    }
}

.seo-about h2,
.seo-tournaments h3 {
    font-size: 32px;
    margin-bottom: 20px;
}

.seo-about p,
.seo-tournaments p {
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-social {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.footer-social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    text-decoration: none;
    transition: var(--transition);
}

.footer-social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-5px);
}

.tournament-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
}

.tournament-tags li {
    padding: 6px 15px;
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
}

/* Footer */
.site-footer {
    background: #000;
    padding: 80px 5% 40px;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-links h4 {
    margin-bottom: 20px;
    font-size: 16px;
    color: #fff;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: #888;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.footer-links ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    color: #666;
    font-size: 14px;
}

/* Bottom Navigation (mobile) */
.bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background: #0b0f19; /* Solid deep dark background */
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        z-index: 3000;
        display: flex;
    }
    
    body {
        padding-bottom: 60px; /* Offset for bottom nav */
    }
}

.bottom-nav-inner {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    padding-left: 10px;
    padding-right: 0; /* Keep elite item stuck to the edge */
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1;
    height: 100%;
    text-decoration: none;
    color: #4b5563; /* Muted slate gray */
    transition: all 0.2s ease-in-out;
}

.bottom-nav-item.active {
    color: #ffffff; /* Bright white active text */
}

.bottom-nav-item.active i {
    color: #38bdf8; /* Vibrant cyan/blue for active icon */
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.6)); /* Glow effect! */
}

.bottom-nav-item i {
    font-size: 24px;
}

.bottom-nav-item span {
    font-size: 11px;
    font-weight: 600;
}

/* Premium Gold ELITE Item */
.bottom-nav-item.elite-item {
    background: #eab308; /* Perfect deep gold yellow */
    color: #0b0f19 !important; /* Force deep dark text */
    font-weight: 800;
    max-width: 80px;
    height: 100%;
    flex: 1.2; /* Slightly wider */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.2);
}

.bottom-nav-item.elite-item i {
    color: #0b0f19 !important;
    font-size: 26px; /* Slightly larger crown */
}

.bottom-nav-item.elite-item span {
    color: #0b0f19 !important;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.bottom-nav-item.elite-item:hover,
.bottom-nav-item.elite-item:active {
    background: #facc15; /* Lighter gold on touch */
}
