@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Gilda+Display&family=Grenze:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* --- Configuration Setup (New Visual Palette) --- */
:root {
  /* Bases */
  --color-sand-base: #FFFFFF;   /* Overall Serene Sand Canvas */
  --color-ivory: #F2EEEA;
  
  /* Accents from Images */
  --color-ochre-brown: #8F4F1D;  /* Rich Coastal Brown */
  --color-gold-metallic: #D3A97A;
  --color-sunflower: #F4B41E;     /* Sunflower Yellow */
  --color-teal-ocean: #028088;    /* Ocean Teal */
  --color-teal-deep: #005F56;
  --color-crimson-playlist: #8B1E2B; /* Maroon Groove Card */
  
  /* Muted states */
  --color-beige-inactive: #EAE0D5;
  
  /* Typography */
  --font-display: 'Grenda', 'Gilda Display', 'Cormorant Garamond', 'Grenze', serif;
  --font-sans: 'DM Sans', sans-serif;
  
  /* Layout constraints */
  --mobile-width: 430px;
}

/* --- Base & Resets --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  background-color: #FFFFFF; /* White background canvas */
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: #2F3333;
  background-color: #FFFFFF;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden; /* Prevent horizontal scroll on body viewport */
  position: relative;
  width: 100%;
}

/* --- Desktop & Mobile Frame Wrapper --- */
.app-container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  min-height: 100vh;
  background-color: var(--color-sand-base);
  position: relative;
  box-shadow: none;
  display: flex;
  flex-direction: column;
}


/* --- Typographical Styling --- */
h1, h2, h3, h4, .serif-font {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
}

h2 {
  font-size: 2.25rem;
  color: #0E332F;
  text-align: center;
  line-height: 1.25;
}

/* --- Section Layout & Spacing --- */
.section {
  padding: 4.5rem 1.65rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  text-align: center;
}

/* --- SECTION 1: HERO INVITATION --- */
#hero {
  background-color: var(--color-sand-base);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 3rem 24px 2rem 24px;
  box-sizing: border-box;
  position: relative;
}

.hero-flowers-bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  z-index: 1;
}

#hero > *:not(.hero-flowers-bg) {
  position: relative;
  z-index: 2;
}

.hero-top-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.hero-om-symbol {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-gold-metallic);
  display: inline-block;
  line-height: 1;
}

.hero-guest-greeting {
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: #0E332F;
  margin-bottom: 0;
  font-weight: 400;
}

/* Hero Illustration Container with couple image */
.hero-illustration-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
}

.hero-couple-image {
  width: calc(100% - 24px); /* 12px margin on both sides */
  max-width: 380px;
  height: auto;
  z-index: 10;
  position: relative;
  filter: drop-shadow(0 10px 20px rgba(14, 51, 47, 0.1));
}

.hero-bottom-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-invite-message {
  font-size: 0.85rem;
  line-height: 1.65;
  color: #4A5050;
  max-width: 290px;
  margin: 0 auto 0.75rem auto;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.hero-wedding-names {
  font-family: var(--font-display);
  font-size: 2.25rem;
  color: var(--color-ochre-brown);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.hero-wedding-names span {
  display: block;
  font-size: 1.35rem;
  color: #555555;
  margin: 0.15rem 0;
  font-style: italic;
}

/* Full Width Solid Teal CTA Button */
.btn-hero-rsvp {
  width: 100%;
  background-color: var(--color-teal-ocean);
  color: #ffffff;
  border: none;
  padding: 1.15rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(2, 128, 136, 0.15);
  transition: all 0.2s ease;
}

.btn-hero-rsvp:active {
  background-color: #016268;
  transform: translateY(1px);
}

/* --- SECTION 2: EVENT TIMELINE --- */
#timeline {
  background-color: var(--color-sand-base);
  padding: 4.5rem 1.65rem;
}

.timeline-headline {
  font-size: 2.35rem;
  color: #0E332F;
  margin-bottom: 2rem;
}

.event-cards-container {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  width: 100%;
}

@media (min-width: 768px) {
  .event-cards-container {
    flex-direction: row;
    justify-content: center;
  }
  .event-card {
    flex: 1;
    max-width: 320px;
  }
}

.event-card {
  border-radius: 0;
  padding: 2.5rem 1.5rem;
  width: 100%;
  text-align: center;
  position: relative;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

/* Timeline Card 1: Haldi */
.event-card.event-haldi {
  background-color: var(--color-beige-inactive); /* Warm sand beige */
  color: #3E3730;
}
.event-card.event-haldi h3 {
  color: #3E3730;
}
.event-card.event-haldi .btn-event-colored {
  background-color: var(--color-ochre-brown);
  color: #ffffff;
}

/* Timeline Card 2: Wedding */
.event-card.event-wedding {
  background-color: var(--color-sunflower); /* Vibrant Gold */
  color: #2E2211;
}
.event-card.event-wedding h3 {
  color: #2E2211;
}
.event-card.event-wedding .btn-event-colored {
  background-color: #ffffff;
  color: var(--color-ochre-brown);
}

/* Timeline Card 3: Reception */
.event-card.event-reception {
  background-color: var(--color-teal-ocean); /* Rich Ocean Teal */
  color: #ffffff;
}
.event-card.event-reception h3 {
  color: #ffffff;
}
.event-card.event-reception .btn-event-colored {
  background-color: #ffffff;
  color: var(--color-teal-ocean);
}

.event-card-subtitle {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
  opacity: 0.85;
}

.event-card-title {
  font-size: 1.85rem;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  line-height: 1.25;
}

.event-card-date {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.event-card-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  background-color: currentColor;
  border-radius: 50%;
  vertical-align: middle;
  margin: 0 0.5rem;
}

.event-card-venue {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.9;
}

/* Double Symmetrical Event Buttons */
.event-buttons-grid {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  margin-top: 1.75rem;
}

.btn-event-colored {
  flex: 1;
  padding: 0.85rem 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 0;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-event-colored:active {
  transform: translateY(1px);
  opacity: 0.95;
}

/* --- SECTION 3: INVITATION VIDEO --- */
#wedding-film {
  background-color: var(--color-sand-base);
  padding: 4.5rem 1.65rem;
}

.video-vertical-wrapper {
  position: relative;
  width: 100%;
  max-width: 330px;
  aspect-ratio: 9/16; /* Pristine Tall Vertical Aspect Ratio matching image */
  border-radius: 0;
  overflow: hidden;
  border: 12px solid var(--color-beige-inactive); /* Thick Sand Border */
  background-color: var(--color-teal-ocean);
  box-shadow: 0 10px 30px rgba(14, 51, 47, 0.08);
  margin: 1.5rem auto 0 auto;
}

.video-poster-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(2, 128, 136, 0.45), rgba(0, 95, 86, 0.75)), url('assets/couple.png');
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  transition: opacity 0.5s ease;
}

.video-poster-play-btn {
  width: 76px;
  height: 76px;
  background-color: #ffffff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(14, 51, 47, 0.25);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.video-poster-play-btn svg {
  width: 24px;
  height: 24px;
  fill: var(--color-teal-ocean);
  margin-left: 3px;
}

.video-poster-play-btn:active {
  transform: scale(0.9);
}

.video-vertical-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  position: absolute;
  top: 0;
  left: 0;
}

/* --- SECTION 4: RSVP FORM --- */
#rsvp {
  background-color: var(--color-sand-base);
  padding: 4.5rem 1.65rem;
}

.rsvp-container-card {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--color-beige-inactive); /* Matches card base color in screenshot */
  border-radius: 0;
  padding: 2.5rem 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.rsvp-form-headline {
  font-family: var(--font-display);
  font-size: 2.25rem;
  color: #0E332F;
  margin-bottom: 0.5rem;
}

.rsvp-form-intro {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #6A7070;
  line-height: 1.5;
  margin-bottom: 2.25rem;
  text-transform: uppercase;
}

.form-group {
  margin-bottom: 1.85rem;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2F3333;
  margin-bottom: 0.65rem;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 1.15rem 1rem;
  border: 1.5px solid var(--color-gold-metallic);
  background-color: #ffffff;
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: #2F3333;
  transition: border-color 0.2s ease;
}

.form-input::placeholder, .form-textarea::placeholder {
  color: #D3A97A;
  opacity: 0.75;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--color-ochre-brown);
}

.form-input:disabled {
  background-color: rgba(255, 255, 255, 0.5);
  color: #777777;
  cursor: not-allowed;
}

/* Custom RSVP Segmented Grid Layout */
.btn-toggle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  width: 100%;
}

.btn-toggle {
  padding: 1rem 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  border: none;
  border-radius: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  background-color: var(--color-sand-base);
  color: var(--color-ochre-brown);
}

.btn-toggle.active {
  background-color: var(--color-ochre-brown);
  color: #ffffff;
  font-weight: 700;
}

.form-textarea {
  resize: vertical;
  min-height: 95px;
}

/* Full Width solid teal form submit */
.btn-rsvp-submit {
  width: 100%;
  background-color: var(--color-teal-ocean);
  color: #ffffff;
  border: none;
  padding: 1.15rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: all 0.2s ease;
}

.btn-rsvp-submit:active {
  background-color: #016268;
}

/* Success Card Overlay */
.rsvp-success-card {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.5s ease-out forwards;
}

.rsvp-success-icon {
  font-size: 2.75rem;
  margin-bottom: 1.25rem;
}

.rsvp-success-title {
  font-size: 2.25rem;
  color: #0E332F;
  margin-bottom: 0.75rem;
}

.rsvp-success-message {
  font-size: 0.9rem;
  color: #4A5050;
  line-height: 1.7;
}

/* --- SECTION 5: PLAYLIST CARD & FOOTER --- */
#playlist {
  background-color: var(--color-sand-base);
  padding: 4.5rem 1.65rem 3rem 1.65rem;
}

.playlist-card {
  width: 100%;
  max-width: 600px;
  margin: 0 auto 4rem auto;
  background-color: var(--color-crimson-playlist); /* Custom Crimson/Maroon Groove Card */
  border-radius: 0;
  padding: 2.5rem 1.5rem;
  box-shadow: 0 8px 25px rgba(139, 30, 43, 0.15);
}

.share-photos-card {
  width: 100%;
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
  background-color: var(--color-ivory); /* Sand/ivory background */
  border-radius: 0;
  padding: 2.5rem 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  text-align: center;
}

.playlist-headline {
  font-size: 2.25rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.playlist-description {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.spotify-embed-container {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background-color: #000000;
}

/* Footer Section */
.footer {
  text-align: center;
  padding-bottom: 4rem;
}

.footer-om-symbol {
  font-size: 2.25rem;
  font-weight: 500;
  color: var(--color-gold-metallic);
  margin-bottom: 1.25rem;
  display: inline-block;
  line-height: 1;
}

.footer-names {
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--color-ochre-brown);
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #7A8080;
  text-transform: uppercase;
}

/* --- Floating Keyframe Animation --- */
@keyframes gentleFloat {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  100% {
    transform: translateY(-8px) rotate(3deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.97) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* --- Hardware-Accelerated Smooth Scroll Reveal Transitions --- */
.reveal {
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  will-change: transform, opacity;
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
