/* ================================
   GLOBAL ROOT & BASE STYLES
================================ */
:root {
    --nav-bg: #1f2a32;
    --nav-bg-dark: #162026;

    --accent: #ffbf00;
    --accent-dark: #e0a700;

    --bg-page: #f6f8fb;
    --bg-soft: #ffffff;

    --text-main: #1a1a1a;
    --text-muted: #6b6b6b;

    --radius: 16px;
}

/* Soft reset & body */
* { box-sizing: border-box; }
body {
    background: var(--bg-page);
    font-family: "Inter", system-ui, sans-serif;
    margin: 0;
    color: var(--text-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ================================
   NAVIGATION BAR
================================ */
.cilok-nav {
    background: linear-gradient(180deg, var(--nav-bg), var(--nav-bg-dark));
}
.cilok-nav .brand-text {
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.5px;
}
.cilok-nav .nav-link {
    color: rgba(255,255,255,0.95);
    margin-left: 12px;
    font-weight: 500;
}
.cilok-nav .nav-link:hover {
    color: var(--accent);
}

/* Theme toggle small style */
.theme-btn {
    background: rgba(255,255,255,0.06);
    border: none;
    padding: 6px 10px;
    border-radius: 10px;
    color: #fff;
}
.theme-btn .icon { display:inline-block; width:18px; height:18px; background:rgba(255,255,255,0.12); border-radius:6px; margin-right:8px; }

/* ================================
   HERO SECTION (Upgraded)
================================ */
.hero {
    padding: 95px 0 60px;
    text-align: center;
    background: linear-gradient(90deg, #6fb1ff 0%, #a58aff 100%);
    color: white;
    position: relative;
    z-index: 2;
    overflow: visible;
}

.hero-inner {
    position: relative;
    z-index: 4;
}

.hero-title {
    font-size: 2.4rem;
    font-weight: 800;
    max-width: 980px;
    margin: 0 auto 12px;
    text-shadow: 0 4px 18px rgba(0,0,0,0.18);
}

.hero-sub {
    max-width: 760px;
    margin: 0 auto 22px;
    font-size: 1.05rem;
    opacity: 0.95;
}

.btn-cta {
    background: var(--accent);
    color: #222;
    padding: 12px 28px;
    font-weight: 700;
    border-radius: 12px;
    border: none;
    box-shadow: 0 12px 28px rgba(0,0,0,0.18);
    position: relative;
    z-index: 5;
    transition: transform .18s ease, box-shadow .18s ease;
}
.btn-cta:hover {
    background: var(--accent-dark);
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.22);
}

/* HERO WAVE */
.hero-wave {
    position: absolute;
    left: 0; 
    right: 0;
    bottom: -1px;
    width: 100%;
    height: 150px;
    z-index: 1;
    pointer-events: none;
}
.hero-wave svg { width:100%; height:100%; display:block; }

/* ============================
   FLOATING DECOR TECH ICONS
   (OPSI 3)
   ============================ */
.floating-icon {
    position: absolute;
    font-size: 44px;
    opacity: 0.18;
    color: #ffffff;
    z-index: 3;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
    text-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.icon1 { top: 18%; left: 6%; transform: rotate(-8deg); }
.icon2 { top: 34%; right: 9%; animation-delay: 1s; transform: rotate(6deg); }
.icon3 { top: 60%; left: 12%; animation-delay: 2s; transform: rotate(-4deg); }
.icon4 { top: 75%; right: 18%; animation-delay: 3s; transform: rotate(4deg); }

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-16px); }
    100% { transform: translateY(0px); }
}

/* ================================
   SECTION TITLES & UTILITY
================================ */
.section-title {
    font-weight: 700;
    font-size: 1.7rem;
    margin-bottom: 18px;
}

/* ================================
   MANFAAT SECTION (existing, polished)
================================ */
.feature-card {
    background: var(--bg-soft);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    transition: 0.28s ease;
    border: 1px solid rgba(0,0,0,0.04);
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.08);
}
.icon-circle {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: rgba(255,191,0,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-dark);
    font-size: 24px;
}

/* ================================
   ROADMAP (OPSI A)
================================ */
.roadmap-section {
    background: transparent;
}
.roadmap-wrapper {
    align-items: center;
    gap: 18px;
    margin-top: 8px;
    padding: 10px 12px;
}
.roadmap-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 110px;
}
.road-icon {
    width:72px;
    height:72px;
    border-radius:16px;
    display:flex;
    align-items:center;
    justify-content:center;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    box-shadow: 0 8px 18px rgba(0,0,0,0.06);
    font-size:26px;
    color: #fff;
}
.road-label {
    margin-top:8px;
    font-weight:600;
    color:var(--text-main);
}
.road-connector {
    width:40px;
    height:4px;
    background: linear-gradient(90deg, rgba(0,0,0,0.06), rgba(0,0,0,0.02));
    border-radius:6px;
}

/* Responsive: make roadmap stack on small screens */
@media (max-width: 768px) {
    .roadmap-wrapper { gap: 10px; }
    .road-connector { display:none; }
}

/* ================================
   FITUR PREMIUM (OPSI B)
================================ */
.fitur-section { background: #fff; }
.fitur-card {
    background: var(--bg-soft);
    border-radius: var(--radius);
    transition: transform .22s ease, box-shadow .22s ease;
    border: 1px solid rgba(0,0,0,0.04);
}
.fitur-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.06);
}
.fitur-icon {
    font-size: 28px;
    color: var(--accent);
    background: rgba(255,191,0,0.08);
    width:56px;
    height:56px;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
}

/* ================================
   TUJUAN SECTION (existing)
================================ */
.tujuan-section {
    background: white;
    padding: 70px 0 20px;
    position: relative;
    z-index: 1;
}
.tujuan-container { max-width:1100px; margin:auto; }
.tujuan-title { font-size: 2rem; line-height:1.2; }

/* ================================
   STATS (OPSI F)
================================ */
.stats-section { background: transparent; padding-top: 18px; padding-bottom: 40px; }
.stats-wrapper { gap:18px; }
.stat-card {
    background: var(--bg-soft);
    border-radius: 14px;
    min-width: 140px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.06);
    transition: transform .18s ease;
}
.stat-card:hover { transform: translateY(-6px); }
.stat-num { font-size: 1.6rem; font-weight:800; color: var(--accent); }
.stat-label { font-size: .95rem; color: var(--text-muted); }

/* ================================
   LIST MATERI SECTION (existing + D Hover upgrade)
================================ */
#materi {
    padding-top: 60px !important;
    padding-bottom: 60px;
    position: relative;
    background: #fff;
    z-index: 2;
}
.material-card {
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .28s ease, box-shadow .28s ease;
    border: 1px solid rgba(0,0,0,0.04);
}
.material-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 20px 46px rgba(0,0,0,0.10);
}
.card-top {
    height: 140px;
    display: flex;
    justify-content: center;
    overflow: hidden;
    transition: transform .6s ease;
}
.material-card:hover .card-top {
    transform: scale(1.06);
}
.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.material-card .card-body { min-height: 130px; padding:18px; }
.material-card .card-title { font-weight: 700; font-size: 1.05rem; margin-bottom:6px; }
.material-card .card-text { color: var(--text-muted); font-size: 0.92rem; }

/* CTA button inside card */
.material-card .btn-cta {
    background: transparent;
    color: var(--nav-bg-dark);
    border: 2px solid rgba(0,0,0,0.06);
}
.material-card .btn-cta:hover {
    background: var(--accent);
    color: #111;
    border-color: transparent;
}

/* small screens tweak */
@media (max-width: 768px) {
    .hero { padding: 60px 0 40px; }
    .hero-title { font-size: 1.6rem; }
    .card-top { height: 120px; }
    .material-card .card-body { min-height: 100px; }
}

/* ================================
   FOOTER
================================ */
footer {
    background: var(--nav-bg-dark);
    border-top: 1px solid rgba(255,255,255,0.06);
    color: #fff;
}


/* FIXED THEME BUTTON — kompatibel dengan theme.js */
.theme-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-soft);
    border: 1px solid var(--card-border);
    padding: 6px 14px;
    border-radius: 10px;
    cursor: pointer;
    color: var(--text-main);
    transition: all .25s ease;
}

.theme-btn .icon {
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.dark-mode .theme-btn {
    background: #111;
    color: var(--accent);
    border-color: rgba(255,255,255,0.12);
}


/* =================================
   Accessibility & misc polish
================================ */
a { text-decoration: none; }
img { max-width: 100%; display:block; }

/* ================================
   ROADMAP FIX — Ikon & Tampilan
================================ */
.roadmap-section {
    padding: 60px 0;
    background: #f3f6fb;
}

.roadmap-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: nowrap;
}

.roadmap-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.road-icon {
    width: 82px;
    height: 82px;
    border-radius: 20px;
    background: white;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #3b3b3b;
}

.road-label {
    margin-top: 10px;
    font-size: 1rem;
    font-weight: 600;
}

.road-connector {
    width: 50px;
    height: 4px;
    background: #d1d1d1;
    border-radius: 6px;
}

/* Mobile */
@media (max-width: 768px) {
    .roadmap-wrapper {
        flex-wrap: wrap;
        gap: 20px;
    }
    .road-connector {
        display: none;
    }
}


/* ================================
   FITUR PREMIUM LAYOUT FIX
================================ */
.fitur-section {
    padding: 50px 0;
}
.fitur-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 26px;
    margin-top: 30px;
}
.fitur-card {
    padding: 24px;
    text-align: left;
}
.fitur-card h5 {
    margin-top: 18px;
    margin-bottom: 6px;
    font-weight: 700;
}

/* ================================
   STATS SECTION FIX
================================ */
.stats-section {
    padding: 40px 0;
}
.stats-wrapper {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
}
.stat-card {
    padding: 20px 26px;
    text-align: center;
}

/* ================================
   FLOATING ICON FIX
================================ */
.floating-icon {
    animation: float-icon 6s ease-in-out infinite;
}
@keyframes float-icon {
    0%   { transform: translateY(0) scale(1); }
    50%  { transform: translateY(-14px) scale(1.02); }
    100% { transform: translateY(0) scale(1); }
}

/* Fix transform overwrite */
.icon1 { top: 18%; left: 6%; }
.icon2 { top: 34%; right: 9%; animation-delay: 1s; }
.icon3 { top: 60%; left: 12%; animation-delay: 2s; }
.icon4 { top: 75%; right: 18%; animation-delay: 3s; }

/* ================================
   WAVE SEPARATOR PREMIUM
================================ */
.wave-premium {
    margin-top: -40px;
    width: 100%;
}
.wave-premium svg {
    width: 100%;
    height: 110px;
    display:block;
}

/* ================================
   ALIGNMENT & SPACING POLISH
================================ */
section {
    scroll-margin-top: 120px;
}

/* ============================================
   DARK MODE FIX – Untuk Section Baru
   ============================================ */

/* Roadmap section */
body.dark-mode .roadmap-section {
    background: #121212 !important;
}

body.dark-mode .road-icon {
    background: rgba(255,255,255,0.08) !important;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(0,0,0,0.4) !important;
}

body.dark-mode .road-label {
    color: #e0e0e0 !important;
}

/* Section Manfaat / Mengapa Belajar di CILOK */
body.dark-mode #manfaat {
    background: #121212 !important;
}

body.dark-mode #manfaat .feature-card {
    background: #1e1e1e !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
}

body.dark-mode #manfaat .icon-circle {
    background: rgba(255,191,0,0.18) !important;
}

/* Section Fitur Unggulan */
body.dark-mode .fitur-section {
    background: #121212 !important;
}

body.dark-mode .fitur-card {
    background: #1e1e1e !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
}

body.dark-mode .fitur-icon {
    background: rgba(255,191,0,0.12) !important;
}

/* Section Stats */
body.dark-mode .stats-section {
    background: #121212 !important;
}

body.dark-mode .stat-card {
    background: #1e1e1e !important;
}

/* Roadmap connector */
body.dark-mode .road-connector {
    background: rgba(255,255,255,0.12) !important;
}

/* Title */
body.dark-mode .section-title {
    color: #ffffff !important;
}
/* ================================
   DARK MODE — HERO SECTION FIX
   ================================ */
body.dark-mode .hero {
    background: linear-gradient(90deg, #0f172a 0%, #334155 100%) !important;
    color: #ffffff !important;
}

body.dark-mode .hero-title,
body.dark-mode .hero-sub {
    color: #ffffff !important;
    text-shadow: 0 4px 18px rgba(0,0,0,0.45) !important;
}

/* Floating icons biar tidak terlalu terang */
body.dark-mode .floating-icon {
    opacity: 0.10 !important;
    color: #ffffff !important;
}

/* Wave bagian bawah hero */
body.dark-mode .hero-wave svg path {
    fill: #0d0e10 !important; /* sama dengan var(--bg-page) dark */
}

/* ===============================
   ABOUT CILOK SECTION
================================ */
.cilok-about-section {
  position: relative;
  overflow: hidden;
}

.about-badge {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 999px;
  background: rgba(255, 191, 0, 0.15);
  color: var(--accent);
}

.about-desc {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 14px;
}

/* VISUAL */
.about-visual {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.about-logo {
  width: 220px;
  z-index: 2;
  animation: floatLogo 5s ease-in-out infinite;
}

.about-ring {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255,191,0,0.15),
    transparent 70%
  );
  animation: pulseRing 6s ease-in-out infinite;
  z-index: 1;
}

/* ANIMATIONS */
@keyframes floatLogo {
  0% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0); }
}

@keyframes pulseRing {
  0% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.08); opacity: 0.35; }
  100% { transform: scale(1); opacity: 0.6; }
}

/* DARK MODE SAFETY */
body.dark-mode .about-badge {
  background: rgba(255,191,0,0.2);
}

/* ===============================
   STATS SECTION UPGRADE
================================ */
.stats-badge {
  display: inline-block;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 999px;
  background: rgba(255,191,0,0.15);
  color: var(--accent);
}

.stats-desc {
  max-width: 560px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* CARD */
.stat-card {
  background: var(--bg-soft);
  border-radius: 16px;
  min-width: 200px;
  box-shadow: var(--card-shadow);
  transition: transform .3s ease, box-shadow .3s ease;
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.stat-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-weight: 600;
  margin-top: 8px;
}

.stat-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* DARK MODE */
body.dark-mode .stat-card {
  background: #141414;
}

/* ===============================
   ABOUT TEXT ENHANCEMENT
================================ */

.about-lead {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-main);
  margin-bottom: 24px;
}

.accent-text {
  color: var(--accent);
  font-weight: 600;
}

/* BLOCK */
.about-block {
  padding-left: 18px;
  border-left: 3px solid rgba(255,191,0,0.4);
  margin-bottom: 20px;
}

.about-block-title {
  font-weight: 600;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-block-title i {
  color: var(--accent);
}

/* QUOTE */
.about-quote {
  margin-top: 28px;
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(255,191,0,0.08);
  font-style: italic;
  color: var(--text-muted);
  position: relative;
}

.about-quote i {
  color: var(--accent);
  margin-right: 6px;
}

/* DARK MODE */
body.dark-mode .about-quote {
  background: rgba(255,191,0,0.15);
}
