:root {
    --color-1: #0b132b;
    /* Midnight Navy Blue */
    --color-2: #1c2541;
    /* Dark Cool Gray-Blue */
    --color-3: #000000;
    /* Deep Black for bottom gradient */
    --accent: #94a3b8;
    --live-red: #ff3366;
    /* Glowing red */
    --glass-bg: rgba(28, 37, 65, 0.45);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background: linear-gradient(180deg, var(--color-1) 0%, var(--color-2) 45%, var(--color-3) 100%);
    color: #cbd5e1;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Memberikan jarak ekstra jika page discroll via link agar navbar tidak menutupi title/bagian penting */
section,
.main-banner {
    scroll-margin-top: 140px;
}

/* --- BAT GENERATOR --- */
#bat-field {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bat-unit {
    position: absolute;
    width: 60px;
    opacity: 0.3;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.1));
}

/* --- FOG EFFECT --- */
.fog-pane {
    position: fixed;
    bottom: 0;
    width: 200vw;
    height: 35vh;
    pointer-events: none;
    z-index: 1;
    /* Di bawah elemen utama, di atas background */
}

.fog-1 {
    left: -50vw;
    background: radial-gradient(ellipse at bottom, rgba(56, 189, 248, 0.12) 0%, transparent 60%);
    animation: fogAnim 15s infinite alternate ease-in-out;
    filter: blur(25px);
}

.fog-2 {
    left: -20vw;
    background: radial-gradient(ellipse at bottom left, rgba(226, 232, 240, 0.08) 0%, transparent 70%);
    animation: fogAnim 22s infinite alternate-reverse ease-in-out;
    filter: blur(15px);
}

@keyframes fogAnim {
    0% {
        transform: translateX(0) scale(1);
    }

    100% {
        transform: translateX(10vw) scale(1.05);
    }
}

/* --- NAVBAR --- */
nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(15px);
    padding: 8px 30px;
    border-radius: 50px;
    display: flex;
    gap: 10px;
    z-index: 1000;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

nav a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85rem;
    padding: 8px 25px;
    border-radius: 25px;
    transition: 0.4s;
}

nav a.active {
    background: var(--color-1);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(15, 23, 42, 0.8);
    border: 1px solid var(--glass-border);
}

/* --- BANNER --- */
.main-banner {
    width: 100%;
    height: 500px;
    background: url('../assets/banner.jpeg') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    border-bottom: 2px solid var(--glass-border);
}

.main-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.5), transparent);
    transform: translateY(50%);
    /* Posisi menembus tengah foto profil */
    z-index: 90;
}

.profile-wrap {
    transform: translateY(50%);
    z-index: 100;
    position: relative;
}

.pp-circle {
    width: 220px;
    height: 220px;
    background: var(--color-2);
    border-radius: 50%;
    border: 6px solid var(--color-1);
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    z-index: 100;
}

/* --- BIO SECTION DENGAN STAT CARDS --- */
section {
    padding: 80px 10%;
    position: relative;
    z-index: 5;
}

/* Kontainer khusus Bio agar Stat Cards bisa menempel dengan benar */
.bio-container {
    position: relative;
    max-width: 1100px;
    margin: 120px auto 0 auto;
    /* Memberi ruang untuk PP */
    display: flex;
    justify-content: center;
    align-items: center;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-radius: 30px;
    padding: 45px;
    border: 1px solid var(--glass-border);
    text-align: center;
    width: 100%;
    max-width: 750px;
    position: relative;
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    color: #f8fafc;
}

/* --- STAT CARDS (REVISI POSISI & BENTUK BUBBLE) --- */
.stat-card {
    position: absolute;
    width: 180px;
    padding: 18px 10px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
    backdrop-filter: blur(15px);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(255, 255, 255, 0.05);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    color: #f8fafc;
    text-align: center;
    animation: floatAnim 4s infinite alternate ease-in-out;
    z-index: 50;
    border: 1px solid var(--glass-border);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    letter-spacing: 1.5px;
}

/* Sebelah Kiri */
.sl-1 {
    left: -60px;
    top: -10px;
    animation-delay: 0s;
}

.sl-2 {
    left: -110px;
    top: 38%;
    animation-delay: 1s;
}

.sl-3 {
    left: -60px;
    top: 72%;
    animation-delay: 2s;
}

/* Sebelah Kanan */
.sr-1 {
    right: -60px;
    top: -10px;
    animation-delay: 0.5s;
}

.sr-2 {
    right: -110px;
    top: 38%;
    animation-delay: 1.5s;
}

.sr-3 {
    right: -60px;
    top: 72%;
    animation-delay: 2.5s;
}

@keyframes floatAnim {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-20px) scale(1.03);
    }
}

@keyframes bounceAnim {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

/* --- LIVE & COUNTDOWN --- */
.countdown-container {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.live-schedule {
    font-weight: 800;
    color: var(--live-red);
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.coming-soon-text {
    letter-spacing: 5px;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #f8fafc;
}

.timer-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.4);
    padding: 15px 25px;
    border-radius: 20px;
    color: white;
    border: 1px solid var(--glass-border);
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.3);
    width: fit-content;
    margin: 0 auto;
}

.time-segment {
    text-align: center;
}

.time-val {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    line-height: 1;
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.time-label {
    font-size: 0.7rem;
    opacity: 0.8;
    letter-spacing: 1px;
    margin-top: 5px;
}

.live-active-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--live-red);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: 2px;
    animation: blinker 1.5s infinite;
    box-shadow: 0 0 20px var(--live-red);
}

@keyframes blinker {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 20px var(--live-red);
    }

    50% {
        opacity: 0.8;
        box-shadow: 0 0 5px var(--live-red);
        transform: scale(1.02);
    }
}

/* --- GRID SECTIONS --- */
.highlight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 50px;
}

/* --- GALERY SUB-SECTION --- */
.gallery-layout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.slideshow-box {
    position: relative;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    height: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-2);
    font-size: 2.5rem;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
}

.slide.active {
    opacity: 1;
    z-index: 5;
}

.skeleton-box {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.skeleton-box img {
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 15px 15px rgba(0, 0, 0, 0.5));
    transform: scale(1.25) translateX(10%);
    transition: transform 0.3s ease;
}

/* --- COLLECTION SUB-SECTION --- */
.collection-wrapper {
    position: relative;
    margin-top: 30px;
    padding: 0 20px;
}

.collection-track {
    display: flex;
    overflow-x: hidden;
    gap: 20px;
    padding: 20px 0;
    scroll-behavior: smooth;
}

.collection-card {
    flex: 0 0 calc((100% - 80px) / 5);
    min-width: 200px;
    background: var(--glass-bg);
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    color: #f8fafc;
    text-align: center;
}

.item-placeholder, .item-img-container {
    width: 100%;
    height: 180px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    overflow: hidden;
}

.item-img-container {
    border: none; /* No dashed border for actual images */
}

.item-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

.collection-card:hover .item-img-container img {
    transform: scale(1.08);
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: var(--color-1);
    color: white;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transition: 0.3s;
}

.nav-btn:hover {
    background: var(--live-red);
    transform: translateY(-50%) scale(1.1);
}

#btn-left {
    left: -10px;
}

#btn-right {
    right: -10px;
}

/* Responsif untuk Stat Cards agar tidak nabrak layar hp */
@media (max-width: 1100px) {
    .stat-card {
        display: none;
    }

    .gallery-layout-grid {
        grid-template-columns: 1fr;
    }

    .slideshow-box,
    .skeleton-box {
        height: 300px;
    }

    .collection-card {
        flex: 0 0 calc((100% - 40px) / 3);
    }
}

@media (max-width: 768px) {
    .highlight-grid {
        grid-template-columns: 1fr;
    }

    .collection-card {
        flex: 0 0 calc((100% - 20px) / 2);
    }
}

/* --- CONTACT & LINKS --- */
.link-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--glass-bg);
    padding: 15px 25px;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    text-decoration: none;
    color: #f8fafc;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.link-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.5);
    background: rgba(40, 50, 80, 0.6);
    border-color: #38bdf8;
}

.link-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-right: 20px;
    color: #38bdf8;
}

.link-content {
    flex-grow: 1;
    text-align: left;
}

.link-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: #fff;
}

.link-desc {
    font-size: 0.9rem;
    color: #94a3b8;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #38bdf8;
}

.copy-btn::after {
    content: "Go To Share";
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #000;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    font-weight: bold;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

.copy-btn:hover::after {
    opacity: 1;
    bottom: 130%;
}

.copy-btn.copied::after {
    content: "Copied!" !important;
    background: #4ade80 !important;
}
