/* Smooth Effects and Animations for Zando Auto Website */

/* ===== TEXT ANIMATIONS ===== */

/* Smooth Text Reveal Animation */
@keyframes textReveal {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Smooth Text Fade In */
@keyframes textFadeIn {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Smooth Text Slide Up */
@keyframes textSlideUp {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Smooth Text Scale */
@keyframes textScale {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== SECTION ANIMATIONS ===== */

/* Smooth Section Fade In */
@keyframes sectionFadeIn {
  0% {
    opacity: 0;
    transform: translateY(60px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Smooth Section Slide In Left */
@keyframes sectionSlideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-100px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Smooth Section Slide In Right */
@keyframes sectionSlideInRight {
  0% {
    opacity: 0;
    transform: translateX(100px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Smooth Section Scale In */
@keyframes sectionScaleIn {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== HOVER EFFECTS ===== */

/* Smooth Hover Scale */
@keyframes hoverScale {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.05);
  }
}

/* Smooth Hover Lift */
@keyframes hoverLift {
  0% {
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }
  100% {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
  }
}

/* Smooth Hover Glow */
@keyframes hoverGlow {
  0% {
    box-shadow: 0 0 5px rgba(255, 107, 53, 0.3);
  }
  100% {
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.6);
  }
}

/* ===== TEXT EFFECTS CLASSES ===== */

.text-reveal {
  animation: textReveal 0.8s ease-out forwards;
  opacity: 0;
}

.text-fade-in {
  animation: textFadeIn 0.6s ease-out forwards;
  opacity: 0;
}

.text-slide-up {
  animation: textSlideUp 0.7s ease-out forwards;
  opacity: 0;
}

.text-scale {
  animation: textScale 0.5s ease-out forwards;
  opacity: 0;
}

/* ===== SECTION EFFECTS CLASSES ===== */

.section-fade-in {
  animation: sectionFadeIn 1s ease-out forwards;
  opacity: 0;
}

.section-slide-in-left {
  animation: sectionSlideInLeft 0.8s ease-out forwards;
  opacity: 0;
}

.section-slide-in-right {
  animation: sectionSlideInRight 0.8s ease-out forwards;
  opacity: 0;
}

.section-scale-in {
  animation: sectionScaleIn 0.6s ease-out forwards;
  opacity: 0;
}

/* ===== HOVER EFFECTS CLASSES ===== */

.hover-scale {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-scale:hover {
  animation: hoverScale 0.3s ease forwards;
}

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  animation: hoverLift 0.3s ease forwards;
}

.hover-glow {
  transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
  animation: hoverGlow 0.3s ease forwards;
}

/* ===== SMOOTH TRANSITIONS ===== */

.smooth-transition {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.smooth-transition-slow {
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.smooth-transition-fast {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== ENHANCED EXISTING ELEMENTS ===== */

/* Enhanced Buttons */
.cs_btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.cs_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.5s;
}

.cs_btn:hover::before {
  left: 100%;
}

.cs_btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
}

/* Enhanced Cards */
.cs_card, .cs_service_card, .cs_work_card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.cs_card::before, .cs_service_card::before, .cs_work_card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 107, 53, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cs_card:hover::before, .cs_service_card:hover::before, .cs_work_card:hover::before {
  opacity: 1;
}

.cs_card:hover, .cs_service_card:hover, .cs_work_card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Enhanced Headings */
h1, h2, h3, h4, h5, h6 {
  transition: all 0.3s ease;
}

h1:hover, h2:hover, h3:hover, h4:hover, h5:hover, h6:hover {
  color: #31738c;
  transform: translateX(5px);
}

/* Enhanced Links */
a {
  transition: all 0.3s ease;
  position: relative;
}

a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #31738c;
  transition: width 0.3s ease;
}

a:hover::after {
  width: 100%;
}

/* Enhanced Images */
img {
  transition: all 0.3s ease;
}

img:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* ===== LOADING ANIMATIONS ===== */

/* Pulse Animation */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.pulse {
  animation: pulse 2s infinite;
}

/* Bounce Animation */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.bounce {
  animation: bounce 2s infinite;
}

/* ===== SCROLL ANIMATIONS ===== */

.scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ANIMATIONS ===== */

@media (max-width: 768px) {
  .text-reveal, .text-fade-in, .text-slide-up, .text-scale {
    animation-duration: 0.5s;
  }
  
  .section-fade-in, .section-slide-in-left, .section-slide-in-right, .section-scale-in {
    animation-duration: 0.6s;
  }
  
  .cs_card:hover, .cs_service_card:hover, .cs_work_card:hover {
    transform: translateY(-4px);
  }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */

.will-change-transform {
  will-change: transform;
}

.will-change-opacity {
  will-change: opacity;
}

.gpu-accelerated {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* ===== CUSTOM ANIMATION DELAYS ===== */

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }
.delay-900 { animation-delay: 0.9s; }
.delay-1000 { animation-delay: 1s; }
