@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

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

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

.medical-icon {
    animation: float 6s ease-in-out infinite;
}

.medical-icon:nth-child(2) {
    animation-delay: 2s;
}

.data-point-svg {
    animation: pulse 8s ease-in-out infinite;
}

/* Typing indicator animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Floating Phrases Animation */
@keyframes fadeInOut {
    0% { opacity: 0; transform: translateX(15px) rotate(var(--rotation)) scale(0.95); }
    15% { opacity: 0.4; transform: translateX(5px) rotate(var(--rotation)) scale(0.98); }
    30% { opacity: 0.7; transform: translateX(0) rotate(var(--rotation)) scale(1); }
    70% { opacity: 0.7; transform: translateX(0) rotate(var(--rotation)) scale(1); }
    85% { opacity: 0.4; transform: translateX(-5px) rotate(var(--rotation)) scale(0.98); }
    100% { opacity: 0; transform: translateX(-15px) rotate(var(--rotation)) scale(0.95); }
}

.floating-phrase {
    position: fixed;
    top: 50%;
    right: 30px;
    transform-origin: right center;
    transform: translateY(-50%) rotate(var(--rotation));
    font-size: 24px;
    font-weight: 600;
    padding: 12px 25px;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
    text-align: right;
    border-radius: 8px;
    animation: fadeInOut 3s ease-in-out;
    animation-fill-mode: forwards;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

/* Enhanced Animation Effects */

/* Enhanced Hero glow animation - 20% more noticeable */
@keyframes enhancedHeroGlow {
    0% {
        opacity: 0.6;
        background-position: 0% 50%;
        box-shadow: 0 0 24px rgba(30, 117, 255, 0.24);
    }
    50% {
        opacity: 1;
        background-position: 100% 50%;
        box-shadow: 0 0 48px rgba(34, 197, 94, 0.36);
    }
    100% {
        opacity: 0.6;
        background-position: 0% 50%;
        box-shadow: 0 0 24px rgba(30, 117, 255, 0.24);
    }
}

/* Apply enhanced hero animation to all hero sections */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(30, 117, 255, 0.18), rgba(34, 197, 94, 0.18));
    z-index: 0;
    animation: enhancedHeroGlow 8s ease-in-out infinite alternate;
    pointer-events: none;
}

/* Enhance button hover effects */
.btn, .cta-button {
    position: relative;
    overflow: hidden;
}

.btn::after, .cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn:hover::after, .cta-button:hover::after {
    left: 100%;
} 