/*==============================================
================================================

[Custom Animations CSS]
Project:    QUANTAMCRYPTO Animation Enhancement
Version:    1.0
Create:     Animation Enhancement Strategy
Developer:  AI Assistant

================================================
================================================*/

/* CSS Custom Properties */
:root {
  --animation-duration-fast: 0.3s;
  --animation-duration-normal: 0.6s;
  --animation-duration-slow: 1.2s;
  --animation-easing-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --animation-easing-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --animation-easing-elastic: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Enhanced Hover Effects */
.service-block:hover {
  transform: translateY(-10px);
  transition: transform var(--animation-duration-fast) var(--animation-easing-smooth);
}

.team-block:hover {
  transform: perspective(1000px) rotateY(5deg);
  transition: transform var(--animation-duration-fast) var(--animation-easing-smooth);
}

.portfolio-item:hover,
.default-portfolio-item:hover {
  transform: scale(1.05);
  transition: transform var(--animation-duration-fast) var(--animation-easing-smooth);
}

/* Button Animations */
.theme-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  transition: all var(--animation-duration-fast) var(--animation-easing-smooth);
}

.theme-btn:active {
  transform: translateY(0);
  transition: transform 0.1s ease;
}

/* Card Lift Effects */
.card-lift {
  transition: transform var(--animation-duration-fast) var(--animation-easing-smooth);
}

.card-lift:hover {
  transform: translateY(-8px);
}

/* Image Zoom Effects */
.img-zoom {
  overflow: hidden;
  transition: transform var(--animation-duration-normal) var(--animation-easing-smooth);
}

.img-zoom img {
  transition: transform var(--animation-duration-normal) var(--animation-easing-smooth);
}

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

/* Text Reveal Animations */
.text-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--animation-duration-normal) var(--animation-easing-smooth);
}

.text-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Counter Animations */
.counter-animate {
  transition: all var(--animation-duration-normal) var(--animation-easing-smooth);
}

/* Loading Animations */
.loading-shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

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

/* Pulse Animation */
.pulse {
  animation: pulse 2s infinite;
}

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

/* Enhanced Service Block Animations */
.service-block {
  transition: all var(--animation-duration-normal) var(--animation-easing-smooth);
}

.service-block:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* Enhanced Team Block Animations */
.team-block {
  transition: all var(--animation-duration-normal) var(--animation-easing-smooth);
}

.team-block:hover {
  transform: perspective(1000px) rotateY(5deg) translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* Enhanced Portfolio Animations */
.default-portfolio-item {
  transition: all var(--animation-duration-normal) var(--animation-easing-smooth);
}

.default-portfolio-item:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* Enhanced Form Animations */
.form-group input:focus,
.form-group textarea:focus {
  transform: scale(1.02);
  transition: transform var(--animation-duration-fast) var(--animation-easing-smooth);
}

.form-group.focused {
  transform: translateY(-2px);
  transition: transform var(--animation-duration-fast) var(--animation-easing-smooth);
}

/* Enhanced Navigation Animations */
.main-header.scrolled {
  transform: translateY(-5px);
  transition: transform var(--animation-duration-fast) var(--animation-easing-smooth);
}

/* Enhanced Social Links */
.social-links li a {
  transition: all var(--animation-duration-fast) var(--animation-easing-smooth);
}

.social-links li a:hover {
  transform: translateY(-3px) scale(1.1);
}

/* Enhanced Overlay Effects */
.overlay-box {
  transition: all var(--animation-duration-normal) var(--animation-easing-smooth);
}

.image-box:hover .overlay-box {
  opacity: 1;
  transform: scale(1);
}

/* Enhanced Separator Animations */
.separater {
  transition: width var(--animation-duration-normal) var(--animation-easing-smooth);
}

.sec-title:hover .separater {
  width: 100%;
}

/* Enhanced Link Animations */
.link-btn {
  transition: all var(--animation-duration-fast) var(--animation-easing-smooth);
}

.link-btn:hover {
  transform: translateX(5px);
}

/* Enhanced Filter Animations */
.filter {
  transition: all var(--animation-duration-fast) var(--animation-easing-smooth);
}

.filter:hover {
  transform: translateY(-2px);
}

.filter.active {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Performance Optimizations */
.animate-element {
  will-change: transform, opacity;
  backface-visibility: hidden;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .animate-element,
  .service-block,
  .team-block,
  .default-portfolio-item,
  .theme-btn,
  .card-lift,
  .img-zoom,
  .text-reveal,
  .counter-animate,
  .loading-shimmer,
  .pulse {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .service-block:hover,
  .team-block:hover,
  .default-portfolio-item:hover {
    transform: none;
  }
  
  .theme-btn:hover {
    transform: none;
  }
  
  .img-zoom:hover img {
    transform: none;
  }
}

/* Low Performance Mode */
.low-performance .animate-element,
.low-performance .service-block,
.low-performance .team-block,
.low-performance .default-portfolio-item {
  animation: none !important;
  transition: none !important;
}

/* Enhanced WOW.js Integration */
.wow {
  visibility: hidden;
}

.wow.animated {
  visibility: visible;
}

/* Staggered Animation Delays */
.stagger-animate:nth-child(1) { animation-delay: 0.1s; }
.stagger-animate:nth-child(2) { animation-delay: 0.2s; }
.stagger-animate:nth-child(3) { animation-delay: 0.3s; }
.stagger-animate:nth-child(4) { animation-delay: 0.4s; }
.stagger-animate:nth-child(5) { animation-delay: 0.5s; }
.stagger-animate:nth-child(6) { animation-delay: 0.6s; }

/* Enhanced Button States */
.btn-hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-clicked {
  transform: translateY(0) scale(0.98);
  transition: transform 0.1s ease;
}

/* Enhanced Input States */
.input-focused {
  transform: scale(1.02);
  box-shadow: 0 0 0 3px rgba(0,123,255,0.25);
}

/* Enhanced Portfolio Filtering */
.filtering {
  opacity: 0.5;
  transform: scale(0.95);
  transition: all 0.3s ease;
}

/* Enhanced Loading States */
.loading-element {
  position: relative;
  overflow: hidden;
}

.loading-element::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}
