:root {
    --bg-color: #fdfbf7;
    --transition-speed: 0.8s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    font-family: 'Cormorant Garamond', serif;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

.container {
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.invitation-card {
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
    /* Removing any line-height gaps */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-speed) ease-out, transform var(--transition-speed) ease-out;
}

#effects-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.petal {
    position: absolute;
    top: -50px;
    background-color: #ffc0cb;
    /* Fallback pink */
    border-radius: 50% 0 50% 0;
    opacity: 0.8;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
    animation: fall linear forwards, sway ease-in-out infinite alternate;
}

@keyframes fall {
    to {
        top: 105vh;
    }
}

@keyframes sway {
    from {
        transform: translateX(-20px) rotate(0deg);
    }

    to {
        transform: translateX(20px) rotate(45deg);
    }
}

.invitation-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* SVG Internal Animations */
.animate-tree {
    transform-origin: bottom center;
    animation: sway-tree 4s ease-in-out infinite alternate;
}

.animate-flower {
    transform-origin: center center;
    animation: float-flower 3s ease-in-out infinite alternate;
}

.animate-text {
    opacity: 0;
    animation: fade-in-text 2s ease-out forwards;
}

.animate-text-delay-1 {
    animation-delay: 0.5s;
}

.animate-text-delay-2 {
    animation-delay: 1.5s;
}

.animate-couple {
    animation: pulse-couple 6s ease-in-out infinite;
}

@keyframes sway-tree {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(2deg);
    }
}

@keyframes float-flower {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(0, 5px);
    }
}

@keyframes fade-in-text {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-couple {
    0% {
        transform: scale(1);
        filter: brightness(100%);
    }

    50% {
        transform: scale(1.01);
        filter: brightness(102%);
    }

    100% {
        transform: scale(1);
        filter: brightness(100%);
    }
}