/* Additional Animations and Effects */

/* Entrance Animations */
.animate-in {
    animation: slideInUp 1.2s ease-out forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Value Animation */
.animate-value {
    transition: all 0.6s ease;
}

.animate-value:hover {
    transform: scale(1.05);
    text-shadow: 0 0 20px rgba(78, 205, 196, 0.6);
}

/* Button Hover Effects */
.btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.8s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

/* Static Cards - Floating animation removed for better readability */

/* Glow Effects */
.glow {
    box-shadow: 0 0 20px rgba(78, 205, 196, 0.3);
    transition: box-shadow 0.3s ease;
}

.glow:hover {
    box-shadow: 0 0 30px rgba(78, 205, 196, 0.6);
}

/* Text Glow */
.text-glow {
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

/* Pulse Animation for Important Elements */
.pulse {
    animation: pulse 3s infinite;
}

/* Loading Indicator - Static */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid #4ecdc4;
    border-radius: 50%;
    /* Removed spinning animation */
    animation: pulse 2s ease-in-out infinite;
    margin: 0 auto;
}

/* Parallax Effect */
.parallax {
    transform: translateZ(0);
    transition: transform 0.1s ease-out;
}

/* Custom Scrollbar for Webkit */
.custom-scroll::-webkit-scrollbar {
    width: 12px;
}

.custom-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

.custom-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border-radius: 6px;
}

.custom-scroll::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #4ecdc4, #ff6b6b);
}

/* Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::after {
    width: 300px;
    height: 300px;
}

/* Card Flip Animation */
.flip-card {
    perspective: 1000px;
    width: 100%;
    height: 200px;
}

/* Card Animation - Simplified without rotation */
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: opacity 0.6s;
    /* Removed 3D rotation */
}

.flip-card:hover .flip-card-inner {
    /* Removed rotateY transformation */
    opacity: 0.8;
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Removed backface-visibility */
}

.flip-card-back {
    /* Removed rotateY transformation */
    background: var(--gradient-3);
    opacity: 0;
    transition: opacity 0.6s;
}

/* Typewriter Effect */
.typewriter {
    overflow: hidden;
    border-right: 0.15em solid orange;
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: 0.15em;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: orange; }
}

/* Static Gradient Text - Animation removed */
.gradient-text-animation {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Removed gradientShift animation */
}

/* Bouncing Arrow */
.bounce-arrow {
    animation: bounce 3s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Scale on Scroll */
.scale-on-scroll {
    transition: transform 0.3s ease;
}

.scale-on-scroll.in-view {
    transform: scale(1.05);
}

/* Slide Animations */
.slide-left {
    animation: slideLeft 1.5s ease-out;
}

.slide-right {
    animation: slideRight 1.5s ease-out;
}

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Stagger Animation */
.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.stagger-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.stagger-item:nth-child(1) { transition-delay: 0.2s; }
.stagger-item:nth-child(2) { transition-delay: 0.4s; }
.stagger-item:nth-child(3) { transition-delay: 0.6s; }
.stagger-item:nth-child(4) { transition-delay: 0.8s; }

/* Shake Animation */
.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Mobile Specific Animations */
@media (max-width: 768px) {
    .animate-in {
        animation-duration: 0.5s;
    }
    
    .floating {
        animation-duration: 1s;
    }
    
    /* Reduce motion for mobile performance */
    @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
}

/* Dark Mode Enhancements */
@media (prefers-color-scheme: dark) {
    .glow {
        box-shadow: 0 0 20px rgba(78, 205, 196, 0.4);
    }
    
    .text-glow {
        text-shadow: 0 0 15px rgba(255, 107, 107, 0.6);
    }
}