/* Image & Element Animations - PT Inti Nusantara Teknologi */

/* Fade-in animation for all content images (not logo) */
@keyframes imgFadeIn {
    from {
        opacity: 0;
        transform: scale(1.05);
        filter: blur(4px);
    }

    to {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

/* Target all images except logo */
img[src*="hero-bg"],
img[src*="server-rack"],
img[src*="server-room"],
img[src*="jakarta-map"],
img[src*="global-map"],
img[src*="unsplash-tech"],
img[src*="world-infrastructure"] {
    animation: imgFadeIn 1.2s ease-out forwards;
}

/* Staggered card entrance */
@keyframes cardSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.glass-panel.card-animate {
    animation: cardSlideUp 0.6s ease-out forwards;
    opacity: 0;
}

.glass-panel.card-animate:nth-child(1) {
    animation-delay: 0.1s;
}

.glass-panel.card-animate:nth-child(2) {
    animation-delay: 0.2s;
}

.glass-panel.card-animate:nth-child(3) {
    animation-delay: 0.3s;
}

.glass-panel.card-animate:nth-child(4) {
    animation-delay: 0.4s;
}

.glass-panel.card-animate:nth-child(5) {
    animation-delay: 0.5s;
}

.glass-panel.card-animate:nth-child(6) {
    animation-delay: 0.6s;
}

/* Hero text entrance */
@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.hero-animate {
    animation: heroFadeIn 0.8s ease-out forwards;
    opacity: 0;
}

.hero-animate:nth-child(1) {
    animation-delay: 0.2s;
}

.hero-animate:nth-child(2) {
    animation-delay: 0.4s;
}

.hero-animate:nth-child(3) {
    animation-delay: 0.6s;
}

.hero-animate:nth-child(4) {
    animation-delay: 0.8s;
}

/* Glow pulse for accent elements */
@keyframes glowPulse {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(0, 112, 255, 0.3);
    }

    50% {
        box-shadow: 0 0 25px rgba(0, 112, 255, 0.6);
    }
}

.glow-pulse {
    animation: glowPulse 3s ease-in-out infinite;
}

/* Image hover zoom */
.img-hover-zoom {
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.img-hover-zoom:hover {
    transform: scale(1.05);
}

/* Background image containers fade-in */
@keyframes bgFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

[class*="bg-[url"] {
    animation: bgFadeIn 1s ease-out forwards;
}

/* Gradient text shimmer animation */
@keyframes textShimmer {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

.text-shimmer {
    background-size: 200% auto;
    animation: textShimmer 4s linear infinite;
}

/* Glow effect behind shimmer text */
@keyframes textGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 6px rgba(0, 112, 255, 0.3));
    }

    50% {
        filter: drop-shadow(0 0 18px rgba(0, 112, 255, 0.6));
    }
}

.text-shimmer-glow {
    animation: textGlow 3s ease-in-out infinite;
}