/* --- RESET & GLOBAL VARIABLES --- */
:root {
    --primary: #6a11cb;
    --secondary: #2575fc;
    --accent: #ff007f;
    --bg-dark: #0a0a0a;
    --text-white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --btn-buy: #2ecc71;
    --btn-info: #3498db;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
    min-height: 100vh;
}

.home-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.home-logo {
    flex: 1;
    display: flex;
    justify-content: flex-end; /* LOGO KE KANAN */
    align-items: center;
}

/* --- SERVER IMAGES GRID --- */
.server-images-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
    transition: transform 0.4s ease;
}

/* BATASI UKURAN GAMBAR */
.server-images-grid img {
    width: 100%;
    height: 200px;          /* ← KUNCI UTAMA */
    object-fit: cover;      /* crop rapi */
    border-radius: 16px;
    transform: scale(1.05);
}

/* --- ANIMATED BACKGROUND --- */
.background-anim {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(45deg, #020024 0%, #090979 35%, #00d4ff 100%);
    background-size: 300% 300%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- UTILITIES --- */
.container {
    width: 100%;
    max-width: 1200px;
    padding: 20px 4%;
    margin: 100px auto 50px auto;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* --- GLASS --- */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 4px solid var(--text-white);
    border-radius: 20px;
    padding: 40px;
}

/* --- SHOP SECTION --- */
.section-shop h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 kolom = 2 baris (6 gambar) */
    gap: 20px;
    justify-items: center;
}

/* --- SHOP CARD --- */
.shop-card {
    width: 100%;
    max-width: 260px; /* DIPERKECIL agar tidak kebesaran */
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    text-align: center;
}

/* --- GAMBAR RANK / BANNER --- */
.shop-card img {
    width: 100%;
    height: auto;
    max-height: 140px;
    object-fit: contain;
    border-radius: 16px; /* SUDUT MELENGKUNG */
    display: block;
}

/* --- TITLE --- */
.shop-card h4 {
    font-size: 1rem;
    margin: 12px 0;
}

/* --- BUTTONS --- */
.btn-group {
    width: 100%;
    display: flex;
    gap: 10px;
}

.btn-buy, .btn-info {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.8rem;
    color: #fff;
    cursor: pointer;
}

.btn-buy { background: var(--btn-buy); }
.btn-info { background: var(--btn-info); }

/* --- RESPONSIVE --- */

/* Tablet → 3 baris (2 kolom) */
@media (max-width: 1024px) {
    .shop-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* HP → 6 baris (1 kolom) */
@media (max-width: 600px) {
    .shop-grid {
        grid-template-columns: 1fr;
    }
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 80px);
    max-width: 1200px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 16px 32px;
    z-index: 1000;
}

/* LOGO */
.navbar .logo {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* MENU */
.nav-links {
    list-style: none;
    display: flex;
    gap: 28px;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-white);
    font-weight: 500;
    position: relative;
    padding: 4px 0;
}

/* HOVER EFFECT */
.nav-links li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links li a:hover::after {
    width: 100%;
}

/* --- DISCOUNT BANNER --- */
.discount-banner {
    width: 100%;
    margin: 20px 0;
    overflow: hidden;
    border-radius: 18px;
}

.discount-banner img {
    width: 100%;
    height: 600px;          /* BATASI TINGGI */
    object-fit: cover;      /* POTONG RAPI */
    display: block;
}
