/* 
 * Wedding Invitation CSS
 * Organized and optimized
 */

/* Color Variables */
:root {
    --primary: #ecaeb1;       /* Soft pink */
    --secondary: #f0bfbb;     /* Light coral */
    --accent1: #a25947;       /* Dark rose */
    --accent2: #d2ae9b;       /* Light beige */
    --dark-text: #333;
    --light-text: #fff;
    --bg-light: #f8e6e7;      /* Light pink background */
    --bg-white: #fff;
}

/* Import Bodoni Moda dari Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;500;600;700&display=swap');


/* ---------- RESET & BASE STYLES ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Bodoni Moda', serif;
}

body {
    background-color: var(--bg-light);
    color: var(--dark-text);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-fullscreen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    width: 100%;
    position: relative;
}

/* Tambahkan scroll snap untuk body */
html {
    scroll-behavior: smooth;
}

/* ---------- TYPOGRAPHY ---------- */
h1{
    font-family: 'Dancing Script', cursive;
    font-weight: 300;
    color: var(--accent1);
    letter-spacing: 1px;
}

h2, h3 {
    font-family: 'Bodoni Moda', serif;
    font-weight: 300;
    color: var(--accent1);
    letter-spacing: 1px;
}

p {
    line-height: 1.6;
    margin-bottom: 15px;
    font-family: 'Bodoni Moda', serif;
}

.text-center {
    text-align: center;
}

.mt-50 {
    margin-top: 50px;
}

.mb-50 {
    margin-bottom: 50px;
}

/* ---------- SECTION STYLES ---------- */

[data-section="true"] {
    min-height: 100vh; /* Set minimum height to full viewport height */
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0; /* Remove default padding to ensure full viewport coverage */
    margin: 0; /* Remove default margin */
    position: relative;
    overflow: hidden; /* Prevent content overflow */
}

.section {
    padding: 0;
}

.divider {
    width: 150px;
    height: 2px;
    background-color: var(--primary);
    margin: 30px auto;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary);
    color: var(--light-text);
    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: var(--accent1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.button {
    padding: 12px 30px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 30px;
    background-color: var(--primary);
    color: var(--light-text);
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: block;
    width: fit-content;
    margin: 10px auto;
}

.button:hover {
    background-color: var(--accent1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-view-map {
    display: inline-block;
    color: var(--light-text);
    padding: 6px 12px;
    background-color: var(--primary);
    border: 2px solid var(--primary);  
    border-radius: 50px; 
    text-decoration: none;
    margin-top: 0;
    font-size: 14px;
    transition: background-color 0.3s ease;
}
  
.btn-view-map:hover {
    background-color: var(--accent1);
    border-color: var(--accent1);
    color: var(--light-text);
}          

.celebrate-button {
    background: var(--primary);
    color: var(--light-text);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.celebrate-button:hover {
    background: var(--accent1);
    transform: scale(1.1);
}

.copy-button {
    background: var(--primary);
    color: var(--light-text);
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 10px 0;
    width: 100%;
    font-weight: bold;
}

.copy-button:hover {
    background: var(--accent1);
}

/* ---------- HERO SECTION ---------- */
.hero {
    background-image: linear-gradient(rgba(248, 230, 231, 0.9), rgba(248, 230, 231, 0.9));
    background-size: cover;
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: var(--bg-light);
    color: var(--dark-text);
    overflow: hidden;
    
}

.hero::before {
    content: url('img/flower-right1.png');
    position: absolute;
    top: 0;
    right: 0;
    z-index: 5;
    pointer-events: none;
    line-height: 0; /* Menghilangkan spasi di atas gambar */
    font-size: 0; /* Menghilangkan spasi tambahan */
    display: block; /* Pastikan display block */
    margin: 0; /* Hilangkan margin */
    padding: 0; /* Hilangkan padding */
    animation: fadeUpLeft 1.2s ease-out forwards;
}

.hero::after {
    content: url('img/flower-left1.png');
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 5;
    pointer-events: none;
    animation: fadeUpRight 1.2s ease-out forwards;
}
@keyframes fadeUpLeft {
    from {
        opacity: 0;
        transform: translate(50px, 50px);
    }
    to {
        opacity: 1;
        transform: translate(0, 0);
    }
}

@keyframes fadeUpRight {
    from {
        opacity: 0;
        transform: translate(-50px, 50px);
    }
    to {
        opacity: 1;
        transform: translate(0, 0);
    }
}


.hero-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
    margin: 0 auto;
    padding: 10px;
}

.names-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.hero h1 {
    font-size: 72px;
    margin-bottom: 20px;
    color: var(--accent1);
    font-family: "Dancing Script", cursive;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}


.hero p {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--primary);
}

.date-badge {
    background-color: var(--primary);
    color: floralwhite;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 24px;
    margin-top: 30px;
}

/* ---------- NAVIGATION ---------- */
#content-section {
    background: var(--primary);
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.bottom-navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: var(--primary);
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    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(--bg-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: color 0.3s ease;
     padding: 15px 0;
    width: 100%;
}

.bottom-navbar a:hover {
    color: var(--light-text);
}

.bottom-navbar i {
    font-size: 24px;
}

/* ---------- COUPLE SECTION ---------- */
.couple {
    background-color: var(--bg-white);
    background-image: url('img/petals.png');
    animation: fadeUpDown 1.2s ease-out forwards;
}

.couple-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 50px;
}

.partner h1 {
    font-size: 32px;
    font-family: 'Dancing Script', cursive;
    color: var(--accent1);
    margin: 10px 0;
}


.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 var(--primary);
}

.partner h3 {
    font-size: 28px;
    margin-bottom: 10px;
}

.heart-divider {
    font-size: 4px;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- EVENT DETAILS ---------- */
.event-details {
    background-color: var(--bg-light);
    background-image: url('img/left.png');
    background-repeat: repeat-y;
}

.event-card {
    background-color: var(--bg-white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    padding: 35px;
    margin-bottom: 25px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(236, 174, 177, 0.2);
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent1));
}

.event-card i {
    font-size: 35px;
    color: var(--primary);
    margin-bottom: 20px;
    background: rgba(236, 174, 177, 0.1);
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    display: inline-block;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.event-card i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 20px;
}



.event-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.event-card h2.text-center {
    margin-top: 20px;
}

.event-card i.fas.fa-fw {
    font-size: 20px;
    margin-top: 14px;
    margin-right: 8px;
    vertical-align: middle;
}

.fa-ring {
    font-size: 25px;
}

.fa-glass-cheers {
    font-size: 20px;
}

.event-card a {
    display: inline-flex;
    align-items: center;
}

.event-card a i.fa-location-dot {
    font-size: 18px;
}

.location-header {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}
.event-details.section {
    padding-bottom: 20px;
}

/* ---------- QUOTES SECTION ---------- */
.quotes {
    background-size: cover;
    color: var(--accent1);
    text-align: center;
    position: relative;
}

.quotes::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/flowertopbottom.png');
    background-repeat: repeat-x; /* This will repeat the image horizontally */
}

.quotes-content {
    position: relative;
    z-index: 1;
}

.quote {
    font-size: 15px;
    font-style: italic;
    max-width: 800px;
    margin: 0 auto 30px;
}

.quote-author {
    font-size: 18px;
}



/* ---------- CONFETTI EFFECT ---------- */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(-100vh);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* ---------- CLOSING ---------- */
.closing {
    background-size: cover;
    color: var(--accent1);
    text-align: center;
    position: relative;
}

.closing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-light);
    background-image: url('img/right.png'); /* Add this line */
    background-size: cover; /* This makes the image cover the entire section */
}
   


.closing-content {
    position: relative;
    z-index: 1;
}

.closing.section {
    padding-top: 30px;
    padding-bottom: 30px;
}

.closing .container {
    margin-top: 0;
}
.closing h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 48px;
    color: var(--accent1);
    margin-bottom: 10px;
    display: block; /* Pastikan elemen ditampilkan */
    visibility: visible; /* Pastikan elemen terlihat */
    position: relative; /* Pastikan elemen memiliki posisi yang benar */
    z-index: 10; /* Pastikan elemen berada di atas elemen lain */
}




/* ---------- FOOTER ---------- */
footer {
    background-color: var(--bg-white);
    color: var(--dark-text);
    text-align: center;
    padding: 20px 0;
    position: relative;
    width: 100%;
    margin-bottom: 80px; 
    z-index: 998;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

#footer a {
    display: inline-block;
    font-size: 14px;
    color: var(--primary);
    text-decoration: none;
    margin-bottom: 5px;
}

#footer p {
    margin: 5px 0;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 0;
    color: var(--primary);
}

#footer a:last-child {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    font-weight: bold;
    color: var(--primary);
} 

/* ---------- 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;
    cursor: pointer;
    transition: all 0.3s ease;
}

.music-player:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.music-player i {
    font-size: 26px;
    color: var(--primary);
    transition: color 0.3s ease;
}

.music-player.playing {
    background-color: var(--primary);
}

.music-player.playing i {
    color: var(--light-text);
}

/* ---------- RESPONSIVE STYLES ---------- */
@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;
    }
    
    .bg-flower {
        width: 100px;
        height: 100px;
    }

    .wishes-container {
        flex-direction: column;
        align-items: center;
        grid-template-columns: 1fr;
    }

    .wish-card {
        width: 90%;
    }
}

@media (max-width: 500px) {
    .popup {
        width: 90%;
    }

    .popup img {
        width: 70px;
    }

    .popup .fas.fa-home {
        font-size: 28px;
    }
}

@media (max-height: 800px) {
    .section-fullscreen {
        padding: 80px 0;
        min-height: 100vh;
    }
    
    .event-card {
        margin-bottom: 15px;
        padding: 20px;
    }
    
    .container {
     width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Untuk perangkat dengan layar sangat kecil */
@media (max-height: 600px) {
    .section-fullscreen {
        min-height: auto;
        padding: 60px 0;
    }
}

}

/* countdown */
.countdown-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    gap: 15px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.countdown-item span:first-child {
    font-size: 24px;
    font-weight: bold;
}

.countdown-label {
    font-size: 14px;
    margin-top: 5px;
}

/* RSVP Section */
.rsvp {
    background-color: #fff;
    background-image: url('img/petals.png');
}

.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;
    }
}

/* Gallery Section */
.gallery {
    background-color: #fff;
    background-image: url('img/petals.png');
}

.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);
}

/* Wishes Section */
.wishes {
    position: relative;
    z-index: 1;
    background-color: #fff;
    text-align: center;
    padding: 20px;
    background-image: url('img/petals.png');
}

.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;
    max-height: 300px;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: var(--primary) #f1f1f1;
        padding-right: 10px;
        margin-top: 20px;
}

 /* For Chrome, Edge, and Safari */
 .wishes-container::-webkit-scrollbar {
    width: 6px;
}

.wishes-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.wishes-container::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 10px;
}

.wish-card {
    background: #f8e6e7;
    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;
}

/*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: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;
}

