/* ===========================
   Selamat Hari Guru — Styles
   =========================== */

:root {
  --bg:        #0d1117;
  --bg-alt:    #121a24;
  --surface:   rgba(255, 255, 255, 0.045);
  --border:    rgba(255, 255, 255, 0.10);
  --text:      #eef2f7;
  --text-dim:  #9fb0c3;
  --gold:      #f4c168;
  --gold-soft: #ffe1a8;
  --accent:    #6ea8fe;
  --accent-2:  #b98bff;
  --radius:    18px;
  --wrap:      1080px;
  --ease:      cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

/* ---------- Confetti ---------- */
#confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 60;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 6rem 0 5rem;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% -10%, #1b2c47 0%, transparent 60%),
    linear-gradient(180deg, #0f1620 0%, var(--bg) 100%);
}

.hero-glow {
  position: absolute;
  top: -18%;
  left: 50%;
  translate: -50% 0;
  width: min(820px, 120vw);
  aspect-ratio: 1;
  background:
    radial-gradient(circle, rgba(244,193,104,.20) 0%, transparent 62%),
    radial-gradient(circle at 70% 60%, rgba(185,139,255,.16) 0%, transparent 60%);
  filter: blur(20px);
  animation: float 12s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(28px) scale(1.05); }
}

.hero-inner { position: relative; z-index: 1; }

.eyebrow {
  display: inline-block;
  margin: 0 0 1.4rem;
  padding: .45rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--gold-soft);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.hero-title {
  margin: 0 0 1.2rem;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.7rem, 9vw, 5.6rem);
  line-height: 1.05;
  letter-spacing: -.02em;
}

.hero-title em {
  font-style: italic;
  display: block;
  background: linear-gradient(100deg, var(--gold) 0%, var(--gold-soft) 40%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 46ch;
  margin: 0 auto 2.4rem;
  color: var(--text-dim);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  justify-content: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.7rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background-color .25s var(--ease), border-color .25s var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(100deg, var(--gold) 0%, #ffd98a 100%);
  color: #23180a;
  box-shadow: 0 10px 30px -12px rgba(244,193,104,.7);
}
.btn-primary:hover { box-shadow: 0 16px 38px -12px rgba(244,193,104,.85); }

.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.22); }

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  translate: -50% 0;
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255,255,255,.22);
  border-radius: 999px;
}
.scroll-hint span {
  position: absolute;
  top: 8px; left: 50%;
  translate: -50% 0;
  width: 4px; height: 7px;
  border-radius: 2px;
  background: var(--gold);
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel {
  0%   { opacity: 0; transform: translateY(0); }
  30%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(13px); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 10vw, 7rem) 0; }
.section-alt { background: var(--bg-alt); }

.kicker {
  margin: 0 0 .6rem;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.section-title {
  margin: 0 0 .8rem;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -.015em;
}

.section-desc {
  max-width: 52ch;
  margin: 0 0 2.6rem;
  color: var(--text-dim);
}

/* ---------- Photo 16:9 ---------- */
.photo-frame { margin: 0; }

.photo-169 {
  position: relative;
  aspect-ratio: 16 / 9;      /* <-- bingkai foto 16:9 */
  width: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(244,193,104,.07), rgba(110,168,254,.07)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.02) 0 12px, transparent 12px 24px),
    #0f1621;
  box-shadow: 0 30px 70px -40px rgba(0,0,0,.95);
}

/* dipasang lewat JS kalau file foto belum ada */
.photo-169.no-photo { border-style: dashed; border-color: rgba(255,255,255,.20); }
.photo-169.no-photo .photo-img { display: none; }
.photo-169.no-photo .photo-empty { display: block; }

.photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-empty {
  display: none;
  padding: 1.5rem;
  text-align: center;
}

.photo-empty code {
  padding: .1rem .4rem;
  border-radius: 6px;
  background: rgba(255,255,255,.07);
  font-size: .85em;
}

.photo-icon {
  width: clamp(38px, 6vw, 54px);
  height: auto;
  margin-bottom: .9rem;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .9;
}

.photo-title {
  margin: 0 0 .3rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.05rem, 2.6vw, 1.5rem);
  font-weight: 600;
}

.photo-hint  { margin: 0; color: var(--text-dim); font-size: .9rem; }
.photo-note  { margin: .35rem 0 0; color: rgba(159,176,195,.6); font-size: .78rem; }

.photo-caption {
  margin-top: 1rem;
  color: var(--text-dim);
  font-size: .9rem;
  text-align: center;
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card {
  padding: 1.7rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(244,193,104,.35);
  background: rgba(255,255,255,.07);
}

.card-emoji { font-size: 1.9rem; line-height: 1; }

.card h3 {
  margin: .8rem 0 .45rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
}

.card p { margin: 0; color: var(--text-dim); font-size: .93rem; }

/* ---------- Quote ---------- */
.quote-section {
  background:
    radial-gradient(90% 130% at 50% 0%, rgba(185,139,255,.10) 0%, transparent 60%),
    var(--bg);
}

.quote-wrap { position: relative; text-align: center; max-width: 800px; }

.quote-mark {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: 5rem;
  line-height: .6;
  color: rgba(244,193,104,.45);
}

.quote-text {
  margin: 1.4rem 0 1.6rem;
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.25rem, 3.4vw, 2rem);
  line-height: 1.45;
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}

.quote-text.fade { opacity: 0; transform: translateY(10px); }

.quote-dots { display: flex; gap: .5rem; justify-content: center; margin: 0; }

.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  transition: background-color .35s var(--ease), width .35s var(--ease);
}
.dot.active { width: 22px; border-radius: 999px; background: var(--gold); }

/* ---------- Papan ucapan (statis) ---------- */
.notes {
  margin-top: 2.4rem;
  columns: 3 260px;
  column-gap: 1.1rem;
}

.note {
  break-inside: avoid;
  margin: 0 0 1.1rem;
  padding: 1.4rem 1.3rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(244,193,104,.10), rgba(255,255,255,.03));
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}

.note:hover { transform: translateY(-4px); border-color: rgba(244,193,104,.35); }
.note:nth-child(even) { rotate: -.4deg; }
.note:nth-child(3n)   { rotate:  .5deg; }

.note blockquote {
  margin: 0 0 .9rem;
  font-size: .96rem;
  line-height: 1.6;
}
.note blockquote::before { content: '“'; }
.note blockquote::after  { content: '”'; }

.note figcaption {
  color: var(--gold-soft);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.note figcaption::before { content: '— '; }

/* ---------- Penutup ---------- */
.closing {
  background:
    radial-gradient(80% 120% at 50% 100%, rgba(244,193,104,.10) 0%, transparent 60%),
    var(--bg);
}

.closing-wrap { max-width: 720px; text-align: center; }

.closing-text {
  margin: 0 0 1.4rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.2rem, 3.2vw, 1.8rem);
  line-height: 1.5;
}

.signature {
  margin: 0;
  color: var(--gold);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .05em;
}

/* ---------- Footer ---------- */
.footer {
  padding: 3.5rem 0 3rem;
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.footer-big {
  margin: 0 0 .4rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.3rem, 3.4vw, 1.9rem);
  font-weight: 600;
}

.footer-small { margin: 0; color: var(--text-dim); font-size: .9rem; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 560px) {
  .notes { columns: 1; }
  .note { rotate: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
