:root {
    --bg-dark: #050505;
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --accent-primary: #9146FF;
    /* Twitch-like purple */
    --accent-secondary: #00f3ff;
    /* Cyan/Electric Blue */
    --accent-glow: rgba(145, 70, 255, 0.5);
    --font-heading: 'Russo One', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

/* Selection */
::selection {
    background: var(--accent-primary);
    color: white;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(145, 70, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 243, 255, 0.03) 0%, transparent 40%);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #fff, var(--text-muted));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.accent {
    color: var(--accent-primary);
    /* For gradient text where simple color doesn't work */
    -webkit-text-fill-color: var(--accent-primary);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    position: relative;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: var(--transition);
    opacity: 0.7;
    letter-spacing: 1px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-primary);
    transition: var(--transition);
    box-shadow: 0 0 10px var(--accent-primary);
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
    opacity: 1;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    /* Modern rounded style */
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-twitch {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 0 20px rgba(145, 70, 255, 0.3);
}

.btn-twitch:hover {
    background: #7a3bdc;
    box-shadow: 0 0 30px rgba(145, 70, 255, 0.6);
    transform: translateY(-2px);
}

.btn-primary {
    background: white;
    color: black;
}

.btn-primary:hover {
    background: var(--accent-secondary);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.5);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-donate {
    background: linear-gradient(135deg, #ff0055, #ff5500);
    color: white;
    font-size: 1.1rem;
    padding: 1rem 3rem;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(255, 85, 0, 0.3);
}

.btn-donate:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 15px 50px rgba(255, 85, 0, 0.5);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    /* Offset fixed navbar */
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Mesh gradient effect */
    background:
        radial-gradient(circle at 15% 50%, rgba(145, 70, 255, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(0, 243, 255, 0.08), transparent 25%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 8vw;
    line-height: 0.9;
    margin-bottom: 1rem;
    background: linear-gradient(to bottom, #fff 40%, rgba(255, 255, 255, 0.4));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
}

.subtitle {
    font-size: 1.5rem;
    color: var(--accent-secondary);
    letter-spacing: 6px;
    margin-bottom: 4rem;
    text-transform: uppercase;
    font-weight: 600;
    min-height: 1.6em;
    /* Prevent layout shift on type */
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Page Headers */
.page-header {
    padding-top: 140px;
    padding-bottom: 4rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(145, 70, 255, 0.05) 0%, transparent 100%);
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    text-shadow: 0 0 30px rgba(145, 70, 255, 0.3);
}

.page-header p {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Sections Global */
.section {
    padding: 8rem 5%;
}

.container {
    max-width: 1400px;
    /* Wider container for premium feel */
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 5rem;
    text-align: center;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-secondary);
    box-shadow: 0 0 15px var(--accent-secondary);
}

/* Glass Cards (Specs, Schedule) */
.spec-card,
.schedule-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* Tilt effect hook */
.tilt-card {
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.spec-card:hover,
.schedule-card:hover {
    border-color: rgba(145, 70, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(145, 70, 255, 0.05);
    /* Transform handled by JS for tilt, or simple hover if JS fails */
    transform: translateY(-5px);
}

.spec-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.spec-card h3 {
    color: var(--accent-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.spec-card p {
    font-weight: 500;
    font-size: 1.2rem;
    color: white;
}

/* Specs Grid */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Schedule Grid */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.schedule-card.active-day {
    border: 1px solid var(--accent-primary);
    box-shadow: 0 0 30px rgba(145, 70, 255, 0.2);
    background: rgba(145, 70, 255, 0.05);
}

.schedule-card .day {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: white;
    font-family: var(--font-heading);
}

.schedule-card .time {
    color: var(--accent-secondary);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

.schedule-card .game {
    color: var(--text-muted);
    font-size: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #000;
}

.gallery-thumb {
    height: 300px;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0.8;
}

.gallery-item:hover .gallery-thumb {
    transform: scale(1.1);
    opacity: 0.4;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    font-size: 4rem;
    color: white;
    opacity: 0;
    transition: all 0.4s ease;
    filter: drop-shadow(0 0 20px var(--accent-secondary));
}

.gallery-item:hover .play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.gallery-item h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, black 0%, transparent 100%);
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.gallery-item:hover h3 {
    transform: translateY(0);
}

/* Donate Section */
.donate-section {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0d001a 100%);
    text-align: center;
    position: relative;
}

.donate-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 6rem 2rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: inline-block;
    max-width: 900px;
    width: 100%;
    backdrop-filter: blur(20px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.donate-card h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

/* Footer */
footer {
    padding: 4rem 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    text-align: center;
    font-size: 0.9rem;
    background: #020202;
}

/* Animations & Utilities */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Glitch Effect Stronger */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 #00f3ff;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 #ff0055;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(31px, 9999px, 94px, 0);
        transform: skew(0.85deg);
    }

    5% {
        clip: rect(70px, 9999px, 7px, 0);
        transform: skew(0.78deg);
    }

    10% {
        clip: rect(24px, 9999px, 94px, 0);
        transform: skew(0.24deg);
    }

    15% {
        clip: rect(4px, 9999px, 86px, 0);
        transform: skew(0.39deg);
    }

    20% {
        clip: rect(35px, 9999px, 60px, 0);
        transform: skew(0.53deg);
    }

    25% {
        clip: rect(69px, 9999px, 20px, 0);
        transform: skew(0.33deg);
    }

    30% {
        clip: rect(54px, 9999px, 4px, 0);
        transform: skew(0.48deg);
    }

    35% {
        clip: rect(66px, 9999px, 77px, 0);
        transform: skew(0.96deg);
    }

    40% {
        clip: rect(10px, 9999px, 12px, 0);
        transform: skew(0.53deg);
    }

    45% {
        clip: rect(76px, 9999px, 4px, 0);
        transform: skew(0.41deg);
    }

    50% {
        clip: rect(96px, 9999px, 63px, 0);
        transform: skew(0.38deg);
    }

    55% {
        clip: rect(59px, 9999px, 91px, 0);
        transform: skew(0.04deg);
    }

    60% {
        clip: rect(81px, 9999px, 87px, 0);
        transform: skew(0.96deg);
    }

    65% {
        clip: rect(3px, 9999px, 92px, 0);
        transform: skew(0.81deg);
    }

    70% {
        clip: rect(28px, 9999px, 93px, 0);
        transform: skew(0.25deg);
    }

    75% {
        clip: rect(33px, 9999px, 3px, 0);
        transform: skew(0.2deg);
    }

    80% {
        clip: rect(40px, 9999px, 5px, 0);
        transform: skew(0.14deg);
    }

    85% {
        clip: rect(4px, 9999px, 5px, 0);
        transform: skew(0.95deg);
    }

    90% {
        clip: rect(26px, 9999px, 69px, 0);
        transform: skew(0.83deg);
    }

    95% {
        clip: rect(98px, 9999px, 92px, 0);
        transform: skew(0.19deg);
    }

    100% {
        clip: rect(30px, 9999px, 30px, 0);
        transform: skew(0.49deg);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(65px, 9999px, 21px, 0);
        transform: skew(0.85deg);
    }

    5% {
        clip: rect(81px, 9999px, 86px, 0);
        transform: skew(0.78deg);
    }

    10% {
        clip: rect(13px, 9999px, 7px, 0);
        transform: skew(0.24deg);
    }

    15% {
        clip: rect(95px, 9999px, 94px, 0);
        transform: skew(0.39deg);
    }

    20% {
        clip: rect(51px, 9999px, 57px, 0);
        transform: skew(0.53deg);
    }

    25% {
        clip: rect(34px, 9999px, 62px, 0);
        transform: skew(0.33deg);
    }

    30% {
        clip: rect(53px, 9999px, 95px, 0);
        transform: skew(0.48deg);
    }

    35% {
        clip: rect(100px, 9999px, 59px, 0);
        transform: skew(0.96deg);
    }

    40% {
        clip: rect(48px, 9999px, 90px, 0);
        transform: skew(0.53deg);
    }

    45% {
        clip: rect(3px, 9999px, 20px, 0);
        transform: skew(0.41deg);
    }

    50% {
        clip: rect(5px, 9999px, 57px, 0);
        transform: skew(0.38deg);
    }

    55% {
        clip: rect(67px, 9999px, 1px, 0);
        transform: skew(0.04deg);
    }

    60% {
        clip: rect(58px, 9999px, 90px, 0);
        transform: skew(0.96deg);
    }

    65% {
        clip: rect(45px, 9999px, 71px, 0);
        transform: skew(0.81deg);
    }

    70% {
        clip: rect(88px, 9999px, 2px, 0);
        transform: skew(0.25deg);
    }

    75% {
        clip: rect(62px, 9999px, 56px, 0);
        transform: skew(0.2deg);
    }

    80% {
        clip: rect(2px, 9999px, 91px, 0);
        transform: skew(0.14deg);
    }

    85% {
        clip: rect(36px, 9999px, 92px, 0);
        transform: skew(0.95deg);
    }

    90% {
        clip: rect(64px, 9999px, 47px, 0);
        transform: skew(0.83deg);
    }

    95% {
        clip: rect(3px, 9999px, 14px, 0);
        transform: skew(0.19deg);
    }

    100% {
        clip: rect(4px, 9999px, 11px, 0);
        transform: skew(0.49deg);
    }
}

/* Response for Mobile */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 15vw;
    }

    .section {
        padding: 4rem 5%;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .spec-card,
    .schedule-card {
        padding: 1.5rem;
    }
}