/* =====================================================
   ANIMATED LOGO STYLES - Premium & Modern Effects
   ===================================================== */

/* Base Logo Container */
.logo-animated {
    position: relative;
    display: inline-block;
}

.logo-text {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

/* =====================================================
   ANIMATION 1: Gradient Flow
   Smooth flowing gradient animation
   ===================================================== */
.logo-gradient-flow .logo-text {
    background: linear-gradient(90deg,
            #6366f1 0%,
            #ec4899 25%,
            #8b5cf6 50%,
            #06b6d4 75%,
            #6366f1 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 3s ease infinite;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* =====================================================
   ANIMATION 2: Neon Glow
   Pulsing neon glow effect
   ===================================================== */
.logo-neon-glow .logo-text {
    background: linear-gradient(135deg, #6366f1, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: neonPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 2px rgba(99, 102, 241, 0.5));
}

@keyframes neonPulse {

    0%,
    100% {
        filter: drop-shadow(0 0 5px rgba(99, 102, 241, 0.8)) drop-shadow(0 0 10px rgba(236, 72, 153, 0.6)) drop-shadow(0 0 20px rgba(99, 102, 241, 0.4));
    }

    50% {
        filter: drop-shadow(0 0 10px rgba(99, 102, 241, 1)) drop-shadow(0 0 20px rgba(236, 72, 153, 0.8)) drop-shadow(0 0 40px rgba(99, 102, 241, 0.6));
    }
}

/* =====================================================
   ANIMATION 3: Shimmer Effect
   Metallic shimmer sweep
   ===================================================== */
.logo-shimmer .logo-text {
    background: linear-gradient(120deg,
            #6366f1 0%,
            #ec4899 40%,
            #fff 50%,
            #ec4899 60%,
            #6366f1 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerSweep 2.5s linear infinite;
}

@keyframes shimmerSweep {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* =====================================================
   ANIMATION 4: Wave Text
   Individual letter wave animation
   ===================================================== */
.logo-wave .logo-text {
    background: linear-gradient(135deg, #6366f1, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: waveText 1.5s ease-in-out infinite;
}

@keyframes waveText {

    0%,
    100% {
        transform: translateY(0);
    }

    25% {
        transform: translateY(-3px);
    }

    75% {
        transform: translateY(3px);
    }
}

/* =====================================================
   ANIMATION 5: Typewriter
   Classic typewriter effect
   ===================================================== */
.logo-typewriter .logo-text {
    background: linear-gradient(135deg, #6366f1, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border-right: 3px solid #6366f1;
    animation: typewriterCursor 0.7s step-end infinite;
    overflow: hidden;
    white-space: nowrap;
}

@keyframes typewriterCursor {

    0%,
    100% {
        border-color: transparent;
    }

    50% {
        border-color: #6366f1;
    }
}

/* =====================================================
   ANIMATION 6: 3D Rotate
   Subtle 3D rotation effect
   ===================================================== */
.logo-3d-rotate .logo-text {
    background: linear-gradient(135deg, #6366f1, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rotate3D 4s ease-in-out infinite;
    transform-style: preserve-3d;
    perspective: 1000px;
}

@keyframes rotate3D {

    0%,
    100% {
        transform: rotateY(0deg);
    }

    25% {
        transform: rotateY(5deg);
    }

    75% {
        transform: rotateY(-5deg);
    }
}

/* =====================================================
   ANIMATION 7: Bounce Pop
   Playful bounce effect
   ===================================================== */
.logo-bounce .logo-text {
    background: linear-gradient(135deg, #6366f1, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: bouncePop 2s ease infinite;
}

@keyframes bouncePop {

    0%,
    100% {
        transform: scale(1);
    }

    10% {
        transform: scale(1.05);
    }

    20% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.03);
    }

    40% {
        transform: scale(1);
    }
}

/* =====================================================
   ANIMATION 8: Rainbow Color
   Full rainbow color rotation
   ===================================================== */
.logo-rainbow .logo-text {
    background: linear-gradient(90deg,
            #ef4444 0%,
            #f97316 14%,
            #eab308 28%,
            #22c55e 42%,
            #06b6d4 56%,
            #3b82f6 70%,
            #8b5cf6 84%,
            #ef4444 100%);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbowShift 5s linear infinite;
}

@keyframes rainbowShift {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 300% center;
    }
}

/* =====================================================
   ANIMATION 9: Glitch Effect
   Modern digital glitch
   ===================================================== */
.logo-glitch .logo-text {
    position: relative;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-glitch .logo-text::before,
.logo-glitch .logo-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-glitch .logo-text::before {
    animation: glitchTop 2s infinite linear alternate-reverse;
    clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
}

.logo-glitch .logo-text::after {
    animation: glitchBottom 1.5s infinite linear alternate-reverse;
    clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
}

@keyframes glitchTop {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }

    100% {
        transform: translate(0);
    }
}

@keyframes glitchBottom {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(2px, -2px);
    }

    40% {
        transform: translate(2px, 2px);
    }

    60% {
        transform: translate(-2px, -2px);
    }

    80% {
        transform: translate(-2px, 2px);
    }

    100% {
        transform: translate(0);
    }
}

/* =====================================================
   ANIMATION 10: Pulse Beat
   Heartbeat-like pulse
   ===================================================== */
.logo-pulse .logo-text {
    background: linear-gradient(135deg, #6366f1, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulseBeat 1.5s ease-in-out infinite;
}

@keyframes pulseBeat {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    14% {
        transform: scale(1.08);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.04);
    }

    70% {
        transform: scale(1);
        opacity: 1;
    }
}

/* =====================================================
   ANIMATION 11: Underline Slide
   Animated underline effect
   ===================================================== */
.logo-underline .logo-text {
    background: linear-gradient(135deg, #6366f1, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.logo-underline .logo-text::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #ec4899);
    border-radius: 2px;
    animation: underlineSlide 2s ease-in-out infinite;
}

@keyframes underlineSlide {

    0%,
    100% {
        transform: scaleX(0);
        transform-origin: left;
    }

    50% {
        transform: scaleX(1);
        transform-origin: left;
    }

    51% {
        transform-origin: right;
    }

    100% {
        transform: scaleX(0);
        transform-origin: right;
    }
}

/* =====================================================
   ANIMATION 12: Static Gradient (No Animation)
   Classic gradient without animation
   ===================================================== */
.logo-static .logo-text {
    background: linear-gradient(135deg, #6366f1, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =====================================================
   Logo Icon Styling
   ===================================================== */
.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    border-radius: 10px;
    margin-right: 10px;
    animation: iconFloat 3s ease-in-out infinite;
}

.logo-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-3px) rotate(2deg);
    }
}

/* =====================================================
   Hover Effects for All Animations
   ===================================================== */
.logo a:hover .logo-text {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {

    .logo-text,
    .logo-text::before,
    .logo-text::after,
    .logo-icon {
        animation: none !important;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .logo-text {
        font-size: 22px !important;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
        margin-right: 8px;
    }

    .logo-icon svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 18px !important;
    }
}