/* ================= RESET ================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:#f5efe7;
    color:#4e3b2d;
    overflow-x:hidden;
}

/* ================= HIDDEN ================= */

.hidden{
    display:none;
}

/* ================= BOOK COVER ================= */

.book-cover{
    position:fixed;
    inset:0;
    width:100%;
    height:100vh;
    overflow:hidden;
    z-index:9999;
}

/* ================= VIDEO ================= */

.bg-video{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    z-index:1;
    filter:brightness(0.75) contrast(1.1);
}

/* ================= OVERLAY ================= */

.video-overlay{
    position:absolute;
    inset:0;
    z-index:2;

    background:linear-gradient(
        rgba(60,40,20,0.55),
        rgba(176,138,99,0.30)
    );
}

/* ================= OPEN EFFECT ================= */

.book-cover.open{
    opacity:0;
    transform:scale(1.15);
    pointer-events:none;
    transition:1.8s ease;
}

/* ================= COVER CONTENT ================= */

.small-text{
    font-size:16px;
    letter-spacing:6px;
    color:#f3e3cc;
    margin-bottom:15px;
    position:relative;
    top:-50px;
}

.cover-content h1{
    font-size:90px;
    font-family:'Great Vibes',cursive;
    color:#fffaf5;
    margin-bottom:15px;

    position:relative;
    top:-50px;

    text-shadow:
        0 0 20px rgba(255,255,255,0.25),
        0 0 40px rgba(255,255,255,0.15);

}

.cover-content{
    position: absolute;
    bottom: 220px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;

    z-index: 3;
    text-align: center;
    color: #fffaf5;

    padding: 0 20px;

    animation: fadeUp 1.5s ease;
}

.small-text{
    font-size: 16px;
    letter-spacing: 6px;
    color: #f3e3cc;
    margin-bottom: 15px;
}

.cover-content h1{
    font-size: 90px;
    font-family: 'Great Vibes', cursive;
    color: #fffaf5;
    margin-bottom: 15px;

    text-shadow:
        0 0 20px rgba(255,255,255,0.25),
        0 0 40px rgba(255,255,255,0.15);
}

.date{
    font-size: 20px;
    letter-spacing: 3px;
    margin-bottom: 30px;
    color: #f0dec7;
}
/* ================= BUTTON ================= */

button{
    padding:15px 35px;
    border:none;
    border-radius:50px;

    background:linear-gradient(
        135deg,
        #9b7653,
        #d8bea2
    );

    color:white;
    font-size:15px;
    font-weight:600;
    cursor:pointer;

    transition:0.3s ease;

    box-shadow:
        0 10px 25px rgba(155,118,83,0.25),
        0 0 15px rgba(216,190,162,0.18);
}

button:hover{
    transform:translateY(-3px) scale(1.02);
}

/* ================= SECTION ================= */

section{
    padding:100px 10%;
}

/* ================= TITLE ================= */

h2{
    font-size:55px;
    text-align:center;
    margin-bottom:40px;
    color:#8b6a4b;
    font-family:'Playfair Display',serif;
}

/* ================= WEDDING ================= */

.wedding-of{
    text-align:center;

    background:linear-gradient(
        rgba(250,246,241,0.96),
        rgba(255,255,255,0.95)
    );
}

.section-small{
    letter-spacing:6px;
    color:#b08968;
    margin-bottom:20px;
}

.wedding-desc{
    max-width:700px;
    margin:auto;
    line-height:2;
    color:#6f5a49;
}

/* ================= INTRO ================= */

.intro-couple{
    background:#fcf8f4;
}

.intro-box{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:70px;
    flex-wrap:wrap;
    margin-bottom:120px;
}

.reverse{
    flex-direction:row-reverse;
}

/* FOTO INTRO */

.intro-image{
    position:relative;
}

.intro-image img{
    width:340px;
    height:460px;

    object-fit:cover;

    border-radius:35px;

    border:8px solid rgba(255,255,255,0.75);

    box-shadow:
        0 25px 60px rgba(0,0,0,0.12),
        0 0 30px rgba(176,137,104,0.15);

    transition:0.5s ease;
}

.intro-image img:hover{
    transform:scale(1.03);
}

.intro-text{
    max-width:520px;
}

.intro-text h2{
    text-align:left;
    margin-bottom:10px;
}

.role{
    color:#b08968;
    margin:20px 0;
    font-weight:600;
    letter-spacing:1px;
}

.intro-text p{
    line-height:2;
}

/* ================= COUPLE ================= */

.couple{
    text-align:center;
    background:#f7f1ea;
}

.cards{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:35px;
    flex-wrap:wrap;
}

/* CARD MEMPELAI */

.card{
    width:280px;
    padding:35px;
    border-radius:35px;

    background:rgba(255,255,255,0.82);

    backdrop-filter:blur(12px);

    box-shadow:
        0 12px 30px rgba(0,0,0,0.05),
        0 0 20px rgba(176,137,104,0.10);

    transition:0.4s ease;
}

.card:hover{
    transform:translateY(-8px);
}

/* FOTO MEMPELAI */

.card img{
    width:180px;
    height:180px;

    object-fit:cover;

    border-radius:50%;

    border:6px solid #c19a78;

    padding:4px;

    background:white;

    box-shadow:
        0 10px 30px rgba(0,0,0,0.10),
        0 0 20px rgba(176,137,104,0.15);

    transition:0.4s ease;
}

.card img:hover{
    transform:scale(1.05) rotate(2deg);
}

.card h3{
    margin-top:20px;
    font-size:28px;
}

.card p{
    color:#7a6553;
}

/* ================= HEART ================= */

.heart{
    font-size:70px;
    color:#c08a7a;
    animation:pulse 1.5s infinite;
}

/* ================= EVENT ================= */

.event-section{
    background:#fbf7f2;
}

.event-box{
    max-width:500px;
    margin:30px auto;
    padding:40px 30px;
    border-radius:30px;
    text-align:center;

    background:rgba(255,255,255,0.85);

    backdrop-filter:blur(10px);

    box-shadow:
        0 10px 30px rgba(0,0,0,0.05),
        0 0 20px rgba(176,137,104,0.08);
}

/* ================= COUNTDOWN ================= */

.countdown{
    background:#f6efe7;
}

#timer{
    font-size:42px;
    color:#9b7653;
    font-weight:bold;
    margin:20px 0;
    line-height:1.5;
}

/* ================= GALLERY ================= */

.gallery-section{
    background:#fcf8f4;
}

.gallery-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
}

.gallery-grid img{
    width:100%;
    height:320px;

    object-fit:cover;

    border-radius:25px;

    transition:0.4s ease;

    box-shadow:0 10px 25px rgba(0,0,0,0.08);
}

.gallery-grid img:hover{
    transform:scale(1.03);
}

/* ================= LOCATION ================= */

.location{
    text-align:center;
    background:#f7f1ea;
}

.map-button{
    display:inline-block;
    margin-top:30px;
    padding:16px 35px;
    border-radius:50px;

    background:linear-gradient(
        135deg,
        #9b7653,
        #d8bea2
    );

    color:white;
    text-decoration:none;

    transition:0.3s ease;
}

.map-button:hover{
    transform:translateY(-3px);
}

/* ================= RSVP ================= */

.rsvp{
    background:#fffaf5;
    text-align:center;
}

input,
textarea{
    width:100%;
    padding:18px;
    margin-bottom:20px;

    border:none;
    border-radius:18px;

    background:rgba(255,255,255,0.95);

    box-shadow:0 5px 15px rgba(0,0,0,0.05);
}

textarea{
    min-height:140px;
    resize:none;
}

/* ================= REKENING ================= */

.rekening-section{
    text-align:center;
    background:#f6efe7;
}

.rekening-desc{
    margin-bottom:40px;
}

.rekening-box{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:25px;
}

.rekening-card{
    width:100%;
    max-width:320px;
    padding:35px;

    border-radius:30px;

    background:rgba(255,255,255,0.85);

    box-shadow:
        0 10px 30px rgba(0,0,0,0.05),
        0 0 20px rgba(176,137,104,0.08);

    transition:0.4s ease;
}

.rekening-card:hover{
    transform:translateY(-5px);
}

/* ================= ADMIN UCAPAN ================= */

.admin-wishes{
    padding:50px 20px;
    background:#fcf8f4;
    min-height:100vh;
}

.admin-wishes .title{
    text-align:center;
    font-size:28px;
    margin-bottom:30px;
}

.wish-container{
    display:flex;
    flex-direction:column;
    gap:15px;
    max-width:700px;
    margin:auto;
}

.wish-card{
    background:white;
    border-radius:16px;
    padding:18px 20px;

    box-shadow:0 6px 18px rgba(0,0,0,0.08);

    border-left:5px solid #c19a78;
}

/* ================= GUEST NAME ================= */
.guest-name{
    text-align:center;
    margin-top:30px;
    margin-bottom:30px;
}

.guest-name p{
    font-size:11px;
    letter-spacing:3px;
    text-transform:uppercase;
    color:#f3e3cc;
    margin-bottom:8px;

    font-family:'Poppins',cursive;
}

.guest-name h2{
    font-size:18px;
    font-family:'Poppins',cursive;
    font-weight:300;
    color:#fffaf5;
    margin-bottom:6px;
    letter-spacing:0px;

    text-shadow:
        0 0 8px rgba(255,255,255,0.10);
}
/* ================= COPY BUTTON ================= */

.copy-btn{
    margin-top:15px;
    padding:10px 18px;
    border:none;
    border-radius:10px;
    background:#9b7653;
    color:white;
    cursor:pointer;
    font-size:14px;
    transition:0.3s;
}

.copy-btn:hover{
    background:#b08968;
    transform:scale(1.05);
}

/* ================= ANIMATION ================= */

@keyframes fadeUp{

    from{
        opacity:0;
        transform:translate(-50%,40px);
    }

    to{
        opacity:1;
        transform:translate(-50%,0);
    }
}

@keyframes pulse{

    0%{
        transform:scale(1);
    }

    50%{
        transform:scale(1.08);
    }

    100%{
        transform:scale(1);
    }
}

/* ================= MOBILE ================= */

@media (max-width:768px){

    section{
        padding:60px 15px;
    }

    h2{
        font-size:32px;
    }

    .cover-content{
        bottom:120px;
    }

    .cover-content h1{
        font-size:52px;
        line-height:1.2;
    }

    .small-text{
        font-size:12px;
        letter-spacing:4px;
    }

    .date{
        font-size:14px;
    }

    .intro-box{
        gap:35px;
        margin-bottom:80px;
    }

    .intro-image img{
        width:240px;
        height:320px;
    }

    .intro-text h2{
        text-align:center;
    }

    .intro-text{
        text-align:center;
    }

    .cards{
        flex-direction:column;
    }

    .card{
        width:100%;
        max-width:320px;
    }

    .card img{
        width:140px;
        height:140px;
    }

    .heart{
        font-size:40px;
    }

    .event-box{
        padding:25px 20px;
    }

    #timer{
        font-size:24px;
    }

    .gallery-grid{
        grid-template-columns:repeat(2,1fr);
        gap:8px;
    }

    .gallery-grid img{
        height:120px;
    }

    button,
    .map-button{
        width:100%;
        font-size:14px;
    }

    .guest-name h2{
        font-size:18px;
    }

    .guest-name p{
        font-size:12px;
        letter-spacing:3px;
    }
}
/* ================= LOADER ================= */

#loader{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100vh;

    background:#f5efe7;

    display:flex;
    justify-content:center;
    align-items:center;

    z-index:99999;
}

.loader-content{
    text-align:center;
}

.ring{
    width:70px;
    height:70px;

    border:5px solid #d8bea2;
    border-top:5px solid #9b7653;

    border-radius:50%;

    animation:spin 1s linear infinite;

    margin:0 auto 20px;
}

.loader-content p{
    color:#9b7653;
    font-size:18px;
    letter-spacing:2px;
}

@keyframes spin{
    from{
        transform:rotate(0deg);
    }

    to{
        transform:rotate(360deg);
    }
}