/* Advanced Animations for Lofts & Retrofits */

/* Slide In Animations */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Flip Animations */
@keyframes flipIn {
  from {
    opacity: 0;
    transform: perspective(1000px) rotateY(-90deg);
  }
  to {
    opacity: 1;
    transform: perspective(1000px) rotateY(0);
  }
}

@keyframes flipInX {
  from {
    opacity: 0;
    transform: perspective(1000px) rotateX(-90deg);
  }
  to {
    opacity: 1;
    transform: perspective(1000px) rotateX(0);
  }
}

/* Scale & Fade */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes scaleInBounce {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Reveal Animations */
@keyframes revealLeft {
  from {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

@keyframes revealRight {
  from {
    opacity: 0;
    clip-path: inset(0 0 0 100%);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

/* Blur In */
@keyframes blurIn {
  from {
    opacity: 0;
    filter: blur(20px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

/* Utility Classes - Start hidden, animate when .animate-in is added */
.animate-slide-in-left {
  opacity: 0;
}

.animate-slide-in-left.animate-in {
  animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-in-right {
  opacity: 0;
}

.animate-slide-in-right.animate-in {
  animation: slideInRight 0.8s ease-out forwards;
}

.animate-slide-in-up {
  opacity: 0;
}

.animate-slide-in-up.animate-in {
  animation: slideInUp 0.8s ease-out forwards;
}

.animate-slide-in-down {
  opacity: 0;
}

.animate-slide-in-down.animate-in {
  animation: slideInDown 0.8s ease-out forwards;
}

.animate-flip-in {
  opacity: 0;
}

.animate-flip-in.animate-in {
  animation: flipIn 0.8s ease-out forwards;
}

.animate-flip-in-x {
  opacity: 0;
}

.animate-flip-in-x.animate-in {
  animation: flipInX 0.8s ease-out forwards;
}

.animate-scale-in {
  opacity: 0;
}

.animate-scale-in.animate-in {
  animation: scaleIn 0.8s ease-out forwards;
}

.animate-scale-bounce {
  opacity: 0;
}

.animate-scale-bounce.animate-in {
  animation: scaleInBounce 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.animate-reveal-left {
  opacity: 0;
}

.animate-reveal-left.animate-in {
  animation: revealLeft 1s ease-out forwards;
}

.animate-reveal-right {
  opacity: 0;
}

.animate-reveal-right.animate-in {
  animation: revealRight 1s ease-out forwards;
}

.animate-blur-in {
  opacity: 0;
}

.animate-blur-in.animate-in {
  animation: blurIn 1s ease-out forwards;
}

/* Stagger 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; }

/* Hover Effects */
.hover-lift {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
  will-change: transform;
}

.hover-lift:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.hover-glow {
  transition: box-shadow 0.4s ease, transform 0.4s ease;
  will-change: box-shadow, transform;
}

.hover-glow:hover {
  box-shadow: 0 0 40px rgba(184, 115, 51, 0.5);
  transform: scale(1.02);
}

/* Smooth card transitions */
.service-overview-card,
.philosophy-card,
.service-card,
.principle-item {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}

/* Button pulse effect */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

a[class*="bg-copper"]:hover,
a[class*="bg-charcoal"]:hover {
  animation: pulse 0.6s ease-in-out;
}

