/* Redesigned Wedding Website CSS - Aditya and Apurva */
:root {
  --bg-ivory: #f8f1e6;
  --bg-soft: #f4ead8;
  --text-deep: #5f4330;
  --text-muted: #7a5b45;
  --gold: #d7b25f;
  --gold-deep: #b9892f;
  --gold-soft: rgba(214, 179, 99, 0.2);
  --gold-frost: rgba(215, 178, 95, 0.26);
  --gold-frost-border: rgba(255, 238, 192, 0.48);
  --red-blessing: #9d1f1f;
  --shadow-soft: 0 12px 34px rgba(89, 59, 24, 0.12);
  --shadow-gold: 0 8px 28px rgba(172, 126, 35, 0.18);

  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-body: "Cormorant Garamond", "Noto Serif", serif;
  --font-devanagari: "Noto Serif Devanagari", serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-deep);
  background: var(--bg-ivory);
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- Top Navigation ---------- */
.nav {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(94%, 1120px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1.15rem;
  border-radius: 22px;
  background: linear-gradient(
    135deg,
    rgba(236, 207, 145, 0.34),
    rgba(191, 145, 53, 0.2)
  );
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--gold-frost-border);
  box-shadow: var(--shadow-gold);
}

.garland-top {
  display: none;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.1vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fbf4df;
  text-decoration: none;
  white-space: nowrap;
  text-shadow: 0 1px 10px rgba(82, 53, 15, 0.22);
}

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

.nav-links a {
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 249, 235, 0.95);
  transition:
    opacity 0.2s ease,
    color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.nav-current {
  color: #fffaf0;
  opacity: 1;
}

.nav-toggle {
  display: none;
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0.25rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: rgba(255, 247, 229, 0.95);
  border-radius: 999px;
  margin: 2.6px 0;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
  overflow: hidden;
  background:
    linear-gradient(rgba(118, 85, 27, 0.18), rgba(118, 85, 27, 0.08)),
    radial-gradient(circle at top, rgba(255, 233, 185, 0.14), transparent 42%);
}

.hero-bg,
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(61, 37, 8, 0.12), rgba(61, 37, 8, 0.04)),
    url("F33FD70F-5D6E-4C3D-A297-163E1D21CEB3.jpeg") center 18% / cover
      no-repeat;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(14, 9, 2, 0.12),
    rgba(14, 9, 2, 0.02) 26%,
    rgba(14, 9, 2, 0)
  );
  z-index: -1;
}

.hero-marquee {
  width: 100%;
  height: 500px;
  overflow: hidden;
  z-index: 1;
  margin: 0 auto 0;
  border-radius: 0;
}

.hero-marquee-track {
  display: flex;
  gap: 0;
  animation: marquee 35s linear infinite;
  width: max-content;
  height: 100%;
}

.hero-marquee-track img {
  flex-shrink: 0;
  width: 420px;
  height: 500px;
  object-fit: cover;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.hero-main {
  position: relative;
  z-index: 1;
  width: 100%;
  background:
    linear-gradient(rgba(248, 241, 230, 0.08), rgba(248, 241, 230, 0.08)),
    url("bg1.png") center top / cover no-repeat; /* width fits, height scales */
  padding: 0;
}

.hero-content {
  position: relative;
  width: min(90%, 720px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-top-right-img,
.hero-left-img,
.hero-elephant-left,
.hero-elephant-right {
  display: none;
}

/* ---------- Blessing + invitation block using image 1 ---------- */
.hero-main,
.hero-content {
  text-align: center;
  position: relative;
}
.hero-name-first,
.hero-name-second,
.hero-and {
  text-align: center;
  width: 100%;
}
.hero-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 1200px);
  min-height: 1100px;
  height: 100%;
  z-index: -1;
}

.hero-ganpati {
  text-align: center;
  padding-top: clamp(12rem, 15vw, 21rem);
  margin-bottom: 0.75rem;
}

.hero-ganpati img {
  width: 80px;
  height: auto;
  margin: 0 auto 0.65rem;
  filter: invert(16%) sepia(78%) saturate(2300%) hue-rotate(-10deg)
    brightness(84%) contrast(96%);
}

.ganesh-blessing {
  position: relative;
  z-index: 3;
  font-family: var(--font-devanagari);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--red-blessing);
  text-align: center;
  margin: 0 0 1.5rem;
}

.ganesh-blessing::before,
.ganesh-blessing::after {
  content: "॥";
  margin: 0 0.45rem;
}

.hero-name-first,
.hero-name-second {
  font-family: "Parisienne", cursive;
  font-weight: 400;
  line-height: 1.05; /* consistent spacing */
  letter-spacing: 0.03em;
  color: #7d231c;
  text-shadow: 0 2px 16px rgba(186, 149, 82, 0.15);
  margin: 0;
  text-align: center;
  font-size: clamp(3.8rem, 8vw, 6.5rem); /* desktop base */
}

.hero-name-first {
  margin: 0;
  padding-bottom: 0.15em; /* accounts for Parisienne font's descenders */
}

.hero-name-second {
  margin: 0;
  padding-top: 0.15em;
}

.hero-and {
  font-family: "Libre Bodoni", serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  letter-spacing: 0.2em;
  line-height: 1;
  color: #8d6f56;
  margin: 0; /* reset margin */
  padding: 0.9rem 0 0.1rem; /* use padding — won't collapse */
  display: block;
  width: 100%;
  text-align: center;
}

.hero-hashtag {
  font-size: 1.1rem;
  color: #86624a;
  margin: 1.4rem 0 0.85rem;
}

.hero-date {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: 0.07em;
  color: #5f4330;
  margin-bottom: 0.45rem;
}

.hero-location {
  max-width: 720px;
  margin: 0 auto 1.75rem;
  font-size: 1.15rem;
  color: #6d5140;
}

.hero::before,
.hero::after {
  pointer-events: none;
}

#sparkleCanvas,
.petal {
  pointer-events: none;
}

.hero-rsvp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2.5rem;
  border: 1px solid rgba(173, 127, 31, 0.55);
  border-radius: 999px;
  background: linear-gradient(180deg, #e4c36d, #c99735);
  color: #5d3917;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(168, 121, 31, 0.18);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  position: relative;
  z-index: 5;
}

.hero-rsvp-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(168, 121, 31, 0.22);
}

.hero-tagline {
  margin-top: 2rem;
  padding-bottom: 6rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-style: italic;
  color: rgba(96, 67, 48, 0.9);
}

/* ---------- Shared pages using image 2 ---------- */
.hero,
.page-content {
  position: relative;
  min-height: 100vh;
  width: 100%;
  padding-top: calc(1rem + 3.5rem);
  overflow-x: hidden;
}

.page-content::before {
  content: "";
  position: fixed; /* desktop parallax effect */
  inset: 0;
  background: url("bg2.png") center top / cover no-repeat; /* width fits, height scales */
  z-index: -2;
}

.section,
.schedule-section,
.gallery-section,
.travel-section,
.things-section,
.rsvp-section {
  position: relative;
  max-width: 960px;
  width: min(92%, 960px);
  margin: 0 auto;
  padding: 1.5rem;
  background: transparent;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 4vw, 3.25rem);
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.02em;
  color: #593924;
  margin-bottom: 2rem;
  border: 0;
}

/* ---------- Schedule ---------- */

.schedule-section {
  padding: 2rem 0;
  text-align: center;
}

.schedule-content {
  display: grid;
  grid-template-columns: 1fr; /* one item per row */
  gap: 2.5rem;
  max-width: 400px;
  width: 100%;
  text-align: center;
  margin: 0 auto; /* THIS centers the whole block */
}

.schedule-item {
  background: transparent;
  border: 0;
  text-align: center;
  padding: 0;
}

.schedule-item h3 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  color: #5a3727;
  margin-bottom: 0.4rem;
}

.schedule-time {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: #9b6b25;
  letter-spacing: 0.03em;
  margin-bottom: 0.6rem;
}

.schedule-desc {
  max-width: 34ch;
  margin: 0 auto;
  font-size: 1.12rem;
  color: #735543;
}

/* ---------- Gallery ---------- */
.gallery-placeholder p,
.travel-content p,
.things-content p,
.rsvp-subtitle {
  text-align: center;
  color: #775946;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  max-width: 760px;
  margin: 0 auto;
}

.gallery-item {
  aspect-ratio: 0.85;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-soft);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Forms ---------- */
.rsvp-form {
  max-width: 620px;
  margin: 0 auto;
  background: rgba(255, 250, 240, 0.1);
  border: 0;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: none;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #5e4031;
  font-size: 0.98rem;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(169, 129, 57, 0.2);
  background: rgba(255, 252, 247, 0.78);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-deep);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(174, 130, 45, 0.5);
  box-shadow: 0 0 0 3px rgba(215, 178, 95, 0.14);
}

.form-group textarea {
  min-height: 110px;
  resize: vertical;
}
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.75rem;
}

.checkbox-option {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 1rem;
  line-height: 1.5;
  cursor: pointer;
  color: #5b4636;
}

.checkbox-option input[type="checkbox"] {
  margin-top: 0.2rem;
  transform: scale(1.1);
  accent-color: #b8860b;
}
.checkbox-option span {
  display: inline;
}
.checkbox-option input {
  width: 20px !important;
  height: 20px !important;
  display: inline-block !important;
}
.rsvp-button {
  width: 100%;
  padding: 0.95rem 1.5rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #e4c36d, #c99735);
  color: #5d3917;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.rsvp-success {
  text-align: center;
  max-width: 460px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.rsvp-success.hidden,
.hidden {
  display: none !important;
}

.success-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #e4c36d, #c99735);
  color: #5d3917;
  font-size: 1.8rem;
  font-weight: 700;
}

.rsvp-success h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: #5a3727;
  margin-bottom: 0.5rem;
}

.rsvp-success p {
  color: #725441;
}

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 3rem 1.5rem;
  border-top: 1px solid rgba(139, 154, 139, 0.15);
  width: 100%;
  box-sizing: border-box;
  color: white;
  background-color: #e4c36dc2;
}
.footer p {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: white;
}
.footer-note {
  font-size: 0.9rem !important;
  margin-top: 0.5rem;
  opacity: 0.8;
}

/* ---------- Decorative effects ---------- */
.petal {
  position: fixed;
  top: -20px;
  width: 12px;
  height: 18px;
  background: radial-gradient(circle at 50% 30%, #f5c6c6, #f0a5a5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 5000;
  opacity: 0.7;
  animation: petalFall linear infinite;
}

.petal:nth-child(odd) {
  width: 10px;
  height: 15px;
  opacity: 0.6;
  animation-duration: 6s;
}

.petal:nth-child(even) {
  width: 14px;
  height: 20px;
  opacity: 0.8;
  animation-duration: 8s;
}

.petal:nth-child(3n) {
  width: 13px;
  height: 18px;
  opacity: 0.65;
  animation-duration: 7s;
}

@keyframes petalFall {
  0% {
    transform: translateX(0) translateY(0) rotate(0deg);
    opacity: 0.7;
  }
  25% {
    transform: translateX(12px) translateY(25vh) rotate(45deg);
  }
  50% {
    transform: translateX(-12px) translateY(50vh) rotate(90deg);
  }
  75% {
    transform: translateX(8px) translateY(75vh) rotate(135deg);
  }
  100% {
    transform: translateX(0) translateY(110vh) rotate(180deg);
    opacity: 0;
  }
}

.petal:nth-child(4n) {
  background: radial-gradient(circle at 50% 30%, #f8b7b7, #f2a6a6);
}
.petal:nth-child(5n) {
  background: radial-gradient(circle at 50% 30%, #f9c2c2, #f5a5a5);
}

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

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .schedule-content {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    max-width: 540px;
  }
}

@media (max-width: 768px) {
  .nav {
    top: 0.7rem;
    padding: 0.72rem 0.95rem;
  }

  .nav-logo {
    font-size: 1.1rem;
    letter-spacing: 0.08em;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 18px;
    background: linear-gradient(
      135deg,
      rgba(236, 207, 145, 0.88),
      rgba(191, 145, 53, 0.68)
    );
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 238, 192, 0.42);
  }

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

  .nav-links a {
    color: #fff8ea;
  }

  .hero {
    padding-top: 5.3rem;
  }

  .hero-marquee {
    height: 210px;
  }

  .hero-marquee-track img {
    width: 300px;
    height: 210px;
  }

  .hero-content::before {
    width: 100%;
    min-height: 980px;
    background-position: center top;
  }

  .hero-ganpati {
    text-align: center;
    padding-top: clamp(10rem, 14vw, 16rem);
    margin-bottom: 0.75rem;
  }
  .hero,
  .page-content::before {
    background-attachment: scroll; /* default scrolling */
    padding-top: calc(0.7rem + 3.2rem);
    background-position: center top;
    background-size: cover;
    /*position: absolute; 
    background:
      url("bg2.png") center top / cover no-repeat;*/
  }

  .section,
  .schedule-section,
  .gallery-section,
  .travel-section,
  .things-section,
  .rsvp-section {
    width: min(94%, 960px);
    padding: 3.4rem 1rem;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-left: 0rem;
    padding-right: 0rem;
  }

  .hero-content::before {
    min-height: 900px;
    background-size: cover;
  }

  .hero-name-first,
  .hero-name-second {
    font-size: clamp(3rem, 10vw, 5rem); /* slightly smaller than desktop max */
    line-height: 1.05; /* match desktop */
    letter-spacing: 0.03em; /* same as desktop */
  }

  .hero-and {
    font-size: clamp(1.1rem, 2vw, 1.55rem); /* closer to desktop proportion */
    letter-spacing: 0.25em; /* closer to desktop 0.35em */
    line-height: 1.1; /* match desktop */
  }

  .hero-location,
  .schedule-desc,
  .gallery-placeholder p,
  .travel-content p,
  .things-content p,
  .rsvp-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2.3rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

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

  .rsvp-form {
    padding: 1rem;
  }
}
@media (max-width: 600px) {
  /* Remove side padding on hero */
  .hero {
    padding-left: 0;
    padding-right: 0;
  }

  /* Make hero content full width */
  .hero-content {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  /* Remove side margins from sections */
  .section,
  .schedule-section,
  .gallery-section,
  .travel-section,
  .things-section,
  .rsvp-section {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  /* Ensure background image spans edge-to-edge */
  .hero-content::before {
    width: 100%;
    left: 0;
    transform: none;
  }

  .hero-name-first,
  .hero-name-second,
  .hero-and {
    width: 100%;
    text-align: center;
  }
}
