:root {
    --sea-dark: #021024;
    --sea-mid: #053F5C;
    --sea-light: #429EBD;
    --cyan-glow: #00F0FF;
    --glass-bg: rgba(5, 63, 92, 0.35);
    --glass-border: rgba(66, 158, 189, 0.4);
}

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

html { scroll-behavior: smooth; } /* Biar pas navbar diklik, scrollnya mulus */

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--sea-dark); }
::-webkit-scrollbar-thumb { background: var(--sea-light); border-radius: 10px; }

body { background-color: var(--sea-dark); color: #e0f7fa; overflow-x: hidden; }

body::before {
    content: ""; position: fixed; inset: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, #021024 0%, #053F5C 50%, #021024 100%);
    z-index: -3;
}

#underwater-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: -2; overflow: hidden; }

/* FLOATING NAVBAR BLUR */
.floating-nav {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(5, 63, 92, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(66, 158, 189, 0.5);
    border-radius: 50px;
    display: flex;
    gap: 15px;
    padding: 12px 25px;
    z-index: 10000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(0, 240, 255, 0.1);
}
.nav-item {
    color: #e0f7fa;
    font-size: 1.3rem;
    padding: 10px;
    border-radius: 50%;
    transition: 0.3s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-item:hover {
    background: rgba(0, 240, 255, 0.2);
    color: var(--cyan-glow);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
    transform: translateY(-4px);
}
@media (max-width: 600px) {
    .floating-nav { width: 90%; justify-content: space-between; gap: 5px; padding: 10px 20px; bottom: 20px; }
    .nav-item { font-size: 1.1rem; padding: 10px; }
}

.bubble { position: absolute; bottom: -50px; background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(0, 240, 255, 0.2)); border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 50%; animation: floatUp linear infinite; }
.floating-item { position: absolute; bottom: -50px; background-size: contain; background-repeat: no-repeat; opacity: 0.6; filter: drop-shadow(0 0 5px rgba(0, 240, 255, 0.5)); animation: floatUp linear infinite; }
.falling-item { position: absolute; top: -50px; background-size: contain; background-repeat: no-repeat; opacity: 0.4; filter: drop-shadow(0 0 5px rgba(0, 240, 255, 0.3)); animation: fallDown linear infinite; }
.swimming-fish { position: absolute; background-size: contain; background-repeat: no-repeat; opacity: 0.8; filter: drop-shadow(0 0 5px rgba(0, 240, 255, 0.4)); animation-timing-function: linear; animation-iteration-count: infinite; }

@keyframes floatUp { 0% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateY(-110vh) translateX(30px) rotate(45deg); opacity: 0; } }
@keyframes fallDown { 0% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateY(110vh) translateX(-30px) rotate(180deg); opacity: 0; } }
@keyframes swimRight { 0% { transform: translateX(-15vw) translateY(0) rotate(0deg); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateX(115vw) translateY(-20px) rotate(5deg); opacity: 0; } }
@keyframes swimLeft { 0% { transform: translateX(115vw) translateY(0) scaleX(-1) rotate(0deg); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateX(-15vw) translateY(-20px) scaleX(-1) rotate(5deg); opacity: 0; } }

.layout-wrapper { display: flex; flex-direction: column; max-width: 600px; margin: 40px auto; padding: 0 15px; gap: 20px; }
.sidebar { width: 100%; }
.content { width: 100%; padding-bottom: 80px; } /* Jarak buat navbar bawah */

@media (min-width: 900px) {
    .layout-wrapper { flex-direction: row; max-width: 1050px; align-items: flex-start; margin: 50px auto; gap: 30px; }
    .sidebar { position: sticky; top: 40px; width: 320px; flex-shrink: 0; height: max-content; }
    .content { flex-grow: 1; padding-bottom: 80px; min-width: 0; }
}

.ocean-glass { background: var(--glass-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--glass-border); border-radius: 24px; padding: 25px; margin-bottom: 25px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(0, 240, 255, 0.05); transition: 0.4s; }
.ocean-glass:hover { border-color: var(--cyan-glow); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(0, 240, 255, 0.15); }
.inner-glass { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px; padding: 20px; }

.ocean-text { background: linear-gradient(90deg, #00F0FF, #429EBD); -webkit-background-clip: text; color: transparent; font-weight: 800; text-shadow: 0 0 20px rgba(0, 240, 255, 0.3); }
.section-title { font-size: 1.2rem; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; color: #fff; }
.section-title i { color: var(--cyan-glow); }
.desc-text { color: #b2ebf2; line-height: 1.6; }
.text-center { text-align: center; }
.justify-center { justify-content: center; }
.mt-3 { margin-top: 15px; } .mt-4 { margin-top: 25px; }

.profile-card { text-align: center; display: flex; flex-direction: column; align-items: center; }
.bubble-avatar-wrapper { width: 140px; height: 140px; margin: 0 auto; border-radius: 50%; padding: 6px; background: linear-gradient(135deg, rgba(0, 240, 255, 0.8), rgba(5, 63, 92, 0.2)); box-shadow: 0 0 30px rgba(0, 240, 255, 0.4); animation: float 4s ease-in-out infinite; }
.profile-pic-container { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; border: 2px solid var(--sea-dark); }
.profile-pic { width: 100%; height: 100%; object-fit: cover; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.tagline { color: #81d4fa; font-size: 0.9rem; margin-top: 5px; }

.status-badge { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: rgba(0, 255, 136, 0.15); color: #00ff88; padding: 10px 20px; border-radius: 30px; font-weight: bold; border: 1px solid rgba(0, 255, 136, 0.4); text-shadow: 0 0 10px rgba(0, 255, 136, 0.5); }
.pulse-dot { width: 12px; height: 12px; background: #00ff88; border-radius: 50%; box-shadow: 0 0 10px #00ff88; animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.2); } 100% { opacity: 1; transform: scale(1); } }

.games-list { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 15px; }
.game-tag { padding: 6px 14px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; background: rgba(0, 240, 255, 0.1); border: 1px solid rgba(0, 240, 255, 0.3); color: var(--cyan-glow); }

.social-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }
.social-card { display: flex; align-items: center; gap: 15px; text-decoration: none; color: #fff; background: rgba(255,255,255,0.05); padding: 12px; border-radius: 16px; transition: 0.3s; border: 1px solid rgba(255,255,255,0.05); }
.icon-wrapper { width: 45px; height: 45px; border-radius: 12px; display: flex; justify-content: center; align-items: center; font-size: 1.4rem; color: #fff; }
.link-info { display: flex; flex-direction: column; }
.link-info span { font-weight: bold; font-size: 1rem; }
.link-info small { color: #81d4fa; font-size: 0.8rem; }
.social-card:hover { transform: translateY(-5px); background: rgba(0, 240, 255, 0.1); border-color: var(--cyan-glow); }
.tiktok { background: #000; border: 1px solid #333; }
.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.discord { background: #5865F2; }
.whatsapp { background: #25D366; }

.donate-btn { display: inline-flex; align-items: center; gap: 10px; background: linear-gradient(45deg, #f29f05, #f25c05); color: #fff; text-decoration: none; padding: 15px 30px; border-radius: 30px; font-weight: bold; font-size: 1.1rem; box-shadow: 0 5px 20px rgba(242, 159, 5, 0.4); transition: 0.3s; }
.donate-btn:hover { transform: scale(1.05); box-shadow: 0 8px 30px rgba(242, 159, 5, 0.6); }

/* GALLERY GRID */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; margin-bottom: 20px; }
@media (min-width: 600px) { .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); } }
.gallery-item { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; cursor: pointer; border: 2px solid transparent; transition: 0.3s; background: rgba(0, 0, 0, 0.2); }
.gallery-item:hover { transform: scale(1.05) rotate(2deg); border-color: var(--cyan-glow); box-shadow: 0 0 15px rgba(0, 240, 255, 0.5); z-index: 2; }
.view-more-btn { width: 100%; padding: 12px; background: rgba(0, 240, 255, 0.1); border: 1px solid var(--glass-border); color: var(--cyan-glow); border-radius: 15px; font-weight: bold; font-size: 1rem; cursor: pointer; transition: 0.3s; display: flex; justify-content: center; align-items: center; gap: 10px; }
.view-more-btn:hover { background: rgba(0, 240, 255, 0.2); box-shadow: 0 0 15px rgba(0, 240, 255, 0.3); }

/* LIGHTBOX */
.lightbox { position: fixed; inset: 0; background: rgba(2, 16, 36, 0.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); z-index: 100000; display: flex; flex-direction: column; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: 0.4s ease; }
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox img { max-width: 90%; max-height: 70vh; border-radius: 15px; box-shadow: 0 0 40px rgba(0, 240, 255, 0.3); border: 2px solid var(--cyan-glow); object-fit: contain; transition: transform 0.3s; }
.close-lightbox { position: absolute; top: 30px; right: 30px; font-size: 2.5rem; color: #fff; cursor: pointer; transition: 0.3s; text-shadow: 0 0 10px rgba(0,0,0,0.5); }
.close-lightbox:hover { color: #ff4655; transform: scale(1.1) rotate(90deg); }
.download-btn { margin-top: 25px; font-size: 1rem; padding: 12px 25px; }

.device-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }
.device-card { display: flex; gap: 15px; align-items: center; }
.device-icon { font-size: 1.8rem; color: var(--cyan-glow); background: rgba(0, 240, 255, 0.1); width: 50px; height: 50px; display: flex; justify-content: center; align-items: center; border-radius: 12px; }
.device-info h3 { font-size: 1rem; color: #fff; margin-bottom: 5px; }
.device-info p, .device-info ul { font-size: 0.85rem; color: #b2ebf2; list-style: none; }

.qa-container { display: flex; flex-direction: column; gap: 12px; }
.question { font-weight: bold; color: var(--cyan-glow); margin-bottom: 5px; }
.answer { color: #e0f7fa; font-size: 0.9rem; padding-left: 25px; border-left: 2px solid rgba(0, 240, 255, 0.3); }

.fade-in-up { opacity: 0; transform: translateY(40px); animation: fadeInUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards; animation-delay: 0.2s; }
.fade-in-scroll { opacity: 0; transform: translateY(40px) scale(0.98); transition: 0.6s cubic-bezier(0.25, 0.8, 0.25, 1); }
.fade-in-scroll.appear { opacity: 1; transform: translateY(0) scale(1); }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

#loading-screen { position: fixed; inset: 0; background: var(--sea-dark); display: flex; justify-content: center; align-items: center; z-index: 9999; transition: opacity 0.5s; }
.loader-ring { position: absolute; width: 120px; height: 120px; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--cyan-glow); border-bottom-color: var(--sea-light); animation: spin 1s linear infinite; }
.loading-content { text-align: center; z-index: 1; }
@keyframes spin { 100% { transform: rotate(360deg); } }