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

body {
    margin: 0;
    background-color: #f6f3ed;
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'%3E%3Cpath d='M15 50 Q 80 15, 140 60 T 250 40' fill='none' stroke='%23c8a97e' stroke-width='1.2' stroke-linecap='round' stroke-opacity='0.11' /%3E%3Cpath d='M30 190 Q 100 235, 160 180 T 250 215' fill='none' stroke='%238c5d53' stroke-width='1' stroke-linecap='round' stroke-opacity='0.08' /%3E%3Cpath d='M195 90 Q 235 145, 205 205' fill='none' stroke='%23d4af37' stroke-width='0.8' stroke-linecap='round' stroke-opacity='0.10' /%3E%3Cpath d='M45 100 C 25 140, 80 175, 55 220' fill='none' stroke='%23c8a97e' stroke-width='0.9' stroke-linecap='round' stroke-opacity='0.08' /%3E%3Cpath d='M130 120 Q 155 90, 185 110 T 165 155' fill='none' stroke='%238c5d53' stroke-width='0.7' stroke-linecap='round' stroke-opacity='0.07' /%3E%3Cpath d='M90 25 C 120 40, 110 80, 80 75' fill='none' stroke='%23d4af37' stroke-width='0.75' stroke-linecap='round' stroke-opacity='0.09' /%3E%3Ccircle cx='95' cy='85' r='1.5' fill='%23d4af37' fill-opacity='0.14' /%3E%3Ccircle cx='185' cy='170' r='1.2' fill='%23c8a97e' fill-opacity='0.12' /%3E%3Ccircle cx='60' cy='160' r='1' fill='%238c5d53' fill-opacity='0.10' /%3E%3C/svg%3E"),
        linear-gradient(180deg, #f9f6f1 0%, #f4eee7 50%, #f8f4ee 100%);
    background-attachment: fixed;
    color: #44403c;
    font-family: 'Montserrat', sans-serif;
    position: relative;
}

/* =========================
   ANIMASI SALJU BERJATUHAN
========================= */

.snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -20px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 75%);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
    animation: snowfall linear infinite;
}

@keyframes snowfall {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    12% {
        opacity: 0.85;
    }
    88% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(105vh) translateX(35px);
        opacity: 0;
    }
}

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

.hero {
    height: 100vh;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: stretch;
    text-align: center;
    padding: 75px 20px 35px;

    background-image: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url("foto/f13.jpeg");
    background-size: cover;
    background-position: 63% center;
}

.hero .judul {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 0;
}

.hero .judul p {
    font-family: "Cinzel", serif;
    color: #ffffff;
    letter-spacing: 5px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero .judul h2 {
    font-family: "Cormorant Garamond", serif;
    color: #ffffff;
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 1.5px;
    line-height: 1.15;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.8);
}

.hero .judul h3 {
    color: #ffffff;
    font-family: "Cinzel", serif;
    letter-spacing: 3.5px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: auto;
    margin-bottom: 0;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

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

.firman {
    text-align: center;
    padding: 50px 20px;
    max-width: 600px;
    margin: auto;
}

.firman h2 {
    font-family: "Cinzel", serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #2b2724;
    margin-bottom: 20px;
}

.firman .arab {
    font-family: "Amiri", serif;
    font-size: 22px;
    line-height: 2;
    color: #1a1816;
    font-weight: 700;
    margin-bottom: 15px;
    padding: 0 10px;
}

.firman .arti {
    font-family: "Montserrat", sans-serif;
    font-size: 13.5px;
    line-height: 1.8;
    color: #615a55;
    font-weight: 400;
}

.firman .surah {
    display: inline-block;
    margin-top: 8px;
    font-weight: 600;
    color: #8c5d53;
    font-size: 12.5px;
}

/* =========================
   CARD MEMPELAI
========================= */

.card {
    text-align: center;
    background: #ffffff;
    padding: 35px 25px;
    margin: 30px auto;
    width: 320px;
    max-width: 92%;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

/* FOTO MEMPELAI (BENTUK ARCH / KUBAH ESTETIK) */

.foto-mempelai-pria,
.foto-mempelai-wanita {
    width: 200px;
    height: 260px;
    object-fit: cover;
    border-radius: 100px 100px 20px 20px;
    margin: 0 auto 18px;
    border: 3px solid #f0e6e0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    display: inline-block;
    transition: 0.3s ease;
}

.foto-mempelai-pria {
    object-position: center 10%;
}

.foto-mempelai-wanita {
    object-position: center 12%;
}

.foto-mempelai-pria:hover,
.foto-mempelai-wanita:hover {
    transform: translateY(-4px);
}

.line-love {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.line-love span svg {
    fill: #8c5d53;
}

.card h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: 32px;
    font-weight: 700;
    color: #2b2724;
    letter-spacing: 1px;
    margin-top: 6px;
    margin-bottom: 8px;
}

.card p {
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: #6e6762;
}

.card a {
    display: inline-block;
    margin-top: 12px;
    text-decoration: none;
    font-family: "Montserrat", sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.8px;
    color: #8c5d53;
    transition: 0.2s;
}

.card a:hover {
    color: #57332c;
}

.card-container {
    padding: 30px 20px 10px;
    text-align: center;
}

/* =========================
   CARD ACARA & MAP
========================= */

.card-acara {
    background: white;
    padding: 35px 25px;
    border-radius: 16px;
    max-width: 500px;
    margin: 0 auto 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.card-map {
    background: white;
    padding: 35px 25px;
    border-radius: 16px;
    max-width: 500px;
    margin: auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.title {
    font-family: "Cinzel", serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #2b2724;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.event {
    margin-bottom: 25px;
}

.event h3 {
    font-family: "Cinzel", serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #8c5d53;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.event p {
    font-family: "Montserrat", sans-serif;
    font-size: 13.5px;
    line-height: 1.8;
    color: #5c5652;
}

.map-container iframe {
    width: 100%;
    height: 250px;
    border: none;
    border-radius: 12px;
}

.btn-location {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #443e39, #2b2622);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-family: "Montserrat", sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: 0.3s;
}

.btn-location:hover {
    background: linear-gradient(135deg, #534c46, #38322d);
    transform: translateY(-2px);
}

/* =========================
   GALERI FOTO
========================= */

.gallery-section {
    padding: 70px 20px;
    background: #ffffff;
    max-width: 500px;
    margin: 30px auto;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.gallery-title {
    text-align: center;
    font-family: "Cinzel", serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #2b2724;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 180px;
    gap: 15px;
    grid-auto-flow: dense;
    justify-content: center;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 14px;
    transition: 0.3s;
}

.wide {
    grid-column: span 2;
    object-position: center 20%;
}

.tall {
    grid-row: span 2;
    object-position: center 15%;
}

.gallery-grid img[src*="f5.jpeg"],
.gallery-grid img[src*="f14.jpeg"] {
    object-position: center 20%;
}

.gallery-grid img[src*="f12.jpeg"] {
    object-position: center 15%;
}

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

/* =========================
   UCAPAN & DOA
========================= */

.ucapan-section {
    padding: 30px 20px 60px;
}

.ucapan-container {
    max-width: 500px;
    margin: auto;
    background: white;
    padding: 35px 25px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.ucapan-container .judul {
    text-align: center;
    margin-bottom: 25px;
    font-size: 22px;
    font-family: "Cinzel", serif;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #2b2724;
}

.form-box {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-box input,
.form-box select,
.form-box textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #e0dbd5;
    border-radius: 10px;
    font-family: "Montserrat", sans-serif;
    font-size: 13.5px;
    color: #333;
    outline: none;
    transition: 0.3s;
    background: #faf9f7;
}

.form-box input:focus,
.form-box select:focus,
.form-box textarea:focus {
    border-color: #8c5d53;
    background: #ffffff;
}

.form-box textarea {
    min-height: 100px;
    resize: none;
}

.form-box button {
    padding: 13px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(135deg, #443e39, #2b2622);
    color: white;
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: 0.3s;
}

.form-box button:hover {
    background: linear-gradient(135deg, #534c46, #38322d);
    transform: translateY(-1px);
}

.form-box button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* DAFTAR UCAPAN */
.daftar-ucapan {
    margin-top: 30px;
    border-top: 1px solid #eee8e2;
    padding-top: 20px;
}

.ucapan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #777;
}

.ucapan-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 4px;
}

.ucapan-list::-webkit-scrollbar {
    width: 4px;
}
.ucapan-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}
.ucapan-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.ucapan-item {
    background: #faf8f6;
    border: 1px solid #ebe5df;
    border-radius: 12px;
    padding: 14px 16px;
    text-align: left;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.ucapan-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    flex-wrap: wrap;
    gap: 6px;
}

.ucapan-nama {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 14px;
    color: #2b2724;
    letter-spacing: 0.5px;
}

.badge-kehadiran {
    font-size: 10.5px;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.badge-hadir {
    background: #e6f7eb;
    color: #1b873f;
}

.badge-belum-tentu {
    background: #fff5e5;
    color: #b26a00;
}

.badge-tidak-hadir {
    background: #fde8e8;
    color: #c81e1e;
}

.ucapan-pesan {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #554f4a;
    line-height: 1.6;
    word-break: break-word;
    white-space: pre-line;
}

.ucapan-waktu {
    font-size: 11px;
    color: #999;
    margin-top: 8px;
    text-align: right;
}

.ucapan-kosong {
    text-align: center;
    color: #999;
    font-size: 13px;
    padding: 15px 0;
}

/* =========================
   PENUTUP
========================= */

.penutup-section {
    padding: 20px 20px 80px;
}

.penutup-container {
    max-width: 500px;
    margin: auto;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.foto-penutup img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: center 22%;
}

.text-penutup {
    padding: 30px 20px 35px;
}

.hormat {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 4px;
    font-weight: 600;
}

.mengundang {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #aaa;
    margin-bottom: 18px;
}

.nama {
    font-family: "Cormorant Garamond", serif;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #2b2724;
}

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

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .hero {
        padding: 65px 15px 30px;
    }

    .hero .judul h2 {
        font-size: 36px;
    }

    .hero .judul p {
        font-size: 12px;
        letter-spacing: 4px;
    }

    .card {
        width: 90%;
    }

    .foto-mempelai-pria,
    .foto-mempelai-wanita {
        width: 190px;
        height: 245px;
        border-radius: 95px 95px 18px 18px;
    }

    .card-acara,
    .card-map,
    .gallery-section,
    .ucapan-container,
    .penutup-container {
        max-width: 95%;
    }

    .map-container iframe {
        height: 230px;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 140px;
        gap: 10px;
    }

    .foto-penutup img {
        height: 280px;
        object-position: center 22%;
    }
}

@media (max-width: 480px) {
    .hero .judul h2 {
        font-size: 32px;
    }

    .title,
    .gallery-title,
    .ucapan-container .judul {
        font-size: 20px;
    }

    .nama {
        font-size: 32px;
    }

    .gallery-grid {
        grid-auto-rows: 115px;
    }
}