/* ======================= */
/* GLOBAL STYLES           */
/* ======================= */
:root {
    --font-script: 'Great Vibes', cursive;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    --color-primary: #800000; /* Deep Maroon */
    --color-secondary: #fdf5f5; /* A very light, warm off-white */
    --color-dark: #3a0000; /* A darker shade of maroon for text/footer */
    --color-light: #fff;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background-color: #4c0000;
    background-image: url('https://www.transparenttextures.com/patterns/dark-floral.png');
    background-attachment: fixed;
    color: var(--color-dark);
    scroll-behavior: smooth;
    display: flex; /* Added for centering the container */
    justify-content: center; /* Added for centering the container */
    align-items: center; /* Added for centering the container */
    min-height: 100vh; /* Ensures centering works */
}

/* NEW: Mobile View Container */
.container {
    width: 100%;
    max-width: 450px; /* This sets the mobile-like width */
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    position: relative;
    background-color: var(--color-secondary);
    min-height: 100vh; /* Optional: for a full-height feel on desktop */
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 700;
}

h2 {
    text-align: center;
    font-size: 2.5rem; /* Adjusted for mobile */
    margin-bottom: 30px;
}

section {
    padding: 40px 20px;
    margin: 0; /* Removed margin from individual sections */
}

.button {
    background-color: var(--color-primary);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.button:hover {
    background-color: #6d0000;
}

/* ======================= */
/* Opening & Hero Section  */
/* ======================= */
.opening-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--color-light);
    /* The background image is now on the overlay div itself */
    background: url('https://images.unsplash.com/photo-1593259024128-533b91c13a5a?q=80&w=1887') no-repeat center center/cover;
    transition: opacity 1.5s ease;
}

.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--color-light);
    padding: 0;
    background: url('https://images.unsplash.com/photo-1639257260456-65a36e78a4f3?q=80&w=653') no-repeat center center/cover;
}

/* This is the SEMI-TRANSPARENT overlay for the main hero section */
.overlay {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-color: rgba(60, 0, 0, 0.6); 
}

/* This is the SOLID overlay for your opening screen */
.overlay1 {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    /* The '1' in rgba makes it a solid, non-transparent color */
    background-color: rgba(60, 0, 0, 1); 
}

.opening-content, .hero-content { 
    position: relative; 
    z-index: 2; 
    padding: 20px;
}

.opening-content h1, .hero-content h1 {
    font-family: var(--font-script);
    font-size: 4rem;
    margin: 10px 0;
    font-weight: 400;
    color: var(--color-light);
}

.ampersand { font-family: var(--font-script); font-size: 2.5rem; line-height: 1; display: block; margin: 10px 0; }
.date-box, .opening-content h4, .hero-content h4 { font-family: var(--font-body); text-transform: uppercase; letter-spacing: 2px; font-size: 1rem;}

.scroll-down {
    position: absolute;
    bottom: 30px;
    font-size: 2rem;
    color: white;
    text-decoration: none;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-5px); }
}

/* ======================= */
/* Content Sections        */
/* ======================= */
.text-section, .couple-section, .events-section, .gallery-section, .wishes-section, .countdown-section {
    background-color: var(--color-secondary);
    border-radius: 0;
    margin: 0;
    padding: 40px 20px;
    box-shadow: none;
    border-bottom: 1px solid #eee;
    text-align: center; /* ADD THIS: Centers all text content */
}

.couple-container, .events-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center; /* ADD THIS: Centers the items (like photos) in the column */
}

.person img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.person h3 { font-size: 1.4rem; margin: 15px 0 5px; }
.person .parents { font-style: italic; }
.event-card { border: none; padding: 0; }

/* ADD THIS NEW CSS */
.map-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px; /* Adds space between the buttons */
}

.map-buttons .button {
    display: flex;
    align-items: center;
    gap: 8px; /* Adds space between icon and text */
}

.map-buttons .button img {
    height: 20px; /* Controls the size of the icon */
    width: 20px;
}

/* ======================= */
/* Countdown & Footer      */
/* ======================= */
.countdown-section {
    background-color: var(--color-primary);
    color: white;
}
.countdown-section h2 { color: white; }
.timer { display: flex; justify-content: space-around; }
.timer div { display: flex; flex-direction: column; }
.timer span {
    font-size: 2.5rem; /* Adjusted for mobile */
    font-family: var(--font-heading);
    font-weight: bold;
    color: white;
}

footer {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--color-dark);
    color: var(--color-secondary);
}
footer h3 {
    font-family: var(--font-script);
    font-size: 2.5rem;
    color: white;
    margin: 0;
    font-weight: 400;
}
footer p {
    margin-bottom: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
}

/* ======================= */
/* Wishes Section          */
/* ======================= */
.wishes-form input, .wishes-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-body);
    box-sizing: border-box;
}
.wish-card {
    background-color: #fff;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 15px;
}
.wish-card h4 { margin: 0 0 10px; color: var(--color-primary); }
.wish-card p { margin: 0; font-style: italic; }

/* ======================= */
/* Slideshow & Nav Bar     */
/* ======================= */
.swiper {
    width: 100%;
    max-width: 400px; /* Capped for aesthetics */
    height: 300px;
    margin: 0 auto;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.swiper-slide {
    text-align: center;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-button-next, .swiper-button-prev { color: var(--color-primary); }
.swiper-pagination-bullet-active { background: var(--color-primary); }

.floating-nav {
    position: fixed; /* MODIFIED: This is the key change */
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    z-index: 1000;
    border-radius: 50px;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--color-primary);
    font-size: 0.7rem;
    padding: 0 5px;
}
.nav-item span {
    font-size: 1.2rem; /* Adjusted for mobile */
    margin-bottom: 2px;
}


/* style.css */

/* ======================= */
/* NEW: RSVP Section       */
/* ======================= */
.rsvp-section {
    background-color: var(--color-light);
}

.rsvp-intro {
    text-align: center;
    margin-top: -20px;
    margin-bottom: 30px;
}

/* Styles for the Hadir/Tak Hadir buttons */
.rsvp-choice {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Styles for the form that appears */
.rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
    margin-top: 30px; /* Add space above the form */
}

.rsvp-form input[type="text"], 
.rsvp-form input[type="tel"],
.rsvp-form input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-body);
    box-sizing: border-box;
    text-align: center;
}

.pax-group {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.pax-input {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.pax-input label {
    font-size: 0.9rem;
}

.form-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Style for the secondary buttons (Tak Hadir, Batal) */
.button.button-secondary {
    background-color: #888;
}
.button.button-secondary:hover {
    background-color: #666;
}

/* ======================= */
/* Contact Section         */
/* ======================= */
.contact-intro {
    text-align: center;
    margin-top: -20px;
    margin-bottom: 30px;
    color: white;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list-item {
    display: flex;
    justify-content: space-between; /* Pushes text left and button right */
    align-items: center; /* Vertically centers the content */
    background-color: var(--color-light);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 10px;
}

.contact-info {
    text-align: left;
}

.contact-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-primary-text);
}

.contact-info .name {
    font-weight: bold;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-dark);
}

.contact-list-item .button {
    padding: 8px 15px;
    font-size: 0.8rem;
}

.contact-list-item .button img {
    height: 16px;
    width: 16px;
    vertical-align: middle;
    margin-right: 5px;
}

main {
    padding-bottom: 70px;
}

.flower {
    position: absolute;
    width: 250px; /* adjust size */
    opacity: 0;
    animation: fadeUp 1.5s ease forwards;
}

.flower.top-right {
    top: 0;
    right: 0;
    transform: rotate(0deg); /* keep natural */
    animation-delay: 0.3s;
}

.flower.bottom-left {
    bottom: 0;
    left: 0;
    transform: rotate(180deg); /* flip nicely */
    animation-delay: 0.6s;
}

@keyframes fadeUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
/* ... your existing styles ... */
/* REMOVED: All @media queries have been deleted to enforce mobile-only view */