/* =====================================================
   Tagline Animation Styles
   Visual effects for AI Hackathon Tagline
   ===================================================== */

/* Shimmer effect for English tagline - Cool cyan/silver tech theme */
.tagline-shimmer {
    background: linear-gradient(
        90deg,
        #b8e2ed 0%,
        #e8ebf5 20%,
        #95cad0 40%,
        #b8e2ed 50%,
        #95cad0 60%,
        #e8ebf5 80%,
        #b8e2ed 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
    display: inline-block;
    position: relative;
    text-shadow: 0 0 30px rgba(184, 226, 237, 0.4);
    filter: drop-shadow(0 0 10px rgba(95, 154, 150, 0.5));
}

/* Rose-Orange shimmer effect for Chinese tagline - Warm, energetic, distinct from gold */
.tagline-glow {
    background: linear-gradient(
        90deg,
        #f472b6 0%,
        #fb923c 25%,
        #f472b6 50%,
        #fbbf24 75%,
        #f472b6 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
    display: inline-block;
    position: relative;
    filter: drop-shadow(0 0 15px rgba(244, 114, 182, 0.5)) 
            drop-shadow(0 0 30px rgba(251, 146, 60, 0.3));
}

/* Enhanced glow effect for tagline container */
.tagline-glow-enhanced {
    animation: glowPulseEnhanced 2.5s ease-in-out infinite;
}

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

@keyframes glowPulse {
    0%, 100% {
        filter: drop-shadow(0 0 15px rgba(244, 114, 182, 0.4)) 
                drop-shadow(0 0 30px rgba(251, 146, 60, 0.2));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(244, 114, 182, 0.7)) 
                drop-shadow(0 0 50px rgba(251, 146, 60, 0.4))
                drop-shadow(0 0 70px rgba(251, 191, 36, 0.3));
        transform: scale(1.02);
    }
}

@keyframes glowPulseEnhanced {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(255, 213, 138, 0.5));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(255, 213, 138, 0.8)) 
                drop-shadow(0 0 60px rgba(192, 132, 41, 0.4));
        transform: scale(1.01);
    }
}

/* Floating animation for taglines */
.tagline-float {
    animation: taglineFloat 6s ease-in-out infinite;
}

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

/* Individual letter animation */
.tagline-letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px) rotateX(-90deg);
    animation: letterReveal 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes letterReveal {
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

/* Chinese character animation */
.tagline-char {
    display: inline-block;
    opacity: 0;
    transform: scale(0.3) translateY(-20px) rotateZ(10deg);
    animation: charReveal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes charReveal {
    to {
        opacity: 1;
        transform: scale(1) translateY(0) rotateZ(0deg);
    }
}

/* Particle burst on hover */
.tagline-container {
    position: relative;
}

.tagline-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    transform: translate(-50%, -50%);
    background: radial-gradient(
        ellipse at center,
        rgba(255, 213, 138, 0.1) 0%,
        transparent 50%
    );
    pointer-events: none;
    z-index: -1;
    animation: ambientGlow 8s ease-in-out infinite;
}

@keyframes ambientGlow {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Typing cursor effect */
.typing-cursor {
    display: inline-block;
    width: 4px;
    height: 0.9em;
    background: linear-gradient(to bottom, #ffd58a, #c08429);
    margin-left: 3px;
    vertical-align: text-bottom;
    animation: cursorBlink 1s step-end infinite;
    border-radius: 2px;
}

@keyframes cursorBlink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* Hover effects - disabled */
.tagline-shimmer:hover,
.tagline-glow:hover {
    cursor: default;
}

/* Sparkle effect for words */
.sparkle {
    position: relative;
}

.sparkle::after {
    content: '✦';
    position: absolute;
    top: -10px;
    right: -8px;
    font-size: 0.5em;
    color: #ffd58a;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1) rotate(180deg);
    }
}

/* Word-by-word reveal */
.tagline-word {
    display: inline-block;
    opacity: 0;
    transform: translateX(-30px);
    animation: wordReveal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes wordReveal {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Stagger delays */
.stagger-delay-1 { animation-delay: 0.1s; }
.stagger-delay-2 { animation-delay: 0.2s; }
.stagger-delay-3 { animation-delay: 0.3s; }
.stagger-delay-4 { animation-delay: 0.4s; }
.stagger-delay-5 { animation-delay: 0.5s; }
.stagger-delay-6 { animation-delay: 0.6s; }
.stagger-delay-7 { animation-delay: 0.7s; }
.stagger-delay-8 { animation-delay: 0.8s; }
.stagger-delay-9 { animation-delay: 0.9s; }
.stagger-delay-10 { animation-delay: 1s; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .tagline-shimmer {
        animation-duration: 3s;
    }
    
    .tagline-glow {
        animation-duration: 2.5s;
    }
    
    .tagline-float {
        animation-duration: 5s;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .tagline-shimmer,
    .tagline-glow,
    .tagline-float,
    .tagline-letter,
    .tagline-char,
    .tagline-word {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}