/* ==========================================
   LIMONAIA VIDA - LIFE & ENERGY ANIMATIONS
   Adding movement, interactivity and surprise
   ========================================== */

/* === ANIMATED BACKGROUND PARTICLES === */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(164, 210, 51, 0.6), transparent);
    animation: float-particle 15s infinite ease-in-out;
}

.particle:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 60%;
    left: 80%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.5), transparent);
    animation-delay: 2s;
}

.particle:nth-child(3) {
    width: 100px;
    height: 100px;
    top: 40%;
    left: 70%;
    background: radial-gradient(circle, rgba(155, 89, 182, 0.4), transparent);
    animation-delay: 4s;
}

.particle:nth-child(4) {
    width: 70px;
    height: 70px;
    top: 80%;
    left: 20%;
    background: radial-gradient(circle, rgba(243, 156, 18, 0.5), transparent);
    animation-delay: 6s;
}

.particle:nth-child(5) {
    width: 90px;
    height: 90px;
    top: 15%;
    right: 15%;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.4), transparent);
    animation-delay: 8s;
}

@keyframes float-particle {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translate(30px, -50px) rotate(90deg);
        opacity: 0.7;
    }
    50% {
        transform: translate(-20px, -100px) rotate(180deg);
        opacity: 0.4;
    }
    75% {
        transform: translate(50px, -70px) rotate(270deg);
        opacity: 0.6;
    }
}

/* === FLOATING ICONS ANIMATION === */
.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    font-size: 30px;
    color: rgba(164, 210, 51, 0.2);
    animation: float-icon 20s infinite linear;
}

.floating-icon:nth-child(1) {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.floating-icon:nth-child(2) {
    top: 30%;
    left: 90%;
    animation-delay: 3s;
    color: rgba(0, 212, 255, 0.2);
}

.floating-icon:nth-child(3) {
    top: 70%;
    left: 15%;
    animation-delay: 6s;
    color: rgba(155, 89, 182, 0.2);
}

.floating-icon:nth-child(4) {
    top: 50%;
    left: 85%;
    animation-delay: 9s;
    color: rgba(243, 156, 18, 0.2);
}

@keyframes float-icon {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-1000px) rotate(360deg);
        opacity: 0;
    }
}

/* === GLOWING CURSOR TRAIL === */
.cursor-glow {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(164, 210, 51, 0.6), transparent);
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease-out;
    mix-blend-mode: screen;
}

/* === SERVICE CARD PULSE ON HOVER === */
.services-grid-six .service-card {
    position: relative;
}

.services-grid-six .service-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        var(--color-primary), 
        var(--color-secondary),
        #00D4FF,
        #9B59B6,
        #F39C12,
        var(--color-primary)
    );
    border-radius: var(--radius-lg);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s ease;
    background-size: 300% 300%;
    animation: gradient-rotate 3s ease infinite;
}

.services-grid-six .service-card:hover::before {
    opacity: 1;
}

@keyframes gradient-rotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* === SERVICES GRID EIGHT - Gradient Animated Border Effect === */
.services-grid-eight .service-card {
    position: relative;
}

.services-grid-eight .service-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        #A4D233,  /* Verde Limonaia */
        #00D4FF,  /* Azul cielo */
        #9B59B6,  /* Púrpura */
        #F39C12,  /* Naranja */
        #FF6B6B,  /* Rojo coral */
        #1ABC9C,  /* Turquesa */
        #E74C3C,  /* Rojo */
        #3498DB,  /* Azul */
        #A4D233   /* Verde otra vez (loop) */
    );
    border-radius: var(--radius-lg);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s ease;
    background-size: 400% 400%;
    animation: gradient-rotate 4s ease infinite;
}

.services-grid-eight .service-card:hover::before {
    opacity: 1;
}

/* === MAGNETIC BUTTON EFFECT === */
.btn-magnetic {
    position: relative;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-magnetic::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: inherit;
    background: radial-gradient(circle at center, rgba(164, 210, 51, 0.2), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.btn-magnetic:hover::after {
    opacity: 1;
}

/* === SCROLL REVEAL ANIMATIONS === */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* === ENERGETIC NUMBER COUNTER === */
.number-card {
    position: relative;
    overflow: visible;
}

.number-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(164, 210, 51, 0.3), transparent);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.6s ease;
}

.number-card:hover::after {
    width: 200px;
    height: 200px;
    opacity: 1;
}

/* === PULSING SCROLL INDICATOR === */
.scroll-indicator-new {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(164, 210, 51, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(164, 210, 51, 0.8));
    }
}

/* === TESTIMONIAL CARD TILT === */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
}

.testimonial-card:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(2deg);
}

/* === FLOATING BADGE SURPRISE === */
.floating-badge {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(164, 210, 51, 0.4);
    cursor: pointer;
    z-index: 1000;
    animation: float-badge 3s ease-in-out infinite;
    transition: all 0.4s ease;
}

.floating-badge:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 15px 60px rgba(164, 210, 51, 0.6);
}

.floating-badge i {
    font-size: 40px;
    color: var(--color-dark);
    margin-bottom: 5px;
}

.floating-badge span {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-dark);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@keyframes float-badge {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* === HERO TEXT ANIMATION === */
.title-line {
    opacity: 0;
    animation: slide-in-up 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.title-line:nth-child(1) {
    animation-delay: 0.2s;
}

.title-line:nth-child(2) {
    animation-delay: 0.5s;
}

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

/* === SECTION DIVIDER WITH ANIMATION === */
.section-divider {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--color-primary), 
        var(--color-secondary),
        transparent
    );
    margin: 80px 0;
    position: relative;
    overflow: hidden;
}

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

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* === INTERACTIVE SERVICE ICONS === */
.service-icon {
    position: relative;
    overflow: hidden;
}

.service-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.service-card:hover .service-icon::after {
    width: 150%;
    height: 150%;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .floating-badge {
        width: 100px;
        height: 100px;
        bottom: 20px;
        right: 20px;
    }
    
    .floating-badge i {
        font-size: 30px;
    }
    
    .floating-badge span {
        font-size: 9px;
    }
    
    .particle {
        opacity: 0.3 !important;
    }
    
    .cursor-glow {
        display: none;
    }
}
