:root {
    --gold: #d8bb83;
    --dark: #2c2c2c;
    --light-bg: #fafeff;
    --soft-bg: #f8f4eb;
    --overlay: rgba(0, 0, 0, 0.45);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--light-bg);
    color: var(--dark);
    overflow-x: hidden;
}

/* --- COVER --- */
.cover {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.illu-wrap {
    position: absolute;
    width: 100%;
    height: 100%;
}

.cover-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%; /* Mengunci fokus pada area atas/wajah */
}

.cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay);
}

.container-name {
    position: relative;
    z-index: 5;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.male-name, .female-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 9vw, 4.5rem);
    color: var(--gold);
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
    display: block;
}

.ampersand {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    margin: 10px 0;
}

.invitation-to {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    margin-top: 20px;
    font-weight: 300;
}

.btn-open {
    position: absolute;
    bottom: 12%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    padding: 14px 40px;
    background: var(--gold);
    color: var(--dark);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    transition: 0.3s;
}

/* --- SECTIONS --- */
.section {
    padding: clamp(60px, 10vh, 100px) 20px;
    text-align: center;
}

.section-title {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    font-size: clamp(2rem, 7vw, 3rem);
    margin-bottom: 50px;
}

/* --- COUPLE PROFILE --- */
#coupleProfile { background: var(--soft-bg); }

.couple-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.couple-img {
    width: min(75vw, 280px);
    height: min(75vw, 280px);
    margin: 0 auto 20px;
    border: 6px solid var(--gold);
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.couple-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* --- EVENT CARDS --- */
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.event-card {
    background: white;
    padding: 40px 20px;
    border-radius: 20px;
    border-top: 5px solid var(--gold);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

/* --- TIMER --- */
.timer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.timer div {
    background: var(--dark);
    color: white;
    padding: 15px 5px;
    border-radius: 12px;
}

.timer span {
    display: block;
    font-size: clamp(1.2rem, 4vw, 2.2rem);
    color: var(--gold);
    font-weight: bold;
}

/* --- PREWED SLIDER --- */
#prewed { background: var(--dark); }

.prewed-slider {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.prewed-card {
    min-width: 300px;
    height: 450px;
    border-radius: 15px;
    overflow: hidden;
    scroll-snap-align: center;
}

.prewed-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thank-you {
    padding: 80px 20px;
    background: var(--dark);
    color: var(--gold);
}

@media (max-width: 480px) {
    .timer { grid-template-columns: repeat(2, 1fr); }
}