/* Styling Umum */
html, body {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f7f3ed;
    color: #443c32;
    text-align: center;
}

/* Splash Screen (Halaman Depan) */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #f7f3ed;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 1s ease-in-out;
}

.splash-content {
    animation: fadeIn 2s ease-in-out;
}

.splash-title {
    font-family: 'Playfair Display', serif;
    font-size: 2em;
    font-weight: 400;
    margin: 0;
}

.couple-names {
    font-family: 'Playfair Display', serif;
    font-size: 3em;
    font-weight: 700;
    margin: 10px 0 20px 0;
}

.guest-name {
    font-size: 1.2em;
    font-weight: 300;
    margin: 0;
}

.guest-name-placeholder {
    font-family: 'Playfair Display', serif;
    font-size: 1.5em;
    font-weight: 700;
    margin-top: 5px;
}

.open-button {
    background-color: #8c7851;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 1em;
    margin-top: 30px;
    cursor: pointer;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease;
}

.open-button:hover {
    background-color: #6a5c43;
}

/* Navigasi */
.main-nav {
    position: fixed;
    bottom: 0; /* Pindah ke bawah */
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    z-index: 999;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    transform: translateY(100%); /* Sembunyikan di bawah */
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px; /* Sedikit lebih tinggi untuk ikon */
}

.main-nav li {
    margin: 0 15px;
}

.main-nav a {
    text-decoration: none;
    color: #8c7851;
    font-weight: 600;
    font-size: 1.5em; /* Ukuran ikon lebih besar */
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #443c32;
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #8c7851;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.main-nav a:hover::after {
    transform: scaleX(1);
}

body.main-loaded .main-nav {
    transform: translateY(0);
}

/* Halaman Utama dan Konten */
.main-invitation {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    transition: transform 0.5s ease-in-out;
}

.invitation-section {
    padding: 60px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.invitation-section.section-intro { padding-top: 100px; }
.invitation-section.section-gifts, .invitation-section.section-closing { padding-bottom: 80px; }


/* Sisa styling lainnya sama seperti sebelumnya */

/* Ayat Al-Qur'an */
.arabic-text {
    font-family: 'Athelas', serif;
    font-size: 1.8em;
    line-height: 2em;
    margin-bottom: 15px;
}

.quran-verse {
    font-style: italic;
    font-size: 1em;
    line-height: 1.6em;
}

.quran-source {
    font-size: 0.9em;
    margin-top: 10px;
    color: #888;
}

/* Groom and Bride Section */
.section-couple {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.couple-card {
    text-align: center;
}

.couple-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #8c7851;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.couple-name {
    font-family: 'Playfair Display', serif;
    font-size: 2em;
    font-weight: 700;
    margin: 15px 0 5px 0;
    color: #8c7851;
}

.couple-parents {
    font-size: 0.9em;
    color: #777;
}

.and-symbol {
    font-family: 'Playfair Display', serif;
    font-size: 3em;
    color: #8c7851;
    margin: 0;
}

/* Event Details Section */
.section-events {
    text-align: center;
}

.event-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.event-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5em;
    font-weight: 700;
    color: #8c7851;
    margin-bottom: 10px;
}

.event-date, .event-time, .event-location {
    font-size: 1em;
    line-height: 1.6;
    margin: 0;
}

.location-link {
    display: inline-block;
    margin-top: 15px;
    color: #8c7851;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #8c7851;
    padding: 8px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.location-link:hover {
    background-color: #8c7851;
    color: #fff;
}

/* Countdown Timer */
.countdown-container {
    margin-top: 50px;
    background-color: #fff;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.countdown-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5em;
    font-weight: 700;
    color: #8c7851;
}

.countdown-timer {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5em;
    font-weight: 600;
    color: #443c32;
    margin-top: 20px;
}

/* Photo Gallery Section */
.section-gallery {
    padding-top: 50px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.gallery-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-photo:hover {
    transform: scale(1.05);
}

/* Ucapan Section */
.section-greetings {
    background-color: #f0eae4;
}

.greetings-form-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

#greeting-form input, #greeting-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

.submit-button {
    background-color: #8c7851;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 1em;
    cursor: pointer;
    border-radius: 5px;
    width: 100%;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #6a5c43;
}

.greetings-list {
    margin-top: 30px;
    text-align: left;
}

.greeting-item {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.greeting-name {
    font-weight: 600;
    color: #443c32;
}

.greeting-text {
    font-style: italic;
    color: #666;
    margin-top: 5px;
}

/* Hadiah Section */
.section-gifts {
    text-align: center;
}

.bank-info, .e-wallet-info {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    margin: 15px auto;
    max-width: 400px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.bank-info p, .e-wallet-info p {
    margin: 5px 0;
}

/* Penutup Section */
.section-closing {
    background-color: #f0eae4;
    padding-bottom: 80px;
}

.prayer-verse {
    font-style: italic;
    margin-top: 10px;
}

.couple-signature {
    margin-top: 40px;
}

.couple-signature p {
    font-size: 1em;
    font-style: italic;
    color: #777;
    margin-bottom: 10px;
}

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