:root {
  --bg: #f7f3ed;
  --bg-warm: #f2ebe2;
  --ink: #223332;
  --ink-soft: #4a5d5a;
  --sage: #7d9a8e;
  --sage-deep: #5e796f;
  --mint: #c5d7cd;
  --gold: #c7a46a;
  --gold-soft: #e8d3b1;
  --silver: #d3d9de;
  --line: rgba(34, 51, 50, 0.14);
  --shadow: 0 32px 70px rgba(34, 51, 50, 0.14);
  --shadow-soft: 0 16px 40px rgba(34, 51, 50, 0.1);
  --radius: 24px;
  --serif: "Cormorant Garamond", serif;
  --sans: "Manrope", sans-serif;
  --arabic: "Amiri", serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  background:
    radial-gradient(circle at 10% 10%, rgba(199, 164, 106, 0.15), transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(125, 154, 142, 0.2), transparent 40%),
    radial-gradient(circle at 30% 85%, rgba(197, 215, 205, 0.4), transparent 42%),
    linear-gradient(145deg, var(--bg) 0%, var(--bg-warm) 55%, #e7efe7 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

.atmosphere,
.pattern {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.pattern {
  background-image: url("img/pattern.svg");
  background-size: 240px 240px;
  opacity: 0.18;
  mix-blend-mode: multiply;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(0.5px);
  opacity: 0.7;
  animation: float 16s ease-in-out infinite;
}

.orb--sage {
  width: 280px;
  height: 280px;
  top: -80px;
  left: 6%;
  background: radial-gradient(circle at 30% 30%, #dfe9e2, var(--sage) 65%, transparent 70%);
  animation-delay: -4s;
}

.orb--mint {
  width: 240px;
  height: 240px;
  bottom: 12%;
  left: -60px;
  background: radial-gradient(circle at 40% 40%, #ffffff, var(--mint) 70%, transparent 75%);
  animation-delay: -8s;
}

.orb--gold {
  width: 320px;
  height: 320px;
  top: -40px;
  right: 6%;
  background: radial-gradient(circle at 30% 30%, #fff1d6, var(--gold) 65%, transparent 72%);
  animation-delay: -2s;
}

.orb--cream {
  width: 220px;
  height: 220px;
  bottom: 8%;
  right: -40px;
  background: radial-gradient(circle at 35% 35%, #ffffff, #efe7dc 70%, transparent 75%);
  animation-delay: -12s;
}

.page {
  position: relative;
  z-index: 2;
  max-width: 1160px;
  margin: 0 auto;
  padding: 48px 6vw 90px;
}

.sakura-layer {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: multiply;
}

.lottie-sakura {
  width: 100%;
  height: 100%;
}


.page::before,
.page::after {
  content: "";
  position: absolute;
  width: min(320px, 48vw);
  height: min(320px, 48vw);
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.6;
  pointer-events: none;
  z-index: -1;
}

.page::before {
  top: -80px;
  left: -80px;
  background-image: url("img/floral-left.svg");
  transform: rotate(-4deg);
}

.page::after {
  bottom: -90px;
  right: -70px;
  background-image: url("img/floral-right.svg");
  opacity: 0.55;
  transform: rotate(6deg);
}

.minaret {
    position: absolute;
    right: -300px;
    /* top: 140px; */
    width: clamp(260px, 40vw, 500px);
    opacity: 0.5;
    filter: drop-shadow(0 18px 30px rgba(34, 51, 50, 0.18));
    pointer-events: none;
    z-index: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
}

.pill {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(34, 51, 50, 0.16);
  background: rgba(255, 255, 255, 0.78);
}

.pill--soft {
  border-color: rgba(199, 164, 106, 0.4);
  background: rgba(244, 235, 224, 0.7);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.18em;
}

.lang-switch a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
}

.lang-switch a.is-active {
  color: var(--ink);
}

.bismillah {
  font-family: var(--arabic);
  font-size: clamp(22px, 3vw, 36px);
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.floral-lottie {
  display: flex;
  justify-content: center;
  margin: 0 0 22px;
  pointer-events: none;
}

.lottie-floral {
  width: min(520px, 90vw);
  height: 160px;
  opacity: 0.75;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.hero-copy h1 {
  font-family: var(--serif);
  font-size: clamp(44px, 6vw, 86px);
  line-height: 0.95;
  margin: 12px 0 16px;
  letter-spacing: 0.02em;
}

.amp {
  font-weight: 400;
  color: var(--sage-deep);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  color: var(--sage-deep);
  font-weight: 600;
  margin: 0;
}

.invite {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 24px;
}

.arabic {
  font-family: var(--arabic);
  font-size: 1.1em;
  letter-spacing: 0.04em;
}

.arabic.inline {
  display: inline-block;
  margin-left: 8px;
  color: var(--sage-deep);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.detail-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detail-card--wide {
  grid-column: 1 / -1;
}

.label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--sage-deep);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.value {
  font-family: var(--serif);
  font-size: 22px;
}

.subvalue {
  font-size: 15px;
  color: var(--ink-soft);
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

.icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--sage-deep);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.7;
}

.countdown {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.countdown-item {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 10px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 4px;
}

.countdown-value {
  font-family: var(--serif);
  font-size: 22px;
}

.countdown-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.button {
  border: none;
  background: var(--sage-deep);
  color: #fefdfb;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 12px;
  padding: 12px 18px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 14px 30px rgba(94, 121, 111, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(94, 121, 111, 0.3);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--sage-deep);
  border: 1px solid rgba(94, 121, 111, 0.3);
  box-shadow: none;
}

.button:focus-visible {
  outline: 2px solid rgba(94, 121, 111, 0.5);
  outline-offset: 3px;
}

.button:disabled {
  cursor: default;
  opacity: 0.6;
  transform: none;
  box-shadow: none;
}

.hero-visual {
  display: none;
}

.hero-visual::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -20px;
  width: 220px;
  height: 220px;
  background-image: url("img/sakura.webp");
  background-size: cover;
  background-position: center;
  border-radius: 999px;
  opacity: 0.35;
  filter: blur(2px);
  z-index: 0;
}

.hero-visual > * {
  position: relative;
  z-index: 1;
}

.rings-frame {
  width: min(380px, 100%);
  background: rgba(255, 255, 255, 0.78);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 16px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  animation: float 10s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rings-frame::before {
  content: "";
  position: absolute;
  inset: -35%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.65), transparent 60%);
  opacity: 0.35;
  animation: halo 8s ease-in-out infinite;
  pointer-events: none;
}

.rings-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.4), transparent 45%);
  background-size: 200% 200%;
  opacity: 0.4;
  pointer-events: none;
  animation: sheen 6s ease-in-out infinite;
}

.rings-photo {
  width: 70%;
  max-width: 320px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 18px;
  filter: drop-shadow(0 18px 24px rgba(59, 46, 32, 0.25));
  animation: ring-drift 12s ease-in-out infinite;
}

.mini-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: min(360px, 100%);
}

.mini-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mini-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--sage-deep);
  font-weight: 600;
}

.mini-text {
  font-size: 14px;
  color: var(--ink-soft);
}

.section-title {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.section-title h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 32px;
}

.section-title span {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--sage-deep);
}

.dua,
.verse {
  margin: 56px 0 34px;
}

.dua-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 30px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 14px;
}

.dua-arabic {
  font-size: clamp(18px, 2.4vw, 26px);
  color: var(--sage-deep);
}

.dua-translation {
  margin: 0;
  font-size: 17px;
  color: var(--ink-soft);
}

.verse {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.ornament {
  height: 1px;
  width: 100%;
  margin: 0 0 18px;
  background: linear-gradient(90deg, transparent, rgba(94, 121, 111, 0.35), transparent);
  position: relative;
}

.ornament::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border: 1px solid rgba(199, 164, 106, 0.6);
  transform: translate(-50%, -50%) rotate(45deg);
  background: rgba(255, 255, 255, 0.6);
}

.verse blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.6;
  position: relative;
  padding-left: 18px;
}

.verse blockquote::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  width: 3px;
  height: calc(100% - 12px);
  background: linear-gradient(180deg, var(--gold), transparent);
  border-radius: 999px;
}

.verse p {
  margin: 0 0 14px;
}

.verse p:last-child {
  margin-bottom: 0;
}

.arabic-line {
  font-size: 18px;
  color: var(--sage-deep);
}

.closing {
  margin-top: 50px;
  text-align: center;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--sage-deep);
}

.easter-egg {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 5;
  pointer-events: none;
}

.easter-egg-trigger {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(94, 121, 111, 0.35);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.7), rgba(199, 164, 106, 0.4));
  opacity: 0.08;
  cursor: pointer;
  pointer-events: auto;
}

.easter-egg-trigger:hover {
  opacity: 0.3;
}

.easter-egg-popup {
  position: fixed;
  bottom: 64px;
  left: 20px;
  width: min(220px, 70vw);
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(8px) scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.easter-egg-popup img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.easter-egg-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  box-shadow: 0 6px 12px rgba(34, 51, 50, 0.12);
}

.easter-egg.is-open .easter-egg-popup {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

@keyframes sheen {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes halo {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  50% {
    transform: translateY(-8px);
    opacity: 0.7;
  }
}

@keyframes ring-drift {
  0%,
  100% {
    transform: translateY(0) rotate(0.2deg);
  }
  50% {
    transform: translateY(-6px) rotate(-0.6deg);
  }
}

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

  .hero-visual {
    order: -1;
    margin-top: 0;
  }
}

@media (max-width: 720px) {
  .page {
    padding: 36px 6vw 64px;
  }

  .sakura-layer {
    opacity: 0.12;
  }

  .page::before,
  .page::after {
    width: min(240px, 58vw);
    height: min(240px, 58vw);
    opacity: 0.35;
  }

  .minaret {
    width: clamp(120px, 34vw, 200px);
    right: -30px;
    top: 90px;
    opacity: 0.35;
  }

  .floral-lottie {
    margin: 0 0 14px;
  }

  .lottie-floral {
    height: 84px;
  }

  .hero-visual::before {
    width: 130px;
    height: 130px;
    top: -24px;
    right: -6px;
    opacity: 0.28;
  }

  .hero-grid {
    gap: 18px;
    align-items: stretch;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .topbar {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .pill {
    font-size: 10px;
    letter-spacing: 0.16em;
    padding: 7px 12px;
  }

  .lang-switch {
    align-self: center;
    font-size: 11px;
  }

  .bismillah {
    font-size: 17px;
    margin-bottom: 8px;
    text-align: center;
  }

  .hero-copy h1 {
    font-size: clamp(34px, 9.8vw, 52px);
    text-align: center;
  }

  .invite {
    font-size: 14px;
    text-align: center;
  }

  .detail-card {
    padding: 12px 14px;
    text-align: center;
  }

  .detail-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .button {
    width: 100%;
    font-size: 11px;
    padding: 11px 14px;
  }

  .countdown {
    margin-top: 12px;
  }

  .countdown-grid {
    gap: 8px;
  }

  .countdown-item {
    padding: 10px 8px;
  }

  .countdown-value {
    font-size: 20px;
  }

  .countdown-label {
    font-size: 10px;
    letter-spacing: 0.14em;
  }

  .rings-frame {
    width: 100%;
    padding: 10px 12px;
    box-shadow: 0 12px 24px rgba(34, 51, 50, 0.12);
  }

  .rings-photo {
    max-width: 230px;
    border-radius: 14px;
    transform: translateY(0);
  }

  .mini-cards {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .mini-card {
    padding: 9px 10px;
  }

  .mini-card {
    text-align: center;
  }

  .section-title {
    text-align: center;
  }

  .dua-card,
  .verse {
    padding: 18px 16px;
  }

  .verse {
    padding: 18px 16px;
  }

  .easter-egg {
    bottom: 14px;
    left: 14px;
  }

  .easter-egg-popup {
    bottom: 58px;
    left: 14px;
  }
}

@media (max-width: 480px) {
  .page {
    padding: 30px 6vw 56px;
  }

  .minaret {
    width: clamp(110px, 48vw, 180px);
    right: -26px;
    top: 80px;
  }

  .hero-grid {
    gap: 16px;
  }

  .detail-actions {
    gap: 7px;
  }

  .rings-frame {
    padding: 10px 12px;
  }

  .rings-photo {
    max-width: 210px;
    border-radius: 12px;
  }

  .eyebrow {
    font-size: 9px;
  }

  .value {
    font-size: 18px;
  }

  .countdown-value {
    font-size: 18px;
  }

  .countdown-grid {
    gap: 8px;
  }

  .countdown-item {
    padding: 10px 8px;
  }

  .verse blockquote {
    font-size: 16px;
  }

  .section-title h2 {
    font-size: 22px;
  }
}

@media (max-width: 380px) {
  .pill {
    font-size: 9px;
  }

  .hero-copy h1 {
    font-size: clamp(30px, 11vw, 46px);
  }

  .invite {
    font-size: 13px;
  }

  .button {
    font-size: 10px;
    padding: 10px 12px;
  }

  .detail-card {
    padding: 11px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sakura-layer,
  .floral-lottie {
    display: none;
  }

  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
