/* Tampilan modern & premium untuk halaman depan (header, hero, statistik).
   Dimuat setelah <style> bawaan index.php, jadi aturan di sini menimpa
   tampilan lama tanpa mengubah isi maupun logika PHP. */

:root {
    --font-display: 'Plus Jakarta Sans', 'Montserrat', sans-serif;
    --navy-900: #0a1424;
    --navy-800: #0f1d33;
    --gold-grad: linear-gradient(100deg, #ffb347 0%, #f39c12 30%, #ffd48a 50%, #f39c12 70%, #e67e22 100%);
}

/* Judul di seluruh halaman memakai huruf display yang lebih modern */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); letter-spacing: -0.02em; }
.section-header h2 { font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }

/* ---------- Top bar ---------- */
.top-bar { background: var(--navy-900); padding: 7px 0; font-size: .8rem; border-bottom: 1px solid rgba(255,255,255,.06); }
.top-bar a, .top-bar span { color: rgba(255,255,255,.72); }
.top-bar-right a { width: 28px; height: 28px; display: inline-grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.06); transition: background .25s, transform .25s; }
.top-bar-right a:hover { background: rgba(243,156,18,.2); transform: translateY(-2px); }
.top-bar-right a i { margin: 0; }
.top-bar-right { gap: 12px; }

/* ---------- Header ---------- */
.main-header {
    background: rgba(255,255,255,.82);
    -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%);
    border-bottom: 1px solid rgba(15,29,51,.06);
}
.main-header.scrolled { box-shadow: 0 10px 30px rgba(10,20,36,.08); }
.logo-text h1 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; color: var(--navy-800); }
.logo-text span { letter-spacing: .18em; font-size: .62rem; }
.main-nav { gap: 2px; align-items: center; }
.main-nav a { font-family: var(--font-display); font-weight: 600; font-size: .88rem; color: #2b3445; border-radius: 50px; padding: 9px 16px; }
.main-nav a:hover, .main-nav a.active { color: var(--primary); background: rgba(26,82,118,.07); }
.main-nav a::after { bottom: 3px; height: 2px; border-radius: 2px; }
.nav-cta { position: relative; overflow: hidden; margin-left: 10px; box-shadow: 0 8px 22px rgba(230,126,34,.35); letter-spacing: .01em; }
.nav-cta::before {
    content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg);
    animation: mhSheen 4.5s ease-in-out 2s infinite;
}
@keyframes mhSheen { 0% { left: -120%; } 35%, 100% { left: 180%; } }

/* ---------- Hero ---------- */
.hero { background: var(--navy-900); isolation: isolate; overflow: hidden; }
.hero-bg { transform: scale(1.06); animation: mhKenBurns 22s ease-out both; }
@keyframes mhKenBurns { from { transform: scale(1.15); } to { transform: scale(1.04); } }
.hero-overlay {
    background:
        radial-gradient(ellipse at 85% 15%, rgba(243,156,18,.18), transparent 45%),
        radial-gradient(ellipse at 10% 90%, rgba(46,134,193,.35), transparent 50%),
        linear-gradient(90deg, rgba(10,20,36,.96) 0%, rgba(10,20,36,.88) 38%, rgba(15,29,51,.62) 70%, rgba(15,29,51,.45) 100%);
}
/* Pola garis halus ala blueprint untuk kesan arsitektural */
.hero-overlay::after {
    content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 75%); mask-image: linear-gradient(90deg, #000 0%, transparent 75%);
}

.hero-content { padding: 84px 20px 48px; }

.hero-badge {
    font-family: var(--font-display); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: #ffd48a; padding: 9px 18px 9px 14px; margin-bottom: 28px;
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,212,138,.28);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.hero-badge i { width: 24px; height: 24px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--gradient-secondary); color: #fff; font-size: .7rem; animation: none; }

/* Judul utama besar */
.hero h2 {
    font-family: var(--font-display); font-weight: 800;
    font-size: clamp(2.6rem, 5.6vw, 5rem); line-height: 1.02; letter-spacing: -0.045em; word-spacing: .06em;
    max-width: 1000px; margin-bottom: 26px; color: #fff;
    text-shadow: 0 10px 40px rgba(0,0,0,.35);
}
.hero h2 span {
    background: var(--gold-grad); background-size: 220% auto;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
    text-shadow: none; animation: mhShine 6s linear 1.2s infinite;
}
@keyframes mhShine { to { background-position: 220% center; } }

.hero p {
    font-size: clamp(1rem, 1.25vw, 1.18rem); font-weight: 300; line-height: 1.75;
    color: rgba(255,255,255,.78); max-width: 600px; margin-bottom: 38px;
    padding-left: 18px; border-left: 2px solid rgba(243,156,18,.7);
}
.hero-buttons { gap: 14px; }
.hero .btn { font-family: var(--font-display); font-weight: 700; letter-spacing: .01em; padding: 16px 32px; }
.hero .btn-primary { position: relative; overflow: hidden; box-shadow: 0 14px 34px rgba(230,126,34,.4); }
.hero .btn-primary::before {
    content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255,255,255,.4), transparent); transform: skewX(-20deg);
    animation: mhSheen 5s ease-in-out 2.5s infinite;
}
.hero .btn-outline {
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.3);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.hero .btn-outline:hover { background: #fff; color: var(--navy-800); }

/* ---------- Statistik: kartu kaca di atas foto ---------- */
.hero-stats { background: transparent; border-top: 0; }
.stats-inner { padding: 0 20px 60px; gap: 18px; }
.stat-item {
    position: relative; overflow: hidden; padding: 26px 18px; border-radius: 20px;
    background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
    border: 1px solid rgba(255,255,255,.14);
    -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
    box-shadow: 0 18px 40px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.15);
    transition: transform .3s, border-color .3s, box-shadow .3s;
}
.stat-item::after {
    content: ""; position: absolute; left: 22%; right: 22%; bottom: 0; height: 2px; border-radius: 2px;
    background: var(--gradient-secondary); opacity: .8;
}
.stat-item:hover { transform: translateY(-6px); border-color: rgba(255,212,138,.35); box-shadow: 0 24px 50px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.2); }
.stat-item h3 {
    font-family: var(--font-display); font-size: clamp(2.2rem, 3.4vw, 3rem); font-weight: 800; letter-spacing: -0.04em; margin-bottom: 6px;
    background: var(--gold-grad); background-size: 220% auto;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.hero .stat-item p { border-left: 0; padding-left: 0; margin: 0; max-width: none; line-height: 1.4; }
.stat-item p { font-size: .78rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.7); }

/* Layar besar: hero mengisi hampir satu layar penuh */
@media (min-width: 993px) and (min-height: 700px) {
    .hero { min-height: calc(100vh - 117px); justify-content: center; }
}

/* ---------- Tablet & HP ---------- */
@media (max-width: 992px) {
    .stats-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .main-header { background: rgba(255,255,255,.92); }
    .main-nav { border-radius: 0 0 18px 18px; }
    .main-nav a { border-radius: 10px; }
    .nav-cta { margin-left: 0; }
    .hero-overlay { background: linear-gradient(180deg, rgba(10,20,36,.9) 0%, rgba(10,20,36,.84) 60%, rgba(10,20,36,.95) 100%); }
    .hero-overlay::after { background-size: 40px 40px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%); }
    .hero-content { padding: 48px 18px 28px; }
    .hero-badge { font-size: .62rem; letter-spacing: .1em; padding: 7px 14px 7px 10px; margin-bottom: 18px; }
    .hero h2 { font-size: clamp(2rem, 9vw, 2.6rem); line-height: 1.06; letter-spacing: -0.04em; margin-bottom: 18px; }
    .hero p { font-size: .92rem; padding-left: 14px; margin-bottom: 26px; }
    .hero .btn { padding: 14px 22px; }
    .hero-stats { background: transparent !important; }
    .stats-inner { gap: 10px; padding: 0 18px 30px; }
    .stat-item { padding: 18px 10px; border-radius: 16px; }
    .stat-item h3 { font-size: 1.9rem; }
    .stat-item p { font-size: .62rem; letter-spacing: .08em; }
}
@media (max-width: 480px) {
    .hero h2 { font-size: 1.95rem; }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .stat-item { background: rgba(15,29,51,.85); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-bg, .hero h2 span, .nav-cta::before, .hero .btn-primary::before { animation: none !important; }
}
