/* Default font */
body {
    font-family: 'Inter', sans-serif;
}
/* Heading font */
h1, h2, h3 {
    font-family: 'Quicksand', sans-serif;
}
/* Animated gradient background */
body {
     background: linear-gradient(135deg, #FFFACD 0%, #FADADD 50%, #AEC6CF 100%);
     background-size: 400% 400%;
     animation: gradientShift 15s ease infinite;
     /* Ensure gradient covers full height */
     min-height: 100vh;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
/* Style for content blocks with blur effect */
.content-block {
    background-color: rgba(255, 255, 255, 0.85); /* Semi-transparent white */
    backdrop-filter: blur(8px); /* Background blur */
    border: 1px solid rgba(209, 213, 219, 0.6); /* Subtle border */
    transition: all 0.3s ease-in-out;
}
 /* Style for icons (using Lucide) */
.icon {
    width: 1.5rem; height: 1.5rem; display: inline-block; vertical-align: middle; margin-right: 0.5rem;
}
.icon-sm {
     width: 1.1rem; height: 1.1rem; display: inline-block; vertical-align: baseline; margin: 0 0.15rem;
}
/* Styling for active navigation tab */
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.7); color: #db2777; /* Pink-600 */
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1); font-weight: 600;
}
/* RSVP CTA styling */
.nav-link.rsvp-cta {
    background-color: #db2777; /* pink-600 */
    color: #fff !important;
    font-weight: 700;
    border: 1px solid rgba(219, 39, 119, 0.5);
}
.nav-link.rsvp-cta:hover { background-color: #be185d; }
.nav-link.active.rsvp-cta {
    background-color: #be185d; /* active slightly darker */
    color: #fff;
}
/* Styling for language selector buttons */
.lang-selector button {
    padding: 0.25rem 0.75rem; border: 1px solid transparent; border-radius: 0.375rem; /* rounded-md */
    transition: all 0.2s ease-in-out; color: #4b5563; /* gray-600 */
}
.lang-selector button:hover {
    background-color: rgba(255, 255, 255, 0.5);
}
.lang-selector button.active {
    font-weight: 600; color: #1f2937; /* gray-800 */
    border-color: rgba(219, 39, 119, 0.4); /* pink-600/40 */
    background-color: rgba(255, 255, 255, 0.7);
}
/* Sticky Navigation Styles */
/* Wrapper to reserve space for the nav */
#main-nav-wrapper {
     height: auto; /* Will be set by JS */
}
#main-nav {
    position: relative; /* Default position */
    top: auto;
    z-index: 50;
    transition: top 0.3s ease-in-out, box-shadow 0.3s ease-in-out, background-color 0.3s ease-in-out, transform 0.3s ease-in-out;
    /* Default background for non-sticky state */
     background-color: rgba(255, 255, 255, 0.3);
     backdrop-filter: blur(5px);
     border-radius: 0.5rem; /* rounded-lg */
     box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); /* shadow-sm */
     padding: 0.75rem 0.5rem; /* p-3 vertical, p-2 horizontal */
     /* Flex layout - Stacking items vertically and centering them */
     display: flex;
     flex-direction: column; /* Stack vertically */
     align-items: center; /* Center items horizontally */
     margin-top: 3rem; /* Add margin above nav now */
}
/* Styles applied when nav becomes sticky */
#main-nav.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8); /* More opaque when sticky */
    backdrop-filter: blur(10px); /* Stronger blur when sticky */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Shadow for sticky state */
    border-radius: 0; /* No rounded corners when full width */
    padding: 0.75rem 1rem; /* Adjust padding for sticky state */
    margin-top: 0; /* Remove margin when sticky */
    transform: translateY(0);
}

/* Hide sticky nav when scrolling down */
#main-nav.is-sticky.nav-hidden {
    transform: translateY(-110%);
}
/* Style UL within Nav */
#main-nav ul {
     background-color: transparent; /* Inherit nav background */
     box-shadow: none;
     padding: 0;
     /* Ensure UL takes appropriate width and is centered */
     max-width: 100%; /* Allow flex items to wrap if needed on small screens */
     display: flex;
     flex-wrap: wrap; /* Allow wrapping (overridden on small screens) */
     justify-content: center; /* Center nav items */
}
/* Style Lang Selector within Nav */
#main-nav .lang-selector {
    margin-top: 0.5rem; /* Add space above the selector */
    flex-shrink: 0; /* Prevent shrinking */
}

/* Footer Font */
.footer-fancy {
    font-family: 'Playfair Display', serif;
}

/* Animation for sections appearing (used by tab switching) */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Apply animation to visible content sections when switching tabs */
/* Exclude sections animating on first load */
.content-section:not(.hidden):not(.run-animation .animate-entry) {
    animation: fadeIn 0.5s ease-out;
}

/* --- Hero Section Styling --- */
#hero-section {
    min-height: 100vh; /* Full viewport height */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
    align-items: center; /* Center content horizontally */
    text-align: center;
    position: relative; /* For positioning the scroll button */
    padding: 2rem; /* Add some padding */
    box-sizing: border-box;
    overflow: hidden; /* Prevent confetti canvas scrollbars */
}

/* --- Scroll Down Button --- */
#scroll-down-button {
    position: absolute;
    bottom: 2rem; /* Position near the bottom */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.5); /* Semi-transparent background */
    border-radius: 50%;
    padding: 0.5rem;
    width: 3rem;
    height: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    transition: background-color 0.3s ease;
    animation: bounce 2s infinite ease-in-out; /* Bounce animation */
    z-index: 10; /* Ensure it's above confetti canvas if needed */
}
 #scroll-down-button:hover {
     background: rgba(255, 255, 255, 0.8);
 }
 #scroll-down-button img {
     width: 1.5rem; /* Adjust icon size */
     height: 1.5rem;
     color: #334155; /* slate-700 */
 }

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}


/* --- First Visit Animation --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInSimple {
     from { opacity: 0; }
     to { opacity: 1; }
}

/* Initial state for animated elements */
.animate-entry {
    opacity: 0;
    transition: opacity 0.5s ease; /* Fallback */
}

/* Apply animation when .run-animation is on body */
.run-animation .animate-entry-hero {
    animation: fadeInSimple 1s ease forwards; /* Simple fade for hero */
    animation-delay: 0.1s; /* Slight delay */
}
.run-animation .animate-entry-nav {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.5s; /* Keep delay relative to page load */
}
.run-animation .animate-entry-story { /* Story animation still exists if needed */
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.7s; /* Keep delay relative to page load */
}
/* Add similar rules if other sections need initial animation */


/* Ensure elements are visible on repeat visits */
body:not(.run-animation) .animate-entry {
    opacity: 1;
}
/* --- End First Visit Animation --- */

/* --- Countdown Timer Styling --- */
#countdown-section {
    padding: 2rem 1rem;
}

/* --- Mobile Bottom Nav --- */
#mobile-bottom-nav .rsvp-cta {
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

/* Ensure body has bottom padding so content not hidden by bottom nav */
@media (max-width: 640px) {
    body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.countdown-value {
    font-size: 3rem;
    font-weight: 700;
    color: #db2777; /* pink-600 */
    font-family: 'Quicksand', sans-serif;
    line-height: 1;
    background: rgba(255, 255, 255, 0.7);
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    backdrop-filter: blur(5px);
    min-width: 100px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.countdown-value:hover {
    transform: scale(1.05);
}

/* Epic number change animation */
.countdown-value.changing {
    animation: pulse-glow 0.6s ease-out;
}

@keyframes pulse-glow {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 0 20px rgba(219, 39, 119, 0.6), 0 0 40px rgba(219, 39, 119, 0.3);
        background: rgba(255, 255, 255, 0.95);
        color: #be185d; /* pink-700 */
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    }
}

.countdown-label {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155; /* slate-700 */
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Responsive countdown */
@media (max-width: 640px) {
    /* Compact nav on mobile */
    #main-nav {
        margin-top: 1rem;
        padding: 0.5rem;
    }
    #main-nav ul {
        flex-wrap: nowrap;           /* keep single row */
        overflow-x: auto;            /* horizontal scroll */
        -webkit-overflow-scrolling: touch;
        gap: 0.25rem;
        padding-bottom: 0.25rem;
    }
    #main-nav ul::-webkit-scrollbar { display: none; }
    .nav-link {
        font-size: 0.95rem;
        padding: 0.375rem 0.5rem;
        white-space: nowrap;         /* prevent wrapping of labels */
    }
    .nav-link.rsvp-cta {
        padding: 0.45rem 0.65rem; /* slightly larger tap target */
    }

    .countdown-value {
        font-size: 2rem;
        padding: 0.75rem 1rem;
        min-width: 70px;
    }

    .countdown-item {
        min-width: 60px;
    }
}
/* --- End Countdown Timer Styling --- */
