/* =========================================
   1. DESIGN TOKENS (SYSTEM CONFIGURATION)
   ========================================= */
:root {
    /* --- COLOR PALETTE (Refined) --- */
    --color-primary: #E11D48;       /* Rose 600 */
    --color-primary-dark: #BE123C;  /* Rose 700 */
    --color-primary-soft: #FFF1F2;  /* Rose 50 */
    
    --color-secondary: #3B82F6;     /* Blue 500 */
    --color-secondary-soft: #EFF6FF;/* Blue 50 */
    
    --color-text-heading: #0F172A;  /* Slate 900 */
    --color-text-body: #475569;     /* Slate 600 */
    --color-text-muted: #94A3B8;    /* Slate 400 */
    
    --color-bg-body: #FFFFFF;
    --color-bg-surface: #F8FAFC;    /* Slate 50 */
    --color-border: #E2E8F0;        /* Slate 200 */

    /* --- SPACING SCALE (8pt Grid) --- */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-section: 100px; /* Konsisten antar section */
    
    /* --- TYPOGRAPHY SCALE --- */
    --font-h1: 3.5rem;   /* 56px */
    --font-h2: 2.5rem;   /* 40px */
    --font-h3: 1.5rem;   /* 24px */
    --font-body: 1.05rem; /* 16.8px (Optimum reading) */
    --font-small: 0.875rem;
    --line-height-body: 1.7;
    --line-height-heading: 1.2;

    /* --- ELEVATION (Shadows) --- */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.01);
    --shadow-primary: 0 10px 25px -5px rgba(225, 29, 72, 0.3);
    
    /* --- RADIUS --- */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* --- ANIMATION --- */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --ease-hover: cubic-bezier(0.4, 0.0, 0.2, 1);
    --ease-reveal: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-idle: ease-in-out;
}

/* =========================================
   2. RESET & BASE STYLES
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    background-color: var(--color-bg-body);
    color: var(--color-text-body);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: var(--line-height-body);
    -webkit-font-smoothing: antialiased;
}

/* Scroll Progress Bar */
.scroll-progress-bar {
    position: fixed; top: 0; left: 0; height: 3px;
    background: var(--color-primary); width: 0%; z-index: 9999;
    box-shadow: 0 2px 4px rgba(225, 29, 72, 0.4);
    transition: width 0.1s linear;
}

/* =========================================
   3. LAYOUT UTILITIES
   ========================================= */
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 var(--space-6); 
}

.section { 
    padding: var(--space-section) 0; 
    position: relative; 
}

.bg-soft { background-color: var(--color-bg-surface); }
.text-center { text-align: center; }

/* =========================================
   4. TYPOGRAPHY SYSTEM
   ========================================= */
.section-heading {
    font-size: var(--font-h2);
    font-weight: 800;
    color: var(--color-text-heading);
    line-height: var(--line-height-heading);
    margin-bottom: var(--space-4);
    letter-spacing: -0.03em;
}

.sub-title, .overline-text {
    display: block;
    color: var(--color-primary);
    font-weight: 700;
    font-size: var(--font-small);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: var(--space-3);
}

.section-desc {
    font-size: var(--font-body);
    color: var(--color-text-body);
    max-width: 600px;
    margin-bottom: var(--space-8);
}
.text-center .section-desc { margin: 0 auto var(--space-8); }

/* =========================================
   5. COMPONENT: BUTTONS & HOVER
   ========================================= */
.btn-primary-large, .btn-cta-nav, .btn-primary {
    background: var(--color-primary);
    color: white;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
    border-radius: var(--radius-full);
    transition: transform 0.3s var(--ease-hover), 
                box-shadow 0.3s var(--ease-hover), 
                filter 0.3s var(--ease-hover);
    border: none; cursor: pointer;
}

.btn-primary-large {
    padding: var(--space-4) var(--space-8);
    font-size: 1rem;
    box-shadow: var(--shadow-primary);
    animation: softGlow 4s ease-in-out infinite;
}

.btn-cta-nav {
    padding: var(--space-3) var(--space-6);
    font-size: 0.9rem;
}

.btn-primary-large:hover, .btn-cta-nav:hover, .btn-primary:hover {
    transform: scale(1.03) translateZ(0);
    box-shadow: 0 10px 25px rgba(225, 29, 72, 0.35);
    filter: brightness(1.05); /* Sedikit lebih terang */
}

.btn-secondary, .btn-outline-large {
    background: white;
    color: var(--color-text-heading);
    border: 1px solid var(--color-border);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex; align-items: center; gap: var(--space-2);
    border-radius: var(--radius-full);
    transition: var(--transition-smooth);
}

.btn-outline-large { padding: var(--space-4) var(--space-8); }
.btn-secondary { padding: var(--space-3) var(--space-6); }

.btn-secondary:hover, .btn-outline-large:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-primary-soft);
}

/* =========================================
   6. COMPONENT: NAVBAR & NAVIGATION
   ========================================= */
.navbar {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 80px;
    display: flex; align-items: center;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid transparent;
}

.nav-container {
    width: 100%; max-width: 1200px;
    margin: 0 auto; padding: 0 24px;
    display: flex; justify-content: space-between; align-items: center;
}

.brand-group {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none; flex-shrink: 0;
}
.brand-logo { height: 40px; width: auto; object-fit: contain; }
.brand-name {
    font-weight: 800; font-size: 1.25rem;
    color: #0F172A; letter-spacing: -0.02em;
}

.nav-links-container {
    display: flex; align-items: center; gap: 8px;
    background: #F1F5F9; padding: 6px 8px;
    border-radius: 100px; border: 1px solid rgba(0, 0, 0, 0.02);
}

/* Nav Item Styles & Micro Interactions */
.nav-item {
    text-decoration: none;
    color: #64748B;
    font-weight: 600; font-size: 0.9rem;
    padding: 8px 20px; border-radius: 100px;
    position: relative;
    transition: color 0.3s var(--ease-hover);
}

/* Underline Animation */
.nav-item::after {
    content: '';
    position: absolute; bottom: 0; left: 0;
    width: 0%; height: 2px;
    background-color: var(--color-primary);
    transform: scaleX(0); transform-origin: right;
    transition: transform 0.4s var(--ease-hover);
}

.nav-item:hover { color: var(--color-primary); background: rgba(255, 255, 255, 0.5); }
.nav-item:hover::after { transform: scaleX(1); transform-origin: left; width: 100%; }

.nav-item.active {
    color: var(--color-primary);
    background: #FFFFFF;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.nav-item.active::after { width: 100%; transform: scaleX(1); }

@media (max-width: 968px) { .nav-links-container { display: none; } }

/* =========================================
   7. SECTION: HERO (3D SPACE & LAYOUT)
   ========================================= */
.hero-section {
    position: relative !important;
    padding-top: 140px;
    min-height: 100vh;
    display: flex; align-items: center;
    overflow: hidden;
    /* Soft gradient background */
    background: radial-gradient(circle at 100% 0%, rgba(255,228,230,0.4) 0%, transparent 40%);
}

.hero-container, .hero-grid {
    position: relative;
    z-index: 10 !important; /* Di atas virus background */
    display: grid; grid-template-columns: 5fr 7fr; gap: var(--space-10); align-items: center;
}

/* --- PREMIUM 3D VIRUS SCENE (BACKGROUND) --- */
.hero-virus-absolute-wrapper {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0; /* Di belakang konten */
    pointer-events: none;
    overflow: hidden;
    perspective: 1200px;
    transform-style: preserve-3d;
}

/* Common Virus Object */
.virus-3d-object {
    position: absolute;
    border-radius: 50%;
    background-size: 135%;
    background-position: center;
    background-repeat: no-repeat;
    /* Masking Bulat */
    -webkit-mask-image: radial-gradient(circle, white 60%, transparent 70%);
    mask-image: radial-gradient(circle, white 60%, transparent 70%);
    /* Shadow Depth */
    box-shadow: inset -20px -20px 60px rgba(100, 0, 0, 0.4), 
                inset 10px 10px 30px rgba(255, 255, 255, 0.2),
                0 20px 40px rgba(225, 29, 72, 0.15);
    will-change: transform;
}

/* --- VIRUS 1: MAIN (Besar, Kanan, Fokus) --- */
.v-main-scene {
    width: 480px; height: 480px;
    top: 50%; left: 65%; /* Posisi 65% (agak masuk ke tengah) */
    transform: translate(-50%, -50%) translateZ(0);
    z-index: 2; opacity: 1;
    background-image: url('assets/virus-3d.png'); 
    animation: floatMain 16s ease-in-out infinite alternate;
}

/* --- VIRUS 2: SECONDARY (Kiri, Blur, Depth) --- */
.v-secondary-scene {
    width: 250px; height: 250px;
    top: 20%; left: 10%;
    opacity: 0.6; filter: blur(4px);
    z-index: 1;
    background-image: url('assets/virus-3d.png');
    animation: floatSecondary 20s ease-in-out infinite alternate-reverse;
}

/* --- VIRUS 3: TERTIARY (Kecil, Bawah Kanan) --- */
.v-tertiary-scene {
    width: 150px; height: 150px;
    bottom: 15%; right: 15%;
    opacity: 0.4; filter: blur(2px);
    z-index: 1;
    background-image: url('assets/virus-3d.png');
    animation: floatTertiary 12s ease-in-out infinite alternate;
}

/* Lighting Sweep Effect */
.v-light-sweep {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 50%;
    background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,0.4) 50%, transparent 60%);
    mix-blend-mode: soft-light;
    animation: lightSweep 8s linear infinite;
}

/* --- ANIMASI VIRUS PREMIUM --- */
@keyframes floatMain {
    0% { transform: translate(-50%, -55%) rotateX(5deg) rotateY(-5deg) scale(1); }
    100% { transform: translate(-50%, -45%) rotateX(-5deg) rotateY(5deg) scale(1.02); }
}
@keyframes floatSecondary {
    0% { transform: translateY(0) rotate(0deg) scale(0.9); }
    100% { transform: translateY(-30px) rotate(10deg) scale(1); }
}
@keyframes floatTertiary {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-15px, -15px) rotate(-5deg); }
}
@keyframes lightSweep {
    0% { background-position: -200% 0; opacity: 0; }
    50% { opacity: 1; }
    100% { background-position: 200% 0; opacity: 0; }
}

/* --- HERO TEXT & CONTENT --- */
.badge-pill {
    display: inline-block; padding: var(--space-2) var(--space-4);
    background: var(--color-primary-soft); color: var(--color-primary);
    border-radius: var(--radius-full); font-size: var(--font-small); font-weight: 700;
    margin-bottom: var(--space-6); border: 1px solid rgba(225, 29, 72, 0.1);
}

.hero-heading {
    font-size: var(--font-h1); color: var(--color-text-heading);
    font-weight: 800; line-height: 1.1; margin-bottom: var(--space-6);
}
.text-gradient {
    color: var(--color-primary);
    background: linear-gradient(135deg, #1E293B 0%, #E11D48 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.hero-lead {
    font-size: 1.125rem; color: var(--color-text-body);
    margin-bottom: var(--space-10); max-width: 90%;
}

.hero-visual-area { position: relative; height: 400px; display: none; } /* Hide old visual area */

/* Card Styles (Reused) */
.visual-card {
    position: absolute; background: white;
    padding: var(--space-5); border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl); border: 1px solid var(--color-border);
    display: flex; align-items: center; gap: var(--space-4); width: 260px;
    animation: idleFloat 6s ease-in-out infinite;
    z-index: 20; /* Tetap di atas virus */
}
.card-virus { top: 15%; right: 0; animation-delay: 0s; }
.card-imun { bottom: 15%; left: 0; z-index: 10; animation-delay: 3s; }

.icon-surface {
    width: 56px; height: 56px; border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
    animation: idleBreathe 5s ease-in-out infinite;
}
.red-surface { background: var(--color-primary-soft); color: var(--color-primary); }
.blue-surface { background: var(--color-secondary-soft); color: var(--color-secondary); }

/* =========================================
   8. SECTION: CARDS & CONTENT (GENERAL)
   ========================================= */
.split-layout { display: grid; grid-template-columns: 5fr 7fr; gap: var(--space-12); align-items: start; }

.info-card, .phase-card, .prevention-panel {
    background: white; border-radius: var(--radius-xl); padding: var(--space-8);
    box-shadow: var(--shadow-sm); border: 1px solid var(--color-border);
    transition: transform 0.35s var(--ease-reveal), box-shadow 0.35s var(--ease-reveal);
}

.info-card:hover, .phase-card:hover, .prevention-panel:hover {
    transform: translateY(-6px) scale(1.01) translateZ(0);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
    border-color: rgba(225, 29, 72, 0.15);
}

/* Icon Styles */
.card-icon {
    width: 48px; height: 48px; border-radius: 12px; 
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 16px;
}
.red-icon { background: var(--color-primary-soft); color: var(--color-primary); }
.blue-icon { background: var(--color-secondary-soft); color: var(--color-secondary); }

/* Video Section */
.video-container-premium {
    max-width: 900px; margin: 0 auto;
    border-radius: var(--radius-xl); overflow: hidden;
    position: relative; width: 100%; aspect-ratio: 16/9;
    box-shadow: var(--shadow-xl); background: white;
}
.video-facade { position: absolute; top: 0; left: 0; width: 100%; height: 100%; cursor: pointer; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.video-facade:hover img { transform: scale(1.03); }
.play-trigger {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 80px; height: 80px; background: white; color: var(--color-primary);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 2rem; z-index: 2; transition: var(--transition-smooth);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.video-facade:hover .play-trigger { transform: translate(-50%, -50%) scale(1.1); }

/* Grid Cards */
.grid-cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
.phase-card { position: relative; }
.phase-deco {
    font-size: 4rem; font-weight: 800; color: var(--color-bg-surface);
    position: absolute; top: 10px; right: 20px; line-height: 1; z-index: 0; pointer-events: none;
    -webkit-text-stroke: 1px var(--color-border);
}
.tag-pill {
    display: inline-block; padding: 4px 10px; background: var(--color-bg-surface);
    color: var(--color-text-muted); font-size: 0.8rem; font-weight: 700;
    border-radius: 6px; margin-bottom: var(--space-4);
}
.tag-pill.blue { background: var(--color-secondary-soft); color: var(--color-secondary); }
.tag-pill.red { background: var(--color-primary-soft); color: var(--color-primary); }

/* Prevention Panel */
.prevention-panel { border-top: 4px solid var(--color-primary); padding: var(--space-12); text-align: center; }
.checklist-modern {
    list-style: none; margin: var(--space-10) 0; display: inline-grid;
    grid-template-columns: 1fr 1fr; gap: var(--space-6); text-align: left;
}
.checklist-modern li { display: flex; align-items: flex-start; gap: var(--space-3); color: var(--color-text-heading); }
.check-circle { color: var(--color-primary); margin-top: 4px; }

/* Footer */
.main-footer {
    padding: var(--space-12) 0 var(--space-8);
    border-top: 1px solid var(--color-border); margin-top: var(--space-section);
}
.footer-row {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: var(--space-8); border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--space-8);
}
.footer-nav a {
    color: var(--color-text-muted); margin-left: var(--space-6);
    text-decoration: none; font-weight: 600; transition: 0.2s;
}
.footer-nav a:hover { color: var(--color-primary); }
.footer-note { text-align: center; color: var(--color-text-muted); font-size: 0.875rem; }

/* =========================================
   9. GLOBAL ANIMATIONS & UTILS
   ========================================= */
/* --- ANIMASI VIRUS LEBIH AGRESIF & HIDUP --- */

/* Virus Utama: Gerakan Naik Turun Lebih Jauh + Rotasi Lebih Berani */
@keyframes floatMain {
    0% {
        /* Naik ke atas & Miring Kiri */
        transform: translate(-50%, -65%) rotateX(15deg) rotateY(-15deg) scale(0.95);
    }
    100% {
        /* Turun ke bawah & Miring Kanan */
        transform: translate(-50%, -35%) rotateX(-15deg) rotateY(15deg) scale(1.05);
    }
}

/* Virus Kedua: Melayang Diagonal Lebih Cepat */
@keyframes floatSecondary {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg) scale(0.9);
    }
    100% {
        transform: translateY(-80px) translateX(20px) rotate(25deg) scale(1);
    }
}

/* Virus Ketiga: Gerakan Acak Lebih Lincah */
@keyframes floatTertiary {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    100% {
        transform: translate(-40px, -40px) rotate(-15deg);
    }
}

/* Cahaya Kilat Lebih Sering */
@keyframes lightSweep {
    0% { background-position: -250% 0; opacity: 0; }
    40% { opacity: 0.8; } /* Lebih terang */
    100% { background-position: 250% 0; opacity: 0; }
}

.reveal-up {
    opacity: 0; transform: translateY(24px); 
    transition: opacity 0.8s var(--ease-reveal), transform 0.8s var(--ease-reveal);
    will-change: opacity, transform;
}
.reveal-visible { opacity: 1; transform: translateY(0); }
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }

/* Responsive adjustments */
@media (max-width: 960px) {
    :root { --font-h1: 2.5rem; --space-section: 60px; }
    .hero-container, .split-layout { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero-virus-absolute-wrapper { opacity: 0.2; } /* Fade virus on tablet */
    .hero-btn-group { justify-content: center; }
    .checklist-modern, .grid-cards-3 { grid-template-columns: 1fr; }
    .footer-row { flex-direction: column; gap: 20px; text-align: center; }
}
@media (max-width: 768px) {
    .hero-virus-absolute-wrapper { display: none; } /* Hide on mobile */
}