@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;1,700&family=Montserrat:wght@300;700&display=swap');

:root {
    --bg-color: #f4fff8;
    --primary-color: #1b3d2f;
    --accent-color: #2e7d32;
    --light-accent: #a5d6a7;
    --highlight-color: #66bb6a;
    --font-main: 'Montserrat', sans-serif;
    --font-heading: 'Lora', serif;
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: var(--font-main);
    background: var(--bg-color);
    color: var(--primary-color);
    line-height: 1.6;
    scroll-behavior: smooth;
}

header {
    background: rgba(46, 125, 50, 0.95);
    /* semi-transparent green */
    padding: 1rem 0;
    text-align: center;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
    /* Optional: subtle blur effect */
    transition: background 0.3s ease;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--light-accent);
}

main {
    padding: 2rem;
}

section {
    scroll-margin-top: 100px;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards;
    animation-delay: 0.5s;
}

section h1,
section h2 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    color: var(--accent-color);
}

section p {
    font-size: 1.1rem;
    color: var(--primary-color);
}

.gallery ul {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    list-style: none;
}

.gallery img {
    max-width: 250px;
    border-radius: 12px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 4px solid var(--light-accent);
}

.gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(46, 125, 50, 0.4);
}

footer {
    background: var(--accent-color);
    color: white;
    text-align: center;
    padding: 1rem;
    position: relative;
    bottom: 0;
    width: 100%;
    font-size: 0.9rem;
    margin-top: 2rem;
    animation: fadeInUp 1s ease-out;
}

.memory-slider {
    padding: 2rem 0;
    overflow-x: auto;
    background-color: #e8f5e9;
    text-align: center;
}

.slider-track {
    display: flex;
    gap: 10px;
    padding: 10px;
    flex-wrap: wrap;
    justify-content: center;
}


.memory-card {
    background: white;
    border: 2px solid var(--light-accent);
    padding: 10px;
    border-radius: 12px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    max-width: 95vw;
}


.memory-card img {
    width: 100%;
    height: 960px;
    max-width: 300px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 0.5rem;
}

.memory-card:hover {
    transform: scale(1.03);
}

#birthday-end {
    background: var(--highlight-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.8rem;
    position: relative;
}

#confetti-canvas {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    width: 100%;
    height: 100%;
}

/* Slow scroll animation */
@keyframes slideIn {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-60%);
    }
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Tweaks */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    .gallery img,
    .memory-card {
        max-width: 100%;
    }

    .memory-card img {
        max-width: 100%;
        max-height: 300px;
        height: auto;
    }

}

@media (min-width: 1024px) {
    .memory-card {
        min-width: 350px;
    }

    .memory-card img {
        max-height: 400px;
    }
}