/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cormorant Garamond', serif;
}

body {
    background-color: #ece3d5d8;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    color: #a52a2a;
}

p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.text-center {
    text-align: center;
}

.mt-50 {
    margin-top: 50px;
}

.mb-50 {
    margin-bottom: 50px;
}

.section {
    padding: 80px 0;
    position: relative;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #a52a2a;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #8b0000;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.divider {
    width: 150px;
    height: 2px;
    background-color: #a52a2a;
    margin: 30px auto;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-image: url('img/awak\ \(1\).jpg'); 
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    padding: 80px 0 200px;
    overflow: hidden;
    color: #fff;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden; /* agar tidak keluar area */
    line-height: 0;   /* hilangkan spasi */
    z-index: 1;
  }
  .wave svg {
    display: block;
    width: 100%;
    height: 150px; /* atur tinggi gelombang */
  }


/* --- STYLING WAVE UMUM --- */
.wave {
position: absolute;
left: 0;
width: 100%;
line-height: 0; /* Hilangkan spasi */
}
.wave svg {
width: 100%;
height: 100%;
display: block;
}

/* --- LAYER 1 (PALING BAWAH) --- */
.wave1 {
bottom: 0;       /* Melekat di dasar hero */
height: 180px;   /* Atur tinggi wave */
z-index: 1;      /* Paling bawah */
}

/* --- LAYER 2 (DI ATAS LAYER 1) --- */
.wave2 {
bottom: -20px;   /* Geser sedikit agar tumpang tindih */
height: 200px;
z-index: 2;
}

/* --- LAYER 3 (PALING ATAS DI ANTARA WAVE) --- */
.wave3 {
bottom: -40px;   /* Geser lebih jauh untuk overlap lebih besar */
height: 220px;
z-index: 3;
}

.wave path {
fill: #a52a2a; /* warna wave, bisa diganti */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 72px;
    margin-bottom: 20px;
    color: #fff;
    font-family: "Fugaz One", sans-serif;
}

.hero p {
    font-size: 24px;
    margin-bottom: 30px;
}

.date-badge {
    background-color: #ffffff;;
    color: #333;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 24px;
    margin-top: 30px;
}

/* content section*/
#content-section {
    background: #a52a2a;
    position: fixed;  /* Tetap di layar */
    bottom: 0;  /* Letakkan di bawah */
    left: 0;
    width: 100%;  /* Lebar penuh */
    padding: 10px 0;  /* Ruang dalam */
    display: flex;  /* Flexbox untuk tata letak */
    justify-content: center;  /* Rata tengah */
    align-items: center;  /* Posisi tengah vertikal */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);  /* Efek bayangan */
    z-index: 1000;  /* Supaya ada di atas elemen lain */
}

:root {
    --very-light-grey: #f0f0f0;
    --white: #ffffff;
}

/* Navbar Bawah */
.bottom-navbar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 80px;
        background: #a52a2a;
        display: flex;
        justify-content: space-around;
        align-items: center;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 999; /* Tetap di atas footer saat di-scroll */
        padding: 0 10px;
    }

.bottom-navbar ul {
    list-style: none;
    display: flex;
    width: 100%;
    justify-content: space-around;
    align-items: center;
    padding: 0;
    margin: 0;
}

.bottom-navbar li {
    flex: 1;
    text-align: center;
}

.bottom-navbar a {
    text-decoration: none;
    color: var(--very-light-grey);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: color 0.3s ease;
}

.bottom-navbar a:hover {
    color: var(--white);
}

.bottom-navbar i {
    font-size: 24px;
}



/* Remainder of your CSS stays the same */
/* Couple Section */

.instagram-icon {
display: inline-block;
margin-top: 10px;       /* Jarak dari teks di atasnya */
color: #a52a2a;         /* Warna default Instagram */     
/* Ukuran lingkaran dan tata letak icon */
width: 40px;           /* Lebar lingkaran */
height: 40px;          /* Tinggi lingkaran */
line-height: 40px;     /* Supaya icon pas di tengah vertikal */
text-align: center;    /* Icon di tengah horizontal */
border-radius: 50%;    /* Membuatnya bulat (circle) */
/* Warna background & border */
background-color: #f5f5f5;    /* Warna latar lingkaran */
border: 2px solid #a52a2a;    /* Warna border lingkaran */
/* Warna & ukuran icon */
color: #a52a2a;        /* Warna icon Instagram */
font-size: 20px;       /* Ukuran font icon */
text-decoration: none; /* Hilangkan garis bawah (jika ada) */

/* Efek transisi saat hover */
transition: all 0.3s ease;
  }
  
  .instagram-icon:hover {
    background-color: #a52a2a;
    color: #ffffff;    
    border-color: #ffffff;      /* Warna saat hover */
  }
  
.couple {
    background-color: #fff;
}

.couple-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 50px;
}

.partner {
    text-align: center;
    flex: 1;
    min-width: 300px;
}

.partner img {
    width: 200px;
    height: 200px;
    border-radius: 30% 30%;
    object-fit: cover;
    object-position: 50% 20%;
    margin-bottom: 20px;
    border: 5px solid rgba(165, 42, 42, 0.996);
}

.partner h3 {
    font-size: 28px;
    margin-bottom: 10px;
}

.heart-divider {
    font-size: 40px;
    color: #a52a2a;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Event Details */
.event-details {
    background-color: #ece3d5d8;
}

.event-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.event-card i {
    font-size: 40px;
    color: #a52a2a;
    margin-bottom: 20px;
}

.event-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

/* Mengurangi jarak antara "Location" dan elemen atasnya */
.event-card h2.text-center {
    margin-top: 20px; /* Kurangi dari 50px menjadi 20px */
}

/* Menyesuaikan ukuran ikon agar tidak terlalu besar */
.event-card i.fas.fa-fw {
    font-size: 20px; /* Atur ukuran ikon */
    margin-top: 14px;
    margin-right: 8px; /* Beri sedikit jarak dengan teks */
    vertical-align: middle; /* Pastikan ikon sejajar dengan teks */
}
.fa-ring{
    font-size: 25px;
}
.fa-glass-cheers{
    font-size: 20px;
}

/* Menata ulang tautan Location agar tidak pecah */
.event-card a {
    display: inline-flex;
    align-items: center;
}

/* Opsional: Jika ikon lokasi masih terlalu besar */
.event-card a i.fa-location-dot {
    font-size: 18px; /* Sesuaikan ukuran ikon lokasi */
}

/* Contoh styling untuk .location-header agar judul & tombol sejajar horizontal */
.location-header {
    display: flex;
    align-items: center;   /* Vertically center */
    gap: 10px;            /* Jarak antara h2 dan tombol */
    justify-content: center; /* Jika ingin rata tengah, atau pakai space-between dll. */
}

/* Contoh styling tombol */
.btn-view-map {
    display: inline-block;
    background-color: #8B1F1F; /* Ganti sesuai warna tema */
    color: #fff;
    padding: 6px 12px;
    background-color: #a52a2a;    /* Warna latar lingkaran */
    border: 2px solid #a52a2a;  
    border-radius: 50px; 
    text-decoration: none;
    margin-top: 0px;
    font-size: 14px;
    transition: background-color 0.3s ease;
  }
  
  .btn-view-map:hover {
    background-color: #a52a2a; /* Warna saat hover */
    color: #fff;
  }          

/* RSVP Section */
.rsvp {
    background-color: #fff;
}

.rsvp-button {
    position: relative;
    z-index: 10;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #a52a2a;
    outline: none;
    box-shadow: 0 0 0 3px rgba(155, 123, 85, 0.3);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 5px;
}

.celebrate-button {
    background: #a52a2a;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}
.celebrate-button:hover {
    background: #8b0000;
    transform: scale(1.1);
}
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: gold;
    border-radius: 50%;
    animation: fall linear infinite;
}
@keyframes fall {
    0% {
        transform: translateY(-100vh);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}


/* Quotes Section */
.quotes {
    background:url('img/herok.jpg') no-repeat center center;
    background-size: cover;
    color: #fff;
    text-align: center;
    position: relative;
}

.quotes::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.quotes-content {
    position: relative;
    z-index: 1;
}

.quote {
    font-size: 28px;
    font-style: italic;
    max-width: 800px;
    margin: 0 auto 30px;
}

.quote-author {
    font-size: 18px;
}

/* Gallery Section */
.gallery {
    background-color: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.gallery-item {
    height: 250px;
    overflow: hidden;
    border-radius: 10px;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/*GIFT SECTION*/
.gift-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 50px 0;
}

.gift-title {
    font-size: 28px;
    color: #a52a2a;
    font-weight: 300;
    margin-bottom: 20px;
}

.button {
    padding: 12px 30px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 30px;
    background-color: #a52a2a;
    color: white;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: block;
    width: fit-content;
    margin: 10px auto;
}

.button:hover {
    background-color: #8b0000;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}


/* Popup Styling */
/* Pastikan popup selalu di atas */
.popup {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: #fff;
padding: 20px;
border-radius: 10px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
max-width: 90%;
width: 350px;
z-index: 9999 !important;
text-align: center;
display: none;
}

/* Overlay tidak memblokir klik */
.overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
z-index: 9998; /* Tetap di bawah popup */
pointer-events: none;
}

.popup .close {
position: absolute;
top: 10px;
right: 15px;
cursor: pointer;
font-size: 24px;
}

/* Close Button */
.close {
position: absolute;
top: 10px;
right: 15px;
font-size: 20px;
cursor: pointer;
color: #777;
}
.close:hover {
color: #333;
}

/* Title Styling */
.popup-title {
font-size: 18px;
font-weight: bold;
margin-bottom: 10px;
}


/* Jarak antar elemen */
.popup p {
margin: 10px 0;
}

/* Logo Styling */
.popup img {
display: block;
margin: 20px auto;
max-width: 80px;
margin-bottom: 10px;
width: 80px; /* Sesuaikan ukuran logo */
}

/* Icon Home */
.popup .fas.fa-home {
font-size: 30px;
margin: 20px 0;
margin-bottom: 10px;
}


/* Copy Button */
.copy-button {
background: #a52a2a;
color: white;
padding: 10px 15px;
border: none;
border-radius: 5px;
cursor: pointer;
margin: 10px 0;
width: 100%;
font-weight: bold;
}

.copy-button:hover {
background: #8b0000;
}

/* Address Styling */
.address {
font-size: 14px;
color: #555;
}


/* Responsiveness */
@media (max-width: 500px) {
.popup {
width: 90%;
}

.popup img {
width: 70px;
}

.popup .fas.fa-home {
font-size: 28px;
}
}

/* Wishes Section */
.wishes {
    position: relative;
    z-index: 1;
    background-color: #fff;
    text-align: center;
    padding: 20px;
}

.wishes-container {
    display: grid;
    display: flex;
    grid-template-columns: repeat (auto-fit, minmax(300px, 1fr));  
    flex-wrap: wrap; /* Membuat elemen turun ke bawah jika tidak cukup ruang */
    justify-items: center;
    gap: 40px; /* Kurangi jarak antar elemen */
    align-items: center;
    max-width: 700px; /* Batasi lebar maksimal */
    margin: 0 auto;
    margin-top: 10px
}

.wish-card {
    background: #ece3d5d8;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
   max-width: 320px; /* Ukuran default */
   width: 100%;
}

.wish-author {
    font-weight: bold;
    margin-top: 5px;
    color: #a52a2a;
}


.wish-card p {
    font-style: italic;
    margin-bottom: 10px;
    color: black;
}

/* Footer */
footer {
    background-color: #ffffff; /* Warna putih */
    color: #333;
    text-align: center;
    padding: 20px 0;
    position: relative;
    width: 100%;
    margin-bottom: 80px; 
    z-index: 998; /* Lebih kecil dari navbar */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}


/* Styling untuk teks */
#footer a {
    display: inline-block;
    font-size: 14px;
    color: black;
    text-decoration: none;
    margin-bottom: 5px; /* Jarak antar elemen */
}

#footer p {
    margin: 5px 0; /* Memberikan jarak vertikal antar teks */
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 0;
}

/* Back to top */
#footer a:last-child {
    display: block;
    margin-top: 10px; /* Jarak lebih besar sebelum tombol */
    font-size: 14px;
    font-weight: bold;
} 

/* Music Player */
.music-player {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 65px;
    height: 65px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    z-index: 9999; /* Pastikan berada di atas elemen lain */
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Hover Effect */
.music-player:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Ikon */
.music-player i {
    font-size: 26px;
    color: #a52a2a;
    transition: color 0.3s ease;
}

/* Saat musik diputar */
.music-player.playing {
    background-color: #a52a2a;
}

.music-player.playing i {
    color: white;
}



/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 48px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .partner {
        min-width: 100%;
    }
    
    .heart-divider {
        margin: 20px 0;
    }
    
    .flower-top-left, .flower-bottom-right {
        width: 100px;
        height: 100px;
    }

    .wishes-container {
        flex-direction: column; /* Pada layar kecil, atur agar kartu menumpuk ke bawah */
        align-items: center; /* Supaya tetap rapi di tengah */
        grid-template-columns: 1fr;
    }

    .wish-card {
        width: 90%; /* Supaya lebih fleksibel di layar kecil */
    }
}