:root {
    --primary: #00ff9d;
    --secondary: #bc13fe; 
    --text: #ffffff; 
    --discord: #5865F2;
    --wa: #25D366;
    --tg: #0088cc;
    --neon-blue: #00a2ff;
}

html { font-size: 16px; }

@media (max-width: 1200px) { html { font-size: 15px; } }
@media (max-width: 992px) { html { font-size: 14px; } }
@media (max-width: 768px) { html { font-size: 13px; } }
@media (max-width: 576px) { html { font-size: 12px; } }
@media (max-width: 400px) { html { font-size: 11px; } }

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

body {
    color: var(--text);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
    background-image: url('image/background.jpg'); /* Pastikan path gambar benar */
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    width: 100%;
}

@media (max-width: 768px) {
    body { background-position: center top; }
}

.bg-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: -1; pointer-events: none;
}

/* ---  ANIMASI RGB --- */
@keyframes rgbBorder {
    0% { border-color: #ff0000; box-shadow: 0 0 10px #ff0000; }
    33% { border-color: #00ff00; box-shadow: 0 0 10px #00ff00; }
    66% { border-color: #0000ff; box-shadow: 0 0 10px #0000ff; }
    100% { border-color: #ff0000; box-shadow: 0 0 10px #ff0000; }
}

/* ---  UI ELEMENTS (Header) --- */
.admin-badge {
    position: absolute; top: 1.5rem; left: 1.5rem;
    display: flex; align-items: center; gap: 0.8rem;
    background: rgba(0,0,0,0.6); padding: 0.4rem 1rem 0.4rem 0.4rem;
    border-radius: 50px; border: 1px solid #555;
    backdrop-filter: blur(5px); z-index: 50;
    transition: all 0.3s ease; transform-origin: top left;
}

.admin-img { width: 3rem; height: 3rem; border-radius: 50%; border: 2px solid #fff; object-fit: cover; }
.admin-info h4 { font-size: 0.9rem; margin: 0; color: #fff; }
.admin-status { font-size: 0.75rem; color: #00ff00; display: flex; align-items: center; gap: 0.4rem; }
.dot { width: 0.5rem; height: 0.5rem; background: #00ff00; border-radius: 50%; animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.3; } 100% { opacity: 1; } }

.lang-switch {
    position: absolute; top: 2rem; right: 1.5rem; z-index: 50;
    background: rgba(0,0,0,0.8); border: 1px solid var(--secondary);
    color: #fff; padding: 0.95rem 1.8rem; border-radius: 30rem;
    cursor: pointer; font-weight: bold; font-size: 1.1rem;
    display: flex; align-items: center; gap: 0.5rem;
    transition: all 0.3s ease; transform-origin: top right;
}

@media (max-width: 1200px) { .admin-badge, .lang-switch { transform: scale(0.95); } }
@media (max-width: 992px) { .admin-badge, .lang-switch { transform: scale(0.9); } }
@media (max-width: 768px) {
    .admin-badge { transform: scale(0.85); top: 1rem; left: 1rem; }
    .lang-switch { transform: scale(0.85); top: 1.2rem; right: 1rem; }
}
@media (max-width: 576px) {
    .admin-badge { transform: scale(0.75); top: 0.8rem; left: 0.5rem; }
    .lang-switch { transform: scale(0.75); top: 1rem; right: 0.5rem; }
}

/* ---  INTRO SCREEN --- */
#introScreen {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: radial-gradient(ellipse at bottom, #1B2735 0%, #090A0F 100%);
    z-index: 9999;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    overflow: hidden;
    transition: opacity 0.5s ease-in-out; transform: translateZ(0);
}

.intro-content {
    display: flex; flex-direction: column; align-items: center;
    transition: transform 0.8s cubic-bezier(0.7, 0, 0.3, 1), opacity 0.8s ease;
    will-change: transform, opacity; position: relative; z-index: 100;
    perspective: 600px;
}

.intro-title {
    font-size: 4rem; font-weight: 900; margin-bottom: 2rem; text-align: center;
    display: flex; justify-content: center; gap: 0.2rem;
    perspective: 1000px; transform-style: preserve-3d;
}

.intro-title span {
    display: inline-block; color: #fff;
    animation: spinMove 3s ease-in-out infinite;
}

@keyframes spinMove {
    0% { transform: translateY(0) rotateY(0deg); color: #ffffff; text-shadow: 0 0 5px rgba(255,255,255,0.5); }
    40% { transform: translateY(-30px) rotateY(180deg) scale(1.1); color: var(--primary); text-shadow: 0 0 20px var(--primary), 0 0 40px var(--primary); }
    80%, 100% { transform: translateY(0) rotateY(360deg) scale(1); color: #ffffff; text-shadow: 0 0 5px rgba(255,255,255,0.5); }
}

.intro-title span:nth-child(1) { animation-delay: 0.0s; }
.intro-title span:nth-child(2) { animation-delay: 0.15s; }
.intro-title span:nth-child(3) { animation-delay: 0.3s; }
.intro-title span:nth-child(4) { animation-delay: 0.45s; }
.intro-title span:nth-child(6) { animation-delay: 0.6s; }
.intro-title span:nth-child(7) { animation-delay: 0.75s; }
.intro-title span:nth-child(8) { animation-delay: 0.9s; }
.intro-title span:nth-child(9) { animation-delay: 1.05s; }
.intro-title span:nth-child(10){ animation-delay: 1.2s; }

.intro-desc {
    color: #e0e0e0; font-size: 1.1rem; margin-bottom: 2.5rem; text-align: center;
    max-width: 600px; line-height: 1.6; text-shadow: 0 2px 5px rgba(0,0,0,0.8);
    padding: 0 1.5rem; letter-spacing: 1px; font-weight: 400; text-transform: uppercase;
}

@media (max-width: 576px) { .intro-desc { font-size: 0.9rem; margin-bottom: 2rem; } }

.btn-enter {
    background: rgba(0,0,0,0.5); border: 1px solid var(--primary); color: var(--primary);
    padding: 1rem 3.5rem; font-size: 1.1rem; font-weight: bold;
    cursor: pointer; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-transform: uppercase; letter-spacing: 0.3rem; border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 255, 157, 0.2);
}

.btn-enter:hover {
    background: var(--primary); color: #000; box-shadow: 0 0 40px var(--primary);
    transform: translateY(-2px) scale(1.05); letter-spacing: 0.5rem;
}

/* ---  MAIN CONTENT --- */
#mainContent {
    display: none; opacity: 0; transition: 1s;
    padding-top: 8rem; padding-bottom: 4rem;
}

header { text-align: center; margin-bottom: 2.5rem; }
header h1 { font-size: 3rem; color: #fff; text-shadow: 0 0 15px rgba(255,255,255,0.2); margin-bottom: 0.5rem; }

.category-tabs { display: flex; justify-content: center; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 3rem; }
.tab-btn {
    background: rgba(0,0,0,0.5); color: #aaa; padding: 0.6rem 1.5rem;
    border: 1px solid #444; border-radius: 2rem; cursor: pointer;
    transition: 0.3s; font-weight: bold; font-size: 0.9rem;
}
.tab-btn.active {
    background: var(--primary); color: #000; border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary);
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

.product-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 1.5rem;
}

.product-card {
    background: rgba(30, 30, 30, 0.8); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 1rem; padding: 1rem; transition: 0.3s;
    position: relative; overflow: hidden; display: flex; flex-direction: column;
    backdrop-filter: blur(10px);
}
.product-card:hover { animation: rgbBorder 2s linear infinite; transform: translateY(-5px); }

.img-box {
    width: 100%; aspect-ratio: 1 / 1; background: #000;
    border-radius: 0.6rem; margin-bottom: 1rem; overflow: hidden;
    display: flex; justify-content: center; align-items: center;
}
.img-box img { width: 100%; height: 100%; object-fit: contain; transition: 0.5s; }

.p-title { font-weight: bold; margin-bottom: 0.4rem; color: #fff; font-size: 1.1rem; }
.p-price { color: var(--primary); font-weight: bold; margin-bottom: 1rem; font-size: 1.2rem; }

.btn-order {
    margin-top: auto; width: 100%; padding: 0.8rem; background: transparent;
    border: 1px solid var(--neon-blue); color: var(--neon-blue); font-weight: bold;
    cursor: pointer; transition: 0.3s; border-radius: 0.5rem;
    text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem;
}
.btn-order:hover { background: var(--neon-blue); color: #000; box-shadow: 0 0 15px var(--neon-blue); }

/* --- 6. FOOTER AREA --- */
.footer-area {
    margin-top: 5rem; text-align: center; padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.btn-home-bottom {
    background: transparent; border: 2px solid #fff; color: #fff;
    padding: 1rem 3rem; font-size: 1rem; font-weight: bold;
    border-radius: 3rem; cursor: pointer; transition: 0.3s;
    display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-home-bottom:hover { background: #fff; color: #000; box-shadow: 0 0 20px #fff; }

/* --- 7. MODAL POPUP --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9); z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none; transition: 0.3s; backdrop-filter: blur(5px);
}
.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal-box {
    background: #111; border: 2px solid #333; padding: 2rem;
    border-radius: 1rem; width: 90%; max-width: 25rem;
    text-align: center; transform: scale(0.8); transition: 0.3s;
}
.modal-box:hover { animation: rgbBorder 3s infinite; }
.modal-overlay.active .modal-box { transform: scale(1); }

.platform-btn {
    display: flex; align-items: center; justify-content: center; gap: 0.6rem;
    width: 100%; padding: 0.9rem; margin-bottom: 0.8rem; border: none;
    border-radius: 0.6rem; font-weight: bold; color: #fff; cursor: pointer;
    transition: 0.3s; font-size: 1rem;
}
.btn-wa { background: var(--wa); }
.btn-tg { background: var(--tg); }
.btn-dc { background: var(--discord); }
.platform-btn:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.3); }

.btn-close {
    margin-top: 1rem; background: transparent; border: 1px solid #555;
    color: #888; padding: 0.5rem 1.5rem; border-radius: 2rem; cursor: pointer;
}

.anim-out { animation: fadeOut 0.3s forwards; }
.anim-in { animation: fadeIn 0.5s forwards; }
@keyframes fadeOut { to { opacity: 0; transform: scale(1.1); filter: blur(5px); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(2rem); } to { opacity: 1; transform: translateY(0); } }

/* --- ANIMASI SHOOTING STARS --- */
.area-animasi {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    transform: rotateZ(45deg); z-index: 1; pointer-events: none;
}

.area-animasi li {
    position: absolute; display: block; list-style: none; top: -150px;
    width: 6px; height: 150px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), var(--neon-blue));
    box-shadow: 0 0 10px var(--neon-blue); border-radius: 50%;
    animation: meteorRain 5s linear infinite; opacity: 0;
    cursor: crosshair; pointer-events: auto; transition: all 0.1s;
}

.area-animasi li:active {
    transform: scale(2); background: #ffffff;
    box-shadow: 0 0 30px #ffffff, 0 0 60px var(--secondary);
    opacity: 0; transition: 0s;
}

.area-animasi li:nth-child(1) { left: 10%; animation-duration: 2s; animation-delay: 0s; }
.area-animasi li:nth-child(2) { left: 30%; animation-duration: 3.5s; animation-delay: 1s; }
.area-animasi li:nth-child(3) { left: 50%; animation-duration: 2.5s; animation-delay: 2s; }
.area-animasi li:nth-child(4) { left: 70%; animation-duration: 3s; animation-delay: 0.5s; }
.area-animasi li:nth-child(5) { left: 90%; animation-duration: 2.2s; animation-delay: 3s; }
.area-animasi li:nth-child(6) { left: 20%; animation-duration: 4s; animation-delay: 1.5s; }
.area-animasi li:nth-child(7) { left: 40%; animation-duration: 2.8s; animation-delay: 0.8s; }
.area-animasi li:nth-child(8) { left: 60%; animation-duration: 3.2s; animation-delay: 2.5s; }
.area-animasi li:nth-child(9) { left: 80%; animation-duration: 2.6s; animation-delay: 0.2s; }
.area-animasi li:nth-child(10){ left: 5%;  animation-duration: 3.8s; animation-delay: 1.2s; }

@keyframes meteorRain {
    0% { transform: translateY(-200px); opacity: 0; }
    10% { opacity: 1; }
    100% { transform: translateY(120vh); opacity: 0; }
}