/* ========================================
   OLO ACAI - ANIMATIONS
   Modern, Smooth Animations & Transitions
   ======================================== */

/* ========================================
   PAGE LOAD ANIMATIONS
   ======================================== */

/* Fade in from bottom */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scale in */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Slide in from left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide in from right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Utility classes for page load */
.animate-fadeInUp {
    animation: fadeInUp 0.8s var(--ease-out) forwards;
}

.animate-scaleIn {
    animation: scaleIn 0.6s var(--ease-out) forwards;
}

.animate-slideInLeft {
    animation: slideInLeft 0.8s var(--ease-out) forwards;
}

.animate-slideInRight {
    animation: slideInRight 0.8s var(--ease-out) forwards;
}

/* Stagger delays */
.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

.delay-400 {
    animation-delay: 400ms;
}

.delay-500 {
    animation-delay: 500ms;
}

/* ========================================
   SCROLL REVEAL ANIMATIONS
   ======================================== */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-out);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.6s var(--ease-out);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s var(--ease-out);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s var(--ease-out);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* ========================================
   FLOATING & MOVEMENT ANIMATIONS
   ======================================== */

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes floatSlow {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-float-slow {
    animation: floatSlow 6s ease-in-out infinite;
}

.animate-rotate {
    animation: rotate 20s linear infinite;
}

/* ========================================
   PARALLAX EFFECTS
   ======================================== */

.parallax {
    transition: transform 0.3s ease-out;
}

/* Applied via JavaScript */
.parallax-slow {
    will-change: transform;
}

/* ========================================
   GLOW & PULSE EFFECTS
   ======================================== */

@keyframes glowPulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(139, 92, 246, 0.6);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.9;
        transform: scale(1.05);
    }
}

.animate-glow-pulse {
    animation: glowPulse 3s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ========================================
   SHIMMER & SHINE EFFECTS
   ======================================== */

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.4) 50%,
            transparent 100%);
    background-size: 1000px 100%;
    animation: shimmer 3s infinite;
}

/* ========================================
   COUNTER ANIMATIONS
   ======================================== */

@keyframes countUp {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.counter {
    animation: countUp 0.5s ease-out;
}

/* ========================================
   BUTTON & INTERACTION EFFECTS
   ======================================== */

/* Ripple effect */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.ripple-effect {
    position: relative;
    overflow: hidden;
}

.ripple-effect::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%);
    animation: ripple 0.6s ease-out;
}

/* Shake animation */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-10px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(10px);
    }
}

.animate-shake {
    animation: shake 0.5s ease-in-out;
}

/* ========================================
   LOADING ANIMATIONS
   ======================================== */

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Skeleton loading */
@keyframes skeleton {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.skeleton {
    background: linear-gradient(90deg,
            var(--color-gray-200) 25%,
            var(--color-gray-100) 50%,
            var(--color-gray-200) 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s ease-in-out infinite;
}

/* ========================================
   HOVER ANIMATIONS
   ======================================== */

.hover-lift {
    transition: transform var(--transition-base) var(--ease-out);
}

.hover-lift:hover {
    transform: translateY(-4px);
}

.hover-scale {
    transition: transform var(--transition-base) var(--ease-out);
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-glow {
    transition: box-shadow var(--transition-base) var(--ease-out);
}

.hover-glow:hover {
    box-shadow: var(--shadow-glow);
}

/* ========================================
   GRADIENT TEXT ANIMATIONS
   ======================================== */

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.gradient-animate {
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

/* ========================================
   SCROLL INDICATOR
   ======================================== */

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(10px);
        opacity: 0.5;
    }
}

.scroll-indicator {
    animation: scrollBounce 2s ease-in-out infinite;
}

/* ========================================
   IMAGE EFFECTS
   ======================================== */

/* Ken Burns effect */
@keyframes kenBurns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.ken-burns {
    animation: kenBurns 20s ease-in-out infinite alternate;
}

/* Blur to sharp */
.blur-up {
    filter: blur(20px);
    transition: filter 0.5s ease-out;
}

.blur-up.loaded {
    filter: blur(0);
}

/* ========================================
   MODAL & OVERLAY ANIMATIONS
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-backdrop {
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    animation: slideDown 0.3s ease-out;
}

/* ========================================
   PERFORMANCE OPTIMIZATIONS
   ======================================== */

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Hardware acceleration */
.gpu-accelerate {
    transform: translateZ(0);
    will-change: transform;
}

/* ========================================
   ANIMATED ABOUT IMAGE SECTION (from legacy style.css)
   ======================================== */

/* Container for the animated about image */
.about-image-container {
    overflow: hidden;
    border-radius: 1.5rem;
    position: relative;
}

/* Main animated image with multiple effects */
.animated-about-img {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    position: relative;
    z-index: 1;
}

/* Hover zoom and slight rotation */
.about-image-container:hover .animated-about-img {
    transform: scale(1.05) rotate(1deg);
}

/* Glow pulse animation (Specific for image) */
@keyframes imageGlowPulse {

    0%,
    100% {
        box-shadow:
            0 20px 25px -5px rgba(108, 43, 217, 0.1),
            0 10px 10px -5px rgba(108, 43, 217, 0.04),
            0 0 40px rgba(108, 43, 217, 0.2);
    }

    50% {
        box-shadow:
            0 25px 50px -12px rgba(108, 43, 217, 0.25),
            0 15px 20px -5px rgba(108, 43, 217, 0.1),
            0 0 60px rgba(108, 43, 217, 0.4);
    }
}

.image-glow-pulse {
    animation: imageGlowPulse 4s ease-in-out infinite;
}

/* Shimmer effect overlay for about image */
.about-image-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(255, 255, 255, 0.3) 50%,
            transparent 70%);
    transform: rotate(45deg);
    animation: shimmerRotate 6s infinite;
    z-index: 2;
    pointer-events: none;
}

@keyframes shimmerRotate {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Floating particles around image */
.about-image-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle,
            rgba(108, 43, 217, 0.1) 0%,
            transparent 70%);
    transform: translate(-50%, -50%);
    animation: floatParticles 8s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes floatParticles {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

/* Subtle parallax effect on scroll */
@keyframes parallaxFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Enhanced border glow on hover */
.about-image-container:hover::before {
    animation: shimmerRotate 3s infinite;
}

/* Fade-in animation when image enters viewport */
.reveal .about-image-container {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards, parallaxFloat 10s ease-in-out 1s infinite;
}