/* ===================================================================
   CSS kustom — PAUD Insan Muda Mulia
   Sistem desain "Taman Tumbuh" (Material Design 3) — lihat DESIGN.md.
   Pelengkap Tailwind (CDN). Mayoritas styling via utility class.
   =================================================================== */

/* Material Symbols Outlined */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
/* Versi terisi (solid) */
.material-symbols-outlined.fill {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Offset anchor agar tidak tertutup navbar sticky */
section[id] {
    scroll-margin-top: 5rem;
}

/* Navbar: transparan di atas, jadi solid + blur saat scroll */
#main-nav.scrolled {
    background-color: rgba(248, 249, 255, 0.95); /* surface */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(12px);
}

/* Garis bawah animasi pada menu desktop */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    height: 2px;
    width: 0;
    background-color: var(--primary, #0061a4); /* primary */
    transition: width 0.25s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}
.nav-link.active {
    color: var(--primary, #0061a4);
}

/* Blob ambient di hero */
@keyframes float {
    0%   { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(30px, -50px) scale(1.1); }
    66%  { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}
.blob {
    animation: float 20s infinite ease-in-out;
    filter: blur(80px);
    opacity: 0.5;
}

/* Scrollbar lebih halus */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar, #8ccfff) transparent;
}
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar, #8ccfff);
    border-radius: 9999px;
}

/* Marquee testimoni — kartu berjalan memutar (mobile & desktop) */
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.marquee {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
            mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
    animation: marquee 32s linear infinite;
    will-change: transform;
}
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track {
    animation-play-state: paused;
}

/* Hormati preferensi reduce-motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    [data-aos] { transition: none !important; }
    .blob, .animate-bounce { animation: none !important; }
    .marquee-track { animation: none !important; }
}
