:root {
    --blue: #0E1E62;
    --gold: #C38A1E;
}

html {
  /* scroll-snap-type: y mandatory; */
  scroll-behavior: smooth;
  height: 100%;
  overflow-y: scroll; /* Forces the browser to use html as the viewport scroll container */
}

body {
    padding: 0;
    color: white;
    font-family: "Montserrat", sans-serif;
}

@keyframes gentle-slide {
    0% {
        transform: translate3d(0,5px,0);
    }
    100% {
        transform: translate3d(0,-5px,0);
    }
}

@keyframes gentle-slide-background {
    0% {
        transform: translate3d(0,3px,0);
    }
    100% {
        transform: translate3d(0,-3px,0);
    }
}

*,*:before,*:after {
    box-sizing: border-box;
    margin: 0;
}

.dress {
    position: absolute;
    z-index: 0;
    width: auto;
    left: -80px;
    height: 400px;
    bottom: -65px;
    max-height: 45svh;

  animation: gentle-slide 4s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
}

section:not(.intro) {
    overflow-y: scroll;
}

.dress-code {
    color: #222;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    padding: 100px;
}

.rsvp-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #ffffff;
    background: linear-gradient(135deg, #4fc3f7, #0288d1); /* Soft Sky Blue to Rich Light Blue */
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(2, 136, 209, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
  }

  /* Hover & Interaction Effects */
  .rsvp-button:hover {
    background: linear-gradient(135deg, #29b6f6, #039be5); /* Slightly brighter on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 136, 209, 0.4);
  }

  .rsvp-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(2, 136, 209, 0.3);
  }

  /* Arrow Icon Animation */
  .rsvp-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
  }

  .rsvp-button:hover .rsvp-icon {
    transform: translateX(4px);
  }

img {
    width: 100px;
}
section {
    width: 100%;
    height: 100dvh;
    display: grid;
    place-items: center;
    /* scroll-snap-align: start;
    scroll-snap-stop: always; */
}
.intro {
    background-image: url('background square.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    color: var(--blue);
}

.dress-code {
    background-image: url('background square.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.prayer {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),url('dulce.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-block: clamp(2rem, 8vh, 6rem);
    padding-inline: 2vw;
}

.prayer h2 {
    max-width: 30ch;
}

.church {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),url('olph.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-block: clamp(2rem, 8vh, 6rem);
}

.reception {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),url('reception3.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-block: clamp(2rem, 8vh, 6rem);
}

.church > h2 {
    max-width: 30ch;
}

.church > p {
    width: 100%;
    max-width: 35ch;
}

.invite-container {
    height: calc(100% - 16px);
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    border-radius: 12px;
    max-width: 500px;
    background: #F8F2F0;
    overflow: hidden;
}

.details-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    text-align: center;
    padding: 50px;
    height: 100%;
    overflow-y: scroll;
}

.invite {
  animation: gentle-slide 4s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
}

.invite p {
    font-family: 'Belleza';
    text-transform: uppercase;
    font-size: 13px;
    max-width: 220px;
    line-height: 18px;
}

h1,h2 {
  font-family: "Pinyon Script", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 40px;
  text-align: center;
}

.dress-code h3 {
    text-align: center;
}

.intro h1, .intro h2 {
  animation: gentle-slide 4s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
}

.date {
    display: flex;
    width: 100%;
    max-width: 350px;
    justify-content: space-around;
    padding-top: 30px;
}

.day {
    position: relative;
    font-size: 30px;
    color: var(--gold);
    font-weight: 600;
    padding-block: 5px;
    text-box-trim: trim-both;
    text-box-edge: cap alphabetic;
}

/* .day::before {
    content: 'August';
    text-transform: uppercase;
    position: absolute;
    top: 0;
    transform: translate(-50%, -100%);
    left: 50%;
    font-size: 20px;
    font-weight: normal;
    color: var(--blue);
} */

.details {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    align-items: center;

  animation: gentle-slide 4s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
}

.sub-date {
    width: 100px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    font-weight: 500;
}

.sub-date:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1.5px solid currentcolor;
    border-left: none;
    border-right: none;
    left: 0;
}

.curved-text {
      position: absolute;
      top: 0;               /* Adjust this to push AUGUST higher or lower above the 9 */
      left: 50%;
      transform: translateX(-50%); /* Perfectly centers the SVG horizontally */
      width: 160px;             /* Constrain the width so it frames the 9 nicely */
      height: auto;
      fill: currentColor;
    }

.location {
    font-family: 'Belleza';
    color: var(--gold);
}

.background {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    scale: 1.05;
    animation: gentle-slide-background 4s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
}

.schedule-box {
            /* Translucent darkened background */
            background: rgba(15, 20, 30, 0.25); 
            backdrop-filter: blur(2px); /* Optional: smooth glassmorphism effect */
            -webkit-backdrop-filter: blur(2px);
            padding: 30px;
            border-radius: 15px;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
            max-width: 450px;
            width: 100%;
            /* Subtle light blue border glow */
            border: 1px solid rgba(135, 206, 250, 0.25); 
            box-sizing: border-box;
        }

        .title {
            text-align: center;
            color: #ffffff;
            font-size: 1.8rem;
            margin: 0 0 5px 0;
            letter-spacing: 1px;
        }

        .subtitle {
            text-align: center;
            color: #b0c4de; /* Light steel blue */
            font-size: 0.9rem;
            margin-bottom: 30px;
            font-style: italic;
        }

        .timeline {
            position: relative;
            padding-left: 30px;
            list-style: none;
            margin: 0;
        }

        /* The vertical timeline line - Light Blue */
        .timeline::before {
            content: '';
            position: absolute;
            left: 7px;
            top: 5px;
            bottom: 5px;
            width: 2px;
            background: #87cefa; /* Light Sky Blue */
            box-shadow: 0 0 8px rgba(135, 206, 250, 0.5); /* Soft glow */
        }

        .timeline-item {
            position: relative;
            margin-bottom: 25px;
        }

        .timeline-item:last-child {
            margin-bottom: 0;
        }

        /* The timeline bullet dots */
        .timeline-item::before {
            content: '';
            position: absolute;
            left: -30px;
            top: 6px;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: #0f141e; /* Matches dark background */
            border: 2px solid #87cefa;
            z-index: 1;
            box-shadow: 0 0 6px rgba(135, 206, 250, 0.8);
        }

        .time-badge {
            font-size: 0.85rem;
            font-weight: bold;
            color: #a0e0ff; /* Bright readable light blue */
            letter-spacing: 1.5px;
            margin-bottom: 3px;
            text-transform: uppercase;
        }

        .event-name {
            font-size: 1.15rem;
            color: #ffffff;
            margin: 0 0 5px 0;
            font-weight: 600;
        }

        .event-details {
            font-size: 0.9rem;
            color: #d1d5db; /* Off-white for easy reading */
            margin: 0;
            font-family: 'Arial', sans-serif;
            line-height: 1.4;
        }