:root {
    --sage-light: #eef2ef;
    --sage: #c0d1c4;
    --sage-dark: #6e8b74;
    --forest: #213326;
    --text-primary: #1a261d;
    --text-secondary: #4a5c4e;
    --bg-main: #fcf9f2; /* Cream white */
    --gold: #c5a059;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    --font-script: 'Great Vibes', cursive;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    background-image: url('assets/bg_pattern.png');
    background-size: 400px;
    background-repeat: repeat;
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 400;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    color: var(--forest);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--sage-dark);
}

.section-subtitle {
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 5px;
    color: var(--sage-dark);
    text-transform: uppercase;
    margin-top: -1rem;
    margin-bottom: 3rem;
}

/* Background Leaf Overlay */
.leaf-overlay {
    position: fixed;
    width: 350px;
    height: 350px;
    background-image: url('assets/watercolor_leaf.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.95;
    mix-blend-mode: multiply;
    z-index: 50;
    pointer-events: none;
    transition: transform 0.5s ease-out;
}

.leaf-top-left {
    top: -50px;
    left: -50px;
    transform: rotate(15deg);
}

.leaf-bottom-right {
    bottom: -50px;
    right: -50px;
    transform: rotate(195deg);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    position: relative;
}

.hero-content {
    margin-bottom: 3rem;
}

.subtitle {
    font-size: 1.2rem;
    letter-spacing: 4px;
    color: var(--forest);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(253, 251, 247, 0.9), 0 0 5px rgba(255, 255, 255, 1);
}

.names {
    font-size: 4.5rem;
    color: var(--forest);
    margin-bottom: 1rem;
}

.ampersand {
    font-family: var(--font-script);
    color: var(--sage-dark);
    font-size: 5rem;
    display: inline-block;
    vertical-align: middle;
    margin: 0 10px;
}

.date {
    font-size: 1.2rem;
    letter-spacing: 3px;
    color: var(--forest);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 15px rgba(253, 251, 247, 0.9), 0 0 5px rgba(255, 255, 255, 1);
}

.location-brief {
    font-style: italic;
    color: var(--forest);
    font-weight: 500;
    text-shadow: 0 0 15px rgba(253, 251, 247, 0.9), 0 0 5px rgba(255, 255, 255, 1);
}

.hero-image-container {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 20px;
    background-color: #ffffff;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    position: relative;
    margin-bottom: 2rem;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: var(--sage-dark);
    font-size: 2rem;
    z-index: 20;
    text-decoration: none;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-20px) translateX(-50%); }
    60% { transform: translateY(-10px) translateX(-50%); }
}

/* Sections */
section {
    padding: 6rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.invitation {
    text-align: center;
    background-color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border-radius: 10px;
    padding: 4rem 2rem;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.invitation-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.guest-box {
    margin: 1rem auto 2rem;
    padding: 0.5rem 3rem;
    border-bottom: 1px dashed var(--gold);
    display: inline-block;
    min-width: 250px;
}

.guest-name {
    font-family: var(--font-script);
    font-size: 2.5rem;
    color: var(--forest);
    margin: 0;
    line-height: 1.2;
}

/* Countdown */
.countdown-container {
    margin-top: 3rem;
}

.countdown-boxes {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.countdown-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    min-width: 80px;
}

.countdown-box span:first-child {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--forest);
    font-weight: 600;
}

.countdown-box .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--sage-dark);
}

/* Event Details */
.events-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.event-card {
    background: var(--sage-light);
    padding: 3rem 2rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--sage);
    transition: transform 0.3s ease;
    width: 100%;
    max-width: 500px;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-icon {
    font-size: 2.5rem;
    color: var(--sage-dark);
    margin-bottom: 1.5rem;
}

.event-card h3 {
    font-size: 2rem;
    color: var(--forest);
    margin-bottom: 1rem;
}

.event-card p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.event-card .event-time {
    font-weight: 500;
    color: var(--forest);
}

.btn-location {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.8rem 2rem;
    background-color: var(--forest);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
}

.btn-location:hover {
    background-color: var(--sage-dark);
}

.map-container {
    margin-top: 1.5rem;
    width: 100%;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 3rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.8s ease-in-out;
}

.gallery-item img.fading-out {
    opacity: 0;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* RSVP */
.rsvp-container {
    background-color: white;
    padding: 4rem 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.rsvp-text {
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.rsvp-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

input, select, textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--sage);
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    background-color: var(--bg-main);
    transition: border-color 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--forest);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background-color: var(--forest);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: var(--sage-dark);
}

.hidden {
    display: none;
}

#rsvp-success {
    margin-top: 2rem;
    color: var(--forest);
    font-size: 1.2rem;
    font-weight: 500;
}

/* Footer */
.footer {
    text-align: center;
    padding: 6rem 2rem;
    background-color: #1a2a3a;
    background-image: url('assets/blue_watercolor_bg.png');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
    --sage: rgba(255, 255, 255, 0.9);
}

.footer p {
    font-family: var(--font-heading);
    font-size: 2rem;
}

.footer .footer-note {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--sage);
    margin-top: 1rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transition: opacity 1s ease-in;
}

.fade-in.appear {
    opacity: 1;
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-up.appear {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Responsive */
@media (max-width: 768px) {
    .names {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .leaf-overlay {
        width: 200px;
        height: 200px;
    }
}

/* Dark Event Section */
.event-details-dark {
    background-color: #1a2a3a; /* Dark blue fallback */
    background-image: url('assets/blue_watercolor_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
    --sage: rgba(255, 255, 255, 0.9);
    padding: 6rem 2rem;
    position: relative;
    text-align: center;
}

.dark-event-content {
    max-width: 800px;
    margin: 0 auto;
}

.dark-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--sage);
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.parents-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6rem;
    margin-bottom: 4rem;
}

.parent-title {
    font-size: 0.8rem;
    color: var(--sage);
    margin-bottom: 0.5rem;
}

.parent-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}

.parent-address {
    font-size: 0.8rem;
    color: var(--sage);
    margin-top: 0.5rem;
}

.announce-text {
    margin-bottom: 4rem;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.en-text {
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--sage);
    margin-top: 0.5rem;
}

.dark-couple-names {
    margin-bottom: 5rem;
}

.dark-couple-names h2 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.dark-couple-names .amp {
    font-family: var(--font-script);
    font-size: 3rem;
    color: var(--sage);
    margin: 1rem 0;
}

.role {
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: var(--sage);
    text-transform: uppercase;
}

.event-block {
    margin-bottom: 4rem;
}

.event-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.event-at {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--sage);
    margin: 1.5rem 0;
}

.event-time-large {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.date-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.date-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.7rem;
    letter-spacing: 2px;
}

.date-side .en {
    color: var(--sage);
}

.date-center {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    padding: 0 1.5rem;
    border-left: 1px solid var(--sage);
    border-right: 1px solid var(--sage);
}

.event-year {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.lunar-date {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--sage);
    text-transform: uppercase;
}

.divider-leaf {
    width: 60px;
    height: 60px;
    margin: 3rem auto;
    background-image: url('assets/watercolor_leaf.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    /* CSS Magic: Turns white bg to black (invisible in screen mode) and watercolor to glowing white watermark */
    filter: grayscale(1) invert(1) brightness(2.5);
    mix-blend-mode: screen;
    opacity: 0.6;
}

.reception-timeline {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin: 3rem 0;
}

.timeline-title {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.timeline-time {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-top: 0.5rem;
}

.countdown-dark {
    margin: 3rem 0;
}

.countdown-boxes-dark {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.cd-box {
    display: flex;
    flex-direction: column;
}

.cd-box span:first-child {
    font-family: var(--font-heading);
    font-size: 2rem;
}

.cd-box .label {
    font-size: 0.7rem;
    color: var(--sage);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-outline-light {
    display: inline-block;
    padding: 1rem 3rem;
    border: 1px solid white;
    color: white;
    background: transparent;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--forest);
}

.event-venue-block {
    margin-top: 5rem;
}

.venue-address {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin: 1.5rem 0;
}

.map-container-dark {
    width: 100%;
    height: auto;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 2rem;
}

.map-container-dark iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.mt-4 {
    margin-top: 4rem;
}

.hero-names-image {
    max-width: 90%;
    width: 350px;
    height: auto;
    margin-bottom: 2rem;
    display: inline-block;
}

.static-map {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}
