/* ===================================
   Cycling Header Animations
   =================================== */

/* Typewriter effect for cycling AI names */
.cycling-header-container {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
    font-size: 2rem;
    font-weight: 700;
}

.static-text {
    color: var(--text-primary);
}

.cycling-text {
    color: transparent;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    position: relative;
    min-width: 200px;
    display: inline-block;
}

.cycling-text::after {
    content: '|';
    color: #667eea;
    animation: blink 0.7s infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Fade in/out animation for text change */
.fade-out {
    animation: fadeOut 0.5s ease-out;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Morphing text animation */
.morph-text {
    animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
    0%, 100% {
        filter: blur(0px);
        opacity: 1;
    }
    50% {
        filter: blur(4px);
        opacity: 0.8;
    }
}

/* Gradient shift animation */
.gradient-shift {
    background: linear-gradient(
        90deg,
        #667eea,
        #764ba2,
        #f093fb,
        #f5576c,
        #667eea
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

/* Carousel animation for AI logos */
.ai-carousel {
    display: flex;
    gap: 1rem;
    overflow: hidden;
    align-items: center;
    padding: 1rem 0;
}

.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ai-badge:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.ai-badge.active {
    background: var(--primary-gradient);
    color: white;
    transform: scale(1.15);
}

/* Arrow animation */
.arrow-icon {
    font-size: 1.5rem;
    color: var(--text-secondary);
    animation: slideRight 1.5s ease-in-out infinite;
}

@keyframes slideRight {
    0%, 100% {
        transform: translateX(0);
        opacity: 0.5;
    }
    50% {
        transform: translateX(10px);
        opacity: 1;
    }
}

/* Pulse animation for emphasis */
.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Slide animation */
.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Bounce animation for conversion button */
.bounce {
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(-5%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

/* Rotate in animation */
.rotate-in {
    animation: rotateIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes rotateIn {
    from {
        transform: rotate(-180deg) scale(0);
        opacity: 0;
    }
    to {
        transform: rotate(0) scale(1);
        opacity: 1;
    }
}

/* Progress bar with animation */
.progress-animated {
    position: relative;
    overflow: hidden;
}

.progress-animated::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: progressSlide 2s ease-in-out infinite;
}

@keyframes progressSlide {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Glow effect */
.glow {
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(102, 126, 234, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.8), 0 0 30px rgba(102, 126, 234, 0.6);
    }
}

/* Float animation */
.float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Shake animation for errors */
.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Ripple effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::after {
    width: 300px;
    height: 300px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cycling-header-container {
        font-size: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
    }
    
    .cycling-text {
        min-width: 150px;
    }
    
    .ai-badge {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .cycling-header-container {
        font-size: 1.25rem;
    }
    
    .ai-carousel {
        gap: 0.5rem;
    }
}
