:root {
  --rose: #c98483;
  --blush: #f6dbe2;
  --lotus: #ec7fa2;
  --deep-lotus: #c34f77;
  --sage: #cbd39a;
  --mint: #91b7a7;
  --emerald: #08724f;
  --deep-emerald: #064432;
  --champagne: #e8d8ab;
  --gold: #c99d3f;
  --soft-gold: #f3df9f;
  --ivory: #fffaf0;
  --marble: #fff7ea;
  --copper: #a56a45;
  --ink: #2b2420;
  --muted: #6e625c;
  --shadow: 0 30px 90px rgba(71, 45, 35, 0.18);
  --card: rgba(255, 250, 240, 0.9);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  color: var(--ink);
  line-height: 1.72;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% 10%, rgba(236, 127, 162, 0.12), transparent 28rem),
    radial-gradient(circle at 85% 15%, rgba(201, 157, 63, 0.15), transparent 26rem),
    radial-gradient(circle at 80% 90%, rgba(8, 114, 79, 0.14), transparent 30rem),
    linear-gradient(135deg, #fffaf0 0%, #f7e6d9 34%, #f5dfe4 58%, #e8edcc 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.075;
  background-image:
    radial-gradient(circle at center, var(--gold) 1.2px, transparent 1.6px),
    linear-gradient(45deg, var(--gold) 12.5%, transparent 12.5%, transparent 50%, var(--gold) 50%, var(--gold) 62.5%, transparent 62.5%);
  background-size: 28px 28px, 52px 52px;
}

img,
iframe {
  max-width: 100%;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 1rem;
  z-index: 2000;
  padding: 0.7rem 1rem;
  color: var(--ink);
  background: var(--soft-gold);
}

.skip-link:focus {
  top: 1rem;
}

/* Invitation landing screen */
.invitation-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1rem;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 250, 240, 0.22), rgba(255, 250, 240, 0.28)),
    url("./images/palace.jpg") center/cover;
  transition: opacity 850ms ease, visibility 850ms ease;
}

.invitation-gate.hidden {
  opacity: 0;
  visibility: hidden;
}

.gate-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(236, 127, 162, 0.08), transparent 24rem),
    radial-gradient(circle at 82% 74%, rgba(8, 114, 79, 0.08), transparent 30rem),
    linear-gradient(135deg, rgba(255, 250, 240, 0.06), rgba(246, 219, 226, 0.08), rgba(203, 211, 154, 0.06));
  pointer-events: none;
}

.floating-petals,
.floating-petals::before,
.floating-petals::after {
  display: none;
}

.gate-card {
  position: relative;
  z-index: 2;
  width: min(790px, 96vw);
  min-height: 720px;
  display: grid;
  place-items: center;
}

.gate-arch {
  position: relative;
  width: min(620px, 92vw);
  min-height: 690px;
  padding: 1.2rem;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.93), rgba(248, 232, 218, 0.88)),
    radial-gradient(circle at top, rgba(243, 223, 159, 0.5), transparent 24rem);
  border: 1px solid rgba(201, 157, 63, 0.75);
  border-radius: 310px 310px 36px 36px;
  box-shadow:
    0 48px 130px rgba(71, 45, 35, 0.28),
    inset 0 0 70px rgba(255, 255, 255, 0.65);
}

.gate-arch::before {
  content: "";
  position: absolute;
  inset: 20px;
  border: 2px solid rgba(201, 157, 63, 0.55);
  border-radius: 285px 285px 28px 28px;
  pointer-events: none;
}

.gate-arch::after {
  content: "";
  position: absolute;
  inset: 38px;
  border: 1px solid rgba(8, 114, 79, 0.22);
  border-radius: 260px 260px 22px 22px;
  pointer-events: none;
}

.gate-content {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 620px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  padding: 3.5rem 2.2rem 2.2rem;
}

.gate-emblem {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  margin-bottom: 1.2rem;
  border-radius: 50%;
  color: var(--gold);
  border: 1px solid rgba(201, 157, 63, 0.6);
  background: radial-gradient(circle, rgba(243, 223, 159, 0.42), transparent 70%);
  box-shadow: 0 0 45px rgba(201, 157, 63, 0.18);
}

.small-label {
  margin: 0 0 1.1rem;
  color: var(--emerald);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 800;
}

.small-label.light {
  color: var(--soft-gold);
}

.gate-content h1,
.hero-title,
.footer-names {
  font-family: "Great Vibes", cursive;
  font-weight: 400;
  letter-spacing: 0;
}

.gate-content h1 {
  margin: 0;
  max-width: 560px;
  color: var(--deep-emerald);
  font-size: clamp(3.2rem, 7.4vw, 6.4rem);
  line-height: 0.98;
  text-shadow:
    0 2px 0 rgba(255,255,255,0.82),
    0 8px 25px rgba(0,0,0,0.13);
}

.hashtag {
  margin: 1.5rem 0 1rem;
  color: var(--deep-lotus);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-style: italic;
  font-weight: 700;
}

.gate-meta {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  color: var(--copper);
  font-weight: 700;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 60;
  border-bottom: 1px solid rgba(201, 157, 63, 0.38);
  backdrop-filter: blur(16px);
  background: rgba(255, 250, 240, 0.88);
}

.nav {
  width: min(1180px, calc(100% - 2rem));
  min-height: 76px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  text-decoration: none;
  color: var(--deep-emerald);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  border: 1px solid rgba(201, 157, 63, 0.7);
  padding: 0.35rem 0.75rem;
  background: rgba(243, 223, 159, 0.16);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--deep-lotus);
}

.nav-cta {
  color: var(--deep-emerald) !important;
  border: 1px solid rgba(201, 157, 63, 0.75);
  border-radius: 999px;
  padding: 0.55rem 1rem;
}

.menu-toggle {
  display: none;
  color: var(--deep-emerald);
  background: transparent;
  border: 1px solid rgba(201, 157, 63, 0.75);
  font-size: 1.4rem;
  padding: 0.25rem 0.6rem;
}

.section {
  padding: 6.8rem 1rem;
}

/* Main hero */
.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  text-align: center;
  color: var(--ivory);
  background:
    linear-gradient(rgba(35, 55, 44, 0.42), rgba(94, 61, 47, 0.38)),
    url("./images/hero-palace.jpg")
    center 9%/cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 38%, rgba(243, 223, 159, 0.16), transparent 22rem),
    linear-gradient(to bottom, rgba(255, 250, 240, 0.1), rgba(6, 68, 50, 0.32));
}

/* Removed main hero arch so the couple photo is not obstructed */
.hero-arch,
.hero-arch::before {
  display: none !important;
}

.hero-light {
  position: absolute;
  width: 680px;
  height: 680px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 223, 159, 0.18), transparent 64%);
  animation: glowPulse 6s ease-in-out infinite;
}

.gold-particles::before,
.gold-particles::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(243, 223, 159, 0.8) 1px, transparent 2px);
  background-size: 90px 90px;
  opacity: 0.3;
  animation: particlesRise 24s linear infinite;
}

.gold-particles::after {
  background-size: 145px 145px;
  opacity: 0.22;
  animation-duration: 34s;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1050px, 100%);
  padding: 2rem;
  transform: translateY(-60px);
}

.hero-title {
  margin: 0;
  color: var(--ivory);
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: 0.86;
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.36);
}

.hero-title span {
  color: var(--soft-gold);
}

.hero-subtitle {
  max-width: 720px;
  margin: 1.5rem auto;
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  font-weight: 400;
}

.wedding-date {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 1.8rem;
}

.wedding-date span {
  padding: 0.65rem 1rem;
  border: 1px solid rgba(243, 223, 159, 0.62);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.1);
  backdrop-filter: blur(10px);
  color: var(--soft-gold);
  font-weight: 700;
}

.countdown {
  width: min(680px, 100%);
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.countdown div {
  padding: 1rem 0.7rem;
  border: 1px solid rgba(243, 223, 159, 0.5);
  border-radius: 24px;
  background: rgba(255, 250, 240, 0.12);
  backdrop-filter: blur(12px);
}

.countdown strong {
  display: block;
  color: var(--soft-gold);
  font-size: clamp(1.45rem, 4vw, 2.35rem);
}

.countdown span {
  display: block;
  color: var(--ivory);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.85rem 1.45rem;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.primary-btn {
  border: 0;
  color: var(--ink);
  background: linear-gradient(135deg, var(--soft-gold), var(--gold), #f8e7b1);
  box-shadow: 0 18px 38px rgba(121, 76, 45, 0.2);
}

.secondary-btn {
  color: var(--ivory);
  border: 1px solid rgba(243, 223, 159, 0.72);
  background: rgba(6, 68, 50, 0.26);
}

.secondary-btn.dark {
  color: var(--deep-emerald);
  background: rgba(243, 223, 159, 0.16);
}

.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 50px rgba(71, 45, 35, 0.18);
}

.section-heading {
  max-width: 850px;
  margin: 0 auto 3.2rem;
  text-align: center;
}

.section-heading h2,
h2,
h3 {
  font-family: "Cormorant Garamond", serif;
}

.section-heading h2,
h2 {
  margin: 0 0 1rem;
  color: var(--deep-emerald);
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.section-heading p {
  color: var(--muted);
}

h3 {
  margin: 0 0 0.7rem;
  color: var(--deep-emerald);
  font-size: 1.7rem;
  font-weight: 700;
}

.couple-grid,
.venue-grid,
.info-grid {
  width: min(1140px, 100%);
  margin: auto;
  display: grid;
  gap: 1.4rem;
}

.couple-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lux-card,
.rsvp-form,
.event-card {
  position: relative;
  overflow: hidden;
  padding: 2.2rem;
  border: 1px solid rgba(201, 157, 63, 0.5);
  border-radius: 32px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.lux-card::before,
.rsvp-form::before,
.event-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(201, 157, 63, 0.26);
  border-radius: 24px;
  pointer-events: none;
}

.couple-card::after,
.event-card::after,
.info-card::after {
  content: "✦";
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  color: rgba(201, 157, 63, 0.6);
}

/* Centered initials */
.portrait {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  border: 2px solid rgba(201, 157, 63, 0.75);
  border-radius: 50%;
  color: var(--ivory);
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 4.8rem;
  font-weight: 400;
  line-height: 1;
  transform: translateY(4px);
  background: linear-gradient(135deg, var(--rose), var(--emerald));
  box-shadow: inset 0 0 40px rgba(255,255,255,0.15), 0 20px 40px rgba(71,45,35,0.18);
}

.story-section {
  background:
    radial-gradient(circle at 15% 20%, rgba(236, 127, 162, 0.1), transparent 24rem),
    radial-gradient(circle at 80% 80%, rgba(8, 114, 79, 0.1), transparent 25rem),
    linear-gradient(135deg, rgba(255,250,240,0.65), rgba(232,237,204,0.56));
}

.story-layout {
  width: min(1040px, 100%);
  margin: auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.4rem;
}

.story-card {
  font-size: 1.08rem;
}

.story-timeline {
  display: grid;
  gap: 0.9rem;
}

.story-timeline div {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(201, 157, 63, 0.38);
  border-radius: 22px;
  background: rgba(255, 250, 240, 0.82);
}

.story-timeline span {
  color: var(--rose);
  font-size: 1.25rem;
  font-weight: 800;
}

.story-timeline p {
  margin: 0;
  color: var(--deep-emerald);
  font-weight: 800;
}

.gallery-grid {
  width: min(1140px, 100%);
  margin: 2rem auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.gallery-item {
  position: relative;
  min-height: 260px;
  display: grid;
  place-items: end start;
  padding: 1.3rem;
  border: 1px solid rgba(201, 157, 63, 0.52);
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 300ms ease;
}

.gallery-item:hover {
  transform: translateY(-6px);
}

.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 68, 50, 0.74), transparent 68%);
}

.gallery-item span {
  position: relative;
  z-index: 1;
  color: var(--soft-gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
}

.item-1 { background: url("./images/mehendi.jpg") center/cover; }
.item-2 { background: url("./images/haldi.jpg") center/cover; }
.item-3 { background: url("./images/sangeet.jpg") center/cover; }
.item-4 { background: url("./images/wedding.jpg") center/cover; }

.events-section {
  color: var(--ivory);
  background:
    linear-gradient(rgba(6, 68, 50, 0.72), rgba(6, 68, 50, 0.68)),
    url("https://images.unsplash.com/photo-1572116469696-31de0f17cc34?auto=format&fit=crop&w=1900&q=88") center/cover fixed;
}

.events-section .section-heading h2,
.events-section .section-heading p {
  color: var(--ivory);
}

.events-section .small-label {
  color: var(--soft-gold);
}

.event-timeline {
  width: min(1040px, 100%);
  margin: auto;
  display: grid;
  gap: 1rem;
}

.event-card {
  display: grid;
  grid-template-columns: 74px 1fr;
  align-items: center;
  gap: 1rem;
  color: var(--ivory);
  background: rgba(255, 250, 240, 0.12);
  backdrop-filter: blur(14px);
}

.event-card h3 {
  color: var(--soft-gold);
}

.event-card p {
  margin: 0.2rem 0;
}

.event-card.highlight {
  border-color: rgba(243, 223, 159, 0.85);
  background: rgba(243, 223, 159, 0.18);
}

.event-symbol {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--soft-gold);
  border: 1px solid rgba(243, 223, 159, 0.68);
  background: rgba(255, 250, 240, 0.12);
  font-size: 1.35rem;
}

.event-date {
  color: var(--soft-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  font-weight: 800;
}

.venue-grid {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: stretch;
}

.venue-card address {
  margin: 1rem 0;
  color: var(--deep-emerald);
  font-style: normal;
  font-weight: 700;
}

.map-card iframe {
  width: 100%;
  min-height: 440px;
  border: 0;
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.blessings-section {
  min-height: 460px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--ivory);
  background:
    linear-gradient(rgba(128, 79, 65, 0.58), rgba(6, 68, 50, 0.58)),
    url("https://images.unsplash.com/photo-1606800052052-a08af7148866?auto=format&fit=crop&w=1900&q=88") center/cover fixed;
}

blockquote {
  width: min(960px, 100%);
  margin: auto;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1.24;
  font-weight: 500;
}

.info-grid {
  grid-template-columns: repeat(4, 1fr);
}

.rsvp-section {
  background:
    radial-gradient(circle at top right, rgba(8, 114, 79, 0.12), transparent 30rem),
    linear-gradient(135deg, #fffaf0, #f6dbe2 48%, #e8edcc);
}

.rsvp-form {
  width: min(920px, 100%);
  margin: auto;
}

.form-row {
  margin-bottom: 1.15rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label,
legend {
  display: block;
  margin-bottom: 0.38rem;
  color: var(--deep-emerald);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(8, 114, 79, 0.24);
  border-radius: 18px;
  padding: 0.95rem 1rem;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
}

.event-rsvp {
  margin: 0 0 1.15rem;
  padding: 1.2rem;
  border: 1px solid rgba(201, 157, 63, 0.38);
  border-radius: 22px;
}

.event-rsvp label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.35rem 1rem 0.35rem 0;
  color: var(--ink);
  font-weight: 600;
}

.event-rsvp input {
  width: auto;
}

input:focus,
select:focus,
textarea:focus,
.primary-btn:focus,
.secondary-btn:focus,
a:focus,
button:focus {
  outline: 3px solid rgba(201, 157, 63, 0.52);
  outline-offset: 3px;
}

.form-status {
  margin-top: 1rem;
  color: var(--deep-emerald);
  font-weight: 800;
}

.footer {
  padding: 3.7rem 1rem;
  text-align: center;
  color: var(--ivory);
  background: linear-gradient(135deg, var(--deep-emerald), #8f5c52);
}

.footer-mark {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
  border: 1px solid rgba(243, 223, 159, 0.75);
  border-radius: 50%;
  color: var(--soft-gold);
  font-weight: 800;
  letter-spacing: 0.12em;
}

.footer-names {
  margin: 0;
  color: var(--soft-gold);
  font-size: 3rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms ease, transform 800ms ease;
}

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

@keyframes petalsDrift {
  from { transform: translate3d(0, 0, 0) rotate(0deg); }
  to { transform: translate3d(0, -260px, 0) rotate(16deg); }
}

@keyframes glowPulse {
  0%, 100% { transform: scale(0.95); opacity: 0.55; }
  50% { transform: scale(1.08); opacity: 0.9; }
}

@keyframes particlesRise {
  from { transform: translateY(0); }
  to { transform: translateY(-180px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-light,
  .floating-petals,
  .floating-petals::before,
  .floating-petals::after,
  .gold-particles::before,
  .gold-particles::after {
    animation: none;
  }
}

@media (max-width: 1080px) {
  .info-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .story-layout,
  .venue-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    padding: 1.2rem;
    background: rgba(255, 250, 240, 0.98);
    border-bottom: 1px solid rgba(201, 157, 63, 0.38);
  }

  .nav-links.open {
    display: flex;
  }

  .couple-grid,
  .info-grid,
  .gallery-grid,
  .two-col,
  .countdown {
    grid-template-columns: 1fr;
  }

  .event-card {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .section {
    padding: 4.9rem 1rem;
  }

  .gate-arch {
    min-height: 610px;
    border-radius: 260px 260px 34px 34px;
  }

  .gate-content {
    min-height: 550px;
    padding: 3rem 1.15rem 1.5rem;
  }

  .hero {
    min-height: 110vh;
  }

  .hero-content {
    transform: translateY(-20px);
  }

  .hero-title {
    font-size: clamp(4.7rem, 20vw, 7rem);
  }

  .gate-content h1 {
    font-size: clamp(3.3rem, 14vw, 5.4rem);
  }
}
