/* ========================================
   ANIMATIONS - PREMIUM MOTION DESIGN
   ======================================== */

/* ----------------------------------------
   KEYFRAME DEFINITIONS
   ---------------------------------------- */

/* Fade Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Scale Animations */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.85);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Slide Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glow & Pulse Effects */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(245, 158, 11, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(245, 158, 11, 0.6), 0 0 40px rgba(245, 158, 11, 0.3);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6);
    }
}

/* Float Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

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

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

@keyframes shimmer {
    0% {
        background-position: -200% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

/* Reveal Animation */
@keyframes reveal {
    from {
        opacity: 0;
        clip-path: inset(0 100% 0 0);
    }
    to {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
}

/* Border Animation */
@keyframes borderDraw {
    from {
        stroke-dashoffset: 1000;
    }
    to {
        stroke-dashoffset: 0;
    }
}

/* Blob Animation for backgrounds */
@keyframes blobMove {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

/* Rotation */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ----------------------------------------
   HEADER ANIMATIONS
   ---------------------------------------- */
header {
    animation: slideDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.logo h1 {
    animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

/* ----------------------------------------
   HERO SECTION ANIMATIONS
   ---------------------------------------- */

/* Hero Background Animation */
.hero-bg {
    animation: gradientShift 12s ease infinite;
    background-size: 400% 400%;
}

/* ----------------------------------------
   SERVICES SECTIONS ANIMATIONS
   ---------------------------------------- */

/* Button Hover Effects */
.btn-whatsapp {
    position: relative;
    overflow: hidden;
}

.btn-whatsapp:hover {
    animation: pulseGlow 1.5s ease-in-out infinite;
}

/* ----------------------------------------
   LOCATION SECTION ANIMATIONS
   ---------------------------------------- */

/* ----------------------------------------
   FOOTER ANIMATIONS
   ---------------------------------------- */

/* ----------------------------------------
   WHATSAPP FLOAT ANIMATIONS
   ---------------------------------------- */
.whatsapp-float {
    animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

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

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

/* ----------------------------------------
   CTA BUTTON HOVER EFFECTS
   ---------------------------------------- */
.cta-primary:hover,
.cta-secondary:hover,
.cta-tertiary:hover {
    animation: none;
}

.cta-primary::after,
.cta-secondary::after,
.cta-tertiary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.cta-primary:hover::after,
.cta-secondary:hover::after,
.cta-tertiary:hover::after {
    width: 300px;
    height: 300px;
    opacity: 0;
}

/* ----------------------------------------
   SITEMAP ANIMATIONS
   ---------------------------------------- */

/* ----------------------------------------
   UNDERLINE ANIMATION FOR LINKS
   ---------------------------------------- */
.footer-section ul li a {
    position: relative;
}

.footer-section ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold, #f59e0b);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-section ul li a:hover::after {
    width: 100%;
}

/* ----------------------------------------
   LOADING STATE ANIMATION
   ---------------------------------------- */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 1.5s infinite;
}

/* ----------------------------------------
   INTERSECTION OBSERVER FALLBACK
   ---------------------------------------- */
/* For browsers without JS, show content immediately - No longer needed since animations were removed */

/* ----------------------------------------
   ACCESSIBILITY - REDUCED MOTION
   ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    /* Disable background animations */
    .hero-bg,
    .hero-bg::before {
        animation: none !important;
    }

    .whatsapp-float a {
        animation: none !important;
    }
}

/* ----------------------------------------
   FOCUS ANIMATIONS (ACCESSIBILITY)
   ---------------------------------------- */
.cta-primary:focus-visible,
.cta-secondary:focus-visible,
.cta-tertiary:focus-visible,
.btn-whatsapp:focus-visible {
    outline: 3px solid var(--accent-gold, #f59e0b);
    outline-offset: 4px;
    animation: glow 1s ease-in-out infinite;
}

.sitemap-grid a:focus-visible {
    outline: 3px solid var(--accent-gold, #f59e0b);
    outline-offset: 2px;
}

.footer-section ul li a:focus-visible {
    outline: 2px solid var(--accent-gold, #f59e0b);
    outline-offset: 2px;
}
