/* =============================================================================
   web-gkm — Frontend CSS (vanilla, di atas hasil build tailwind.css)
   Palet: brand (navy #1e217b) + gold (kuning #facc15)
   ============================================================================= */

:root {
    --brand: #1e217b;
    --brand-dark: #121459;
    --gold: #facc15;
    --ink: #0f172a;
}

html {
    scroll-behavior: smooth;
}

body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: #1e217b;
    color: #fff;
}

/* ---- Navbar pill (floating, aero-glass) ---- */
.site-header {
    transition: padding-top .3s ease;
}
.nav-pill {
    position: relative;
    z-index: 20;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        radial-gradient(130% 150% at 14% -10%, rgba(50, 90, 220, 0.30), transparent 52%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.015) 55%, rgba(255, 255, 255, 0.04)),
        linear-gradient(135deg, rgba(26, 33, 105, 0.68), rgba(9, 14, 44, 0.70));
    backdrop-filter: blur(20px) saturate(170%);
    -webkit-backdrop-filter: blur(20px) saturate(170%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        inset 0 -1px 0 rgba(255, 255, 255, 0.04),
        inset 1px 0 0 rgba(255, 255, 255, 0.05),
        0 12px 40px -12px rgba(10, 14, 48, 0.55);
}
.nav-pill::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(96deg, transparent 30%, rgba(255, 196, 0, 0.06) 48%, rgba(255, 255, 255, 0.08) 55%, transparent 68%);
    opacity: 0.55;
}
.nav-pill-glass-dropdown {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
        linear-gradient(135deg, rgba(22, 28, 88, 0.82), rgba(8, 12, 38, 0.88));
    backdrop-filter: blur(20px) saturate(170%);
    -webkit-backdrop-filter: blur(20px) saturate(170%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        0 20px 50px -20px rgba(10, 14, 48, 0.6);
}

/* ---- Navbar pill versi Klasik (solid, sebelum perubahan aero-glass) ---- */
.nav-pill-solid {
    position: relative;
    z-index: 20;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: linear-gradient(180deg, rgba(16, 18, 72, 0.92), rgba(9, 11, 45, 0.95));
    backdrop-filter: blur(8px) saturate(140%);
    -webkit-backdrop-filter: blur(8px) saturate(140%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 12px 40px -12px rgba(10, 14, 48, 0.55);
}
.nav-pill-solid-dropdown {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: linear-gradient(180deg, rgba(12, 14, 54, 0.97), rgba(7, 9, 34, 0.98));
    backdrop-filter: blur(8px) saturate(140%);
    -webkit-backdrop-filter: blur(8px) saturate(140%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 20px 50px -20px rgba(10, 14, 48, 0.6);
}

/* ---- Navbar pill "Aurora" (gradasi biru-ungu + kilau beranimasi) ---- */
.nav-pill-aurora {
    position: relative;
    z-index: 20;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background:
        radial-gradient(130% 170% at 0% -30%, rgba(96, 102, 240, 0.34), transparent 55%),
        radial-gradient(120% 160% at 100% -10%, rgba(180, 120, 255, 0.26), transparent 55%),
        radial-gradient(130% 170% at 50% 140%, rgba(250, 204, 21, 0.12), transparent 60%),
        linear-gradient(135deg, rgba(16, 18, 74, 0.84), rgba(38, 30, 86, 0.88));
    backdrop-filter: blur(20px) saturate(170%);
    -webkit-backdrop-filter: blur(20px) saturate(170%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        inset 0 -1px 0 rgba(255, 255, 255, 0.04),
        0 12px 40px -12px rgba(10, 14, 48, 0.55);
}
.nav-pill-aurora::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(115deg,
        transparent 18%,
        rgba(130, 204, 255, 0.16) 34%,
        rgba(250, 204, 21, 0.14) 48%,
        rgba(196, 130, 255, 0.18) 62%,
        transparent 82%);
    background-size: 260% 260%;
    animation: auroraDrift 10s ease-in-out infinite alternate;
    opacity: .85;
}
@keyframes auroraDrift {
    from { background-position: 0% 50%; }
    to   { background-position: 100% 50%; }
}
.nav-pill-aurora-dropdown {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        linear-gradient(180deg, rgba(26, 30, 96, 0.90), rgba(22, 16, 60, 0.94));
    backdrop-filter: blur(20px) saturate(170%);
    -webkit-backdrop-filter: blur(20px) saturate(170%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        0 20px 50px -20px rgba(10, 14, 48, 0.6);
}

/* ---- Navbar pill "Gold Luxe" (navy gelap + tepi emas) ---- */
.nav-pill-luxe {
    position: relative;
    z-index: 20;
    border: 1px solid rgba(250, 204, 21, 0.30);
    background: linear-gradient(180deg, rgba(13, 15, 50, 0.95), rgba(6, 7, 28, 0.97));
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -1px 0 rgba(255, 255, 255, 0.03),
        0 12px 40px -12px rgba(10, 14, 48, 0.62),
        0 0 30px -6px rgba(250, 204, 21, 0.18);
}
.nav-pill-luxe::before {
    content: "";
    position: absolute;
    left: 12%;
    right: 12%;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(250, 204, 21, 0.9), transparent);
    pointer-events: none;
}
.nav-pill-luxe-dropdown {
    position: relative;
    border: 1px solid rgba(250, 204, 21, 0.22);
    background: linear-gradient(180deg, rgba(10, 12, 42, 0.97), rgba(4, 5, 22, 0.98));
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 20px 50px -20px rgba(10, 14, 48, 0.65);
}

/* ---- Hero carousel: Ken Burns ---- */
.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.1s ease, visibility 1.1s;
    overflow: hidden;
}
.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}
.carousel-bg {
    transform: scale(1.08);
    transition: transform 7s ease-out;
    will-change: transform;
}
.carousel-slide.active .carousel-bg {
    transform: scale(1);
}

/* Entri teks hero per blok (animasi bertahap) */
.hero-anim-1,
.hero-anim-2,
.hero-anim-3 {
    opacity: 0;
    transform: translateY(22px);
}
.carousel-hero.active .hero-anim-1 {
    animation: heroIn .7s .15s ease forwards;
}
.carousel-hero.active .hero-anim-2 {
    animation: heroIn .7s .35s ease forwards;
}
.carousel-hero.active .hero-anim-3 {
    animation: heroIn .7s .55s ease forwards;
}
@keyframes heroIn {
    to { opacity: 1; transform: translateY(0); }
}
.carousel-slide .hero-anim {
    text-shadow: 0 2px 24px rgba(15, 23, 42, .6), 0 1px 3px rgba(15, 23, 42, .4);
}

/* Scrim lokal di belakang teks hero */
.carousel-scrim {
    background: linear-gradient(90deg,
        rgba(12, 13, 66, .85) 0%,
        rgba(12, 13, 66, .58) 30%,
        rgba(12, 13, 66, .25) 55%,
        rgba(12, 13, 66, .10) 72%,
        rgba(12, 13, 66, 0) 100%);
}

/* Variant: foto bersih tanpa overlay (gradien biru dilepas) */
.carousel-scrim--plain,
.carousel-scrim--panel {
    background: transparent;
}

/* Variant: spotlight — sorotan radial lembut di belakang teks +
   feader tipis di bagian bawah (foto tetap terlihat penuh) */
.carousel-scrim--spotlight {
    background:
        radial-gradient(120% 95% at 16% 50%, rgba(8, 9, 40, 0.58), rgba(8, 9, 40, 0.32) 45%, rgba(8, 9, 40, 0) 72%),
        linear-gradient(180deg, rgba(8, 9, 40, 0) 62%, rgba(8, 9, 40, 0.30) 100%);
}

/* Variant: panel abu-abu transparan di belakang teks & tombol */
.carousel-panel {
    background: rgba(30, 41, 59, 0.30);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 1.5rem;
    padding: 2.5rem 2.75rem;
    box-shadow: 0 24px 60px -24px rgba(10, 14, 48, 0.6);
}
@media (max-width: 640px) {
    .carousel-panel { padding: 1.5rem; }
}

/* ---- Reveal on scroll ---- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.16, 1, .3, 1);
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

/* ---- Flash message ---- */
.animate-flash {
    animation: flashIn .45s cubic-bezier(.16, 1, .3, 1);
}
@keyframes flashIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- Card image zoom on hover ---- */
.card-img {
    transition: transform .6s cubic-bezier(.16, 1, .3, 1);
}
.group:hover .card-img {
    transform: scale(1.07);
}

/* ---- Ikon chip (rounded-warna) ---- */
.icon-chip {
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .06);
}

/* ---- Filter galeri (halaman Proyek) ---- */
.filter-btn {
    transition: background .2s, color .2s, box-shadow .2s;
}
.filter-btn.filter-on {
    background: #1e217b;
    color: #fff;
    box-shadow: 0 8px 24px -8px rgba(30, 33, 123, .55);
}

/* ---- Hero sederhana (halaman dalam): blueprint grid + streak emas ---- */
.hero-bp-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, .20) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .20) 1px, transparent 1px);
    background-size: 44px 44px;
    opacity: .05;
}
.hero-gold-streak {
    background:
        linear-gradient(118deg,
            transparent 44%,
            rgba(255, 196, 0, .20) 50%,
            rgba(255, 196, 0, .04) 56%,
            transparent 63%);
}

/* ---- Hero Layanan: maska visual industrial (fade kiri) ---- */
.hero-visual-mask {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 38%, black 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 38%, black 100%);
}

/* ---- Gerakan sangat lambat pada hero (dihormati prefers-reduced-motion) ---- */
@keyframes heroKenburns {
    from { transform: scale(1.06) translateX(8px); }
    to   { transform: scale(1.12) translateX(0); }
}
.hero-kenburns {
    animation: heroKenburns 20s ease-in-out infinite alternate;
}
@keyframes heroGlowPulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: .72; }
}
.hero-glow-pulse {
    animation: heroGlowPulse 14s ease-in-out infinite;
}

/* ---- Hero Kontak: gelombang sinyal + chip melayang ---- */
@keyframes heroSignal {
    0%, 100% { opacity: .22; transform: scale(1); }
    50%      { opacity: .55; transform: scale(1.04); }
}
.hero-signal-pulse {
    transform-origin: 420px 320px;
    animation: heroSignal 5.5s ease-in-out infinite;
    transform-box: fill-box;
}
@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}
.hero-float {
    animation: heroFloat 6s ease-in-out infinite;
}

/* ---- Sembunyikan scrollbar halaman (scroll tetap berfungsi) ---- */
* {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
*::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* ---- Respek prefers-reduced-motion ---- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
    .hero-anim-1, .hero-anim-2, .hero-anim-3 { opacity: 1; transform: none; animation: none; }
    .carousel-bg { transition: none; transform: none; }
    .animate-ping { animation: none; }
    .hero-kenburns, .hero-glow-pulse, .hero-signal-pulse, .hero-float { animation: none; }
    .hero-kenburns { transform: none; }
    .hero-signal-pulse { transform: none; }
    .hero-float { transform: none; }
    .nav-pill-aurora::before { animation: none; }
}

/* ---- Typografi pada artikel panjang (tentang, karir) ---- */
.about-cols p {
    margin-bottom: .75rem;
}
.about-cols ul {
    list-style: disc;
    padding-left: 1.25rem;
    margin: .5rem 0;
}
.about-cols strong {
    color: #1e217b;
}