* {
    -webkit-tap-highlight-color: transparent;
}

.layer-nama,
header h1,
.names h2,
.and,
.date {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}


/* ================================
   GLOBAL
================================ */
body {
    margin: 0;
    padding: 0;
    font-family: 'Cormorant Garamond', serif;
    color: var(--color-text-dark);
    background-color: var(--color-bg);
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    overflow-x: hidden;
    background-image: url('/img_pernikahan/latar.png');
    
}




/* ================================
   LAYER UTAMA
================================ */
.layer-nama {
    display: flex;
    justify-content: center;
}

.layer-nama.muncul {
    opacity: 1; /* FIX */
    transform: translateY(0);
}

/* ================================
   CARD
================================ */
.card {
    text-align: center;
    padding: 40px 28px 30px;
}

/* ================================
   TEXT STYLE
================================ */
header {
    position: relative;
    width: 100%;
    height: 10vh; /* full height layar */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* taruh semua elemen di atas */
    align-items: center; /* tetap center horizontal */
    padding-top: 2vh; /* jarak dari atas layar */
}

/* H1 */
header h1 {
    font-size: 30px;
    font-family: 'Cormorant Garamond', serif;
    font-weight: normal;
    color: #520e04;
    margin-bottom: 1rem; /* jarak ke h2 */
    letter-spacing: 1px;
    animation: swaySoft 6s ease-in-out infinite;
}

/* Names H2 */
.names h2 {
    font-size: 80px;
    margin: 0.5rem 0; /* jarak ke h1 */
    font-weight: lighter;
    color: #520e04;
    font-family: 'Great Vibes', cursive;
    line-height: 1.1;
    animation: swaySoft 7s ease-in-out infinite;
}

/* AND / tanggal */
.and {
    font-size: 3vw;
    display: block;
    color: #74665a;
    margin: 0.3rem 0; /* jarak ke elemen atas */
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    animation: swaySoft 5s ease-in-out infinite;
}

.guest-label,
.guest-name {
    color: #520e04;
}

/* Media query untuk mobile */
@media (max-width: 768px) {
    /* The Wedding Of */
header h1 {
    font-size: 30px;
    letter-spacing: 1.2px;
    color: #6b4a2d;
    margin-bottom: 22px;
}

/* Nama pengantin */
.names h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 40px;
    color: #5a2f1a;
    line-height: 1.15;
}

.names .and {
    display: block;
    font-size: 20px;
    margin: 6px 0;
    color: #5a2f1a;
}

/* Kepada Yth */
.guest-label {
    margin-top: 22px;
    font-size: 15px;
    color: #520e04;
}

/* Nama tamu */
.guest-name {
    font-size: 18px;
    font-weight: 600;
    margin: 6px 0 18px;
    color: #520e04;
}

/* Button */
.btn-rsvp {
    margin: 10px auto 18px;
    padding: 10px 28px;
    font-size: 14px;
    border-radius: 25px;
    background: #b5743a;
    color: #fff;
    text-decoration: none;
    display: inline-block;
}

/* Lokasi */
footer p {
    font-size: 13px;
    color: #6b4a2d;
}
}


/* ================================
   FOOTER & BUTTON
================================ */
footer p {
    margin-top: 30px;
    font-size: 20px;
    color: #5a1f14; /* coklat tua elegan */
    animation: swaySoft 8s ease-in-out infinite;
    transform-origin: center bottom;
}

.btn-rsvp {
    text-decoration: none;
    background-color: #b26d26;
    padding: 8px 17px;
    border-radius: 13px;
    font-weight: bold;
    color: #ffffff;
    box-shadow: 1.9px 1.9px 2px rgba(0, 0, 0, 0.3);
    text-shadow: 1.2px 1.2px 2px rgb(0, 0, 0);
}

.btn-rsvp:hover {
    background-color: #466756;
    border: 2px solid #b69e8b;
}

/* ================================
   DESKTOP ONLY
================================ */
@media (min-width: 768px) {
    body {
        overflow: hidden;
        height: 100vh;
    }
}

/* ================================
   MOBILE
================================ */
@media (max-width: 600px) {

    body {
        overflow-y: auto;
        height: auto;
    }

}

/* ================================
   CARD ADJUSTMENT
================================ */
.card {
    background: transparent;
    padding: 55px 30px;
    max-width: 720px;
    width: 100%;
    position: relative;
    z-index: 2;
}


/* ================================
   MODAL
================================ */
.modal {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #f9f6f1;
    padding: 25px 30px;
    border-radius: 14px;
    width: 85%;
    max-width: 450px;
    text-align: center;
    transform: scale(0.85);
    opacity: 0;
    transition: 0.45s;
}

.modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}
/* TOMBOL CLOSE (X) */ .close { float: right; font-size: 25px; font-weight: bold; cursor: pointer; color: #444; }
/* ================================
   NEXT BUTTON
================================ */
.btn-next {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 10px 20px;
    background-color: var(--color-primary, #587968);
    color: #ffffff;
    font-weight: 700;
    border-radius: 40px;
    border: none;
    cursor: pointer;
    letter-spacing: 1px;
    text-decoration: none;
}

.btn-next:hover {
    background-color: #466756;
    transform: translateY(-1px);
}

/* ANIMASI */ @keyframes fadeIn { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }

@keyframes swaySoft {
    0% {
        transform: rotate(0deg) translateY(0);
    }
    25% {
        transform: rotate(0.4deg) translateY(-2px);
    }
    50% {
        transform: rotate(0deg) translateY(0);
    }
    75% {
        transform: rotate(-0.4deg) translateY(2px);
    }
    100% {
        transform: rotate(0deg) translateY(0);
    }
}
