:root {
  --blue-50: #f0f7ff;
  --blue-100: #e1f0ff;
  --blue-200: #cfe7ff;
  --blue-300: #a9d4ff;
  --blue-400: #7dbdff;
  --blue-500: #4aa6ff; /* primary */
  --blue-600: #2f8be6;
  --blue-700: #1e6fbe;
  --ink-900: #0a2136;
  --ink-700: #274863;
  --ink-500: #51708a;
  --white: #ffffff;
  --bg: var(--white);
  --soft: var(--blue-50);
  --radius: 16px;
  --shadow-1: 0 10px 30px rgba(23, 88, 136, 0.12);
  --shadow-2: 0 20px 50px rgba(23, 88, 136, 0.18);
  --container: 1160px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink-900);
  background: var(--bg);
  line-height: 1.6;
}

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; background: var(--blue-500); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 10000; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }

.section { position: relative; }
.section-pad { padding: 72px 0; }
.section-title { font-size: clamp(24px, 2.6vw, 36px); margin: 0 0 24px; }

.bg-soft { background: radial-gradient(1200px 600px at -10% -10%, var(--blue-100), transparent),
                     radial-gradient(1000px 500px at 110% 10%, var(--blue-100), transparent),
                     var(--soft);
}

/* WAVY SEPARATORS */
.wave-top::before,
.wave-bottom::after { content: ""; position: absolute; left: 0; right: 0; height: 90px; pointer-events: none; }
.wave-top::before { top: -1px; background: var(--wave-top-color, #ffffff); -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 120" preserveAspectRatio="none"><path d="M0,80 C240,140 480,0 720,60 C960,120 1200,40 1440,90 L1440,0 L0,0 Z"/></svg>') top / 100% 100% no-repeat; mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 120" preserveAspectRatio="none"><path d="M0,80 C240,140 480,0 720,60 C960,120 1200,40 1440,90 L1440,0 L0,0 Z"/></svg>') top / 100% 100% no-repeat; }
.wave-bottom::after { bottom: -1px; background: var(--wave-bottom-color, #ffffff); -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 120" preserveAspectRatio="none"><path d="M0,30 C240,80 480,0 720,50 C960,100 1200,60 1440,20 L1440,120 L0,120 Z"/></svg>') bottom / 100% 100% no-repeat; mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 120" preserveAspectRatio="none"><path d="M0,30 C240,80 480,0 720,50 C960,100 1200,60 1440,20 L1440,120 L0,120 Z"/></svg>') bottom / 100% 100% no-repeat; }

/* HEADER */
.site-header { position: sticky; top: 0; backdrop-filter: saturate(1.4) blur(8px); background: rgba(255,255,255,0.7); z-index: 1000; border-bottom: 1px solid rgba(80,120,160,0.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 12px; }
.logo { width: 40px; height: 40px; border-radius: 12px; 
 background: linear-gradient(135deg, #add5ff, #ffffff); 
color: #ffffff; display: grid; place-items: center; font-weight: 800; box-shadow: var(--shadow-1); letter-spacing: .5px; }
.brand-text { display: grid; line-height: 1.1; }
.brand-text strong { font-size: 18px; }
.brand-text span { font-size: 12px; color: var(--ink-500); }

.nav-toggle { display: none; background: transparent; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink-900); margin: 5px 0; border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.nav-menu { display: flex; gap: 8px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-menu a { text-decoration: none; color: var(--ink-900); padding: 10px 14px; border-radius: 10px; transition: background .2s ease, color .2s ease, transform .2s ease; display: inline-flex; align-items: center; gap: 8px; }
.nav-menu a:hover { background: var(--blue-100); transform: translateY(-1px); }
/* menu icons */
.mi { display: inline-grid; place-items: center; width: 18px; height: 18px; }
.mi svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.btn { display: inline-block; padding: 12px 18px; border-radius: 12px; text-decoration: none; font-weight: 600; transition: transform .15s ease, box-shadow .2s ease, background .2s ease; }
.btn-primary { background: linear-gradient(135deg, var(--blue-500), var(--blue-600)); color: #fff; box-shadow: var(--shadow-1); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
/* pulse glow */
.btn-primary { position: relative; }
.btn-primary::after { content: ""; position: absolute; inset: -2px; border-radius: 14px; background: radial-gradient(40px 20px at 20% 30%, rgba(255,255,255,.5), transparent 60%), radial-gradient(60px 30px at 80% 70%, rgba(255,255,255,.35), transparent 60%); filter: blur(8px); opacity: .0; transition: opacity .2s ease; pointer-events: none; }
.btn-primary:hover::after { opacity: .7; }
.btn-ghost { background: #ffffff; color: var(--blue-700); border: 1px solid var(--blue-300); }
.btn-ghost:hover { background: var(--blue-100); }

/* FLOATING SHAPES */
.floating-shapes { position: absolute; inset: 0 0 auto 0; height: 120px; overflow: hidden; pointer-events: none; }
.shape { position: absolute; opacity: .14; animation: float 12s ease-in-out infinite; }
.shape.circle { width: 120px; height: 120px; background: var(--blue-300); border-radius: 999px; top: -40px; left: 10%; animation-delay: .3s; }
.shape.triangle { width: 0; height: 0; border-left: 40px solid transparent; border-right: 40px solid transparent; border-bottom: 70px solid var(--blue-400); top: 10px; left: 60%; animation-delay: .8s; }
.shape.square { width: 60px; height: 60px; background: var(--blue-200); top: 40px; left: 80%; transform: rotate(15deg); animation-delay: 1.4s; }

@keyframes float {
  0%, 100% { transform: translateY(0) }
  50% { transform: translateY(18px) }
}

/* HERO */
.hero { position: relative; overflow: hidden; min-height: 70vh; background: radial-gradient(800px 400px at 10% 10%, var(--blue-100), transparent),
                  radial-gradient(800px 400px at 90% 0%, var(--blue-200), transparent);
}
.hero .container { position: relative; z-index: 2; }
.hero-bg { position: absolute; inset: 0; z-index: 1; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(1000px 600px at 10% 10%, rgba(255,255,255,.4), transparent), linear-gradient(180deg, rgba(10,33,54,.25), rgba(10,33,54,.45)); pointer-events: none; }
.hero-bg .carousel-track { height: 100%; }
.hero-bg .slide { padding: 0; min-width: 100%; }
.hero-bg .slide img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; display: block; }
.hero .carousel-btn { display: none; }
.hero .carousel-dots { position: absolute; bottom: 12px; left: 0; right: 0; z-index: 3; }

@media (max-width: 720px) {
  .hero { min-height: 60vh; }
}
.hero-grid { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 32px; }
.hero h1 { font-size: clamp(28px, 4.6vw, 54px); line-height: 1.1; margin: 0 0 12px; }
.hero p { margin: 0 0 16px; color: var(--ink-700); }
.gradient-text { background: linear-gradient(135deg, var(--blue-700), var(--blue-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta-group { display: flex; gap: 12px; margin: 16px 0 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 18px; list-style: none; padding: 0; margin: 16px 0 0; color: var(--ink-700); }
.hero-card { position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-2); transform: translateZ(0); }
.hero-card img { display: block; width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; filter: saturate(1.05) contrast(1.02); }
.hero-card .badge { position: absolute; left: 16px; bottom: 16px; background: rgba(255,255,255,.9); color: var(--ink-900); padding: 8px 12px; border-radius: 999px; font-weight: 600; box-shadow: var(--shadow-1); }
/* shimmer badge */
.hero-card .badge { overflow: hidden; }
.hero-card .badge::before { content: ""; position: absolute; top: 0; bottom: 0; width: 50px; left: -60px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.9), transparent); transform: skewX(-20deg); animation: shimmer 2.2s linear infinite; }
@keyframes shimmer { 0%{ left:-60px } 100%{ left: 160% } }
.float-y { animation: floatY 5.5s ease-in-out infinite; }
@keyframes floatY { 0%,100%{ transform: translateY(0)} 50%{ transform: translateY(-10px)} }

/* GRID HELPERS */
.grid { display: grid; gap: 24px; }
.two-col { grid-template-columns: repeat(2, 1fr); align-items: start; }

/* CARDS / INFO */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.info-card { background: #fff; border: 1px solid #e9f2fb; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-1); }
.programs { grid-template-columns: repeat(3, 1fr); }
.program-card { background: #fff; border: 1px solid #e6f0fb; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-1); transition: transform .2s ease, box-shadow .2s ease; }
.program-card .icon { width: 44px; height: 44px; border-radius: 10px; background: linear-gradient(135deg, var(--blue-400), var(--blue-600)); box-shadow: var(--shadow-1); margin-bottom: 10px; }
.program-card .i2 { background: linear-gradient(135deg, #6fd0ff, #3ca6ff); }
.program-card .i3 { background: linear-gradient(135deg, #9dd8ff, #4aa6ff); }
.hover-raise:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }

/* CAROUSEL */
.carousel { position: relative; overflow: hidden; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-2); padding: 24px 16px 40px; }
.carousel-track { display: flex; will-change: transform; }
.slide { min-width: 100%; padding: 0 12px; }
.slide blockquote { margin: 0 0 10px; font-size: clamp(18px, 2.2vw, 22px); color: var(--ink-900); }
.slide figcaption { color: var(--ink-500); font-weight: 500; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.9); border: 0; width: 40px; height: 40px; border-radius: 999px; box-shadow: var(--shadow-1); cursor: pointer; font-size: 22px; line-height: 1; }
.carousel-btn:hover { background: #fff; }
.prev { left: 10px; }
.next { right: 10px; }
.carousel-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; gap: 8px; justify-content: center; }
.carousel-dots button { width: 8px; height: 8px; border-radius: 999px; border: 0; background: #d7e9ff; cursor: pointer; }
.carousel-dots button[aria-current="true"] { background: var(--blue-600); width: 26px; border-radius: 6px; transition: width .25s ease; }

/* Gallery carousel variant */
.carousel-gallery { padding: 0; }
.carousel-gallery .slide { padding: 0; }
.carousel-gallery .slide img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.carousel-gallery .carousel-btn { background: rgba(255,255,255,.85); }
.carousel-gallery .carousel-dots { bottom: 12px; }

/* NEWS / BERITA */
.news-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
.news-card { background: #fff; border: 1px solid #e8f1fb; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1); display: grid; grid-template-rows: auto 1fr; transition: transform .2s ease, box-shadow .2s ease; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.news-card .thumb { position: relative; overflow: hidden; }
.news-card .thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s ease; }
.news-card:hover .thumb img { transform: scale(1.04); }
.news-card .body { padding: 16px; display: grid; gap: 8px; }
.news-card h3 { font-size: 18px; line-height: 1.3; margin: 0; }
.news-card p { margin: 0; color: var(--ink-700); }
.news-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; color: var(--ink-500); font-weight: 500; }
.badge-chip { display: inline-block; background: var(--blue-100); color: var(--blue-700); padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid #d7e9ff; width: 40%; }
.news-actions { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.btn-link { background: transparent; border: 0; color: var(--blue-700); font-weight: 600; text-decoration: none; padding: 6px 0; display: inline-flex; align-items: center; gap: 6px; }
.btn-link:hover { color: var(--blue-600); }
.btn-link .arrow { width: 18px; height: 18px; }

@media (max-width: 960px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .news-grid { grid-template-columns: 1fr; }
}

/* MASONRY GALLERY */
.masonry { columns: 3 280px; column-gap: 12px; }
.masonry img { break-inside: avoid; width: 100%; border-radius: 14px; margin: 0 0 12px; box-shadow: var(--shadow-1); transition: transform .2s ease; }
.masonry img:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }

/* CONTACT */
.contact-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; color: var(--ink-700); }
.ci { display: inline-block; width: 22px; height: 22px; border-radius: 6px; background: var(--blue-300); margin-right: 8px; vertical-align: -6px; }
.map-card { background: #fff; border: 1px solid #e6f0fb; border-radius: var(--radius); box-shadow: var(--shadow-1); overflow: hidden; }
.map-card iframe { display: block; width: 100%; height: 320px; border: 0; }

/* FOOTER */
.site-footer { background: linear-gradient(180deg, var(--blue-50), #fff); border-top: 1px solid #e7f1fc; padding: 24px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.socials { display: flex; gap: 10px; }
.social { display: grid; place-items: center; width: 34px; height: 34px; background: #fff; border: 1px solid #e6f0fb; border-radius: 10px; color: var(--blue-700); text-decoration: none; font-weight: 600; box-shadow: var(--shadow-1); }
.social:hover { background: var(--blue-100); }

/* REVEAL ANIMATIONS */
.reveal-up { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); transition-delay: var(--delay, 0s); }
.reveal-up.is-visible { opacity: 1; transform: translateY(0); }
/* additional reveal variants */
.reveal-right { opacity: 0; transform: translateX(24px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); transition-delay: var(--delay, 0s); }
.reveal-right.is-visible { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(.96); transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.2,1); transition-delay: var(--delay, 0s); }
.reveal-scale.is-visible { opacity: 1; transform: scale(1); }

/* tilt on mouse via CSS variables */
[data-tilt] { transform-style: preserve-3d; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0); transition: transform .12s ease; }
[data-tilt] * { transform: translateZ(var(--tz, 0)); }

/* parallax targets will receive translateY from JS */
[data-parallax] { will-change: transform; }

/* RESPONSIVE */
@media (max-width: 960px) {
  .hero-grid, .two-col { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .programs { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-menu { position: absolute; right: 16px; top: 64px; background: #ffffff; border: 1px solid #e6f0fb; border-radius: 12px; box-shadow: var(--shadow-2); padding: 8px; display: grid; gap: 4px; width: min(70vw, 320px); opacity: 0; transform: translateY(-6px); pointer-events: none; transition: all .2s ease; }
  .nav-menu.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .cards { grid-template-columns: 1fr; }
  .programs { grid-template-columns: 1fr; }
}


