:root {
    --gold: #D4AF37;
    --ivory: #FAF8F4;
    --champagne: #F5E8D3;
    --dark: #111111;
}

* {
    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,
            #2d2d2d,
            #111);
}

.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 h1 {
    font-family: 'Great Vibes', cursive;
    color: white;
    font-size: 4rem;
    font-weight: 400;
}

.ampersand {
    color: var(--gold);
    font-size: 2rem;
}

.invite-text {
    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(0, 0, 0, .4),
            rgba(0, 0, 0, .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 {
    letter-spacing: 4px;
    text-transform: uppercase;
}

.hero-content h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 8rem;
    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 {
    margin-bottom: 40px;
    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(0, 0, 0, .65),
            rgba(0, 0, 0, .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 {

    letter-spacing: 4px;
    text-transform: uppercase;

    color: var(--gold);

    display: block;

    margin-bottom: 20px;
}

.countdown-content h2 {

    font-family: 'Playfair Display', serif;

    color: white;

    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: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: 'Playfair Display', serif;

    color: white;

    line-height: 1;
}

.count-box small {

    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;
    }

}


/* ==========================
   GALLERY
========================== */

.gallery-section {

    padding: 140px 8%;

    background: var(--ivory);
}

.gallery-heading {

    text-align: center;

    margin-bottom: 80px;
}

.gallery-heading span {

    color: var(--gold);

    text-transform: uppercase;

    letter-spacing: 3px;
}

.gallery-heading h2 {

    font-family: 'Playfair Display', serif;

    font-size: 4rem;

    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{

    color:var(--gold);

    letter-spacing:3px;

    text-transform:uppercase;
}

.venue-heading h2{

    font-size:4rem;

    margin:20px 0;

    font-family:'Playfair Display', serif;
}

.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(0,0,0,.65),
        rgba(0,0,0,.65)
    ),
    url('images/rsvp-bg.jpg');

    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{

    color:var(--gold);

    text-transform:uppercase;

    letter-spacing:4px;
}

.rsvp-container h2{

    font-family:
    'Playfair Display',
    serif;

    color:white;

    font-size:4rem;

    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);
}