/* Air on Time Heating & Cooling - Animations CSS */

/* AOS (Animate On Scroll) Custom Animations */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* Custom Fade Animations */
[data-aos="fade-up-custom"] {
    transform: translate3d(0, 40px, 0);
    opacity: 0;
}

[data-aos="fade-up-custom"].aos-animate {
    transform: translate3d(0, 0, 0);
    opacity: 1;
}

[data-aos="fade-down-custom"] {
    transform: translate3d(0, -40px, 0);
    opacity: 0;
}

[data-aos="fade-down-custom"].aos-animate {
    transform: translate3d(0, 0, 0);
    opacity: 1;
}

[data-aos="fade-left-custom"] {
    transform: translate3d(40px, 0, 0);
    opacity: 0;
}

[data-aos="fade-left-custom"].aos-animate {
    transform: translate3d(0, 0, 0);
    opacity: 1;
}

[data-aos="fade-right-custom"] {
    transform: translate3d(-40px, 0, 0);
    opacity: 0;
}

[data-aos="fade-right-custom"].aos-animate {
    transform: translate3d(0, 0, 0);
    opacity: 1;
}

/* Scale Animations */
[data-aos="scale-up"] {
    transform: scale(0.8);
    opacity: 0;
}

[data-aos="scale-up"].aos-animate {
    transform: scale(1);
    opacity: 1;
}

[data-aos="scale-down"] {
    transform: scale(1.2);
    opacity: 0;
}

[data-aos="scale-down"].aos-animate {
    transform: scale(1);
    opacity: 1;
}

/* Rotation Animations */
[data-aos="rotate-left"] {
    transform: rotate(-45deg);
    opacity: 0;
}

[data-aos="rotate-left"].aos-animate {
    transform: rotate(0);
    opacity: 1;
}

[data-aos="rotate-right"] {
    transform: rotate(45deg);
    opacity: 0;
}

[data-aos="rotate-right"].aos-animate {
    transform: rotate(0);
    opacity: 1;
}

/* Flip Animations */
[data-aos="flip-up"] {
    transform: perspective(2500px) rotateX(-100deg);
    opacity: 0;
}

[data-aos="flip-up"].aos-animate {
    transform: perspective(2500px) rotateX(0);
    opacity: 1;
}

[data-aos="flip-down"] {
    transform: perspective(2500px) rotateX(100deg);
    opacity: 0;
}

[data-aos="flip-down"].aos-animate {
    transform: perspective(2500px) rotateX(0);
    opacity: 1;
}

/* Slide Animations */
[data-aos="slide-up"] {
    transform: translateY(100%);
    opacity: 0;
}

[data-aos="slide-up"].aos-animate {
    transform: translateY(0);
    opacity: 1;
}

[data-aos="slide-down"] {
    transform: translateY(-100%);
    opacity: 0;
}

[data-aos="slide-down"].aos-animate {
    transform: translateY(0);
    opacity: 1;
}

/* Zoom Animations */
[data-aos="zoom-in-up"] {
    transform: translate3d(0, 40px, 0) scale(0.8);
    opacity: 0;
}

[data-aos="zoom-in-up"].aos-animate {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
}

[data-aos="zoom-in-down"] {
    transform: translate3d(0, -40px, 0) scale(0.8);
    opacity: 0;
}

[data-aos="zoom-in-down"].aos-animate {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
}

/* CSS-only Animations */
.float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.shake {
    animation: shake 0.5s infinite;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-30px); }
    60% { transform: translateY(-15px); }
}

.swing {
    animation: swing 1s ease-in-out infinite;
}

@keyframes swing {
    20% { transform: rotate(15deg); }
    40% { transform: rotate(-10deg); }
    60% { transform: rotate(5deg); }
    80% { transform: rotate(-5deg); }
    100% { transform: rotate(0deg); }
}

.tada {
    animation: tada 1s;
}

@keyframes tada {
    0% { transform: scale(1); }
    10%, 20% { transform: scale(0.9) rotate(-3deg); }
    30%, 50%, 70%, 90% { transform: scale(1.1) rotate(3deg); }
    40%, 60%, 80% { transform: scale(1.1) rotate(-3deg); }
    100% { transform: scale(1) rotate(0); }
}

.wobble {
    animation: wobble 1s;
}

@keyframes wobble {
    0% { transform: translateX(0%); }
    15% { transform: translateX(-25%) rotate(-5deg); }
    30% { transform: translateX(20%) rotate(3deg); }
    45% { transform: translateX(-15%) rotate(-3deg); }
    60% { transform: translateX(10%) rotate(2deg); }
    75% { transform: translateX(-5%) rotate(-1deg); }
    100% { transform: translateX(0%); }
}

.jello {
    animation: jello 1s;
}

@keyframes jello {
    11.1% { transform: skewX(-12.5deg) skewY(-12.5deg); }
    22.2% { transform: skewX(6.25deg) skewY(6.25deg); }
    33.3% { transform: skewX(-3.125deg) skewY(-3.125deg); }
    44.4% { transform: skewX(1.5625deg) skewY(1.5625deg); }
    55.5% { transform: skewX(-0.78125deg) skewY(-0.78125deg); }
    66.6% { transform: skewX(0.390625deg) skewY(0.390625deg); }
    77.7% { transform: skewX(-0.1953125deg) skewY(-0.1953125deg); }
    88.8% { transform: skewX(0.09765625deg) skewY(0.09765625deg); }
    100% { transform: skewX(0deg) skewY(0deg); }
}

.heartbeat {
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 50%, 100% { transform: scale(1); }
    5%, 45% { transform: scale(1.1); }
    10%, 40% { transform: scale(1.05); }
    15%, 35% { transform: scale(1.15); }
    20%, 30% { transform: scale(1.1); }
    25% { transform: scale(1.2); }
}

.flash {
    animation: flash 2s infinite;
}

@keyframes flash {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0; }
}

.rubberBand {
    animation: rubberBand 1s;
}

@keyframes rubberBand {
    0% { transform: scale(1); }
    30% { transform: scaleX(1.25) scaleY(0.75); }
    40% { transform: scaleX(0.75) scaleY(1.25); }
    50% { transform: scaleX(1.15) scaleY(0.85); }
    65% { transform: scaleX(0.95) scaleY(1.05); }
    75% { transform: scaleX(1.05) scaleY(0.95); }
    100% { transform: scale(1); }
}

/* Loading Animations */
.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:hover::before {
    width: 300px;
    height: 300px;
}

/* Text Animations */
.typewriter {
    overflow: hidden;
    border-right: 0.15em solid orange;
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: 0.15em;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: orange; }
}

.text-focus-in {
    animation: text-focus-in 1s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
}

@keyframes text-focus-in {
    0% {
        filter: blur(12px);
        opacity: 0;
    }
    100% {
        filter: blur(0px);
        opacity: 1;
    }
}

.text-shadow-drop-center {
    animation: text-shadow-drop-center 0.6s both;
}

@keyframes text-shadow-drop-center {
    0% {
        text-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }
    100% {
        text-shadow: 0 0 18px rgba(0, 0, 0, 0.35);
    }
}

/* Hover Effects */
.hvr-grow {
    transition: transform 0.3s;
}

.hvr-grow:hover {
    transform: scale(1.1);
}

.hvr-shrink {
    transition: transform 0.3s;
}

.hvr-shrink:hover {
    transform: scale(0.9);
}

.hvr-float {
    transition: transform 0.3s;
}

.hvr-float:hover {
    transform: translateY(-8px);
}

.hvr-sink {
    transition: transform 0.3s;
}

.hvr-sink:hover {
    transform: translateY(8px);
}

.hvr-bob {
    transition: transform 0.3s;
}

.hvr-bob:hover {
    animation: hvr-bob 0.3s;
}

@keyframes hvr-bob {
    0% { transform: translateY(-8px); }
    50% { transform: translateY(-2px); }
    100% { transform: translateY(-8px); }
}

.hvr-hang {
    transition: transform 0.3s;
}

.hvr-hang:hover {
    animation: hvr-hang 0.3s;
}

@keyframes hvr-hang {
    0% { transform: translateY(8px); }
    50% { transform: translateY(2px); }
    100% { transform: translateY(8px); }
}

/* Utility Animation Classes */
.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-400 { animation-delay: 0.4s; }
.animate-delay-500 { animation-delay: 0.5s; }
.animate-delay-600 { animation-delay: 0.6s; }
.animate-delay-700 { animation-delay: 0.7s; }
.animate-delay-800 { animation-delay: 0.8s; }
.animate-delay-900 { animation-delay: 0.9s; }
.animate-delay-1000 { animation-delay: 1s; }

.animate-duration-fast { animation-duration: 0.5s; }
.animate-duration-normal { animation-duration: 1s; }
.animate-duration-slow { animation-duration: 2s; }
.animate-duration-slower { animation-duration: 3s; }

.animate-once { animation-iteration-count: 1; }
.animate-infinite { animation-iteration-count: infinite; }

.animate-ease-linear { animation-timing-function: linear; }
.animate-ease-in { animation-timing-function: ease-in; }
.animate-ease-out { animation-timing-function: ease-out; }
.animate-ease-in-out { animation-timing-function: ease-in-out; }

/* Page Load Animations */
.page-enter {
    animation: page-enter 0.6s ease-out;
}

@keyframes page-enter {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-exit {
    animation: page-exit 0.4s ease-in;
}

@keyframes page-exit {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Smooth Scroll Enhancement */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Custom Easing Functions */
.ease-out-back {
    animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ease-out-circ {
    animation-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);
}

.ease-out-expo {
    animation-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
}

.ease-out-quint {
    animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
}

/* Performance Optimizations */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

.will-change-scroll {
    will-change: scroll-position;
}

/* GPU Acceleration */
.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}