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

:root {
    --pink: #FFB6C1;
    --light-pink: #FFE4E9;
    --cream: #FFFAF0;
    --lavender: #E6E6FA;
    --purple: #DDA0DD;
    --text-dark: #4A4A4A;
    --text-light: #6B6B6B;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--cream) 0%, var(--light-pink) 50%, var(--lavender) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
    color: var(--text-dark);
}

/* Hearts Background Animation */
.hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.floating-heart {
    position: absolute;
    font-size: 20px;
    opacity: 0;
    animation: floatUp 10s ease-in infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Sparkles */
.sparkles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    animation: sparkleAnim 3s ease-in-out infinite;
}

@keyframes sparkleAnim {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Container */
.container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 800px;
    padding: 20px;
}

/* Glassmorphism Card */
.content-card {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 60px 40px;
    box-shadow: 0 8px 32px rgba(255, 182, 193, 0.3),
                0 0 1px rgba(255, 255, 255, 0.5) inset;
    border: 1px solid rgba(255, 255, 255, 0.4);
    text-align: center;
    animation: fadeInScale 1.5s ease-out;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Heart Icon */
.heart-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
}

.beating-heart {
    width: 100%;
    height: 100%;
    fill: var(--pink);
    filter: drop-shadow(0 4px 15px rgba(255, 105, 180, 0.4));
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(1.1);
    }
    20%, 40% {
        transform: scale(1);
    }
}

/* Main Title */
.main-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.title-line {
    display: block;
    animation: slideInRight 1s ease-out;
}

.title-line:nth-child(2) {
    animation-delay: 0.3s;
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Subtitle */
.subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 40px;
    font-weight: 300;
    animation: fadeIn 2s ease-out 0.6s backwards;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Counter Box */
.counter-box {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 4px 20px rgba(255, 182, 193, 0.2);
    animation: fadeIn 2s ease-out 0.9s backwards;
}

.counter-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.counter-value {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--pink);
    text-shadow: 2px 2px 10px rgba(255, 105, 180, 0.3);
    animation: countUp 2s ease-out;
}

.counter-sublabel {
    font-size: 1rem;
    color: var(--text-light);
    margin-top: 10px;
}

@keyframes countUp {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Date Display */
.date-display {
    margin-bottom: 40px;
    animation: fadeIn 2s ease-out 1.2s backwards;
}

.date-display p {
    font-size: 1rem;
    color: var(--text-light);
    font-style: italic;
}

/* Progress Bar */
.progress-container {
    margin: 40px 0;
    animation: fadeIn 2s ease-out 1.5s backwards;
}

.progress-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--pink), var(--purple));
    border-radius: 10px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
}

.progress-text {
    margin-top: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Names */
.names {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 40px 0 30px;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-dark);
    animation: fadeIn 2s ease-out 1.8s backwards;
}

.heart-divider {
    font-size: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Footer Text */
.footer-text {
    font-size: 0.95rem;
    color: var(--text-light);
    font-style: italic;
    opacity: 0.8;
    animation: fadeIn 2s ease-out 2.1s backwards;
}

/* Particle Canvas */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-card {
        padding: 40px 25px;
        border-radius: 20px;
    }

    .main-title {
        font-size: 2.2rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .counter-value {
        font-size: 3rem;
    }

    .names {
        font-size: 1.5rem;
    }

    .heart-icon {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.8rem;
    }

    .counter-value {
        font-size: 2.5rem;
    }

    .names {
        font-size: 1.3rem;
        gap: 15px;
    }
}
