/* css/style.css */
@import url('https://fonts.cdnfonts.com/css/photograph-signature');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Poppins:wght@300;400;500&display=swap');

:root {
    --gold: #9e8a71;
    --dark: #2c2c2c;
    --bg-color: #fcfcfc;
    --white: #ffffff;
}

body {
    background-color: #1a1a1a;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
}

.mobile-wrapper {
    max-width: 440px;
    margin: 0 auto;
    background-color: var(--bg-color);
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    overflow-x: hidden;
    position: relative;
    padding-bottom: 70px;
}

h1, h2, h3, .font-serif { font-family: 'Playfair Display', serif; }
.font-signature { font-family: 'Photograph Signature', sans-serif; font-weight: normal; }
.text-gold { color: var(--gold); }
.section-pad { padding: 60px 20px; text-align: center; }

/* 0. WELCOME SCREEN (DIPERBAIKI: HANYA SEUKURAN HP) */
.welcome-screen {
    position: fixed;
    top: 0; 
    left: 50%; transform: translateX(-50%); /* Posisi di tengah */
    width: 100%; max-width: 440px; /* Dikunci 440px */
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.8)), url('https://images.unsplash.com/photo-1606800052052-a08af7148866?auto=format&fit=crop&w=600&q=80') center/cover;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out;
}
.welcome-screen.close-anim {
    transform: translate(-50%, -100vh); /* Naik ke atas tetap di tengah */
    opacity: 0;
}
.welcome-names { font-size: 4.5rem; line-height: 1; margin: 15px 0; color: white;}

/* 1. COVER DALAM SINEMATIK */
.cover { height: 100vh; display: flex; flex-direction: column; justify-content: space-between; align-items: center; background-size: cover; background-position: center; color: var(--white); position: relative; z-index: 1; }
.cover::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 50%; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%); z-index: -1; }
.cover-top { padding-top: 15vh; text-align: center; }
.cover-names { font-size: 4rem; line-height: 1; margin-top: 5px; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }
.cover-bottom { padding-bottom: 50px; width: 100%; }

.countdown-box { display: flex; justify-content: center; gap: 10px; z-index: 2; }
.time-block { background: rgba(158, 138, 113, 0.6); backdrop-filter: blur(5px); border-radius: 8px; min-width: 65px; padding: 15px 5px; text-align: center; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.time-block span { display: block; font-size: 1.5rem; font-family: 'Playfair Display', serif; margin-bottom: 5px; line-height: 1;}
.time-block small { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.9;}

/* 2. OUR WEDDING & GALERI BERJALAN */
.our-wedding-title { font-size: 2.2rem; font-weight: 700; letter-spacing: 2px; margin-bottom: 20px;}
.our-wedding-p { font-size: 0.85rem; line-height: 1.8; color: var(--gold); margin-bottom: 30px;}
.slider { background: transparent; height: 160px; margin: 0 auto; overflow: hidden; position: relative; width: 100%; }
.slider::before, .slider::after { background: linear-gradient(to right, var(--bg-color) 0%, rgba(255,255,255,0) 100%); content: ""; height: 160px; position: absolute; width: 40px; z-index: 2; }
.slider::after { right: 0; top: 0; transform: rotateZ(180deg); }
.slider::before { left: 0; top: 0; }
.slide-track { animation: scroll 15s linear infinite; display: flex; width: calc(220px * 6); }
.slide { height: 150px; width: 200px; margin: 5px; background-size: cover; background-position: center; border-radius: 5px; box-shadow: 0 5px 10px rgba(0,0,0,0.1); }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-210px * 3)); } }

/* 3. MEMPELAI ARCH */
.mempelai-section { padding: 60px 0; overflow: hidden; background-color: #fff;}
.row-mempelai { display: flex; flex-wrap: wrap; align-items: center; margin-bottom: 40px; }
.col-foto { width: 55%; padding: 0 10px; }
.col-teks { width: 45%; padding: 0 10px; }
.foto-arch { height: 280px; background-size: cover; background-position: center; border-radius: 150px 150px 0 0; filter: drop-shadow(0px 10px 15px rgba(0, 0, 0, 0.2)); }
.nama-panggilan { font-size: 2.5rem; color: var(--dark); margin: 0; line-height: 1;}
.simbol-dan { font-size: 3rem; color: var(--gold); text-align: center; margin: -20px 0 20px; }

/* 4. DETAIL ACARA */
.event-card { background: var(--white); padding: 40px 20px; margin-bottom: -20px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); position: relative; z-index: 2; }
.event-top-arch { border-radius: 200px 200px 0 0; padding-top: 60px; }
.event-bottom-arch { border-radius: 0 0 200px 200px; padding-bottom: 60px; background: #e9e5de; z-index: 1;}

/* SUSUNAN ACARA (TIMELINE MOBILE) */
.timeline { position: relative; padding: 20px 0; margin-top: 30px;}
.timeline::after { content: ''; position: absolute; width: 2px; background-color: var(--gold); top: 0; bottom: 0; left: 20px; }
.tl-container { position: relative; width: 100%; padding-left: 50px; padding-right: 0px; text-align: left; margin-bottom: 20px;}
.tl-container::after { content: ''; position: absolute; width: 15px; height: 15px; left: 13.5px; background-color: white; border: 3px solid var(--gold); top: 15px; border-radius: 50%; z-index: 1; }
.tl-content { padding: 15px; background: white; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }

/* 5. GALERI, HADIAH & UCAPAN */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gallery-img { width: 100%; height: 150px; object-fit: cover; border-radius: 5px; }
.gallery-img.large { grid-column: span 2; height: 200px; }
.form-ucapan { background: #fff; padding: 20px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); text-align: left;}

/* 6. PENUTUP, MENU BAWAH & MUSIK */
.closing-section { background-image: url('https://www.transparenttextures.com/patterns/concrete-wall.png'); background-color: #d1cbc1; color: var(--dark); padding: 60px 20px;}
.bottom-menu { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 440px; background: rgba(255, 255, 255, 0.95); display: flex; justify-content: space-around; padding: 10px 0; border-top: 1px solid #ddd; z-index: 998; }
.menu-item { color: var(--gold); text-align: center; font-size: 1.2rem; text-decoration: none; display: flex; flex-direction: column; align-items: center;}
.menu-item span { font-size: 0.6rem; font-family: 'Poppins', sans-serif; font-weight: 500; color: var(--dark);}

.music-btn { position: fixed; bottom: 85px; right: 20px; width: 45px; height: 45px; background-color: var(--gold); color: white; border-radius: 50%; display: flex; justify-content: center; align-items: center; box-shadow: 0 5px 15px rgba(158, 138, 113, 0.5); z-index: 999; cursor: pointer; border: none; display: none; }
.spin { animation: spin 4s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }
#youtubePlayer { display: none; }