/* Menggunakan Font Inter agar terlihat bersih & profesional */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #6b21a8; /* Purple */
    border-radius: 4px;
}

/* Animasi Latar Belakang (Blobs) - TETAP ADA untuk halaman lain jika perlu */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
    animation: float 10s infinite ease-in-out alternate;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(20px, 40px); }
}

/* --- HERO SLIDESHOW BARU --- */
#hero-container {
    position: relative;
    overflow: hidden;
}

#hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Paling belakang */
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0; /* Hidden by default */
    transition: opacity 1.5s ease-in-out; /* Transisi halus */
}

.hero-slide.active {
    opacity: 1; /* Show active image */
}

/* Overlay agar teks terbaca jelas diatas gambar */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient Putih Transparan: Bawah solid, atas agak transparan */
    background: linear-gradient( rgba(255,255,255,0.95) 50%, #ffffff 100%,);
    z-index: 1;
}

/* Konten Hero di atas overlay */
.hero-content {
    position: relative;
    z-index: 10;
}


/* Animasi Transisi Hover Kartu */
.card-hover-effect {
    transition: all 0.3s ease-in-out;
}
.card-hover-effect:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Chat Widget Animations */
.chat-hidden { 
    opacity: 0; 
    transform: translateY(20px) scale(0.95); 
    pointer-events: none; 
    visibility: hidden;
}
.chat-visible { 
    opacity: 1; 
    transform: translateY(0) scale(1); 
    pointer-events: auto; 
    visibility: visible;
}
.btn-hidden {
    transform: scale(0);
    opacity: 0;
}

/* Page Header Utilities */
.page-header-bg {
    background: linear-gradient(135deg, #f3e8ff 0%, #e0e7ff 100%);
    position: relative;
    overflow: hidden;
}

/* LOGO MARQUEE ANIMATION */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}
.marquee-content {
    display: inline-block;
    animation: marquee 25s linear infinite;
}
.marquee-content:hover {
    animation-play-state: paused;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
/* Gradient fade untuk marquee */
.marquee-overlay {
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}
.marquee-left { left: 0; background: linear-gradient(to right, white, transparent); }
.marquee-right { right: 0; background: linear-gradient(to left, white, transparent); }

/* FAQ Styles */
details summary::-webkit-details-marker {
    display: none;
}
details > summary {
    list-style: none;
}
details[open] summary ~ * {
    animation: slideDown 0.3s ease-in-out;
}
@keyframes slideDown {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   HERO SECTION — ANIMATED NETWORK + ROTATING SLIDES
   Warna disesuaikan dengan logo OCDI (biru → ungu)
   ========================================================================== */

.hero-section {
    background: linear-gradient(135deg,
        #1E3A8A 0%,      /* Biru tua (dari logo - huruf O) */
        #1E40AF 25%,     /* Biru medium */
        #3730A3 50%,     /* Indigo (transisi) */
        #5B21B6 75%,     /* Ungu tua (transisi ke C) */
        #7C3AED 100%     /* Ungu cerah (dari logo - huruf C) */
    );
    background-size: 200% 200%;
    animation: gradientShift 20s ease infinite;
    isolation: isolate;
}

/* Animasi gradient bergerak halus */
@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ========== NETWORK BACKGROUND ========== */
.hero-network {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-network-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.75;  /* Naik dari 0.6 agar lebih terlihat */
    animation: networkDrift 25s ease-in-out infinite alternate;
}

@keyframes networkDrift {
    0%   { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1.08) rotate(1.5deg); }
}

/* Garis penghubung */
.net-lines line {
    stroke-dasharray: 5 3;
    animation: lineDash 30s linear infinite;
}

@keyframes lineDash {
    0%   { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -80; }
}

/* Node pulse */
.net-node {
    animation: nodePulse 3s ease-in-out infinite;
    filter: drop-shadow(0 0 5px rgba(196, 181, 253, 1));
    /* Ungu muda glowing */
}

.net-node:nth-child(odd)  { animation-delay: 0.5s; }
.net-node:nth-child(3n)   { animation-delay: 1s; }
.net-node:nth-child(5n)   { animation-delay: 1.5s; }

.net-node-lg {
    animation: nodePulseLg 2.5s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(196, 181, 253, 1));
}

@keyframes nodePulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.4); }
}

@keyframes nodePulseLg {
    0%, 100% { opacity: 0.7; transform: scale(1);   }
    50%      { opacity: 1;   transform: scale(1.7); }
}

/* Aurora glow overlay */
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    animation: heroGlowFloat 15s ease-in-out infinite;
}

.hero-glow-1 {
    top: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(30, 64, 175, 0.6) 0%, transparent 70%);
    /* Biru tua */
}

.hero-glow-2 {
    bottom: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.5) 0%, transparent 70%);
    /* Ungu cerah */
    animation-delay: -7s;
}

@keyframes heroGlowFloat {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(40px, 30px); }
}

.hero-bottom-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, #ffffff);
    pointer-events: none;
    z-index: 5;
}

/* ==========================================================================
   HERO SLIDE — Fix Overlap
   ========================================================================== */

/* Container semua slide */
.hero-slides-wrap {
    position: relative;
    min-height: 380px; /* Tinggi minimal agar slide tidak collapse */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Setiap slide */
.hero-slide-item {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.7s;
    padding: 0 1.5rem;
    text-align: center;
    width: 100%;
}

/* Slide yang aktif */
.hero-slide-item.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    position: relative; /* Aktif jadi relative agar tinggi container mengikuti */
}
/* Label (eyebrow) */
/* ====== ANIMASI STAGGER — pakai @keyframes, auto replay ====== */

.hero-slide-item .hero-label,
.hero-slide-item .hero-title,
.hero-slide-item .hero-desc,
.hero-slide-item .hero-actions {
    opacity: 0;
}

/* Saat slide aktif → jalankan animasi */
.hero-slide-item.active .hero-label {
    animation: heroFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.10s forwards;
}

.hero-slide-item.active .hero-title {
    animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards;
}

.hero-slide-item.active .hero-desc {
    animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.65s forwards;
}

.hero-slide-item.active .hero-actions {
    animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.95s forwards;
}

@keyframes heroFadeUp {
    0%   { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0);    }
}

/* ============ STYLE DASAR (hapus transition dari versi lama) ============ */

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(196, 181, 253, 0.5);  /* Ungu muda */
    backdrop-filter: blur(12px);
    color: #ddd6fe;  /* Ungu sangat muda */
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.hero-title-accent {
    background: linear-gradient(135deg,
        #c4b5fd 0%,      /* Ungu sangat muda */
        #a78bfa 30%,     /* Ungu muda */
        #c084fc 60%,     /* Ungu cerah */
        #e9d5ff 100%     /* Ungu pucat (highlight) */
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-desc {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.65;
    color: rgba(226, 232, 240, 0.9);
    max-width: 42rem;
    margin: 0 auto 2.5rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
}

.hero-label-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #a78bfa;  /* Ungu muda */
    box-shadow: 0 0 10px #a78bfa;
    animation: dotPing 1.5s ease-in-out infinite;
}

@keyframes dotPing {
    0%, 100% { transform: scale(1);   opacity: 1; }
    50%      { transform: scale(1.4); opacity: 0.7; }
}



/* ====== STAGGER: aktifkan slide → elemen muncul satu per satu ====== */
.hero-slide-item.active .hero-label {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.hero-slide-item.active .hero-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.35s;
}

.hero-slide-item.active .hero-desc {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.65s;
}

.hero-slide-item.active .hero-actions {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.95s;
}

/* Saat slide keluar — fade out lebih cepat */
.hero-slide-item:not(.active) .hero-label,
.hero-slide-item:not(.active) .hero-title,
.hero-slide-item:not(.active) .hero-desc,
.hero-slide-item:not(.active) .hero-actions {
    transition-delay: 0s;
    transition-duration: 0.35s;
}

/* ========== TOMBOL ========== */
.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.75rem;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.hero-btn-primary {
    background: linear-gradient(135deg, #ffffff 0%, #f5f3ff 100%);
    color: #5B21B6;  /* Ungu tua */
    box-shadow: 0 10px 30px -10px rgba(91, 33, 182, 0.5),
                0 2px 8px rgba(255, 255, 255, 0.15);
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px -10px rgba(91, 33, 182, 0.6),
                0 4px 12px rgba(255, 255, 255, 0.25);
    background: linear-gradient(135deg, #ffffff 0%, #ede9fe 100%);
}

.hero-btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(196, 181, 253, 0.4);
    backdrop-filter: blur(12px);
}

.hero-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(196, 181, 253, 0.8);
    transform: translateY(-2px);
}

/* ========== SLIDE INDICATOR (DOTS) ========== */
.hero-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
}

.hero-dot {
    width: 32px;
    height: 3px;
    border-radius: 9999px;
    background: rgba(196, 181, 253, 0.3);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-dot.active {
    background: linear-gradient(90deg, #c4b5fd, #a78bfa, #8b5cf6);
    width: 48px;
    box-shadow: 0 0 15px rgba(167, 139, 250, 0.8);
}

.hero-dot:hover:not(.active) {
    background: rgba(196, 181, 253, 0.6);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 640px) {
    .hero-section { min-height: 560px; }
    .hero-desc { font-size: 0.95rem; }
    .hero-btn { padding: 0.8rem 1.4rem; font-size: 0.85rem; width: 100%; }
    .hero-actions { flex-direction: column; width: 100%; max-width: 300px; margin: 0 auto; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .hero-network-svg,
    .net-node,
    .net-node-lg,
    .net-line,
    .hero-glow,
    .hero-label-dot {
        animation: none !important;
    }
    .hero-slide-item,
    .hero-label,
    .hero-title,
    .hero-desc,
    .hero-actions {
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
    }
}

/* ============================================================
   NAVBAR — Full Width, Logo Kiri Mentok, Menu Kanan Mentok
   ============================================================ */

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    height: 5rem;
    width: 100%;
}

.navbar-logo {
    flex-shrink: 0;
    margin-left: 0;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
    margin-right: 0;
    flex-shrink: 0;
}

/* ==========================================================================
   TRUST MARQUEE — 2 Baris Logo Bergerak Berlawanan Arah
   ========================================================================== */

.marquee-row {
    position: relative;
    overflow: hidden;
    width: 100%;
    /* Mask: gradient fade di kiri & kanan */
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 4rem;
    width: max-content;
    padding: 0 2rem;
    will-change: transform;
}

/* Baris 1 — bergerak ke KANAN */
.marquee-track-right {
    animation: marqueeRight 35s linear infinite;
}

/* Baris 2 — bergerak ke KIRI */
.marquee-track-left {
    animation: marqueeLeft 35s linear infinite;
}

/* Pause saat hover */
.marquee-row:hover .marquee-track {
    animation-play-state: paused;
}

/* Keyframes */
@keyframes marqueeRight {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes marqueeLeft {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* Item wrapper */
.marquee-item {
    flex-shrink: 0;
    width: 140px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Warna abu default, jadi warna asli saat hover */
    filter: grayscale(100%);
    opacity: 0.55;
    transition: all 0.35s ease;
}

.marquee-item:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.08);
}

/* Logo image */
.marquee-logo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Fallback kalau gambar 404 */
.marquee-fallback {
    font-size: 0.95rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .marquee-track { gap: 3rem; }
    .marquee-item  { width: 110px; height: 48px; }
    .marquee-fallback { font-size: 0.85rem; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
    .marquee-track-right,
    .marquee-track-left {
        animation: none !important;
    }
}

/* ==========================================================================
   HERO LOGO — Logo di Atas Konten Hero
   ========================================================================== */

.hero-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: heroLogoFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero-logo {
    height: 80px;              /* Desktop */
    width: auto;
    max-width: 100%;
    object-fit: contain;
    /* Glow effect agar menyatu dengan background gelap */
    filter: drop-shadow(0 4px 20px rgba(167, 139, 250, 0.5))
            drop-shadow(0 0 40px rgba(139, 92, 246, 0.3));
    transition: all 0.4s ease;
}

.hero-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 30px rgba(167, 139, 250, 0.7))
            drop-shadow(0 0 60px rgba(139, 92, 246, 0.5));
}

@keyframes heroLogoFadeIn {
    0%   { opacity: 0; transform: translateY(-20px) scale(0.9); }
    100% { opacity: 1; transform: translateY(0)     scale(1);   }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .hero-logo { height: 70px; }
}

@media (max-width: 768px) {
    .hero-logo { height: 60px; }
    .hero-logo-wrap { margin-bottom: 1.5rem; }
}

@media (max-width: 480px) {
    .hero-logo { height: 50px; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
    .hero-logo-wrap { animation: none; opacity: 1; }
}

