/* --- RESET & VARIABLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #d62828;       /* Merah Sporty */
    --primary-dark: #a31616;  /* Merah Gelap */
    --dark: #121212;          /* Hitam Pekat */
    --dark-grey: #1e1e1e;     /* Abu Gelap untuk Card */
    --light: #f8f9fa;         /* Putih Tulang */
    --text-main: #333333;
    --text-muted: #888888;
    --discord-blue: #5865F2;  /* Warna Discord */
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--light);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- NAVIGATION --- */
.navbar {
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 45px;
    width: auto;
}

.brand-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--light);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: #cccccc;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, #2c2c2c 100%);
    padding: 120px 0 100px;
    color: var(--light);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 700;
    margin: 20px 0;
    background: -webkit-linear-gradient(#fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.1rem;
    color: #aaaaaa;
    margin-bottom: 30px;
    max-width: 90%;
}

.badge {
    background: rgba(214, 40, 40, 0.2);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-image {
    display: flex;
    justify-content: center;
}

.hero-logo {
    max-width: 80%;
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(214, 40, 40, 0.2));
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* --- BUTTONS --- */
.cta-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(214, 40, 40, 0.4);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.2);
    color: white;
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(214, 40, 40, 0.1);
    color: var(--primary);
}

/* --- FEATURES --- */
.features-section {
    padding: 60px 0;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    border-bottom: 4px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--primary);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(214, 40, 40, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- ABOUT --- */
.about {
    padding: 100px 0;
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
    position: relative;
}

.text-primary { color: var(--primary); }

.about-text p {
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.about-stat {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-box {
    background: var(--dark);
    color: white;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
}

.stat-box h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 5px;
}

/* --- GALLERY SECTION (UPDATED - LANDSCAPE CARDS) --- */
.gallery {
    padding: 80px 0;
    background: #f1f2f6;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header p {
    color: var(--text-muted);
}

.gallery-grid {
    display: grid;
    /* Ini perbaikan utama: auto-fill + minmax memastikan grid responsive */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.gallery-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Agar tinggi kartu sama */
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.img-wrapper {
    width: 100%;
    height: 180px; /* Tinggi Fix Landscape */
    overflow: hidden;
    position: relative;
    background: #f0f0f0;
    cursor: pointer;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crop gambar agar pas */
    transition: transform 0.5s ease;
}

.gallery-card:hover img {
    transform: scale(1.1);
}

/* Icon Search Overlay */
.img-wrapper::after {
    content: '\f00e'; /* FontAwesome Search Icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    pointer-events: none;
}

.img-wrapper:hover::after {
    opacity: 1;
}

/* Card Body: Caption & Tombol */
.card-body {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    background: #fff;
    flex-grow: 1;
}

.caption {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Batasi teks 2 baris */
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-right: 10px;
}

/* Tombol View Mini */
.btn-view-mini {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    text-transform: uppercase;
}

.btn-view-mini:hover {
    background: var(--primary-dark);
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    background: white;
    border-radius: 10px;
}

/* --- JOIN SECTION --- */
.join-section {
    padding: 80px 0;
    background: var(--light);
}

.join-box {
    background: linear-gradient(135deg, var(--dark) 0%, #1a1a1a 100%);
    border-radius: 20px;
    padding: 80px 40px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    border-bottom: 5px solid var(--primary);
}

.join-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(circle at 10% 20%, rgba(214, 40, 40, 0.1) 0%, transparent 20%);
    pointer-events: none;
}

.join-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

.join-content p {
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-discord-large {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: var(--discord-blue);
    color: white;
    padding: 18px 50px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(88, 101, 242, 0.4);
}

.btn-discord-large:hover {
    transform: translateY(-5px) scale(1.05);
    background-color: #4752c4;
    box-shadow: 0 15px 35px rgba(88, 101, 242, 0.6);
}

.btn-discord-large i { font-size: 1.5rem; }

/* --- FOOTER --- */
.footer {
    background: var(--dark);
    color: #777;
    padding: 30px 0;
    border-top: 1px solid #333;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links a {
    color: #fff;
    font-size: 1.2rem;
    margin-left: 20px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary);
}

/* --- MODAL POPUP STYLE --- */
.modal {
    display: none; 
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
    font-size: 1.1rem;
    margin-top: 10px;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
}

.close:hover,
.close:focus {
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
}

@keyframes zoomIn {
    from {transform:scale(0.8); opacity:0} 
    to {transform:scale(1); opacity:1}
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 2.8rem; }
    .about-wrapper { grid-template-columns: 1fr; }
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-image { margin-top: 40px; }
    .cta-buttons { justify-content: center; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .feature-card { margin-top: 0; }
    .join-box { padding: 50px 20px; }
    .join-content h2 { font-size: 1.8rem; }
    .btn-discord-large { width: 100%; justify-content: center; }
    .hero-content h1 { font-size: 2.2rem; }
    .features-section { margin-top: 0; }
    .footer-content { flex-direction: column; gap: 20px; text-align: center; }
    .social-links a { margin: 0 10px; }
    .modal-content { width: 95%; }
}