/* --- 0. RESET PENTING --- */
*, *::before, *::after {
    box-sizing: border-box; /* KUNCI: Mencegah padding menambah lebar elemen */
    margin: 0;
    padding: 0;
}

body {
    font-size: 1.1rem;
    font-family: sans-serif; /* Perbaikan: tanpa tanda kutip agar standar */
    overflow-x: hidden; /* Mencegah layar bisa digeser ke kanan-kiri */
    width: 100%;
    background-color: #f4f4f4; /* Warna latar belakang agar tidak kosong */
  
  
    /* TAMBAHKAN DUA BARIS DI BAWAH INI */
    touch-action: pan-y; /* Hanya izinkan scroll atas-bawah, cegah zoom jari */
    position: relative;

  }


:root {
    --pink: #f14e95;
    --bg-dark: #0a0a0a;
    --theme-color: #5d757d;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
/* --- 1. HERO / COVER SECTION --- */
/* Update CSS untuk efek terangkat */
#hero {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("BGAWAL.png");
    background-size: cover;
    background-position: center;
    /* Ubah transition agar fokus ke pergerakan posisi (transform/top) */
    transition: transform 1.5s cubic-bezier(0.65, 0, 0.35, 1), opacity 1.5s ease-in-out;
    will-change: transform; /* Optimasi performa animasi */
}

#hero.fade-out {
    /* Efek terangkat ke atas (slide up) */
    transform: translateY(-100%); 
    opacity: 0.8; /* Biarkan sedikit terlihat saat naik agar dramatis */
    pointer-events: none;
}
.hero h1 {
    font-size: 2rem;
}

.hero h4 {
    font-family: 'Sacramento', cursive;
    font-size: 5rem;
}

.hero a {
    color: var(--pink);
    background-color: white;
    border-radius: 50px;
    font-size: 16px;
    transition: 0.3s;
}

.hero a:hover {
    transform: scale(1.1);
    background-color: var(--pink);
    color: white;
}


/* --- FRAME 500PX UNTUK DESKTOP --- */
.wedding-frame {
    width: 100%;
    margin: 0 auto;
    background: #ffffff; /* Latar konten */
}

@media (min-width: 992px) {
    /* Background halaman desktop */
    body {
        background: url('BG.png') center/cover no-repeat fixed;
        /* Ganti 'BG-Desktop.jpg' dengan nama file background kamu */
        min-height: 100vh;
        padding: 20px 0;
    }

    /* Kontainer utama dibatasi 500px & ditengah */
    .wedding-frame {
        max-width: 500px;
        margin: 0 auto;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
        border-radius: 16px; /* Sudut melengkung (opsional) */
        overflow: hidden; /* Agar carousel tidak keluar radius */
    }

    /* Pastikan carousel & section tidak overflow */
    .wedding-frame section,
    .wedding-frame .carousel,
    .wedding-frame .carousel-inner {
        max-width: 100%;
    }
}



@media (max-width: 576px) {
.carousel-item.active {background-size: cover;
    background-repeat: no-repeat;}
    
}
/* --- 2. MAIN CONTENT (Awal) --- */

/* Pastikan elemen yang punya AOS di halaman awal tetap terlihat jika JS lambat */
#awal [data-aos] {
    opacity: 0;
    transition-property: transform, opacity;
}

#awal .aos-animate {
    opacity: 1;
}

/* --- 2. MAIN CONTENT (Perbaikan untuk AOS) --- */
#main-content {
    /* Jangan gunakan display: none di sini jika ingin AOS lancar secara instan */
    /* Kita akan biarkan JS yang menangani kemunculannya */
    visibility: hidden; 
    height: 0;
    overflow: hidden;
}

#main-content.show-content {
    visibility: visible;
    height: auto;
    overflow: visible;
}
section {
    display: block; /* Biarkan section tetap block agar AOS bisa menghitung posisinya nanti */
}

.container-awal .content-wedding {
    margin-top: auto;
    line-height: 1.2;
}

.container-awal h1 { font-size: 1.5rem; }
.container-awal h4 {
    font-family: 'Sacramento', cursive;
    font-size: 4rem;
}

/* Efek Zoom In pada Background Carousel */
.carousel-item.active .w-100 {
    animation: zoomBackground 15s infinite alternate;
}

@keyframes zoomBackground {
    from { transform: scale(1); }
    to { transform: scale(1.2); }
}

/* --- 3. SECTION MEMPELAI --- */
.main-container {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    position: relative;
}

.bg-custom {
    background-color: var(--theme-color);
    color: white;
    padding: 30px;
    text-align: center;
}

.bg-custom h2 {
    font-family: 'Sacramento', cursive;
    font-size: 2.5rem;
}

.profile-img {
    transition: transform 0.5s ease;
}

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

/* --- 4. SECTION AGENDA (CARD) --- */
.container-acara .card {
    width: 100%;
    max-width: 450px;
    border-radius: 50px;
    border: none;
    margin: 0 auto;
}
.container-acara {
    background-color: #F3E5AB;
}

.card-body h2 {
    font-family: 'Imperial Script', cursive;
    font-size: 3rem;
    color: var(--theme-color);
}

.card-body  {
    background-color: white !important;
    border-radius: 50px;
    font-family: 'sans-serif';
    color: black;
    font-size: 1.2rem;
    padding: 10px;
}

.BGagenda {
    background-color: #F3E5AB !important;
    border-radius: 50px;
    font-family: 'Sacramento', cursive;
    color: black !important;
    font-size: 2.5rem;
    padding: 10px;}


.container-acara .card .card-body img {
    width: 60%;
    max-width: 250px;
    display: block;
    margin: 0 auto 15px; /* Memperbaiki posisi gambar ke tengah */
}

/* --- 5. WEDDING GIFT --- */
.WG {
    background-color: rgba(255, 253, 208, 1.0);
    border-radius: 20px;
}

.WG h5 {
    font-size: 2.5rem;
    font-family: 'Sacramento', cursive;
}
/* =============================================
   6.UNIFIED CARD — UCAPAN & RSVP GABUNG
   ============================================= */



/* Header */
.unified-title {
    font-family: 'Sacramento', cursive;
    font-size: 3rem;
    color: var(--theme-color);
    margin-bottom: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.unified-subtitle {
    font-size: 0.85rem;
    color: #999;
    margin-top: 5px;
    letter-spacing: 1px;
}


/* =============================================
   RESPONSIVE (GABUNGAN & DIOPTIMALKAN)
   ============================================= */
@media (max-width: 576px) {
    .unified-card {
        padding: 25px 20px;
        border-radius: 20px;
    }

    .unified-title {
        font-size: 2.3rem;
    }

    
}

@media (min-width: 992px) {


    /* Tipografi lebih jelas di layar besar */
    .unified-title {
        font-size: 3.2rem;
        margin-bottom: 5px;
    }
    .unified-subtitle {
        font-size: 0.95rem;
    }
    .form-label {
        font-size: 1.05rem;
    }
}

/* --- 7. STICKY FOOTER NAV --- */
.sticky-footer {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    z-index: 998;
    background: rgba(93, 117, 125, 0.7);
    backdrop-filter: blur(10px);
    display: none; /* Muncul setelah klik buka */
    justify-content: space-around;
    padding: 10px;
    border-radius: 50px;
    box-shadow: var(--shadow);
}

.container-acara a {
  font-size: 15px;
  border-radius: 30px;
}


.nav-btn {
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
    transition: 0.3s;
}

.nav-btn:hover {
    color: #ffd700;
    transform: translateY(-5px);
}


.buttonKirim button {
  border-radius: 50px;
}



/* --- 8. COUNTDOWN --- */
#simplyCountdown {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.simply-section {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 65px;
    height: 65px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.3);
}

.simply-amount { font-size: 1.2rem; font-weight: bold; }
.simply-word { font-size: 0.6rem; text-transform: uppercase; }

/* --- 9. RESPONSIVE MOBILE --- */
@media (max-width: 576px) {
    .hero h4 { font-size: 3.5rem; }
    .container-awal h4 { font-size: 3.5rem; }
    .carosel-bawah h2 { font-size: 4rem; }
    
    .profile-img {
        width: 150px !important; /* Menyesuaikan ukuran profil di HP */
        height: 150px !important;
    }
    
    .sticky-footer {
        width: 95%;
        bottom: 10px;
    }
}

/* Global No Scroll */
.no-scroll {
    overflow: hidden !important;
    height: 100vh;
}

/* --- 6. CAROUSEL BAWAH (PENUTUP) --- */

.carosel-bawah p {
    font-size: 1.1rem;
    margin-top: 10px !important;
    margin-bottom: 20px; /* Perbesar jarak bawah paragraf */
    line-height: 1.5; /* Tambah line height */
}

.carosel-bawah h2 {
    font-size: 5rem;
    font-family: 'Sacramento', cursive;
    line-height: 1.2; /* Ubah dari 0.8 ke 1.2 agar tidak bertumpuk */
    margin-top: 20px !important; /* Ubah dari -10px ke positif */
    margin-bottom: 30px; /* Tambah jarak bawah nama */
}

.bird-icon {
    width: 150px;
    margin: 20px auto; /* Tambah margin atas bawah */
    display: block;
}

/* BAGIAN BAWAH (Sosmed/Powered By) */
.Identity-pembuat {
    width: 100%;
    padding-top: 30px; /* Tambah jarak atas */
    padding-bottom: 50px;
    position: relative;
    z-index: 20;
    margin-top: 20px; /* Tambah jarak dari nama */
}

.Identity-pembuat p {
    font-size: 8px;
    letter-spacing: 3px;
    margin-bottom: 0 !important; /* Memaksa margin bawah hilang */
    margin-top: 0;
    opacity: 0.6;
    line-height: 1; /* Mengatur tinggi baris agar tidak ada ruang sisa */
}

.Identity-pembuat h2 {
    font-family: serif;
    font-size: 18px !important;
    letter-spacing: 3px;
    margin-top: 0 !important; /* Memaksa margin atas hilang */
    margin-bottom: 20px !important;
    line-height: 1.2; /* Menyesuaikan tinggi tulisan agar proporsional */
}

.hubungi-kami {
    display: flex;
    justify-content: center;
    gap: 20px;
    position: relative;
    margin-top: 15px;
    z-index: 999;
}

.btn-hub {
    color: white !important;
    font-size: 1.3rem;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.4s;
}

.btn-hub:hover {
    background: white;
    color: black !important;
}

/* LAPTOP FULL WIDTH */
@media (min-width: 992px) {
    #Penutupcover {
        margin: 0 -50px;
        width: calc(100% + 100px);
    }
    .overlay-content {
        padding: 60px 40px 30px 40px;
    }
}

/* Responsive untuk mobile */
@media (max-width: 768px) {
    .carosel-bawah h2 {
        font-size: 3.5rem; /* Kecilkan font di mobile */
    }
    
    .bird-icon {
        width: 120px; /* Kecilkan bird di mobile */
    }
}
