.opening {
    background: #fffaf5;
    max-width: 800px;
    margin: auto;
}

/* ANIMASI FADE */
.fade-out {
    animation: fadeOut 1s forwards;
}

.fade-in {
    animation: fadeIn 1.5s forwards;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; visibility: hidden; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
}

/* FONT */
h1, h2 {
    font-family: 'Great Vibes', cursive;
}

h3, h4 {
    font-family: 'Playfair Display', serif;
}

/* COVER */
.cover {
    height: 100vh;
    background: url('assets/img/bg.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

.cover-text {
    position: relative;
    z-index: 2;
}

button {
    padding: 12px 25px;
    border: none;
    background: #d4af37;
    border-radius: 30px;
    font-size: 16px;
    color: white;
    cursor: pointer;
}

/* SECTION */
section {
    padding: 70px 20px;
    text-align: center;
}

section h2 {
    margin-bottom: 40px;
}

section h2::after {
    content: "";
    width: 80px;
    height: 3px;
    background: #d4af37;
    display: block;
    margin: 10px auto;
}

/* MEMPELAI */
.mempelai {
    background: #f8f5f0;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.card {
    width: 260px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    border-radius: 15px;
}

/* ACARA */
.acara {
    background: #ffffff;
}

iframe {
    width: 100%;
    height: 300px;
    border: none;
    border-radius: 10px;
}

/* COUNTDOWN */
.countdown {
    background: url('assets/img/bg2.jpg') center/cover no-repeat;
    position: relative;
    color: white;
    background-attachment: fixed;
}

.countdown::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.countdown * {
    position: relative;
    z-index: 2;
}

/* TIMELINE */
.timeline {
    position: relative;
    max-width: 900px;
    margin: auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background: #d4af37;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.container-timeline {
    padding: 20px 40px;
    position: relative;
    width: 50%;
}

.container-timeline.left {
    left: 0;
    text-align: right;
}

.container-timeline.right {
    left: 50%;
}

.container-timeline::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    right: -8px;
    background: #d4af37;
    border-radius: 50%;
    top: 25px;
}

.container-timeline.right::after {
    left: -8px;
}

.timeline-content {
    padding: 15px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.08);
}

.container-timeline.left .timeline-content {
    margin-right: 20px;
}

.container-timeline.right .timeline-content {
    margin-left: 20px;
}

/* GALERI */
.galeri {
    background: #f5f5f5;
}

.slider {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px;
}

.slide {
    min-width: 250px;
}

.slide img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    cursor: pointer;
    transition: 0.3s;
}

.slide img:hover {
    transform: scale(1.05);
}

/* LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

/* RSVP */
.rsvp {
    background: #f8f5f0;
}

form {
    display: flex;
    flex-direction: column;
    width: 90%;
    max-width: 400px;
    margin: auto;
}

input, select, textarea {
    padding: 10px;
    margin: 5px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* UCAPAN */
.ucapan {
    background: #f2f2f2;
}

.card-ucapan {
    background: white;
    margin: 10px auto;
    padding: 15px;
    border-radius: 10px;
    max-width: 500px;
}

/* AMPLOP */
.amplop {
    background: #f8f4ec;
}

.card-amplop {
    background: white;
    padding: 20px;
    margin: 20px auto;
    width: 300px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card-amplop h3 {
    color: #d4af37;
}

/* MOBILE */
@media screen and (max-width: 768px) {

.timeline::after {
    left: 20px;
}

.container-timeline {
    width: 100%;
    padding-left: 50px;
    padding-right: 20px;
}

.container-timeline.right {
    left: 0%;
}

.container-timeline.left {
    text-align: left;
}

.container-timeline::after {
    left: 10px;
}

.cover h1 {
    font-size: 35px;
}

}

/* JUDUL UTAMA */
.cover h1 {
    font-size: 55px;
    letter-spacing: 3px;
}

.cover h4 {
    letter-spacing: 5px;
    font-weight: 300;
}

/* NAMA MEMPELAI */
.mempelai h2 {
    font-size: 28px;
    margin-top: 15px;
}

/* COUNTDOWN BOX */
#countdown {
    font-size: 30px;
    margin-top: 20px;
    font-weight: bold;
    letter-spacing: 2px;
}

/* RSVP FORM */
.rsvp form {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* UCAPAN */
.card-ucapan b {
    color: #d4af37;
}

/* AMPLOP */
.card-amplop {
    transition: 0.3s;
}

.card-amplop:hover {
    transform: translateY(-5px);
}

/* SCROLLBAR GALERI */
.slider::-webkit-scrollbar {
    height: 8px;
}

.slider::-webkit-scrollbar-thumb {
    background: #d4af37;
    border-radius: 10px;
}

/* ANIMASI MASUK */
section {
    animation: fadeIn 1s ease;
}


.judul-atas {
    letter-spacing: 5px;
    font-size: 14px;
}

.nama-pengantin {
    font-size: 55px;
    margin: 10px 0;
}

.penutup {
    background: url('../assets/img/bg3.jpg') center/cover no-repeat;
    background-attachment: fixed;
    padding: 80px 20px;
    color: white;
    position: relative;
}

.penutup::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}

.penutup * {
    position: relative;
    z-index: 2;
}

.btn-maps {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background: #cda45e;
    color: white;
    border-radius: 8px;
    text-decoration: none;
}

.logo-bank {
    width: 120px;
    margin-bottom: 10px;
}

/* LOVE STORY MODERN */
.love-story {
    background: #fffaf5;
}

.love-container {
    max-width: 800px;
    margin: auto;
    position: relative;
}

.love-container::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #d4af37;
}

.love-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    position: relative;
}

.love-year {
    width: 100px;
    font-size: 28px;
    font-weight: bold;
    color: #d4af37;
}

.love-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    flex: 1;
    transition: 0.3s;
}

.love-card:hover {
    transform: translateY(-5px);
}

.love-card h3 {
    margin-top: 0;
    color: #333;
}

@media (max-width: 768px) {

.love-container::before {
    left: 20px;
}

.love-item {
    flex-direction: column;
    padding-left: 40px;
}

.love-year {
    margin-bottom: 10px;
}

}

.love-story h2 {
    margin-bottom: 50px;
}

.love-card p {
    line-height: 1.6;
}

.love-year {
    font-family: 'Playfair Display', serif;
}

.cover button {
    padding: 12px 25px;
    border: none;
    background: #d4af37;
    border-radius: 30px;
    font-size: 16px;
    color: white;
    cursor: pointer;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

section {
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* LOADER */
#loader {
    position: fixed;
    width: 100%;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: 1s;
}

.loader-content h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 45px;
    color: #c9a96e;
}

.loader-content p {
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #c9a96e;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: auto;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* BUNGA JATUH */
.flowers {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.flower {
    position: absolute;
    top: -50px;
    width: 30px;
    height: 30px;
    background-image: url('../img/bunga.png'); /* gambar bunga */
    background-size: cover;
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(-50px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.cover-text, section, #content {
    position: relative;
    z-index: 2;
}

/* PARALLAX */
.parallax {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.bg-section {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.bg-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}

.bg-section > * {
    position: relative;
    z-index: 2;
}
.opening,
.love-story,
.galeri,
.rsvp,
.penutup {
    color: black;
}

.mempelai,
.acara,
.ucapan,
.amplop {
    color: #333;
}
.card,
.card-ucapan,
.card-amplop,
form {
    position: relative;
    z-index: 3;
}
