/* ================= VARIABLES & RESET ================= */
:root {
    --primary: #4e31ff; 
    --primary-hover: #3d23db;
    --bg-dark: #0a0b10;
    --bg-darker: #06060a;
    --bg-light: #ffffff;
    --bg-gray: #f5f5f7;
    --text-dark: #ffffff;
    --text-light: #111111;
    --text-gray: #6b6b7b;
    --border-color: #e5e5e5;
    
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Offset ini penting agar judul tidak tertutup navbar */
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul { list-style: none; }

/* ================= TYPOGRAPHY ================= */
h1, h2, h3, h4, .subtitle, .btn {
    font-family: var(--font-heading);
    text-transform: uppercase;
}

.subtitle {
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 14px;
    margin-bottom: 10px;
    display: block;
}

.highlight { color: var(--primary); }

/* ================= BUTTONS ================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover { background-color: var(--primary-hover); }

.btn-outline {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--border-color);
}
.btn-outline:hover { background-color: var(--bg-gray); }

.btn-text {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-light);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 4px;
    display: inline-block;
}
.btn-text:hover { background-color: var(--bg-gray); }

/* ================= NAVBAR ================= */
.navbar {
    background-color: var(--bg-dark);
    color: var(--text-dark);
    padding: 15px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo img { height: 35px; }

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 1px;
    color: #a0a0a0;
}

.nav-links a:hover, .nav-links a.active { color: var(--text-dark); }
.nav-links a.active { border-bottom: 2px solid var(--primary); padding-bottom: 5px;}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* ================= HERO SECTION (FIXED LAYOUT & VIDEO) ================= */
.hero {
    background-color: var(--bg-gray);
    padding: 80px 5% 60px; /* Padding bawah agar Stats Bar punya pijakan */
    position: relative;
    /* Dihapus: display: flex & overflow: hidden agar layout dan shadow tidak terpotong */
}

.hero-container {
    display: flex;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    align-items: center;
    position: relative;
    z-index: 2; 
    min-height: 70vh; /* Pindahkan pengatur tinggi area Hero ke sini */
    padding-bottom: 50px; /* Jarak ekstra antara teks dan Stats Bar */
}

.hero-content { 
    flex: 0 0 50%; /* Membatasi area teks hanya 50% di sebelah kiri */
    max-width: 650px;
}

.hero-content h1 {
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 20px;
    color: var(--bg-darker);
}

.hero-content .desc {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.hero-btns {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.social-follow {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-gray);
}
.social-follow a {
    color: var(--text-light);
    font-size: 1.2rem;
}
.social-follow a:hover { color: var(--primary); }

/* --- EFEK VIDEO MENYATU --- */
.hero-media {
    position: absolute;
    top: 0;
    right: 0;
    width: 65%; /* Video mengambil 65% area kanan layar */
    height: 100%;
    z-index: 1; /* Berada di belakang konten teks */
    overflow: hidden; /* Mengamankan area video */
    
    /* Efek gradasi: kiri transparan (menyatu abu-abu), kanan terlihat jelas */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 40%);
    mask-image: linear-gradient(to right, transparent 0%, black 40%);
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none; 
    opacity: 0.85; /* Sedikit transparan agar cinematic */
}

/* Stats Bar */
.stats-bar {
    background-color: var(--bg-dark);
    color: white;
    display: flex;
    justify-content: space-around;
    padding: 30px;
    border-radius: 12px;
    max-width: 1200px;
    margin: -40px auto 0; /* Tarik stat bar sedikit menimpa area container atasnya */
    position: relative;
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
}
.stat-item i {
    font-size: 2rem;
    color: var(--primary);
}
.stat-item h3 {
    font-size: 2rem;
    line-height: 1;
}
.stat-item p {
    font-size: 0.8rem;
    color: #a0a0a0;
    letter-spacing: 1px;
}

/* Stats Bar */
.stats-bar {
    background-color: var(--bg-dark);
    color: white;
    display: flex;
    justify-content: space-around;
    padding: 30px;
    border-radius: 12px;
    max-width: 1200px;
    margin: -75px auto 0; /* Tarik stat bar sedikit lebih ke atas menimpa hero */
    position: relative;
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
}
.stat-item i {
    font-size: 2rem;
    color: var(--primary);
}
.stat-item h3 {
    font-size: 2rem;
    line-height: 1;
}
.stat-item p {
    font-size: 0.8rem;
    color: #a0a0a0;
    letter-spacing: 1px;
}

/* ================= LAYOUT ================= */
.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 5%;
}

.split-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}
.dark-header { border-bottom-color: #333; }
.view-all {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-light);
}
.dark-header .view-all { color: var(--text-dark); }

/* ================= ABOUT & NEWS ================= */
.about-col h2 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 20px;
}
.about-col .desc {
    color: var(--text-gray);
    margin-bottom: 30px;
}

.map-graphic {
    margin-top: 40px;
    height: 150px;
    background: radial-gradient(circle, #e0e0e0 2px, transparent 2px);
    background-size: 10px 10px;
    position: relative;
    opacity: 0.6;
}
.location-pin {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 8px 15px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    font-size: 0.9rem;
    color: var(--text-light);
}
.location-pin i { color: var(--primary); margin-right: 5px; }

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.news-card:hover { transform: translateY(-5px); }
.news-img {
    position: relative;
    height: 160px;
}
.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    color: white;
    font-family: var(--font-heading);
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 4px;
}
.news-content { padding: 20px; }
.news-content .date {
    font-size: 0.8rem;
    color: var(--text-gray);
}
.news-content h4 {
    font-size: 1.2rem;
    margin: 10px 0;
    line-height: 1.3;
}
.read-more {
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
}

/* ================= ROSTER (DARK SECTION) ================= */
.roster-section {
    background-color: var(--bg-dark);
    color: white;
}
.roster-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
.player-card {
    background: linear-gradient(180deg, #161722 0%, #0a0b10 100%);
    border: 1px solid #2a2a35;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s;
}
.player-card:hover { border-color: var(--primary); }
.player-info-top {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-heading);
    margin-bottom: 15px;
}
.number { font-size: 1.5rem; color: #444; font-weight: 700; }
.role { color: var(--primary); font-weight: 600; }
.player-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 15px;
    filter: drop-shadow(0 10px 10px rgba(0,0,0,0.5));
}
.player-info-bottom h4 { font-size: 1.5rem; letter-spacing: 1px;}
.player-info-bottom p { color: #888; font-size: 0.9rem;}

/* ================= ACHIEVEMENTS & MATCHES ================= */
.achievement-list { display: flex; flex-direction: column; gap: 20px; }
.achievement-list li {
    display: flex;
    align-items: center;
    gap: 20px;
}
.achieve-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: #f0f0f0;
}
.gold { color: #f59e0b; background: #fef3c7; }
.silver { color: #6366f1; background: #e0e7ff; }
.gray { color: #6b7280; background: #f3f4f6; }
.dark-btn { border-color: var(--text-light); color: var(--text-light); }
.mt-3 { margin-top: 30px; }

.matches-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.match-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px 20px;
    text-align: center;
}
.match-type {
    font-family: var(--font-heading);
    color: var(--text-gray);
    font-size: 12px;
    margin-bottom: 20px;
}
.match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.team { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 40%;}
.team-logo-small { width: 50px; height: 50px; object-fit: contain; }
.enemy-logo { font-size: 2.5rem; color: #111; height: 50px; display: flex; align-items: center;}
.team span { font-family: var(--font-heading); font-weight: 600; font-size: 1.1rem;}
.vs { font-family: var(--font-heading); color: var(--text-gray); font-size: 1.2rem;}
.match-date { font-size: 0.9rem; color: var(--text-light); margin-bottom: 5px; }
.match-format { font-size: 0.8rem; color: var(--text-gray); }

/* ================= PARTNERS & CTA ================= */
.partners-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
}
.partners-logos {
    display: flex;
    justify-content: space-between;
    flex: 1;
    gap: 20px;
    overflow: hidden;
}
.partners-logos img {
    height: 40px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.3s;
}
.partners-logos img:hover { filter: grayscale(0%) opacity(1); }
.nav-arrow {
    background: white;
    border: 1px solid var(--border-color);
    width: 40px; height: 40px;
    border-radius: 50%;
    cursor: pointer;
}
.nav-arrow:hover { background: var(--bg-gray); }

.cta-banner {
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    padding: 40px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}
.cta-content h2 { font-size: 2.5rem; margin-bottom: 5px; }
.cta-content p { font-size: 1.1rem; color: #e0e0e0; }

/* ================= FOOTER ================= */
.footer {
    background-color: var(--bg-dark);
    color: white;
    padding: 60px 5% 20px;
}
.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 2fr;
    gap: 40px;
    border-bottom: 1px solid #222;
    padding-bottom: 40px;
}
.footer-logo { height: 40px; margin-bottom: 20px; }
.footer-brand p { color: #a0a0a0; font-size: 0.9rem; margin-bottom: 20px; }
.dark-social a { color: white; }
.footer-links h4 { font-size: 1.2rem; margin-bottom: 20px; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a { color: #a0a0a0; font-size: 0.9rem; }
.footer-links ul li a:hover { color: white; }

.footer-newsletter p { color: #a0a0a0; font-size: 0.9rem; margin-bottom: 15px; }
.newsletter-form { display: flex; gap: 10px; }
.newsletter-form input {
    flex: 1;
    padding: 10px 15px;
    background: #1a1a24;
    border: 1px solid #333;
    border-radius: 4px;
    color: white;
}
.footer-bottom {
    max-width: 1400px;
    margin: 20px auto 0;
    display: flex;
    justify-content: space-between;
    color: #888;
    font-size: 0.9rem;
}
.footer-legal a { margin-left: 20px; color: #888; }
.footer-legal a:hover { color: white; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1200px) {
    .roster-grid { grid-template-columns: repeat(3, 1fr); }
    .matches-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
    .hero-container { flex-direction: column; text-align: center; }
    .hero-content { padding-bottom: 40px; }
    .hero-btns { justify-content: center; }
    .social-follow { justify-content: center; }
    .stats-bar { flex-wrap: wrap; gap: 20px; }
    .split-section { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr 1fr; }
    .cta-banner { flex-direction: column; text-align: center; gap: 20px; }
}

@media (max-width: 768px) {
    .nav-links, .nav-container .btn { display: none; }
    .mobile-menu-btn { display: block; }
    .hero-content h1 { font-size: 3.5rem; }
    .roster-grid { grid-template-columns: repeat(2, 1fr); }
    .matches-grid, .news-grid { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; }
    .partners-logos { flex-wrap: wrap; justify-content: center; }
    
    /* Simple mobile menu activation via JS class */
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-dark);
        padding: 20px;
        text-align: center;
    }
}
@media (max-width: 480px) {
    .roster-grid { grid-template-columns: 1fr; }
    .stat-item { width: 45%; }
}

@media (max-width: 992px) {
    .hero { padding: 100px 5% 60px; }
    .hero-container { min-height: auto; flex-direction: column; text-align: center; padding-bottom: 20px; }
    .hero-content { flex: 100%; max-width: 100%; }
    .hero-btns { justify-content: center; }
    .social-follow { justify-content: center; }
    .stats-bar { flex-wrap: wrap; gap: 20px; margin-top: 20px; } /* Reset margin di HP */
    .split-section { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr 1fr; }
    .cta-banner { flex-direction: column; text-align: center; gap: 20px; }
    
    /* Di mode mobile, video full width tapi sangat transparan */
    .hero-media {
        width: 100%;
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 60%);
        mask-image: linear-gradient(to bottom, transparent 0%, black 60%);
        opacity: 0.2; 
    }
}
