/* ============================================================
   VALORANT ESPORTS WEB — PREMIUM ENHANCED STYLESHEET
   ============================================================ */

/* ── Base and Variables ── */
:root {
    --val-red: #ff4655;
    --val-dark: #111111;
    --val-darker: #0f1923;
    --val-white: #ece8e1;
    --val-grey: #8b978f;
    --val-cyan: #00d4ff;
    --val-red-glow: rgba(255, 70, 85, 0.4);
    --val-red-glow-soft: rgba(255, 70, 85, 0.2);
    --font-heading: 'Barlow Condensed', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

/* 17. Smooth scroll */
html {
    scroll-padding-top: 100px;
    scroll-behavior: smooth;
}

/* 16. Selection color */
::selection {
    background: var(--val-red);
    color: var(--val-white);
}
::-moz-selection {
    background: var(--val-red);
    color: var(--val-white);
}

/* 6. Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--val-darker);
}
::-webkit-scrollbar-thumb {
    background: var(--val-red);
    border-radius: 5px;
    border: 2px solid var(--val-darker);
}
::-webkit-scrollbar-thumb:hover {
    background: #ff6673;
}

/* 1. Custom cursor + 10. Particle grid background */
body {
    background-color: var(--val-darker);
    color: var(--val-white);
    font-family: var(--font-body);
    overflow-x: hidden;
    cursor: crosshair;
    /* 10. Animated dot grid pattern */
    background-image:
        radial-gradient(rgba(255, 70, 85, 0.07) 1px, transparent 1px),
        radial-gradient(rgba(255, 70, 85, 0.05) 1px, transparent 1px);
    background-size: 40px 40px, 80px 80px;
    background-position: 0 0, 20px 20px;
    animation: bgShift 20s linear infinite;
}

@keyframes bgShift {
    0%   { background-position: 0 0, 20px 20px; }
    100% { background-position: 40px 40px, 60px 60px; }
}

/* 1b. CSS-only animated crosshair cursor overlay (attach via JS to follow mouse, or use as a fixed center reticle) */
body::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 2px;
    pointer-events: none;
    z-index: 99999;
    opacity: 0;
    /* Hidden by default — activate via .cursor-active on body if desired */
}

/* Typography */
h1, h2, h3, .logo-text, .section-title {
    font-family: var(--font-heading);
    text-transform: uppercase;
}

/* ── Navbar — 4. Glassmorphism upgrade ── */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 25, 35, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 1000;
    border-bottom: 2px solid var(--val-red);
    box-shadow:
        0 1px 0 rgba(255, 70, 85, 0.3),
        0 4px 30px rgba(0, 0, 0, 0.4),
        0 1px 20px rgba(255, 70, 85, 0.1);
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

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

.logo-text {
    font-size: 2rem;
    color: var(--val-red);
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(255, 70, 85, 0.4);
    transition: text-shadow 0.3s ease;
}

.logo-text:hover {
    text-shadow: 0 0 30px rgba(255, 70, 85, 0.7), 0 0 60px rgba(255, 70, 85, 0.3);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

@media (min-width: 769px) {
    .nav-container {
        position: relative;
    }
    .nav-links {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}


.nav-links a {
    color: var(--val-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s, text-shadow 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--val-red), #ff8a94);
    transition: width 0.3s ease;
    box-shadow: 0 0 8px rgba(255, 70, 85, 0.5);
}

.nav-links a:hover {
    color: var(--val-red);
    text-shadow: 0 0 10px rgba(255, 70, 85, 0.3);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ── Hero Section ── */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(-45deg, #0f1923, #111111, #1a0a0c, #0a1520);
    background-size: 400% 400%;
    animation: heroGradient 12s ease infinite;
    overflow: hidden;
}

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

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100%;
    height: 200%;
    background-color: var(--val-red);
    transform: rotate(25deg);
    z-index: 0;
    opacity: 0.05;
}

/* Subtle scan-line overlay for the hero */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
    pointer-events: none;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
}

.hero-logo {
    margin-bottom: 2rem;
}

.goat-logo-placeholder {
    font-size: 6rem;
    background-color: var(--val-red);
    width: 150px;
    height: 150px;
    line-height: 150px;
    border-radius: 50%;
    margin: 0 auto;
    border: 4px solid var(--val-white);
    box-shadow:
        0 0 30px rgba(255, 70, 85, 0.4),
        0 0 60px rgba(255, 70, 85, 0.15),
        inset 0 0 20px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
    animation: logoPulse 3s ease-in-out infinite;
}

.goat-logo-placeholder:hover {
    box-shadow:
        0 0 50px rgba(255, 70, 85, 0.6),
        0 0 100px rgba(255, 70, 85, 0.3),
        inset 0 0 20px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
}

@keyframes logoPulse {
    0%, 100% { box-shadow: 0 0 30px rgba(255, 70, 85, 0.4), 0 0 60px rgba(255, 70, 85, 0.15); }
    50%      { box-shadow: 0 0 45px rgba(255, 70, 85, 0.6), 0 0 80px rgba(255, 70, 85, 0.25); }
}

/* 2. Hero title with glitch effect on hover */
.hero-title {
    font-size: 5rem;
    margin-bottom: 1rem;
    letter-spacing: 4px;
    text-shadow: 4px 4px 0 var(--val-red);
    animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: inline-block;
    transition: text-shadow 0.3s;
}

.hero-title:hover {
    animation: glitch 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
}

@keyframes glitch {
    0% {
        text-shadow: 4px 4px 0 var(--val-red);
        transform: translate(0);
    }
    10% {
        text-shadow: -3px -2px 0 var(--val-cyan), 3px 2px 0 var(--val-red);
        transform: translate(-2px, 1px);
    }
    20% {
        text-shadow: 3px 3px 0 var(--val-red), -3px -3px 0 var(--val-cyan);
        transform: translate(2px, -1px);
        clip-path: inset(20% 0 40% 0);
    }
    30% {
        text-shadow: -2px 1px 0 var(--val-cyan), 2px -1px 0 var(--val-red);
        transform: translate(0);
        clip-path: inset(60% 0 5% 0);
    }
    40% {
        text-shadow: 4px 4px 0 var(--val-red);
        transform: translate(3px, 0);
        clip-path: inset(10% 0 70% 0);
    }
    50% {
        text-shadow: -3px 0 0 var(--val-cyan), 3px 0 0 var(--val-red);
        transform: translate(-1px, 2px);
        clip-path: none;
    }
    60% {
        text-shadow: 2px -2px 0 var(--val-red), -2px 2px 0 var(--val-cyan);
        transform: translate(0);
    }
    70% {
        text-shadow: 4px 4px 0 var(--val-red);
        transform: translate(-2px, -1px);
        clip-path: inset(40% 0 20% 0);
    }
    80% {
        text-shadow: -1px 3px 0 var(--val-cyan), 1px -3px 0 var(--val-red);
        transform: translate(1px, 0);
        clip-path: none;
    }
    90% {
        text-shadow: 3px 1px 0 var(--val-red);
        transform: translate(0, 1px);
    }
    100% {
        text-shadow: 4px 4px 0 var(--val-red);
        transform: translate(0);
        clip-path: none;
    }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--val-grey);
    margin-bottom: 3rem;
    animation: fadeIn 1.5s ease;
}

/* 7. Enhanced CTA buttons with pulse and glow */
.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background-color: var(--val-red);
    color: var(--val-white);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, background-color 0.2s, box-shadow 0.3s;
    border: 1px solid var(--val-red);
    animation: ctaPulse 2.5s ease-in-out infinite;
    cursor: pointer;
}

@keyframes ctaPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.03); }
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--val-white);
    transition: left 0.3s ease;
    z-index: -1;
}

.cta-button:hover {
    color: var(--val-darker);
    box-shadow:
        0 0 20px rgba(255, 70, 85, 0.5),
        0 0 40px rgba(255, 70, 85, 0.25),
        0 0 80px rgba(255, 70, 85, 0.1);
    animation: none;
    transform: scale(1.05);
}

.cta-button:hover::before {
    left: 0;
}

/* ── Sections ── */
.roster-section, .about-section {
    padding: 100px 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 4rem;
    color: var(--val-red);
    position: relative;
    display: inline-block;
    text-shadow: 0 0 20px rgba(255, 70, 85, 0.2);
}

/* 5. Animated section dividers — pulsing glow */
.section-line {
    height: 4px;
    width: 100px;
    background-color: var(--val-white);
    margin-top: 1rem;
    border-radius: 2px;
    animation: sectionLinePulse 2s ease-in-out infinite;
}

@keyframes sectionLinePulse {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 70, 85, 0.2), 0 0 10px rgba(255, 70, 85, 0.1);
    }
    50% {
        box-shadow: 0 0 15px rgba(255, 70, 85, 0.6), 0 0 30px rgba(255, 70, 85, 0.3), 0 0 45px rgba(255, 70, 85, 0.15);
    }
}

/* ── Roster Grid ── */
.roster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* 3. Player cards with neon glow + shimmer */
.player-card {
    background-color: var(--val-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

/* Shimmer pseudo-element */
.player-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255, 255, 255, 0.03) 30%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.03) 70%,
        transparent 100%
    );
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    z-index: 5;
    pointer-events: none;
}

.player-card:hover::before {
    left: 125%;
}

.player-card:hover {
    border-color: var(--val-red);
    box-shadow:
        0 0 30px rgba(255, 70, 85, 0.4),
        0 0 60px rgba(255, 70, 85, 0.2),
        0 10px 40px rgba(0, 0, 0, 0.4);
}

.player-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 30px;
    background-color: var(--val-red);
    clip-path: polygon(100% 0, 0% 100%, 100% 100%);
    z-index: 3;
}

/* 11. Enhanced player image zoom on hover */
.player-image {
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    transition: transform 0.5s ease;
}

.player-card:hover .player-image {
    transform: scale(1.05);
}

.bg-red { background-color: #3b191c; }
.bg-black { background-color: #1a1a1a; }

.player-info {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.player-role {
    color: var(--val-red);
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-shadow: 0 0 8px rgba(255, 70, 85, 0.3);
}

.player-name {
    font-size: 2.5rem;
    margin: 0.5rem 0;
    transition: text-shadow 0.3s;
}

.player-card:hover .player-name {
    text-shadow: 0 0 15px rgba(255, 70, 85, 0.4);
}

.player-mains {
    color: var(--val-grey);
    font-size: 0.9rem;
}

/* ── About Section ── */
.about-section {
    background-color: var(--val-white);
    color: var(--val-darker);
    max-width: 100%;
    padding: 100px 10%;
    position: relative;
    clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
}

.about-text h2 {
    font-size: 4rem;
    color: var(--val-red);
    margin-bottom: 2rem;
}

.about-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 800px;
    margin-bottom: 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-box {
    background-color: var(--val-darker);
    color: var(--val-white);
    padding: 2rem;
    text-align: center;
    border-left: 4px solid var(--val-red);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 70, 85, 0.15);
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--val-red);
    text-shadow: 0 0 20px rgba(255, 70, 85, 0.3);
}

.stat-label {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ── 8. Philosophy Cards — 3D tilt ── */
.philosophy-card {
    perspective: 800px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    transform-style: preserve-3d;
}

.philosophy-card:hover {
    transform: rotateX(5deg) rotateY(-5deg) translateY(-5px);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 70, 85, 0.15);
}

/* ── Footer ── */
.footer {
    padding: 4rem 2rem;
    text-align: center;
    background-color: var(--val-dark);
    border-top: 1px solid rgba(255, 70, 85, 0.2);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--val-red), transparent);
    box-shadow: 0 0 15px rgba(255, 70, 85, 0.4);
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--val-red);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(255, 70, 85, 0.3);
}

.social-links {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-link {
    color: var(--val-white);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s, text-shadow 0.3s, transform 0.3s;
}

.social-link:hover {
    color: var(--val-red);
    text-shadow: 0 0 10px rgba(255, 70, 85, 0.4);
    transform: translateY(-2px);
}

.copyright {
    color: var(--val-grey);
    font-size: 0.9rem;
}

/* ── Legacy Section ── */
.legacy-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.legacy-column h3 {
    font-size: 2.5rem;
    color: var(--val-white);
    margin-bottom: 2rem;
    border-bottom: 2px solid rgba(255, 70, 85, 0.3);
    padding-bottom: 1rem;
}

.match-list, .milestone-list {
    list-style: none;
    padding: 0;
}

/* 12. Match list hover with left border glow */
.match-list li, .milestone-list li {
    background-color: var(--val-dark);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--val-grey);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    transition: transform 0.2s, border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.match-list li:hover, .milestone-list li:hover {
    transform: translateX(10px);
    border-left-color: var(--val-red);
    box-shadow: -4px 0 15px rgba(255, 70, 85, 0.3), 0 4px 15px rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 70, 85, 0.03);
}

.match-result {
    font-family: var(--font-heading);
    padding: 0.2rem 0.8rem;
    border-radius: 4px;
    margin-right: 1rem;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.win {
    background-color: var(--val-red);
    color: var(--val-white);
    box-shadow: 0 0 10px rgba(255, 70, 85, 0.3);
}

.loss {
    background-color: #333;
    color: var(--val-grey);
}

.match-score {
    margin-left: auto;
    font-weight: 800;
    color: var(--val-white);
}

/* 9. Trophy hover — float/bounce animation */
.milestone-list li {
    cursor: default;
}

.milestone-list li:hover {
    transform: translateX(10px);
}

/* Trophy emoji float animation (applied to spans or first-child text) */
@keyframes trophyFloat {
    0%, 100% { transform: translateY(0); }
    25%      { transform: translateY(-6px) rotate(-3deg); }
    50%      { transform: translateY(-10px) rotate(0deg); }
    75%      { transform: translateY(-6px) rotate(3deg); }
}

.milestone-list li:hover::first-letter {
    display: inline-block;
    animation: trophyFloat 1s ease-in-out infinite;
}

/* ── Animations ── */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 15. Typing cursor blink */
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background-color: var(--val-red);
    margin-left: 4px;
    animation: blink 0.8s step-end infinite;
    vertical-align: text-bottom;
}

/* ── Match Cards ── */
.match-card {
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--val-dark);
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 2rem;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.3s;
}

.match-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.match-card.featured {
    border-color: var(--val-red);
    box-shadow: 0 0 15px rgba(255, 70, 85, 0.2);
}

.match-card.featured:hover {
    box-shadow: 0 0 25px rgba(255, 70, 85, 0.4), 0 0 50px rgba(255, 70, 85, 0.15);
}

.match-card-team-1, .match-card-team-2 {
    flex: 1;
    font-family: var(--font-heading);
    font-size: 2rem;
}

.match-card-team-1 {
    text-align: right;
    color: var(--val-white);
}

.match-card-team-2 {
    text-align: left;
    color: var(--val-white);
}

.match-card-info {
    flex: 0 0 220px;
    text-align: center;
    position: relative;
    padding: 0 1rem;
}

.match-card-badge {
    flex: 0 0 100px;
    text-align: right;
}

/* ── Fade In Up Animations ── */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── FAQ Accordion Styles ── */
.faq-item {
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--val-red);
    background-color: var(--val-dark);
    border-radius: 0 8px 8px 0;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: -4px 0 15px rgba(255, 70, 85, 0.2);
}

.faq-question {
    padding: 1.5rem;
    font-size: 1.4rem;
    color: var(--val-white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    user-select: none;
    transition: background-color 0.2s;
}

.faq-question:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.faq-icon {
    color: var(--val-red);
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.faq-answer-inner {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--val-grey);
    line-height: 1.6;
}

/* ── 13. Loading Screen ── */
.loading-screen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: linear-gradient(135deg, var(--val-darker) 0%, var(--val-dark) 50%, #1a0a0c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-screen::before {
    content: '⚡';
    font-size: 5rem;
    animation: loadingPulse 1.2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 70, 85, 0.5));
}

.loading-screen::after {
    content: 'LOADING';
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 8px;
    color: var(--val-red);
    margin-top: 2rem;
    animation: loadingTextPulse 1.2s ease-in-out infinite alternate;
}

@keyframes loadingPulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50%      { transform: scale(1.2); opacity: 1; }
}

@keyframes loadingTextPulse {
    0%   { opacity: 0.4; letter-spacing: 8px; }
    100% { opacity: 1; letter-spacing: 12px; }
}

/* ── 14. Mobile Menu Button — Animated Hamburger ── */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--val-white);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
    transform-origin: center;
}

.mobile-menu-btn:hover span {
    background-color: var(--val-red);
}

/* Active / open state */
.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--val-red);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--val-red);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .mobile-menu-btn {
        display: flex;
    }
    .hero-title {
        font-size: 3rem;
    }
    .section-title {
        font-size: 3rem;
    }
    .about-section {
        clip-path: none;
        padding: 50px 2rem;
    }
    .legacy-container {
        grid-template-columns: 1fr;
    }
    .match-card {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    .match-card-team-1 {
        text-align: center;
        font-size: 2.5rem;
    }
    .match-card-team-2 {
        text-align: center;
        font-size: 1.8rem;
    }
    .match-card-info {
        flex: auto;
    }
    .match-card-badge {
        flex: auto;
        text-align: center;
    }
    
    /* Přidané responzivní opravy pro mobil */
    .roster-grid, .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section-padding {
        padding: 50px 1.5rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    /* Zakázání náročné CSS animace na mobilu */
    .hero-grid-lines {
        animation: none;
    }
}

/* ── Utility & Micro-interactions ── */

/* Link hover glow for all anchors */
a {
    transition: color 0.3s ease;
}

/* Subtle focus styles for accessibility */
a:focus-visible,
button:focus-visible,
.cta-button:focus-visible {
    outline: 2px solid var(--val-red);
    outline-offset: 3px;
}

/* Image rendering quality */
img {
    image-rendering: -webkit-optimize-contrast;
}


/* ── Particle Canvas ── */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

/* ── Hero Grid Lines ── */
.hero-grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 70, 85, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 70, 85, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    animation: gridShift 20s linear infinite;
}

@keyframes gridShift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

/* ── Countdown Timer ── */
.match-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    margin: 1rem 0;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 70, 85, 0.1);
    border: 1px solid rgba(255, 70, 85, 0.3);
    padding: 0.5rem 1rem;
    min-width: 70px;
    border-radius: 4px;
}

.countdown-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--val-white);
    line-height: 1;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 70, 85, 0.5);
}

.countdown-label {
    font-size: 0.7rem;
    color: var(--val-grey);
    letter-spacing: 2px;
    margin-top: 4px;
}

.countdown-separator {
    font-size: 2rem;
    color: var(--val-red);
    font-weight: 900;
    animation: blink 1s ease-in-out infinite;
}

.countdown-live {
    font-size: 1.5rem;
    color: var(--val-red);
    font-weight: 900;
    letter-spacing: 3px;
    animation: ctaPulse 1.5s ease-in-out infinite;
}

/* ── Navbar Scroll State ── */
.navbar-scrolled {
    background: rgba(15, 25, 35, 0.95) !important;
    box-shadow: 0 4px 30px rgba(255, 70, 85, 0.2), 0 1px 0 rgba(255, 70, 85, 0.5) !important;
}

/* ── Active Nav Link ── */
.nav-links a.active-link {
    color: var(--val-red);
}
.nav-links a.active-link::after {
    width: 100%;
}

/* ── Hero Logo Glow Pulse ── */
.goat-logo-image {
    animation: logoPulse 3s ease-in-out infinite;
}
@keyframes logoPulse {
    0%, 100% { box-shadow: 0 0 30px rgba(255, 70, 85, 0.4); }
    50% { box-shadow: 0 0 50px rgba(255, 70, 85, 0.7), 0 0 80px rgba(255, 70, 85, 0.3); }
}

/* ── Scroll Progress Bar ── */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 10001;
}

.scroll-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--val-red), #ff8a65, var(--val-red));
    background-size: 200% 100%;
    animation: progressShimmer 2s linear infinite;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(255, 70, 85, 0.5);
}

@keyframes progressShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ── Back to Top Button ── */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--val-red);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.4rem;
    font-weight: 900;
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 70, 85, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 70, 85, 0.6);
    background: #ff6070;
}

/* ── Scroll Reveal Animations ── */
.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.revealed,
.reveal-right.revealed,
.reveal-scale.revealed {
    opacity: 1;
    transform: translateX(0) scale(1);
}

/* =========================================
   EXTREME EFFECTS (BRUTAL UPGRADE)
   ========================================= */

/* 1. Custom Cursor - odstraněn na žádost uživatele */

/* 2. Holographic Glare for Player Cards */
.player-card {
    position: relative;
    overflow: hidden; /* Ensure glare stays inside */
}

.card-glare {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        105deg,
        transparent 20%,
        rgba(255, 255, 255, 0.2) 25%,
        transparent 30%
    );
    transform: translate(-50%, -50%) rotate(0deg);
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s;
}

.player-card:hover .card-glare {
    opacity: 1;
}

/* Screen Shake */
@keyframes screenShake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}

body.shake-active {
    animation: screenShake 0.5s infinite;
}

/* Intense Glitch */
.hero-title.intense-glitch {
    animation: glitch 0.1s linear infinite !important;
    text-shadow: 
        4px 4px 0px rgba(0, 255, 255, 0.8),
        -4px -4px 0px rgba(255, 0, 0, 0.8) !important;
}

/* MARQUEE BANNER */
.marquee-container {
    width: 100%;
    overflow: hidden;
    background: var(--val-red);
    color: var(--val-white);
    font-family: var(--font-heading);
    font-size: 2.5rem;
    padding: 10px 0;
    white-space: nowrap;
    position: relative;
    border-top: 2px solid var(--val-white);
    border-bottom: 2px solid var(--val-white);
    transform: rotate(-1.5deg) scale(1.05);
    z-index: 10;
    box-shadow: 0 0 30px rgba(255,70,85,0.4);
    margin: 40px 0;
}

.marquee-content {
    display: inline-block;
    animation: marquee 15s linear infinite;
    letter-spacing: 5px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 3D TILT TWEAKS */
.player-card {
    transform-style: preserve-3d;
}

/* GHOST CURSOR */
.ghost-cursor {
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(255,70,85,0.8) 0%, rgba(255,70,85,0) 70%);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 999999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s;
    mix-blend-mode: screen;
}
.ghost-cursor.active {
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(83,252,24,0.6) 0%, rgba(83,252,24,0) 70%);
}

/* LOADING SCREEN GLITCH */
.loading-screen {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--val-darker);
    z-index: 9999999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out;
}
.loading-logo {
    font-family: var(--font-heading);
    font-size: 8rem;
    color: var(--val-red);
    animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
}

/* LANG SWITCHER */
.lang-btn {
    background: none;
    border: none;
    color: var(--val-grey);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s, text-shadow 0.3s;
    letter-spacing: 1px;
    text-decoration: none;
}
.lang-btn:hover {
    color: var(--val-white);
}
.lang-btn.active-lang {
    color: var(--val-red);
    text-shadow: 0 0 10px rgba(255, 70, 85, 0.4);
}
