/* ============================================
   ANIMATIONS.CSS - Advanced Effects & Transitions
   Digital George 2026
   ============================================ */

/* ============================================
   SMOOTH REVEAL ANIMATIONS
   ============================================ */

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

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

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

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

/* ============================================
   LOADING STATES
   ============================================ */

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading-shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 25%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.05) 75%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* ============================================
   HOVER EFFECTS
   ============================================ */

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

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.5);
}

.hover-scale {
    transition: transform 0.3s ease;
}

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

/* ============================================
   PULSE ANIMATIONS
   ============================================ */

@keyframes pulse-slow {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(0.95);
    }
}

@keyframes pulse-fast {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

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

.pulse-fast {
    animation: pulse-fast 1.5s ease-in-out infinite;
}

/* ============================================
   FLOAT ANIMATIONS
   ============================================ */

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

@keyframes float-rotate {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

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

.float-rotate {
    animation: float-rotate 4s ease-in-out infinite;
}

/* ============================================
   GLOW EFFECTS
   ============================================ */

@keyframes glow-cyan {
    0%, 100% {
        box-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 245, 255, 0.8);
    }
}

@keyframes glow-purple {
    0%, 100% {
        box-shadow: 0 0 10px rgba(112, 0, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(112, 0, 255, 0.8);
    }
}

.glow-cyan {
    animation: glow-cyan 2s ease-in-out infinite;
}

.glow-purple {
    animation: glow-purple 2s ease-in-out infinite;
}

/* ============================================
   TEXT EFFECTS
   ============================================ */

@keyframes text-shimmer {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

.text-shimmer {
    background: linear-gradient(
        90deg,
        var(--cyan) 0%,
        var(--purple) 50%,
        var(--cyan) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: text-shimmer 3s linear infinite;
}

@keyframes text-glow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(0, 245, 255, 1);
    }
}

.text-glow {
    animation: text-glow 2s ease-in-out infinite;
}

/* ============================================
   PARTICLE EFFECTS
   ============================================ */

@keyframes particle-float {
    0%, 100% {
        opacity: 0;
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    10%, 90% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
        transform: translateY(-30px) translateX(10px) rotate(180deg);
    }
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--cyan);
    border-radius: 50%;
    opacity: 0;
    animation: particle-float 4s ease-in-out infinite;
}

/* ============================================
   LOADING SPINNER
   ============================================ */

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--cyan);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
}

/* ============================================
   RIPPLE EFFECT
   ============================================ */

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.ripple-container {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 245, 255, 0.5);
    width: 20px;
    height: 20px;
    animation: ripple 0.6s ease-out;
}

/* ============================================
   SCROLL REVEAL UTILITIES
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* ============================================
   GRADIENT ANIMATIONS
   ============================================ */

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-animated {
    background: linear-gradient(
        -45deg,
        var(--cyan),
        var(--purple),
        var(--pink),
        var(--cyan)
    );
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
}

/* ============================================
   BORDER ANIMATIONS
   ============================================ */

@keyframes border-pulse {
    0%, 100% {
        border-color: rgba(0, 245, 255, 0.3);
    }
    50% {
        border-color: rgba(0, 245, 255, 0.8);
    }
}

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

/* ============================================
   SHADOW EFFECTS
   ============================================ */

.shadow-cyan {
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.3);
}

.shadow-purple {
    box-shadow: 0 10px 30px rgba(112, 0, 255, 0.3);
}

.shadow-pink {
    box-shadow: 0 10px 30px rgba(255, 0, 110, 0.3);
}

.shadow-hover {
    transition: box-shadow 0.3s ease;
}

.shadow-hover:hover {
    box-shadow: 0 20px 60px rgba(0, 245, 255, 0.5);
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */

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

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

.hardware-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* ============================================
   SMOOTH TRANSITIONS
   ============================================ */

.transition-fast {
    transition: all 0.15s ease;
}

.transition-normal {
    transition: all 0.3s ease;
}

.transition-slow {
    transition: all 0.6s ease;
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}