@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;1,300&family=Great+Vibes&display=swap');

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

html {
  background: url('assets/option\ 1.jpg') center center / cover fixed;
}

html, body {
  min-height: 100%;
}

body {
  background: transparent;
  font-family: 'Georgia', serif;
  color: #000000;
  overflow-x: hidden;
  perspective: 1200px;
}

section {
      padding-left: 24px;
      padding-right: 24px;
}

/* --- ENVELOPE --- */
#envelope {
  position: fixed;
  width: 100vw;
  height: 100vh;
  background-color: #ede8e0;
  background-image: url('assets/envelope-bg.png');
  background-size: 300px 300px;
  background-repeat: repeat;
  cursor: pointer;
  z-index: 10;
}

#flap-back, #flap-bottom, #flap-left, #flap-right { display: none; }

/* SVG fold lines sit below the flap */
#envelope-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

/* Flap — triangle matches SVG lines exactly */
#flap-top {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: #ede8e0;
  background-image: url('assets/envelope-bg.png');
  background-size: 300px 300px;
  background-repeat: repeat;
    clip-path: polygon(-85% 0, 186% 0, 50% 50%);
  z-index: 5;
  transform-origin: top center;
  transform-style: preserve-3d;
}

#wax-seal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 6;
  width: 160px;
  height: 160px;
  transform-style: preserve-3d;
}

#wax-seal img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.12));
}

#tap-hint {
  position: absolute;
  bottom: 250px;
  width: 100%;
  text-align: center;
  font-size: 11px;
  color: #ffffff;
  letter-spacing: 3px;
  text-transform: lowercase;
  z-index: 10;
  animation: pulse 2.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* --- LETTER CONTENT --- */
#letter-screen {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  z-index: 1;
}

section {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
  background: transparent;
  position: relative;
  z-index: 1;
}

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

h1 { font-size: 2.2rem; font-weight: normal; letter-spacing: 2px; }
h2 { font-size: 1.4rem; font-weight: normal; }
.script-font { font-style: italic; font-size: 1.1rem; color: #000000; }

input[type="text"] {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #ddd;
  border-radius: 40px;
  background: white;
  font-size: 1rem;
  text-align: center;
  outline: none;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.radio-group label {
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 40px;
  background: white;
  cursor: pointer;
  transition: background 0.2s;
}

.radio-group label:hover { background: #f5f0eb; }

button {
  padding: 16px 48px;
  background: #3a3a3a;
  color: white;
  border: none;
  border-radius: 40px;
  font-size: 1rem;
  letter-spacing: 1px;
  cursor: pointer;
}

.hidden { display: none; }

/* --- SKY BACKGROUND --- */
#sky-background {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
}

#sky-img-hero,
#sky-img-details {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: opacity 0.8s ease;
}

#sky-img-hero  { opacity: 1; z-index: 1; }
#sky-img-details { opacity: 0; z-index: 2; }

#sky-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: opacity 0.8s ease;
}

/* All birds share these base styles */
.bird-wrap {
  position: absolute;
  z-index: 3;
  animation: flyAcross linear infinite;
}

#bird1 { width: 120px; height: 100px; top: 6%;  animation-duration: 18s; animation-delay: 0s;  }
#bird2 { width: 85px;  height: 65px;  top: 13%; animation-duration: 14s; animation-delay: -5s; }
#bird3 { width: 60px;  height: 40px;  top: 20%; animation-duration: 11s; animation-delay: -9s; }

dotlottie-wc {
  width: 100%;
  height: 100%;
  display: block;
  filter: brightness(0) saturate(100%) invert(99%) sepia(33%);
}

/* Flies from right edge to left edge, then resets */
@keyframes flyAcross {
  0%   { left: -20%; }
  100% { left: 110%; }
}


#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 60px 24px;
  background: transparent;
}

.getting-married {
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-size: 0.85rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #000000;
  margin-bottom: 32px;
}

.names {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 48px;
}

.name-script {
  font-family: 'Alex Brush', cursive;
  font-size: 3.0rem;
  color: #000000;
  line-height: 1.3;
}

.ampersand {
  font-family: 'Alex Brush', cursive;
  font-style: italic;
  font-size: 1.4rem;
  color: #000000;
  margin: 4px 0;
}

/* Date with lines either side */
/*.date-row {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 340px;
  margin-bottom: 100px;
}

.date-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.7);
}*/

.date-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 20px;
}

.date-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  letter-spacing: 2px;
  color: #000000;
  white-space: nowrap;
}

.time-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 20px;
}

.time-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  letter-spacing: 2px;
  color: #000000;
  white-space: nowrap;
}

.loc-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  letter-spacing: 2px;
  color: #000000;
  white-space: nowrap;
}

.every-second-closer-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.0rem;
  letter-spacing: 2px;
  color: #000000;
  white-space: nowrap;
}

/* .itinerary-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.0rem;
  letter-spacing: 2px;
  color: #000000;
  white-space: nowrap;
  margin-top: 30px;
} */


/* RSVP + arrow */
.rsvp-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  /* position: absolute; */
  bottom: 48px;
  margin-top: 50px;
}

.rsvp-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.75rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #000000;
}

.scroll-arrow {
  font-size: 1.2rem;
  color: #000000;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}




h2 {
  position: relative;
  display: inline-block;
  font-family: 'Great Vibes', cursive;
  font-size: 2.5em;
  color: #000000;
  line-height: 1.3;
}

/* LEFT LINE */
h2::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -80px; /* adjust spacing */
  width: 60px; /* line length */
  height: 1px;
  background: #3a3a3a;
  transform: translateY(-50%);
}

/* RIGHT LINE */
h2::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -80px; /* adjust spacing */
  width: 60px; /* line length */
  height: 1px;
  background: #3a3a3a;
  transform: translateY(-50%);
}




/* --- WHITE CARD --- */
.white-card {
  background: white;
  border-radius: 24px;
  padding: 32px 24px;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
}

#details {
  min-height: auto !important;
  padding: 40px 24px 80px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
  background: transparent !important;
}

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

.card-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-label {
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #000000;
}

.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: #000000;
}

.card-sub {
  font-size: 0.9rem;
  color: #000000;
}

.divider {
  width: 100%;
  height: 1px;
  background: #f0ede8;
}

.card-btn {
  width: 100%;
  padding: 14px;
  background: #faf8f4;
  border: 1px solid #ede9e3;
  border-radius: 12px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: #000000;
  cursor: pointer;
  letter-spacing: 1px;
  transition: background 0.2s;
}

.card-btn:hover { background: #f0ede8; }

/* RSVP buttons */
.rsvp-buttons {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.rsvp-btn {
  flex: 1;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #ede9e3;
  background: #faf8f4;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  color: #000000;
}

.rsvp-btn.selected {
  background: #3a3a3a;
  color: white;
  border-color: #000000;
}

/* Form fields */
.form-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.form-fields input,
.form-fields select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ede9e3;
  border-radius: 10px;
  background: #faf8f4;
  font-size: 0.95rem;
  color: #000000;
  outline: none;
  font-family: 'Cormorant Garamond', serif;
  text-align: left;
}

.plus-one-btn {
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 1px dashed #ccc;
  border-radius: 10px;
  font-size: 0.9rem;
  color: #000000;
  cursor: pointer;
  letter-spacing: 1px;
  margin-top: 4px;
}

.submit-btn {
  width: 100%;
  padding: 16px;
  background: #3a3a3a;
  color: white;
  border: none;
  border-radius: 12px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  letter-spacing: 2px;
  cursor: pointer;
  margin-top: 8px;
}

.thankyou-text {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: #000000;
  padding: 16px 0;
}

/* Navigation / Calendar sheets */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 100;
}

.sheet-content {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-radius: 20px 20px 0 0;
  padding: 24px 24px 40px;
  z-index: 101;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sheet-title {
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #000000;
  text-align: center;
  margin-bottom: 8px;
}

.sheet-btn {
  display: block;
  width: 100%;
  padding: 16px;
  background: #faf8f4;
  border: 1px solid #ede9e3;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  color: #000000;
  font-size: 1rem;
  cursor: pointer;
}

.sheet-cancel {
  width: 100%;
  padding: 16px;
  background: transparent;
  border: none;
  color: #000000;
  font-size: 0.9rem;
  cursor: pointer;
  margin-top: 4px;
}

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

body {
  background: transparent;
}

#letter-screen {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  opacity: 0;
  background: transparent;
  z-index: 1;
}

section#details {
  min-height: unset !important;
  background: transparent !important;
}


/* Card */
.white-card {
  margin:20px;
  padding:20px;
  background:#fff;
  border-radius:20px;
}























































.hidden { display:none; }

/* ---- intl-tel-input overrides ---- */
.iti {
  width: 100%;
}
.iti__selected-flag {
  background: #faf8f4 !important;
  border-right: 1px solid #ede9e3;
  border-radius: 10px 0 0 10px;
}
.iti__selected-flag:hover {
  background: #f0ede8 !important;
}
.iti__country-list {
  border: 1px solid #ede9e3 !important;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
}
.iti__dial-code,
.iti__country-name {
  color: #000000;
}
.iti__selected-dial-code {
  color: #000000;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
}

/* ---- Already RSVP'd link ---- */
.already-rsvpd {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  color: #000000;
  text-align: center;
  cursor: pointer;
  text-decoration: underline;
  opacity: 0.45;
  margin-top: 8px;
}

.already-rsvpd:hover {
  opacity: 0.75;
}

/* ---- Retrieve modal subtitle ---- */
.retrieve-modal-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  color: #000000;
  text-align: center;
  margin-top: 8px;
  opacity: 0.6;
  line-height: 1.5;
}



/* Countdown */
#countdown {
  margin: 12px 0;
  width: 100%;
}

/* Flex layout */
.countdown-flex {
  display: flex;
  justify-content: center;
  gap: 30px;
}

/* Each box */
.time-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}

/* ADD TO style.css */
.slide-icon {
  font-size: 40px;
  /* margin-bottom: 10px; */
  color: #000000;
}

/* Number */
.time-value {
  font-size: 20px;
  font-family: 'Times New Roman', serif;
  /* line-height: 20px; */
  min-width: 45px;
  text-align: center;
  color: #000000;
  padding: 10px;
  border-radius: 25%;
  background-color: #faf8f4;
  margin-bottom: 15px;
}

/* Label */
.time-label {
  font-size: 10px;
  letter-spacing: 1px;
  color: #000000;
}




/* ICON SIZE FIX */
.slide-icon {
  font-size: 28px;
  width: 28px;
  height: 28px;
  line-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ICON CONTAINER */
.swiper-icon-cont {
  width: 70px;
  height: 70px;
  /* border-radius: 50%; */
  /* background: #faf8f4; */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  margin: 0 auto 10px;
}

/* SLIDER LAYOUT */
.swiper {
  width: 100%;
  margin-top: 30px;
  margin-bottom: 100px;
  position: relative;
}


/* GLOBAL TIMELINE LINE */
.swiper-slide::before {
  content: "";
  position: absolute;
  top: 70px;
  width: 100%;
  /* left: 0; */
  right: 0;
  height: .1em;
  background: #faf8f4;
  z-index: 0;
}


.swiper-slide:first-child::before {
  width: 50%;
}


.swiper-slide:last-child::before {
  width: 50%;
    left: 0;
    right: inherit;  
}

.swiper-slide::after {
  content: "";
  position: absolute;
  top: 70px; /* same as line */
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;        /* adjust size */
  height: 10px;       /* adjust size */
  border-radius: 50%;
  background: #faf8f4;
  z-index: 1;
}


/* SLIDE */
.swiper-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 200px;
  position: relative;
}

/* REMOVE OLD LINE */
.timeline-line {
  display: none;
}

/* TEXT */
.slide-title {
  font-weight: bold;
  margin-top: 6px;
}

.slide-time {
  color: #000000;
  margin-top: 6px;
  font-size: 0.9rem;
}



#qr {
  margin-top:20px;
}


.itenary-text {
  margin-top: 50px;
}


.itenary-text p {
  margin-top: 20px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: #000000;
  font-size: 0.85rem;
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
}

.qr-modal {
  position: sticky;
  height: 100vh;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.qr-box {
  background: white;
  padding: 24px;
  border-radius: 16px;
  display: flex;
  text-align: center;
  flex-direction: column;
  align-items: center;
  margin-left: 24px;
  margin-right: 24px;
}

.hide-modal {
  display: none;
}


.loader {
  width: 18px;
  height: 18px;
  border: 2px solid white;
  border-top: 2px solid transparent;
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

#second-section {

  min-height: auto;

  justify-content: flex-start;

  padding-top: 40px;

  padding-bottom: 40px;

}