/* =================== FONTS ================== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Pinyon+Script&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Chewy&display=swap');


/* =================== VARIABLES ================== */
:root {
    --dark-green: #1a3a2e;
    --light-green: #2d5a48;
    --white1: #ffffff;
    --white: #f2ede0;
    --bg: #ebe4db71;
    --green1: #27270a;
    --gold: #d4af37;
    --black: #000000;
}

/* =================== BASE STYLES ================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cormorant Garamond', serif;
    color: var(--dark-green);
    background-color: var(--white);
    overflow-x: hidden;
}

/* =================== NAVIGATION ================== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem; 
    z-index: 100;
    background: transparent;
    backdrop-filter: blur(0px);
}

/* =================== LOGO ICON ================== */
.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    top: -30px;    
    left: -30px;   
}

.logo-icon {
    width: 150px;   
    height: 150px;  
    display: block;
    transition: transform 0.3s ease;
}

.logo-icon:hover {
    transform: scale(1.05); 
}

/* =================== HERO SECTION ================== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-fallback {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-content {
    text-align: center;
    color: var(--white);
    padding: 4rem 2rem 0;
    z-index: 10;
    position: relative;
}

.hero h1 {
    font-family: 'Pinyon Script', cursive;
    font-weight: 200;
    font-size: 6rem;
    margin-bottom: 2rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.7rem;      
    color: var(--white);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem;
    text-align: center;
    text-transform: uppercase;
}

.details {
    margin-top: 2rem;
}

.date, .location {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.image-container, 
.cant-wait-image-container,
.coming-soon-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.hero-image,
.cant-wait-image,
.coming-soon-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =================== Welcome Section ================== */
.welcome {
    padding: 4rem 2rem;
    text-align: center;
    background-color: var(--green1);
}

.welcome h2 {
    font-family: 'Pinyon Script', cursive;
    font-size: 5rem;
    font-weight: 200;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.welcome p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===================  CANT WAIT SECTION ================== */
.cant-wait {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center; 
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.cant-wait-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 55%;
}

.cant-wait-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cant-wait-overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.1); 
} 

/* =================== SCROLLING TEXT ================== */
.scrolling-text-container {
    margin-top: 22vh;
    width: 100%;
    white-space: nowrap;
}

.scrolling-text {
   display: flex;
   width: max-content;
   animation: scrollLoop 30s linear infinite;
}

.scrolling-text .letter {
   font-family: 'Dancing Script', serif;
   font-weight: 200;
   color: rgb(255, 255, 255, 0.8);
   font-size: 2rem;
   display: inline-block;
   animation: letterWave 3s ease-in-out infinite;
}

.scrolling-text .letter:nth-child(1) { animation-delay: 0s; }
.scrolling-text .letter:nth-child(2) { animation-delay: 0.1s; }
.scrolling-text .letter:nth-child(3) { animation-delay: 0.2s; }
.scrolling-text .letter:nth-child(4) { animation-delay: 0.3s; }
.scrolling-text .letter:nth-child(5) { animation-delay: 0.4s; }
.scrolling-text .letter:nth-child(6) { animation-delay: 0.5s; }
.scrolling-text .letter:nth-child(7) { animation-delay: 0.6s; }
.scrolling-text .letter:nth-child(8) { animation-delay: 0.7s; }
.scrolling-text .letter:nth-child(9) { animation-delay: 0.8s; }
.scrolling-text .letter:nth-child(10) { animation-delay: 0.9s; }

.scrolling-text .letter:nth-child(n+11) { 
   animation-delay: calc((n - 11) * 0.1s + 1s); 
}

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

@keyframes letterWave {
   0%, 100% { transform: translateY(0px); }
   50% { transform: translateY(-40px); }
}

.space {
   width: 1rem;
   display: inline-block;
}

/* =================== COMING SOON CONTAINER ================== */
.coming-soon-container {
    margin-top: 54vh;
    text-align: center;
    color: var(--white);
    z-index: 10;
    position: relative;
    width: 100%;
}

.coming-soon-content {
    text-align: center;
    color: var(--white);
    z-index: 10;
    position: relative;
    width: 100%;
}

.coming-soon-container h2,
.coming-soon-content h2 {
    font-family: 'Cormorant Garamond' !important;
    font-size: 2rem !important;
    font-style: italic !important;
    font-weight: 300 !important;
    color: rgb(255, 255, 255, 0.5) !important;
    margin-bottom: 1rem !important;
}

/* =================== STANDALONE COMING SOON ================== */
.coming-soon {
    position: relative;
    width: 100%;
    min-height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 4rem 2rem;
}

.coming-soon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* =================== COUNTDOWN ================== */
.countdown {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin: 0.1rem auto 0;
    flex-direction: row;
    max-width: 600px;
    margin-bottom: 0.5rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
}

.countdown-item span:first-child {
    font-family: 'Crimson Text', serif;
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--white);
}

.countdown-item span:last-child {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.8rem ;
    color: var(--white);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* =================== THEDAY ================== */
.theday {
    background-color: var(--bg);
    color: var(--green1);
    font-family: 'Pinyon Script', cursive;
    text-align: center;
    padding: 5rem 2rem;
}

.theday-title {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.theday-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 300;
}

.theday-timeline {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  position: relative;
  overflow-x: auto;
  overflow-y: visible;
  white-space: nowrap;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
}

/* make sure items appear above the line */
.timeline-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  scroll-snap-align: center;
}


.timeline-icon {
    width: 140px;
    height: 140px;
    margin-bottom: 0.5rem;
    background: transparent;
    padding: 10px;
    display: flex;
}

.timeline-label .time,
.timeline-label .event {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    margin-top: 0.5rem;
    font-style: italic;
    font-weight: 300;
}

/* ==================== RSVP ================== */
/* RSVP Section Styles */
.rsvp {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    overflow: hidden;
}

.rsvp-image-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.rsvp-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 70%;
}

.rsvp::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.rsvp-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 600px;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.rsvp-title {
    font-family: 'Pinyon Script', cursive;
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 15px;
    letter-spacing: 2px;
    line-height: 1.2;
}

.rsvp-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 300;
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 30px;
    line-height: 1.5;
    padding: 0 10px;
}

.rsvp-form {
    background: rgba(245, 240, 230, 0.5);
    padding: 30px;
    border-radius: 0px;
    backdrop-filter: blur(1px);
    width: 100%;
    box-sizing: border-box;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--black);
    margin-bottom: 6px;
    font-weight: 900;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 8px 0;
    border: none;
    border-bottom: 1px solid var(--black);
    background: transparent;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: var(--black);
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom: 1px solid var(--black);
}

.form-group textarea {
    resize: vertical;
    min-height: 60px;
    max-height: 150px;
}

/* Optional: slight padding under each field for spacing */
.form-group {
    margin-bottom: 25px;
}


.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
    justify-content: center;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 6px;
}

.radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid var(--black);
    border-radius: 50%;
    background-color: rgba(245, 240, 230, 0.5);
    position: relative;
    cursor: pointer;
    outline: none;
}

.radio-option input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--black);
    transform: translate(-50%, -50%);
}

.radio-option label {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: var(--black);
    margin: 0;
    cursor: pointer;
}

.submit-btn {
    background: transparent;
    color: var(--black);
    border: none;
    padding: 12px 35px;
    border-radius: 25px;
    border: 1px solid var(--black);
    border-color: var(--black);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 15px;
}

.submit-btn:hover {
    transform: scale(1.03);
}

.submit-btn:active {
    transform: translateY(0);
}
/* =================== HONEYMOON ================== */
.honeymoon {
    background-color: var(--bg);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 2rem;
    gap: 6rem; /* space between image and text */
}

/* Left image box */
.honeymoon-image {
    flex: 1;
    max-width: 500px;
    height: 600px;
    overflow: hidden;
}

.honeymoon-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Right text box */
.honeymoon-content {
    flex: 1;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.honeymoon-title {
    font-family: 'Pinyon Script', cursive;
    font-size: 3.5rem;
    font-weight: 600;
    color: var(--green1);
    margin-bottom: 1rem;
    text-align: right;
}

.honeymoon-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 300;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--green1);
    text-align: right;
}

/* =================== MOBILE (≤480px) ================== */
@media screen and (max-width: 480px) {
    .honeymoon {
        flex-direction: column; /* stack image and text vertically */
        padding: 2rem 1rem;
        gap: 2rem; /* smaller gap on mobile */
        min-height: auto; /* let content height adjust naturally */
    }

    .honeymoon-image {
        max-width: 100%;
        height: 300px; /* reduce height for smaller screens */
    }

    .honeymoon-content {
        max-width: 100%;
        text-align: center; /* center text for mobile */
    }

    .honeymoon-title {
        font-size: 2.5rem; /* smaller title font */
        text-align: center;
    }

    .honeymoon-subtitle {
        font-size: 1rem;
        text-align: center;
        line-height: 1.5;
    }
}

/* =================== RESPONSIVE ================== */
@media (min-width: 768px) {
  .timeline-connector {
    display: none;
  }
}

@media (max-width: 768px) {
    .logo { font-size: 2rem; }
    .hero h1 { font-size: 3.5rem; margin-top: 1rem; }
    .hero h3 { font-size: 1rem; }
    .details { margin-top: 1rem; }
    .date, .location { font-size: 1.1rem; }
    .coming-soon h2 { font-size: 2.5rem; }
    .countdown { gap: 1rem; }
    .countdown-item span:first-child { font-size: 2rem; }
    .countdown-item span:last-child { font-size: 0.8rem; }

    /* The Day timeline responsive */
    .theday-timeline {
        flex-direction: column;
        gap: 3rem;
    }
    .theday-timeline::before { display: none; }
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    nav { padding: 0.8rem; }
    .logo { top: -15px; left: -10px; }
    .logo-icon { width: 80px; height: 80px; }
    .hero h1 { font-size: 3rem; margin-bottom: 1rem; }
    .hero .subtitle { font-size: 1.0rem; }
    .hero-content { padding: 3rem 1.5rem 0; }
    .welcome { padding: 2.5rem 1rem; }
    .welcome h2 { font-size: 3rem; margin-bottom: -0.5rem; }
    .welcome p { font-size: 1rem; margin-bottom: 0rem; }

    .cant-wait { height: 40vh; } 
    .cant-wait-image { object-position: center 70%; }
    .scrolling-text-container { margin-top: 7vh; } .scrolling-text .letter { font-size: 1.3rem; }
    .coming-soon-container { margin-top: 18.5vh; }
    .coming-soon-content h2 { font-size: 1.2rem !important; }
    .coming-soon h2 { font-size: 1.2rem !important; }
    .coming-soon { padding: 2rem 1rem; min-height: 40vh; }
       

    .countdown { flex-wrap: nowrap; justify-content: space-between; gap: 0.5rem; max-width: 300px; }
    .countdown-item { flex: 1; min-width: auto; }
    .countdown-item span:first-child { font-size: 1rem; font-weight: 500; }
    .countdown-item span:last-child { font-size: 0.6rem; }

    .rsvp { padding: 30px 10px; min-height: auto; }
    .rsvp-content { max-width: 95%; padding: 10px; }
    .rsvp-title { font-size: 2rem; margin-bottom: 8px; }
    .rsvp-subtitle { font-size: 0.95rem; margin-bottom: 15px; padding: 0; }
    .rsvp-form { padding: 15px; }
    .form-group label { font-size: 0.95rem; }
    .form-group input[type="text"],
    .form-group textarea { font-size: 0.9rem; padding: 6px 0; }

    /* Keep radio options on one line and evenly spaced */
    .radio-group { 
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    .radio-option { display: flex; align-items: center; gap: 4px; }
    .radio-option label { font-size: 0.9rem; white-space: nowrap; }
    .radio-option input[type="radio"] { width: 16px; height: 16px; }
    .radio-option input[type="radio"]:checked::after { width: 8px; height: 8px; }

    .submit-btn { padding: 8px 25px; font-size: 0.95rem; }

    /* The Day timeline mobile - vertical layout */
    .theday {
        padding: 40px 20px; 
    }
    .theday-title {
        font-size: 3rem;
        margin-bottom: 15px;
    }
    .theday-subtitle {
        margin-bottom: 0;
        font-size: 1.1rem;
    }
    .theday-timeline {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px; 
        max-width: 100%;
        position: relative;
        padding: 20px 0;
    }

    /* Vertical line */
    .theday-timeline::before {
        content: "";
        position: absolute;
        top: 0;
        height: 100%; /* explicit height so it fills the container */
        left: 50%;
        width: 2px;
        background-color: var(--green1); /* line color */
        transform: translateX(-50%);
        z-index: 0;
    }

    /* Timeline items stay on top of the line */
    .timeline-item {
        margin: 0 auto;
        text-align: center;
        position: relative;
        z-index: 1;
        background: transparent; /* optional if you want clean circles over the line */
        padding: 5px 0;
    }

    .timeline-icon {
        width: 100px;
        height: 100px;
        margin-bottom: 5px;
    }

    .timeline-label {
        font-size: 0.95rem;
        line-height: 1.2;
        margin-top: 0;
    }

    .timeline-label .time,
    .timeline-label .event {
        font-size: 1rem;
        max-width: 100px;
    }
}
