:root {
    --primary: #ffffff;
    --bg-dark: #000000;
    --card-bg: rgba(10, 10, 10, 0.8);
    --text-main: #ffffff;
    --text-gray: #888888;
    --captain-gold: #ffcc00;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
}

#bgCanvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* HEADER */
header {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav { display: flex; justify-content: space-between; align-items: center; }
.logo-area { display: flex; align-items: center; gap: 15px; }
.header-logo { height: 65px; width: auto; }
.logo-text { font-family: 'Orbitron', sans-serif; font-size: 1.3rem; font-weight: bold; }
.logo-text span { color: var(--text-gray); }

.nav-links { list-style: none; display: flex; align-items: center; }
.nav-links li { margin-left: 30px; }
.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.8rem;
    position: relative;
    padding: 5px 0;
    transition: 0.3s;
    text-transform: uppercase;
}
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0; height: 2px;
    bottom: 0; left: 0;
    background-color: var(--primary);
    transition: 0.3s;
}
.nav-links a:hover::after { width: 100%; }

.btn-join {
    background: var(--primary);
    color: var(--bg-dark) !important;
    padding: 8px 18px;
    border-radius: 2px;
    font-weight: bold;
    transition: 0.3s ease;
}
.btn-join:hover { transform: translateY(-2px); box-shadow: 0 0 15px rgba(255, 255, 255, 0.4); }

/* HERO */
.hero { height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.title { font-family: 'Orbitron', sans-serif; font-size: 5rem; font-weight: 900; line-height: 1; margin-bottom: 20px; }
.highlight { color: var(--primary); }
.subtitle {
    font-family: 'Orbitron', sans-serif;
    color: var(--text-gray);
    font-weight: 300; 
    letter-spacing: 6px;
    margin-bottom: 15px;
    text-transform: uppercase;
}
.hero p { max-width: 600px; margin: 0 auto 60px; color: var(--text-gray); }
.hero-btns { display: flex; justify-content: center; }

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 15px 35px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 2px;
    margin: 0 10px;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
}
.btn-primary { background: var(--primary); color: var(--bg-dark); }
.btn-primary:hover, .btn-secondary:hover { transform: translateY(-5px) scale(1.05); }
.btn-secondary { border: 1px solid var(--primary); color: var(--primary); background: transparent; }
.btn-secondary:hover { background: var(--primary); color: var(--bg-dark); }

/* TITLES */
.section-title { 
    font-family: 'Orbitron', sans-serif; 
    font-size: 2.2rem; 
    font-weight: 700;
    text-align: center; 
    margin: 80px 0 40px; 
    text-transform: uppercase; 
    letter-spacing: 5px;
}
.section-title span { color: var(--text-main); font-weight: 600; text-shadow: 0 0 15px rgba(255, 255, 255, 0.6); }

.sub-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    text-align: center;
    width: 100%;
    margin: 30px 0 20px; 
    color: var(--text-gray);
    font-weight: 300; 
    text-transform: uppercase;
    letter-spacing: 8px;
}

/* STAFF & ROSTER */
.staff-grid { display: flex; justify-content: center; gap: 30px; margin-bottom: 50px; }
.staff-card { width: 300px; border: 1px solid rgba(255, 255, 255, 0.1); }
.staff-tag { font-size: 0.7rem; color: var(--text-gray); font-weight: bold; margin-bottom: 5px; letter-spacing: 2px; }

.roster-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; }
.sub-roster-grid { display: flex; justify-content: center; gap: 15px; width: 100%; }
.sub-card { width: 220px; }

.player-card { background: var(--card-bg); border: 1px solid rgba(255,255,255,0.05); transition: 0.4s; }
.player-card:hover { border-color: var(--primary); transform: translateY(-5px); }
.player-img img { width: 100%; display: block; filter: grayscale(1); transition: 0.4s; }
.player-card:hover img { filter: grayscale(0); }
.player-info { padding: 15px; text-align: center; border-top: 1px solid rgba(255,255,255,0.05); }

.player-tag {
    font-size: 0.6rem;
    background: var(--captain-gold);
    color: black;
    display: inline-block;
    padding: 2px 10px;
    font-weight: 800;
    margin-bottom: 8px;
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.6);
}

.player-info h3 { font-family: 'Orbitron', sans-serif; font-size: 1.1rem; font-weight: 700; text-transform: uppercase; }
.player-info p { color: var(--text-gray); font-size: 0.75rem; font-weight: bold; }

/* MATCHES */
.match-card { background: var(--card-bg); padding: 20px 40px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; border: 1px solid rgba(255,255,255,0.05); }
.match-card.is-latest.win { border-left: 4px solid white; }
.match-card.is-latest.loss { border-left: 4px solid #333; }
.match-card.is-old { border-left: 4px solid #444; }

.match-team { display: flex; align-items: center; gap: 15px; width: 35%; }
.match-team.right { justify-content: flex-end; }
.match-team-logo { width: 40px; height: 40px; object-fit: contain; }
.score { font-family: 'Orbitron', sans-serif; font-size: 1.8rem; font-weight: bold; width: 20%; text-align: center; }
.match-status { width: 10%; text-align: right; font-weight: bold; font-family: 'Orbitron'; }

.reveal { opacity: 0; transform: translateY(30px); transition: 0.8s; }
.reveal.active { opacity: 1; transform: translateY(0); }

footer { padding: 60px 0; margin-top: 100px; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; }
.socials a { color: white; font-size: 1.3rem; margin: 0 15px; opacity: 0.6; transition: 0.3s; }
.socials a:hover { opacity: 1; transform: scale(1.1); }

/* MOBILE */
.menu-toggle { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.menu-toggle .bar { width: 25px; height: 3px; background-color: #fff; transition: 0.3s; }

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .nav-links {
        position: fixed; right: -100%; top: 85px; flex-direction: column;
        background: rgba(0, 0, 0, 0.95); width: 100%; text-align: center;
        transition: 0.3s; padding: 40px 0; backdrop-filter: blur(10px);
    }
    .nav-links.active { right: 0; }
    .nav-links li { margin: 20px 0; }
    .hero-btns { flex-direction: column; gap: 20px; align-items: center; }
    .btn-primary, .btn-secondary { width: 80%; margin: 0; }
    .title { font-size: 3rem; }
    .staff-grid { flex-direction: column; align-items: center; }
    .roster-grid { grid-template-columns: repeat(2, 1fr); }
    .roster-grid .player-card:nth-child(1) { order: 1; }
    .roster-grid .player-card:nth-child(2) { order: 2; }
    .roster-grid .player-card:nth-child(4) { order: 3; }
    .roster-grid .player-card:nth-child(5) { order: 4; }
    .roster-grid .player-card:nth-child(3) { order: 5; grid-column: span 2; width: 50%; justify-self: center; }
    .sub-roster-grid { flex-direction: column; align-items: center; }
    .sub-card { width: 50% !important; }
    .match-card { padding: 15px; display: grid; grid-template-columns: 1fr 0.8fr 1fr; align-items: center; gap: 5px; }
    .match-team { width: 100%; flex-direction: column; gap: 5px; text-align: center; }
    .match-team.right { justify-content: center; }
    .score { width: 100%; font-size: 1.4rem; display: flex; justify-content: center; }
    .match-status { grid-column: span 3; width: 100%; text-align: center; margin-top: 10px; }
}