/* =====================================================
   Bé Ngôi Sao - Decorative Elements Enhanced
   Child-friendly decorations and animations
   ===================================================== */

/* Floating Animation Keyframes */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes floatSlow {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(8deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.08);
        opacity: 0.85;
    }
}

@keyframes wiggle {

    0%,
    100% {
        transform: rotate(-5deg);
    }

    50% {
        transform: rotate(5deg);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes sparkle {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1) rotate(0deg);
    }

    50% {
        opacity: 1;
        transform: scale(1.3) rotate(30deg);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Wave Section Divider - Enhanced */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
}

.wave-divider .shape-fill {
    fill: var(--white);
}

/* Wave Top (for sections with colored backgrounds) */
.wave-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.wave-top svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

/* Cloud Decoration */
.cloud-decoration {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.cloud {
    width: 150px;
    height: 50px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    position: relative;
    animation: floatSlow 8s ease-in-out infinite;
}

.cloud::before {
    content: '';
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    position: absolute;
    top: -35px;
    left: 25px;
}

.cloud::after {
    content: '';
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    position: absolute;
    top: -25px;
    right: 25px;
}

/* Star Decorations */
.star-decoration {
    position: absolute;
    width: 20px;
    height: 20px;
    animation: sparkle 2s ease-in-out infinite;
}

.star-decoration::before {
    content: '⭐';
    font-size: 20px;
}

.star-decoration.star-1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.star-decoration.star-2 {
    top: 20%;
    right: 8%;
    animation-delay: 0.5s;
}

.star-decoration.star-3 {
    top: 60%;
    left: 3%;
    animation-delay: 1s;
}

.star-decoration.star-4 {
    top: 70%;
    right: 5%;
    animation-delay: 1.5s;
}

/* Balloon Decoration */
.balloon {
    width: 60px;
    height: 75px;
    border-radius: 50% 50% 50% 50%;
    position: relative;
    animation: float 4s ease-in-out infinite;
}

.balloon.balloon-orange {
    background: var(--primary-orange);
}

.balloon.balloon-teal {
    background: var(--secondary-teal);
    animation-delay: 1s;
}

.balloon.balloon-pink {
    background: var(--accent-pink);
    animation-delay: 2s;
}

.balloon::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 30px;
    background: #999;
}

/* Playful Shapes */
.shape-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    position: absolute;
    opacity: 0.1;
    animation: pulse 4s ease-in-out infinite;
}

.shape-circle.orange {
    background: var(--primary-orange);
}

.shape-circle.teal {
    background: var(--secondary-teal);
    animation-delay: 1s;
}

.shape-circle.pink {
    background: var(--accent-pink);
    animation-delay: 2s;
}

/* Enhanced Button Animations */
.btn-cta:active {
    transform: translateY(-2px) scale(0.98);
}

.btn-feature i {
    transition: transform 0.3s ease;
}

.btn-feature:hover i {
    transform: translateX(5px);
}

/* Card Hover Effects */
.feature-card .icon {
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.feature-card:hover .icon {
    transform: scale(1.1) rotate(5deg);
}

/* Section Background Decorations */
.section-decorated {
    position: relative;
    overflow: hidden;
}

.section-decorated::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--primary-orange);
    opacity: 0.05;
    border-radius: 50%;
    top: -100px;
    left: -100px;
}

.section-decorated::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: var(--secondary-teal);
    opacity: 0.05;
    border-radius: 50%;
    bottom: -75px;
    right: -75px;
}

/* Fun Border Styles */
.rainbow-border {
    border-image: linear-gradient(90deg,
            var(--primary-orange),
            var(--primary-yellow),
            var(--secondary-teal),
            var(--accent-pink)) 1;
}

/* Emoji Icons Enhancement */
.emoji-icon {
    display: inline-block;
    font-size: 2rem;
    animation: wiggle 2s ease-in-out infinite;
}

/* Loading Animation */
@keyframes loading-dots {

    0%,
    20% {
        content: '.';
    }

    40% {
        content: '..';
    }

    60%,
    100% {
        content: '...';
    }
}

/* Scroll Reveal Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fun Hover Effects for Images */
.fun-hover {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.fun-hover:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 20px 40px rgba(255, 123, 84, 0.3);
}

/* Colorful Underline for Links */
.colorful-link {
    position: relative;
    display: inline-block;
}

.colorful-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-orange), var(--secondary-teal), var(--accent-pink));
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: right;
}

.colorful-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Notification Badges */
.badge-new {
    background: linear-gradient(135deg, var(--primary-coral), var(--primary-orange));
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    animation: pulse 2s ease-in-out infinite;
}

/* Confetti Effect (for special events) */
@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
    }

    100% {
        transform: translateY(100vh) rotate(720deg);
    }
}

.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    top: 0;
    animation: confetti-fall 3s linear infinite;
    z-index: 9999;
    pointer-events: none;
}