/* AI & ML Page Specific Styles */

.ai-ml-page {
    background-color: #FFFFFF;
}

/* Shared background blending for AI & ML page
   Each section keeps its own gradient but bleeds and soft-fades
   so colors blend smoothly between sections (like index.php). */
.ai-ml-page .staff-hero,
.ai-ml-page .cases-section.slider-section,
.ai-ml-page .advantage-section,
.ai-ml-page .services-overview-section,
.ai-ml-page .benefits-section,
.ai-ml-page .choose-us-section {
    overflow: visible;
}

.ai-ml-page .staff-hero-bg,
.ai-ml-page .cases-section.slider-section .team-hero-bg,
.ai-ml-page .advantage-bg,
.ai-ml-page .services-overview-bg,
.ai-ml-page .benefits-section .benefits-bg,
.ai-ml-page .choose-us-bg {
    /* Full-width gradient layer (edge-to-edge, no side gaps) */
    width: 120vw !important;
    left: 50% !important;
    transform: translateX(-50%) !important;

    /* Soft fade at top/bottom to avoid hard edges */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 86%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 86%, transparent 100%);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

/* Section 1: Hero Section */
.ai-ml-page .staff-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    background: transparent;
    overflow: visible;
}

.ai-ml-page .staff-hero-bg {
    position: absolute;
    width: 1440px;
    height: 1000px;
    left: calc(50% - 1440px/2);
    top: -120px;
    background: linear-gradient(108.44deg, #FEDFC3 18.86%, rgba(254, 223, 195, 0) 93.35%, rgba(254, 223, 195, 0) 93.35%);
    filter: blur(150px);
    z-index: 1;
    pointer-events: none;
}

.ai-ml-page .staff-hero::after {
    content: '';
    position: absolute;
    width: 336px;
    height: 314px;
    right: -205px;
    bottom: 20%;
    background: rgba(254, 223, 195, 0.6);
    filter: blur(150px);
    border-radius: 1000px;
    z-index: 1;
    pointer-events: none;
}

.ai-ml-page .staff-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0px;
    gap: 40px;
    position: relative;
    z-index: 2;
    max-width: 1140px;
}

.ai-ml-page .staff-hero-heading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0px;
    gap: 40px;
    width: 946px;
}

.ai-ml-page .staff-hero-title {
    width: 946px;
    font-family: 'Manrope', sans-serif;
    font-style: normal;
    font-weight: 800;
    font-size: 50px;
    line-height: 60px;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    background: linear-gradient(90deg, #202333 0%, #FA8B26 90.87%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.ai-ml-page .staff-hero-description {
    width: 946px;
    font-family: 'Manrope', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 18px;
    line-height: 30px;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    color: #202333;
    margin: 0;
}

/* Section 3: Advantage Section */
.ai-ml-page .advantage-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 24px;
    background-color: transparent;
    overflow: visible;
}

.ai-ml-page .advantage-bg {
    position: absolute;
    width: 1440px;
    height: 1000px;
    left: calc(50% - 1440px/2);
    top: -200px;
    background: linear-gradient(108.44deg, rgba(229, 252, 246, 0.8) 18.86%, rgba(229, 252, 246, 0) 93.35%);
    filter: blur(200px);
    z-index: 1;
    pointer-events: none;
}

.ai-ml-page .advantage-section::before {
    content: '';
    position: absolute;
    width: 231.92px;
    height: 248px;
    right: 0px;
    bottom: 20%;
    background: rgba(229, 252, 246, 0.6);
    filter: blur(150px);
    border-radius: 124px;
    z-index: 1;
    pointer-events: none;
}

.ai-ml-page .advantage-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 48px;
    line-height: 1.2;
    text-align: center;
    background: linear-gradient(90deg, #202333 0%, #34C9A0 90.87%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.ai-ml-page .advantage-card {
    background: #FFFFFF;
    box-shadow: 0px 16px 36px rgba(32, 35, 51, 0.1);
    border-radius: 20px;
    padding: 31px 26px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    height: 182px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.ai-ml-page .advantage-card .card-icon {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    pointer-events: none;
}

.ai-ml-page .advantage-card .card-icon img {
    width: 77px;
    height: 72px;
    object-fit: contain;
    /* filter: brightness(0) saturate(100%) invert(80%) sepia(20%) saturate(600%) hue-rotate(110deg) brightness(95%) contrast(85%); */
}

.ai-ml-page .card-number {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 42px;
    line-height: 52px;
    color: #202333;
    margin: 0;
}

.ai-ml-page .card-label {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 19px;
    color: #202333;
    margin-top: 5px;
}

/* Section 4: AI Solutions (Services Overview) */
.ai-ml-page .services-overview-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 24px;
    background-color: transparent;
    overflow: visible;
}

.ai-ml-page .services-overview-bg {
    position: absolute;
    width: 1439px;
    height: 1100px;
    left: -1px;
    top: -200px;
    background: linear-gradient(108.44deg, #EDE7FF 18.86%, rgba(237, 231, 255, 0) 93.35%);
    filter: blur(200px);
    z-index: 1;
    pointer-events: none;
}

.ai-ml-page .services-overview-section::after {
    content: '';
    position: absolute;
    width: 241.68px;
    height: 248px;
    right: -91.68px;
    bottom: 20%;
    background: rgba(229, 252, 246, 0.5);
    filter: blur(150px);
    border-radius: 124px;
    z-index: 1;
    pointer-events: none;
}

.ai-ml-page .services-overview-container {
    position: relative;
    z-index: 2;
    max-width: 1141px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ai-ml-page .services-overview-header {
    margin-bottom: 60px;
    text-align: center;
    max-width: 1012px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ai-ml-page .services-overview-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 40px;
    line-height: 45px;
    background: linear-gradient(90deg, #202333 0%, #B098F2 90.87%), #202333;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.ai-ml-page .services-overview-subtitle {
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 28px;
    color: #202333;
    margin: 0;
}

.ai-ml-page .services-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px 26px;
    width: 100%;
}

.ai-ml-page .service-overview-card {
    background: linear-gradient(180deg, rgba(176, 152, 242, 0.08) 0%, rgba(176, 152, 242, 0) 100%), #FFFFFF;
    box-shadow: 0px 14px 34px rgba(7, 45, 81, 0.12);
    border-radius: 20px;
    height: 110px;
    display: flex;
    align-items: center;
    padding: 0 35px;
    position: relative;
    transition: transform 0.3s ease;
}

.ai-ml-page .service-overview-card:hover {
    transform: translateY(-5px);
}

.ai-ml-page .service-icon {
    width: 40px;
    height: 40px;
    margin-right: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ai-ml-page .service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Apply color #B098F2 only to SVGs as PNGs are already colored */
    /* filter: brightness(0) saturate(100%) invert(75%) sepia(21%) saturate(1478%) hue-rotate(213deg) brightness(101%) contrast(92%); */
}

.ai-ml-page .service-icon img[src$=".png"] {
    filter: none !important;
}

.ai-ml-page .service-text h3 {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 30px;
    color: #202333;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .ai-ml-page .services-overview-grid {
        grid-template-columns: 1fr;
    }

    .ai-ml-page .service-overview-card {
        max-width: 100%;
    }

    .ai-ml-page .staff-hero-heading-container,
    .ai-ml-page .staff-hero-title,
    .ai-ml-page .staff-hero-description {
        width: 100%;
        padding: 0 24px;
    }

    .ai-ml-page .advantage-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ai-ml-page .staff-hero-title {
        font-size: 36px;
        line-height: 1.2;
    }

    .ai-ml-page .staff-hero-description {
        font-size: 16px;
        line-height: 1.6;
    }

    .ai-ml-page .services-overview-title {
        font-size: 32px;
        line-height: 1.2;
    }
}

@media (max-width: 480px) {
    .ai-ml-page .advantage-grid {
        grid-template-columns: 1fr;
    }

    .ai-ml-page .advantage-title {
        font-size: 32px;
    }
}

/* Section 5: Benefits Slider Specifics */
.ai-ml-page .benefits-section {
    position: relative;
    background: transparent;
}

.ai-ml-page .benefits-section .benefits-bg {
    position: absolute;
    width: 1439px;
    height: 1000px;
    left: 0;
    top: -200px;
    background: linear-gradient(108.44deg, #FEDFC3 18.86%, rgba(254, 223, 195, 0) 93.35%);
    filter: blur(150px);
    opacity: 0.8;
}

.ai-ml-page .benefits-sticky-wrapper {
    overflow: visible;
}

/* Secondary blob for Benefits section */
.ai-ml-page .benefits-section::after {
    content: '';
    position: absolute;
    width: 266.56px;
    height: 248px;
    left: -133px;
    bottom: 0;
    background: rgba(237, 231, 255, 0.4);
    filter: blur(150px);
    border-radius: 124px;
    z-index: 1;
    pointer-events: none;
}

.ai-ml-page .benefits-title {
    background: linear-gradient(90deg, #202333 0%, #FA8B26 90.87%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Scoped card themes for AI-ML Benefits */
.ai-ml-page .benefit-purple {
    background: linear-gradient(180deg, rgba(176, 152, 242, 0.15) 0%, rgba(176, 152, 242, 0) 100%), #FFFFFF !important;
    box-shadow: 0px 14px 34px rgba(37, 61, 73, 0.15) !important;
}

.ai-ml-page .benefit-green {
    background: linear-gradient(180deg, rgba(52, 201, 160, 0.15) 0%, rgba(52, 201, 160, 0) 100%), #FFFFFF !important;
    box-shadow: 0px 14px 34px rgba(37, 61, 73, 0.15) !important;
}

.ai-ml-page .benefit-blue {
    background: linear-gradient(180deg, rgba(58, 137, 248, 0.15) 0%, rgba(58, 137, 248, 0) 100%), #FFFFFF !important;
    box-shadow: 0px 14px 34px rgba(37, 61, 73, 0.15) !important;
}

.ai-ml-page .benefit-orange {
    background: linear-gradient(180deg, rgba(250, 139, 38, 0.15) 0%, rgba(250, 139, 38, 0) 100%), #FFFFFF !important;
    box-shadow: 0px 14px 30px rgba(37, 61, 73, 0.08) !important;
}

.ai-ml-page .benefit-icon img {
    filter: none !important;
    opacity: 0.9 !important;
    /* Increased opacity to fix visibility issue */
}

@media (max-width: 768px) {
    .ai-ml-page .benefits-title {
        font-size: 32px;
        line-height: 1.2;
    }
}

/* Section 6: Why Choose Envistudios for AI & ML */
.ai-ml-page .choose-us-section {
    position: relative;
    background: transparent;
}

/* Section 6: Why Choose Envistudios for AI & ML */
.ai-ml-page .ai-choose-us-section {
    position: relative;
    background-color: transparent;
    overflow: visible;
}

.ai-ml-page .ai-choose-us-bg {
    position: absolute;
    width: 1800px;
    height: 1000px;
    left: calc(50% - 1800px/2);
    top: -100px;
    background: linear-gradient(108.69deg, #CCE1FF 19.06%, rgba(204, 225, 255, 0) 94.33%);
    filter: blur(300px);
    opacity: 0.7;
    z-index: 1;
    pointer-events: none;
    animation: bgDrift 20s infinite alternate ease-in-out;
}

.ai-ml-page .ai-choose-us-overlay-circle {
    position: absolute;
    width: 282px;
    height: 268px;
    right: -50px;
    bottom: 20%;
    transform: translateY(20%);
    background: rgba(186, 221, 255, 0.4);
    filter: blur(150px);
    border-radius: 1000px;
    z-index: 1;
    pointer-events: none;
    animation: bgDrift 16s infinite alternate-reverse ease-in-out;
}

.ai-ml-page .ai-choose-us-title {
    background: linear-gradient(90deg, #202333 0%, #3A89F8 90.87%), #202333;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-size: 40px;
    line-height: 45px;
    font-weight: 800;
}

.ai-ml-page .ai-choose-us-title .choose-us-title-accent {
    color: #3A89F8;
    -webkit-text-fill-color: #3A89F8;
}

.ai-ml-page .choose-us-container {
    position: relative;
    z-index: 2;
    max-width: 1140px;
    width: 100%;
}

.ai-ml-page .choose-us-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    flex-wrap: nowrap;
    width: 100%;
}

.ai-ml-page .choose-card {
    width: 265px;
    flex: 0 0 265px;
    height: 340px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Icons are already colored PNGs — remove any inherited filter */
.ai-ml-page .choose-us-section .choose-card-icon img {
    filter: none !important;
    width: 56px;
    height: 56px;
}

@media (max-width: 1200px) {
    .ai-ml-page .choose-us-grid {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .ai-ml-page .choose-us-section {
        padding: 80px 24px;
    }

    .ai-ml-page .ai-choose-us-title {
        font-size: 28px !important;
        line-height: 1.3 !important;
    }

    .ai-ml-page .choose-us-grid {
        flex-direction: column;
        flex-wrap: nowrap;
    }

    .ai-ml-page .choose-us-grid .choose-card {
        width: 100%;
        max-width: 360px;
        height: auto;
        min-height: 320px;
    }
}

/* Animation definition for the drift effect */
@keyframes bgDrift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(50px, 30px) scale(1.1);
    }

    100% {
        transform: translate(-20px, 60px) scale(1);
    }
}