* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #f8eee7;
    color: #71343a;
    overflow: hidden;
}


/* =========================
   FIXED OPENING COVER
========================= */

.hero {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100vh;
    height: 100svh;

    z-index: 100;

    overflow: hidden;

    display: flex;
    justify-content: center;
    align-items: center;

    background-image: url("images/download.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    transition: opacity 0.7s ease;
}


/* =========================
   TEXT
========================= */

.invitation-content {
    position: absolute;

    z-index: 5;

    top: 16%;

    left: 50%;

    transform: translateX(-50%);

    width: 75%;
    max-width: 560px;

    text-align: center;
}


/* =========================
   FAMILY TEXT
========================= */

.families {
    font-family: "Cormorant Garamond", serif;

    font-size: 14px;

    letter-spacing: 4px;

    text-transform: uppercase;

    color: #713f45;

    margin-bottom: 20px;
}


/* =========================
   LINE + HEART
========================= */

.small-line {
    width: 170px;

    margin: 0 auto 4px;

    display: flex;
    align-items: center;

    gap: 12px;
}

.small-line span:not(.heart) {
    height: 1px;

    flex: 1;

    background: #bd945b;
}

.heart {
    color: #9b5b59;

    font-size: 22px;
}


/* =========================
   NAMES
========================= */

h1 {
    font-family: "Cormorant Garamond", serif;

    font-size: clamp(55px, 9vw, 90px);

    font-weight: 500;

    line-height: 0.9;

    color: #722d38;

    margin-bottom: 16px;
}

.ampersand {
    font-family: "Great Vibes", cursive;

    font-size: 0.7em;

    color: #b68b4e;

    margin: 0 8px;
}


/* =========================
   INVITATION TEXT
========================= */

.invite-text {
    font-family: "Cormorant Garamond", serif;

    font-size: 16px;

    line-height: 1.8;

    letter-spacing: 3px;

    text-transform: uppercase;

    color: #714047;

    margin-bottom: 18px;
}


/* =========================
   DATE
========================= */

.date {
    font-family: "Cormorant Garamond", serif;

    font-size: 15px;

    letter-spacing: 5px;

    color: #9b7046;

    margin-bottom: 20px;
}


/* =========================
   TAGLINE
========================= */

.tagline {
    font-family: "Great Vibes", cursive;

    font-size: 32px;

    color: #87544d;
}


/* =========================
   BUTTON
========================= */

.open-button {
    position: relative;

    margin-top: 20px;

    width: 170px;

    padding: 10px 18px;

    border: 1px solid #b38a55;

    border-radius: 30px;

    background: #7a343b;

    color: #fffaf5;

    font-family: "Cormorant Garamond", serif;

    font-size: 13px;

    letter-spacing: 1.5px;

    text-decoration: none;

    display: inline-flex;

    justify-content: center;

    align-items: center;

    cursor: pointer;

    transition: all 0.3s ease;
}

.open-button span {
    font-size: 16px;
    margin-left: 6px;
}

.open-button:hover {
    background: #91454c;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(90, 45, 45, 0.18);
}


/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    .invitation-content {
        top: 15%;
        width: 75%;
    }

    .families {
        font-size: 10px;
        letter-spacing: 2.5px;
    }

    .small-line {
        width: 130px;
    }

    h1 {
        font-size: 55px;
    }

    .invite-text {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .date {
        font-size: 13px;
        letter-spacing: 3px;
    }

    .tagline {
        font-size: 27px;
    }

    .open-button {
        top: 66%;
        width: 200px;
    }
}

/* =================================
   PAGE 2 - WELCOME
================================= */

.welcome-body {
    margin: 0;
    background: #faf3ed;
    color: #71343a;
}
.welcome-page {
    min-height: 100vh;
    min-height: 100svh;

    position: relative;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 60px 25px;

    overflow: hidden;

    background-image: url("images/bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


/* Main page */

.welcome-page {
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    text-align: center;

    padding: 60px 25px;

    position: relative;

    overflow: hidden;
}


/* Small heading */

.welcome-small {
    font-family: "Cormorant Garamond", serif;

    font-size: 12px;

    letter-spacing: 4px;

    color: #9b7046;

    text-transform: uppercase;

    margin: 0 0 18px;
}


/* Decorative line */

.welcome-line {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    width: 180px;

    margin-bottom: 25px;
}


.welcome-line span:not(.welcome-heart) {
    height: 1px;

    background: #bd945b;

    flex: 1;
}


.welcome-heart {
    color: #9b5b59;

    font-size: 25px;

    line-height: 1;
}


/* Main title */

.welcome-title {
    font-family: "Great Vibes", cursive;
    font-size: 50px;
    font-weight: normal;
    line-height: 1.1;
    color: #74343b;
    white-space: nowrap;
    margin: 0 0 28px;
}


/* Description */

.welcome-text {
    max-width: 480px;

    font-family: "Cormorant Garamond", serif;

    font-size: 16px;

    line-height: 1.0;

    color: #654e4a;

    margin: 0 0 30px;
}


.welcome-text strong {
    font-weight: 600;

    color: #74343b;
}


/* Date */

.welcome-date {
    font-family: "Cormorant Garamond", serif;

    font-size: 15px;

    letter-spacing: 5px;

    color: #9b7046;

    margin: 0 0 35px;
}


/* Continue button */

.continue-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    width: 160px;

    padding: 11px 18px;

    border: 1px solid #b38a55;

    border-radius: 30px;

    background: #7a343b;

    color: #fffaf5;

    font-family: "Cormorant Garamond", serif;

    font-size: 13px;

    letter-spacing: 2px;

    text-decoration: none;

    transition: all 0.3s ease;
}


.continue-button span {
    font-size: 17px;
}


.continue-button:hover {
    background: #91454c;

    transform: translateY(-2px);

    box-shadow: 0 7px 18px rgba(90, 45, 45, 0.18);
}


/* =================================
   MOBILE
================================= */

@media (max-width: 600px) {

    .welcome-page {
        padding: 40px 25px;
    }


    .welcome-small {
        font-size: 10px;

        letter-spacing: 3px;
    }


    .welcome-title {
        font-size: 43px;
        max-width: 95%;
        line-height: 1.05;
    }


    .welcome-text {
        font-size: 16px;

        line-height: 1.7;
    }


    .welcome-date {
        font-size: 13px;

        letter-spacing: 4px;
    }


    .continue-button {
        width: 150px;
    }

}

/* =================================
   PAGE 3 — EVENT DETAILS
================================= */

.details-body {
    margin: 0;

    background: #f8eee7;

    color: #71343a;
}


.details-page {
    min-height: 100vh;
    min-height: 100svh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 50px 25px;

    text-align: center;

    position: relative;

    background-image: url("images/bg.png");

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;
}

.details-content {
    width: 70%;
    max-width: 500px;

    padding: 20px 25px;

    display: flex;
    flex-direction: column;
    align-items: center;

    background: transparent;
}


/* Small heading */

.details-small {

    font-family: "Cormorant Garamond", serif;

    font-size: 11px;

    letter-spacing: 4px;

    color: #9b7046;

    margin: 0 0 14px;
}


/* Decorative line */

.details-line {

    width: 180px;

    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 0px;
}


.details-line span:not(:nth-child(2)) {

    height: 1px;

    background: #bd945b;

    flex: 1;
}


.details-line span:nth-child(2) {

    color: #9b5b59;

    font-size: 22px;
}


/* Title */

.details-title {

    font-family: "Great Vibes", cursive;

    font-size: clamp(40px, 8vw, 60px);

    font-weight: normal;

    line-height: 1.00;

    color: #74343b;

    margin: 0 0 8px;
}


/* Intro */

.details-intro {

    max-width: 390px;

    font-family: "Cormorant Garamond", serif;

    font-size: 12px;

    line-height: 1.00;

    color: #654e4a;

    margin: 0 0 14px;
}


/* Event information */

.event-info {

    width: 100%;

    display: flex;

    justify-content: center;

    gap: 20px;

    margin-bottom: 14px;
}


.info-item {

    flex: 1;

    padding: 15px 10px;

    border-top: 1px solid #d2b17d;

    border-bottom: 1px solid #d2b17d;
}


.info-icon {

    display: block;

    font-size: 20px;

    color: #a8754c;

    margin-bottom: 8px;
}


.info-label {

    font-family: "Cormorant Garamond", serif;

    font-size: 10px;

    letter-spacing: 2px;

    color: #9b7046;

    margin: 0 0 7px;
}


.info-value {

    font-family: "Cormorant Garamond", serif;

    font-size: 15px;

    line-height: 1.4;

    color: #71343a;

    margin: 0;
}


/* Location button */

.location-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    width: 145px;
    height: 36px;

    border: 1px solid #b38a55;
    border-radius: 20px;

    background: rgba(255, 250, 245, 0.8);
    color: #74343b;

    font-family: "Cormorant Garamond", serif;
    font-size: 13px;
    letter-spacing: 1.5px;

    text-decoration: none;

    margin: 0 0 12px;

    transition: 0.3s ease;
}

.location-button:hover {
    background: #7a343b;
    color: #fffaf5;
}


.details-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    width: 135px;
    height: 36px;

    border-radius: 20px;

    background: #7a343b;
    color: #fffaf5;

    font-family: "Cormorant Garamond", serif;
    font-size: 13px;
    letter-spacing: 1.5px;

    text-decoration: none;

    transition: 0.3s ease;
}

.details-next span {
    font-size: 16px;
}



/* Mobile */

@media (max-width: 600px) {

    .event-info {

        gap: 8px;
    }


    .info-item {

        padding: 12px 5px;
    }


    .info-value {

        font-size: 13px;
    }


    .details-intro {

        font-size: 18px;
    }

}

/* =================================
   PAGE 4 — PHOTO GALLERY
================================= */

.gallery-body {
    margin: 0;
    background: #f8eee7;
    color: #71343a;
}


.gallery-page {

    min-height: 100vh;
    min-height: 100svh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 35px 20px;

    background-image: url("images/bg.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    text-align: center;
}


.gallery-content {

    width: 72%;
    max-width: 500px;

    display: flex;
    flex-direction: column;
    align-items: center;
}


.gallery-small {

    font-family: "Cormorant Garamond", serif;

    font-size: 11px;

    letter-spacing: 4px;

    color: #9b7046;

    margin: 0 0 12px;
}


.gallery-line {

    width: 150px;

    display: flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 15px;
}


.gallery-line span:not(:nth-child(2)) {

    height: 1px;

    background: #bd945b;

    flex: 1;
}


.gallery-line span:nth-child(2) {

    color: #9b5b59;

    font-size: 20px;
}


.gallery-title {

    font-family: "Great Vibes", cursive;

    font-size: clamp(38px, 7vw, 55px);

    font-weight: normal;

    line-height: 1;

    color: #74343b;

    margin: 0 0 20px;
}


/* Photo grid */

.photo-grid {

    width: 100%;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10px;

    margin-bottom: 20px;
}


.photo {

    height: 125px;

    overflow: hidden;

    border: 1px solid #c49b61;

}


.photo-large {

    grid-column: span 2;

    height: 180px;
}


.photo img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}
.photo-large img {
    object-position: center 20%;
}
.photo:nth-child(2) img {
    object-position: center 35%;
}
.photo:nth-child(3) img {
    object-position: center 90%;
}


/* Continue */

.gallery-next {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 6px;

    width: 135px;

    height: 36px;

    border-radius: 20px;

    background: #7a343b;

    color: #fffaf5;

    font-family: "Cormorant Garamond", serif;

    font-size: 13px;

    letter-spacing: 1.5px;

    text-decoration: none;
}


.gallery-next span {

    font-size: 16px;
}

/* =================================
   PAGE 5 — COUNTDOWN
================================= */

.countdown-body {
    margin: 0;

    background: #f8eee7;

    color: #71343a;
}


.countdown-page {

    min-height: 100vh;
    min-height: 100svh;

    display: flex;

    justify-content: center;
    align-items: center;

    padding: 40px 20px;

    text-align: center;

    background-image: url("images/bg.png");

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;
}


.countdown-content {

    width: 72%;

    max-width: 520px;

    display: flex;

    flex-direction: column;

    align-items: center;
}


/* Small heading */

.countdown-small {

    font-family: "Cormorant Garamond", serif;

    font-size: 11px;

    letter-spacing: 4px;

    color: #9b7046;

    margin: 0 0 14px;
}


/* Decorative line */

.countdown-line {

    width: 160px;

    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 18px;
}


.countdown-line span:not(:nth-child(2)) {

    height: 1px;

    background: #bd945b;

    flex: 1;
}


.countdown-line span:nth-child(2) {

    color: #9b5b59;

    font-size: 21px;
}


/* Title */

.countdown-title {

    font-family: "Great Vibes", cursive;

    font-size: clamp(43px, 8vw, 62px);

    font-weight: normal;

    line-height: 1.05;

    color: #74343b;

    margin: 0 0 15px;
}


/* Date */

.countdown-date {

    font-family: "Cormorant Garamond", serif;

    font-size: 15px;

    letter-spacing: 5px;

    color: #9b7046;

    margin: 0 0 28px;
}


/* Timer */

.timer {

    display: flex;

    justify-content: center;

    gap: 10px;

    width: 100%;

    margin-bottom: 25px;
}


.time-box {

    width: 75px;

    height: 75px;

    border: 1px solid #c5a06c;

    background: rgba(255, 248, 242, 0.35);

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;
}


.time-box span {

    font-family: "Cormorant Garamond", serif;

    font-size: 25px;

    color: #74343b;
}


.time-box small {

    font-family: "Cormorant Garamond", serif;

    font-size: 10px;

    letter-spacing: 1px;

    color: #8b625a;

    margin-top: 3px;
}


/* Message */

.countdown-message {

    max-width: 350px;

    font-family: "Cormorant Garamond", serif;

    font-size: 17px;

    line-height: 1.5;

    color: #654e4a;

    margin: 0 0 25px;
}


/* Continue */

.countdown-next {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

    width: 135px;

    height: 36px;

    border-radius: 20px;

    background: #7a343b;

    color: #fffaf5;

    font-family: "Cormorant Garamond", serif;

    font-size: 13px;

    letter-spacing: 1.5px;

    text-decoration: none;
}


.countdown-next span {

    font-size: 16px;
}


/* Mobile */

@media (max-width: 600px) {

    .countdown-content {

        width: 72%;
    }


    .timer {

        gap: 6px;
    }


    .time-box {

        width: 62px;

        height: 68px;
    }


    .time-box span {

        font-size: 21px;
    }


    .time-box small {

        font-size: 8px;
    }


    .countdown-message {

        font-size: 16px;
    }

}

/* =================================
   PAGE 6 — FINAL
================================= */

.final-body {
    margin: 0;
    background: #f8eee7;
    color: #71343a;
}


.final-page {

    min-height: 100vh;
    min-height: 100svh;

    display: flex;

    justify-content: center;
    align-items: center;

    padding: 40px 20px;

    text-align: center;

    background-image: url("images/page2-background.png");

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;
}


.final-content {

    width: 72%;

    max-width: 500px;

    display: flex;

    flex-direction: column;

    align-items: center;
}


.final-small {

    font-family: "Cormorant Garamond", serif;

    font-size: 11px;

    letter-spacing: 4px;

    color: #9b7046;

    margin: 0 0 14px;
}


.final-line {

    width: 150px;

    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 22px;
}


.final-line span:not(:nth-child(2)) {

    height: 1px;

    background: #bd945b;

    flex: 1;
}


.final-line span:nth-child(2) {

    color: #9b5b59;

    font-size: 21px;
}


.final-title {

    font-family: "Great Vibes", cursive;

    font-size: clamp(42px, 8vw, 60px);

    font-weight: normal;

    line-height: 1.1;

    color: #74343b;

    max-width: 460px;

    margin: 0 auto 20px;
}


.final-names {

    font-family: "Great Vibes", cursive;

    font-size: 38px;

    color: #8b4b50;

    margin: 0 0 22px;
}


.final-message {

    max-width: 350px;

    font-family: "Cormorant Garamond", serif;

    font-size: 17px;

    line-height: 1.6;

    color: #654e4a;

    margin: 0 0 20px;
}


.final-heart {

    font-size: 27px;

    color: #9b5b59;

    margin-bottom: 25px;
}


.back-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    width: 155px;

    height: 36px;

    border-radius: 20px;

    background: #7a343b;

    color: #fffaf5;

    font-family: "Cormorant Garamond", serif;

    font-size: 13px;

    letter-spacing: 1.3px;

    text-decoration: none;

    transition: 0.3s ease;
}


.back-button span {

    font-size: 16px;
}


.back-button:hover {

    background: #9b5b59;
}


/* Mobile */

@media (max-width: 600px) {

    .final-title {

        font-size: 43px;

        max-width: 95%;
    }


    .final-names {

        font-size: 34px;
    }


    .final-message {

        font-size: 16px;

        max-width: 300px;
    }

}

/* =================================
   SOFT INVITATION ANIMATIONS
================================= */

/* Page entrance */

@keyframes pageFade {

    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Main content */

.welcome-content,
.details-content,
.gallery-content,
.countdown-content,
.final-content {

    animation: pageFade 1.2s ease-out both;
}


/* Small headings */

.welcome-small,
.details-small,
.gallery-small,
.countdown-small,
.final-small {

    animation: pageFade 1s ease-out 0.15s both;
}


/* Decorative lines */

.welcome-line,
.details-line,
.gallery-line,
.countdown-line,
.final-line {

    animation: lineAppear 1s ease-out 0.35s both;
}


@keyframes lineAppear {

    from {
        opacity: 0;
        transform: scaleX(0.4);
    }

    to {
        opacity: 1;
        transform: scaleX(1);
    }
}


/* Main titles */

.welcome-title,
.details-title,
.gallery-title,
.countdown-title,
.final-title {

    animation: titleReveal 1.2s ease-out 0.3s both;
}


@keyframes titleReveal {

    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Event information */

.event-info {

    animation: pageFade 1s ease-out 0.55s both;
}


/* Gallery photos */

.photo {

    animation: photoReveal 1s ease-out both;
}


.photo:nth-child(1) {
    animation-delay: 0.35s;
}

.photo:nth-child(2) {
    animation-delay: 0.5s;
}

.photo:nth-child(3) {
    animation-delay: 0.65s;
}


@keyframes photoReveal {

    from {
        opacity: 0;
        transform: translateY(15px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* Gentle floating heart */

.welcome-heart,
.details-line span:nth-child(2),
.gallery-line span:nth-child(2),
.countdown-line span:nth-child(2),
.final-line span:nth-child(2) {

    animation: heartFloat 2.5s ease-in-out infinite;
}


@keyframes heartFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}


/* Buttons */

.open-button,
.continue-button,
.location-button,
.details-next,
.gallery-next,
.countdown-next,
.back-button {

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}


.open-button:hover,
.continue-button:hover,
.location-button:hover,
.details-next:hover,
.gallery-next:hover,
.countdown-next:hover,
.back-button:hover {

    transform: translateY(-2px);

    box-shadow:
        0 5px 15px rgba(116, 52, 59, 0.15);
}


/* Countdown boxes */

.time-box {

    animation: timerAppear 0.8s ease-out both;
}


.time-box:nth-child(1) {
    animation-delay: 0.3s;
}

.time-box:nth-child(2) {
    animation-delay: 0.4s;
}

.time-box:nth-child(3) {
    animation-delay: 0.5s;
}

.time-box:nth-child(4) {
    animation-delay: 0.6s;
}


@keyframes timerAppear {

    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Final heart */

.final-heart {

    animation: heartPulse 2s ease-in-out infinite;
}


@keyframes heartPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.12);
    }
}

/* =================================
   MUSIC BUTTON
================================= */

.music-toggle {

    position: fixed;

    top: 20px;
    right: 20px;

    width: 38px;
    height: 38px;

    border: 1px solid #b38a55;

    border-radius: 50%;

    background: rgba(255, 248, 242, 0.75);

    color: #74343b;

    font-family: "Cormorant Garamond", serif;

    font-size: 18px;

    cursor: pointer;

    z-index: 100;

    display: flex;

    align-items: center;

    justify-content: center;

    transition: 0.3s ease;

    box-shadow: 0 3px 10px rgba(116, 52, 59, 0.08);
}


.music-toggle:hover {

    background: #7a343b;

    color: #fffaf5;

    transform: scale(1.05);
}


.music-toggle.playing {

    animation: musicPulse 1.8s ease-in-out infinite;
}


@keyframes musicPulse {

    0%,
    100% {
        box-shadow:
            0 0 0 0 rgba(122, 52, 59, 0.15);
    }

    50% {
        box-shadow:
            0 0 0 7px rgba(122, 52, 59, 0.04);
    }
}

@media (max-width: 600px) {
    .families {
        margin-top: 25px;
    }
}