:root {
    --bg-pink: #FFF5F7;
    --primary-pink: #FF89A3;
    --dark-pink: #FF5E7E;
    --soft-purple: #9B59B6;
    --white: #FFFFFF;
    --glass: rgba(255, 255, 255, 0.7);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-pink);
    color: #444;
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
.hero-title {
    font-family: 'Dancing Script', cursive;
    color: var(--dark-pink);
}

.text-center {
    text-align: center;
}

/* Overlay & Opening */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, #fff 0%, #ffeef2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 1s ease-out, visibility 1s;
}

.overlay-content {
    text-align: center;
    padding: 2rem;
}

.overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Animations */
@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.bounce {
    animation: bounce 2s infinite ease-in-out;
}

/* Glassmorphism Sections */
.glass-section {
    background: var(--glass);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    margin: 20px;
    box-shadow: var(--shadow);
}

.section-padding {
    padding: 3rem 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Hero Styles */
.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #666;
}

/* Grid & Gifts */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    padding: 20px;
}

.gift-box {
    background: white;
    padding: 2rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid #ffeff2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gift-box:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(255, 137, 163, 0.2);
    border-color: var(--primary-pink);
}

.gift-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.gift-reveal {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--primary-pink);
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hidden {
    display: none !important;
}

.photo-container {
    width: 100%;
    max-width: 250px;
    margin: 10px auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 3px solid white;
}

.surprise-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
    filter: contrast(1.05) brightness(1.05) saturate(1.1);
    /* Subtle enhancement */
    image-rendering: auto;
    /* Ensure no pixelation */
}

.surprise-img:hover {
    transform: scale(1.05);
}

/* Buttons */
.main-btn {
    background-color: var(--primary-pink);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255, 137, 163, 0.3);
}

.main-btn:hover {
    background-color: var(--dark-pink);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 137, 163, 0.4);
}

.btn-ripple {
    position: relative;
    overflow: hidden;
    background: var(--soft-purple);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
}

/* Compliment Section */
.compliment-text {
    font-size: 1.5rem;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--soft-purple);
    font-style: italic;
}

/* Heart Background */
#heart-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.falling-heart {
    position: absolute;
    color: var(--primary-pink);
    opacity: 0;
    animation: fall linear forwards;
}

@keyframes fall {
    0% {
        transform: translateY(-10vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0;
    }
}

/* Footer & Big Heart */
.big-heart-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.heart {
    background-color: var(--dark-pink);
    display: inline-block;
    height: 50px;
    margin: 0 10px;
    position: relative;
    top: 0;
    transform: rotate(-45deg);
    width: 50px;
}

.heart:before,
.heart:after {
    content: "";
    background-color: var(--dark-pink);
    border-radius: 50%;
    height: 50px;
    position: absolute;
    width: 50px;
}

.heart:before {
    top: -25px;
    left: 0;
}

.heart:after {
    left: 25px;
    top: 0;
}

.pulse-heart {
    animation: pulse 1s infinite alternate;
}

@keyframes pulse {
    from {
        transform: rotate(-45deg) scale(1);
    }

    to {
        transform: rotate(-45deg) scale(1.2);
    }
}

/* Responsive */
@media (max-width: 600px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .grid-container {
        grid-template-columns: 1fr 1fr;
    }

    .section-padding {
        padding: 2rem 1rem;
    }
}