/* Custom Animations and Styles */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&display=swap');

* {
    font-family: 'Poppins', sans-serif;
}

body {
    overflow-x: hidden;
}

/* Floating hearts animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.7;
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
        opacity: 1;
    }
}

.milestone-card {
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

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

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

.milestone-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: left 0.5s;
}

.milestone-card:hover::before {
    left: 100%;
}

/* Heartbeat animation */
@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    10%,
    30% {
        transform: scale(1.1);
    }

    20%,
    40% {
        transform: scale(1);
    }
}

.fa-heart {
    animation: heartbeat 2s infinite;
}

/* Pulse animation for numbers */
.milestone-card:hover .text-3xl {
    animation: pulse 1s ease-in-out;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Gradient text animation */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.bg-clip-text {
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #fce7f3;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #ef4444, #ec4899);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #dc2626, #db2777);
}

/* Floating hearts background effect */
body::before,
body::after {
    content: '💕';
    position: fixed;
    font-size: 3rem;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

body::before {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

body::after {
    top: 60%;
    right: 10%;
    animation-delay: 3s;
}

/* Ensure content is above floating hearts */
#password-screen,
#main-content {
    position: relative;
    z-index: 1;
}

/* Smooth transitions for all interactive elements */
button,
input,
.milestone-card {
    transition: all 0.3s ease;
}

/* Focus states */
input:focus {
    transform: scale(1.02);
}

button:active {
    transform: scale(0.98);
}

/* Loading animation for counters */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

[id$="-days"],
[id$="-monthversary"],
[id$="-anniversary"],
[id$="-age"],
[id$="-birthday"],
#life-percentage {
    animation: countUp 0.5s ease-out;
}

/* Romantic particle effect on hover */
.milestone-card:hover {
    transform: translateY(-5px);
}

/* Special styling for the life percentage card */
#life-percentage {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .text-6xl {
        font-size: 3rem;
    }

    .milestone-card {
        margin-bottom: 1rem;
    }
}