/* ========================================
   KEYFRAME ANIMATIONS
   ======================================== */

/* Hero background glow */
@keyframes heroGlow {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(10deg);
    }
}

/* Gradient text shift */
@keyframes gradientShift {
    0% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
    100% {
        background-position: 0% center;
    }
}

/* Pulse for availability dot */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.5);
    }
}

/* Mouse scroll indicator */
@keyframes scrollMouse {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
    }
}

/* Float animation for WhatsApp button */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

.whatsapp-float {
    animation: float 3s ease-in-out infinite;
}

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

/* Subtle card glow on hover */
.skill-category:hover,
.service-card:hover {
    box-shadow: 0 0 40px rgba(249, 115, 22, 0.08),
                0 12px 40px rgba(0, 0, 0, 0.3);
}

/* Stagger animation for skill items */
.skill-item {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.visible .skill-item:nth-child(1) { animation-delay: 0.05s; }
.visible .skill-item:nth-child(2) { animation-delay: 0.1s; }
.visible .skill-item:nth-child(3) { animation-delay: 0.15s; }
.visible .skill-item:nth-child(4) { animation-delay: 0.2s; }
.visible .skill-item:nth-child(5) { animation-delay: 0.25s; }
.visible .skill-item:nth-child(6) { animation-delay: 0.3s; }

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

/* Grid lines background effect (subtle) */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(249, 115, 22, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(249, 115, 22, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    pointer-events: none;
}

/* Focus styles for accessibility */
.btn:focus-visible,
.navbar-menu a:focus-visible,
.contact-channel:focus-visible {
    outline: 2px solid #f97316;
    outline-offset: 2px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal, .reveal-left, .reveal-right {
        opacity: 1;
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }
}
