/* =========================
   RESET
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    scroll-behavior:smooth;
}

:root{
    --gold:#d4af37;
    --dark:#0a0a0a;
    --black:#111111;
    --white:#ffffff;
    --glass:rgba(255,255,255,0.05);
}

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

/* =========================
   SCROLLBAR
========================= */

::-webkit-scrollbar{
    width:8px;
}

::-webkit-scrollbar-track{
    background:#111;
}

::-webkit-scrollbar-thumb{
    background:var(--gold);
    border-radius:20px;
}

/* =========================
   CONTAINER
========================= */

.container{
    width:90%;
    max-width:1200px;
    margin:auto;
}

/* =========================
   LOADER
========================= */

#loader{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:#000;
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:9999;
}

.loader-content{
    text-align:center;
}

.loader-content h1{
    color:var(--gold);
    font-size:4rem;
    font-family:'Cormorant Garamond',serif;
}

.loader-content p{
    margin-top:10px;
    letter-spacing:4px;
}

/* =========================
   HERO
========================= */

.hero{
    position:relative;
    height:100vh;

    background:
    linear-gradient(
    rgba(0,0,0,0.65),
    rgba(0,0,0,0.65)
    ),
    url("https://images.unsplash.com/photo-1511285560929-80b456fea0bc?q=80&w=1600&auto=format&fit=crop");

    background-size:cover;
    background-position:center;

    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
}

.overlay{
    position:absolute;
    inset:0;
}

.hero-content{
    position:relative;
    z-index:2;
}

.subtitle{

    color:var(--gold);

    letter-spacing:8px;

    text-transform:uppercase;

    font-size:.9rem;

    margin-bottom:30px;
}

.hero h1{
    font-family:'Cormorant Garamond',serif;
    font-size:6rem;
    color:var(--gold);
}

.hero h1 span{
    display:block;
}

.date{
    margin-top:20px;
    font-size:1.2rem;
}

#openInvitation{
    margin-top:30px;
    padding:15px 35px;
    border:none;
    border-radius:50px;
    background:var(--gold);
    color:#000;
    font-weight:bold;
    cursor:pointer;
    transition:.4s;
}

#openInvitation:hover{
    transform:translateY(-5px);
}

/* =========================
   MUSIC BUTTON
========================= */

#musicBtn{
    position:fixed;
    right:25px;
    bottom:25px;

    width:60px;
    height:60px;

    border:none;
    border-radius:50%;

    background:var(--gold);

    color:#000;

    cursor:pointer;

    z-index:999;
}

/* =========================
   SECTION
========================= */

section{
    padding:100px 0;
}

section h2{
    text-align:center;
    margin-bottom:50px;
    color:var(--gold);
    font-size:3rem;
    font-family:'Cormorant Garamond',serif;
}

/* =========================
   COUNTDOWN
========================= */

.countdown{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
}

.count-box{
    background:var(--glass);
    backdrop-filter:blur(15px);

    border:1px solid rgba(212,175,55,.2);

    border-radius:20px;

    padding:30px;

    text-align:center;
}

.count-box span{
    font-size:3rem;
    font-weight:bold;
    color:var(--gold);
}

/* =========================
   COUPLE
========================= */

.couple-wrapper{
    display:flex;
    justify-content:center;
    gap:30px;
    flex-wrap:wrap;
}

.couple-card{
    width:350px;

    background:var(--glass);

    backdrop-filter:blur(15px);

    border-radius:20px;

    padding:20px;

    text-align:center;

    transition:.4s;
}

.couple-card:hover{
    transform:translateY(-10px);
}

.couple-card img{
    width:100%;
    border-radius:20px;
}

.couple-card h3{
    color:var(--gold);
    margin-top:15px;
}

/* =========================
   LOVE STORY
========================= */

.timeline{
    max-width:800px;
    margin:auto;
}

.timeline-item{
    background:var(--glass);

    border-left:4px solid var(--gold);

    padding:25px;

    margin-bottom:20px;

    border-radius:10px;
}

.timeline-item h3{
    color:var(--gold);
}

/* =========================
   EVENT
========================= */

.event-wrapper{
    display:flex;
    justify-content:center;
    gap:30px;
    flex-wrap:wrap;
}

.event-card{
    width:350px;

    background:var(--glass);

    padding:30px;

    border-radius:20px;

    text-align:center;
}

.event-card h3{
    color:var(--gold);
    margin-bottom:10px;
}

/* =========================
   GALLERY
========================= */

.gallery-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:15px;
}

.gallery-grid img{
    width:100%;
    height:300px;

    object-fit:cover;

    border-radius:15px;

    cursor:pointer;

    transition:.4s;
}

.gallery-grid img:hover{
    transform:scale(1.05);
}

/* =========================
   RSVP
========================= */

#rsvpForm{
    max-width:700px;
    margin:auto;

    display:flex;
    flex-direction:column;
    gap:15px;
}

#rsvpForm input,
#rsvpForm select,
#rsvpForm textarea{

    background:#1b1b1b;

    color:white;

    border:none;

    border-radius:15px;

    padding:15px;
}

#rsvpForm textarea{
    min-height:150px;
}

#rsvpForm button{
    background:var(--gold);

    color:black;

    border:none;

    padding:15px;

    border-radius:15px;

    cursor:pointer;
}

/* =========================
   GIFT
========================= */

.gift-card{
    max-width:500px;

    margin:auto;

    text-align:center;

    background:var(--glass);

    padding:40px;

    border-radius:20px;
}

.gift-card h3{
    color:var(--gold);
}

.gift-card button{
    margin-top:20px;

    background:var(--gold);

    border:none;

    padding:12px 25px;

    border-radius:10px;

    cursor:pointer;
}

/* =========================
   WISHES
========================= */

.wish-card{
    background:var(--glass);

    padding:20px;

    border-radius:15px;

    margin-bottom:15px;
}

/* =========================
   FOOTER
========================= */

footer{
    text-align:center;

    padding:60px 20px;

    background:#050505;
}

footer h2{
    color:var(--gold);
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:768px){

.hero h1{

    font-size:7rem;

    font-weight:400;

    line-height:1;

    text-shadow:
    0 0 10px rgba(212,175,55,.4),
    0 0 30px rgba(212,175,55,.2);
}

.countdown{
    grid-template-columns:repeat(2,1fr);
}

.gallery-grid{
    grid-template-columns:repeat(2,1fr);
}

.couple-card,
.event-card{
    width:100%;
}

}/* =========================
   ENVELOPE
========================= */

#envelopeScreen{

    position:fixed;

    top:0;
    left:0;

    width:100%;
    height:100%;

    background:#050505;

    display:flex;

    justify-content:center;

    align-items:center;

    z-index:10000;
}

.envelope-container{

    text-align:center;
}

.envelope{

    position:relative;

    width:320px;
    height:220px;

    margin:auto;
}

.envelope-front{

    position:absolute;

    width:100%;
    height:100%;

    background:#d4af37;

    border-radius:10px;

    z-index:2;
}

.envelope-flap{

    position:absolute;

    top:0;

    width:0;
    height:0;

    border-left:160px solid transparent;
    border-right:160px solid transparent;
    border-top:120px solid #e0be55;

    transform-origin:top;

    transition:1s;

    z-index:4;
}

.letter{

    position:absolute;

    left:10px;

    width:300px;
    height:180px;

    background:white;

    color:black;

    padding:20px;

    border-radius:10px;

    text-align:center;

    transition:1s;

    z-index:1;
}

.letter h2{

    color:#d4af37;
    margin-top:10px;
}

.envelope.open .envelope-flap{

    transform:rotateX(180deg);
}

.envelope.open .letter{

    transform:translateY(-120px);
}

#openEnvelope{

    margin-top:40px;

    padding:15px 35px;

    border:none;

    border-radius:40px;

    background:#d4af37;

    color:black;

    font-weight:bold;

    cursor:pointer;
}
.ornament{

    color:#d4af37;

    font-size:1.2rem;

    margin-bottom:25px;

    letter-spacing:3px;
}

.hero-divider{

    width:180px;

    height:1px;

    background:#d4af37;

    margin:25px auto;
}