/* RESET SEMUA */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #030712; /* Mode Gelap Elegan */
    padding: 25px 20px;
    color: white;
    overflow-x: hidden;
    position: relative;
}

/* === MODAL POPUP PERTANYAAN PERFORMA === */
.render-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.render-modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.render-modal-box {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 28px;
    padding: 35px 25px;
    max-width: 380px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
    transform: scale(0.9);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.render-modal-overlay.show .render-modal-box {
    transform: scale(1);
}

.render-modal-icon {
    font-size: 42px;
    margin-bottom: 15px;
}

.render-modal-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #f8fafc;
}

.render-modal-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #94a3b8;
    margin-bottom: 25px;
}

.render-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-btn {
    width: 100%;
    padding: 14px 20px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.modal-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.btn-yes {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.btn-no {
    background: #1e293b;
    color: #cbd5e1;
    border: 1px solid #334155;
}

/* =========================================================
   === ATURAN MODE RINGAN ("TIDAK, MODE RINGAN") - ANTI LAG ===
   ========================================================= */
/* 1. Hilangkan 4 bola cahaya di latar belakang */
body.low-perf .orb {
    display: none !important;
    animation: none !important;
}

/* 2. Ganti kontainer kaca dengan card solid yang rapi */
body.low-perf .bio-container {
    background: #0f172a !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid #1e293b !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5) !important;
}

/* 3. Ubah tombol Liquid Glass menjadi tombol flat/biasa ringan */
body.low-perf .glass-btn {
    background: #1e293b !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid #334155 !important;
    box-shadow: none !important;
    animation: none !important;
}

body.low-perf .glass-btn:hover {
    background: #334155 !important;
    border-color: #475569 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3) !important;
}

/* 4. Matikan efek pantulan cahaya mengkilap & pelangi berat */
body.low-perf .glass-btn::after,
body.low-perf .crystal-gloss::before {
    display: none !important;
    animation: none !important;
}

body.low-perf .rainbow-gloss,
body.low-perf .crystal-gloss {
    animation: none !important;
    border-color: #475569 !important;
    box-shadow: none !important;
}

/* 5. Sederhanakan tombol Customer Service */
body.low-perf .fab-item,
body.low-perf .fab-toggle {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #1e293b !important;
    border: 1px solid #334155 !important;
}

body.low-perf .fab-toggle {
    background: #2563eb !important;
    border: none !important;
}

body.low-perf .fab-container.active .fab-toggle {
    background: #e11d48 !important;
    box-shadow: none !important;
}

/* =========================================================
   === ATURAN MODE NORMAL / BERAT (DEFAULT LIQUID GLASS) ===
   ========================================================= */
/* === 4 CAHAYA ORBS (MERAH, HIJAU, BIRU, SILVER) TAK BERATURAN === */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(105px);
    opacity: 0.45;
    mix-blend-mode: screen;
    z-index: -1;
    will-change: transform;
    pointer-events: none;
}

.orb-1 { 
    width: 420px; 
    height: 420px; 
    background: #ff004c; 
    top: -10%; 
    left: -10%; 
    animation: floatOrb1 24s infinite alternate ease-in-out;
}

.orb-2 { 
    width: 380px; 
    height: 380px; 
    background: #00ff4c; 
    top: 40%; 
    left: 15%; 
    animation: floatOrb2 28s infinite alternate ease-in-out; 
}

.orb-3 { 
    width: 460px; 
    height: 460px; 
    background: #004cff; 
    bottom: -15%; 
    right: -10%; 
    animation: floatOrb3 32s infinite alternate ease-in-out; 
}

.orb-4 { 
    width: 360px; 
    height: 360px; 
    background: #cbd5e1; 
    top: 15%; 
    right: 10%; 
    animation: floatOrb4 26s infinite alternate ease-in-out; 
}

@keyframes floatOrb1 {
    0%   { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(180px, 110px) scale(1.15); }
    66%  { transform: translate(60px, 240px) scale(0.9); }
    100% { transform: translate(240px, 50px) scale(1.2); }
}

@keyframes floatOrb2 {
    0%   { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(-130px, -150px) scale(1.25); }
    66%  { transform: translate(160px, -80px) scale(0.85); }
    100% { transform: translate(-90px, 160px) scale(1.1); }
}

@keyframes floatOrb3 {
    0%   { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(-200px, -120px) scale(1.15); }
    66%  { transform: translate(-80px, -230px) scale(0.95); }
    100% { transform: translate(-250px, -60px) scale(1.2); }
}

@keyframes floatOrb4 {
    0%   { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(-160px, 180px) scale(1.2); }
    66%  { transform: translate(-220px, -100px) scale(0.9); }
    100% { transform: translate(100px, 190px) scale(1.15); }
}

/* === WADAH KACA UTAMA === */
.bio-container {
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 35px;
    padding: 45px 30px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.3);
    z-index: 10;
}

/* === FOTO PROFIL (100% KUNCI 1:1 OTOMATIS ANTI LONJONG) === */
.profile-img-wrapper {
    position: relative;
    width: 120px !important;
    height: 120px !important;
    min-width: 120px !important;
    min-height: 120px !important;
    margin: 0 auto 20px auto;
    border-radius: 50% !important;
    overflow: hidden !important;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateZ(0);
    backface-visibility: hidden;
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.15);
}

.profile-pic {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 50% !important;
    display: block;
    flex-shrink: 0;
}

/* === TYPOGRAPHY === */
.nama {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #ffffff, #9ca3af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sub-nama {
    font-size: 14px;
    color: #38bdf8;
    margin-bottom: 18px;
    letter-spacing: 1px;
    font-weight: 600;
}

.artikel {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 30px;
}

.links-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* === TOMBOL SEBENING KACA DENGAN IKON SVG === */
.glass-btn {
    display: block;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 15px;
    padding: 16px 20px;
    border-radius: 20px;
    
    --c1: 255, 255, 255;
    --c2: 255, 255, 255;
    
    background: linear-gradient(135deg, rgba(var(--c1), 0.18), rgba(var(--c2), 0.04));
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(var(--c1), 0.35);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4);
    
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.btn-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-svg {
    transition: transform 0.3s ease;
}

.glass-btn:hover .btn-svg {
    transform: scale(1.15) rotate(-5deg);
}

.glass-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 45%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.glass-btn:hover, .glass-btn:active {
    transform: translateY(-4px);
    border-radius: 30px 12px 30px 12px;
    background: linear-gradient(135deg, rgba(var(--c1), 0.35), rgba(var(--c2), 0.15));
    box-shadow: 0 15px 30px rgba(var(--c1), 0.35);
    border-color: rgba(var(--c1), 0.8);
    color: #ffffff;
    text-shadow: 0 0 10px rgba(var(--c1), 0.8);
}

/* === KHUSUS CRYSTAL UNGU & BIRU (MENGKILAP / GLOSSY SHIMMER) === */
.crystal-gloss {
    border: 1.5px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 0 20px rgba(var(--c1), 0.5), inset 0 0 15px rgba(255, 255, 255, 0.3) !important;
}

.crystal-gloss::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -150%;
    width: 100%;
    height: 200%;
    background: linear-gradient(
        120deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.65) 50%, 
        transparent 70%
    );
    transform: rotate(25deg);
    animation: crystalShine 3.5s infinite linear;
    pointer-events: none;
    z-index: 2;
}

@keyframes crystalShine {
    0%   { left: -150%; }
    40%  { left: 150%; }
    100% { left: 150%; }
}

/* === KHUSUS PELANGI (RAINBOW GLOSS) === */
.rainbow-gloss {
    background: linear-gradient(135deg, rgba(255,0,76,0.2), rgba(0,255,128,0.2), rgba(0,76,255,0.2)) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.6) !important;
    animation: rainbowPulse 4s infinite alternate ease-in-out;
}

@keyframes rainbowPulse {
    0%   { box-shadow: 0 10px 25px rgba(255, 0, 76, 0.35); border-color: #ff004c; }
    33%  { box-shadow: 0 10px 25px rgba(0, 255, 128, 0.35); border-color: #00ff80; }
    66%  { box-shadow: 0 10px 25px rgba(0, 180, 255, 0.35); border-color: #00b4ff; }
    100% { box-shadow: 0 10px 25px rgba(255, 0, 255, 0.35); border-color: #ff00ff; }
}

/* === MENU CUSTOMER BAWAH KANAN (FAB) === */
.fab-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.fab-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    transform: translateY(30px) scale(0.8);
    pointer-events: none;
    transition: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: bottom center;
}

.fab-container.active .fab-menu {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.fab-item, .fab-toggle {
    width: 55px;
    height: 55px;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 1px 1px rgba(255,255,255,0.4);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    outline: none;
    -webkit-touch-callout: none;
}

.fab-item::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 70px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    pointer-events: none;
    transition: 0.3s ease;
    border: 1px solid rgba(255,255,255,0.15);
}

.fab-item:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.fab-item:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: scale(1.08);
    border-color: rgba(255, 255, 255, 0.8);
    color: #38bdf8;
}

.fab-toggle {
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg, rgba(255,0,76,0.45), rgba(0,76,255,0.45));
    z-index: 2;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
}

.fab-container.active .fab-toggle {
    background: linear-gradient(135deg, rgba(255, 0, 76, 0.85), rgba(203, 213, 225, 0.45));
    border-color: #ff004c;
    box-shadow: 0 0 25px rgba(255, 0, 76, 0.7), inset 0 0 12px rgba(255, 255, 255, 0.6);
    color: #ffffff;
}

.fab-container.active .fab-toggle .fab-icon-main {
    transform: rotate(45deg); 
}

.fab-icon-main { 
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); 
}
