/* ========================================
   TechFormation Animation System
======================================== */

/* Base animation state */
.tf-anim {
  opacity: 1;
  transition: all 0.8s ease;
  will-change: transform, opacity;
}

.tf-anim.tf-show {
  opacity: 1;
  transform: none;
}

/* ----------------------------------------
   Fade Animations
---------------------------------------- */

.tf-fade {
  opacity: 0;
}

.tf-show.tf-fade {
  opacity: 1;
}

/* ----------------------------------------
   Vertical Animations
---------------------------------------- */

.tf-fade-up {
  transform: translateY(50px);
}

.tf-fade-down {
  transform: translateY(-40px);
}

/* ----------------------------------------
   Horizontal Animations
---------------------------------------- */

.tf-slide-left {
  transform: translateX(70px);
}

.tf-slide-right {
  transform: translateX(-70px);
}

/* ----------------------------------------
   Zoom Animations
---------------------------------------- */

.tf-zoom-in {
  transform: scale(0.9);
}

.tf-zoom-out {
  transform: scale(1.1);
}

/* ----------------------------------------
   Card Hover Animation
---------------------------------------- */

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

.tf-card-hover:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* ----------------------------------------
   Stagger Delay System
---------------------------------------- */

.tf-delay-1 {
  transition-delay: 0.1s;
}
.tf-delay-2 {
  transition-delay: 0.2s;
}
.tf-delay-3 {
  transition-delay: 0.3s;
}
.tf-delay-4 {
  transition-delay: 0.4s;
}
.tf-delay-5 {
  transition-delay: 0.5s;
}
.tf-delay-6 {
  transition-delay: 0.6s;
}

/* ----------------------------------------
   Grid Card Animation Helper
---------------------------------------- */

.tf-card-grid .tf-card {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.tf-card-grid.tf-show .tf-card {
  opacity: 1;
  transform: translateY(0);
}

/* ----------------------------------------
   Logo Hover Effect
---------------------------------------- */

.tf-logo-hover img {
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.tf-logo-hover img:hover {
  transform: scale(1.08);
  opacity: 0.9;
}

/* ----------------------------------------
   Button Hover Animation
---------------------------------------- */

.tf-btn-hover {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.tf-btn-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}
