:root {
  --void: #0a0512;
  --deep: #170a28;
  --purple: #3a0f5c;
  --magenta: #a3195b;
  --pink-glow: #d81b60;
  --gold: #d4af37;
  --gold-light: #f3dfa0;
  --cream: #f2e9d8;
  --muted: #cab8dd;
  --glass: rgba(255, 255, 255, 0.055);
  --glass-border: rgba(212, 175, 55, 0.28);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--void);
  color: var(--cream);
  overflow-x: hidden;
}

::selection {
  background: var(--gold);
  color: var(--void);
}

/* ===== NAV (floating pill, Apple-style) ===== */
nav {
  min-height: 68px;
  background: rgba(10, 5, 18, 0.55);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px 0 26px;
  position: fixed;
  top: 22px;
  left: 50%;
  width: min(92%, 640px);
  border-radius: 999px;
  z-index: 100;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.35);
  transform: translateX(-50%) translateY(0);
  transition:
    top 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    width 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    min-height 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.5s ease,
    box-shadow 0.5s ease,
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

nav.nav-scrolled {
  top: 12px;
  width: min(88%, 560px);
  min-height: 56px;
  background: rgba(10, 5, 18, 0.8);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.logo img {
  height: 42px;
  transition: height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

nav.nav-scrolled .logo img {
  height: 34px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.86rem;
  padding: 9px 16px;
  border-radius: 999px;
  transition: 0.3s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.12);
}

.nav-links a.nav-cta {
  color: var(--void);
  background: var(--gold);
  font-weight: 700;
}

.nav-links a.nav-cta:hover {
  background: var(--gold-light);
  color: var(--void);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% -10%, #2a0e45 0%, var(--void) 60%);
}

.starfield {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  animation: twinkle linear infinite;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: var(--min-op, 0.15);
  }
  50% {
    opacity: var(--max-op, 0.9);
  }
}

.nebula {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 18% 25%, rgba(216, 27, 96, 0.35), transparent 45%),
    radial-gradient(circle at 82% 20%, rgba(163, 25, 91, 0.3), transparent 50%),
    radial-gradient(circle at 50% 85%, rgba(58, 15, 92, 0.55), transparent 55%);
  filter: blur(10px);
}

.tendrils {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  z-index: 1;
  opacity: 0.55;
}

.tendrils svg {
  width: 100%;
  height: 100%;
}

.tendrils path {
  fill: none;
  stroke: var(--gold-light);
  stroke-width: 2.5;
  stroke-linecap: round;
  opacity: 0.5;
  animation: driftTendril 6s ease-in-out infinite;
}

.tendrils path:nth-child(2n) {
  stroke: var(--cream);
  animation-delay: 0.6s;
  opacity: 0.35;
}

.tendrils path:nth-child(3n) {
  animation-delay: 1.2s;
}

@keyframes driftTendril {
  0%,
  100% {
    transform: translateY(0) scaleY(1);
  }
  50% {
    transform: translateY(6px) scaleY(1.03);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tendrils path,
  .star,
  .ring-glyphs g {
    animation: none !important;
  }
}

/* Zodiac ring: signature decorative device, reused (smaller) in motto band */
.zodiac-ring {
  position: absolute;
  left: 50%;
  bottom: -14vw;
  transform: translateX(-50%);
  width: min(760px, 92vw);
  height: auto;
  z-index: 1;
  opacity: 0.9;
  animation: ringRotate 140s linear infinite;
}

@keyframes ringRotate {
  from {
    transform: translateX(-50%) rotate(0deg);
  }
  to {
    transform: translateX(-50%) rotate(360deg);
  }
}

.ring-line {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1;
  opacity: 0.55;
}

.ring-line--thin {
  opacity: 0.3;
}

.ring-glyphs text {
  fill: var(--gold-light);
  font-family: "Cinzel", serif;
  font-size: 15px;
  text-anchor: middle;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 880px;
  padding: 130px 24px 60px;
}

.badge {
  display: inline-block;
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid var(--glass-border);
  color: var(--gold-light);
  padding: 8px 22px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 26px;
}

.title {
  font-family: "Cinzel", serif;
  font-weight: 900;
  font-size: clamp(2.6rem, 9vw, 6.2rem);
  letter-spacing: 0.015em;
  line-height: 1.05;
  overflow-wrap: break-word;
  background: linear-gradient(120deg, #f3dfa0 0%, #d4af37 35%, #fff6d9 55%, #d4af37 75%, #b8860b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 60px rgba(212, 175, 55, 0.35);
  margin-bottom: 18px;
}

.motto-inline {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  color: var(--gold-light);
  letter-spacing: 0.03em;
  margin-bottom: 22px;
}

.lede {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--muted);
  line-height: 1.8;
  max-width: 560px;
  margin: 0 auto 34px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.btn-gold,
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: 0.3s ease;
  border: none;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
}

.btn-gold {
  background: linear-gradient(120deg, var(--gold-light), var(--gold));
  color: #241238;
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.4);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.06);
  color: var(--cream);
  border: 1.5px solid var(--glass-border);
}

.btn-outline:hover {
  background: rgba(212, 175, 55, 0.14);
  border-color: var(--gold);
}

.hero-meta {
  display: flex;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--muted);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 24px;
  height: 38px;
  border: 1.5px solid var(--glass-border);
  border-radius: 999px;
}

.scroll-cue span {
  display: block;
  width: 4px;
  height: 8px;
  margin: 6px auto 0;
  background: var(--gold);
  border-radius: 999px;
  animation: scrollDot 1.8s ease-in-out infinite;
}

@keyframes scrollDot {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  70% {
    transform: translateY(14px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 0;
  }
}

/* ===== MOTTO BAND ===== */
.motto-band {
  position: relative;
  padding: clamp(70px, 12vw, 120px) 8%;
  background: linear-gradient(180deg, var(--void), var(--deep) 50%, var(--void));
  text-align: center;
  overflow: hidden;
}

.motto-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.08), transparent 60%);
}

.motto-band-inner {
  position: relative;
  z-index: 1;
}

.motto-latin {
  font-family: "Cinzel", serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 4.5vw, 2.6rem);
  letter-spacing: 0.03em;
  line-height: 1.3;
  background: linear-gradient(120deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 22px;
}

.motto-translate {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: var(--cream);
  margin-bottom: 10px;
}

.motto-id {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ===== SHARED SECTION BITS ===== */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(40px, 6vw, 64px);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: "Cinzel", serif;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  color: var(--cream);
  font-weight: 700;
}

.section-header p {
  color: var(--muted);
  margin-top: 12px;
  font-size: 0.95rem;
}

/* ===== ABOUT / MEANING ===== */
.about {
  padding: clamp(70px, 10vw, 110px) 8%;
  background: var(--deep);
}

.meaning-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
  max-width: 1100px;
  margin: 0 auto;
}

.meaning-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 34px 28px;
  position: relative;
  transition: 0.35s ease;
}

.meaning-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

.meaning-num {
  font-family: "Cinzel", serif;
  color: var(--gold);
  font-size: 1.1rem;
  font-weight: 700;
  display: block;
  margin-bottom: 14px;
}

.meaning-card h3 {
  font-family: "Cinzel", serif;
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--gold-light);
}

.meaning-card p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 0.92rem;
}

.meaning-card em {
  color: var(--cream);
  font-style: normal;
  font-weight: 600;
}

/* ===== PILIH JENJANG ===== */
.jenjang {
  position: relative;
  padding: clamp(70px, 10vw, 110px) 8%;
  background: var(--deep);
  overflow: hidden;
}

.jenjang::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  max-width: 140vw;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.12),
    transparent 65%
  );
  pointer-events: none;
}

.jenjang-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 26px;
  max-width: 900px;
  margin: 0 auto;
}

.jenjang-card {
  font-family: "Poppins", sans-serif;
  background: var(--glass);
  border: 1.5px solid var(--glass-border);
  border-radius: 24px;
  padding: 46px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: 0.35s ease;

  opacity: 0;
  transform: translateY(30px);
}

.jenjang-card.show {
  opacity: 1;
  transform: translateY(0);
}

.jenjang-card:hover {
  border-color: var(--gold);
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.jenjang-card.show:hover {
  transform: translateY(-6px);
}

.jenjang-card.active {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.1);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.35);
}

.jenjang-icon {
  font-size: 2.6rem;
  margin-bottom: 6px;
  filter: drop-shadow(0 4px 14px rgba(212, 175, 55, 0.25));
}

.jenjang-card h3 {
  font-family: "Cinzel", serif;
  font-size: 1.3rem;
  color: var(--gold-light);
}

.jenjang-card p {
  color: var(--muted);
  font-size: 0.85rem;
}

/* Konten yang tersembunyi sampai jenjang dipilih */
.jenjang-content {
  display: none;
}

.jenjang-content.visible {
  display: block;
  animation: jenjangReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes jenjangReveal {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== LOMBA ===== */
.lomba {
  padding: clamp(70px, 10vw, 110px) 8%;
  background: var(--void);
}

.lomba-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.lomba-card.lomba-hidden {
  display: none;
}

.lomba-empty {
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  padding: 30px 20px;
  grid-column: 1 / -1;
  display: none;
}

.lomba-empty.show {
  display: block;
}

.lomba-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  position: relative;
  transition: 0.35s ease;

  opacity: 0;
  transform: translateY(30px);
}

.lomba-card.show {
  opacity: 1;
  transform: translateY(0);
}

.lomba-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: 0 20px 45px rgba(163, 25, 91, 0.25);
}

.zodiac-tag {
  display: inline-block;
  font-family: "Cinzel", serif;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--gold);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--glass-border);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.lomba-card .icon {
  display: block;
  font-size: 2.1rem;
  margin-bottom: 14px;
}

.lomba-card h3 {
  font-family: "Cinzel", serif;
  font-size: 1.05rem;
  color: var(--cream);
  margin-bottom: 10px;
}

.lomba-card p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

/* ===== SYARAT & KETENTUAN ===== */
.terms {
  padding: clamp(70px, 10vw, 110px) 8%;
  background: var(--deep);
}

.terms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  max-width: 1100px;
  margin: 0 auto;
}

.terms-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 28px 26px;
}

.terms-card h3 {
  font-family: "Cinzel", serif;
  font-size: 1.02rem;
  color: var(--gold-light);
  margin-bottom: 14px;
}

.terms-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.terms-card li {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
  padding-left: 18px;
  position: relative;
}

.terms-card li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.72rem;
  top: 4px;
}

/* ===== RUNDOWN / TIMELINE ===== */
.rundown {
  padding: clamp(70px, 10vw, 110px) 8%;
  background: var(--deep);
}

/* Day tabs */
.day-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 720px;
  margin: 0 auto clamp(36px, 5vw, 50px);
}

.day-tab {
  font-family: "Cinzel", serif;
  background: transparent;
  border: 1.5px solid var(--glass-border);
  color: var(--muted);
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: 0.25s ease;
}

.day-tab:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

.day-tab.active {
  background: linear-gradient(120deg, var(--gold-light), var(--gold));
  border-color: var(--gold);
  color: #241238;
  font-weight: 700;
}

.day-panels {
  max-width: 720px;
  margin: 0 auto;
}

.day-panel {
  display: none;
}

.day-panel.active {
  display: block;
}

.day-label {
  display: block;
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold-light);
  margin-bottom: 26px;
}

.day-panel.active .event {
  opacity: 0;
  animation: eventFadeIn 0.5s ease forwards;
}

.day-panel.active .event:nth-child(1) {
  animation-delay: 0s;
}
.day-panel.active .event:nth-child(2) {
  animation-delay: 0.08s;
}
.day-panel.active .event:nth-child(3) {
  animation-delay: 0.16s;
}
.day-panel.active .event:nth-child(4) {
  animation-delay: 0.24s;
}

@keyframes eventFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.timeline {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--gold), transparent);
  opacity: 0.4;
}

.event {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 30px;
}

.event:last-child {
  margin-bottom: 0;
}

.event-marker {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--void);
  border: 1.5px solid var(--gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  position: relative;
  z-index: 2;
}

.event-content {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 18px 24px;
  flex: 1;
  transition: 0.3s;
}

.event:hover .event-content {
  border-color: var(--gold);
  transform: translateX(4px);
}

.event-time {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.event-content h3 {
  font-family: "Cinzel", serif;
  margin-top: 6px;
  margin-bottom: 6px;
  color: var(--cream);
  font-size: 1rem;
}

.event-content p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* ===== GUEST STAR ===== */
.guest {
  position: relative;
  overflow: hidden;
  padding: clamp(90px, 12vw, 140px) 8%;
  background: var(--void);
}

.guest-glow {
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  max-width: 150vw;
  height: 900px;
  background: radial-gradient(
    circle,
    rgba(163, 25, 91, 0.28),
    rgba(58, 15, 92, 0.14) 45%,
    transparent 72%
  );
  pointer-events: none;
  z-index: 0;
}

.guest-grid {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(40px, 6vw, 90px);
}

.guest-info {
  text-align: left;
}

.guest-info .eyebrow {
  color: var(--gold-light);
}

.guest-info h2 {
  font-family: "Cinzel", serif;
  font-size: clamp(2.1rem, 4.6vw, 3.2rem);
  color: var(--cream);
  margin: 12px 0 18px;
}

.guest-info p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.75;
  max-width: 420px;
  margin-bottom: 26px;
}

.guest-tag {
  display: inline-block;
  font-family: "Cinzel", serif;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: #241238;
  background: linear-gradient(120deg, var(--gold-light), var(--gold));
  padding: 9px 24px;
  border-radius: 999px;
  animation: guestPulse 2.4s ease-in-out infinite;
}

.guest-portrait {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
}

.guest-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px dashed var(--glass-border);
  animation: guestRingSpin 44s linear infinite;
}

.guest-ring::before {
  content: "";
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.16);
}

@keyframes guestRingSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.guest-frame {
  position: relative;
  z-index: 1;
  width: 62%;
  aspect-ratio: 2 / 3;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid var(--gold);
  box-shadow:
    0 0 0 6px rgba(212, 175, 55, 0.1),
    0 25px 60px rgba(0, 0, 0, 0.55);
}

.guest-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.guest-spark {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-light);
  animation: twinkle 3s ease-in-out infinite;
}

.spark-1 {
  top: 6%;
  right: 8%;
  animation-delay: 0.2s;
  --max-op: 0.9;
}

.spark-2 {
  bottom: 12%;
  left: 2%;
  width: 3px;
  height: 3px;
  animation-delay: 1.1s;
  --max-op: 0.8;
}

.spark-3 {
  top: 42%;
  left: -3%;
  width: 5px;
  height: 5px;
  animation-delay: 2s;
  --max-op: 0.7;
}

@keyframes guestPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.35);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(212, 175, 55, 0);
  }
}

/* ===== REGISTRATION ===== */
.registration {
  padding: clamp(70px, 10vw, 110px) 8%;
  background: var(--void);
  position: relative;
}

.registration::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(163, 25, 91, 0.18), transparent 55%);
  pointer-events: none;
}

.registration-inner {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.reg-form {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.reg-form[hidden],
.reg-success[hidden] {
  display: none !important;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-light);
}

.optional {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.8rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--cream);
  font-family: "Poppins", sans-serif;
  font-size: 0.92rem;
  outline: none;
  transition: 0.25s ease;
}

.form-field select option {
  background: var(--deep);
  color: var(--cream);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(242, 233, 216, 0.35);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.form-field input:invalid:not(:placeholder-shown) {
  border-color: var(--pink-glow);
}

.btn-submit {
  justify-content: center;
  margin-top: 6px;
  width: 100%;
}

.reg-success {
  text-align: center;
  background: var(--glass);
  border: 1px solid var(--gold);
  border-radius: 24px;
  padding: clamp(36px, 6vw, 54px) 28px;
}

.success-icon {
  display: inline-block;
  font-size: 2.4rem;
  color: var(--gold);
  margin-bottom: 16px;
}

.reg-success h3 {
  font-family: "Cinzel", serif;
  color: var(--cream);
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.reg-success p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 26px;
}

.reg-success p strong {
  color: var(--gold-light);
  font-weight: 600;
}

.reg-success .btn-gold {
  display: inline-flex;
  margin-bottom: 14px;
}

.reg-success .btn-outline {
  display: inline-flex;
}

/* ===== SPONSOR & PARTNER ===== */
.sponsors {
  padding: clamp(60px, 9vw, 90px) 8%;
  background: var(--void);
}

.sponsor-marquee {
  overflow: hidden;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 8%,
    black 92%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    black 8%,
    black 92%,
    transparent
  );
}

.sponsor-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: sponsorScroll 22s linear infinite;
}

.sponsor-marquee:hover .sponsor-track {
  animation-play-state: paused;
}

@keyframes sponsorScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.sponsor-slot {
  flex: 0 0 auto;
  width: 190px;
  aspect-ratio: 16 / 9;
  background: var(--glass);
  border: 1.5px dashed var(--glass-border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: 0.3s;
}

.sponsor-slot span {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

.sponsor-slot:hover {
  border-color: var(--gold);
  border-style: solid;
}

.sponsor-cta {
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 30px;
}

.sponsor-cta a {
  color: var(--gold-light);
  font-weight: 600;
}

/* ===== PROPOSAL ===== */
.proposal {
  padding: clamp(60px, 9vw, 90px) 8%;
  background: var(--deep);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.proposal-inner {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 26px;
  padding: clamp(30px, 5vw, 42px) clamp(24px, 5vw, 40px);
}

.proposal h2 {
  font-family: "Cinzel", serif;
  font-size: clamp(1.4rem, 3.2vw, 1.8rem);
  color: var(--cream);
  margin-bottom: 10px;
}

.proposal p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 22px;
}

/* ===== KONTAK PANITIA ===== */
.contact-committee {
  padding: clamp(60px, 9vw, 90px) 8%;
  background: var(--deep);
}

.cp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.cp-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 26px 22px;
  text-align: center;
  transition: 0.3s;
}

.cp-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.cp-role {
  display: inline-block;
  font-family: "Cinzel", serif;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.12);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.cp-card h3 {
  font-size: 1.02rem;
  color: var(--cream);
  margin-bottom: 10px;
}

.cp-card a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: 0.25s;
}

.cp-card a:hover {
  color: var(--gold-light);
}

/* ===== FLOATING CLOSE BUTTON (jenjang) ===== */
.jenjang-close-fab {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "Cinzel", serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: #241238;
  background: linear-gradient(120deg, var(--gold-light), var(--gold));
  border: none;
  border-radius: 999px;
  padding: 12px 22px 12px 12px;
  cursor: pointer;
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(212, 175, 55, 0.45);

  opacity: 0;
  pointer-events: none;
  transform: translateY(24px) scale(0.9);
  transition:
    opacity 0.35s ease,
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s ease;
}

.jenjang-close-fab.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.jenjang-close-fab:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(212, 175, 55, 0.65);
}

.jenjang-close-fab .fab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(36, 18, 56, 0.16);
  font-size: 0.78rem;
  line-height: 1;
}

@media (max-width: 600px) {
  .jenjang-close-fab {
    padding: 10px 18px 10px 10px;
    font-size: 0.76rem;
  }

  .jenjang-close-fab .fab-icon {
    width: 19px;
    height: 19px;
  }
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--void);
  border-top: 1px solid var(--glass-border);
  color: var(--muted);
  text-align: center;
  padding: 45px 20px;
}

.site-footer img {
  width: 50px;
  margin-bottom: 12px;
}

.footer-brand {
  font-family: "Cinzel", serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-light);
  margin-bottom: 4px;
}

@media (min-width: 700px) {
  .footer-brand {
    font-size: 2.1rem;
    letter-spacing: 0.14em;
    margin-bottom: 8px;
  }
}

.site-footer p {
  opacity: 0.8;
  font-size: 0.88rem;
  margin-bottom: 10px;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 6px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--glass-border);
  color: var(--gold-light);
  transition: 0.3s;
}

.social-icon svg {
  width: 19px;
  height: 19px;
}

.social-icon:hover {
  background: rgba(212, 175, 55, 0.14);
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* ===================================================
   RESPONSIVE
=================================================== */
@media (max-width: 900px) {
  nav {
    width: min(96%, 560px);
    padding: 0 6px 0 18px;
  }

  .nav-links {
    gap: 2px;
  }

  .nav-links a {
    font-size: 0.78rem;
    padding: 8px 11px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .guest-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .guest-portrait {
    order: -1;
  }

  .guest-frame {
    width: 44%;
  }

  .guest-info {
    text-align: center;
  }

  .guest-info p {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 600px) {
  nav {
    width: 96%;
    padding: 0 4px 0 14px;
    min-height: 58px;
    top: 14px;
  }

  nav.nav-scrolled {
    top: 8px;
    min-height: 48px;
    width: 94%;
  }

  .logo img {
    height: 34px;
  }

  nav.nav-scrolled .logo img {
    height: 28px;
  }

  .nav-links {
    gap: 0;
  }

  .nav-links a {
    font-size: 0.68rem;
    padding: 7px 8px;
  }

  .hero-inner {
    padding: 110px 20px 50px;
  }

  .zodiac-ring {
    bottom: -22vw;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .lomba-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .jenjang-card {
    padding: 34px 20px;
  }

  .jenjang-icon {
    font-size: 2.1rem;
  }

  .day-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 6px;
    scrollbar-width: thin;
  }

  .day-tab {
    flex-shrink: 0;
  }

  .guest {
    padding: 70px 6% 60px;
  }

  .guest-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .guest-portrait {
    order: -1;
    margin-bottom: 8px;
  }

  .guest-frame {
    width: 52%;
  }

  .guest-info {
    text-align: center;
  }

  .guest-info p {
    margin-left: auto;
    margin-right: auto;
  }

  .lomba-card {
    padding: 22px 14px;
  }

  .timeline::before {
    left: 17px;
  }

  .event-marker {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }

  .event-content {
    padding: 14px 16px;
  }

  .reg-form {
    padding: 22px;
  }

  .terms-card,
  .cp-card {
    padding: 22px 18px;
  }

  .sponsor-slot {
    width: 140px;
  }
}

@media (max-width: 380px) {
  .lomba-grid {
    grid-template-columns: 1fr;
  }
}