/* ==========================================
   Kitsune Esports - Modern Design System
   Inspired by Cloud9, Bravado, Goliath
   ========================================== */

:root {
    /* Kitsune Esports Brand Colors */
    --primary: #FF9B35;
    --secondary: #FF9B35;
    --dark: #1A1A1C;
    --dark-alt: #111113;
    --dark-card: #222226;
    --dark-deeper: #0C0C0E;
    --dark-mid: #161618;
    --accent: #FF9B35;
    --text-primary: #FFFFFF;
    --text-secondary: #B8B8C0;
    --text-muted: #606068;

    /* Brand accents */
    --border-accent: rgba(255, 155, 53, 0.15);
    --border-subtle: rgba(255, 255, 255, 0.05);
    --font-display: 'Barlow Condensed', 'Inter', sans-serif;

    /* Spacing */
    --container-width: 1400px;
    --section-padding: 120px 0;
    --card-padding: 32px;

    /* Effects */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    --glow: 0 0 30px rgba(255, 155, 53, 0.25);
    --glow-strong: 0 0 50px rgba(255, 155, 53, 0.45);
}

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

html {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%; /* prevent iOS font inflation */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--dark-deeper);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Subtle film grain — makes dark backgrounds feel premium, not flat */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    opacity: 0.018;
    pointer-events: none;
    z-index: 9998;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    letter-spacing: 0.03em;
}
h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: 0.02em;
}
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================
   NAVIGATION
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(8, 8, 10, 0.92);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    z-index: 1000;
    border-bottom: 1px solid var(--border-accent);
    transition: background 0.4s ease, border-color 0.4s ease;
}

.navbar.scrolled {
    background: rgba(6, 6, 8, 0.98);
    border-bottom-color: rgba(255, 155, 53, 0.25);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
}

.nav-brand a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-brand .nav-logo {
    height: 40px;
    width: auto;
    transition: var(--transition);
}

.nav-brand .nav-logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), rgba(255, 155, 53, 0.4));
    transition: var(--transition);
    box-shadow: 0 0 8px rgba(255, 155, 53, 0.5);
}

.nav-link:hover {
    color: var(--primary);
}

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

/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-arrow {
    font-size: 10px;
    transition: var(--transition);
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 20px;
    background: rgba(8, 8, 10, 0.99);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-accent);
    border-top: 2px solid var(--primary);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 155, 53, 0.05);
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-link {
    display: block;
    padding: 14px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.nav-dropdown-link:hover {
    color: var(--text-primary);
    background: rgba(255, 155, 53, 0.1);
    border-left-color: var(--primary);
    padding-left: 24px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-alt) 50%, var(--dark) 100%);
    opacity: 0.95;
}

.hero-bg::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    opacity: 0.15;
    animation: float 20s infinite alternate;
}

.hero-bg::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
    opacity: 0.1;
    animation: float 15s infinite alternate-reverse;
}

@keyframes float {
    from { transform: translate(0, 0) rotate(0deg); }
    to { transform: translate(50px, 50px) rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 900;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    text-shadow: 0 0 80px rgba(255, 107, 53, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255, 155, 53, 0.5);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-family: var(--font-display);
    font-weight: 600;
}

.scroll-arrow {
    width: 22px;
    height: 34px;
    border: 1px solid rgba(255, 155, 53, 0.4);
    border-radius: 15px;
    margin: 10px auto 0;
    position: relative;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    animation: scroll 2s infinite;
    opacity: 0.7;
}

@keyframes scroll {
    0%, 100% { opacity: 0; transform: translateX(-50%) translateY(0); }
    50% { opacity: 1; transform: translateX(-50%) translateY(10px); }
}

/* Animations */
.team-card,
.player-card,
.stat-box {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow var(--transition), border-color var(--transition);
}

.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Stagger children in a grid */
.teams-grid .team-card:nth-child(2),
.players-grid .player-card:nth-child(2),
.stats-grid .stat-box:nth-child(2) { transition-delay: 0.08s; }

.teams-grid .team-card:nth-child(3),
.players-grid .player-card:nth-child(3),
.stats-grid .stat-box:nth-child(3) { transition-delay: 0.16s; }

.teams-grid .team-card:nth-child(4),
.players-grid .player-card:nth-child(4),
.stats-grid .stat-box:nth-child(4) { transition-delay: 0.24s; }

.teams-grid .team-card:nth-child(n+5),
.players-grid .player-card:nth-child(n+5) { transition-delay: 0.32s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-block;
    padding: 13px 34px;
    font-size: 13px;
    font-family: var(--font-display);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border: 2px solid transparent;
    border-radius: 3px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary);
    color: #0C0C0E;
    box-shadow: var(--glow);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-strong);
    background: #FFB050;
}

.btn-outline {
    border-color: rgba(255, 155, 53, 0.6);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(255, 155, 53, 0.1);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(255, 155, 53, 0.2);
}

.btn-lg {
    padding: 17px 52px;
    font-size: 15px;
}

/* ==========================================
   SECTIONS
   ========================================== */
.main-content {
    padding-top: 70px;
}

.section {
    padding: var(--section-padding);
}

.section-dark {
    background: var(--dark-mid);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

/* Pre-title section label — e.g. "— ROSTER —" */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 16px;
}

/* In a centered section-header, label must be on its own line */
.section-header .section-label {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.section-label::before,
.section-label::after {
    content: '';
    display: block;
    width: 20px;
    height: 1px;
    background: var(--primary);
    opacity: 0.6;
}

.section-title {
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: 0.04em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 17px;
    margin-top: 24px;
}

/* ==========================================
   TEAMS GRID
   ========================================== */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.team-card {
    position: relative;
    background: var(--dark-card);
    border-radius: 6px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    height: 400px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

/* Orange corner triangle — classic esports accent */
.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    border-style: solid;
    border-width: 0 44px 44px 0;
    border-color: transparent var(--primary) transparent transparent;
    z-index: 4;
    opacity: 0.55;
    transition: opacity 0.35s ease;
}

.team-card:hover::before {
    opacity: 1;
}

.team-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.18;
    transition: opacity 0.5s ease, transform 0.6s ease;
}

.team-card:hover .team-card-bg {
    opacity: 0.38;
    transform: scale(1.06);
}

.team-card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: var(--card-padding);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.team-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.team-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
}

.team-game {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 107, 53, 0.2);
    border: 1px solid var(--primary);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    margin-bottom: 12px;
}

.team-name {
    font-size: 32px;
    margin-bottom: 12px;
}

.team-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.team-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    transition: var(--transition);
}

.team-card-link .arrow {
    transition: var(--transition);
}

.team-card:hover .team-card-link .arrow {
    transform: translateX(5px);
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow), 0 0 40px rgba(255, 155, 53, 0.1);
    border-color: rgba(255, 155, 53, 0.25);
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 24px;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.9;
    margin-bottom: 24px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.stat-box {
    background: var(--dark-card);
    padding: 32px;
    border-radius: 0 0 6px 6px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-top: 2px solid var(--primary);
    transition: var(--transition);
    position: relative;
}

.stat-box:hover {
    border-color: rgba(255, 155, 53, 0.4);
    border-top-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 155, 53, 0.08);
}

.stat-number {
    font-size: 48px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================
   CTA SECTION
   ========================================== */
.section-cta {
    background: linear-gradient(135deg, #E8841A 0%, var(--primary) 50%, #FFB050 100%);
    text-align: center;
    padding: 70px 0 !important;
    position: relative;
    overflow: hidden;
}

/* Diagonal stripe texture overlay */
.section-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            -55deg,
            rgba(0,0,0,0) 0px,
            rgba(0,0,0,0) 12px,
            rgba(0,0,0,0.08) 12px,
            rgba(0,0,0,0.08) 14px
        );
    pointer-events: none;
}

/* Glow orb */
.section-cta::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: 10px;
    color: #0C0C0E;
    letter-spacing: 0.06em;
}

.cta-content p {
    font-size: 16px;
    margin-bottom: 28px;
    color: rgba(12, 12, 14, 0.75);
    font-weight: 500;
}

.social-links-large {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.social-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0C0C0E;
    text-decoration: none;
    transition: var(--transition);
    background: rgba(12, 12, 14, 0.12);
    border-radius: 50%;
}

.social-link:hover {
    color: #0C0C0E;
    background: rgba(12, 12, 14, 0.25);
    transform: translateY(-6px) scale(1.1);
}

.social-link svg {
    width: 48px;
    height: 48px;
    fill: currentColor;
}

/* ==========================================
   TEAM DETAIL PAGE
   ========================================== */
.team-hero {
    position: relative;
    padding: 180px 0 120px;
    background-size: cover;
    background-position: center;
}

.team-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10,10,15,0.95) 0%, rgba(26,26,46,0.9) 100%);
}

.team-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 48px;
}

.team-hero-logo {
    flex-shrink: 0;
}

.team-hero-logo img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
}

.team-game-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 107, 53, 0.2);
    border: 1px solid var(--primary);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    margin-bottom: 16px;
}

.team-hero-title {
    font-size: 4rem;
    margin-bottom: 20px;
}

.team-hero-description {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 600px;
}

.team-social {
    display: flex;
    gap: 16px;
}

.social-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
}

/* ==========================================
   PLAYERS GRID
   ========================================== */
.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}

.player-card {
    background: var(--dark-card);
    border-radius: 6px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.04);
    position: relative;
}

/* Corner accent on player cards */
.player-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    border-style: solid;
    border-width: 0 30px 30px 0;
    border-color: transparent var(--primary) transparent transparent;
    z-index: 4;
    opacity: 0.45;
    transition: opacity 0.3s ease;
}

.player-card:hover::before {
    opacity: 0.9;
}

.player-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow), 0 0 30px rgba(255, 155, 53, 0.08);
    border-color: rgba(255, 155, 53, 0.2);
}

.player-card-image {
    position: relative;
    aspect-ratio: 1;
    background: var(--dark-alt);
    overflow: hidden;
}

.player-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.player-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 900;
    color: var(--text-muted);
    background: var(--dark-alt);
}

.player-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    background: rgba(0, 245, 255, 0.9);
    color: var(--dark);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 12px;
}

.player-card-content {
    padding: 24px;
}

.player-ign {
    font-size: 24px;
    margin-bottom: 4px;
}

.player-real-name {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 12px;
}

.player-role {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 107, 53, 0.2);
    border: 1px solid var(--primary);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
}

.player-social {
    display: flex;
    gap: 12px;
}

.player-social a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.player-social a:hover {
    color: var(--primary);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: #070709;
    padding: 80px 0 32px;
    border-top: 1px solid rgba(255, 155, 53, 0.12);
    position: relative;
}

/* Subtle orange accent line at top of footer */
.footer::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

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

.footer-col h3 {
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--primary);
    font-family: var(--font-display);
    letter-spacing: 0.06em;
}

.footer-col h4 {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.footer-col p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

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

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

.footer-col ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

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

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: white;
    font-size: 14px;
}

.newsletter-form input::placeholder {
    color: var(--text-muted);
}

.newsletter-form button {
    padding: 12px 24px;
    background: var(--primary);
    border: none;
    border-radius: 4px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    font-size: 13px;
    letter-spacing: 0.03em;
}

/* ==========================================
   RESPONSIVE — TABLET (≤ 1024px)
   ========================================== */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .teams-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .team-hero-logo img {
        width: 160px;
        height: 160px;
    }
}

/* ==========================================
   RESPONSIVE — MOBILE (≤ 768px)
   ========================================== */
@media (max-width: 768px) {

    /* ---- GLOBAL SPACING ---- */
    :root {
        --section-padding: 72px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    /* ---- NAVBAR ---- */
    .nav-brand .nav-logo {
        height: 32px;
        max-width: 140px;
    }

    .navbar .container {
        padding: 14px 20px;
    }

    .nav-menu {
        position: fixed;
        top: 60px; /* match compressed navbar height */
        left: 0;
        right: 0;
        background: rgba(6, 6, 8, 0.99);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        display: flex;
        flex-direction: column;
        padding: 24px 24px 40px;
        gap: 0;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
        transform: translateX(-100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        border-bottom: 1px solid var(--border-accent);
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-link {
        width: 100%;
        padding: 16px 0;
        font-size: 16px;
        letter-spacing: 0.08em;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    /* Mobile Dropdown */
    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-toggle {
        width: 100%;
        padding: 16px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin-top: 0;
        background: rgba(255, 155, 53, 0.05);
        border: none;
        border-top: none;
        border-left: 2px solid var(--primary);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: none;
    }

    .nav-dropdown.active .nav-dropdown-menu {
        max-height: 300px;
    }

    .nav-dropdown-link {
        padding: 14px 20px;
        font-size: 14px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    /* ---- HERO ---- */
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
        justify-content: center;
        display: flex;
    }

    /* ---- TEAMS — horizontal swipe carousel ---- */
    .teams-grid {
        display: flex;
        grid-template-columns: none; /* override grid */
        overflow-x: auto;
        overflow-y: visible;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 14px;
        padding: 4px 20px 24px;
        margin: 0 -24px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .teams-grid::-webkit-scrollbar { display: none; }

    .teams-grid .team-card {
        flex: 0 0 82vw;
        min-width: 260px;
        max-width: 320px;
        height: 360px;
        scroll-snap-align: start;
        /* disable entrance animation on mobile — can't scroll to trigger */
        opacity: 1 !important;
        transform: none !important;
        transition-delay: 0s !important;
    }

    /* ---- PLAYERS — horizontal swipe carousel ---- */
    .players-grid {
        display: flex;
        grid-template-columns: none;
        overflow-x: auto;
        overflow-y: visible;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 14px;
        padding: 4px 20px 24px;
        margin: 0 -24px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .players-grid::-webkit-scrollbar { display: none; }

    .players-grid .player-card {
        flex: 0 0 72vw;
        min-width: 230px;
        max-width: 290px;
        scroll-snap-align: start;
        opacity: 1 !important;
        transform: none !important;
        transition-delay: 0s !important;
    }

    /* ---- ABOUT ---- */
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-text h2 {
        font-size: clamp(1.8rem, 8vw, 2.8rem);
    }

    /* ---- STAT BOXES ---- */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .stat-box {
        padding: 24px 16px;
        opacity: 1 !important;
        transform: none !important;
    }

    .stat-number {
        font-size: 36px;
    }

    /* ---- TEAM DETAIL PAGE ---- */
    .team-hero-content {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .team-hero-logo img {
        width: 140px;
        height: 140px;
    }

    .team-hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .team-hero-description {
        font-size: 16px;
    }

    .team-social {
        justify-content: center;
    }

    /* ---- CTA ---- */
    .section-cta {
        padding: 60px 0 !important;
    }

    .social-links-large {
        gap: 16px;
    }

    .social-link {
        width: 44px;
        height: 44px;
    }

    .social-link svg {
        width: 40px;
        height: 40px;
    }

    /* ---- FOOTER ---- */
    .footer {
        padding: 52px 0 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    /* ---- SECTION LABEL ---- */
    .section-label {
        font-size: 11px;
        letter-spacing: 0.2em;
    }

    /* ---- MAIN CONTENT ---- */
    .main-content {
        padding-top: 60px;
    }
}

/* ==========================================
   RESPONSIVE — SMALL PHONES (≤ 480px)
   ========================================== */
@media (max-width: 480px) {
    :root {
        --section-padding: 60px 0;
    }

    .container {
        padding: 0 16px;
    }

    /* Wider cards on small phones */
    .teams-grid .team-card {
        flex: 0 0 88vw;
        max-width: 360px;
        height: 340px;
    }

    .players-grid .player-card {
        flex: 0 0 80vw;
        max-width: 320px;
    }

    .stats-grid {
        gap: 10px;
    }

    .stat-box {
        padding: 20px 12px;
    }

    .stat-number {
        font-size: 30px;
    }

    .stat-label {
        font-size: 12px;
    }

    .about-text p {
        font-size: 15px;
    }

    /* Tighten footer on very small screens */
    .footer-grid {
        gap: 28px;
    }
}

/* ==========================================
   TOUCH DEVICE HOVER FIXES
   ========================================== */
/* Remove hover states on touch devices to prevent sticky states */
@media (hover: none) {
    .team-card:hover {
        transform: none;
        box-shadow: var(--shadow);
        border-color: rgba(255, 255, 255, 0.04);
    }

    .team-card:hover .team-card-bg {
        opacity: 0.18;
        transform: none;
    }

    .team-card:hover::before {
        opacity: 0.55;
    }

    .player-card:hover {
        transform: none;
        box-shadow: none;
        border-color: rgba(255, 255, 255, 0.04);
    }

    .player-card:hover::before {
        opacity: 0.45;
    }

    .stat-box:hover {
        transform: none;
        box-shadow: none;
    }
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
