/* General Body & Typography */
body {
    background-color: #141414; /* Netflix dark background */
    color: #fff;
    font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scroll */
    scroll-behavior: smooth; /* For smooth scrolling to anchor links */
    line-height: 1.6; /* Default line height for readability */
}

a {
    color: inherit;
    text-decoration: none;
}

/* Base Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Netflix Sans', sans-serif; /* Consistent Netflix Sans for headings */
    color: #e50914; /* Netflix red for main titles */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5); /* Subtle shadow for depth */
}

/* --- HEADER & NAVIGATION --- */
.netflix-header {
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5vw; /* Responsive padding */
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-sizing: border-box;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px); /* Modern blur effect */
}

.netflix-header .logo a {
    color: #e50914;
    font-size: 2.2em; /* Slightly larger logo */
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: -1px;
    transition: color 0.3s ease;
}

.netflix-header .logo a:hover {
    color: #f40612;
}

/* Main Navigation (Desktop) */
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.main-nav ul li a {
    color: #fff;
    font-size: 1.1em;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover {
    color: #e50914;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: #e50914;
    transition: width 0.3s ease;
}

.main-nav ul li a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle (Hamburger Icon) */
.mobile-menu-toggle {
    display: none; /* Hidden by default on desktop */
    font-size: 1.8em;
    color: #fff;
    cursor: pointer;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.mobile-menu-toggle:hover {
    color: #e50914;
    transform: scale(1.1);
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.98); /* Almost opaque */
    z-index: 999;
    display: flex; /* Flex to center content */
    flex-direction: column; /* Stack items */
    justify-content: center;
    align-items: center;
    transform: translateX(100%); /* Hide off-screen initially */
    transition: transform 0.4s ease-in-out;
    padding-top: 80px; /* Offset to clear header */
}

.mobile-nav.active {
    transform: translateX(0); /* Slide in */
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
    width: 100%;
}

.mobile-nav ul li {
    margin-bottom: 25px;
}

.mobile-nav ul li a {
    color: #fff;
    font-size: 1.8em;
    font-weight: bold;
    padding: 10px 0;
    display: block;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.mobile-nav ul li a:hover {
    color: #e50914;
    background-color: rgba(229, 9, 20, 0.1);
}

/* --- MAIN CONTENT AREA & COMMON SECTION STYLES --- */
.netflix-main {
    padding-top: 80px; /* Adjust for fixed header */
}

.content-section {
    padding: 80px 5vw; /* Responsive padding */
    background-color: #141414;
    color: #fff;
    text-align: center;
    min-height: 70vh; /* Ensure some vertical space */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box; /* Include padding in height calculation */
}

.content-section:nth-child(even) {
    background-color: #0d0d0d; /* Slightly darker for alternating sections */
}

.section-title {
    font-size: 3em;
    margin-bottom: 50px;
    color: #e50914;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    padding: 0 5vw; /* Consistent horizontal padding for titles */
}

/* --- BUTTONS --- */
.btn-play, .btn-mylist, .btn-submit, .btn-location, .btn-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    font-size: 1.1em;
    cursor: pointer;
    white-space: nowrap; /* Prevent text wrapping inside buttons */
}

.btn-play {
    background-color: #e50914;
    color: #fff;
    border: 2px solid #e50914;
}

.btn-play:hover {
    background-color: #f40612;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(229, 9, 20, 0.4);
}

.btn-mylist {
    background-color: rgba(109, 109, 110, 0.7);
    color: #fff;
    border: 2px solid rgba(109, 109, 110, 0.7);
}

.btn-mylist:hover {
    background-color: rgba(109, 109, 110, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.btn-location {
    background-color: #4CAF50; /* Green for maps */
    color: #fff;
    border: none;
    font-size: 0.9em;
    padding: 10px 20px;
    margin-top: 15px;
}

.btn-location:hover {
    background-color: #45a049;
}

.btn-copy {
    background-color: #007bff; /* Blue for copy */
    color: #fff;
    border: none;
    font-size: 0.9em;
    padding: 10px 20px;
    margin-top: 20px;
}

.btn-copy:hover {
    background-color: #0056b3;
}

.btn-submit {
    background-color: #e50914;
    color: #fff;
    border: none;
    width: 100%; /* Full width for form submit */
    margin-top: 30px;
}

.btn-submit:hover {
    background-color: #f40612;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(229, 9, 20, 0.5);
}

/* Icon spacing in buttons */
.btn-play i, .btn-mylist i, .btn-location i, .btn-copy i, .btn-submit i {
    margin-right: 10px;
}


/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding-top: 80px;
    box-sizing: border-box;
}

.hero-bg-video, .hero-bg-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(60%) contrast(110%);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.6);
}

.hero-content h1 {
    font-size: 4em;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.3em;
    margin-bottom: 40px;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap in smaller screens */
}

/* Countdown Timer */
.countdown {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(3px);
    flex-wrap: wrap; /* Allow items to wrap for smaller screens */
    gap: 15px; /* Gap between countdown items */
}

.countdown-item {
    text-align: center;
    flex: 1; /* Distribute space evenly */
    min-width: 80px; /* Minimum width for item */
    font-family: 'Netflix Sans', sans-serif;
}

.countdown-item span:first-child {
    display: block;
    font-size: 3em;
    font-weight: 700;
    color: #e50914;
    line-height: 1;
}

.countdown-item span:last-child {
    font-size: 0.9em;
    text-transform: uppercase;
    color: #bbb;
}


/* --- INFO SECTION (CARD GRID) --- */
.info-section {
    padding: 80px 0; /* No horizontal padding here, handled by card-grid's padding */
    background-color: #141414;
    color: #fff;
    text-align: center;
}

.card-grid {
    display: flex; /* Flexbox for horizontal scroll */
    gap: 40px;
    padding: 0 5vw; /* Responsive padding for grid content */
    overflow-x: auto; /* Key for horizontal scroll */
    -webkit-overflow-scrolling: touch;
    white-space: nowrap; /* Prevent items from wrapping */
    scroll-snap-type: x mandatory; /* Optional: For controlled scrolling */
    align-items: flex-start;
    padding-bottom: 20px; /* Space for scrollbar */
}

/* Hide scrollbar for Webkit browsers (Chrome, Safari) */
.card-grid::-webkit-scrollbar {
    height: 8px;
}

.card-grid::-webkit-scrollbar-track {
    background: #2a2a2a;
    border-radius: 10px;
}

.card-grid::-webkit-scrollbar-thumb {
    background: #e50914;
    border-radius: 10px;
}

.card-grid::-webkit-scrollbar-thumb:hover {
    background: #f40612;
}

/* For Firefox */
.card-grid {
    scrollbar-width: thin;
    scrollbar-color: #e50914 #2a2a2a;
}

.card-grid a { /* Ensure anchor tags don't break layout */
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.card {
    flex: 0 0 300px; /* Fixed width for each card */
    background-color: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    text-align: left;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
    position: relative;
    cursor: pointer;
    scroll-snap-align: start;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 20px;
    white-space: normal; /* Allow text to wrap within card content */
}

.card-title {
    font-size: 1.8em;
    color: #e50914;
    margin-bottom: 10px;
}

.card-content p {
    font-size: 1em;
    color: #ccc;
    margin-bottom: 0; /* Remove default paragraph margin-bottom */
}


/* --- KISAH CINTA KAMI (STORY SECTION) --- */
.story-section {
    /* inherits from .content-section */
    text-align: left; /* Align text within story section to left */
}

.detail-hero {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping for mobile */
    gap: 40px;
    max-width: 1200px;
    width: 100%;
    margin-top: 40px;
    align-items: center;
    justify-content: center; /* Center content when wrapped */
}

/* -- Image Carousel Styles (NEW/UPDATED) -- */
.image-carousel-container {
    width: 100%;
    max-width: 600px; /* Sesuaikan lebar maksimum carousel */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    flex-shrink: 0; /* Penting agar container tidak mengecil */
}

.image-carousel {
    display: flex;
    /* Transisi cepat agar terlihat seperti slide */
    transition: transform 0.8s ease-in-out;
}

.image-carousel img {
    width: 100%;
    height: auto;
    object-fit: cover;
    flex-shrink: 0; /* Memastikan gambar tidak mengecil */
}

/* Animasi slide otomatis */
.carousel-animate .image-carousel {
    /*
     * Sesuaikan durasi total animasi sesuai jumlah gambar Anda.
     * Contoh ini untuk 3 gambar, masing-masing tampil 5 detik.
     * Jadi, total durasi: 3 gambar * 5 detik = 15 detik.
     * Jika Anda punya N gambar, maka durasi: N * 5s.
     */
    animation: slide 20s infinite;
}

@keyframes slide {
    /* Gambar 1 */
    0% {
        transform: translateX(0%);
    }
    20% {
        transform: translateX(0%);
    }
    25% {
        transform: translateX(-100%);
    }
    45% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(-200%);
    }
    70% {
        transform: translateX(-200%);
    }
    75% {
        transform: translateX(-300%);
    }
    95% {
        transform: translateX(-300%);
    }
    100% {
        transform: translateX(0%);
    }
}

/* -- END Image Carousel Styles -- */

.detail-info {
    flex: 1;
    min-width: 300px; /* Minimum width before wrapping */
    padding-left: 20px; /* Spacing from image */
    box-sizing: border-box;
}

.detail-info h2 {
    font-size: 2.8em;
    margin-bottom: 15px;
    color: #eee; /* Lighter color for sub-titles */
    text-shadow: none; /* Remove shadow for sub-titles */
}

.detail-info .metadata {
    font-size: 1.1em;
    color: #ccc;
    margin-bottom: 20px;
    font-style: italic;
}

.detail-info .description {
    font-size: 1em;
    color: #bbb;
    line-height: 1.7;
    margin-bottom: 30px;
}

.detail-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-start; /* Align buttons to the left */
}

.content-row { /* For "Orang Tua Kami" */
    margin-top: 80px;
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

.content-row h3 {
    font-size: 2.5em;
    color: #eee;
    margin-bottom: 40px;
}

.family-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px;
}

.family-member {
    background-color: #1a1a1a;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    padding: 30px;
    text-align: center;
    flex: 1;
    min-width: 280px;
    max-width: 400px;
}

.family-member h4 {
    font-size: 1.8em;
    color: #e50914;
    margin-bottom: 15px;
}

.family-member p {
    font-size: 1em;
    color: #ccc;
    line-height: 1.5;
}


/* --- DETAIL ACARA (EVENT DETAILS SECTION) --- */
.event-details-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.event-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Auto-fit for responsiveness */
    gap: 30px;
    max-width: 1200px;
    width: 100%;
    margin-top: 40px;
    padding: 0 5vw;
    box-sizing: border-box;
}

.event-card {
    background-color: #1a1a1a;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column; /* Stack content vertically */
    align-items: center;
    min-width: 250px;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
}

.event-info {
    width: 100%;
}

.event-info h3 {
    font-size: 1.8em;
    color: #eee;
    margin-bottom: 15px;
}

.event-info p {
    font-size: 1em;
    color: #bbb;
    margin-bottom: 8px;
    line-height: 1.5;
    display: flex; /* For icon and text alignment */
    align-items: center;
    justify-content: center; /* Center content when icons are present */
}

.event-info p i {
    color: #e50914;
    margin-right: 10px;
}

.event-datetime {
    font-weight: bold;
    margin-bottom: 5px;
}

.event-time {
    margin-bottom: 15px;
}

.event-address {
    margin-bottom: 20px;
}

.note-important {
    background-color: rgba(229, 9, 20, 0.1);
    border-left: 5px solid #e50914;
    padding: 15px 25px;
    margin-top: 40px;
    max-width: 800px;
    width: 100%;
    border-radius: 5px;
    color: #e50914;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
    box-sizing: border-box;
}

.note-important i {
    font-size: 1.5em;
}


/* --- GALERI FOTO (GALLERY SECTION) --- */
.netflix-gallery-page {
    /* inherits from .content-section */
}

.gallery-row {
    width: 100%;
    max-width: 1200px;
    margin-bottom: 50px;
}

.gallery-row h3 {
    font-size: 2.2em;
    color: #eee;
    margin-bottom: 30px;
    text-align: left;
    padding-left: 10px;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); /* Responsive grid columns */
    gap: 15px;
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.gallery-item img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    transition: filter 0.3s ease;
}

.gallery-item .gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 0.9em;
    padding: 8px 10px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-sizing: border-box;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}

/* Lightbox Styling */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    animation-name: zoom;
    animation-duration: 0.6s;
    border-radius: 8px;
    object-fit: contain;
    max-height: 85vh;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

@keyframes zoom {
    from {
        transform: scale(0.1)
    }
    to {
        transform: scale(1)
    }
}


/* Gift Envelope Section */
.gift-envelope-page {
    text-align: center;
    margin: 80px auto 50px;
    padding: 0 5vw; /* Tambahkan padding responsif */
}

.gift-envelope-page .intro-text, .gift-envelope-page .outro-text {
    font-size: 1.1em;
    color: #ccc;
    margin-bottom: 40px;
}

.gift-options-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    margin-bottom: 40px;
}

.gift-option-card {
    background-color: #1a1a1a;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    flex: 1; /* Allow flexing */
    min-width: 300px; /* Minimum width */
    max-width: 400px; /* Max width to control size */
    border: 1px solid #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gift-option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.gift-option-card .icon-large {
    font-size: 3.5em;
    color: #e50914;
    margin-bottom: 20px;
}

.gift-option-card h3 {
    font-size: 1.8em;
    color: #eee;
    margin-bottom: 15px;
}

.gift-option-card p {
    margin-bottom: 10px;
    font-size: 1.05em;
    color: #bbb;
}

.gift-option-card strong {
    color: #fff;
}

.gift-option-card .ewallet-info p {
    margin: 5px 0;
}

/* Style untuk Gambar QRIS */
.qris-image {
    max-width: 150px; /* Sesuaikan ukuran QRIS */
    height: auto;
    border: 5px solid #fff; /* Border putih untuk QRIS */
    border-radius: 5px;
    margin: 20px auto; /* Tengah dan beri jarak */
    display: block; /* Agar margin auto bekerja */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

/* Tombol Salin */
.btn-copy {
    background-color: #34495e; /* Warna abu-abu kebiruan */
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    margin-top: 15px; /* Jarak dari konten di atasnya */
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-flex; /* Agar icon dan teks sejajar */
    align-items: center;
    gap: 8px; /* Jarak antara teks dan ikon */
    font-size: 0.95em;
    font-weight: bold;
}

.btn-copy:hover {
    background-color: #2c3e50;
    transform: translateY(-2px);
}


/* --- KONFIRMASI KEHADIRAN (RSVP) --- */
.rsvp-section {
    /* inherits from .content-section */
}

.rsvp-form-container {
    background-color: #1a1a1a;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    padding: 40px;
    max-width: 600px;
    width: 100%;
    margin-top: 40px;
    text-align: left;
    box-sizing: border-box;
}

.rsvp-intro {
    font-size: 1em;
    color: #ccc;
    margin-bottom: 30px;
    text-align: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 1.05em;
    color: #eee;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #333;
    border-radius: 5px;
    background-color: #2a2a2a;
    color: #fff;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: #e50914;
    outline: none;
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.3);
}

textarea.form-control {
    resize: vertical;
}

.alert {
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    font-size: 0.95em;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* --- FOOTER --- */
.netflix-footer {
    background-color: #141414;
    padding: 40px 5vw;
    color: #aaa;
    text-align: center;
    font-size: 0.9em;
    border-top: 1px solid #222;
}

.netflix-footer p {
    margin-bottom: 20px;
}

.footer-social a {
    color: #aaa;
    font-size: 1.5em;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #e50914;
}

/* --- MEDIA QUERIES FOR MOBILE & TABLET --- */

/* Tablet and Smaller Desktops (max-width: 992px) */
@media (max-width: 992px) {
    .netflix-header {
        padding: 18px 4vw; /* Slightly less padding */
    }

    .netflix-header .logo a {
        font-size: 2em;
    }

    .main-nav ul li {
        margin-left: 20px;
    }

    .main-nav ul li a {
        font-size: 1em;
    }

    .hero-content h1 {
        font-size: 3.5em;
    }

    .hero-content p {
        font-size: 1.2em;
    }

    .btn-play, .btn-mylist {
        padding: 12px 25px;
        font-size: 1em;
    }

    .countdown-item span:first-child {
        font-size: 2.8em;
    }

    .countdown-item {
        margin: 0 10px;
    }

    .section-title {
        font-size: 2.8em;
    }

    .card-grid {
        gap: 30px;
        padding: 0 4vw; /* Adjust padding */
    }

    .card {
        flex: 0 0 280px; /* Slightly smaller card width */
    }

    .card img {
        height: 180px;
    }

    .card-content {
        padding: 18px;
    }

    .card-title {
        font-size: 1.6em;
    }

    .card-content p {
        font-size: 0.95em;
    }

    .detail-hero {
        gap: 30px;
        flex-direction: column; /* Stack image and info */
        text-align: center;
    }

    .detail-hero img {
        max-width: 70%; /* Image takes more width */
    }

    .detail-info {
        padding-left: 0; /* Remove left padding when stacked */
    }

    .detail-info h2 {
        font-size: 2.5em;
    }

    .detail-buttons {
        justify-content: center; /* Center buttons */
    }

    .content-row h3 {
        font-size: 2.2em;
    }

    .family-info {
        gap: 30px;
        flex-direction: column; /* Stack family members */
    }

    .family-member {
        max-width: 80%; /* Limit width for family cards */
        margin: 0 auto; /* Center them */
        padding: 25px;
    }

    .family-member h4 {
        font-size: 1.5em;
    }

    .event-cards-container {
        grid-template-columns: 1fr; /* Single column layout for events */
        gap: 25px;
        padding: 0 4vw;
    }

    .event-card {
        padding: 25px;
        flex-direction: column; /* Stack content vertically */
        align-items: center;
        text-align: center;
    }

    .event-info h3 {
        font-size: 1.6em;
    }

    .event-info p {
        justify-content: center; /* Center icon and text */
    }

    .note-important {
        max-width: 90%;
        padding: 12px 20px;
    }

    .gallery-row h3 {
        font-size: 2em;
        text-align: center;
    }

    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); /* Smaller grid items */
        gap: 10px;
        padding: 0 5px; /* Less padding */
    }

    .gallery-item img {
        height: 150px;
    }

    .lightbox-content {
        width: 90%; /* Wider lightbox on tablet */
    }

    .close-btn {
        font-size: 35px;
        right: 25px;
    }

    .gift-options-container {
        flex-direction: column; /* Stack gift cards */
        gap: 25px;
        max-width: 90%;
    }

    .gift-option-card {
        min-width: unset; /* Remove min-width to allow full flexibility */
        max-width: 100%; /* Allow cards to take full width of container */
        margin: 0 auto;
        padding: 25px;
    }

    .icon-large {
        font-size: 3em;
    }

    .gift-option-card h3 {
        font-size: 1.6em;
    }

    .rsvp-form-container {
        padding: 30px;
        max-width: 90%;
    }

    .form-group label {
        font-size: 1em;
    }

    .form-control {
        padding: 10px 12px;
        font-size: 0.95em;
    }

    .btn-submit {
        padding: 12px 25px;
        font-size: 1em;
    }
}

/* Mobile Devices (max-width: 767px) */
@media (max-width: 768px) {
    .netflix-header {
        padding: 15px 4vw;
    }

    .main-nav {
        display: none; /* Hide main nav on mobile */
    }

    .mobile-menu-toggle {
        display: block; /* Show mobile toggle */
    }

    .hero-section {
        height: 85vh; /* Adjust height for better mobile viewing */
        padding-top: 80px; /* Keep consistent with header */
    }

    .hero-content {
        padding: 15px;
        max-width: 90%; /* Make content slightly wider */
    }

    .hero-content h1 {
        font-size: 2.5em; /* Smaller font size for mobile */
        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .hero-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        width: 100%; /* Make buttons take full width of hero-content */
    }

    .btn-play, .btn-mylist {
        width: 90%; /* Buttons almost full width */
        margin: 0 auto; /* Center buttons */
        padding: 12px 20px;
        font-size: 0.95em;
    }

    .btn-play i, .btn-mylist i {
        margin-right: 8px; /* Slightly less margin for icons */
    }

    .countdown {
        flex-wrap: wrap; /* Ensure wrapping */
        gap: 10px; /* Smaller gap */
        padding: 15px;
        width: 90%; /* Adjust width */
        margin: 40px auto 0; /* Center and adjust margin */
    }

    .countdown-item {
        flex-basis: calc(50% - 15px); /* Two items per row */
        margin: 0; /* Reset margins */
    }

    .countdown-item span:first-child {
        font-size: 2em;
    }

    .countdown-item span:last-child {
        font-size: 0.8em;
    }

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

    .info-section {
        padding: 60px 0;
    }

    .card-grid {
        gap: 20px;
        padding: 0 4vw; /* Consistent padding */
    }

    .card {
        flex: 0 0 220px; /* Smallest card width for better horizontal scroll */
    }

    .card img {
        height: 140px;
    }

    .card-content {
        padding: 15px;
    }

    .card-title {
        font-size: 1.4em;
    }

    .card-content p {
        font-size: 0.9em;
    }

    .content-section {
        padding: 60px 4vw; /* Reduced padding for all content sections */
    }

    .story-section {
        padding: 0 3vw; /* Sedikit padding di sisi untuk menjaga kerapian */
        margin-top: 50px; /* Sesuaikan margin atas */
    }

    .detail-hero {
        flex-direction: column; /* Tumpuk konten secara vertikal */
        align-items: center; /* Pusatkan secara horizontal */
        padding: 20px; /* Tambahkan padding agar tidak terlalu rapat dengan tepi */
        max-width: 95%; /* Batasi lebar agar tidak terlalu lebar */
        margin: 0 auto; /* Pusatkan detail-hero */
    }

    .image-carousel-container {
        width: 100%; /* Pastikan kontainer mengambil 100% dari parent-nya */
        overflow: hidden; /* Sangat penting untuk menyembunyikan gambar yang bergeser */
        margin-bottom: 20px; /* Jarak antara carousel dan info */
        border-radius: 8px; /* Pastikan ini ada */
    }

    .image-carousel {
        display: flex;
        /* Lebar total carousel harus (jumlah gambar * 100)% */
        /* Jika ada 3 gambar, lebarnya 300% */
        width: 400%; /* Sesuaikan ini sesuai jumlah gambar Anda (e.g., 4 gambar = 400%) */
        animation: slide 15s infinite; /* Pastikan durasi animasi sesuai */
        /* Tambahkan ini jika belum ada, untuk memastikan pergeseran mulus */
        transition: transform 0.5s ease-in-out;
    }

    .image-carousel img {
        width: 100%; /* Setiap gambar harus mengambil 100% dari lebar container */
        height: 200px; /* Atur tinggi tetap untuk konsistensi, atau auto */
        object-fit: cover;
        flex-shrink: 0; /* Penting! Mencegah gambar menyusut dan tumpang tindih */
    }

    .detail-info {
        text-align: center; /* Pusatkan teks di detail info */
        width: 100%; /* Ambil lebar penuh */
        padding: 0; /* Hapus padding jika ada yang berlebihan */
    }

    .detail-info h3 {
        font-size: 1.6em;
        margin-bottom: 10px;
    }

    .detail-info p {
        font-size: 0.95em;
        line-height: 1.5;
    }

    /* Keyframes (Pastikan ini ada dan sesuai dengan jumlah gambar) */
    /* Contoh untuk 3 gambar */
    @keyframes slide {
        0% {
            transform: translateX(0%);
        }
        20% {
            transform: translateX(0%);
        }
        25% {
            transform: translateX(-100%);
        }
        45% {
            transform: translateX(-100%);
        }
        50% {
            transform: translateX(-200%);
        }
        70% {
            transform: translateX(-200%);
        }
        75% {
            transform: translateX(-300%);
        }
        95% {
            transform: translateX(-300%);
        }
        100% {
            transform: translateX(0%);
        }
        /* Kembali ke Gambar 1 */
    }

    .detail-info h2 {
        font-size: 2em;
    }

    .detail-info .metadata {
        font-size: 1em;
    }

    .detail-info .description {
        font-size: 0.95em;
    }

    .detail-buttons {
        flex-direction: column; /* Stack buttons */
        gap: 10px;
    }

    .detail-buttons .btn-play {
        width: 100%; /* Make button full width */
    }

    .content-row h3 {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .family-info {
        gap: 20px;
    }

    .family-member {
        max-width: 95%; /* Wider on very small screens */
        margin: 0 auto;
        padding: 20px;
    }

    .family-member h4 {
        font-size: 1.4em;
    }

    .family-member p {
        font-size: 0.9em;
    }

    .event-cards-container {
        gap: 20px;
        padding: 0 4vw;
    }

    .event-card {
        padding: 20px;
    }

    .event-info h3 {
        font-size: 1.5em;
    }

    .event-info p {
        font-size: 0.9em;
        margin-bottom: 5px;
    }

    .note-important {
        max-width: 95%;
        padding: 10px 15px;
        font-size: 0.85em;
        gap: 10px;
    }

    .note-important i {
        font-size: 1.3em;
    }

    .gallery-row h3 {
        font-size: 1.8em;
        text-align: center;
    }

    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); /* Even smaller items */
        gap: 8px;
        padding: 0 5px;
    }

    .gallery-item img {
        height: 100px;
    }

    .gallery-item .gallery-caption {
        font-size: 0.75em;
        padding: 6px 8px;
    }

    .lightbox-content {
        width: 98%;
        padding-top: 0;
    }

    .close-btn {
        font-size: 28px;
        right: 15px;
    }

    .gift-envelope-page {
        margin: 60px auto 30px;
        padding: 0 3vw;
    }

    .gift-envelope-page .intro-text, .gift-envelope-page .outro-text {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .gift-options-container {
        flex-direction: column; /* Kartu hadiah tumpuk di mobile */
        gap: 20px;
    }

    .gift-option-card {
        min-width: unset;
        max-width: 90%; /* Batasi lebar */
        margin: 0 auto;
        padding: 25px;
    }

    .gift-option-card .icon-large {
        font-size: 2.5em;
    }

    .gift-option-card h3 {
        font-size: 1.5em;
    }

    .gift-option-card p {
        font-size: 0.9em;
    }

    .qris-image {
        max-width: 100px; /* Lebih kecil di mobile */
    }

    .btn-copy {
        padding: 8px 15px;
        font-size: 0.85em;
    }

    .rsvp-form-container {
        padding: 25px;
        max-width: 95%;
    }

    .rsvp-intro {
        font-size: 0.95em;
        margin-bottom: 20px;
    }

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

    .form-group label {
        font-size: 0.9em;
    }

    .form-control {
        padding: 10px;
        font-size: 0.85em;
    }

    .btn-submit {
        padding: 10px 20px;
        font-size: 0.95em;
    }

    .netflix-footer {
        padding: 25px 4vw;
        font-size: 0.8em;
    }

    .netflix-footer p {
        margin-bottom: 15px;
    }

    .footer-social a {
        font-size: 1.3em;
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .story-section {
        padding: 0 5vw;
    }

    .detail-hero {
        padding: 15px;
    }

    .image-carousel img {
        height: 180px; /* Tinggi sedikit lebih rendah di layar sangat kecil */
    }

    .detail-info h3 {
        font-size: 1.4em;
    }

    .detail-info p {
        font-size: 0.9em;
    }
}


