/* Fade-in + slide up */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.fade-in-up.delay-1 {
    animation-delay: 0.3s;
}

.fade-in-up.delay-2 {
    animation-delay: 0.6s;
}

.fade-in-up.delay-3 {
    animation-delay: 0.9s;
}

.fade-in-up.delay-4 {
    animation-delay: 1.2s;
}

/* Floating animation */
@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.banner-animate img {
    animation: floating 6s ease-in-out infinite;
}

.object-animate {
    animation: floating 6s ease-in-out infinite;
}

/* Glow shimmer effect */
@keyframes glow {

    0%,
    100% {
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.6));
    }

    50% {
        filter: drop-shadow(0 0 25px rgba(173, 216, 255, 1));
    }
}

.glow-effect {
    animation: glow 3s ease-in-out infinite alternate;
}

/* Animated Background Elements */
.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) {
    width: 6px;
    height: 6px;
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    width: 8px;
    height: 8px;
    left: 20%;
    animation-delay: 1s;
}

.particle:nth-child(3) {
    width: 4px;
    height: 4px;
    left: 30%;
    animation-delay: 2s;
}

.particle:nth-child(4) {
    width: 10px;
    height: 10px;
    left: 40%;
    animation-delay: 3s;
}

.particle:nth-child(5) {
    width: 5px;
    height: 5px;
    left: 60%;
    animation-delay: 1.5s;
}

.particle:nth-child(6) {
    width: 7px;
    height: 7px;
    left: 70%;
    animation-delay: 2.5s;
}

.particle:nth-child(7) {
    width: 9px;
    height: 9px;
    left: 80%;
    animation-delay: 0.5s;
}

.particle:nth-child(8) {
    width: 6px;
    height: 6px;
    left: 90%;
    animation-delay: 3.5s;
}

@keyframes float {

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

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-10vh) rotate(360deg);
        opacity: 0;
    }
}


.shimmer-title img {
    display: block;
    width: 100%;
    height: 100%;
    animation: scalePulse 5s ease-in-out infinite;
}


/* scale animation */
@keyframes scalePulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 20px #0000ff63);
    }

    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 20px #00ffff2d);

    }
}



.firework {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9), transparent);
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

@keyframes floatOut {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(calc(-50% + var(--endX)), calc(-50% + var(--endY))) scale(0);
        opacity: 0;
    }
}



/* ซ่อนเนื้อหาตอนแรก */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: .1s;
}

.fade-in2 {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: .3s;
}

.fade-in3 {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: .5s;
}

.fade-in4 {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: .7s;
}

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


/* เอฟเฟกต์ขยับ */
.glow-move {
    display: inline-block;
    animation:
        floatMove 4s infinite ease-in-out;
}

@keyframes floatMove {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}



.glow-effect2 {
    display: inline-block;
    animation: glowPulse2 2s infinite alternate ease-in-out;
}

/* เอฟเฟกต์แสง */
@keyframes glowPulse2 {
    from {
        filter: drop-shadow(0 0 5px #ffffff59);
        transform: scale(1);
    }

    to {
        filter: drop-shadow(0 0 20px #ffffffee);
        transform: scale(1.2);
    }
}


.glow-effect3 {
    display: inline-block;
    animation: glowPulse3 2s infinite alternate ease-in-out;
}

/* เอฟเฟกต์แสง */
@keyframes glowPulse3 {
    from {
        filter: drop-shadow(0 0 5px #ffffffef);
        transform: scale(1);
    }

    to {
        filter: drop-shadow(0 0 50px #ffffff);
        transform: scale(1.15);
    }
}

.glow-scale {
    display: inline-block;
    animation: scaleUpDown 5s infinite ease-in-out;
}

/* เอฟเฟกต์ขยายใหญ่ขึ้น */
@keyframes scaleUpDown {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

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