* { box-sizing: border-box; }

:root {
  --pink: #f7dce7;
  --pink-deep: #9b5366;
  --red-soft: #b64355;
  --rose: #c8869b;
  --white: #fffdfd;
  --cream: #fff7fa;
  --text: #5f3b46;
  --gold: #c9a268;
  --shadow: 0 22px 60px rgba(155, 83, 102, 0.20);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Cairo", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.95), transparent 36%),
    radial-gradient(circle at bottom right, rgba(247,220,231,.9), transparent 42%),
    linear-gradient(135deg, #fff 0%, #fff7fa 42%, #f7dce7 74%, #fff 100%);
  display: flex;
  justify-content: center;
  padding: 64px 14px 28px;
  overflow-x: hidden;
}

.opening {
  position: fixed;
  inset: 0;
  z-index: 50;
  background:
    radial-gradient(circle, rgba(255,255,255,.96), rgba(255,247,250,.94)),
    linear-gradient(135deg, #fff, #f7dce7);
  display: grid;
  place-items: center;
  transition: opacity .8s ease, visibility .8s ease;
}

.opening.hide {
  opacity: 0;
  visibility: hidden;
}

.opening-card {
  width: min(88%, 430px);
  padding: 42px 24px;
  text-align: center;
  border-radius: 34px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(201,162,104,.35);
  box-shadow: var(--shadow);
}

.you-are {
  font-family: "Parisienne", cursive;
  font-size: 44px;
  color: var(--red-soft);
  margin: 16px 0 8px;
}

.opening-card h1 {
  font-family: "Aref Ruqaa", serif;
  color: var(--pink-deep);
  font-size: 44px;
  margin: 10px 0 28px;
}

.opening-card button {
  border: 0;
  border-radius: 999px;
  padding: 15px 28px;
  color: white;
  background: linear-gradient(135deg, var(--red-soft), var(--rose));
  font-family: "Cairo", sans-serif;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(182,67,85,.22);
}

.mini-lights {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.mini-lights i,
.string-lights span {
  width: 11px;
  height: 18px;
  border-radius: 0 0 12px 12px;
  background: #ffd98f;
  box-shadow: 0 0 18px #ffd98f;
  animation: glow 2.2s infinite ease-in-out;
}

.mini-lights i:nth-child(even),
.string-lights span:nth-child(even) { animation-delay: .8s; }

@keyframes glow {
  0%, 100% { opacity: .45; filter: blur(.1px); }
  50% { opacity: 1; filter: blur(0); }
}

.curtain {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 90px;
  z-index: 4;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,247,250,.22), transparent),
    repeating-radial-gradient(ellipse at top, rgba(247,220,231,.5) 0 20px, rgba(255,255,255,.14) 20px 38px);
  filter: blur(.2px);
}

.string-lights {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 5;
  pointer-events: none;
  display: flex;
  justify-content: center;
  gap: min(7vw, 42px);
}

.string-lights::before {
  content: "";
  position: absolute;
  top: -3px;
  width: min(92%, 560px);
  height: 34px;
  border-top: 1px solid rgba(155,83,102,.25);
  border-radius: 50%;
}

.falling-petals span {
  position: fixed;
  top: -40px;
  z-index: 2;
  font-size: 22px;
  opacity: .55;
  animation: fall 11s infinite linear;
  pointer-events: none;
}

.falling-petals span:nth-child(1){ left: 8%; animation-delay: 0s; }
.falling-petals span:nth-child(2){ left: 22%; animation-delay: 2s; }
.falling-petals span:nth-child(3){ left: 41%; animation-delay: 4s; }
.falling-petals span:nth-child(4){ left: 62%; animation-delay: 1.2s; }
.falling-petals span:nth-child(5){ left: 78%; animation-delay: 5s; }
.falling-petals span:nth-child(6){ left: 92%; animation-delay: 3s; }

@keyframes fall {
  0% { transform: translateY(-40px) rotate(0deg); }
  100% { transform: translateY(115vh) rotate(280deg); }
}

.invite {
  width: min(100%, 550px);
  display: grid;
  gap: 18px;
  position: relative;
  z-index: 3;
}

.card {
  position: relative;
  background: rgba(255, 253, 253, 0.88);
  border: 1px solid rgba(201, 162, 104, 0.30);
  border-radius: 34px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  padding: 30px 22px;
  text-align: center;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(155, 83, 102, .12);
  border-radius: 27px;
  pointer-events: none;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}

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

.hero {
  padding: 42px 24px 38px;
  min-height: 740px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ornament { color: var(--gold); font-size: 32px; line-height: 1; }
.ornament.top { margin-bottom: 14px; }

.eyebrow {
  margin: 0 0 14px;
  font-family: "Aref Ruqaa", serif;
  font-size: 21px;
  color: var(--pink-deep);
}

.intro {
  margin: 0 auto 16px;
  max-width: 350px;
  font-size: 17px;
  line-height: 1.9;
}

.kosha {
  width: min(90%, 395px);
  margin: 0 auto 12px;
  position: relative;
  min-height: 355px;
  display: grid;
  place-items: end center;
}

.arch {
  position: absolute;
  width: 92%;
  height: 92%;
  bottom: 0;
  border: 2px solid rgba(201,162,104,.58);
  border-bottom: 0;
  border-radius: 190px 190px 0 0;
  background:
    radial-gradient(circle at center, rgba(255,255,255,.7), rgba(247,220,231,.55), rgba(182,67,85,.10));
  box-shadow: inset 0 0 50px rgba(255,255,255,.7), 0 18px 50px rgba(182,67,85,.15);
}

.flower {
  position: absolute;
  z-index: 3;
  font-size: 34px;
  filter: drop-shadow(0 8px 12px rgba(95,59,70,.2));
}

.flower.left { left: 4px; bottom: 68px; transform: rotate(-18deg); }
.flower.right { right: 2px; bottom: 106px; transform: rotate(15deg); }
.flower.bottom { bottom: 4px; font-size: 42px; }

.couple-art {
  position: relative;
  width: 100%;
  max-height: 370px;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 16px 22px rgba(95, 59, 70, .17));
  z-index: 2;
}

.names {
  display: grid;
  gap: 0;
  margin: 8px 0 18px;
}

.names h1 {
  margin: 0;
  font-family: "Aref Ruqaa", serif;
  font-size: clamp(58px, 17vw, 88px);
  line-height: 1.02;
  font-weight: 700;
  color: var(--pink-deep);
  text-shadow: 0 8px 26px rgba(155, 83, 102, 0.14);
}

.rings {
  width: 64px;
  height: 34px;
  margin: 2px auto;
  position: relative;
  animation: sparkle 3.5s infinite ease-in-out;
}

.rings span {
  position: absolute;
  width: 34px;
  height: 34px;
  border: 4px solid var(--gold);
  border-radius: 50%;
  top: 0;
  box-shadow: 0 0 14px rgba(201,162,104,.25);
}

.rings span:first-child { left: 7px; }
.rings span:last-child { right: 7px; }

@keyframes sparkle {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.35); }
}

.date, .time {
  margin: 8px 0 0;
  font-size: 20px;
  font-weight: 700;
}

.time { color: var(--red-soft); font-size: 18px; }

.countdown h2,
.details h2,
.gallery h2 {
  margin: 0 0 20px;
  font-family: "Aref Ruqaa", serif;
  color: var(--pink-deep);
  font-size: 32px;
}

.gallery {
  background:
    linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,247,250,.9)),
    radial-gradient(circle at center, rgba(182,67,85,.12), transparent 65%);
}

.soft-frame {
  width: min(90%, 400px);
  margin: 0 auto 14px;
  min-height: 360px;
  display: grid;
  place-items: end center;
  border-radius: 32px;
  background:
    radial-gradient(circle, rgba(255,255,255,.96) 0%, rgba(247,220,231,.72) 58%, rgba(182,67,85,.12) 100%);
  border: 1px solid rgba(201,162,104,.28);
  overflow: hidden;
  position: relative;
}

.frame-lights {
  position: absolute;
  top: 15px;
  left: 12%;
  right: 12%;
  height: 30px;
  border-top: 1px solid rgba(201,162,104,.45);
  border-radius: 50%;
}

.soft-frame img {
  width: 112%;
  max-height: 425px;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 18px 24px rgba(95, 59, 70, .16));
}

.gallery p {
  margin: 0;
  color: #7b5660;
  font-size: 16px;
}

.candles {
  font-size: 25px;
  margin-bottom: 6px;
  opacity: .85;
}

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

.timer div {
  border-radius: 22px;
  padding: 14px 6px 12px;
  background:
    radial-gradient(circle at top, rgba(255,255,255,.95), rgba(255,240,245,.95)),
    linear-gradient(180deg, #fff 0%, #fff0f5 100%);
  border: 1px solid rgba(201, 162, 104, .22);
}

.timer strong {
  display: block;
  font-size: 28px;
  color: var(--pink-deep);
  line-height: 1;
}

.timer small {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #85616b;
}

.venue {
  font-family: "Aref Ruqaa", serif;
  font-size: 34px;
  color: var(--pink-deep);
  margin: 0 0 6px;
}

.details p { margin: 7px 0; line-height: 1.8; }

.qr-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.qr-stage span {
  font-size: 28px;
  filter: drop-shadow(0 6px 8px rgba(95,59,70,.16));
}

.qr {
  width: 168px;
  height: 168px;
  object-fit: contain;
  margin: 22px 0 6px;
  padding: 10px;
  border-radius: 22px;
  background: var(--cream);
  border: 1px solid rgba(201, 162, 104, .32);
}

.qr-caption { font-size: 13px; color: #8a6972; }

.buttons {
  display: grid;
  gap: 11px;
  margin-top: 22px;
}

.btn {
  display: block;
  text-decoration: none;
  color: var(--pink-deep);
  background: #fff;
  border: 1px solid rgba(155, 83, 102, .25);
  border-radius: 999px;
  padding: 14px 16px;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 35%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-18deg);
  animation: shine 4s infinite;
}

@keyframes shine {
  0%, 55% { left: -60%; }
  100% { left: 130%; }
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(155, 83, 102, .14);
}

.btn.primary {
  background: linear-gradient(135deg, var(--red-soft), var(--rose));
  color: white;
  border: 0;
}

.btn.light { background: #fff7fa; }

.finale {
  padding: 34px 18px;
  background:
    radial-gradient(circle at top, rgba(255,255,255,.9), rgba(255,247,250,.9)),
    linear-gradient(180deg, #fff, #f7dce7);
}

.stars {
  color: var(--gold);
  font-size: 30px;
  animation: sparkle 3s infinite;
}

.english {
  font-family: "Parisienne", cursive;
  color: var(--red-soft);
  font-size: 34px;
  margin: 12px 0 8px;
}

.arabic {
  margin: 0 0 8px;
  font-family: "Aref Ruqaa", serif;
  color: var(--pink-deep);
  font-size: 29px;
}

.finale span {
  color: var(--gold);
  letter-spacing: 1.5px;
}

@media (max-width: 390px) {
  body { padding-top: 58px; }
  .hero { min-height: 720px; }
  .kosha { min-height: 330px; width: 96%; }
  .soft-frame { min-height: 330px; }
  .timer { gap: 7px; }
  .timer strong { font-size: 23px; }
  .timer small { font-size: 11px; }
  .english { font-size: 29px; }
}
