/* ==========================================================================
   ANIMATIONS.CSS
   Kammerzell Contracting - Premium Contractor Website
   Keyframe animations, utility classes, and motion system
   ========================================================================== */


/* ==========================================================================
   1. KEYFRAME ANIMATIONS
   ========================================================================== */

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* --------------------------------------------------------------------------
   Scale Animation
   -------------------------------------------------------------------------- */

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes scaleOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.95);
  }
}

/* --------------------------------------------------------------------------
   Slide Animations
   -------------------------------------------------------------------------- */

@keyframes slideInUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideInDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* --------------------------------------------------------------------------
   Float Animation - Subtle hovering motion
   -------------------------------------------------------------------------- */

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* --------------------------------------------------------------------------
   Pulse Animation - Subtle scale breathing
   -------------------------------------------------------------------------- */

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

@keyframes pulseRing {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* --------------------------------------------------------------------------
   Shimmer Animation - Gold shimmer sweep
   -------------------------------------------------------------------------- */

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

/* --------------------------------------------------------------------------
   Spin Animation - Loading spinner
   -------------------------------------------------------------------------- */

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* --------------------------------------------------------------------------
   Bounce Animation - Scroll indicator
   -------------------------------------------------------------------------- */

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-16px);
  }
  60% {
    transform: translateY(-8px);
  }
}

@keyframes bounceSubtle {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* --------------------------------------------------------------------------
   Draw Line Animation - SVG stroke reveal
   -------------------------------------------------------------------------- */

@keyframes drawLine {
  from {
    stroke-dashoffset: 1000;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes drawLineReverse {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: 1000;
  }
}

/* --------------------------------------------------------------------------
   Morph Hamburger Animation - Menu icon to X
   -------------------------------------------------------------------------- */

@keyframes morphHamburgerTop {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(8px) rotate(0deg);
  }
  100% {
    transform: translateY(8px) rotate(45deg);
  }
}

@keyframes morphHamburgerMiddle {
  0% {
    opacity: 1;
    transform: scaleX(1);
  }
  50% {
    opacity: 0;
    transform: scaleX(0);
  }
  100% {
    opacity: 0;
    transform: scaleX(0);
  }
}

@keyframes morphHamburgerBottom {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(0deg);
  }
  100% {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* Reverse animations for closing */
@keyframes morphHamburgerTopReverse {
  0% {
    transform: translateY(8px) rotate(45deg);
  }
  50% {
    transform: translateY(8px) rotate(0deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

@keyframes morphHamburgerMiddleReverse {
  0% {
    opacity: 0;
    transform: scaleX(0);
  }
  50% {
    opacity: 0;
    transform: scaleX(0);
  }
  100% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes morphHamburgerBottomReverse {
  0% {
    transform: translateY(-8px) rotate(-45deg);
  }
  50% {
    transform: translateY(-8px) rotate(0deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

/* --------------------------------------------------------------------------
   Ken Burns Animation - Slow zoom for hero images
   -------------------------------------------------------------------------- */

@keyframes kenBurns {
  0% {
    transform: scale(1) translate(0, 0);
  }
  50% {
    transform: scale(1.12) translate(-1%, -1%);
  }
  100% {
    transform: scale(1) translate(0, 0);
  }
}

@keyframes kenBurnsAlt {
  0% {
    transform: scale(1.08) translate(-1%, 0);
  }
  50% {
    transform: scale(1) translate(1%, -1%);
  }
  100% {
    transform: scale(1.08) translate(-1%, 0);
  }
}

/* --------------------------------------------------------------------------
   Counter Up Animation - Number counting
   -------------------------------------------------------------------------- */

@keyframes counterUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   Typewriter Animation
   -------------------------------------------------------------------------- */

@keyframes typeWriter {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blinkCursor {
  0%, 100% {
    border-right-color: transparent;
  }
  50% {
    border-right-color: currentColor;
  }
}

/* --------------------------------------------------------------------------
   Reveal Animations - Clip-path reveals
   -------------------------------------------------------------------------- */

@keyframes revealFromLeft {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes revealFromRight {
  from {
    clip-path: inset(0 0 0 100%);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes revealFromTop {
  from {
    clip-path: inset(0 0 100% 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes revealFromBottom {
  from {
    clip-path: inset(100% 0 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes revealCircle {
  from {
    clip-path: circle(0% at 50% 50%);
  }
  to {
    clip-path: circle(75% at 50% 50%);
  }
}

/* --------------------------------------------------------------------------
   Parallax Float Animation
   -------------------------------------------------------------------------- */

@keyframes parallaxFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-15px) rotate(1deg);
  }
  50% {
    transform: translateY(-5px) rotate(0deg);
  }
  75% {
    transform: translateY(-20px) rotate(-1deg);
  }
}

@keyframes parallaxFloatSlow {
  0%, 100% {
    transform: translateY(0) translateX(0);
  }
  33% {
    transform: translateY(-10px) translateX(5px);
  }
  66% {
    transform: translateY(-18px) translateX(-3px);
  }
}

/* --------------------------------------------------------------------------
   Additional Premium Animations
   -------------------------------------------------------------------------- */

@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 0.6;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes rotateIn {
  from {
    transform: rotate(-10deg) scale(0.9);
    opacity: 0;
  }
  to {
    transform: rotate(0deg) scale(1);
    opacity: 1;
  }
}

@keyframes skeletonLoad {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: calc(200px + 100%) 0;
  }
}


/* ==========================================================================
   2. ANIMATION UTILITY CLASSES
   ========================================================================== */

/* --------------------------------------------------------------------------
   Fade Utilities
   -------------------------------------------------------------------------- */

.animate-fade-in {
  animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.animate-fade-up {
  animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.animate-fade-down {
  animation: fadeInDown 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.animate-fade-left {
  animation: fadeInLeft 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.animate-fade-right {
  animation: fadeInRight 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.animate-fade-out {
  animation: fadeOut 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* --------------------------------------------------------------------------
   Scale Utilities
   -------------------------------------------------------------------------- */

.animate-scale-in {
  animation: scaleIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.animate-scale-out {
  animation: scaleOut 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* --------------------------------------------------------------------------
   Slide Utilities
   -------------------------------------------------------------------------- */

.animate-slide-up {
  animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.animate-slide-down {
  animation: slideInDown 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.animate-slide-left {
  animation: slideInLeft 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.animate-slide-right {
  animation: slideInRight 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* --------------------------------------------------------------------------
   Continuous / Looping Utilities
   -------------------------------------------------------------------------- */

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-pulse {
  animation: pulse 2.5s ease-in-out infinite;
}

.animate-pulse-ring {
  animation: pulseRing 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-bounce {
  animation: bounce 2s ease infinite;
}

.animate-bounce-subtle {
  animation: bounceSubtle 2s ease-in-out infinite;
}

.animate-spin {
  animation: spin 1s linear infinite;
}

.animate-spin-slow {
  animation: spin 3s linear infinite;
}

/* --------------------------------------------------------------------------
   Shimmer Utility
   -------------------------------------------------------------------------- */

.animate-shimmer {
  background: linear-gradient(
    110deg,
    transparent 20%,
    rgba(207, 167, 81, 0.25) 40%,
    rgba(207, 167, 81, 0.45) 50%,
    rgba(207, 167, 81, 0.25) 60%,
    transparent 80%
  );
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

.animate-shimmer-text {
  background: linear-gradient(
    110deg,
    currentColor 20%,
    rgba(207, 167, 81, 1) 40%,
    rgba(255, 215, 100, 1) 50%,
    rgba(207, 167, 81, 1) 60%,
    currentColor 80%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   Ken Burns Utility
   -------------------------------------------------------------------------- */

.animate-ken-burns {
  animation: kenBurns 25s ease-in-out infinite;
  will-change: transform;
}

.animate-ken-burns-alt {
  animation: kenBurnsAlt 30s ease-in-out infinite;
  will-change: transform;
}

/* --------------------------------------------------------------------------
   Reveal Utilities
   -------------------------------------------------------------------------- */

.animate-reveal-left {
  animation: revealFromLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.animate-reveal-right {
  animation: revealFromRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.animate-reveal-top {
  animation: revealFromTop 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.animate-reveal-bottom {
  animation: revealFromBottom 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.animate-reveal-circle {
  animation: revealCircle 1s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* --------------------------------------------------------------------------
   Parallax Float Utility
   -------------------------------------------------------------------------- */

.animate-parallax-float {
  animation: parallaxFloat 8s ease-in-out infinite;
}

.animate-parallax-float-slow {
  animation: parallaxFloatSlow 12s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   Typewriter Utility
   -------------------------------------------------------------------------- */

.animate-typewriter {
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid currentColor;
  animation:
    typeWriter 3s steps(40, end) both,
    blinkCursor 0.75s step-end infinite;
}

/* --------------------------------------------------------------------------
   Draw Line Utility (SVG)
   -------------------------------------------------------------------------- */

.animate-draw-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawLine 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* --------------------------------------------------------------------------
   Counter Utility
   -------------------------------------------------------------------------- */

.animate-counter-up {
  animation: counterUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* --------------------------------------------------------------------------
   Gradient Shift Utility
   -------------------------------------------------------------------------- */

.animate-gradient {
  background-size: 200% 200%;
  animation: gradientShift 6s ease infinite;
}

/* --------------------------------------------------------------------------
   Ripple Utility
   -------------------------------------------------------------------------- */

.animate-ripple {
  animation: ripple 0.6s linear;
}

/* --------------------------------------------------------------------------
   Skeleton Loading Utility
   -------------------------------------------------------------------------- */

.animate-skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 25%,
    rgba(255, 255, 255, 0.08) 37%,
    rgba(255, 255, 255, 0.04) 63%
  );
  background-size: 400px 100%;
  animation: skeletonLoad 1.4s ease infinite;
}


/* ==========================================================================
   3. GSAP HELPER CLASSES (Initial States)
   These set the "from" state. GSAP animates TO the natural state.
   ========================================================================== */

.gsap-fade-up {
  opacity: 0;
  transform: translateY(50px);
}

.gsap-fade-down {
  opacity: 0;
  transform: translateY(-50px);
}

.gsap-fade-left {
  opacity: 0;
  transform: translateX(-50px);
}

.gsap-fade-right {
  opacity: 0;
  transform: translateX(50px);
}

.gsap-scale {
  opacity: 0;
  transform: scale(0.95);
}

.gsap-scale-up {
  opacity: 0;
  transform: scale(0.8);
}

.gsap-reveal {
  clip-path: inset(0 100% 0 0);
}

.gsap-reveal-right {
  clip-path: inset(0 0 0 100%);
}

.gsap-reveal-down {
  clip-path: inset(0 0 100% 0);
}

.gsap-reveal-up {
  clip-path: inset(100% 0 0 0);
}

.gsap-rotate {
  opacity: 0;
  transform: rotate(-10deg) scale(0.9);
}

.gsap-blur {
  opacity: 0;
  filter: blur(10px);
}

/* GSAP animated state - add this class when element is in view */
.gsap-animated {
  opacity: 1 !important;
  transform: none !important;
  clip-path: inset(0 0 0 0) !important;
  filter: none !important;
}


/* ==========================================================================
   4. STAGGER DELAY CLASSES
   Increments of 0.1s for sequenced animations
   ========================================================================== */

.stagger-1  { animation-delay: 0.1s; }
.stagger-2  { animation-delay: 0.2s; }
.stagger-3  { animation-delay: 0.3s; }
.stagger-4  { animation-delay: 0.4s; }
.stagger-5  { animation-delay: 0.5s; }
.stagger-6  { animation-delay: 0.6s; }
.stagger-7  { animation-delay: 0.7s; }
.stagger-8  { animation-delay: 0.8s; }
.stagger-9  { animation-delay: 0.9s; }
.stagger-10 { animation-delay: 1.0s; }
.stagger-11 { animation-delay: 1.1s; }
.stagger-12 { animation-delay: 1.2s; }

/* Larger stagger increments for dramatic sequencing */
.stagger-slow-1  { animation-delay: 0.15s; }
.stagger-slow-2  { animation-delay: 0.30s; }
.stagger-slow-3  { animation-delay: 0.45s; }
.stagger-slow-4  { animation-delay: 0.60s; }
.stagger-slow-5  { animation-delay: 0.75s; }
.stagger-slow-6  { animation-delay: 0.90s; }
.stagger-slow-7  { animation-delay: 1.05s; }
.stagger-slow-8  { animation-delay: 1.20s; }


/* ==========================================================================
   5. DURATION MODIFIERS
   ========================================================================== */

.duration-fastest {
  animation-duration: 0.15s !important;
}

.duration-fast {
  animation-duration: 0.3s !important;
}

.duration-normal {
  animation-duration: 0.6s !important;
}

.duration-slow {
  animation-duration: 1s !important;
}

.duration-slower {
  animation-duration: 1.5s !important;
}

.duration-slowest {
  animation-duration: 2.5s !important;
}

/* Easing modifiers */
.ease-linear {
  animation-timing-function: linear !important;
}

.ease-in {
  animation-timing-function: cubic-bezier(0.4, 0, 1, 1) !important;
}

.ease-out {
  animation-timing-function: cubic-bezier(0, 0, 0.2, 1) !important;
}

.ease-in-out {
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.ease-bounce {
  animation-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
}

.ease-elastic {
  animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* Fill mode modifiers */
.fill-forwards {
  animation-fill-mode: forwards !important;
}

.fill-backwards {
  animation-fill-mode: backwards !important;
}

.fill-both {
  animation-fill-mode: both !important;
}

/* Iteration modifiers */
.iterate-infinite {
  animation-iteration-count: infinite !important;
}

.iterate-once {
  animation-iteration-count: 1 !important;
}

.iterate-twice {
  animation-iteration-count: 2 !important;
}


/* ==========================================================================
   6. HOVER ANIMATION CLASSES
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hover Lift - Element rises on hover
   -------------------------------------------------------------------------- */

.hover-lift {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.hover-lift:active {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Subtle variant */
.hover-lift-sm {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift-sm:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

/* --------------------------------------------------------------------------
   Hover Zoom - Element scales up on hover
   -------------------------------------------------------------------------- */

.hover-zoom {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

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

.hover-zoom:active {
  transform: scale(1.02);
}

/* Image zoom - for image containers */
.hover-zoom-img {
  overflow: hidden;
}

.hover-zoom-img img,
.hover-zoom-img .img-zoom {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

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

/* --------------------------------------------------------------------------
   Hover Glow - Box shadow glow on hover
   -------------------------------------------------------------------------- */

.hover-glow {
  transition: box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-glow:hover {
  box-shadow:
    0 0 20px rgba(207, 167, 81, 0.25),
    0 0 60px rgba(207, 167, 81, 0.1);
}

/* Gold glow variant */
.hover-glow-gold {
  transition: box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-glow-gold:hover {
  box-shadow:
    0 0 15px rgba(207, 167, 81, 0.3),
    0 0 45px rgba(207, 167, 81, 0.15),
    0 0 80px rgba(207, 167, 81, 0.05);
}

/* White glow variant */
.hover-glow-white {
  transition: box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-glow-white:hover {
  box-shadow:
    0 0 20px rgba(255, 255, 255, 0.15),
    0 0 60px rgba(255, 255, 255, 0.05);
}

/* --------------------------------------------------------------------------
   Hover Underline - Animated underline from left
   -------------------------------------------------------------------------- */

.hover-underline {
  position: relative;
  display: inline-block;
}

.hover-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-underline:hover::after {
  width: 100%;
}

/* Gold underline variant */
.hover-underline-gold::after {
  background: linear-gradient(90deg, #CFA751, #FFD764);
}

/* Center expand variant */
.hover-underline-center {
  position: relative;
  display: inline-block;
}

.hover-underline-center::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-underline-center:hover::after {
  width: 100%;
  left: 0;
}

/* --------------------------------------------------------------------------
   Hover Rotate - Subtle rotation on hover
   -------------------------------------------------------------------------- */

.hover-rotate {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-rotate:hover {
  transform: rotate(5deg);
}

/* --------------------------------------------------------------------------
   Hover Tilt - 3D tilt effect
   -------------------------------------------------------------------------- */

.hover-tilt {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.hover-tilt:hover {
  transform: perspective(600px) rotateX(3deg) rotateY(-3deg);
}

/* --------------------------------------------------------------------------
   Hover Brightness - Image brightness on hover
   -------------------------------------------------------------------------- */

.hover-brighten {
  transition: filter 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-brighten:hover {
  filter: brightness(1.1);
}

/* --------------------------------------------------------------------------
   Combined Hover Effects
   -------------------------------------------------------------------------- */

.hover-card {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.hover-card-gold {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-card-gold:hover {
  transform: translateY(-4px);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.2),
    0 0 30px rgba(207, 167, 81, 0.1);
  border-color: rgba(207, 167, 81, 0.3);
}


/* ==========================================================================
   7. TRANSITION UTILITY CLASSES
   ========================================================================== */

/* --------------------------------------------------------------------------
   Transition Properties
   -------------------------------------------------------------------------- */

.transition-none {
  transition: none !important;
}

.transition-all {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-colors {
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-opacity {
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-transform {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-shadow {
  transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-filter {
  transition: filter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   Transition Durations
   -------------------------------------------------------------------------- */

.transition-fast {
  transition-duration: 0.15s !important;
}

.transition-normal {
  transition-duration: 0.3s !important;
}

.transition-slow {
  transition-duration: 0.5s !important;
}

.transition-slower {
  transition-duration: 0.7s !important;
}

/* --------------------------------------------------------------------------
   Transition Easings
   -------------------------------------------------------------------------- */

.transition-ease-linear {
  transition-timing-function: linear !important;
}

.transition-ease-in {
  transition-timing-function: cubic-bezier(0.4, 0, 1, 1) !important;
}

.transition-ease-out {
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1) !important;
}

.transition-ease-in-out {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.transition-ease-bounce {
  transition-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
}

/* --------------------------------------------------------------------------
   Transition Delay
   -------------------------------------------------------------------------- */

.transition-delay-100 { transition-delay: 0.1s; }
.transition-delay-200 { transition-delay: 0.2s; }
.transition-delay-300 { transition-delay: 0.3s; }
.transition-delay-500 { transition-delay: 0.5s; }
.transition-delay-700 { transition-delay: 0.7s; }
.transition-delay-1000 { transition-delay: 1s; }


/* ==========================================================================
   8. SCROLL-TRIGGERED ANIMATION STATES
   Elements start hidden, become visible when scrolled into view
   ========================================================================== */

/* Base state: element is hidden before scroll trigger */
[data-animate] {
  opacity: 0;
  will-change: transform, opacity;
}

/* When element enters viewport */
[data-animate].is-visible {
  opacity: 1;
}

[data-animate="fade-up"] {
  transform: translateY(40px);
}

[data-animate="fade-up"].is-visible {
  animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}

[data-animate="fade-down"] {
  transform: translateY(-40px);
}

[data-animate="fade-down"].is-visible {
  animation: fadeInDown 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}

[data-animate="fade-left"] {
  transform: translateX(-40px);
}

[data-animate="fade-left"].is-visible {
  animation: fadeInLeft 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}

[data-animate="fade-right"] {
  transform: translateX(40px);
}

[data-animate="fade-right"].is-visible {
  animation: fadeInRight 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}

[data-animate="scale-in"] {
  transform: scale(0.95);
}

[data-animate="scale-in"].is-visible {
  animation: scaleIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

[data-animate="reveal-left"].is-visible {
  animation: revealFromLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

[data-animate="reveal-right"].is-visible {
  animation: revealFromRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* Support for data-delay attribute */
[data-animate][data-delay="100"] { animation-delay: 0.1s; }
[data-animate][data-delay="200"] { animation-delay: 0.2s; }
[data-animate][data-delay="300"] { animation-delay: 0.3s; }
[data-animate][data-delay="400"] { animation-delay: 0.4s; }
[data-animate][data-delay="500"] { animation-delay: 0.5s; }
[data-animate][data-delay="600"] { animation-delay: 0.6s; }
[data-animate][data-delay="700"] { animation-delay: 0.7s; }
[data-animate][data-delay="800"] { animation-delay: 0.8s; }


/* ==========================================================================
   9. PERFORMANCE OPTIMIZATION
   ========================================================================== */

/* Promote animated elements to their own GPU layer */
.will-change-transform {
  will-change: transform;
}

.will-change-opacity {
  will-change: opacity;
}

.will-change-auto {
  will-change: auto;
}

/* Hardware acceleration hint */
.gpu-accelerated {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Contain animation paint to element boundaries */
.contain-paint {
  contain: paint;
}

.contain-layout {
  contain: layout;
}

.contain-strict {
  contain: strict;
}


/* ==========================================================================
   10. REDUCED MOTION - Accessibility
   Respects user's OS-level motion preferences
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

  /* Disable all CSS animations */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }

  /* Reset GSAP helper initial states so content is visible */
  .gsap-fade-up,
  .gsap-fade-down,
  .gsap-fade-left,
  .gsap-fade-right,
  .gsap-scale,
  .gsap-scale-up,
  .gsap-rotate,
  .gsap-blur {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .gsap-reveal,
  .gsap-reveal-right,
  .gsap-reveal-down,
  .gsap-reveal-up {
    clip-path: none;
  }

  /* Ensure scroll-triggered elements are visible */
  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }

  /* Remove hover motion effects but keep color transitions */
  .hover-lift:hover,
  .hover-lift-sm:hover {
    transform: none;
  }

  .hover-zoom:hover,
  .hover-zoom-img:hover img,
  .hover-zoom-img:hover .img-zoom {
    transform: none;
  }

  .hover-tilt:hover {
    transform: none;
  }

  .hover-rotate:hover {
    transform: none;
  }

  /* Keep Ken Burns images static */
  .animate-ken-burns,
  .animate-ken-burns-alt {
    animation: none;
    transform: scale(1);
  }

  /* Keep float and parallax elements static */
  .animate-float,
  .animate-parallax-float,
  .animate-parallax-float-slow {
    animation: none;
    transform: none;
  }

  /* Disable typewriter - show full text immediately */
  .animate-typewriter {
    width: 100% !important;
    border-right: none;
    animation: none;
  }

  /* Disable will-change to save memory */
  .will-change-transform,
  .will-change-opacity {
    will-change: auto;
  }
}
