/* ===== Base, Typography, and New Colors ===== */
:root {
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Manrope', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
    --color-text: #4a3e3e;
    --color-heading: #3a2e2e;
    --color-bg: #fdf8f6;
    --color-accent: #eabfb9;
    --color-accent-dark: #d19a93;
    --animation-duration: 0.9s;
}

/* ... (body, content, h1/h2, etc. styles remain the same) ... */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
.content { max-width: 950px; margin: 0 auto; padding: 0 40px; }
h1, h2 { font-family: var(--font-heading); font-weight: 400; color: var(--color-heading); }
p { line-height: 1.9; font-weight: 300; }
.section-title { font-size: 2.8rem; text-align: center; margin-bottom: 5rem; font-style: italic; }

/* ===== All Animations ===== */
.animate-on-load, .animate-on-scroll { opacity: 0; transform: translateY(30px); }
.animate-on-load { animation: fadeInUp 1s ease-out 0.5s forwards; }
.animate-on-scroll { transition: opacity var(--animation-duration) ease-out, transform var(--animation-duration) ease-out; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* ===== Hero Section & NEW ANIMATION STYLES (UPDATED) ===== */
/* ===== Hero Section & Lottie Animations (UPDATED) ===== */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
}
.hero__text {
    text-align: left;
    max-width: 50%;
    z-index: 2; /* Ensure text is above Lottie if they overlap */
}
.hero__title { font-size: clamp(3rem, 8vw, 5rem); animation-delay: 0.5s; font-style: italic; }
.hero__subtitle { font-size: clamp(1rem, 2.5vw, 1.2rem); margin-top: 1.5rem; animation-delay: 0.8s; max-width: 450px; }

.hero-animation {
    width: 40%;
    max-width: 350px;
    position: relative;
    animation-delay: 1s;
    cursor: pointer;
    z-index: 1; /* Keep heart behind text, or adjust as needed */
}

/* Lottie Heart in Hero */
#lottie-heart {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}


/* Keyframes for the Heart and Arrow */
@keyframes hero-heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}
@keyframes fly-arrow {
    0% {
        transform: translate(200%, -200%) rotate(0deg);
        opacity: 1;
    }
    30% {
        transform: translate(-50%, -50%) rotate(225deg);
        opacity: 1;
    }
    40% {
        transform: translate(-50%, -50%) rotate(225deg) scale(1.1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) rotate(225deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) rotate(225deg);
        opacity: 1;
    }
}

/* Heart Message Pop-up */
.heart-message {
    position: absolute;
    top: 50%; /* Position relative to .hero-animation */
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--color-accent-dark);
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    z-index: 10;
    animation: none;
}
/* Animation for the Heart Message */
@keyframes heart-message-show {
    0% { opacity: 0; transform: translate(-50%, 0); }
    30% { opacity: 1; transform: translate(-50%, -10px); }
    70% { opacity: 1; transform: translate(-50%, -10px); }
    100% { opacity: 0; transform: translate(-50%, -30px); }
}


/* Make Hero section responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        min-height: 80vh;
    }
    .hero__text {
        max-width: 100%;
        text-align: center;
    }
    .hero-animation {
        width: 50%;
        max-width: 200px;
        /* margin-top: 3rem; */
        /* For mobile, if you want heart animation to be centered below text */
        margin: 3rem auto 0;
    }
}


#lottie-heart {
    width: 380px;
    height: 380px;
}
#lottie-heart2 {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .counter-header {
        flex-direction: column;
        gap: 12px;
    }

    #lottie-heart2 {
        width: 90px;
        height: 90px;
    }
    #lottie-heart {
    width: 170px;
    height: 90px;
}
}


/* ===== Counter Section & Lottie Heart 2 (UPDATED FOR CENTERING) ===== */
.counter-section { padding: 15vh 0; }
.counter-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}
.counter-header .section-title {
    margin: 0;
    line-height: 1.2;
    display: flex;
    align-items: center;
    text-align: center;
}   
#lottie-heart2 {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}


.counter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 25px;
    text-align: center;
}

/* NEW: Media query for centering the last card on smaller screens */
@media (max-width: 700px) { /* Adjust this breakpoint if needed */
    .counter-grid {
        /* On smaller screens, make columns only as wide as their content (up to 180px)
           and then center these columns. */
        grid-template-columns: repeat(auto-fit, minmax(130px, max(130px, calc(100% / 2 - 25px)))); /* e.g. 2 columns - slight adjustment */
        justify-content: center; /* This centers the grid tracks */
    }
    .counter-card:last-child {
        grid-column: 1 / -1;
        justify-self: center;
        max-width: 180px;
    }
}

.counter-card { background: #fff; padding: 2.5rem 1rem; border-radius: 12px; box-shadow: 0 10px 40px rgba(210, 180, 180, 0.2); transition: transform 0.3s ease; }
.counter-card:hover { transform: translateY(-5px); }
.counter-card__number { font-family: var(--font-mono); font-size: clamp(2.5rem, 8vw, 3.5rem); font-weight: 400; display: block; color: var(--color-accent-dark); position: relative; transition: transform 0.4s ease-out, opacity 0.4s ease-out; }
.counter-card__number.is-updating { transform: translateY(-10px); opacity: 0; }
.counter-card__label { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1.5px; opacity: 0.6; margin-top: 0.75rem; display: block; }

.text-section { margin: 10vh 0; padding: 10vh 0; border-top: 1px solid rgba(0,0,0,0.05); border-bottom: 1px solid rgba(0,0,0,0.05); }
.text-section__paragraph { max-width: 600px; margin: 0 auto 6rem; position: relative; }
.text-section__paragraph:last-child { margin-bottom: 0; }
.text-section h2 { font-size: 2.5rem; margin-bottom: 2rem; text-align: center; font-style: italic; }
.text-section__paragraph.is-visible::before { transform: scaleX(0); }
.text-section__paragraph::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--color-accent); transform-origin: right; transition: transform 1.2s cubic-bezier(0.86, 0, 0.07, 1); }

.gallery-section { margin: 20vh 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 35px; }
.gallery__card { overflow: hidden; border-radius: 8px; box-shadow: 0 15px 50px rgba(210, 180, 180, 0.3); aspect-ratio: 4 / 5; cursor: pointer; transition: transform 0.4s ease, box-shadow 0.4s ease; }
.gallery__card:hover { transform: translateY(-10px) scale(1.03); box-shadow: 0 25px 60px rgba(210, 180, 180, 0.4); }
.gallery__card img { width: 100%; height: 100%; object-fit: cover; display: block; }

.lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(60, 40, 40, 0.9); display: none; justify-content: center; align-items: center; z-index: 1000; padding: 20px; animation: fadeIn 0.4s ease; }
.lightbox.is-visible { display: flex; }
.lightbox__image { max-width: 95%; max-height: 95%; border-radius: 8px; box-shadow: 0 0 80px rgba(0,0,0,0.5); animation: zoomIn 0.5s cubic-bezier(0.165, 0.84, 0.44, 1); }
.lightbox__close { position: absolute; top: 20px; right: 30px; font-size: 3rem; color: #fff; cursor: pointer; opacity: 0.8; transition: opacity 0.3s ease; }
.lightbox__close:hover { opacity: 1; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomIn { from { transform: scale(0.8); } to { transform: scale(1); } }

.final-section { min-height: 40vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding-bottom: 10vh; }
.final-section__text { font-family: var(--font-heading); font-size: clamp(1.8rem, 5vw, 2.8rem); font-style: italic; }
.final-section__icon { font-size: 2.5rem; color: var(--color-accent-dark); margin-top: 2.5rem; animation: heartbeat 1.5s infinite ease-in-out; }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }

.particles-container { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; pointer-events: none; z-index: -1; }
.particle { position: absolute; background-color: var(--color-accent); border-radius: 50%; animation: floatUp 25s infinite linear; }
@keyframes floatUp { 0% { transform: translateY(0); opacity: 0; } 10%, 90% { opacity: 1; } 100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; } }
