/* =========================================
   YASHAS — ROYAL DIWALI
   Complete stylesheet
========================================= */

:root {
  --bg: #100b08;
  --bg-soft: #17100b;
  --surface: #1d150e;
  --surface-light: #261b11;
  --gold: #e8bc68;
  --gold-light: #ffe6ad;
  --gold-deep: #9b6825;
  --cream: #fff0d0;
  --muted: #b6a38a;
  --line: #70532d;
  --white: #fffaf0;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--white);
  font-family: var(--sans);
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

button,
a,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 5px;
}

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

/* BACKGROUND ATMOSPHERE */

.ambient-glow {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 15% 15%, #7b43151c, transparent 38%),
    radial-gradient(ellipse at 85% 70%, #9b68251a, transparent 38%),
    var(--bg);
}

.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

/* HEADER */

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  height: 78px;
  padding: 0 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, #100b08e8, #100b08a8);
  border-bottom: 1px solid #e8bc681c;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
}

.brand-symbol {
  font-size: 23px;
  color: var(--gold);
  animation: slowRotate 12s linear infinite;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-link {
  position: relative;
  padding: 10px 0;
  color: #c6b59d;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.35s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-light);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid #e8bc6845;
  border-radius: 50%;
  background: #1d150e;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 16px;
  height: 1px;
  background: var(--gold-light);
  transition: transform 0.3s ease;
}

/* HERO */

.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  place-items: center;
  padding: 140px 24px 100px;
  overflow: hidden;
  isolation: isolate;
  background: #100b08;
}

.hero-bg {
  position: absolute;
  z-index: -3;
  inset: 0;
  background:
    linear-gradient(90deg, #100b08c9, #100b0850 55%, #100b08a8),
    linear-gradient(0deg, #100b08 0%, transparent 35%, #100b0840 100%),
    url("assets/hero/diwali-hero.jpg") center 48% / cover no-repeat;
  transform: scale(1.04);
  animation: heroZoom 22s ease-in-out infinite alternate;
}

.hero-overlay {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 10%, #100b086b 85%),
    linear-gradient(0deg, var(--bg), transparent 22%, transparent 80%, var(--bg));
}

.hero-stars {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    radial-gradient(1px 1px at 10% 20%, #ffe6ad, transparent),
    radial-gradient(1px 1px at 30% 70%, #ffe6ad, transparent),
    radial-gradient(2px 2px at 70% 25%, #ffe6ad, transparent),
    radial-gradient(1px 1px at 85% 65%, #ffe6ad, transparent),
    radial-gradient(1px 1px at 55% 45%, #ffe6ad, transparent);
  background-size: 300px 300px;
  animation: starDrift 35s linear infinite;
}

.hero-content {
  width: min(850px, 100%);
  text-align: center;
  animation: heroEnter 1.3s cubic-bezier(.2,.7,.2,1) both;
}

.hero-emblem {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 28px;
  border: 1px solid #e8bc6870;
  border-radius: 50%;
  color: var(--gold-light);
  font-size: 26px;
  box-shadow: 0 0 35px #e8bc6820, inset 0 0 20px #e8bc6810;
  animation: emblemGlow 4s ease-in-out infinite;
}

.hero-intro,
.eyebrow,
.card-kicker,
.track-label {
  color: var(--gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
}

.hero h1 {
  margin: 25px 0 22px;
  color: var(--white);
  font-family: var(--serif);
  font-size: clamp(58px, 8.5vw, 112px);
  font-weight: 400;
  line-height: 0.91;
  letter-spacing: -2px;
}

.hero h1 span,
.section-heading h2 span {
  color: var(--gold-light);
  font-style: italic;
  font-weight: 400;
}

.hero-description {
  max-width: 460px;
  margin: 0 auto;
  color: #d0c0a8;
  font-size: 12px;
  line-height: 2;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 50px;
  padding: 0 25px;
  border: 1px solid #e8bc68a8;
  border-radius: 50px;
  background: linear-gradient(135deg, #ffe6ad, #d3a34f);
  color: #211509;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.7px;
  box-shadow: 0 8px 30px #d99d3b20;
  transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
}

.primary-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 38px #d99d3b45;
  filter: brightness(1.08);
}

.primary-button span {
  font-size: 17px;
}

.hero-cta {
  margin-top: 35px;
}

.hero-scroll {
  position: absolute;
  bottom: 42px;
  left: 50%;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 12px;
  transform: translateX(-50%);
}

.hero-scroll span {
  width: 1px;
  height: 38px;
  background: linear-gradient(var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

.hero-scroll p,
.hero-bottom-note {
  color: #b8a68b;
  font-size: 8px;
  letter-spacing: 2.5px;
}

.hero-bottom-note {
  position: absolute;
  right: 7%;
  bottom: 45px;
}

.hero-corner {
  position: absolute;
  width: 45px;
  height: 45px;
  opacity: 0.6;
}

.corner-tl {
  top: 110px;
  left: 5%;
  border-top: 1px solid var(--gold-deep);
  border-left: 1px solid var(--gold-deep);
}

.corner-tr {
  top: 110px;
  right: 5%;
  border-top: 1px solid var(--gold-deep);
  border-right: 1px solid var(--gold-deep);
}

.corner-bl {
  bottom: 105px;
  left: 5%;
  border-bottom: 1px solid var(--gold-deep);
  border-left: 1px solid var(--gold-deep);
}

.corner-br {
  bottom: 105px;
  right: 5%;
  border-bottom: 1px solid var(--gold-deep);
  border-right: 1px solid var(--gold-deep);
}

/* GENERAL SECTIONS */

.section {
  position: relative;
  min-height: 90vh;
  padding: 125px 8%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-bottom: 1px solid #70532d33;
  text-align: center;
}

.section-heading {
  max-width: 650px;
  margin: 0 auto 55px;
}

.section-heading h2 {
  margin: 18px 0 12px;
  color: var(--white);
  font-family: var(--serif);
  font-size: clamp(42px, 5.5vw, 68px);
  font-weight: 400;
  line-height: 1.05;
}

.section-heading > p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

/* REVEAL ANIMATION */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2,.7,.2,1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* MEMORIES / GALLERY */

.memories-section {
  background:
    radial-gradient(ellipse at 50% 45%, #8a5b1b12, transparent 55%),
    var(--bg);
}

.gallery-shell {
  width: min(780px, 100%);
}

.gallery-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid #d3a34f55;
  border-radius: 5px;
  background: #1d150e;
  box-shadow: 0 25px 80px #0008, 0 0 35px #d3a34f0d;
}

.gallery-track {
  position: absolute;
  inset: 0;
}

.gallery-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.045);
  transition: opacity 0.8s ease, transform 1.3s ease, visibility 0.8s;
}

.gallery-item.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  cursor: zoom-in;
}

.photo-number {
  position: absolute;
  top: 20px;
  right: 22px;
  color: #fff8e6;
  font-family: var(--serif);
  font-size: 22px;
  text-shadow: 0 2px 12px #000;
}

.gallery-shade {
  position: absolute;
  z-index: 2;
  inset: 45% 0 0;
  pointer-events: none;
  background: linear-gradient(transparent, #100b08a8);
}

.gallery-caption {
  position: absolute;
  z-index: 3;
  right: 25px;
  bottom: 22px;
  left: 25px;
  display: flex;
  justify-content: space-between;
  color: var(--gold-light);
  font-size: 8px;
  letter-spacing: 2px;
}

.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  margin-top: 25px;
}

.gallery-arrow {
  width: 40px;
  height: 40px;
  border: 1px solid #e8bc6860;
  border-radius: 50%;
  background: transparent;
  color: var(--gold-light);
  font-size: 18px;
  transition: background 0.3s, color 0.3s, transform 0.3s;
}

.gallery-arrow:hover {
  transform: scale(1.08);
  background: var(--gold);
  color: var(--bg);
}

.gallery-dots {
  display: flex;
  align-items: center;
  gap: 9px;
}

.gallery-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #76644b;
  transition: width 0.3s, background 0.3s;
}

.gallery-dot.active {
  width: 23px;
  border-radius: 10px;
  background: var(--gold);
}

.gallery-hint {
  margin-top: 18px;
  color: #927e62;
  font-size: 10px;
}

/* MUSIC */

.music-section {
  background:
    radial-gradient(ellipse at 50% 50%, #a06a1c14, transparent 50%),
    #130d09;
}

.music-card {
  width: min(460px, 100%);
  padding: 28px;
  border: 1px solid #a47b405c;
  border-radius: 20px;
  background: linear-gradient(145deg, #291c11, #17100b 70%);
  text-align: left;
  box-shadow: 0 25px 70px #0007, inset 0 1px #ffffff0b;
}

.album-art {
  position: relative;
  height: 170px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 13px;
  background:
    radial-gradient(circle at center, #b27a2c 0%, #5d3818 35%, #211408 75%);
  box-shadow: inset 0 0 50px #0007;
}

.album-art::before,
.album-art::after {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  border: 1px solid #ffe1a02e;
  border-radius: 50%;
}

.album-art::after {
  width: 150px;
  height: 150px;
}

.album-orbit {
  position: absolute;
  border: 1px solid #ffe1a024;
  border-radius: 50%;
  transform: rotate(-25deg);
}

.orbit-one {
  width: 260px;
  height: 95px;
}

.orbit-two {
  width: 95px;
  height: 260px;
}

.album-symbol {
  z-index: 1;
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 75px;
  text-shadow: 0 0 30px #ffe1a080;
  animation: musicFloat 4s ease-in-out infinite;
}

.album-star {
  position: absolute;
  color: var(--gold-light);
  animation: sparkle 3s ease-in-out infinite;
}

.star-one {
  top: 30px;
  left: 30%;
}

.star-two {
  right: 25%;
  bottom: 32px;
  animation-delay: 1s;
}

.track-info {
  margin-top: 25px;
}

.track-label {
  font-size: 8px;
  letter-spacing: 2px;
}

.track-info h3 {
  margin: 8px 0 4px;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
}

.track-info p,
.music-status {
  color: var(--muted);
  font-size: 11px;
}

.audio-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 25px;
  color: #d5c3a7;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

input[type="range"] {
  height: 4px;
  accent-color: var(--gold);
  cursor: pointer;
}

#progressBar {
  flex: 1;
  min-width: 0;
}

.music-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}

.play-button {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid #ffe3a1;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffe5a0, #bd852f);
  color: #211305;
  font-size: 16px;
  box-shadow: 0 0 22px #dca74840;
  transition: transform 0.3s, box-shadow 0.3s;
}

.play-button:hover {
  transform: scale(1.08);
  box-shadow: 0 0 30px #e8bc6870;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
}

.volume-control input {
  width: 100px;
}

.music-status {
  min-height: 16px;
  margin-top: 18px;
  color: #b6a38a;
  line-height: 1.6;
}

/* SURPRISE */

.surprise-section {
  background:
    radial-gradient(ellipse at 50% 35%, #9b68251a, transparent 55%),
    var(--bg);
}

.surprise-grid {
  width: min(780px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.surprise-card {
  min-height: 330px;
  padding: 35px 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px solid #a47b404f;
  border-radius: 14px;
  background: linear-gradient(145deg, #24180e, #15100b);
  box-shadow: 0 20px 55px #0005;
}

.card-kicker {
  font-size: 8px;
  letter-spacing: 2px;
}

.surprise-card h3 {
  margin-top: 20px;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
}

.surprise-card p {
  max-width: 280px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

/* DIYA */

.diya-button {
  position: relative;
  width: 170px;
  height: 145px;
  margin-top: 20px;
  border: 0;
  background: transparent;
}

.diya-glow {
  position: absolute;
  top: 4px;
  left: 50%;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #ffb43d00;
  filter: blur(25px);
  transform: translateX(-50%);
  transition: background 0.5s;
}

.diya-flame {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 50%;
  width: 23px;
  height: 42px;
  opacity: 0;
  border-radius: 80% 15% 75% 50%;
  background: linear-gradient(145deg, #fff5bb, #ffb22f 60%, #ff5b18);
  filter: drop-shadow(0 0 12px #ff9e25);
  transform: translateX(-50%) rotate(45deg) scale(0.4);
  transition: opacity 0.4s, transform 0.4s;
}

.diya-button.lit .diya-flame {
  opacity: 1;
  transform: translateX(-50%) rotate(45deg) scale(1);
  animation: flameDance 1.5s ease-in-out infinite;
}

.diya-button.lit .diya-glow {
  background: #ffb43d70;
  animation: diyaGlow 2s ease-in-out infinite;
}

.diya-bowl {
  position: absolute;
  bottom: 28px;
  left: 50%;
  width: 115px;
  height: 45px;
  border-radius: 15% 15% 55% 55%;
  background: linear-gradient(180deg, #f5c46e, #a85d1c 70%, #542c11);
  box-shadow: inset 0 5px 8px #ffe6ad75, 0 12px 15px #0006;
  transform: translateX(-50%);
}

.diya-base {
  position: absolute;
  bottom: 19px;
  left: 50%;
  width: 75px;
  height: 10px;
  border-radius: 50%;
  background: #7b431b;
  transform: translateX(-50%);
}

/* GIFT */

.gift-illustration {
  position: relative;
  width: 130px;
  height: 125px;
  margin-top: 24px;
  transition: transform 0.6s ease;
}

.gift-body {
  position: absolute;
  bottom: 0;
  left: 15px;
  width: 100px;
  height: 75px;
  border: 1px solid #e8bc687a;
  border-radius: 4px;
  background: linear-gradient(135deg, #9b3322, #5d170f);
  box-shadow: inset 0 0 20px #0003, 0 10px 20px #0005;
}

.gift-ribbon {
  position: absolute;
  top: 0;
  left: 42px;
  width: 16px;
  height: 100%;
  background: linear-gradient(90deg, #ffe4a0, #c48c37, #ffe4a0);
}

.gift-lid {
  position: absolute;
  z-index: 2;
  top: 35px;
  left: 8px;
  width: 114px;
  height: 20px;
  border: 1px solid #f5d18c;
  border-radius: 4px;
  background: linear-gradient(90deg, #e8bc68, #ffe6ad, #b77d2c);
  transform-origin: left bottom;
  transition: transform 0.65s cubic-bezier(.2,.7,.2,1);
}

.gift-bow {
  position: absolute;
  z-index: 3;
  top: 8px;
  left: 50%;
  width: 45px;
  height: 28px;
  border: 5px solid var(--gold-light);
  border-radius: 50% 50% 10% 50%;
  transform: translateX(-50%) rotate(-12deg);
  transition: transform 0.65s ease;
}

.gift-card.open .gift-illustration {
  transform: translateY(-5px);
}

.gift-card.open .gift-lid {
  transform: translate(-12px, -25px) rotate(-25deg);
}

.gift-card.open .gift-bow {
  transform: translate(-50%, -25px) rotate(-35deg);
}

.text-button {
  margin-top: 18px;
  padding: 12px 18px;
  border: 1px solid #a47b4070;
  border-radius: 50px;
  background: transparent;
  color: var(--gold-light);
  font-size: 10px;
  transition: background 0.3s, transform 0.3s;
}

.text-button:hover {
  transform: translateY(-3px);
  background: #e8bc6818;
}

.text-button span {
  margin-left: 10px;
  color: var(--gold);
}

/* COUNTDOWN */

.countdown-wrap {
  width: min(600px, 100%);
  margin-top: 85px;
  padding: 35px 20px;
  border-top: 1px solid #a47b4045;
  border-bottom: 1px solid #a47b4045;
}

.countdown-wrap h3 {
  margin: 13px 0 25px;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 35px;
  font-weight: 400;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.time-unit {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
}

.time-unit strong {
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.time-unit span {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 2px;
}

.fireworks-action {
  margin-top: 55px;
}

.fireworks-action p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 11px;
}

/* WISHES */

.wishes-section {
  min-height: 85vh;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 50%, #a06a1c1b, transparent 55%),
    #120c08;
}

.wishes-decoration {
  margin-bottom: 22px;
  color: var(--gold);
  font-size: 38px;
  animation: slowRotate 18s linear infinite;
}

.wishes-section .section-heading {
  margin-bottom: 20px;
}

.wish-message {
  max-width: 620px;
  padding: 30px 25px;
}

.wish-message p {
  margin: 15px 0;
  color: #c8b69c;
  font-family: var(--serif);
  font-size: clamp(18px, 2.5vw, 23px);
  line-height: 1.7;
}

.wish-divider {
  margin: 25px 0;
  color: var(--gold);
  font-size: 20px;
}

.wish-message h3 {
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 55px);
  font-weight: 500;
}

.wish-message > span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1px;
}

.hidden-note-button {
  margin-top: 15px;
}

.hidden-message {
  width: min(480px, 100%);
  margin-top: 22px;
  padding: 22px;
  border: 1px solid #a47b4050;
  border-radius: 10px;
  background: #20160d;
  animation: messageReveal 0.5s ease both;
}

.hidden-message p {
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.6;
}

/* FOOTER */

.site-footer {
  padding: 55px 20px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 12px;
  background: #0c0806;
  text-align: center;
}

.footer-star {
  color: var(--gold);
  font-size: 25px;
}

.site-footer p {
  color: var(--gold);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 3px;
}

.site-footer span {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 18px;
}

.site-footer small {
  margin-top: 18px;
  color: #75634c;
  font-size: 8px;
  letter-spacing: 2px;
}

/* LIGHTBOX */

.lightbox {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 70px 80px;
  background: #080604f2;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: min(100%, 1050px);
  max-height: 82vh;
  object-fit: contain;
  border: 1px solid #e8bc6850;
  box-shadow: 0 20px 70px #0009;
  transform: scale(0.95);
  transition: transform 0.4s;
}

.lightbox.open img {
  transform: scale(1);
}

.lightbox-close,
.lightbox-arrow {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid #e8bc6860;
  border-radius: 50%;
  background: #1d150e;
  color: var(--gold-light);
  transition: background 0.3s, transform 0.3s;
}

.lightbox-close:hover,
.lightbox-arrow:hover {
  background: var(--gold);
  color: var(--bg);
  transform: scale(1.08);
}

.lightbox-close {
  top: 25px;
  right: 30px;
  width: 45px;
  height: 45px;
  font-size: 26px;
}

.lightbox-arrow {
  top: 50%;
  width: 43px;
  height: 43px;
  font-size: 18px;
  transform: translateY(-50%);
}

.lightbox-arrow:hover {
  transform: translateY(-50%) scale(1.08);
}

.lightbox-prev {
  left: 25px;
}

.lightbox-next {
  right: 25px;
}

/* FIREWORKS CANVAS */

#fireworksCanvas {
  position: fixed;
  z-index: 80;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* RESPONSIVE */

@media (max-width: 800px) {
  .site-header {
    padding: 0 5%;
  }

  .main-nav {
    gap: 20px;
  }

  .nav-link {
    font-size: 9px;
  }

  .section {
    padding: 105px 6%;
  }
}

@media (max-width: 650px) {
  html {
    scroll-padding-top: 75px;
  }

  .site-header {
    height: 70px;
  }

  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 69px;
    right: 0;
    left: 0;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 10px 6% 18px;
    border-bottom: 1px solid #e8bc6830;
    background: #100b08f5;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  }

  .main-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-link {
    padding: 15px 0;
    border-bottom: 1px solid #ffffff0b;
    font-size: 10px;
  }

  .nav-link::after {
    display: none;
  }

  .hero {
    min-height: 92svh;
    padding-top: 120px;
  }

  .hero-bg {
    background-position: center;
  }

  .hero h1 {
    font-size: clamp(54px, 14vw, 78px);
  }

  .hero-description {
    max-width: 340px;
    font-size: 11px;
  }

  .hero-bottom-note {
    display: none;
  }

  .hero-corner {
    width: 25px;
    height: 25px;
  }

  .section {
    min-height: auto;
    padding: 90px 6%;
  }

  .section-heading {
    margin-bottom: 38px;
  }

  .section-heading h2 {
    font-size: 46px;
  }

  .gallery-frame {
    aspect-ratio: 4 / 5;
  }

  .gallery-item img {
    object-fit: cover;
  }

  .gallery-caption {
    right: 15px;
    bottom: 17px;
    left: 15px;
  }

  .music-card {
    padding: 22px;
  }

  .album-art {
    height: 145px;
  }

  .surprise-grid {
    grid-template-columns: 1fr;
    max-width: 390px;
  }

  .surprise-card {
    min-height: 310px;
  }

  .countdown-wrap {
    margin-top: 65px;
  }

  .countdown {
    gap: 8px;
  }

  .time-unit span {
    font-size: 7px;
    letter-spacing: 1px;
  }

  .lightbox {
    padding: 70px 15px;
  }

  .lightbox img {
    max-width: 100%;
    max-height: 75vh;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }

  .lightbox-arrow {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 52px;
  }

  .section-heading h2 {
    font-size: 39px;
  }

  .music-card {
    padding: 18px;
  }

  .countdown {
    gap: 4px;
  }
}

/* REDUCED MOTION ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ANIMATIONS */

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

@keyframes heroZoom {
  from { transform: scale(1.04); }
  to { transform: scale(1.12); }
}

@keyframes starDrift {
  from { background-position: 0 0; }
  to { background-position: 300px 300px; }
}

@keyframes emblemGlow {
  0%, 100% { box-shadow: 0 0 20px #e8bc6815, inset 0 0 15px #e8bc6808; }
  50% { box-shadow: 0 0 40px #e8bc6840, inset 0 0 20px #e8bc6820; }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.8); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

@keyframes slowRotate {
  to { transform: rotate(360deg); }
}

@keyframes musicFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes sparkle {
  0%, 100% { opacity: 0.4; transform: scale(0.8) rotate(0); }
  50% { opacity: 1; transform: scale(1.2) rotate(35deg); }
}

@keyframes flameDance {
  0%, 100% { transform: translateX(-50%) rotate(45deg) scale(1); }
  50% { transform: translateX(-50%) rotate(40deg) scale(0.92, 1.08); }
}

@keyframes diyaGlow {
  0%, 100% { opacity: 0.65; transform: translateX(-50%) scale(0.9); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.15); }
}

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