@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600;700&display=swap');

/* Enhanced Animations & Effects */
body {
    font-family: 'Roboto', sans-serif;
}

/* New Hero Animation Classes */
.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.animation-delay-200 {
    animation-delay: 0.2s;
}

.animation-delay-400 {
    animation-delay: 0.4s;
}

.animation-delay-600 {
    animation-delay: 0.6s;
}

.animation-delay-800 {
    animation-delay: 0.8s;
}

.animation-delay-1000 {
    animation-delay: 1s;
}

.animation-delay-300 {
    animation-delay: 0.3s;
}

.animation-delay-500 {
    animation-delay: 0.5s;
}

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

/* Advanced Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

.animate-slide-up {
    animation: slideUp 1s ease-out forwards;
    opacity: 0;
    transform: translateY(50px);
}

.animate-slide-left {
    animation: slideLeft 1s ease-out forwards;
    opacity: 0;
    transform: translateX(50px);
}

.animate-slide-right {
    animation: slideRight 1s ease-out forwards;
    opacity: 0;
    transform: translateX(-50px);
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out forwards;
    opacity: 0;
    transform: scale(0.8);
}

.animate-bounce-in {
    animation: bounceIn 0.8s ease-out forwards;
    opacity: 0;
    transform: scale(0.3);
}

.animate-rotate-in {
    animation: rotateIn 1s ease-out forwards;
    opacity: 0;
    transform: rotate(-180deg) scale(0.8);
}

/* Staggered animations */
.animate-stagger {
    animation-delay: calc(var(--index) * 0.1s);
}

/* Hover animations */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.2);
}

.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
    border-color: #00ff88;
}

.hover-pulse {
    transition: all 0.3s ease;
}

.hover-pulse:hover {
    animation: pulse 1s infinite;
}

/* Text animations */
.typing-effect {
    overflow: hidden;
    border-right: 2px solid #00ff88;
    white-space: nowrap;
    animation: typing 3s steps(40) 1s forwards, blink 1s infinite;
    width: 0;
}

.gradient-text {
    background: linear-gradient(135deg, #00ff88, #00ccff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Floating animations */
.float {
    animation: float 3s ease-in-out infinite;
}

.float-delayed {
    animation: float 3s ease-in-out infinite;
    animation-delay: 1.5s;
}

/* Particle effect background */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #00ff88;
    border-radius: 50%;
    opacity: 0.7;
    animation: particleFloat 10s linear infinite;
}

/* Loading animations */
.loading-dots {
    display: inline-block;
}

.loading-dots::after {
    content: '';
    animation: dots 2s infinite;
}

/* Cercle qui pulse avec zoom fluide */
.pulse-circle {
    position: absolute !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 16px !important;
    height: 16px !important;
    border-radius: 50% !important;
    background-color: #00ff88 !important;
    animation: smooth-pulse 1s ease-in-out infinite !important;
    z-index: 10 !important;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5) !important;
}

@keyframes smooth-pulse {
    0% { 
        transform: translateX(-50%) scale(1);
        opacity: 1;
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    }
    50% { 
        transform: translateX(-50%) scale(2.2);
        opacity: 0.6;
        box-shadow: 0 0 30px rgba(0, 255, 136, 0.8);
    }
    100% { 
        transform: translateX(-50%) scale(1);
        opacity: 1;
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    }
}

/* Keyframe Animations */
@keyframes fadeIn {
    from { 
        opacity: 0; 
    }
    to { 
        opacity: 1; 
    }
}

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

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-180deg) scale(0.8);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

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

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    0%, 50% {
        border-color: #00ff88;
    }
    51%, 100% {
        border-color: transparent;
    }
}

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

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes dots {
    0%, 20% {
        content: '';
    }
    40% {
        content: '.';
    }
    60% {
        content: '..';
    }
    80%, 100% {
        content: '...';
    }
}



/* Intersection Observer triggered animations */
.fade-in-observer {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

.slide-in-left-observer {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.slide-in-left-observer.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right-observer {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.slide-in-right-observer.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in-observer {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s ease-out;
}

.scale-in-observer.visible {
    opacity: 1;
    transform: scale(1);
}

/* Smooth scrolling behavior */
html {
    scroll-behavior: smooth;
}

/* Performance optimizations */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}