/* Simplified 3D Animation styles for most elements */
.animate-on-scroll {
    opacity: 0;
    transform: translate3d(0, 30px, -10px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* Enhanced 3D effect specifically for hdr-text */
.hdr-text.animate-on-scroll {
    opacity: 0;
    transform: translate3d(-50px, 80px, -100px) rotateX(25deg) rotateY(-5deg);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.13, 0.78, 0.42, 0.98);
    will-change: opacity, transform;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    filter: blur(3px);
}

.hdr-text.animate-on-scroll.animated {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateX(0) rotateY(0);
    filter: blur(0);
}

/* Smoother floating animation for big-txt */
/* Remove big-txt from the animate-on-scroll class and create a standalone floating effect */
.big-txt {
    display: inline-block;
    position: relative;
    z-index: 2;
    opacity: 1;
    /* Make it visible immediately */
    transform: rotate(-3deg);
    /* Slight tilt to the left */
    animation: smoothFloating 6s ease-in-out infinite;
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

@keyframes smoothFloating {
    0% {
        transform: translate3d(0, 0, 0) rotate(-3deg);
        /* Maintain the tilt throughout */
    }

    25% {
        transform: translate3d(3px, -6px, 10px) rotate(-3deg);
    }

    50% {
        transform: translate3d(0, 3px, 5px) rotate(-3deg);
    }

    75% {
        transform: translate3d(-3px, -3px, 8px) rotate(-3deg);
    }

    100% {
        transform: translate3d(0, 0, 0) rotate(-3deg);
    }
}

/* Rest of the CSS remains the same */

.big-txt.animated {
    animation: smoothFloating 6s ease-in-out infinite;
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}


/* Book-opening animation for news cards */
.news-content {
    perspective: 1200px;
    transform-style: preserve-3d;
}

.news-card-left.animate-on-scroll {
    opacity: 0;
    transform-origin: left center;
    transform: rotateY(90deg) translateZ(50px);
    transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.news-card-left.animate-on-scroll.animated {
    opacity: 1;
    transform: rotateY(0) translateZ(0);
}

.news-card-right.animate-on-scroll {
    opacity: 0;
    transform-origin: right center;
    transform: rotateY(-90deg) translateZ(50px);
    transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.news-card-right.animate-on-scroll.animated {
    opacity: 1;
    transform: rotateY(0) translateZ(0);
}

/* Card items inside news-card-right */
.card-item.one.animate-on-scroll {
    opacity: 0;
    transform-origin: right center;
    transform: rotateY(-70deg) translateZ(30px);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition-delay: 0.2s;
}

.card-item.two.animate-on-scroll {
    opacity: 0;
    transform-origin: right center;
    transform: rotateY(-70deg) translateZ(30px);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition-delay: 0.4s;
}

.card-item.animate-on-scroll.animated {
    opacity: 1;
    transform: rotateY(0) translateZ(0);
}

/* News header animation */
.hdr-news.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hdr-news.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* News card bottom animation */
.news-card-bottom.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: 0.6s;
}

.news-card-bottom.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Different delay classes for staggered animations */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-500 {
    transition-delay: 0.5s;
}

/* Spring animation for rabbit image */
.rabbit-img img {
    opacity: 0;
    transform: scale(0.01);
    /* Start from a tiny dot */
    transition: none;
    /* Prevent conflict with other transitions */
}

.rabbit-img img.animated {
    animation: springIn 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transform-origin: center center;
}

@keyframes springIn {
    0% {
        transform: scale(0.01);
        /* Start from a tiny dot */
        opacity: 0;
    }

    60% {
        transform: scale(1.2);
        /* Overshoot to 120% of original size */
        opacity: 1;
    }

    80% {
        transform: scale(0.9);
        /* Bounce back smaller */
    }

    90% {
        transform: scale(1.05);
        /* Bounce slightly larger again */
    }

    100% {
        transform: scale(1);
        /* Settle at original size */
        opacity: 1;
    }
}

/* Animation for advantages section header */
.advan-block-hdr {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.advan-block-hdr.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Block description animation */
.block-descrip {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.block-descrip.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Circle animation */
.block-descrip .circle {
    opacity: 0;
    transform: scale(0.5) rotate(-15deg);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition-delay: 0.1s;
}

.block-descrip.animated .circle {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* Circle image animation */
.block-descrip .circle img {
    opacity: 0;
    transform: scale(0.7) rotate(30deg);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition-delay: 0.3s;
}

.block-descrip.animated .circle img {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* Square animation */
.block-descrip .square {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition-delay: 0.4s;
}

.block-descrip.animated .square {
    opacity: 1;
    transform: translateY(0) scale(1);
}


/* Apply different delays to create a wave effect */
.blocks-row:nth-child(2) .block-descrip:nth-child(1) {
    transition-delay: 0.1s;
}

.blocks-row:nth-child(2) .block-descrip:nth-child(2) {
    transition-delay: 0.2s;
}

.blocks-row:nth-child(2) .block-descrip:nth-child(3) {
    transition-delay: 0.3s;
}

.blocks-row:nth-child(3) .block-descrip:nth-child(1) {
    transition-delay: 0.4s;
}

.blocks-row:nth-child(3) .block-descrip:nth-child(2) {
    transition-delay: 0.5s;
}

.blocks-row:nth-child(3) .block-descrip:nth-child(3) {
    transition-delay: 0.6s;
}

/* FAQ Section Animations */
.container-faq {
    perspective: 1000px;
}

.faq-block {
    opacity: 0;
    transform: translateX(-30px) rotateY(-10deg);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: left center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0);
    transition-property: opacity, transform, box-shadow;
}

.faq-block.animated {
    opacity: 1;
    transform: translateX(0) rotateY(0);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Staggered animation for FAQ blocks */
.faq-block:nth-child(1) {
    transition-delay: 0.1s;
}

.faq-block:nth-child(2) {
    transition-delay: 0.2s;
}

.faq-block:nth-child(3) {
    transition-delay: 0.3s;
}

.faq-block:nth-child(4) {
    transition-delay: 0.4s;
}

.faq-block:nth-child(5) {
    transition-delay: 0.5s;
}

.faq-block:nth-child(6) {
    transition-delay: 0.6s;
}

.faq-block:nth-child(7) {
    transition-delay: 0.7s;
}

.faq-block:nth-child(8) {
    transition-delay: 0.8s;
}

/* FAQ question animation */
.faq-ask {
    position: relative;
    z-index: 2;
}

.faq-ask p {
    transform: translateX(-10px);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
    transition-delay: 0.2s;
}

.faq-block.animated .faq-ask p {
    transform: translateX(0);
    opacity: 1;
}




/* Hover effect for FAQ blocks */
.faq-block.animated:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}



/* FAQ answer animation */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.5s ease, opacity 0.5s ease, transform 0.5s ease, padding 0.5s ease;
}

.faq-block.active .faq-answer {
    opacity: 1;
    transform: translateY(0);
}

/* Info Block Section Animations */
.container-info {
    perspective: 1200px;
}

.info {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-style: preserve-3d;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0);
    transition-property: opacity, transform, box-shadow;
}

.info.animated {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.info:nth-child(1) {
    transition-delay: 0.1s;
    transform-origin: center bottom;
}

.info:nth-child(2) {
    transition-delay: 0.3s;
    transform-origin: center bottom;
}

.info:nth-child(3) {
    transition-delay: 0.5s;
    transform-origin: center bottom;
}

.info img {
    opacity: 0;
    transform: translateY(-20px) scale(0.8) rotateY(30deg);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition-delay: 0.2s;
}

.info.animated img {
    opacity: 1;
    transform: translateY(0) scale(1) rotateY(0);
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.15));
}

/* Info block heading animation */
.info h1 {
    opacity: 0;
    transform: translateX(-15px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition-delay: 0.4s;
}

.info.animated h1 {
    opacity: 1;
    transform: translateX(0);
}

/* Info block paragraph animation */
.info p {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    transition-delay: 0.5s;
}

.info.animated p {
    opacity: 1;
    transform: translateY(0);
}

/* Different delay for multiple paragraphs */
.info p:nth-of-type(2) {
    transition-delay: 0.6s;
}

.info p:nth-of-type(3) {
    transition-delay: 0.7s;
}

/* Hover effect for info blocks */
.info.animated:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.info.animated:hover img {
    transform: translateY(-5px) scale(1.05) rotateY(0);
    transition: transform 0.4s ease, filter 0.4s ease;
}