@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;800;900&family=Space+Grotesk:wght@500;700;900&display=swap');

:root {
    --primary-blue: #2563eb; 
    --primary-blue-dark: #1e40af;
    --accent-yellow: #fde047; 
    --accent-yellow-hover: #facc15;
    
    --bg-main: #f0f7ff; 
    --bg-alt: #e0f2fe;
    --bg-nav: rgba(255, 255, 255, 0.95);
    --bg-card: #ffffff;
    
    --text-main: #0f172a; 
    --text-muted: #475569;
    --border: #bfdbfe;
    
    --accent-glow: rgba(37, 99, 235, 0.2);
    --danger-true: #e11d48;
    --success: #10b981;

    --bg-pattern: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l25.98 15v30L30 60 4.02 45V15z' fill-opacity='0.03' fill='%232563eb' fill-rule='evenodd'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease; }
html { scroll-behavior: smooth; }

/* PERBAIKAN BUG HP: Dilarang menaruh overflow-x: hidden di sini agar VERA tidak nyangkut */
body { 
    background-color: var(--bg-main); 
    background-image: var(--bg-pattern); 
    color: var(--text-main); 
    font-family: 'Poppins', sans-serif; 
    line-height: 1.6;
    min-height: 100vh;
}

/* Letakkan overflow-x di wrapper utama saja agar rapi tanpa merusak efek melayang */
.page-transition { 
    overflow-x: hidden;
    width: 100%;
    animation: slideInFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; 
}

@keyframes slideInFade { 0% { opacity: 0; transform: translateY(40px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes floatWorld { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* NAVBAR & SIDEBAR */
.navbar { position: fixed; top: 0; left: 0; width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 15px 5%; background: var(--bg-nav); backdrop-filter: blur(12px); z-index: 9000; border-bottom: 2px solid var(--border); box-shadow: 0 4px 20px rgba(37,99,235,0.05); }
.nav-logo { font-weight: 900; font-size: 26px; color: var(--primary-blue); letter-spacing: 1px; text-decoration: none; display: flex; align-items: center; gap: 5px;}
.nav-logo span { color: var(--accent-yellow-hover); }
.nav-links { display: flex; gap: 25px; align-items: center;}
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 14px; font-weight: 700; transition: 0.2s; padding: 8px 15px; border-radius: 20px;}
.nav-links a:hover { color: var(--primary-blue); background: var(--bg-alt); }

.hamburger-btn { background: none; border: none; color: var(--primary-blue); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 5px; border-radius: 6px; transition: 0.2s; }
.hamburger-btn:hover { background: var(--bg-alt); }

.side-panel { position: fixed; top: 0; left: -300px; width: 280px; height: 100vh; background: var(--bg-card); border-right: 2px solid var(--border); z-index: 9999; transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1); display: flex; flex-direction: column; padding: 25px; box-shadow: 5px 0 30px rgba(37,99,235,0.1); }
.side-panel.open { left: 0; }
.side-panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; padding-bottom: 15px; border-bottom: 2px solid var(--border); }
.side-panel-close { background: none; border: none; font-size: 24px; color: var(--text-muted); cursor: pointer; transition: 0.2s; }
.side-panel-close:hover { color: var(--danger-true); transform: scale(1.1); }
.side-nav { display: flex; flex-direction: column; gap: 10px; }
.side-nav a { text-decoration: none; color: var(--text-muted); font-weight: 700; font-size: 15px; padding: 12px 15px; border-radius: 15px; transition: 0.2s; display: flex; align-items: center; gap: 12px;}
.side-nav a:hover { background: var(--bg-alt); color: var(--primary-blue); }

.panel-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(15,23,42,0.5); z-index: 9998; opacity: 0; visibility: hidden; transition: 0.3s; backdrop-filter: blur(3px); }
.panel-overlay.open { opacity: 1; visibility: visible; }

/* HERO SECTION */
.hero-section { text-align: center; padding: 160px 20px 80px; max-width: 1200px; margin: 0 auto; position: relative; }
.hero-content-center { position: relative; z-index: 5; }

.hero-mascot { position: absolute; bottom: -20px; width: 260px; height: 420px; z-index: 1; pointer-events: none; }
.mascot-left { left: 0; }
.mascot-right { right: 0; }
.hero-mascot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%); mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%); }

.hero-tag { border: 2px solid var(--primary-blue); color: var(--primary-blue); background: var(--bg-card); padding: 8px 25px; border-radius: 30px; font-size: clamp(11px, 2vw, 14px); font-weight: 800; letter-spacing: 1px; display: inline-block; margin-bottom: 20px; box-shadow: 0 10px 20px var(--accent-glow);}
.hero-title { font-size: clamp(45px, 10vw, 70px); font-weight: 900; line-height: 1.1; margin-bottom: 20px; letter-spacing: -1px; color: var(--primary-blue-dark); text-transform: uppercase;}
.hero-title .highlight { color: var(--primary-blue); display: block; font-size: clamp(18px, 4.5vw, 32px); margin-top: 8px; line-height: 1.4; letter-spacing: 0px; }
.hero-desc { font-size: clamp(13px, 3.5vw, 18px); color: var(--text-muted); font-weight: 500; margin-bottom: 40px; max-width: 800px; margin-left: auto; margin-right: auto; line-height: 1.7; padding: 0 10px;}

.hero-btn-group { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap;}

.btn-glow { background: var(--accent-yellow); color: var(--primary-blue-dark); padding: 16px 40px; border-radius: 50px; text-decoration: none; font-weight: 900; font-size: 16px; box-shadow: 0 10px 25px rgba(253, 224, 71, 0.5); border: 2px solid var(--accent-yellow-hover); display: flex; align-items: center; gap: 10px; transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); cursor: pointer;}
.btn-glow:hover { transform: translateY(-5px) scale(1.05); box-shadow: 0 15px 35px rgba(253, 224, 71, 0.6); }
.btn-outline { background: var(--bg-card); color: var(--primary-blue); border: 2px solid var(--primary-blue); padding: 16px 40px; border-radius: 50px; text-decoration: none; font-weight: 800; font-size: 16px;}
.btn-outline:hover { background: var(--primary-blue); color: #fff; box-shadow: 0 10px 25px var(--accent-glow);}

/* SECTIONS & HEADERS */
.section-container { padding: 120px 20px; }
.bg-alt { background-color: var(--bg-alt); border: none; width: 100vw !important; max-width: 100vw !important; margin-top: 60px !important; margin-bottom: 0 !important; margin-left: calc(-50vw + 50%) !important; margin-right: calc(-50vw + 50%) !important; }

.section-header { text-align: center; margin-bottom: 70px; }
.section-title { font-size: 38px; font-weight: 900; margin-bottom: 15px; color: var(--primary-blue-dark); text-transform: uppercase;}
.section-sub { color: var(--text-muted); font-size: 16px; font-weight: 500; max-width: 700px; margin: 0 auto; line-height: 1.8; }

#seroton-hub { background-color: #f8fafc; background-image: linear-gradient(rgba(37, 99, 235, 0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(37, 99, 235, 0.1) 1px, transparent 1px); background-size: 35px 35px; animation: nekaGridAnim 10s linear infinite; border-top: 1px dashed var(--border); border-bottom: 1px dashed var(--border); }
@keyframes nekaGridAnim { 0% { background-position: 0px 0px; } 100% { background-position: 35px 35px; } }

.section-divider { height: 6px; width: 100%; max-width: 150px; background: var(--accent-yellow); margin: 0 auto 30px; border-radius: 10px; box-shadow: 0 0 15px rgba(253, 224, 71, 0.5); }
.divider-neva { background: var(--danger-true); box-shadow: 0 0 15px rgba(225, 29, 72, 0.4); max-width: 250px; }

.neka-blueprint-bg { position: relative; background-color: #e0f2fe; background-image: linear-gradient(rgba(37, 99, 235, 0.15) 2px, transparent 2px), linear-gradient(90deg, rgba(37, 99, 235, 0.15) 2px, transparent 2px); background-size: 40px 40px; animation: nekaGridMove 10s linear infinite; border-top: 2px dashed var(--primary-blue); border-bottom: 2px dashed var(--primary-blue); }
@keyframes nekaGridMove { 0% { background-position: 0 0; } 100% { background-position: 40px 40px; } }

/* BUBBLE UI GRID MODULES */
.modules-wrapper { width: 100%; max-width: 1200px; margin: 0 auto 40px auto; display: grid; gap: 35px; justify-content: center; }
.kartu-fitur { background: var(--bg-card); border: 3px solid var(--border); border-radius: 35px; padding: 45px 35px; display: flex; flex-direction: column; text-decoration: none; color: var(--text-main); cursor: pointer; box-shadow: 0 15px 40px rgba(37,99,235,0.05); position: relative; overflow: hidden; transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);}
.kartu-fitur:hover { border-color: var(--primary-blue); box-shadow: 0 20px 50px var(--accent-glow); transform: translateY(-10px); }

.kartu-spesial { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; gap: 40px; background: linear-gradient(135deg, #fff 0%, var(--bg-alt) 100%); border: 3px solid var(--danger-true); box-shadow: 0 15px 40px rgba(225, 29, 72, 0.15); }
.kartu-spesial:hover { box-shadow: 0 25px 50px rgba(225, 29, 72, 0.25); transform: translateY(-8px) scale(1.02); }

.ikon-kartu { font-size: 60px; margin-bottom: 25px; filter: drop-shadow(0 10px 10px rgba(0,0,0,0.1));}
.judul-kartu { font-size: 26px; font-weight: 900; margin-bottom: 15px; color: var(--primary-blue-dark); text-transform: uppercase;}
.teks-kartu { font-size: 15px; color: var(--text-muted); font-weight: 500; margin-bottom: 30px; flex-grow: 1; line-height: 1.7; }

.btn-aksi { background: var(--primary-blue); color: #fff; padding: 15px; border-radius: 50px; font: bold 15px 'Poppins', sans-serif; text-transform: uppercase; width: 100%; text-align: center; border: 2px solid var(--primary-blue); box-shadow: 0 8px 20px var(--accent-glow);}
.kartu-fitur:not(.kartu-spesial):hover .btn-aksi { background: var(--accent-yellow); color: var(--primary-blue-dark); border-color: var(--accent-yellow); box-shadow: 0 10px 25px rgba(253, 224, 71, 0.5);}

/* ANIMASI PORTAL SEROTONIN 3D */
@keyframes pulsePortal { 0% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.5); } 70% { box-shadow: 0 0 0 15px rgba(225, 29, 72, 0); } 100% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0); } }
@keyframes floatIcon { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-12px) rotate(8deg); } }
.portal-card { background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(219,234,254,0.8) 100%); border: 3px solid var(--primary-blue); border-radius: 35px; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); overflow: hidden; box-shadow: 0 15px 35px rgba(37, 99, 235, 0.1); }
.portal-card::after { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(253,224,71,0.1) 10%, transparent 50%); animation: spinHoloReel 15s linear infinite; pointer-events: none; z-index: 0; }
.portal-card:hover { transform: scale(1.03) translateY(-8px); border-color: var(--accent-yellow); box-shadow: 0 25px 50px rgba(37, 99, 235, 0.25); }
.portal-icon { animation: floatIcon 3.5s ease-in-out infinite; display: inline-block; position: relative; z-index: 10; }
.portal-btn { animation: pulsePortal 2s infinite; position: relative; z-index: 10; transition: 0.3s ease; }
.portal-card:hover .portal-btn { background: var(--accent-yellow) !important; color: var(--primary-blue-dark) !important; border-color: var(--primary-blue-dark) !important; box-shadow: 0 10px 25px rgba(253, 224, 71, 0.6); }

/* MEGA FOOTER */
.mega-footer { background: #ffffff !important; padding: 60px 5% 15px !important; border: none !important; width: 100% !important; margin: 0 !important; display: block; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 40px; max-width: 1200px; margin: 0 auto 20px auto !important;}
.footer-col h4 { color: var(--primary-blue-dark); font-size: 18px; font-weight: 900; margin-bottom: 20px; text-transform: uppercase;}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--text-muted); text-decoration: none; font-size: 14px; transition: 0.2s; font-weight: 600;}
.footer-col ul li a:hover { color: var(--primary-blue); padding-left: 8px; }
.brand-col h2 { font-size: 36px; font-weight: 900; color: var(--primary-blue); margin-bottom: 10px; letter-spacing: -1px;}
.brand-col p { color: var(--text-muted); font-size: 14px; font-weight: 500; line-height: 1.6; margin-bottom: 20px; padding-right: 40px;}
.footer-bottom { border: none; padding-top: 15px; display: flex; justify-content: center; align-items: center; max-width: 1200px; margin: 0 auto;}
.copy-text { color: var(--text-muted); font-size: 13px; font-weight: 600;}

/* =========================================
   ASISTEN NORAA (AUTO-PROGRESSION)
   ========================================= */
#vera-guide {
    position: fixed !important; 
    bottom: 30px; left: 30px; 
    z-index: 999999 !important; /* Paksa agar VERA selalu terbang di layar viewport */
    display: flex; align-items: flex-end; gap: 15px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(150%);
    opacity: 0;
    pointer-events: none;
}
#vera-guide.aktif {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.vera-avatar {
    width: 75px; height: 75px; border-radius: 50%; 
    background: linear-gradient(135deg, var(--primary-blue), #38bdf8);
    display: flex; justify-content: center; align-items: center;
    font-size: 38px; box-shadow: 0 10px 25px rgba(37, 99, 235, 0.5);
    border: 4px solid #fff; animation: floatVera 3s ease-in-out infinite;
    cursor: pointer;
}
.vera-bubble {
    background: #ffffff; padding: 20px 25px; border-radius: 20px; border-bottom-left-radius: 0;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15); max-width: 360px;
    border: 2px solid var(--primary-blue);
}
.vera-name { font-size: 12px; font-weight: 900; color: var(--primary-blue); letter-spacing: 1px; margin-bottom: 5px; text-transform: uppercase; }
.vera-text { font-size: 14px; font-weight: 600; color: var(--text-main); line-height: 1.5; min-height: 40px; }

.vera-cursor { animation: blinkVera 1s step-end infinite; font-weight: 900; color: var(--primary-blue); }
@keyframes blinkVera { 50% { opacity: 0; } }

.fitur-terkunci { filter: grayscale(100%) opacity(0.5); cursor: not-allowed !important; transform: scale(0.98); }
.fitur-sorot { animation: pulseSorot 2s infinite !important; border-color: var(--accent-yellow) !important; z-index: 10; }
@keyframes pulseSorot {
    0% { box-shadow: 0 0 0 0 rgba(253, 224, 71, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(253, 224, 71, 0); }
    100% { box-shadow: 0 0 0 0 rgba(253, 224, 71, 0); }
}

/* =========================================
   LOGO OTAK MENUMPUK (OVERLAP) HURUF "O"
   ========================================= */
.overlap-o {
    position: relative;
    display: inline-block;
}

/* Untuk huruf O besar di tengah (Hero Section) */
.hero-brain-overlap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(20%, -50%); 
    height: 1.5em; 
    width: auto;
    z-index: 10;
    pointer-events: none; 
    filter: drop-shadow(0 8px 20px rgba(37,99,235,0.4));
}

/* Untuk huruf O di pojok kiri atas (Navbar & Sidebar) */
.nav-brain-overlap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -47%);
    height: 30px; 
    width: auto;
    z-index: 10;
    pointer-events: none;
}

/* =========================================
   TOMBOL SOUND MENGAPUNG
   ========================================= */
.floating-sound-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--bg-nav);
    border: 2px solid var(--border);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.15);
    color: var(--primary-blue);
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 999999;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(5px);
}
.floating-sound-btn:hover {
    transform: scale(1.1) translateY(-5px);
    background: var(--bg-alt);
    border-color: var(--primary-blue);
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .hero-mascot { width: 22vw; max-height: 500px; } 
    .hero-title { font-size: 50px; }
}
@media (max-width: 900px) { 
    .hero-mascot { display: none; } 
    .hero-section { padding: 140px 20px 60px; }
    .nav-links { display: none; } 
    .modules-wrapper { grid-template-columns: 1fr !important; max-width: 500px !important; margin: 0 auto 40px; } 
    .portal-card { flex-direction: column; text-align: center; gap: 20px !important; }
    .portal-card > div { max-width: 100% !important; text-align: center !important; flex: 1 1 100% !important; }
    .portal-btn { width: 100%; margin-top: 10px; }
    .footer-grid { grid-template-columns: 1fr 1fr; } 
    .brand-col { grid-column: 1 / -1; padding-right: 0; text-align: center; } 
    .brand-col p { margin: 0 auto 20px; }
}
@media (max-width: 768px) {
    .hero-section { padding: 100px 15px 40px; overflow-x: hidden; }
    .hero-btn-group { flex-direction: column; gap: 12px; padding: 0 15px;}
    .btn-glow, .btn-outline { width: 100%; justify-content: center; font-size: 14px; padding: 14px 20px; }
    .section-title { font-size: 28px; }
    .section-container { padding: 80px 15px; } 
    .kartu-spesial { flex-direction: column !important; text-align: center; padding: 25px 15px; }
    .kartu-spesial > div { flex: 1 1 100% !important; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 30px; } 
    .footer-col { margin-bottom: 10px; }
    .nav-logo { font-size: 22px; }
    
    /* PERBAIKAN NORAA DI MOBILE AGAR PROPORSIONAL & TIDAK NYANGKUT DI FOOTER */
    #vera-guide { 
        bottom: 15px; left: 15px; right: 15px; 
        gap: 12px;
    }
    .vera-avatar { 
        width: 55px; height: 55px; 
        font-size: 26px; border-width: 3px; 
        flex-shrink: 0; 
    }
    .vera-bubble { 
        max-width: 100%; padding: 15px; 
        flex-grow: 1; border-radius: 18px; border-bottom-left-radius: 0; 
    }
    .vera-text { font-size: 13px; line-height: 1.4; min-height: auto; }

    /* TOMBOL SOUND DI MOBILE DINAUKAN AGAR TIDAK TERTUMPUK BUBBLE NORAA */
    .floating-sound-btn {
        bottom: 110px; 
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}