/* Hero Section Enhancements */

/* Red Gradient Background */
.hero-enhanced {
    position: relative;
    background: linear-gradient(135deg, #DC2626 0%, #EF4444 50%, #FCA5A5 100%) !important;
    overflow: hidden;
}

/* show image on web  */
.hero-enhanced .hero-gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./../../assets/images/banner/indian-scan-building.jpg') no-repeat center center;
    z-index: 0;
    opacity: 0.95;
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
}

.hero-enhanced .auto-container {
    position: relative;
    z-index: 2;
    overflow: visible;
}

.hero-enhanced .inner-box {
    position: relative;
}

/* Make image column extend to edge */
.hero-enhanced .row {
    margin: 0;
}

.hero-enhanced .hero-image-column {
    padding-right: 0 !important;
}

/* Hide the background image style */
.hero-enhanced[style*="background-image"] {
    background-image: none !important;
}

/* Hero Image Styling - Blended with gradient, 3D effect */
.hero-enhanced .hero-image-column {
    padding: 0 !important;
    position: relative;
}

.hero-enhanced .image-box {
    position: absolute;
    right: -15px;
    top: 0;
    bottom: 0;
    width: calc(50% + 15px);
    z-index: 1;
    padding: 0;
    margin: 0;
    height: 100%;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1200px;
}

.hero-enhanced .image-box .image {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    transform: perspective(1200px) rotateY(-8deg) translateZ(50px);
    transition: transform 0.6s ease;
}

.hero-enhanced .image-box:hover .image {
    transform: perspective(1200px) rotateY(-5deg) translateZ(80px);
}

.hero-enhanced .image-box .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    display: block;
    border-radius: 0;
    margin: 0;
    padding: 0;
    filter: brightness(1.05) contrast(1.1);
}

/* Gradient overlay to blend image with background */
.hero-enhanced .image-box .image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to left,
        rgba(220, 38, 38, 0.4) 0%,
        rgba(239, 68, 68, 0.2) 30%,
        rgba(252, 165, 165, 0.1) 60%,
        transparent 100%
    );
    z-index: 2;
    pointer-events: none;
}

/* 3D depth shadow effect */
.hero-enhanced .image-box::after {
    content: '';
    position: absolute;
    left: -30px;
    top: 10%;
    /* bottom: 10%; */
    width: 30px;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.15),
        transparent
    );
    transform: perspective(1200px) rotateY(90deg);
    transform-origin: left center;
    z-index: 0;
    filter: blur(10px);
}

@media (min-width: 1200px) {
    .hero-enhanced .image-box {
        right: -30px;
        width: calc(50% + 30px);
    }
    
    .banner-style-three.hero-enhanced .inner-box {
        padding: 120px 0px 90px 0px !important;
    }
}

/* Further reduce padding on desktop */
@media (min-width: 1400px) {
    .banner-style-three.hero-enhanced .inner-box {
        padding: 130px 0px 100px 0px !important;
    }
}

@media (max-width: 991px) {
    .hero-enhanced .image-box {
        position: relative;
        right: -15px;
        width: calc(100% + 30px);
        height: 350px;
        margin-top: 40px;
    }
    
    .hero-enhanced .image-box .image {
        height: 100%;
        position: relative;
    }
}

/* Text Animation Classes */
.hero-animate-1 {
    opacity: 0;
    transform: translateY(-30px);
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.hero-animate-2 {
    opacity: 0;
    transform: translateY(-30px);
    animation: fadeInUp 0.8s ease 0.4s forwards;
}


.hero-animate-3 {
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

.hero-animate-4 {
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInUp 0.8s ease 0.8s forwards;
}

.hero-animate-5 {
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInUp 0.8s ease 1s forwards;
}

.hero-image-animate {
    opacity: 0;
    transform: translateX(50px) scale(0.9);
    animation: fadeInRight 1s ease 0.5s forwards;
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Content Styling */
.hero-enhanced .content-box {
    position: relative;
    z-index: 3;
}

.hero-enhanced .content-box .sub-title {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-enhanced .content-box .sub-title:before {
    background: rgba(255, 255, 255, 1) !important;
}

.hero-enhanced .content-box h2 {
    color: #fff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    font-weight: 800;
}

.hero-enhanced .content-box h2 span {
    color: rgba(255, 255, 255, 0.98);
    display: block;
    margin-top: 5px;
}

.hero-enhanced .content-box p {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.25);
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1199px) {
    .hero-enhanced .image-box {
        perspective: 1000px;
    }
    
    .hero-enhanced .image-box .image {
        transform: perspective(1000px) rotateY(-6deg) translateZ(30px);
    }
    
    .hero-enhanced .image-box:hover .image {
        transform: perspective(1000px) rotateY(-4deg) translateZ(50px);
    }
}

@media (max-width: 991px) {
    .hero-enhanced .hero-image-column {
        margin-top: 40px;
        padding: 0 15px !important;
    }
    
    .hero-enhanced .content-column {
        order: 2;
        text-align: center;
        vertical-align: end;
    }
    
    .hero-enhanced .image-box {
        position: relative;
        right: -15px;
        width: calc(100% + 30px);
        height: 350px;
        padding: 0;
        transform-style: flat;
        perspective: none;
    }
    
    .hero-enhanced .image-box .image {
        border-radius: 0;
        height: 100%;
        transform: none !important;
        position: relative;
    }
    
    .hero-enhanced .image-box:hover .image {
        transform: none !important;
    }
    
    .hero-enhanced .image-box .image img {
        border-radius: 0;
    }
    
    .hero-enhanced .image-box::after {
        display: none;
    }
    
    .hero-image-animate {
        animation: fadeInUp 1s ease 0.3s forwards;
        transform: translateY(30px) scale(0.95);
    }
}

@media (max-width: 767px) {
    .banner-style-three.hero-enhanced .inner-box {
        padding: 80px 0 60px 0 !important;
    }
    
    .hero-enhanced .content-box h2 {
        font-size: 42px !important;
        line-height: 52px !important;
    }
    
    .hero-enhanced .content-box h2 span {
        font-size: 36px !important;
    }
    
    .hero-enhanced .content-box p {
        font-size: 16px !important;
        line-height: 26px !important;
    }
    
    .hero-enhanced .hero-image-column {
        padding: 0 15px !important;
    }
    
    .hero-enhanced .image-box {
        padding: 0;
        height: 300px;
    }
    
    .hero-enhanced .image-box .image {
        border-radius: 0;
        height: 100%;
    }
    
    .hero-enhanced .image-box .image img {
        border-radius: 0;
    }
}

@media (max-width: 599px) {
    .banner-style-three.hero-enhanced .inner-box {
        padding: 70px 0 50px 0 !important;
    }
    
    .hero-enhanced .content-box h2 {
        font-size: 36px !important;
        line-height: 46px !important;
        margin-bottom: 15px !important;
    }
    
    .hero-enhanced .content-box h2 span {
        font-size: 30px !important;
    }
    
    .hero-enhanced .content-box .sub-title {
        font-size: 14px !important;
        margin-bottom: 15px !important;
    }
    
    .hero-enhanced .content-box p {
        font-size: 15px !important;
        line-height: 24px !important;
        margin-bottom: 25px !important;
    }
    
    .hero-enhanced .hero-image-column {
        padding: 0 15px !important;
    }
    
    .hero-enhanced .image-box {
        padding: 0;
        margin-top: 20px;
        height: 250px;
    }
    
    .hero-enhanced .image-box .image {
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    .banner-style-three.hero-enhanced .inner-box {
        padding: 60px 0 40px 0 !important;
    }
    
    .hero-enhanced .image-box::after {
        display: none;
    }
    
    .hero-enhanced .content-box h2 {
        font-size: 32px !important;
        line-height: 42px !important;
    }
    
    .hero-enhanced .content-box h2 span {
        font-size: 26px !important;
        display: block;
        margin-top: 5px;
    }
    
    .hero-enhanced .image-box {
        height: 200px;
    }
}

/* Ensure container allows overflow for image to extend */
.hero-enhanced {
    overflow: visible;
    position: relative;
}

.hero-enhanced .auto-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
}

.hero-enhanced .inner-box {
    position: relative;
    overflow: visible;
}

@media (min-width: 1200px) {
    .hero-enhanced .auto-container {
        padding: 0 30px;
    }
}

/* Make sure row allows overflow */
.hero-enhanced .row {
    position: relative;
    overflow: visible;
}
