/**
 * Lovable Elementor Animations
 * Custom animations and effects from Lovable.dev
 */

/* ========================================
   ENTRANCE ANIMATIONS
   ======================================== */

/* Fade In Up */
@keyframes lovable-fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.elementor-invisible.lovable-fade-in-up {
    animation-name: lovable-fade-in-up;
    animation-timing-function: ease-out;
}

/* Fade In */
@keyframes lovable-fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.elementor-invisible.lovable-fade-in {
    animation-name: lovable-fade-in;
    animation-timing-function: ease-out;
}

/* Scale In */
@keyframes lovable-scale-in {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.elementor-invisible.lovable-scale-in {
    animation-name: lovable-scale-in;
    animation-timing-function: ease-out;
}

/* Slide Up Bold */
@keyframes lovable-slide-up-bold {
    0% {
        opacity: 0;
        transform: translateY(60px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.elementor-invisible.lovable-slide-up-bold {
    animation-name: lovable-slide-up-bold;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Slide In Left */
@keyframes lovable-slide-in-left {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.elementor-invisible.lovable-slide-in-left {
    animation-name: lovable-slide-in-left;
    animation-timing-function: ease-out;
}

/* Slide In Right */
@keyframes lovable-slide-in-right {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.elementor-invisible.lovable-slide-in-right {
    animation-name: lovable-slide-in-right;
    animation-timing-function: ease-out;
}

/* ========================================
   ANIMATION DELAYS
   ======================================== */

.lovable-delay-100 { animation-delay: 100ms !important; }
.lovable-delay-200 { animation-delay: 200ms !important; }
.lovable-delay-300 { animation-delay: 300ms !important; }
.lovable-delay-400 { animation-delay: 400ms !important; }
.lovable-delay-500 { animation-delay: 500ms !important; }
.lovable-delay-600 { animation-delay: 600ms !important; }
.lovable-delay-700 { animation-delay: 700ms !important; }
.lovable-delay-800 { animation-delay: 800ms !important; }
.lovable-delay-900 { animation-delay: 900ms !important; }
.lovable-delay-1000 { animation-delay: 1000ms !important; }

/* ========================================
   ANIMATION DURATIONS
   ======================================== */

.lovable-duration-300 { animation-duration: 300ms !important; }
.lovable-duration-400 { animation-duration: 400ms !important; }
.lovable-duration-500 { animation-duration: 500ms !important; }
.lovable-duration-600 { animation-duration: 600ms !important; }
.lovable-duration-700 { animation-duration: 700ms !important; }
.lovable-duration-800 { animation-duration: 800ms !important; }
.lovable-duration-1000 { animation-duration: 1000ms !important; }

/* ========================================
   HOVER EFFECTS
   ======================================== */

/* Brutal Shadow Effect */
.lovable-hover-brutal {
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.lovable-hover-brutal:hover {
    transform: translate(-4px, -4px);
    box-shadow: 4px 4px 0px #339933;
}

/* Brutal Shadow Large */
.lovable-hover-brutal-lg {
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.lovable-hover-brutal-lg:hover {
    transform: translate(-8px, -8px);
    box-shadow: 8px 8px 0px #339933;
}

/* Rotate Effect */
.lovable-hover-rotate {
    transition: all 0.3s ease;
}

.lovable-hover-rotate:hover {
    transform: rotate(-45deg);
}

/* Slide Right */
.lovable-hover-slide-right {
    transition: transform 0.3s ease;
}

.lovable-hover-slide-right:hover {
    transform: translateX(16px);
}

/* Scale Up */
.lovable-hover-scale {
    transition: transform 0.4s ease;
}

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

/* Border Grow */
.lovable-hover-border-grow {
    position: relative;
    overflow: hidden;
}

.lovable-hover-border-grow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background-color: #339933;
    transition: width 0.5s ease;
}

.lovable-hover-border-grow:hover::after {
    width: 100%;
}

/* ========================================
   TEXT STROKE EFFECTS
   ======================================== */

.lovable-stroke-white {
    -webkit-text-stroke: 2px #fff;
    color: transparent !important;
    paint-order: stroke fill;
}

.lovable-stroke-green {
    -webkit-text-stroke: 2px #339933;
    color: transparent !important;
    paint-order: stroke fill;
}

/* ========================================
   MARQUEE ANIMATION
   ======================================== */

@keyframes lovable-marquee {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes lovable-marquee-reverse {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0%);
    }
}

.lovable-marquee-container {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.lovable-marquee-content {
    display: flex;
    gap: 3rem;
    animation: lovable-marquee 20s linear infinite;
    will-change: transform;
}

.lovable-marquee-content.reverse {
    animation: lovable-marquee-reverse 25s linear infinite;
}

.lovable-marquee-item {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.lovable-marquee-text {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lovable-marquee-separator {
    width: 16px;
    height: 16px;
    background-color: #339933;
    flex-shrink: 0;
}

/* Pause on hover (optional) */
.lovable-marquee-container:hover .lovable-marquee-content {
    animation-play-state: paused;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

/* Brutalist borders */
.lovable-brutal-border {
    border: 2px solid currentColor;
}

.lovable-brutal-shadow {
    box-shadow: 4px 4px 0px #339933;
}

.lovable-brutal-shadow-lg {
    box-shadow: 8px 8px 0px #339933;
}

/* Background patterns */
.lovable-pattern-lines {
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 50px,
        rgba(255,255,255,0.05) 50px,
        rgba(255,255,255,0.05) 51px
    );
}

/* Performance optimization */
.lovable-hover-brutal,
.lovable-hover-brutal-lg,
.lovable-hover-rotate,
.lovable-hover-scale,
.lovable-hover-slide-right {
    will-change: transform;
}

/* Mobile optimization - reduce animations */
@media (max-width: 768px) {
    .lovable-hover-brutal:hover,
    .lovable-hover-brutal-lg:hover {
        transform: translate(-2px, -2px);
        box-shadow: 2px 2px 0px #339933;
    }

    /* Simplify or disable some effects on mobile */
    .lovable-hover-rotate:hover {
        transform: rotate(-22.5deg);
    }
}

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