/* ============================================================
   Asep Nurjaman — Personal Branding
   Dark glassmorphism + gradient, responsif
   ============================================================ */

:root {
  --bg: #07070f;
  --bg-2: #0c0c1c;
  --ink: #edeaf9;
  --ink-2: #a9a4cc;
  --muted: #6f6a94;
  --indigo: #4f46e5;
  --violet: #8b5cf6;
  --pink: #ec4899;
  --sky: #38bdf8;
  --grad: linear-gradient(120deg, #6366f1 0%, #8b5cf6 50%, #c084fc 100%);
  --grad-btn: linear-gradient(120deg, var(--indigo), var(--violet));
  --glass: rgba(255, 255, 255, 0.045);
  --glass-border: rgba(255, 255, 255, 0.09);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

section { scroll-margin-top: 88px; }

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
strong { color: var(--ink); }

/* ---------- Background dekoratif ---------- */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.55;
}
.blob-1 { width: 560px; height: 560px; top: -180px; left: -140px; background: radial-gradient(circle, #4f46e5 0%, transparent 70%); }
.blob-2 { width: 620px; height: 620px; top: 20%; right: -240px; background: radial-gradient(circle, #8b5cf6 0%, transparent 70%); }
.blob-3 { width: 480px; height: 480px; bottom: -160px; left: 30%; background: radial-gradient(circle, #ec4899 0%, transparent 70%); opacity: 0.35; }
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 75%);
}

/* ---------- Utilities ---------- */
.container { width: min(1140px, 100% - 48px); margin-inline: auto; }
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.muted { color: var(--ink-2); }
.section { padding: 96px 0; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.35rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }
.section-head .sub { color: var(--ink-2); margin-top: 14px; }
.sub.left { text-align: left; }

.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c7b8ff;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.35);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--grad-btn);
  color: #fff;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(139, 92, 246, 0.5); }
.btn-ghost {
  background: var(--glass);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--ink);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.btn-ghost:hover { border-color: rgba(139, 92, 246, 0.6); transform: translateY(-2px); background: rgba(139, 92, 246, 0.1); }
.btn-donate {
  background: linear-gradient(120deg, #f59e0b, #ef4444);
  color: #fff;
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.35);
}
.btn-donate:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(239, 68, 68, 0.45); }
.btn-sm { padding: 10px 20px; font-size: 0.88rem; }
.btn-block { width: 100%; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-left: none;
  border-right: none;
  border-top: none;
  border-radius: 0;
  background: rgba(8, 8, 18, 0.6);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 44px; width: auto; border-radius: 12px; display: block; }
.brand-mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  font-weight: 900;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.45);
}
.brand-text { font-size: 1.02rem; font-weight: 800; letter-spacing: -0.01em; }
.brand-text em { font-style: normal; color: var(--ink-2); font-weight: 600; margin-left: 4px; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 0.92rem; font-weight: 600; color: var(--ink-2); transition: color 0.2s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-links .nav-cta {
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--grad-btn);
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35);
}
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.25s ease; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: 170px 0 90px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 8px 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.dot-pulse { width: 8px; height: 8px; border-radius: 50%; background: #34d399; position: relative; }
.dot-pulse::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid rgba(52, 211, 153, 0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }

.hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.6rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1.08; margin: 22px 0 20px; }
.hero .lead { color: var(--ink-2); font-size: 1.05rem; max-width: 520px; }
.hero .lead strong { color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.stats { display: flex; gap: 40px; margin-top: 44px; }
.stat strong { display: block; font-size: 1.7rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: 0.84rem; color: var(--muted); }

/* Terminal card */
.hero-visual { position: relative; }

/* Foto depan — lingkaran berbingkai gradien, mengambang */
.hero-photo {
  position: absolute;
  top: -30px; right: 18px;
  z-index: 3;
  width: 112px; height: 112px;
  border-radius: 50%;
  padding: 5px;
  background: var(--grad);
  box-shadow: 0 14px 40px rgba(139, 92, 246, 0.5);
  animation: floaty 5s ease-in-out infinite;
}
.hero-photo img, .hero-photo-init {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #0b0b18;
  border: 4px solid #0b0b18;
}
.hero-photo-init { display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 1.9rem; letter-spacing: 0.03em; }

.terminal { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.terminal-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid var(--glass-border);
}
.t-dot { width: 11px; height: 11px; border-radius: 50%; }
.t-dot.red { background: #f87171; } .t-dot.yellow { background: #fbbf24; } .t-dot.green { background: #34d399; }
.t-title { margin-left: 8px; font-size: 0.8rem; color: var(--muted); font-family: ui-monospace, 'Cascadia Code', Menlo, monospace; }
.terminal-body { padding: 24px; font-family: ui-monospace, 'Cascadia Code', Menlo, monospace; font-size: 0.92rem; }
.terminal-body p { margin-bottom: 10px; }
.t-prompt { color: var(--violet); font-weight: 700; margin-right: 8px; }
.t-cmd { color: #e0d7ff; }
.t-out { color: var(--ink-2); padding-left: 24px; }
.t-out .chip { margin-right: 6px; }
.t-green { color: #34d399; }
.t-caret { padding-left: 24px; }
.caret {
  display: inline-block; width: 9px; height: 18px;
  background: var(--violet);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.chip {
  display: inline-block;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 700;
  color: #d6cdfc;
  background: rgba(139, 92, 246, 0.16);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 999px;
  padding: 5px 12px;
}

.float-chip {
  position: absolute;
  font-size: 0.86rem;
  font-weight: 700;
  border-radius: 14px;
  padding: 12px 18px;
  box-shadow: var(--shadow);
  animation: floaty 5s ease-in-out infinite;
}
.chip-quran { top: -18px; right: -8px; color: #f0abfc; }
.chip-code { bottom: -16px; left: -14px; color: #93c5fd; animation-delay: 2.2s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ============================================================
   TENTANG
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.35fr; gap: 32px; align-items: start; }
.about-photo { border-radius: var(--radius); padding: 36px 28px; text-align: center; box-shadow: var(--shadow); }
.about-img {
  width: 128px; height: 128px;
  margin: 0 auto 18px;
  border-radius: 32px;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 14px 34px rgba(99, 102, 241, 0.45);
}
.avatar {
  width: 108px; height: 108px;
  margin: 0 auto 18px;
  border-radius: 32px;
  display: grid; place-items: center;
  background: var(--grad);
  color: #fff;
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow: 0 14px 34px rgba(99, 102, 241, 0.45);
}
.about-photo h3 { font-size: 1.25rem; font-weight: 800; }
.about-photo .muted { font-size: 0.9rem; margin: 6px 0 18px; }
.about-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 24px; }

.about-text { padding: 8px 0 0 8px; }
.about-text p { color: var(--ink-2); margin-bottom: 18px; }
.about-text em { color: var(--ink); font-style: normal; }

.check-list { margin-top: 8px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--ink-2);
  padding: 9px 0;
}
.check-list li svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px; color: #34d399; }

/* ============================================================
   LAYANAN
   ============================================================ */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }

.service { position: relative; border-radius: var(--radius); padding: 36px 32px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.service-badge {
  position: absolute; top: 22px; right: 22px;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: #c7b8ff;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 999px;
  padding: 6px 13px;
}
.service-icon {
  width: 60px; height: 60px;
  display: grid; place-items: center;
  border-radius: 18px;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 26px rgba(99, 102, 241, 0.4);
  margin-bottom: 24px;
}
.service-icon svg { width: 28px; height: 28px; }
.service h3 { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 10px; }
.service-desc { color: var(--ink-2); font-size: 0.95rem; margin-bottom: 20px; }
.service-points { margin-bottom: 28px; }
.service-points li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink-2); font-size: 0.94rem; padding: 7px 0; }
.service-points .tick { width: 19px; height: 19px; flex-shrink: 0; margin-top: 3px; color: var(--violet); }
.service .btn { margin-top: auto; align-self: flex-start; }

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }

.project { border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform 0.25s ease, box-shadow 0.3s ease; }
.project:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); }

.project-cover { position: relative; height: 170px; display: grid; place-items: center; overflow: hidden; }
.project-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.10), transparent 60%);
}
.hue-a { background: linear-gradient(135deg, #4f46e5, #8b5cf6); }
.hue-b { background: linear-gradient(135deg, #0ea5e9, #6366f1); }
.hue-c { background: linear-gradient(135deg, #06b6d4, #38bdf8); }
.hue-d { background: linear-gradient(135deg, #8b5cf6, #d946ef); }
.hue-e { background: linear-gradient(135deg, #7c3aed, #4f46e5); }
.hue-f { background: linear-gradient(135deg, #ec4899, #8b5cf6); }
.project-init { font-size: 2.6rem; font-weight: 900; color: rgba(255, 255, 255, 0.92); letter-spacing: 0.02em; text-shadow: 0 4px 18px rgba(0, 0, 0, 0.25); }
.project-cat {
  position: absolute; top: 14px; left: 14px;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 5px 12px;
}
.project-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.project-body h3 { font-size: 1.12rem; font-weight: 800; margin-bottom: 8px; }
.project-body p { color: var(--ink-2); font-size: 0.92rem; margin-bottom: 16px; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 0.74rem; font-weight: 700;
  color: #c7b8ff;
  background: rgba(139, 92, 246, 0.13);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 999px;
  padding: 4px 11px;
}

/* ============================================================
   TESTIMONI
   ============================================================ */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }
.testimonial { border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.stars { display: flex; gap: 3px; margin-bottom: 16px; }
.stars svg { width: 18px; height: 18px; color: rgba(255, 255, 255, 0.14); }
.stars svg.on { color: #fbbf24; }
.testimonial blockquote { color: var(--ink-2); font-size: 0.96rem; flex: 1; margin-bottom: 22px; }
.testimonial figcaption { display: flex; align-items: center; gap: 14px; }
.t-avatar {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(139, 92, 246, 0.35));
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #d6cdfc;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.testimonial figcaption strong { display: block; font-size: 0.95rem; }
.testimonial figcaption em { font-style: normal; color: var(--muted); font-size: 0.82rem; }

/* ============================================================
   BOOKING
   ============================================================ */
.booking-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.booking-info h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 16px; }
.booking-info .check-list { margin-bottom: 26px; }

.booking-form { border-radius: var(--radius); padding: 36px 34px; box-shadow: var(--shadow); }
.booking-form h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 6px; }
.booking-form > .muted { font-size: 0.92rem; margin-bottom: 26px; }
#bookingForm { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
#bookingForm .field:nth-child(6) { grid-column: 1 / -1; }
#bookingForm .field:nth-child(7) { grid-column: 1 / -1; }
#bookingForm .field:nth-child(1),
#bookingForm .field:nth-child(2),
#bookingForm .field:nth-child(3),
#bookingForm .field:nth-child(4) { grid-column: span 1; }
#bookingForm .field:nth-child(5) { grid-column: span 1; }

.field label { display: block; font-size: 0.84rem; font-weight: 700; color: var(--ink); margin-bottom: 7px; }
.field label span { color: var(--pink); }
.field label small { color: var(--muted); font-weight: 500; }
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.93rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-sm);
  padding: 12px 15px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: rgba(139, 92, 246, 0.7);
  background: rgba(139, 92, 246, 0.08);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
}
.field select option { background: #161630; color: var(--ink); }
.field input[type="date"]::-webkit-calendar-picker-indicator,
.field input[type="time"]::-webkit-calendar-picker-indicator { filter: invert(0.8); cursor: pointer; }

.form-status { grid-column: 1 / -1; font-size: 0.9rem; font-weight: 600; text-align: center; min-height: 1.4em; margin-top: 4px; }
.form-status.ok { color: #34d399; }
.form-status.err { color: #f87171; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { margin-top: 40px; border-top: 1px solid rgba(255, 255, 255, 0.07); background: rgba(5, 5, 12, 0.6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer-brand p { color: var(--ink-2); font-size: 0.92rem; margin-top: 16px; max-width: 320px; }
.footer-col h4 { font-size: 0.82rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--ink-2); font-size: 0.92rem; padding: 6px 0; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.07); padding-top: 22px; text-align: center; }
.footer-bottom p { color: var(--muted); font-size: 0.85rem; }
.footer-bottom .heart { color: var(--pink); }

/* ============================================================
   GALERI
   ============================================================ */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0;
  box-shadow: var(--shadow);
  cursor: zoom-in;
  /* Efek bergerak: miring ala foto polaroid + mengambang pelan */
  --tilt: 0deg;
  --amp: 9px;
  --dur: 5s;
  animation: photo-bob var(--dur) ease-in-out infinite;
  animation-delay: var(--d, 0s);
  transition: box-shadow 0.3s ease;
}
.gallery-item:nth-child(1) { --tilt: -1.6deg; --d: 0s; }
.gallery-item:nth-child(2) { --tilt: 1.4deg;  --d: -1.1s; }
.gallery-item:nth-child(3) { --tilt: -0.7deg; --d: -2.3s; }
.gallery-item:nth-child(4) { --tilt: 1.9deg;  --d: -3.1s; }
.gallery-item:nth-child(5) { --tilt: -2.1deg; --d: -1.7s; }
.gallery-item:nth-child(6) { --tilt: 1.1deg;  --d: -0.5s; }
.gallery-item:nth-child(7) { --tilt: -1.1deg; --d: -4s; }
.gallery-item:nth-child(8) { --tilt: 1.6deg;  --d: -2.7s; }
.gallery-item img { width: 100%; height: 240px; object-fit: cover; display: block; aspect-ratio: 16/9; transition: transform 0.4s ease; }
.gallery-item:hover { animation: photo-wiggle 0.55s ease-in-out infinite; box-shadow: 0 26px 64px rgba(0, 0, 0, 0.6); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption { padding: 16px 18px; }
.gallery-item figcaption strong { display: block; font-size: 0.98rem; }
.gallery-item figcaption span { color: var(--ink-2); font-size: 0.85rem; }
.gallery-empty { grid-column: 1 / -1; text-align: center; color: var(--ink-2); background: var(--glass); border: 1px dashed rgba(255,255,255,0.2); border-radius: var(--radius); padding: 40px; }

/* Foto mengambang pelan (naik-turun + sedikit miring) */
@keyframes photo-bob {
  0%, 100% { transform: rotate(var(--tilt)) translateY(0); }
  50%      { transform: rotate(var(--tilt)) translateY(calc(-1 * var(--amp))); }
}
/* Goyang lucu saat kursor di atas foto */
@keyframes photo-wiggle {
  0%, 100% { transform: rotate(-2deg) scale(1.04); }
  25%      { transform: rotate(2deg) scale(1.04); }
  50%      { transform: rotate(-1.4deg) scale(1.04); }
  75%      { transform: rotate(1.4deg) scale(1.04); }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: rgba(5, 5, 14, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: min(92vw, 1000px); max-height: 78vh; border-radius: 14px; box-shadow: 0 24px 70px rgba(0,0,0,0.6); }
.lightbox p { color: var(--ink-2); font-size: 0.95rem; }

/* ============================================================
   POSTINGAN (blog)
   ============================================================ */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.post-card { border-radius: var(--radius); padding: 0; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform 0.25s ease, box-shadow 0.3s ease; }
.post-card:hover { transform: translateY(-5px); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }

/* Gambar utama postingan dengan efek bergerak */
.post-thumb { position: relative; height: 190px; overflow: hidden; background: rgba(255,255,255,0.04); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 16/9; animation: photo-breathe 6s ease-in-out infinite; }
.post-thumb-grad { display: grid; place-items: center; background: linear-gradient(135deg, #4f46e5, #8b5cf6); }
.post-thumb-init { font-size: 2.4rem; font-weight: 900; color: rgba(255, 255, 255, 0.92); text-shadow: 0 4px 18px rgba(0,0,0,0.25); }
.post-thumb-cat {
  position: absolute; top: 14px; left: 14px;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff; background: rgba(0, 0, 0, 0.28); border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: 999px; padding: 5px 12px;
}
@keyframes photo-breathe {
  0%, 100% { transform: scale(1.04); }
  50%      { transform: scale(1.12); }
}
.post-card:hover .post-thumb img { animation: post-wiggle 0.5s ease-in-out; }
@keyframes post-wiggle {
  0%, 100% { transform: rotate(-1.4deg) scale(1.06); }
  50%      { transform: rotate(1.4deg) scale(1.06); }
}

.post-card-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.post-meta time { color: var(--muted); font-size: 0.82rem; }
.post-card-body h3 { font-size: 1.12rem; font-weight: 800; line-height: 1.4; margin-bottom: 10px; }
.post-card-body > p { color: var(--ink-2); font-size: 0.93rem; flex: 1; margin-bottom: 18px; }
.post-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 0.9rem; color: #c4b5fd; transition: gap 0.2s ease, color 0.2s ease; }
.post-link:hover { gap: 11px; color: var(--ink); }
.post-link svg { width: 16px; height: 16px; }

/* ============================================================
   HALAMAN POSTINGAN (post.php)
   ============================================================ */
.post-page { padding: 160px 0 80px; min-height: 70vh; }
.post-article { border-radius: var(--radius); padding: 44px 46px; box-shadow: var(--shadow); margin-bottom: 48px; }
.post-hero-img { width: 100%; max-height: 420px; object-fit: cover; aspect-ratio: 16/9; border-radius: var(--radius); margin-bottom: 26px; display: block; }
.post-article h1 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 900; letter-spacing: -0.02em; line-height: 1.25; margin: 6px 0 16px; }
.post-date { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.88rem; margin-bottom: 26px; }
.post-date svg { width: 16px; height: 16px; }
.post-content { color: var(--ink-2); font-size: 1.02rem; line-height: 1.9; margin-bottom: 34px; }
.post-content p { margin-bottom: 18px; }
.post-article .btn { margin-top: 6px; }
.post-notfound { border-radius: var(--radius); padding: 60px 40px; text-align: center; }
.post-notfound h1 { font-size: 1.7rem; font-weight: 800; margin-bottom: 10px; }
.post-notfound p { color: var(--ink-2); margin-bottom: 24px; }
.post-recent h2 { font-size: 1.25rem; font-weight: 800; margin-bottom: 22px; }

/* ============================================================
   FOOTER / LAIN-LAIN
   ============================================================ */
.login-link { margin-left: 10px; font-size: 0.78rem; font-weight: 600; color: var(--muted); border-bottom: 1px dashed rgba(255,255,255,0.2); transition: color 0.2s ease; }
.login-link:hover { color: var(--violet); }

@media (max-width: 680px) {
  .post-article { padding: 28px 22px; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .hero { padding: 140px 0 70px; }
  .hero-visual { max-width: 460px; margin-inline: auto; }
  .about-grid { grid-template-columns: 1fr; }
  .about-text { padding: 0; }
  .booking-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .section { padding: 72px 0; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 72px;
    left: 24px; right: 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 18px;
    border-radius: var(--radius);
    background: rgba(12, 12, 28, 0.96);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 8px; border-radius: 10px; }
  .nav-links a:hover { background: rgba(139, 92, 246, 0.12); }
  .nav-links .nav-cta { text-align: center; }
  .stats { gap: 24px; flex-wrap: wrap; }
  #bookingForm { grid-template-columns: 1fr; }
  #bookingForm .field { grid-column: 1 / -1 !important; }
  .float-chip.chip-code { left: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-chip, .caret, .dot-pulse::after, .gallery-item, .post-thumb img,
  .post-card:hover .post-thumb img { animation: none; }
}
