/* Staff Section Styling */

.staff-page {
    background-color: #FFFFFF;
}

/* Background blending (premium 'flow' feel)
   Each section keeps its own gradient, but gradients bleed + soft-fade
   so there are no hard edges between sections. */
.staff-page .staff-hero,
.staff-page .cases-section,
.staff-page .advantage-section,
.staff-page .services-overview-section,
.staff-page .benefits-section,
.staff-page .choose-us-section {
    overflow: visible;
    background-color: transparent !important;
}

.staff-page .staff-hero-bg,
.staff-page .team-hero-bg,
.staff-page .advantage-bg,
.staff-page .services-overview-bg,
.staff-page .benefits-bg,
.staff-page .choose-us-bg {
    position: absolute;
    width: 120vw !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    pointer-events: none;
    z-index: 1;
    filter: blur(250px);
    opacity: 0.85;

    /* 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%;
}

/* Individual bg offsets for better coverage flow */
.staff-page .staff-hero-bg,
.staff-page .team-hero-bg,
.staff-page .advantage-bg,
.staff-page .services-overview-bg,
.staff-page .benefits-bg {
    height: 120% !important;
    top: -10% !important;
}

.staff-page .choose-us-bg {
    height: 100% !important;
    bottom: 0 !important;
    top: auto !important;
}

.staff-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    scroll-snap-align: start;
}

.staff-hero-container {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.staff-hero-bg {
    background: linear-gradient(108.44deg, #CFFCF0 18.86%, rgba(255, 255, 255, 0) 93.35%);
}

.team-hero-bg {
    background: linear-gradient(108.44deg, #CCE1FF 18.86%, rgba(255, 255, 255, 0) 93.35%);
}

.staff-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
    max-width: 1140px;
    text-align: center;
}

.staff-hero-heading-container {
    width: 100%;
    max-width: 946px;
}

.staff-hero-title {
    font-family: 'Manrope', sans-serif;
    font-style: normal;
    font-weight: 800;
    font-size: 50px;
    line-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0;

    /* Gradient Text as per CSS layers */
    background: linear-gradient(90deg, #202333 0%, #34C9A0 90.87%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    padding-bottom: 0.15em;
}

.staff-hero-description {
    width: 100%;
    max-width: 812px;
    font-family: 'Manrope', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 18px;
    line-height: 30px;
    color: #202333;
    /* Dark color for light background */
    margin: 0;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .staff-hero-title {
        font-size: 42px;
        line-height: 1.2;
    }
}

@media (max-width: 768px) {
    .staff-hero {
        padding: 60px 24px 0;
        height: 75vh;
    }

    .staff-hero-bg {
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
        filter: blur(100px);
    }

    .staff-hero-title {
        font-size: 32px;
        line-height: 1.3;
    }

    .staff-hero-description {
        font-size: 16px;
        line-height: 26px;
    }

    .staff-hero-content {
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .staff-hero-title {
        font-size: 28px;
    }
}

/* Advantage Section Styling */

.advantage-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    background-color: transparent !important;
    scroll-snap-align: start;
}

.advantage-bg {
    background: linear-gradient(108.44deg, #FEDFC3 18.86%, rgba(255, 255, 255, 0) 93.35%);
}

.advantage-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
    width: 100%;
    max-width: 1140px;
    text-align: center;
}

.advantage-title {
    font-family: 'Manrope', sans-serif;
    font-style: normal;
    font-weight: 800;
    font-size: 48px;
    line-height: 1.2;
    text-align: center;
    margin: 0;
    padding-bottom: 0.15em;
    background: linear-gradient(90deg, #202333 0%, #FA8B26 90.87%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    width: 100%;
}

.advantage-card {
    position: relative;
    background: #FFFFFF;
    box-shadow: 0px 16px 36px rgba(32, 35, 51, 0.1);
    border-radius: 20px;
    padding: 31px 26px;
    /* Precise padding from layers */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    text-align: left;
    height: 182px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 20px 45px rgba(32, 35, 51, 0.15);
}

.card-icon {
    position: absolute;
    top: -10px;
    /* Adjusting for exact look */
    right: -4px;
    width: 100px;
    /* Larger hit area for the decorative icon */
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.card-icon img {
    width: 77px;
    height: 72px;
    object-fit: contain;
    /* opacity: 0.15;  */
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.card-number {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 42px;
    line-height: 1;
    color: #202333;
}

.card-label {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.4;
    color: #202333;
    max-width: 180px;
}

/* Responsive Adjustments for Advantage Section */
@media (max-width: 1200px) {
    .advantage-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px;
    }

    .advantage-section {
        height: auto;
        padding: 100px 24px;
    }
}

@media (max-width: 768px) {
    .advantage-title {
        font-size: 36px;
    }

    .advantage-container {
        gap: 40px;
    }
}

@media (max-width: 580px) {
    .advantage-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
    }

    .advantage-card {
        align-items: center;
        text-align: center;
    }

    .card-label {
        max-width: none;
    }
}

/* Staff Augmentation Services Overview Section */

.services-overview-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 24px;
    background-color: transparent;
    scroll-snap-align: start;
}

.services-overview-bg {
    background: linear-gradient(108.44deg, #CCE1FF 18.86%, rgba(255, 255, 255, 0) 93.35%);
}


.services-overview-container {
    position: relative;
    z-index: 2;
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
}

.services-overview-header {
    text-align: center;
    margin-bottom: 50px;
}

.services-overview-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 40px;
    line-height: 1.2;
    margin-bottom: 24px;
    background: linear-gradient(90deg, #202333 0%, #3A89F8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    padding-bottom: 0.15em;
}

.services-overview-subtitle {
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.6;
    color: #202333;
    max-width: 1012px;
    margin: 0 auto 10px;
}

.services-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
}

.service-overview-card {
    box-sizing: border-box;
    position: relative;
    width: 560px;
    height: 110px;
    background: linear-gradient(180deg, rgba(58, 137, 248, 0.08) 0%, rgba(58, 137, 248, 0) 100%), #FFFFFF;
    box-shadow: 0px 14px 34px rgba(7, 45, 81, 0.12);
    border-radius: 20px;
    margin: 0 auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.service-overview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 18px 40px rgba(7, 45, 81, 0.18);
}

.service-icon {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.service-text {
    position: absolute;
    width: 393px;
    height: 60px;
    left: 95px;
    top: calc(50% - 60px / 2 - 0.2px);
    display: flex;
    align-items: center;
}

.service-text h3 {
    font-family: 'Manrope', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 20px;
    line-height: 30px;
    color: #202333;
    margin: 0;
}

/* Responsive for Services Overview */
@media (max-width: 1200px) {
    .service-overview-card {
        width: 100%;
        max-width: 560px;
    }
}

@media (max-width: 1024px) {
    .services-overview-title {
        font-size: 32px;
    }

    .service-text h3 {
        font-size: 18px;
        line-height: 26px;
    }
}

@media (max-width: 768px) {
    .services-overview-section {
        height: auto;
        padding: 80px 24px;
    }

    .services-overview-grid {
        grid-template-columns: 1fr;
    }

    .services-overview-subtitle {
        font-size: 16px;
    }

    .service-overview-card {
        height: auto;
        min-height: 124px;
        padding: 20px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        position: relative;
    }

    .service-icon,
    .service-text {
        position: static;
        transform: none;
        margin-right: 12px;
    }
}

/* Core Benefits Section */
.benefits-section {
    position: relative;
    width: 100%;
    height: 400vh;
    /* Increased to slow down the scroll-linked animation */
    /* Reduced to make the entire stack reveal in one quick scroll */
    background-color: transparent;
    scroll-snap-align: start;
    margin: 0;
}


.benefits-sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    /* Center vertically in the remaining space */
    justify-content: center;
    overflow: visible;
    /* Changed to allow blending */
    padding-top: var(--header-height);
    /* Ensure content doesn't hit the fixed header */
}





.benefits-bg {
    background: linear-gradient(108.44deg, #E5FCF6 18.86%, rgba(255, 255, 255, 0) 93.35%);
}







.benefits-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    max-width: 1140px;
    gap: 80px;
    padding: 0 24px;
}

.benefits-header {
    flex: 0.8;
    max-width: 440px;
    margin-top: 0;
}

.benefits-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 40px;
    line-height: 1.1;
    color: #202333;
    margin: 0;
    padding-bottom: 0.15em;
    background: linear-gradient(90deg, #202333 0%, #34C9A0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.benefits-accordion {
    flex: 1.2;
    position: relative;
    height: 545px;
    /* Increased to accommodate the stacked card offsets (345px + 200px) */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 0;
    max-width: 544px;
}

.benefit-card {
    position: absolute;
    left: 0;
    width: 100%;
    height: 200px;
    background: #FFFFFF;
    /* Ensure solid background to prevent transparency overlap */
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0px 10px 30px rgba(7, 45, 81, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);

    /* Initial stacked positions */
    bottom: 0;
    transform: translateY(40px);
    /* Changed to slide up from bottom as requested */
    opacity: 0;
    will-change: transform, opacity;
    transition: transform 0.1s linear, opacity 0.3s ease;
}

/* Descriptions visible by default as requested */
.benefit-card .benefit-card-content {
    opacity: 1;
    max-height: 120px;
    margin-top: 4px;
    transition: opacity 0.3s ease;
}

.benefit-card.is-active {
    box-shadow: 0px 15px 40px rgba(7, 45, 81, 0.15);
}




/* Revelation order: Top to Bottom. Each new card settles below the previous one and overlaps it. */
.benefit-card[data-index="1"] {
    bottom: 345px;
    z-index: 1;
}

.benefit-card[data-index="2"] {
    bottom: 236px;
    z-index: 2;
}

.benefit-card[data-index="3"] {
    bottom: 129px;
    z-index: 3;
}

.benefit-card[data-index="4"] {
    bottom: 23px;
    z-index: 4;
}






.benefit-card .benefit-short-desc {
    display: none;
}

.benefit-card.finished {
    box-shadow: 0px 5px 15px rgba(7, 45, 81, 0.05);
}



.benefit-card.pos-1 {
    box-shadow: 0px 20px 45px rgba(7, 45, 81, 0.15);
}

.benefit-card-inner {
    padding: 30px 40px;
}

.benefit-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.benefit-main-info {
    flex: 1;
}

.benefit-card-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 22px;
    line-height: 1.2;
    color: #202333;
    margin: 0 0 16px 0;
}

.benefit-short-desc {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
    color: #202333;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.benefit-icon {
    position: absolute;
    right: 10px;
    bottom: 2px;
    width: 106px;
    height: 106px;
    /* opacity: 0.08; */
    transition: all 0.5s ease;
    pointer-events: none;
}

.benefit-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.benefit-card-content {
    max-height: 150px;
    opacity: 1;
    overflow: hidden;
    margin-top: 15px;
}

.benefit-card-content p {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 600;
    color: #202333;
    margin: 0;
}


.benefit-orange {
    background: linear-gradient(180deg, rgba(250, 139, 38, 0.15) 0%, rgba(250, 139, 38, 0) 100%), #FFFFFF;
    border: 1px solid #FA8B264D;
}

.benefit-purple {
    border: 1px solid #B098F24D;
    background: linear-gradient(180deg, rgba(176, 152, 242, 0.15) 0%, rgba(176, 152, 242, 0) 100%), #FFFFFF;
}

.benefit-blue {
    background: linear-gradient(180deg, rgba(58, 137, 248, 0.15) 0%, rgba(58, 137, 248, 0) 100%), #FFFFFF;
    border: 1px solid #3A89F84D;
}

.benefit-green {
    background: linear-gradient(180deg, rgba(52, 201, 160, 0.15) 0%, rgba(52, 201, 160, 0) 100%), #FFFFFF;
    border: 1px solid #34C9A04D;
}

/* Removed redundant accordion active styles as JS handles it now */



@media (max-width: 1024px) {
    .benefits-container {
        flex-direction: column;
        gap: 40px;
    }

    .benefits-header {
        max-width: 100%;
        text-align: center;
    }

    .benefits-title {
        font-size: 38px;
    }
}





@media (max-width: 768px) {
    .benefits-section {
        padding: 80px 24px 60px;
        height: auto;
        min-height: unset;
        overflow: visible;
    }

    .benefits-sticky-wrapper {
        position: static;
        height: auto;
        padding-top: 0;
        justify-content: flex-start;
    }

    .benefits-container {
        flex-direction: column;
        align-items: center;
        gap: 32px;
        padding: 0;
    }

    .benefits-header {
        max-width: 100%;
        text-align: center;
        align-items: center;
    }

    .benefits-accordion {
        position: static;
        height: auto;
        min-height: 0;
        width: 100%;
        max-width: 544px;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .benefit-card {
        position: relative;
        bottom: auto !important;
        left: auto;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        height: auto;
        z-index: 1 !important;
        margin: 0;
        box-shadow: none;
    }

    .benefit-card-inner {
        padding: 24px;
    }

    .benefit-card-title {
        font-size: 20px;
        line-height: 1.3;
    }

    .benefit-card-content p {
        font-size: 15px;
        line-height: 1.55;
    }

    .benefit-card .benefit-card-content {
        max-height: none;
        opacity: 1;
        margin-top: 12px;
    }
}







@media (max-width: 480px) {
    .benefit-card-inner {
        padding: 20px;
    }

    .benefit-card-title {
        font-size: 18px;
    }

    .benefit-card-content p {
        font-size: 14px;
    }
}

/* Why Teams Choose Envistudios Section */
.choose-us-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 24px;
    background-color: transparent;
    scroll-snap-align: start;
}

.choose-us-bg {
    background: linear-gradient(108.44deg, #EDE7FF 18.86%, rgba(255, 255, 255, 0) 93.35%);
}


.choose-us-overlay-circle {
    position: absolute;
    width: 282px;
    height: 268px;
    right: -40px;
    bottom: 20%;
    background: rgba(197, 178, 255, 0.7);
    filter: blur(150px);
    border-radius: 1000px;
    z-index: 1;
}

.choose-us-container {
    position: relative;
    z-index: 2;
    max-width: 1140px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.choose-us-header {
    margin-bottom: 60px;
    text-align: center;
}

.choose-us-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;
    padding-bottom: 0.15em;
}

.choose-us-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
    width: 100%;
}

.choose-card {
    box-sizing: border-box;
    background: #FFFFFF;
    box-shadow: 0px 14px 30px rgba(37, 61, 73, 0.08);
    border-radius: 20px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 340px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.choose-card:hover {
    transform: translateY(-10px);
    box-shadow: 0px 20px 40px rgba(37, 61, 73, 0.15);
}

.choose-card-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.choose-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.choose-card-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 18px;
    line-height: 24px;
    color: #202333;
    margin-bottom: 20px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.choose-card-text {
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 22px;
    color: #202333;
    margin: 0;
    opacity: 0.8;
}

/* Card Themes */
.choose-card-orange {
    border: 1px solid transparent;
    border-radius: 20px;

    background:
        linear-gradient(180deg, rgba(250, 139, 38, 0.15) 0%, rgba(250, 139, 38, 0) 100%),
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(180deg, rgba(250, 139, 38, 1), rgba(250, 139, 38, 0.3)) border-box;

    background-origin: border-box;
    background-clip: padding-box, padding-box, border-box;

}

.choose-card-purple {
    background: linear-gradient(180deg, rgba(176, 152, 242, 0.15) 0%, rgba(176, 152, 242, 0) 100%), #FFFFFF;
    border: 1px solid rgba(176, 152, 242, 1);
}

.choose-card-green {
    background: linear-gradient(180deg, rgba(52, 201, 160, 0.15) 0%, rgba(52, 201, 160, 0) 100%), #FFFFFF;
    border: 1px solid rgba(52, 201, 160, 1);
}

.choose-card-blue {
    background: linear-gradient(180deg, rgba(58, 137, 248, 0.15) 0%, rgba(58, 137, 248, 0) 100%), #FFFFFF;
    border: 1px solid rgba(58, 137, 248, 1);
}

/* Responsive */
@media (max-width: 1200px) {
    .choose-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .choose-card {
        height: auto;
        min-height: 320px;
    }
}

@media (max-width: 768px) {
    .choose-us-section {
        padding: 80px 24px;
    }

    .choose-us-title {
        font-size: 32px;
        line-height: 38px;
    }

    .choose-us-grid {
        grid-template-columns: 1fr;
    }

    .choose-card {
        padding: 30px 20px;
    }
}