/* Base styles for both desktop and mobile */
:root {
    --bg-color: #F9F7F3; /* Antique White */
    --primary-dark: #5F7F60; /* Fern Green */
    --primary-accent: #A8C1A1; /* Eucalyptus Green */
    --text-color: #44423B; /* Charcoal Ink */
    --subtle-bg: #E6DED6; /* Blush Beige */
    --hover-bg: #CEDDC8; /* Sage Mist */
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Nanum Myeongjo', serif;
    background-color: var(--primary-dark);
}

h1, h2, h3 {
    font-family: 'Prata', serif;
    letter-spacing: 0.05em;
}
.oval-image {
  width: 200px; /* Adjust as needed */
  height: 100px; /* Adjust as needed */
  border-radius: 50%;
  background-image: url('your_image.jpg'); /* Replace with your image path */
  background-size: cover; /* Ensures the image fills the oval */
  background-position: center; /* Centers the image within the oval */
  overflow: hidden; /* Hides any part of the image extending beyond the oval */
}

.font-script {
    font-family: 'Dancing Script', cursive;
}

.gold-pattern-bg {
    background-image: url("data:image/svg+xml,%3Csvg width='84' height='48' viewBox='0 0 84 48' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h12v12H0V0zm24 24h12v12H24V24zm48 24h12v12H72V48zM72 0h12v12H72V0zM0 24h12v12H0V24zM24 0h12v12H24V0z' fill='%23A8C1A1' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.content-wrapper {
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.couple-card, .event-card {
    background: rgba(230, 222, 214, 0.4); /* Blush Beige background */
    border: 1px solid rgba(255,255,255,0.6);
    backdrop-filter: blur(5px);
    transition: all 0.4s ease;
}

.photo-frame {
    border: 8px solid white;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.3);
}

/* Updated Styles for the combined Home Section photo */
.home-photo-container {
    position: relative;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    aspect-ratio: 3 / 4;
    display: flex;
    justify-content: center;
    align-items: center;
}
.story-photo {
    width: 90%; /* Scale photo to be slightly smaller than the container */
    height: 90%;
    object-fit: contain; /* Use contain to ensure the whole couple is visible */
    position: relative;
    z-index: 2; /* Photo is in front of the border */
}
.brush-stroke-border {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: white;
    opacity: 0.8;
    border-radius: 50%;
    z-index: 1;
    filter: url(#brush-stroke);
}

/* New Styles for Event Tabs */
.tab-button {
    background: transparent;
    border: 1px solid var(--subtle-bg);
    color: var(--text-color);
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}
.tab-button.active, .tab-button:hover {
    background-color: var(--primary-dark);
    color: white;
    border-color: var(--primary-dark);
}
.tab-content {
    display: none;
    animation: fadeIn 0.6s ease;
}
.tab-content.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* DESKTOP-SPECIFIC STYLES (Horizontal Scroll) */
@media screen and (min-width: 769px) {
    html, body {
        width: 100%;
        height: 100%;
        overflow: hidden; /* CRITICAL for horizontal scroll */
    }

    #main-container {
        width: 300vw; /* 100vw per section (3 sections) */
        height: 100vh;
        display: flex;
        will-change: transform;
        transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
    }

    .page {
        width: 100vw;
        height: 100vh;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 4rem;
        position: relative;
        overflow: hidden;
    }
    
    .content-wrapper {
        opacity: 0;
        transform: translateY(50px);
    }
    .page.active .content-wrapper {
        opacity: 1;
        transform: translateY(0);
    }
    .content-wrapper > * {
        transition-delay: 0.3s;
    }

    .page-home { 
        background-color: var(--primary-dark); 
        color: var(--bg-color); 
        background-image: radial-gradient(circle at 50% 50%, #6F8F70, var(--primary-dark));
    }
    .page-events-rsvp, .page-gallery { background-color: var(--bg-color); }

    .couple-card:hover, .event-card:hover {
        background: rgba(206, 221, 200, 0.7); /* Sage Mist hover */
        transform: scale(1.03);
        box-shadow: 0 20px 40px -15px rgba(0,0,0,0.2);
    }

    #nav-dots {
        position: fixed;
        right: 2rem;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        z-index: 100;
    }

    .nav-dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.5);
        cursor: pointer;
        transition: all 0.4s ease;
    }
    
    .page-events-rsvp.active ~ #nav-dots .nav-dot,
    .page-gallery.active ~ #nav-dots .nav-dot {
        background-color: rgba(0,0,0,0.1);
        border-color: rgba(0,0,0,0.3);
    }

    .nav-dot.active {
        background-color: white !important;
        transform: scale(1.4);
    }
    
    .page-events-rsvp.active ~ #nav-dots .nav-dot.active,
    .page-gallery.active ~ #nav-dots .nav-dot.active {
         background-color: var(--primary-accent) !important;
         border-color: var(--primary-accent) !important;
    }
}

/* MOBILE-SPECIFIC STYLES (Vertical Scroll) */
@media screen and (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        overflow-y: auto;
        scroll-behavior: smooth;
    }
    body {
        background-color: var(--bg-color); /* Change background for the whole page on mobile */
    }

    #main-container {
        width: 100%;
        height: auto;
        display: block; /* Stack pages vertically */
    }

    .page {
        width: 100%;
        height: auto;
        min-height: 100vh; /* Make each section feel like a full page */
        flex-direction: column;
        padding: 5rem 1.5rem;
    }
    .page .content-wrapper {
        opacity: 1;
        transform: none;
    }
    
    .page-home {
        color: var(--bg-color);
        background-color: var(--primary-dark);
        padding-top: 6rem; /* Increased padding for more space */
        padding-bottom: 6rem;
    }
    .page-events-rsvp, .page-gallery {
        background-color: var(--bg-color);
    }

    .text-8xl { 
        font-size: 2.75rem; /* Further reduced font size for mobile */
        line-height: 1.1; /* Tighter line height for the large font */
    }
    .text-5xl { 
        font-size: 2.25rem; /* Slightly reduce other large fonts too */
    }
    .font-script.text-6xl {
        font-size: 3.5rem; /* Adjust script font on mobile */
    }

    /* Stack the home page content on mobile */
    .page-home .content-wrapper {
        display: flex;
        flex-direction: column;
    }
    .home-photo-container {
        margin-bottom: 3rem;
        order: -1; /* Move photo to the top on mobile */
    }
    .home-text-content {
        text-align: center;
    }

    /* Force other grids to stack */
    .md\:grid-cols-2, .md\:grid-cols-3, .md\:grid-cols-4 {
        grid-template-columns: 1fr;
    }
    .couple-card, .event-card, .gallery-image { 
        margin-bottom: 2rem; 
    }
    .couple-card:last-child, .event-card:last-child {
        margin-bottom: 0;
    }
    .page-events-rsvp .md\:grid-cols-3 {
        display: block;
    }
    .event-tabs {
        flex-direction: row;
        margin-bottom: 2rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    .md\:col-span-2 {
        margin-top: 2rem;
    }
    
    #nav-dots, .scroll-indicator .icon-arrow-right {
        display: none; /* Hide horizontal scroll indicators */
    }
    .scroll-indicator .icon-arrow-down {
        display: inline-block; /* Show vertical scroll indicator */
    }
}