/* RESET biar rapi */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: Arial, sans-serif;
    background: #000;
    
}

/* SECTION HERO */
.hero-section {
    min-height: 100vh;
    background: #000;
    display: flex;
    justify-content: center;
}

/* Layout wrapper */
.layout {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Konten utama (mobile look) */
.right-content {
    width: 100%;
    max-width: 430px;      /* ⬅ ukuran mobile */
    min-height: 100vh;
    background: #000;
    color: white;
}


/* TOP POTO */
.top-photo {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    text-align: center;
}


/* Foto */
.top-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* TEKS DI ATAS FOTO */
.top-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -150%);
    text-align: center;
    z-index: 3;
    width: 100%;
}

.top-text h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    letter-spacing: 3px;
    font-size: 20px;
    color: #fff;
}

.top-text h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 50px;
    color: #fff;
    margin-top: 10px;
}
/* Teks tanggal */
.wedding-date {
    font-family: 'Cormorant Garamond', serif;
    font-size: 25px;
    font-weight: 500;
    letter-spacing: 2px;
    color: #ffffff;
    margin-top: 20px;
    transform: translateY(-25px);
}



/* CONTENT BOX */
.content-box {
    padding: 20px;       /* bisa kamu ubah: 20px, 50px, dll */
    color: white;        /* biar kontras dengan background hitam */
}

.content-box h1 {
    margin-bottom: 20px;
    font-size: 15px;
}

.content-box p {
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.6;
}

/* TEXT TAMU UNDANGAN */
.guest-text {
    position: absolute;
    top: calc(75% + -10px); /* atur jarak dari top-text */
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 3;
    width: 100%;
    color: #fff;
}
/* ANIMASI GUEST TEXT */
.guest-text {
    opacity: 0;
    transform: translate(-50%, 20px); /* turun sedikit sebelum animasi */
    animation: guestTextUp 1.4s ease-out forwards;
    animation-delay: 1.6s; /* muncul setelah foto */
}

@keyframes guestTextUp {
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}



.guest-text p {
    font-size: 15px;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.guest-name {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
}

.open-invitation {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    position: fixed;           /* ⬅ bikin selalu di depan */
    left: 50%;
    transform: translateX(-50%);

    padding: 10px 15px;

    background: rgba(255, 255, 255, 0.75);
    color: #000;

    border: 1.5px solid #fff;
    border-radius: 30px;

    margin-top: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;

    z-index: 999999;           /* ⬅ paling depan */
    pointer-events: auto;

    transition: all 0.3s ease;
}

.photo-box {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -65%);

    width: 180px;
    height: 255px;

    border-radius: 16px;
    overflow: hidden;

    z-index: 4; /* ⬅ WAJIB lebih tinggi dari foto */
}

/* FOTO DI DALAM KOTAK DENGAN ANIMASI ELEGAN + FLOAT */
.photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    opacity: 0;
    transform: translateY(-40px) scale(1.03);
    
    animation: 
        photoReveal 1.6s ease-out forwards,
        photoFloat 4s ease-in-out infinite;
    animation-delay: 
        0.8s, 2.4s; /* float mulai setelah reveal selesai */
}

/* Reveal */
@keyframes photoReveal {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Goyang pelan naik-turun */
@keyframes photoFloat {
    0%   { transform: translateY(0)   scale(1); }
    50%  { transform: translateY(-6px) scale(1.01); }
    100% { transform: translateY(0)   scale(1); }
}





.welcome-section {
    width: 100%;
    max-width: 430px;
    height: 50vh;

    background-image: url("images/baground/bg-2.jpeg");
    background-repeat: no-repeat;
    background-size: cover;

    /* ⬇️ INI KUNCINYA */
    background-position: center 1%;

    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Overlay biar teks kebaca */
.welcome-overlay {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ANIMASI WELCOME CONTENT */
.welcome-content {
    max-width: 360px;
    text-align: center;
    color: #fff;

    opacity: 0;
    transform: translateY(25px);
    transition: all 1.2s ease; /* penting untuk smooth */
}

.welcome-content.show {
    opacity: 1;
    transform: translateY(0);
}


/* W & A */
.welcome-title {
    font-family: 'Great Vibes', cursive;
    font-size: 48px;
    margin-bottom: 15px;
    letter-spacing: 2px;
    font-weight: 100;
}

/* Ayat */
.welcome-ayat {
    font-family: 'Cormorant Garamond', serif;
    font-size: 14px;
    line-height: 1.7;
    opacity: 0.95;
}

/* Sumber ayat */
.ayat-source {
    font-size: 13px;
    font-style: italic;
    opacity: 0.85;
}

/* Section */
.pengantin-section {
    padding: 70px 20px;
    background-image: url("images/baground/bg-3.png");
    background-repeat: no-repeat;
    background-size: cover;
    max-height: 1220px; /* mendekati hasil aslinya */
}

/* Wrapper */
.pengantin-wrapper {
    max-width: 430px;
    margin: auto;
    text-align: center;
}

/* Title */
.pengantin-title {
    font-family: 'Great Vibes', cursive;
    color: #410202;
    font-size: 47px;
    margin-bottom: 12px;
    font-weight: 100;
}

.pengantin-desc {
    font-size: 16px;
    color: #410202;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Item */
.pengantin-item {
    margin-bottom: 12px;
}

/* Foto */
.pengantin-foto {
    width: 200px;
    height: 260px;
    margin: 0 auto 20px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.pengantin-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Nama */
.pengantin-item h3 {
   font-family: 'Great Vibes', cursive;
   color: #410202;
    font-size: 38px;
    margin-bottom: 8px;
    font-weight: 100;
}

/* Info */
.pengantin-info {
    font-size: 16px;
    color: #410202;
    line-height: 1.6;
}

/* Dan */
.pengantin-dan {
    font-family: 'Great Vibes', cursive;
    color: #410202;
    font-size: 48px;
    margin: 20px 0 20px;
}


/* Save The Date Section */
.save-date-section {
    height: 40vh;
    max-width: 430px;
    margin: auto;
    background: url("images/img_1.JPG") center / cover no-repeat;
    position: relative;
    background-position: center 20%;
}

/* Overlay */
.save-date-overlay {
    height: 100%;
    background: rgba(255, 255, 255, 0.241);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

/* Title */
.save-title {
   font-family: 'Great Vibes', cursive;
    font-size: 40px;
    margin-bottom: 24px;
    letter-spacing: 1px;
    font-weight: 100;
}

/* Countdown */
.countdown {
    display: flex;
    gap: 14px;
}

.time-box {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    border-radius: 14px;
    padding: 14px 16px;
    min-width: 80px;
}

.time-box span {
    font-size: 26px;
    font-weight: bold;
    display: block;
}

.time-box small {
    font-size: 12px;
    letter-spacing: 1px;
}
/* Section background marun */
.event-section {
    background: #40000a; /* marun */
    padding: 55px 25px;
    justify-content: center;
    flex-direction: column; /* ⬅ kunci: susun ke bawah */
    gap: 30px !important;
}

/* Card */
.event-card {
    max-width: 380px;
    width: 100%;
    background: url("images/baground/bg-4.jpeg") center / cover no-repeat;
    border-radius: 85px;
    padding: 50px 24px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.35);
}

/* Akad Nikah */
.event-type {
    color: #440505; /* marun */
    font-family: 'Playfair Display', serif;
    font-size: 38px;
    margin-bottom: 10px;
}

/* Sabtu */
.event-day {
    color: #A56500; /* gold */
    font-family: 'Playfair Display', serif;
    font-size: 25px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Tanggal besar */
.event-date {
    color: #6b1f2b; /* marun */
    font-size: 72px;
    font-weight: bold;
    margin: 10px 0;
    line-height: 1;
}

/* Bulan & Tahun */
.event-month {
    color: #A56500; /* gold */
    font-family: 'Playfair Display', serif;
    font-size: 25px;
    margin-bottom: 14px;
}

/* Pukul */
.event-time {
    color: #6b1f2b; /* marun */
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 16px;
}

/* Lokasi */
.event-location {
    font-size: 13px;
    font-family: 'Playfair Display', serif;
    color: #333;
    line-height: 1.6;
}
/* LOCATION SECTION */
.location-section {
    width: 100%;
    max-width: 430px;
    margin: auto;
    min-height: 60vh;
    background: url("images/baground/bg-5.jpeg") center / cover no-repeat;
    position: relative;
}

/* OVERLAY */
.location-overlay {
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    padding: 50px 20px;
    text-align: center;
    color: #fff;
}

/* TITLE */
.location-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    margin-bottom: 25px;
}

/* MAP */
.map-wrapper {
    width: 100%;
    height: 220px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    margin-bottom: 20px;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* TEXT */
.location-text {
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 22px;
}

/* BUTTON */
.location-btn {
    display: inline-block;
    padding: 12px 26px;
    background: #40000a; /* gold */
    color: #ffffff;      /* maroon */
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.location-btn:hover {
    background: #ffffff;
    color: #400000;
}
/* WEDDING GIFT SECTION */
.gift-section {
    width: 100%;
    max-width: 430px;
    min-height: 40vh;
    background: url("images/img_4.JPG") center / cover no-repeat;
    position: relative;
}

/* Overlay putih tipis */
.gift-overlay {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.174);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Card transparan */
.gift-card {
    width: 100%;
    max-width: 340px;
    background: rgba(255, 255, 255, 0.286);
    backdrop-filter: blur(6px);
    border-radius: 18px;
    padding: 30px 22px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* Title */
.gift-title {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    color: #6b1d1d; /* marun */
    margin-bottom: 14px;
}

/* Description */
.gift-desc {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    line-height: 1.7;
    color: #3a0202;
    margin-bottom: 22px;
}

/* Button */
.gift-btn {
    display: inline-block;
    padding: 12px 26px;
    background: #6b1d1d; /* marun */
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.gift-btn:hover {
    background: #ffffff;
    color: #470000;
    transform: translateY(-2px);
}


.wish-full-section {
    height: 100vh;
    background: url('images/baground/bg-6.jpeg') center/cover no-repeat;
    position: relative;
}

.wish-full-overlay {
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.wish-full-card {
    border-radius: 14px;
    width: 90%;
    max-width: 420px;
}

.wish-full-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    text-align: center;
    margin-bottom: 5px;
}

.wish-full-desc {
    font-family: 'Cormorant Garamond', serif;
    font-size: 15px;
    text-align: center;
    margin-bottom: 20px;
}

.wish-stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
    text-align: center;
}

.wish-count {
    font-size: 14px;
}

.wish-presence {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.wish-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.wish-input,
.wish-textarea,
.wish-select {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.wish-textarea {
    resize: none;
    height: 80px;
}

.wish-btn-submit {
    padding: 12px;
    background: #7b4d05;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
}

.btn-presence {
    padding: 10px 14px;
    border-radius: 8px;
    background: #ffffff8d;
    border: 2px solid;
    font-size: 14px;
    font-weight: 600;
}

.hadir {
    color: #0f8f45;
    border-color: #0f8f45;
}

.tidak-hadir {
    color: #d42b2b;
    border-color: #d42b2b;
}

/* UCAPAN LIST */
.wish-list {

    background: rgba(255, 255, 255, 0.333);
    border-radius: 10px;
    padding: 10px;
    height: 150px;
    overflow-y: auto;
}

.wish-item {
    font-family: 'Cormorant Garamond', serif;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 10px;
    font-size: 14px;
}

/* Container item */
.wish-item {
    background: #ffffff70;
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid #eee;
}

/* Header (nama + badge di kanan) */
.wish-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

/* Nama */
.wish-name strong {
    font-size: 15px;
    color: #000000;
    font-weight: 800;
}

/* Badge */
.presence-badge {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 20px;
    color: white;
    font-weight: 600;
}

/* Warna badge */
.presence-badge.hadir {
    background: #28a745; /* hijau */
}
.presence-badge.tidak-hadir {
    background: #dc3545; /* merah */
}


.thank-section {
    height: 100vh;
    background: url('images/img_7.JPG') center/cover no-repeat;
    position: relative;
    color: white;
}

.thank-overlay {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.219);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
}

.thank-content {
    text-align: right;
    margin-right: 10px;
}

.thank-title {
    font-family: 'Great Vibes', cursive;
    font-size: 46px;
    font-weight: 100;
}

.thank-desc {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    max-width: 300px;
    margin-left: auto;
}

.thank-footer {
    margin-top: auto;
    font-size: 46px;
    font-family: 'Great Vibes', cursive;
    text-align: left;
}
.thank-copy {
    background: rgba(255,255,255,0.8);
    color: #000;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Cormorant Garamond', serif;
}
.scroll-anim,
.welcome-content {
    opacity: 0;
    transform: translateY(60px);
    transition: 1s ease-out;
}

.scroll-anim.show,
.welcome-content.show {
    opacity: 1;
    transform: translateY(0);
}

.pengantin-item {
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Container burung */
.birds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

/* Burung dasar */
.bird {
    position: absolute;
    opacity: 0.85;
    animation: fly-random linear infinite;
    transform-origin: center;
}

/* Animasi terbang acak */
@keyframes fly-random {
    0% {
        transform: translateX(-150px) translateY(var(--start-y)) scale(var(--scale)) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        transform: translateX(50vw) translateY(var(--mid-y)) scale(calc(var(--scale) * 1.05)) rotate(5deg);
    }
    100% {
        transform: translateX(120vw) translateY(var(--end-y)) scale(var(--scale)) rotate(-5deg);
        opacity: 0;
    }
}

/* --- Variasi Burung --- */

/* Burung 1 */
.bird-1 {
    --start-y: 20px;
    --mid-y: 0px;
    --end-y: -20px;
    --scale: 0.8;

    width: 55px;
    animation-duration: 14s;
    animation-delay: 0s;
}

/* Burung 2 */
.bird-2 {
    --start-y: 120px;
    --mid-y: 80px;
    --end-y: 100px;
    --scale: 0.6;

    width: 45px;
    animation-duration: 10s;
    animation-delay: 3s;
}

/* Burung 3 */
.bird-3 {
    --start-y: 200px;
    --mid-y: 140px;
    --end-y: 160px;
    --scale: 1;

    width: 75px;
    animation-duration: 16s;
    animation-delay: 6s;
}

/* Burung 4 (baru) */
.bird-4 {
    --start-y: 70px;
    --mid-y: 40px;
    --end-y: 80px;
    --scale: 0.9;

    width: 60px;
    animation-duration: 18s;
    animation-delay: 5s;
}

/* Burung 5 (baru) */
.bird-5 {
    --start-y: 250px;
    --mid-y: 180px;
    --end-y: 220px;
    --scale: 0.7;

    width: 50px;
    animation-duration: 13s;
    animation-delay: 2s;
}

/* Awal: semua section selain hero tidak terlihat */
.right-content > section:not(.hero-section) {
    visibility: hidden;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .9s ease, transform .9s ease;
}

/* Saat muncul setelah klik */
.show-section {
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Tombol Musik */
.music-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    font-size: 22px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

/* Animasi berputar */
.music-btn.playing {
    animation: spin 7s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Saat pause */
.music-btn.paused {
    animation: none;
}
#musicControl {
    width: 60px;              /* atur sesuai kebutuhan */
    height: 60px;             /* atur sesuai kebutuhan */
    background-image: url('images/img_7.JPG'); /* path foto */
    background-size: cover;   /* biar fotonya memenuhi kotak */
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50%;       /* kalau mau bentuk bulat */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Efek saat tombol diklik (active state) */
.music-btn.clicked {
    background: #d1d1d161 !important;   /* warna abu */
    background-image: none !important; /* hilangkan foto */
    transform: scale(0.9);            /* agak mengecil */
    transition: 0.15s;
}
/* MODAL BACKGROUND */
.gift-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(3px);
}

/* MODAL CONTENT */
.gift-modal-content {
    background: #fff;
    width: 90%;
    max-width: 500px;
    margin: 80px auto;
    padding: 25px;
    border-radius: 15px;
    animation: fadeIn 0.3s ease;
    color: #000;
}

@keyframes fadeIn {
    from {opacity: 0; transform: scale(0.9);}
    to {opacity: 1; transform: scale(1);}
}

/* CLOSE BUTTON */
.close-modal {
    float: right;
    font-size: 26px;
    cursor: pointer;
}

/* TITLE */
.modal-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
    font-family: 'Great Vibes', cursive;
}

/* CARD WRAPPER */
.gift-card-container {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

/* INDIVIDUAL CARD */
.gift-card-box {
    flex: 1;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* BANK LOGO */
.bank-logo {
    width: 70px;
    margin-bottom: 10px;
}

.copy-btn {
    margin-top: 8px;
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    background: #333;
    color: #fff;
    cursor: pointer;
}

.copy-btn:hover {
    background: #555;
}
