/* BabyLand Fun Animations */

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    33% { transform: translateY(-15px) translateX(10px); }
    66% { transform: translateY(-25px) translateX(-10px); }
}

@keyframes floatReverse {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(20px) rotate(-5deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 8px 24px rgba(255, 107, 107, 0.5); }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rainbow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes wiggle {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.float { animation: float 3s ease-in-out infinite; }
.float-slow { animation: floatSlow 6s ease-in-out infinite; }
.float-reverse { animation: floatReverse 4s ease-in-out infinite; }
.pulse { animation: pulse 2s ease-in-out infinite; }
.bounce { animation: bounce 2s ease-in-out infinite; }
.spin { animation: spin 8s linear infinite; }
.wiggle { animation: wiggle 1s ease-in-out infinite; }

/* Hero Section */
.hero-animated {
    position: relative;
    overflow: hidden;
    padding: 120px 0;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.05), rgba(78, 205, 196, 0.05), rgba(255, 230, 109, 0.05));
    background-size: 400% 400%;
    animation: rainbow 15s ease infinite;
}

.hero-animated h1 {
    font-size: 4rem;
    background: linear-gradient(135deg, #FF6B6B, #4ECDC4, #FFE66D, #FF9F43);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow 5s ease infinite;
    line-height: 1.2;
}

.floating-decor {
    position: absolute;
    pointer-events: none;
    opacity: 0.6;
    z-index: 0;
    font-size: 3rem;
}

/* Card Animations */
.card-animated {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.card-animated::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.card-animated:hover::before {
    left: 100%;
}

.card-animated:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.2);
}

.card-animated:hover .product-img {
    transform: scale(1.1) rotate(2deg);
}

.product-img {
    transition: transform 0.4s ease;
}

/* Button Animations */
.btn-animated {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-animated:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.4);
}

/* Countdown Timer */
.countdown-box {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 20px;
    background: var(--surface);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    min-width: 80px;
    border: 1px solid var(--border);
}

.countdown-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.countdown-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 48px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

/* Testimonial Card */
.testimonial-card {
    padding: 32px;
    border-radius: 24px;
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Brand Marquee */
.marquee {
    overflow: hidden;
    padding: 20px 0;
    background: var(--surface);
    border-radius: 16px;
}

.marquee-content {
    display: flex;
    gap: 60px;
    animation: scroll 20s linear infinite;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Stats Section */
.stat-card {
    text-align: center;
    padding: 40px 20px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Reveal on Scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Badge Pulse */
.badge-animated {
    animation: pulse 2s ease-in-out infinite;
    display: inline-block;
}

/* Price Tag */
.price-tag {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: inline-block;
}

.old-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 1rem;
    margin-left: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-animated h1 {
        font-size: 2.5rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .stat-number {
        font-size: 2.5rem;
    }
}