/* ==========================================================
   DISTINCT, THICK, & ULTRA-SLOW MODERN ANIMATIONS
   ========================================================== */

/* Common base container setup */
.wellness-img,
.services-img {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    perspective: 1000px;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.6s ease;
    will-change: transform;
    background-color: #fff3cd;
}
.text-red{color:#2d5f3f;}
.wellness-img img,
.services-img img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    transform: scale(1);
    transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1), filter 0.6s ease;
    will-change: transform;
}

/* Base Hover Pop & Tilt */
.wellness-img:hover,
.services-img:hover {
    transform: translateY(-8px) rotateX(2deg) rotateY(-2deg);
    box-shadow: 0 22px 45px rgba(232, 93, 4, 0.22), 0 8px 16px rgba(0, 0, 0, 0.1);
}

.wellness-img:hover img,
.services-img:hover img {
    transform: scale(1.08);
    filter: brightness(1.08) contrast(1.03);
}


/* --- ANIMATION 1: WIDE SHUTTER SLIDE (For Image 1) --- */
.wellness-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg, 
        transparent 0%, 
        rgba(255, 183, 3, 0.45) 45%, 
        rgba(255, 183, 3, 0.65) 50%, 
        transparent 100%
    );
    opacity: 0;
    transform: translateX(-100%);
    transition: transform 3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
    pointer-events: none;
}

.wellness-img:hover::after {
    opacity: 1;
    transform: translateX(100%);
}


/* --- ANIMATION 2: CORNER LIQUID BLEED (For Image 2) --- */
.services-section-six .row:first-of-type .services-img::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at bottom left, 
        var(--secondary, #ffb703) 0%, 
        rgba(255, 183, 3, 0.3) 40%, 
        transparent 70%
    );
    opacity: 0;
    transform: scale(0.5);
    transition: transform 3.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
    pointer-events: none;
}

.services-section-six .row:first-of-type .services-img:hover::after {
    opacity: 0.6;
    transform: scale(1);
}


/* --- ANIMATION 3: REVERSE DIAGONAL WAVE (For Image 3) --- */
.services-section-six .row:last-of-type .services-img::after {
    content: '';
    position: absolute;
    inset: -60%;
    background: linear-gradient(
        225deg, 
        transparent 25%, 
        var(--secondary, #ffb703) 50%, 
        transparent 75%
    );
    opacity: 0;
    transform: translateX(120%) translateY(-120%) rotate(-15deg);
    transition: transform 3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
    pointer-events: none;
}

.services-section-six .row:last-of-type .services-img:hover::after {
    opacity: 0.55;
    transform: translateX(-120%) translateY(120%) rotate(-15deg);
}

/* ==========================================================
   4 EXPERT CARDS: UNIQUE, THICK, & ULTRA-SLOW ANIMATIONS
   ========================================================== */

/* Base container setup for 3D depth and smooth transitions */
.expert-profile-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.6s ease, border-color 0.6s ease;
    will-change: transform;
}

.expert-profile-card .image-wrapper {
    position: relative;
    overflow: hidden;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.expert-profile-card img {
    width: 100%;
    height: auto;
    transform: scale(1);
    transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1), filter 0.6s ease;
    will-change: transform;
}

/* Global Card Hover Pop & Tilt */
.expert-profile-card:hover {
    transform: translateY(-8px) rotateX(2deg) rotateY(-2deg);
    box-shadow: 0 22px 45px rgba(232, 93, 4, 0.22), 0 8px 16px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 183, 3, 0.3);
}

.expert-profile-card:hover img {
    transform: scale(1.08);
    filter: brightness(1.08) contrast(1.03);
}


/* --- CARD 1 (Vegetarian Nachos): WIDE SLOW DIAGONAL WAVE --- */
.col-md-6.col-lg-6:nth-child(1) .expert-profile-card .image-wrapper::after {
    content: '';
    position: absolute;
    inset: -60%;
    background: linear-gradient(
        135deg, 
        transparent 20%, 
        var(--secondary, #ffb703) 50%, 
        transparent 80%
    );
    opacity: 0;
    transform: translateX(-120%) translateY(-120%) rotate(30deg);
    transition: transform 2.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease;
    pointer-events: none;
}

.col-md-6.col-lg-6:nth-child(1) .expert-profile-card:hover .image-wrapper::after {
    opacity: 0.55;
    transform: translateX(120%) translateY(120%) rotate(30deg);
}


/* --- CARD 2 (Chicken Tacos): THICK RADIAL BLOOM PULSE --- */
.col-md-6.col-lg-6:nth-child(2) .expert-profile-card .image-wrapper::after {
    content: '';
    position: absolute;
    inset: -20%;
    background: radial-gradient(
        circle, 
        var(--secondary, #ffb703) 0%, 
        rgba(255, 183, 3, 0.25) 50%, 
        transparent 80%
    );
    opacity: 0;
    transform: scale(0.4);
    transition: transform 3s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease;
    pointer-events: none;
    border-radius: 50%;
}

.col-md-6.col-lg-6:nth-child(2) .expert-profile-card:hover .image-wrapper::after {
    opacity: 0.5;
    transform: scale(1.8);
}


/* --- CARD 3 (Vegetable Burrito): WIDE SHUTTER SLIDE --- */
.col-md-6.col-lg-6:nth-child(3) .expert-profile-card .image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg, 
        transparent 0%, 
        rgba(255, 183, 3, 0.45) 45%, 
        rgba(255, 183, 3, 0.65) 50%, 
        transparent 100%
    );
    opacity: 0;
    transform: translateX(-100%);
    transition: transform 3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
    pointer-events: none;
}

.col-md-6.col-lg-6:nth-child(3) .expert-profile-card:hover .image-wrapper::after {
    opacity: 1;
    transform: translateX(100%);
}


/* --- CARD 4 (Jalapeno Poppers): CORNER LIQUID BLEED --- */
.col-md-6.col-lg-6:nth-child(4) .expert-profile-card .image-wrapper::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at bottom right, 
        var(--secondary, #ffb703) 0%, 
        rgba(255, 183, 3, 0.3) 40%, 
        transparent 70%
    );
    opacity: 0;
    transform: scale(0.5);
    transition: transform 3.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
    pointer-events: none;
}

.col-md-6.col-lg-6:nth-child(4) .expert-profile-card:hover .image-wrapper::after {
    opacity: 0.6;
    transform: scale(1);
}

/* ==========================================================
   ABOUT SECTION: TALL/PORTRAIT 3-IMAGE HOVER ANIMATIONS
   ========================================================== */

/* Main outer container with clip bounds */
.about-img-six {
    position: relative;
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    overflow: hidden; /* Clips flash sweep outside image bounds */
}

/* Common Image Base Styling */
.about-img-six img {
    border-radius: 16px;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.6s ease, filter 0.6s ease;
    will-change: transform;
    cursor: pointer;
}

/* Hover Lift & Elevation Shadow for Images */
.about-img-six img:hover {
    transform: translateY(-12px) scale(1.03) !important;
    box-shadow: 0 25px 50px rgba(232, 93, 4, 0.28), 0 10px 20px rgba(0, 0, 0, 0.15);
    z-index: 10;
    filter: brightness(1.08) contrast(1.04);
}


/* --- IMAGE 1 (.about-01): ULTRA-SLOW DIAGONAL WAVE --- */
.about-img-six::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -150%;
    width: 120%;
    height: 200%;
    background: linear-gradient(
        135deg, 
        transparent 20%, 
        var(--secondary, #ffb703) 50%, 
        transparent 80%
    );
    opacity: 0;
    transform: rotate(25deg);
    transition: transform 2.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease;
    pointer-events: none;
    z-index: 11;
}

.about-img-six:has(.about-01:hover)::before {
    opacity: 0.55;
    transform: translateX(350%) rotate(25deg); /* Sweeps completely out of view */
}


/* --- IMAGE 2 (.about-02): ULTRA-SLOW VERTICAL TOP-TO-BOTTOM WASH --- */
.about-img-six::after {
    content: '';
    position: absolute;
    top: -120%;
    left: 33%; /* Centers over the middle image */
    width: 33%;
    height: 120%;
    background: linear-gradient(
        to bottom, 
        transparent 10%, 
        var(--secondary, #ffb703) 50%, 
        transparent 90%
    );
    opacity: 0;
    transform: translateY(0);
    transition: transform 2.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease;
    pointer-events: none;
    z-index: 11;
}

.about-img-six:has(.about-02:hover)::after {
    opacity: 0.5;
    transform: translateY(220%); /* Sweeps completely down and out of view */
}


/* ==========================================================
   BLOG SECTION: HIGH-END CINEMATIC HOVER ANIMATIONS
   ========================================================== */

/* Base card container setup */
.blog-item-six {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(226, 234, 252, 0.8);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.6s ease, border-color 0.6s ease;
    will-change: transform;
}

.blog-item-six .blog-img {
    position: relative;
    overflow: hidden;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.blog-item-six img {
    width: 100%;
    height: auto;
    transform: scale(1);
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), filter 0.6s ease;
    will-change: transform;
}


/* --- BLOG CARD 1: VIGNETTE FADE & CINEMATIC ZOOM --- */
.col-lg-4:nth-child(1) .blog-item-six .blog-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, transparent 40%, rgba(0, 0, 0, 0.45) 100%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.col-lg-4:nth-child(1) .blog-item-six:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.col-lg-4:nth-child(1) .blog-item-six:hover .blog-img::after {
    opacity: 1;
}

.col-lg-4:nth-child(1) .blog-item-six:hover img {
    transform: scale(1.1);
    filter: brightness(1.05);
}


/* --- BLOG CARD 2: WARM AMBER LENS TINT --- */
.col-lg-4:nth-child(2) .blog-item-six .blog-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--secondary, #ffb703);
    opacity: 0;
    mix-blend-mode: overlay;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.col-lg-4:nth-child(2) .blog-item-six:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(255, 183, 3, 0.2);
    border-color: var(--secondary, #ffb703);
}

.col-lg-4:nth-child(2) .blog-item-six:hover .blog-img::after {
    opacity: 0.4;
}

.col-lg-4:nth-child(2) .blog-item-six:hover img {
    transform: scale(1.07);
    filter: saturate(1.15);
}


/* --- BLOG CARD 3: 3D PERSPECTIVE ELEVATION & BACKLIT GLOW --- */
.col-lg-4:nth-child(3) .blog-item-six {
    perspective: 1000px;
}

.col-lg-4:nth-child(3) .blog-item-six:hover {
    transform: translateY(-10px) rotateX(2deg) rotateY(-2deg);
    box-shadow: 0 25px 50px rgba(232, 93, 4, 0.22), 0 0 15px rgba(255, 183, 3, 0.3);
    border-color: rgba(255, 183, 3, 0.5);
}

.col-lg-4:nth-child(3) .blog-item-six:hover img {
    transform: scale(1.08) rotate(1deg);
    filter: contrast(1.05) brightness(1.05);
}


/* ==========================================================
   ABOUT ONE SECTION: INDEPENDENT SQUARE FLASH ANIMATIONS
   ========================================================== */

.sub-about-image .img-box-1,
.sub-about-image .img-box-2,
.sub-about-image .img-box-3 {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
}

.sub-about-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.5s ease;
    will-change: transform;
}


/* --- IMAGE 1 (about-1.webp): EXPANDING CENTER SQUARE FLASH --- */
.sub-about-image .img-box-1::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0px;
    height: 0px;
    background: rgba(255, 183, 3, 0.45);
    border: 3px solid var(--secondary, #ffb703);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: width 1.8s cubic-bezier(0.16, 1, 0.3, 1), 
                height 1.8s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 0.4s ease; /* Fast fade-out on unhover */
    pointer-events: none;
    z-index: 5;
}

.sub-about-image .img-box-1:hover::before {
    width: 130%;
    height: 130%;
    opacity: 0.65;
}

.sub-about-image .img-box-1:hover img {
    transform: scale(1.03);
    filter: brightness(1.06);
}


/* ==========================================================
   IMAGE 2 (about-2.webp): CENTER-OUTWARD 4-SIDED SQUARE FLASH
   ========================================================== */

.sub-about-image .img-box-2::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: rgba(255, 183, 3, 0.45);
    border: 2px solid var(--secondary, #ffb703);
    box-shadow: 0 0 25px rgba(255, 183, 3, 0.5);
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: transform 2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease; /* Fast fade-out on unhover */
    pointer-events: none;
    z-index: 5;
    border-radius: 4px;
}

.sub-about-image .img-box-2:hover::before {
    opacity: 0.75;
    transform: translate(-50%, -50%) scale(16);
}

.sub-about-image .img-box-2:hover img {
    transform: scale(1.04);
    filter: brightness(1.06);
}


/* --- IMAGE 3 (about-3.webp): ROTATING & GROWING SQUARE FLASH --- */
.sub-about-image .img-box-3::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: rgba(255, 183, 3, 0.4);
    border: 2px solid var(--secondary, #ffb703);
    transform: translate(-50%, -50%) scale(0) rotate(0deg);
    opacity: 0;
    transition: transform 2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease; /* Fast fade-out on unhover */
    pointer-events: none;
    z-index: 5;
}

.sub-about-image .img-box-3:hover::before {
    opacity: 0.65;
    transform: translate(-50%, -50%) scale(25) rotate(45deg);
}

.sub-about-image .img-box-3:hover img {
    transform: scale(1.04);
    filter: brightness(1.06);
}