/* Minified Animations CSS for Cry-Fi Website - Optimized for performance */
:root {
    --animation-duration-fast: 0.3s;
    --animation-duration-medium: 0.6s;
    --animation-duration-slow: 1s;
    --animation-easing: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --animation-easing-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55)
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.fade-in {
    opacity: 0;
    animation: fadeIn var(--animation-duration-medium) var(--animation-easing) forwards
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px)
    }

    to {
        opacity: 1;
        transform: translateX(0)
    }
}

.slide-in-left {
    opacity: 0;
    animation: slideInLeft var(--animation-duration-medium) var(--animation-easing) forwards
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px)
    }

    to {
        opacity: 1;
        transform: translateX(0)
    }
}

.slide-in-right {
    opacity: 0;
    animation: slideInRight var(--animation-duration-medium) var(--animation-easing) forwards
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8)
    }

    to {
        opacity: 1;
        transform: scale(1)
    }
}

.scale-in {
    opacity: 0;
    animation: scaleIn var(--animation-duration-medium) var(--animation-easing) forwards
}

.staggered-animation {
    opacity: 0;
    animation: fadeIn var(--animation-duration-medium) var(--animation-easing) forwards
}

.unique-hero-title {
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94)
}

.unique-hero-title.reveal {
    opacity: 1;
    transform: translateY(0)
}

.unique-hero-paragraph {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-delay: 0.2s
}

.unique-hero-paragraph.reveal {
    opacity: 1;
    transform: translateY(0)
}

@keyframes videoFadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

.tab-btn {
    transition: all 0.3s var(--animation-easing)
}

.tab-btn:is(:hover, :focus-visible, .active) {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 54, 242, 0.3)
}

.tab-content {
    animation: fadeIn 0.6s var(--animation-easing) forwards
}

.tab-content .grid-list {
    animation: slideInUp 0.8s var(--animation-easing) forwards;
    opacity: 0;
    transform: translateY(30px)
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.how-to-book-section ol li {
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInLeftStagger 0.6s var(--animation-easing) forwards
}

.how-to-book-section ol li:nth-child(1) {
    animation-delay: 0.1s
}

.how-to-book-section ol li:nth-child(2) {
    animation-delay: 0.3s
}

.how-to-book-section ol li:nth-child(3) {
    animation-delay: 0.5s
}

.how-to-book-section ol li:nth-child(4) {
    animation-delay: 0.7s
}

@keyframes slideInLeftStagger {
    to {
        opacity: 1;
        transform: translateX(0)
    }
}

.how-to-book-note {
    animation: bounceIn 1s var(--animation-easing-bounce) 0.9s forwards;
    opacity: 0;
    transform: scale(0.8)
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.8)
    }

    50% {
        transform: scale(1.05)
    }

    100% {
        opacity: 1;
        transform: scale(1)
    }
}

.custom-image-item {
    transition: all 0.4s var(--animation-easing);
    opacity: 0;
    transform: translateY(30px);
    animation: serviceItemAppear 0.6s var(--animation-easing) forwards
}

.custom-image-item:nth-child(1) {
    animation-delay: 0.1s
}

.custom-image-item:nth-child(2) {
    animation-delay: 0.2s
}

.custom-image-item:nth-child(3) {
    animation-delay: 0.3s
}

.custom-image-item:nth-child(4) {
    animation-delay: 0.4s
}

.custom-image-item:nth-child(5) {
    animation-delay: 0.5s
}

.custom-image-item:nth-child(6) {
    animation-delay: 0.6s
}

@keyframes serviceItemAppear {
    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.custom-grid-img {
    transition: transform 0.3s var(--animation-easing)
}

.custom-grid-img:hover {
    transform: scale(1.07) rotate(2deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    filter: grayscale(0%)
}

.custom-image-name {
    transition: all 0.3s var(--animation-easing)
}

.custom-image-item:hover .custom-image-name {
    color: #ff36f2;
    transform: translateY(-5px)
}

.custom-testimonial-slider {
    animation: fadeIn 1s var(--animation-easing) forwards;
    opacity: 0
}

.custom-testimonial-content {
    animation: fadeIn 1s var(--animation-easing) forwards;
    opacity: 0;
    white-space: normal;
    overflow: visible
}

.custom-testimonial-img {
    transition: all 0.4s var(--animation-easing)
}

.custom-testimonial-img:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 20px rgba(255, 54, 242, 0.5)
}

.custom-arrow {
    transition: all 0.3s var(--animation-easing)
}

.custom-arrow:hover {
    transform: scale(1.1);
    background-color: #ff36f2;
    color: #000
}

.custom-testimonial-slide {
    transition: opacity 0.5s ease-in-out
}

.contact-form .input-field {
    transition: all 0.3s var(--animation-easing);
    opacity: 0;
    transform: translateY(20px)
}

.contact-form .input-field:nth-of-type(1) {
    animation: formFieldAppear 0.5s ease-out 0.1s forwards
}

.contact-form .input-field:nth-of-type(2) {
    animation: formFieldAppear 0.5s ease-out 0.2s forwards
}

.contact-form .input-field:nth-of-type(3) {
    animation: formFieldAppear 0.5s ease-out 0.3s forwards
}

.contact-form .input-field:nth-of-type(4) {
    animation: formFieldAppear 0.5s ease-out 0.4s forwards
}

.contact-form .input-field:nth-of-type(5) {
    animation: formFieldAppear 0.5s ease-out 0.5s forwards
}

.contact-form .input-field:nth-of-type(6) {
    animation: formFieldAppear 0.5s ease-out 0.6s forwards
}

.contact-form textarea {
    animation: formFieldAppear 0.5s ease-out 0.7s forwards
}

.contact-form .btn {
    animation: formFieldAppear 0.5s ease-out 0.8s forwards
}

input[type="time"] {
    transition: all 0.3s var(--animation-easing);
    opacity: 0;
    transform: translateY(20px);
    animation: formFieldAppear 0.5s ease-out 0.6s forwards
}

@keyframes formFieldAppear {
    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.contact-form .input-field:focus {
    border-color: #ff36f2;
    box-shadow: 0 0 10px rgba(255, 54, 242, 0.5);
    transform: translateY(-2px)
}

input[type="time"]:focus {
    border-color: #ff36f2;
    box-shadow: 0 0 10px rgba(255, 54, 242, 0.5);
    transform: translateY(-2px)
}

.contact-form .btn {
    transition: all 0.3s var(--animation-easing)
}

.contact-form .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 54, 242, 0.4)
}

.footer-logo-container {
    animation: fadeIn 0.8s var(--animation-easing) forwards;
    opacity: 0
}

.footer-solutions {
    opacity: 0;
    transform: translateY(20px);
    animation: footerItemAppear 0.6s var(--animation-easing) forwards
}

.footer-solutions:nth-child(2) {
    animation-delay: 0.2s
}

.footer-solutions:nth-child(3) {
    animation-delay: 0.4s
}

.footer-solutions:nth-child(4) {
    animation-delay: 0.6s
}

.footer-solutions:nth-child(5) {
    animation-delay: 0.8s
}

@keyframes footerItemAppear {
    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.contact-social-media li {
    transition: all 0.3s var(--animation-easing)
}

.contact-social-media li:hover {
    transform: translateY(-5px) scale(1.2)
}

.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--animation-easing), transform 0.6s var(--animation-easing)
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0)
}

.preloader .line {
    animation: loadingPulse 1.5s infinite ease-in-out
}

@keyframes loadingPulse {

    0%,
    100% {
        transform: scaleY(0.3);
        opacity: 0.5
    }

    50% {
        transform: scaleY(1);
        opacity: 1
    }
}

.btn {
    transition: all 0.3s var(--animation-easing);
    position: relative;
    overflow: hidden
}

.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: 0.5s
}

.btn:hover::before {
    left: 100%
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 54, 242, 0.3)
}

.hover-lift {
    transition: transform 0.3s var(--animation-easing)
}

.hover-lift:hover {
    transform: translateY(-5px)
}

.hover-pop {
    transition: transform 0.3s var(--animation-easing)
}

.hover-pop:hover {
    transform: scale(1.05)
}

@media (max-width:768px) {
    .custom-image-item {
        animation: none;
        opacity: 1;
        transform: none
    }

    .how-to-book-section ol li {
        animation: none;
        opacity: 1;
        transform: none
    }

    .contact-form .input-field {
        animation: none;
        opacity: 1;
        transform: none
    }

    .footer-solutions {
        animation: none;
        opacity: 1;
        transform: none
    }
}