/* 🎨 MODERN ANIMATIONS & MICRO-INTERACTIONS */

/* ⚡ FADE IN ON SCROLL */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero elements should animate immediately on page load */
.hero .fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero .fade-in-up:nth-child(1) {
    animation-delay: 0.1s;
}

.hero .fade-in-up:nth-child(2) {
    animation-delay: 0.2s;
}

.hero .fade-in-up:nth-child(3) {
    animation-delay: 0.3s;
}

.hero .fade-in-up:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 🌊 STAGGER ANIMATION */
.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.stagger-item.visible {
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Hero stagger items animate on page load */
.hero .stagger-item:nth-child(1) { animation-delay: 0.5s; }
.hero .stagger-item:nth-child(2) { animation-delay: 0.6s; }
.hero .stagger-item:nth-child(3) { animation-delay: 0.7s; }

/* Other sections stagger items */
.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }
.stagger-item:nth-child(6) { animation-delay: 0.6s; }

/* 💫 FLOATING ELEMENTS */
.float-element {
    animation: float 6s ease-in-out infinite;
}

.float-element-slow {
    animation: float 8s ease-in-out infinite;
}

/* ✨ GLOW PULSE */
.glow-pulse {
    /* animation: glow 2s ease-in-out infinite; */
    /* Disabled - keeping badges simple without animation */
}

/* 🎯 SCALE ON HOVER */
.scale-hover {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-hover:hover {
    transform: scale(1.05);
}

/* 🌈 GRADIENT TEXT ANIMATION */
@keyframes gradient-text {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.animated-text-gradient {
    color: #6366F1;
    font-weight: var(--fw-extrabold);
    display: inline-block;
    opacity: 1 !important;
    visibility: visible !important;
}

/* 💎 SHINE HOVER EFFECT */
.shine-hover {
    position: relative;
    overflow: hidden;
}

.shine-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.7s;
}

.shine-hover:hover::before {
    left: 150%;
}

/* 🎨 CARD FLIP EFFECT */
.flip-card {
    perspective: 1000px;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover {
    transform: rotateY(180deg);
}

/* 🌟 PARTICLE BACKGROUND */
@keyframes particle-float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.5;
    }
    50% {
        transform: translate(50px, -50px) rotate(180deg);
        opacity: 1;
    }
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: particle-float 10s infinite;
    opacity: 0.3;
}

/* 💫 REVEAL ANIMATION */
@keyframes reveal {
    from {
        clip-path: inset(0 100% 0 0);
    }
    to {
        clip-path: inset(0 0 0 0);
    }
}

.reveal-animation {
    animation: reveal 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* 🔥 TYPING EFFECT */
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

.typing-effect {
    overflow: hidden;
    border-right: 3px solid var(--accent-color);
    white-space: nowrap;
    animation: typing 3s steps(40) 1s forwards, blink 0.75s step-end infinite;
}

/* ⚡ LIGHTNING BORDER */
@keyframes lightning {
    0%, 100% {
        box-shadow: 0 0 5px rgba(139, 92, 246, 0.5),
                    0 0 10px rgba(139, 92, 246, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.8),
                    0 0 40px rgba(139, 92, 246, 0.5),
                    0 0 60px rgba(139, 92, 246, 0.3);
    }
}

.lightning-border {
    animation: lightning 2s ease-in-out infinite;
}

/* 🎯 BOUNCE HOVER */
.bounce-hover {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bounce-hover:hover {
    animation: bounce 0.6s;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    60% {
        transform: translateY(-7px);
    }
}

/* 🌊 WAVE ANIMATION */
@keyframes wave {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(30px);
    }
}

.wave-animation {
    animation: wave 3s ease-in-out infinite;
}

/* 💎 MORPH ANIMATION */
@keyframes morph {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

.morph-shape {
    animation: morph 8s ease-in-out infinite;
}

/* ✨ MAGNETIC HOVER */
.magnetic-hover {
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.magnetic-hover:hover {
    transform: scale(1.1);
}

/* 🎨 BACKGROUND PATTERN ANIMATION */
@keyframes pattern-slide {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 40px 40px;
    }
}

.animated-pattern {
    background-image: 
        linear-gradient(45deg, rgba(139, 92, 246, 0.05) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(139, 92, 246, 0.05) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(139, 92, 246, 0.05) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(139, 92, 246, 0.05) 75%);
    background-size: 40px 40px;
    background-position: 0 0, 0 20px, 20px -20px, -20px 0px;
    animation: pattern-slide 2s linear infinite;
}

/* 🌟 STAR RATING ANIMATION */
@keyframes star-pop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.star-pop {
    animation: star-pop 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 💫 BLOB ANIMATION */
@keyframes blob {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(20px, -20px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    75% {
        transform: translate(-20px, -20px) scale(1.05);
    }
}

.blob-animation {
    animation: blob 10s ease-in-out infinite;
}

/* 🎯 TILT EFFECT */
.tilt-effect {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.tilt-effect:hover {
    transform: perspective(1000px) rotateY(10deg) rotateX(5deg);
}

/* 🌈 RAINBOW BORDER */
@keyframes rainbow-border {
    0% {
        border-color: #8B5CF6;
    }
    25% {
        border-color: #3B82F6;
    }
    50% {
        border-color: #10B981;
    }
    75% {
        border-color: #F59E0B;
    }
    100% {
        border-color: #8B5CF6;
    }
}

.rainbow-border {
    border: 3px solid;
    animation: rainbow-border 4s linear infinite;
}

/* ⚡ PULSE RING */
@keyframes pulse-ring {
    0% {
        transform: scale(0.9);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.pulse-ring {
    position: relative;
}

.pulse-ring::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: inherit;
    border: 3px solid var(--accent-color);
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* 🎨 FADE IN SCALE */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in-scale {
    animation: fadeInScale 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

