@font-face {
    font-family: 'Caslon Openface';
    src: url('../fonts/Caslon-Open-Face-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Berling Roman';
    src: url('../fonts/Berling-Roman.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --gold: #f5d997;
    --ivory: #FAF8F4;
    --champagne: #F5E8D3;
    --dark: #111111;

    --font-heading:
        'Caslon Openface',
        serif;

    --font-sub-heading:
        'Berling Roman',
        serif;

    --font-body:
        'Cormorant Garamond',
        serif;

    --font-script:
        'Great Vibes',
        cursive;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--ivory);
    overflow-x: hidden;
    font-family: 'Cormorant Garamond', serif;
}

/* OPENING SCREEN */

.opening-screen {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    /* background:
        radial-gradient(circle at center,
            #490107,
            #111); */

    background:
        radial-gradient(rgba(73, 1, 7, 0.379),
            rgba(73, 1, 7, 0.379)),
        url('../images/card-bg.png');
}

.invitation-card {
    text-align: center;
    padding: 70px;
    border: 1px solid rgba(212, 175, 55, .3);
    backdrop-filter: blur(20px);
}

.monogram {
    color: var(--gold);
    letter-spacing: 8px;
    font-size: 1rem;
}

.invitation-card-date-main {
    font-family: var(--font-heading);
    color: var(--gold);
    letter-spacing: 1px;
    font-weight: 300;
    font-size: 10px;
}

.invitation-card-date-sub {
    font-family: var(--font-sub-heading);
    color: var(--gold);
    letter-spacing: 8px;
    font-size: 8px;
}

.invitation-card h1 {
    /* font-family: 'Great Vibes', cursive; */
    font-family: var(--font-heading);
    color: white;
    font-size: 4rem;
    font-weight: 400;
}

.invitation-card h2 {
    /* font-family: 'Great Vibes', cursive; */
    font-family: var(--font-heading);
    color: white;
    font-size: 4rem;
    font-weight: 400;
}

.ampersand {
    color: var(--gold);
    font-size: 2rem;
}

.invite-text {
    font-family: var(--font-sub-heading);
    color: #ddd;
    margin: 30px 0;
    font-size: 1.2rem;
}

#openInvitation {
    padding: 16px 40px;
    background: transparent;
    border: 1px solid var(--gold);
    color: white;
    cursor: pointer;
    transition: .4s;
}

#openInvitation:hover {
    background: var(--gold);
}

/* HERO */

#mainSite {
    display: none;
}

.hero {
    height: 100vh;
    position: relative;

    background:
        linear-gradient(rgba(73, 1, 7, .4),
            rgba(73, 1, 7, .5)),
        url('../images/hero.jpg');

    background-size: cover;
    background-position: center;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 90%;
}

.subtitle {
    font-family: var(--font-sub-heading);
    letter-spacing: 4px;
    text-transform: uppercase;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 6rem;
    letter-spacing: 2px;
    font-weight: 400;
    line-height: 1.2;
}

.hero-content h1 span {
    color: var(--gold);
}

.hero-content p {
    font-size: 1.4rem;
    margin: 20px 0;
}

.date {
    font-family: var(--font-heading);
    margin-bottom: 40px;
    font-weight: 400;
    text-transform: uppercase;
    font-size: 1.5rem;
    color: var(--gold);
}

.luxury-btn {
    text-decoration: none;
    color: white;
    border: 1px solid var(--gold);
    padding: 18px 45px;
    transition: .4s;
}

.luxury-btn:hover {
    background: var(--gold);
}

/* STORY */

.story-section {
    padding: 120px 10%;
}

.story-section h2 {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    margin-bottom: 100px;
}

.timeline {
    max-width: 900px;
    margin: auto;
}

.timeline-item {
    text-align: center;
    margin-bottom: 80px;
}

.circle {
    width: 80px;
    height: 80px;
    margin: auto;
    border-radius: 50%;
    border: 2px solid var(--gold);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 2rem;

    margin-bottom: 20px;
}

.timeline-item h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 10px;
}

/* PARTICLES */

.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.particles::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;

    background-image:
        radial-gradient(rgba(255, 255, 255, .8) 1px,
            transparent 1px);

    background-size: 50px 50px;

    animation: floatParticles 30s linear infinite;
}

@keyframes floatParticles {

    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-200px);
    }

}

@media(max-width:768px) {

    .hero-content h1 {
        font-size: 4rem;
    }

    .story-section h2 {
        font-size: 2.5rem;
    }

    .invitation-card {
        padding: 40px;
    }

}




/* ==========================
   COUNTDOWN SECTION
========================== */

.countdown-section {

    position: relative;

    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;

    background:
        linear-gradient(rgba(73, 1, 7, .65),
            rgba(73, 1, 7, .65)),
        url('../images/countdown-bg.jpg');

    background-size: cover;
    background-position: center;
    background-attachment: fixed;

    overflow: hidden;
}

.countdown-overlay {

    position: absolute;
    inset: 0;

    backdrop-filter: blur(2px);
}

.countdown-content {

    position: relative;
    z-index: 10;

    width: 90%;
    max-width: 1200px;
}

.countdown-subtitle {

    font-family: var(--font-sub-heading);
    letter-spacing: 4px;
    text-transform: uppercase;

    color: var(--gold);

    display: block;

    margin-bottom: 20px;
}

.countdown-content h2 {

    font-family: var(--font-heading);

    color: white;
    font-weight: 400;

    font-size: 4rem;

    margin-bottom: 20px;
}

.countdown-content p {

    color: #ddd;

    font-size: 1.3rem;

    margin-bottom: 70px;
}

#countdown {

    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

/* .count-box {

    width: 220px;
    height: 220px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    background: rgba(255, 255, 255, .08);

    border: 1px solid rgba(212, 175, 55, .4);

    backdrop-filter: blur(20px);

    border-radius: 30px;

    transition: .4s ease;
} */

.count-box {

    position: relative;
    overflow: hidden;

    width: 220px;
    height: 220px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    background: rgba(255, 255, 255, .08);

    border: 1px solid rgba(212, 175, 55, .4);

    backdrop-filter: blur(20px);

    border-radius: 30px;

    transition: .4s ease;

}

.count-box:hover {

    transform: translateY(-10px);

    border-color: var(--gold);

    box-shadow:
        0 0 30px rgba(212, 175, 55, .25);
}

.count-box span {

    font-size: 5rem;

    font-family: var(--font-heading);

    color: white;
    font-weight: 400;

    line-height: 1;
}

.count-box small {

    font-family: var(--font-sub-heading);

    margin-top: 15px;

    color: var(--gold);

    text-transform: uppercase;

    letter-spacing: 3px;
}

/* GOLD GLOW */

.count-box::before {

    content: '';

    position: absolute;

    width: 200%;
    height: 200%;

    background:
        linear-gradient(120deg,
            transparent,
            rgba(212, 175, 55, .15),
            transparent);

    transform: rotate(35deg);

    animation: shimmer 8s infinite;
}

@keyframes shimmer {

    from {
        transform:
            translateX(-300px) rotate(35deg);
    }

    to {
        transform:
            translateX(500px) rotate(35deg);
    }
}

@media(max-width:768px) {

    .count-box {

        width: 150px;
        height: 150px;
    }

    .count-box span {

        font-size: 3rem;
    }

    .countdown-content h2 {

        font-size: 2.8rem;
    }

}

/* ============================ */
.count-box span {

    display: block;
    transition: transform .3s ease;

}

.count-box.animate span {

    transform: scale(1.08);

}

/* ==========================
   GALLERY
========================== */

.gallery-section {

    padding: 140px 8%;

    background: var(--ivory);
}

.gallery-heading {

    text-align: center;

    margin-bottom: 80px;
}

.gallery-heading span {

    font-family: var(--font-sub-heading);
    color: var(--gold);

    text-transform: uppercase;

    letter-spacing: 3px;
}

.gallery-heading h2 {

    font-family: var(--font-heading);

    font-size: 4rem;
    font-weight: 400;

    margin: 20px 0;
}

.gallery-heading p {

    max-width: 700px;

    margin: auto;

    font-size: 1.2rem;
}

/* MASONRY */

.masonry-gallery {

    columns: 4 300px;

    column-gap: 20px;
}

.masonry-gallery a {

    display: block;

    margin-bottom: 20px;

    overflow: hidden;

    border-radius: 20px;

    position: relative;
}

.masonry-gallery img {

    width: 100%;

    display: block;

    border-radius: 20px;

    transition:
        transform .8s ease,
        filter .5s ease;
}

.masonry-gallery a:hover img {

    transform: scale(1.08);

    filter: brightness(.85);
}

/* GOLD OVERLAY */

.masonry-gallery a::after {

    content: '';

    position: absolute;

    inset: 0;

    background:
        linear-gradient(transparent,
            rgba(212, 175, 55, .2));

    opacity: 0;

    transition: .4s;
}

.masonry-gallery a:hover::after {

    opacity: 1;
}



/* ==========================
   VENUE SECTION
========================== */

.venue-section {

    padding: 140px 8%;

    background: #fff;
}

.venue-heading {

    text-align: center;

    margin-bottom: 80px;
}

.venue-heading span {

    font-family: var(--font-sub-heading);

    color: var(--gold);

    letter-spacing: 3px;

    text-transform: uppercase;
}

.venue-heading h2 {

    font-size: 4rem;

    margin: 20px 0;
    font-weight: 400;

    font-family: var(--font-heading);
}

.venue-heading p {

    max-width: 700px;

    margin: auto;

    font-size: 1.2rem;
}

.venue-wrapper {

    display: grid;

    grid-template-columns:
        400px 1fr;

    gap: 40px;

    align-items: center;
}

/* INFO PANEL */

.venue-details {

    display: flex;

    flex-direction: column;

    gap: 25px;
}

.venue-card {

    background:
        rgba(255, 255, 255, .8);

    border:
        1px solid rgba(212, 175, 55, .3);

    backdrop-filter:
        blur(20px);

    padding: 30px;

    border-radius: 25px;

    transition: .4s;
}

.venue-card:hover {

    transform: translateY(-5px);

    box-shadow:
        0 15px 40px rgba(0, 0, 0, .08);
}

.venue-card h3 {

    margin-bottom: 15px;

    color: var(--gold);

    font-family:
        'Playfair Display',
        serif;
}

.venue-card p {

    margin-bottom: 8px;
}

.directions-btn {

    display: inline-block;

    text-align: center;

    padding: 18px;

    border: 1px solid var(--gold);

    color: #111;

    text-decoration: none;

    transition: .4s;
}

.directions-btn:hover {

    background: var(--gold);

    color: white;
}

/* MAP */

.venue-map {

    overflow: hidden;

    border-radius: 30px;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, .1);
}

.venue-map iframe {

    width: 100%;

    height: 650px;

    border: none;
}

/* MOBILE */

@media(max-width:991px) {

    .venue-wrapper {

        grid-template-columns: 1fr;
    }

    .venue-map iframe {

        height: 450px;
    }

}


/* ==========================
   RSVP
========================== */

.rsvp-section {

    position: relative;

    padding: 150px 20px;

    background:
        linear-gradient(rgba(73, 1, 7, 0.379),
            rgba(73, 1, 7, 0.379)),
        url('../images/rsvp-bg.png');

    background-size: cover;
    background-position: center;
}

.rsvp-container {

    max-width: 800px;

    margin: auto;

    text-align: center;

    padding: 60px;

    background:
        rgba(255, 255, 255, .08);

    border:
        1px solid rgba(212, 175, 55, .4);

    backdrop-filter:
        blur(20px);

    border-radius: 35px;
}

.rsvp-subtitle {

    font-family: var(--font-sub-heading);
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 4px;
}

.rsvp-container h2 {

    font-family: var(--font-heading);

    color: white;

    font-size: 4rem;
    font-weight: 400;

    margin: 20px 0;
}

.rsvp-container p {

    color: #ddd;

    margin-bottom: 50px;
}

.form-group {

    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {

    width: 100%;

    padding: 18px 20px;

    border: none;

    border-radius: 15px;

    background:
        rgba(255, 255, 255, .12);

    color: white;

    outline: none;

    font-size: 1rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {

    color: #ccc;
}

.form-group select {

    color: white;
}

.form-group option {

    color: black;
}

.rsvp-btn {

    margin-top: 20px;

    padding: 18px 50px;

    background: transparent;

    border: 1px solid var(--gold);

    color: white;

    cursor: pointer;

    transition: .4s;
}

.rsvp-btn:hover {

    background: var(--gold);
}

.success-message {

    display: none;

    margin-top: 30px;

    color: var(--gold);

    font-size: 1.2rem;
}

@media(max-width:768px) {

    .rsvp-container {

        padding: 40px 25px;
    }

    .rsvp-container h2 {

        font-size: 2.8rem;
    }

}


/* ==========================
   BACK TO TOP BUTTON
========================== */

#backToTop {

    position: fixed;

    bottom: 40px;
    right: 40px;

    width: 55px;
    height: 55px;

    border-radius: 50%;

    border: 1px solid rgba(212, 175, 55, .6);

    background: rgba(17, 17, 17, .7);

    color: var(--gold);

    font-size: 20px;

    cursor: pointer;

    display: none;

    align-items: center;
    justify-content: center;

    backdrop-filter: blur(10px);

    z-index: 9999;

    transition: .4s ease;
}

#backToTop:hover {

    background: var(--gold);
    color: #111;

    transform: translateY(-5px);

    box-shadow: 0 10px 30px rgba(212, 175, 55, .3);
}



/* ==========================
   STORY PANELS
========================== */

.story-panel {

    padding: 120px 8%;

    background: var(--ivory);

    position: relative;
}

.story-panel-wrapper {

    display: grid;

    grid-template-columns:
        minmax(350px, 500px) 1fr;

    gap: 60px;

    align-items: center;

    max-width: 1400px;

    margin: auto;
}

.story-panel-wrapper.reverse {

    grid-template-columns:
        1fr minmax(350px, 500px);
}

/* CARD */

.story-panel-card {

    background:
        rgba(255, 255, 255, .85);

    backdrop-filter: blur(15px);

    border:
        1px solid rgba(212, 175, 55, .25);

    border-radius: 30px;

    padding: 60px;

    position: relative;

    overflow: hidden;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, .06);

    transition: .4s ease;
}

.story-panel-card:hover {

    transform: translateY(-8px);

    box-shadow:
        0 30px 60px rgba(0, 0, 0, .12);
}

/* GOLD ACCENT */

.story-panel-card::before {

    content: '';

    position: absolute;

    top: 0;
    left: 0;

    width: 6px;
    height: 100%;

    background: var(--gold);
}

.story-panel-card p {

    font-family: 'Cormorant Garamond', serif;

    font-size: 1.8rem;

    line-height: 1.8;

    color: #333;
}

/* IMAGE */

.story-panel-image {

    position: relative;

    overflow: hidden;

    border-radius: 35px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, .12);
}

.story-panel-image img {

    width: 100%;

    height: 650px;

    object-fit: cover;

    display: block;

    transition: 1s ease;
}

.story-panel-image:hover img {

    transform: scale(1.05);
}

/* GOLD FRAME */

.story-panel-image::before {

    content: '';

    position: absolute;

    inset: 15px;

    border: 1px solid rgba(212, 175, 55, .5);

    border-radius: 20px;

    z-index: 2;

    pointer-events: none;
}

/* FLOATING GLOW */

.story-panel::after {

    content: '';

    position: absolute;

    width: 400px;
    height: 400px;

    background:
        radial-gradient(rgba(212, 175, 55, .08),
            transparent);

    top: 50%;

    right: 0;

    transform: translateY(-50%);

    pointer-events: none;
}

/* MOBILE */

@media(max-width:991px) {

    .story-panel-wrapper {

        display: grid;

        grid-template-columns: 1fr;

        gap: 40px;

        align-items: center;
    }

    .story-panel-wrapper.reverse .story-panel-image {
        order: 1;
    }

    .story-panel-wrapper.reverse .story-panel-content {
        order: 2;
    }

    .story-panel-image {
        order: 1;
    }

    .story-panel-content {
        order: 2;
    }

    .story-panel-image img {

        width: 100%;

        height: auto;

        max-height: 50vh;

        object-fit: cover;
    }

    .story-panel-card {

        padding: 40px;
    }

    .story-panel-card p {

        font-size: 1.4rem;
    }

}

.story-label {

    display: block;

    color: var(--gold);

    text-transform: uppercase;

    letter-spacing: 3px;

    margin-bottom: 20px;

    font-size: .85rem;

    font-weight: 600;
}