/* ===========================
   Custom Animations & 3D Effects
   (All layout handled by Tailwind)
   =========================== */

/* Preloader pulse animation */
.pulse-anim {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.7; }
}

/* Preloader text fade-in */
.preloader-text {
    opacity: 0;
    animation: textFadeIn 1s forwards 0.5s;
}

@keyframes textFadeIn {
    to { opacity: 1; }
}

/* Fade-in-up animations for hero content */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
}

body.loaded .fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.loaded .fade-in-up:nth-child(2) { animation-delay: 0.15s; }
body.loaded .fade-in-up:nth-child(3) { animation-delay: 0.3s; }
body.loaded .fade-in-up:nth-child(4) { animation-delay: 0.45s; }

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

/* 3D Card Hover Effect */
.card-3d {
    perspective: 1000px;
    transform-style: preserve-3d;
    will-change: transform, box-shadow;
}

.card-3d::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: linear-gradient(135deg, rgba(8,145,178,0.04), transparent 60%);
    pointer-events: none;
}

.card-3d:hover::before {
    opacity: 1;
}

/* WhatsApp floating button pulse */
.wa-float {
    animation: waFloat 3s ease-in-out infinite;
}

@keyframes waFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.wa-float:hover {
    animation: none;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Scroll-triggered section animations */
@keyframes slideInFromLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInFromRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}
