/* --- Global Styles & Variables --- */
:root {
    --color-primary: #a08157; /* Cokelat keemasan / earth tone */
    --color-secondary: #fdfafa; /* Putih bersih / krem */
    --color-text-dark: #333;
    --color-text-light: #fefefe;
    --color-accent: #e0b46a; /* Emas terang */
    --font-script: 'Dancing Script', cursive;
    --font-body: 'Playfair Display', serif;
    --border-radius: 12px;
    --box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.4s; /* Kecepatan transisi umum */
    --background-pattern-light: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sbnM9Imh0dHA6Ly93d3cuc2JzY2hvb2xzLmNvbS9jb2RlLLh0bWwvZ3JhcGhpYy9zdmcvc3ZnLWljb25zLmh0bWwvYXNzZXRzL2NvbnRhaW5lci5zdmciPgoJPGdyYWRpZW50SWQgaWQ9Imd1aWRlQSI+CgkJPHN0b3Agc3RvcC1jb2xvcj0iI2Y1ZjVkNyIgb2Zmc2V0PSIwIi8+CgkJPHN0b3Agc3RvcC1jb2xvcj0iI2U4ZTdlYyIgb2Zmc2V0PSIuMzMiLz4KCQk8c3RvcCBzdG9wLWNvbG9yPSIjZjhmOGZjIiBvZmZzZXQ9IjEiLz4KCTwvZ3JhdGljZUlEPgoJPGcgaWQ9IkxheWVyXzEiPgogICAgCTxwYXRoIGQ9Ik0wIDBoNjB2NjBoLTYwdi02MHoiIGZpbGw9InVybCgjZ3JhdGljZUlEPiIvPgoJPGcvPgo8L3N2Zz4='); /* Pola tekstur ringan */
    --background-pattern-dark: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sbnM9Imh0dHA6Ly93d3cuc2JzY2hvb2xzLmNvbS9jb2RlL2h0bWwvZ3JhcGhpYy9zdmcvc3ZnLWljb25zLmh0bWwvYXNzZXRzL2NvbnRhaW5lci5zdmciPgoJPGdyYWRpZW50SWQgaWQ9Imd1aWRlQSI+CgkJPHN0b3Agc3RvcC1jb2xvcj0iIzczNTY0MCIgb2Zmc2V0PSIwIi8+CgkJPHN0b3Agc3RvcC1jb2xvcj0iIzU1NDAwMCIgb2Zmc2V0PSIuMzMiLz4KCQk8c3RvcCBzdG9wLWNvbG9yPSIjNDYyYTAwIiBvZmZzZXQ9IjEiLz4KCTwvZ3JhdGljZUlEPgoJPGcgaWQ9IkxheWVyXzEiPgogICAgCTxwYXRoIGQ9Ik0wIDHoNjB2NjBoLTYwdi02MHoiIGZpbGw9InVybCgjZ3JhdGljZUlEPiIvPgoJPGcvPgo8L3N2Zz4='); /* Pola tekstur gelap */
    --color-orange-navbar: #FF8C00; /* Warna oranye spesifik untuk navbar */
}

/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    background-color: var(--color-secondary); /* Warna dasar terang */
    overflow-x: hidden;
    scroll-behavior: smooth;
    line-height: 1.6;
}

/* Typography */
.script-font {
    font-family: var(--font-script);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 0.5em;
    color: var(--color-primary);
}

p {
    margin-bottom: 1em;
}

/* --- General Layout --- */
.main-wrapper {
    position: relative;
    overflow: hidden;
    background-color: var(--color-secondary); /* Fallback */
    padding-bottom: 70px; /* Tambahan padding untuk bottom nav */
}

.section {
    padding: 80px 20px;
    max-width: 900px;
    margin: 20px auto; /* Memberikan sedikit margin antar section */
    text-align: center;
    background-color: var(--color-secondary);
    color: var(--color-text-dark);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
}

/* Style untuk section dengan background gelap/motif */
.our-story-section, .gallery-section, .rsvp-section {
    background-color: var(--color-primary);
    background-image: var(--background-pattern-dark);
    background-repeat: repeat;
    color: var(--color-text-light);
    box-shadow: none; /* Hilangkan shadow jika background motif */
    border-radius: 0; /* Untuk seamless transition */
    padding: 100px 20px; /* Padding lebih besar */
    margin-top: -80px; /* Overlap untuk seamless effect */
    margin-bottom: -80px;
}
.our-story-section .section-title,
.gallery-section .section-title,
.rsvp-section .section-title {
    color: var(--color-accent); /* Judul warna emas di bg gelap */
}
.our-story-section .story-item,
.rsvp-section .rsvp-form,
.rsvp-section .guest-stats,
.rsvp-section .guest-list {
    background-color: var(--color-secondary); /* Card putih di bg gelap */
    color: var(--color-text-dark);
}


.section-title {
    font-size: 3em;
    margin-bottom: 50px;
    color: var(--color-primary);
}

.section-subtitle {
    font-size: 1.5em;
    color: var(--color-primary);
    margin-bottom: 10px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 35px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    text-decoration: none;
    font-weight: bold;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}
.btn-primary:hover {
    background-color: #8c6e4e; /* Slightly darker primary */
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}
.btn-secondary:hover {
    background-color: var(--color-primary);
    color: white;
    transform: translateY(-3px);
}

.btn-map {
    background-color: #4CAF50; /* Green for map */
    color: white;
}
.btn-map:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

.btn-copy {
    background-color: #007bff; /* Blue for copy */
    color: white;
    padding: 10px 20px;
    font-size: 0.9em;
}
.btn-copy:hover {
    background-color: #0056b3;
}

/* --- Cover Section --- */
.cover-section {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url("./img/megang\ bunga.jpg"); /* Ganti dengan gambar cover Anda */
    background-size: cover;
    background-position: center;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
    flex-direction: column;
    overflow: hidden;
}

.cover-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* Overlay gelap */
    z-index: 1;
}

.cover-content {
    text-align: center;
    z-index: 2;
    transform: translateY(0); /* Initial state */
    transition: transform 1s ease-out, opacity 1s ease-out;
}
/* Animation for cover content when opening */
.invitation-content-visible + .cover-section .cover-content {
    transform: translateY(-100px); /* Move up */
    opacity: 0;
}


.cover-section .section-subtitle {
    font-size: 1.8em;
    color: var(--color-accent);
}

.cover-section .couple-names {
    font-size: 5em;
    margin-bottom: 20px;
    line-height: 1;
    color: var(--color-primary); /* Warna emas di nama */
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.7);
}

.cover-section .to-text {
    font-size: 1.2em;
    margin-top: 30px;
}

.cover-section .guest-name {
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 40px;
}

/* --- Invitation Content Visibility --- */
.invitation-content-hidden {
    display: none;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.invitation-content-visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* --- Bottom Fixed Navigation Bar (DIBAWAH) --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px; /* Tinggi navigasi */
    background-color: var(--color-orange-navbar); /* Menggunakan warna oranye yang Anda inginkan */
    display: flex;
    justify-content: space-around; /* Distribute items evenly */
    align-items: center;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.15);
    z-index: 999;
    /* Mulai tersembunyi, akan muncul dengan JS */
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.bottom-nav.visible {
    opacity: 1;
    transform: translateY(0);
}

.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1; /* Agar item membagi ruang secara merata */
    color: white; /* Warna teks putih */
    text-decoration: none;
    font-size: 0.8em;
    padding: 5px 0; /* Padding vertikal */
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center; /* Pastikan teks di tengah */
}

.bottom-nav .nav-item i {
    font-size: 1.4em; /* Ukuran ikon */
    margin-bottom: 5px; /* Jarak antara ikon dan teks */
    color: white; /* Warna ikon putih */
    transition: color 0.3s ease;
}

.bottom-nav .nav-item span {
    display: block; /* Pastikan teks di baris baru */
}

.bottom-nav .nav-item:hover {
    background-color: rgba(0, 0, 0, 0.1); /* Sedikit gelap saat hover */
    color: white; /* Teks tetap putih saat hover */
}
.bottom-nav .nav-item:hover i {
    color: white; /* Ikon tetap putih saat hover */
}


.bottom-nav .nav-item.active {
    background-color: rgba(0, 0, 0, 0.2); /* Lebih gelap saat aktif */
    color: white; /* Teks tetap putih saat aktif */
}
.bottom-nav .nav-item.active i {
    color: white; /* Ikon tetap putih saat aktif */
}

/* Music Toggle Button (di dalam bottom nav) */
.music-toggle-btn {
    background-color: transparent;
    border: none;
    /* inherit color from .nav-item */
    /* font-size from .nav-item i */
    cursor: pointer;
    padding: 0; /* padding ditangani oleh .nav-item */
    transition: color 0.3s ease;
    /* margin-left: 10px; Dihapus karena sudah flex:1 */
}
.music-toggle-btn:hover {
    color: white; /* Tetap putih saat hover */
}


/* --- Our Story Section --- */
.our-story-section .story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: left;
}

.our-story-section .story-item:last-child {
    margin-bottom: 0;
}

.story-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 25px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.story-text h3 {
    font-size: 1.9em;
    margin-bottom: 15px;
    color: var(--color-primary);
}

.story-text p {
    font-size: 1.1em;
    color: var(--color-text-dark);
}

/* --- Gallery Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.gallery-item {
    width: 100%;
    height: 250px; /* Fixed height for consistent look */
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed) ease, filter var(--transition-speed) ease;
}

.gallery-item:hover {
    transform: scale(1.05) rotate(2deg);
    filter: brightness(1.1);
}

.slideshow-container {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    height: 450px; /* Fixed height for slideshow */
}

.slideshow-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1.5s ease-in-out; /* Smooth transition for slides */
}

.slideshow-image.active {
    opacity: 1;
}

/* --- Schedule Section --- */
.schedule-section {
    background-image: var(--background-pattern-light); /* Motif ringan */
    background-repeat: repeat;
    color: var(--color-text-dark);
}

.timeline {
    position: relative;
    margin: 50px auto;
    max-width: 700px;
    padding: 0 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--color-accent); /* Garis timeline emas */
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: var(--color-accent);
    border-radius: 50%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    border: 3px solid var(--color-secondary); /* Border putih agar menonjol */
}

.timeline-time {
    width: 45%;
    text-align: right;
    padding-right: 30px;
    font-weight: bold;
    font-size: 1.2em;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.timeline-time i {
    margin-left: 10px;
    color: var(--color-accent);
    font-size: 1.3em;
}

.timeline-content {
    width: 55%;
    text-align: left;
    padding-left: 30px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
}

.timeline-content h3 {
    margin-top: 0;
    color: var(--color-primary);
    font-size: 1.6em;
}

.timeline-content ul {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.timeline-content ul li {
    margin-bottom: 5px;
    font-size: 0.95em;
}

/* Alternate side for even items */
.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}
.timeline-item:nth-child(even) .timeline-time {
    text-align: left;
    padding-left: 30px;
    padding-right: 0;
    justify-content: flex-start;
}
.timeline-item:nth-child(even) .timeline-time i {
    margin-right: 10px;
    margin-left: 0;
}
.timeline-item:nth-child(even) .timeline-content {
    text-align: right;
    padding-right: 30px;
    padding-left: 0;
}


/* --- Events Section --- */
.events-section {
    background-image: var(--background-pattern-light); /* Motif ringan */
    background-repeat: repeat;
    color: var(--color-text-dark);
}
.event-card {
    background-color: var(--color-secondary);
    padding: 35px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 35px;
    text-align: left;
}

.event-card h3 {
    font-size: 2em;
    color: var(--color-primary);
    margin-bottom: 20px;
    text-align: center;
}

.event-card p {
    margin-bottom: 10px;
    font-size: 1.05em;
    display: flex;
    align-items: center;
}
.event-card p i {
    margin-right: 10px;
    color: var(--color-primary);
    font-size: 1.2em;
}

/* --- Map Section --- */
.map-section {
    background-color: var(--color-primary);
    background-image: var(--background-pattern-dark);
    background-repeat: repeat;
    color: var(--color-text-light);
    box-shadow: none;
    border-radius: 0;
    padding: 100px 20px;
    margin-top: -80px;
    margin-bottom: -80px;
}
.map-section .section-title {
    color: var(--color-accent);
}

.farewell-text {
    font-size: 1.2em;
    line-height: 1.7;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--color-text-light);
}

.google-map-container {
    position: relative;
    width: 100%;
    height: 500px; /* Slightly taller map */
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.google-map-container iframe {
    border: none;
    filter: grayscale(80%) invert(5%) brightness(1.05); /* Memberi nuansa vintage/sepia */
}

.map-overlay {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--color-text-dark);
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1em;
    box-shadow: var(--box-shadow);
    white-space: nowrap;
    text-align: center;
}

.map-overlay a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    margin-top: 5px;
    display: block;
}

/* --- RSVP Section --- */
.rsvp-form {
    padding: 40px;
    margin-bottom: 40px;
    text-align: left;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: var(--color-primary); /* Warna label */
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    color: var(--color-text-dark);
    background-color: #fcfcfc;
    transition: border-color var(--transition-speed) ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 5px rgba(160, 129, 87, 0.3); /* Custom shadow for focus using RGB for primary color */
}

.form-group input:read-only {
    background-color: #eee;
    cursor: not-allowed;
}

.guest-stats {
    padding: 25px;
    margin-bottom: 35px;
    text-align: left;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    background-color: var(--color-secondary);
    color: var(--color-text-dark);
}

.guest-stats p {
    display: flex;
    align-items: center;
    margin: 5px 15px;
    font-size: 1.1em;
}

.stat-circle {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    margin-right: 12px;
    display: inline-block;
}

.stat-circle.blue { background-color: #007bff; }
.stat-circle.green { background-color: #28a745; }

.guest-list {
    padding: 30px;
    text-align: left;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    background-color: var(--color-secondary);
    color: var(--color-text-dark);
}

.guest-list h3 {
    margin-top: 0;
    margin-bottom: 25px;
    color: var(--color-primary);
    text-align: center;
}

.guest-entry {
    border-bottom: 1px dashed #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.guest-entry:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.guest-name-ucapan {
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.guest-name-ucapan .tag {
    background-color: var(--color-accent);
    color: white;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 0.8em;
    font-weight: normal;
}

.guest-message {
    font-style: italic;
    color: #555;
    font-size: 0.95em;
}

.virtual-gift-entry {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.virtual-gift-image {
    max-width: 100px;
    height: auto;
    margin-top: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* --- Gifts Section --- */
.gifts-section {
    background-image: var(--background-pattern-light); /* Motif ringan */
    background-repeat: repeat;
    color: var(--color-text-dark);
}
.gifts-section .section-title {
    color: var(--color-primary);
}

.gift-text {
    font-size: 1.15em;
    line-height: 1.7;
    margin-bottom: 25px;
    color: var(--color-text-dark);
}

.note {
    font-size: 0.9em;
    color: #888;
    margin-bottom: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.note i {
    margin-right: 8px;
    color: var(--color-primary);
}

.bank-details-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 40px;
    /* Hidden/visible classes will handle display/opacity */
}

.bank-card {
    background-color: var(--color-secondary);
    color: var(--color-text-dark);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.bank-logo {
    max-width: 120px;
    height: auto;
    margin-bottom: 10px;
}

.account-number {
    font-size: 1.7em;
    font-weight: bold;
    color: var(--color-primary);
    letter-spacing: 1px;
}

.account-name {
    font-size: 1.1em;
    margin-bottom: 15px;
}

/* Visibility for bank details (controlled by JS) */
.bank-details-container.hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.bank-details-container.visible {
    display: flex; /* Override display: none */
    opacity: 1;
    transform: translateY(0);
}

/* --- Closing Section --- */
.closing-section {
    background-color: var(--color-primary);
    background-image: var(--background-pattern-dark);
    background-repeat: repeat;
    color: var(--color-text-light);
    box-shadow: none;
    border-radius: 0;
    padding: 100px 20px;
    margin-top: -80px;
    margin-bottom: 0; /* No bottom margin, leads to footer */
}
.closing-section .section-title {
    color: var(--color-accent);
}

.closing-quote {
    font-size: 1.8em;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-style: italic;
    color: var(--color-accent); /* Warna emas untuk quote */
}

.closing-quote small {
    display: block;
    margin-top: 15px;
    font-size: 0.6em;
    font-style: normal;
    color: rgba(255, 255, 255, 0.7);
}

.thanks-text {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--color-text-light);
}


/* --- Scroll Animations (JavaScript controlled) --- */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Specific animation types */
.animate-on-scroll.fade-in {
    transform: translateY(20px);
}
.animate-on-scroll.slide-up {
    transform: translateY(50px);
}
.animate-on-scroll.slide-left {
    transform: translateX(-50px);
}
.animate-on-scroll.slide-right {
    transform: translateX(50px);
}
.animate-on-scroll.zoom-in {
    transform: scale(0.9);
}

/* When element is in view */
.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* Animation delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }


/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .section {
        padding: 50px 15px;
        margin: 15px auto;
    }

    .section-title {
        font-size: 2.2em;
        margin-bottom: 30px;
    }

    .cover-section .couple-names {
        font-size: 3.5em;
    }

    .cover-section .guest-name {
        font-size: 1.5em;
    }

    .our-story-section, .gallery-section, .rsvp-section, .map-section, .closing-section {
        padding: 70px 15px;
        margin-top: -50px;
        margin-bottom: -50px;
    }

    .story-item {
        flex-direction: column;
    }

    .story-image {
        margin-bottom: 20px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 10px;
    }

    .gallery-item {
        height: 200px;
    }

    /* Adjusted for better coverage on smaller screens */
    .slideshow-container {
        height: 50vh; /* Increased height for better coverage */
        max-width: 100%; /* Ensure it takes full width */
        border-radius: 0; /* Optional: remove border-radius for full screen edge-to-edge */
        box-shadow: none; /* Optional: remove shadow for full screen edge-to-edge */
    }

    .timeline::before {
        left: 20px;
        transform: translateX(0);
    }

    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .timeline-item::before {
        left: 20px;
        transform: translateX(0);
    }

    .timeline-time {
        width: 100%;
        text-align: left;
        padding-left: 45px; /* Offset for line and dot */
        padding-right: 0;
        margin-bottom: 10px;
        justify-content: flex-start; /* Align icon with text */
    }
    .timeline-time i {
        margin-left: 0;
        margin-right: 10px;
    }

    .timeline-content {
        width: 100%;
        padding-left: 45px; /* Offset for line and dot */
        text-align: left;
        padding-right: 15px;
    }

    /* Reset alternate for small screens */
    .timeline-item:nth-child(even) {
        flex-direction: column;
    }
    .timeline-item:nth-child(even) .timeline-time {
        text-align: left;
        padding-left: 45px;
        order: unset;
    }
    .timeline-item:nth-child(even) .timeline-content {
        text-align: left;
        padding-right: 15px;
        padding-left: 45px;
        order: unset;
    }
    .timeline-item:nth-child(even)::before {
        left: 20px;
        right: auto;
        transform: translateX(0);
    }

    .event-card {
        padding: 25px;
    }

    .google-map-container {
        height: 350px;
    }

    .map-overlay {
        font-size: 0.9em;
        padding: 10px 15px;
    }

    .rsvp-form, .guest-list, .bank-details-container {
        padding: 25px;
    }

    .guest-stats {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }
    .guest-stats p {
        margin: 5px 0;
    }

    .closing-quote {
        font-size: 1.4em;
    }

    /* Bottom Nav specific mobile adjustments */
    .main-wrapper {
        padding-bottom: 60px; /* Sesuaikan padding untuk nav bawah yang lebih ringkas */
    }
    .bottom-nav {
        height: 60px;
        padding: 0;
    }
    .bottom-nav .nav-item {
        font-size: 0.7em;
        padding: 3px 0;
    }
    .bottom-nav .nav-item i {
        font-size: 1.2em;
        margin-bottom: 2px;
    }
    /* Music toggle button is now also .nav-item, so its styling is unified */
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8em;
    }
    .cover-section .couple-names {
        font-size: 2.8em;
    }
    .cover-section .guest-name {
        font-size: 1.2em;
    }
    .btn {
        padding: 10px 25px;
        font-size: 1em;
    }
    /* Adjusted for better coverage on smaller screens */
    .slideshow-container {
        height: 60vh; /* Further increased height for smaller mobile devices */
    }
    .closing-quote {
        font-size: 1.2em;
    }
    .guest-name-ucapan .tag {
        font-size: 0.7em;
    }
}