/* About Us Page Custom Redesign CSS */

/* Stats Grid on Banner */
.about_hero_stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}
.stat_item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}
.stat_item:hover {
    transform: translateY(-5px);
    background: rgba(0, 188, 169, 0.05);
    border-color: rgba(0, 188, 169, 0.2);
}
.stat_item h3 {
    color: #00bca9;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 5px 0;
    font-family: 'Ubuntu', sans-serif;
}
.stat_item p {
    color: #a0a0ab;
    font-size: 12px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* PagePiling Content Section Overrides */
.about_center_cont {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    box-sizing: border-box;
}
.about_center_cont.bg-gray {
    background: #09090e;
}
.about_center_cont.bg-lightgray {
    background: #0d0d14;
}

/* Core Pillars Glassmorphism Cards */
.pillar_card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}
.pillar_card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 188, 169, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.pillar_icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(0, 188, 169, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px auto;
    transition: all 0.3s ease;
}
.pillar_icon i {
    color: #00bca9;
    font-size: 28px;
    transition: transform 0.3s ease;
}
.pillar_card:hover .pillar_icon {
    background: #00bca9;
}
.pillar_card:hover .pillar_icon i {
    color: #ffffff;
    transform: scale(1.1);
}
.pillar_card h3 {
    color: #ffffff;
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 15px 0;
}
.pillar_card p {
    color: #a0a0ab;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Core Values Grid */
.value_card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}
.value_card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 188, 169, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.value_icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(0, 188, 169, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
    transition: all 0.3s ease;
}
.value_icon i {
    color: #00bca9;
    font-size: 22px;
    transition: transform 0.3s ease;
}
.value_card:hover .value_icon {
    background: #00bca9;
}
.value_card:hover .value_icon i {
    color: #ffffff;
    transform: scale(1.1);
}
.value_card h3 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
}
.value_card p {
    color: #a0a0ab;
    font-size: 12.5px;
    line-height: 1.5;
    margin: 0;
}

/* Success Timeline */
.about_timeline_wrapper {
    position: relative;
    max-width: 900px;
    margin: 20px auto 0 auto;
    padding: 10px 0;
}
.timeline_line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(-50%);
    height: 0; /* Animated entry point */
}
.timeline_item {
    position: relative;
    width: 50%;
    margin-bottom: 10px;
    opacity: 0; /* Hide initially for entry animation */
}
.timeline_item:nth-child(even) {
    left: 50%;
    padding-left: 40px;
}
.timeline_item:nth-child(odd) {
    left: 0;
    padding-right: 40px;
    text-align: right;
}
.timeline_badge {
    position: absolute;
    top: 10px;
    width: 80px;
    height: 30px;
    background: #00bca9;
    border-radius: 20px;
    color: #ffffff;
    font-weight: 700;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0, 188, 169, 0.4);
    z-index: 10;
}
.timeline_badge::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px solid #00bca9;
    border-radius: 20px;
    animation: badgePulse 2s infinite;
    opacity: 0.7;
}
.timeline_item:nth-child(even) .timeline_badge {
    left: -40px;
    transform: translateX(-50%);
}
.timeline_item:nth-child(odd) .timeline_badge {
    right: -40px;
    transform: translateX(50%);
}
.timeline_card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px 20px;
    transition: all 0.5s ease;
    box-shadow: 0 0 0 rgba(0, 188, 169, 0);
    min-height: 80px;
}
.timeline_card h4,
.timeline_card h3 {
    color: #00bca9;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
}
.timeline_card p {
    color: #a0a0ab;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

/* Scroll-stack animations triggering when active */
#section4.active .timeline_line {
    animation: extendLine 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
#section4.active .timeline_item {
    animation: fadeInUp 0.6s ease forwards;
}
#section4.active .timeline_item:nth-child(1) { animation-delay: 0.4s; }
#section4.active .timeline_item:nth-child(2) { animation-delay: 0.8s; }
#section4.active .timeline_item:nth-child(3) { animation-delay: 1.2s; }
#section4.active .timeline_item:nth-child(4) { animation-delay: 1.6s; }

#section4.active .timeline_card {
    animation: cardGlowEntry 1s ease forwards;
}
#section4.active .timeline_item:nth-child(1) .timeline_card { animation-delay: 0.6s; }
#section4.active .timeline_item:nth-child(2) .timeline_card { animation-delay: 1.0s; }
#section4.active .timeline_item:nth-child(3) .timeline_card { animation-delay: 1.4s; }
#section4.active .timeline_item:nth-child(4) .timeline_card { animation-delay: 1.8s; }

@keyframes extendLine {
    from { height: 0; }
    to { height: 100%; }
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes cardGlowEntry {
    0% {
        box-shadow: 0 0 0 rgba(0, 188, 169, 0);
        border-color: rgba(255, 255, 255, 0.05);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 188, 169, 0.15);
        border-color: rgba(0, 188, 169, 0.4);
    }
    100% {
        box-shadow: 0 0 0 rgba(0, 188, 169, 0);
        border-color: rgba(255, 255, 255, 0.05);
    }
}
@keyframes badgePulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.08);
        opacity: 0.3;
    }
    100% {
        transform: scale(1);
        opacity: 0.7;
    }
}

/* Locations */
.location_card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}
.location_card:hover {
    transform: translateY(-5px);
    background: rgba(0, 188, 169, 0.03);
    border-color: rgba(0, 188, 169, 0.3);
}
.location_icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 188, 169, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}
.location_icon i {
    color: #00bca9;
    font-size: 22px;
}
.location_card h4,
.location_card h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
}
.location_card p {
    color: #a0a0ab;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

/* Slide 2 Custom Styles to fix empty gaps on mobile/tablet */
#section2 .experience_sect {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100%;
    position: relative;
    padding: 40px 20px;
    box-sizing: border-box;
}

/* On Desktop */
@media (min-width: 992px) {
    #section2 .experience_sect {
        display: block; /* Preserve original desktop styling */
    }
    
    /* Make about slide flex containers safe for overflow scrolling on desktop */
    .about_center_cont {
        align-items: flex-start !important;
    }
    .about_cont_box {
        margin: auto !important;
    }

    /* Reduce paddings and scaling for Alan Values slide to prevent title cut-off */
    #section_values .about_center_cont {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }
    #section_values .values_header h2 {
        font-size: 28px !important;
        line-height: 38px !important;
    }
    #section_values .values_header .section_subtitle {
        margin-bottom: 10px !important;
    }
    #section_values .values_grid {
        margin-top: 15px !important;
        display: flex;
        flex-wrap: wrap;
    }
    #section_values .values_grid [class*="col-"] {
        margin-bottom: 15px !important;
    }
    #section_values .value_card {
        padding: 15px 12px !important;
    }
    #section_values .value_icon {
        width: 44px !important;
        height: 44px !important;
        margin-bottom: 10px !important;
    }
    #section_values .value_icon i {
        font-size: 18px !important;
    }
    #section_values .value_card h3 {
        font-size: 14px !important;
        margin-bottom: 6px !important;
    }
    #section_values .value_card p {
        font-size: 11.5px !important;
        line-height: 1.4 !important;
    }
}

/* On Tablet & Mobile (max-width: 991px) */
@media (max-width: 991px) {
    #section2 .experience_sect {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        padding: 80px 20px !important;
        height: auto !important;
        min-height: 100vh !important;
        background-image: linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)), url('https://www.alanwebs.com/images/Empowering_Digital_Experiences_with_alanwebagency.png') !important;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        background-color: #ffffff !important;
    }
    
    #section2 .experience_sect .left_img,
    #section2 .experience_sect .btm_img,
    #section2 .experience_sect .btm_top_img {
        display: none !important;
    }
    
    /* Restore slogan text and size appropriately for small screens */
    #section2 .experience_sect .experience_content {
        order: 1 !important;
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 0 !important;
    }
    
    #section2 .experience_sect .experience_content .right_content_experience {
        margin: 0 !important;
        padding: 0 !important;
        height: auto !important;
        width: 100% !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    
    #section2 .experience_sect .experience_content .right_content_experience h2 {
        font-size: 26px !important;
        line-height: 1.3 !important;
        color: #00bca9 !important;
    }
    
    #section2 .experience_sect .experience_content .right_content_experience h2 span {
        font-size: 16px !important;
        display: block !important;
        margin-bottom: 5px !important;
        color: #000000 !important;
    }
    
    #section2 .experience_sect .experience_content .right_content_experience h3 {
        font-size: 24px !important;
        line-height: 1.3 !important;
        margin-top: 10px !important;
        color: #000000 !important;
    }
    
    #section2 .experience_sect .experience_content .right_content_experience a {
        margin: 15px auto 0 auto !important;
        display: inline-block !important;
    }
}

/* Light Theme Timeline Overrides */
#section4 .about_center_cont {
    background: #f8fafc !important;
    padding-top: 30px !important;
    padding-bottom: 30px !important;
}
#section4 .timeline_header .title_line_before {
    margin-bottom: 5px !important;
}
#section4 .timeline_header h2 {
    color: #0d0d14 !important;
    font-size: 30px !important;
    line-height: 1.2 !important;
    margin-bottom: 5px !important;
    padding-bottom: 0 !important; /* Fixes large gap inherited from style.css */
}
#section4 .timeline_header p {
    color: #555566 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important; /* Fixes inherited gap */
}
#section4 .timeline_line {
    background: rgba(0, 188, 169, 0.15) !important;
}
#section4 .timeline_card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 188, 169, 0.1) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}
#section4 .timeline_card:hover {
    box-shadow: 0 10px 30px rgba(0, 188, 169, 0.08) !important;
    border-color: rgba(0, 188, 169, 0.3) !important;
}
#section4 .timeline_card h4,
#section4 .timeline_card h3 {
    color: #00bca9 !important;
}
#section4 .timeline_card p {
    color: #444455 !important;
}
#section4 .timeline_badge {
    background: #00bca9 !important;
    color: #ffffff !important;
}

/* Animated Mouse Scroll Indicator */
.scroll_indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: opacity 0.3s ease;
}
.scroll_indicator:hover {
    opacity: 0.8;
}
.mouse_scroll {
    width: 22px;
    height: 38px;
    border: 2px solid rgba(0, 188, 169, 0.6);
    border-radius: 11px;
    position: relative;
}
.mouse_wheel {
    width: 4px;
    height: 8px;
    background-color: #00bca9;
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollMouse 1.8s infinite ease-in-out;
}
@keyframes scrollMouse {
    0% {
        top: 6px;
        opacity: 1;
        height: 8px;
    }
    50% {
        top: 18px;
        opacity: 0.3;
        height: 12px;
    }
    100% {
        top: 6px;
        opacity: 0;
        height: 8px;
    }
}

/* Global Mobile/Tablet Responsiveness Enhancements */
@media (max-width: 991px) {
    /* Prevent cutting off overflowing slide content in PagePiling */
    .section {
        overflow-y: auto !important;
    }
    
    /* Scrollable center container layout start from top */
    .about_center_cont {
        align-items: flex-start !important;
        padding-top: 100px !important;
        padding-bottom: 120px !important;
    }
    
    /* Hero Banner Mobile Styling */
    .about_banner_content {
        overflow-y: auto !important;
        padding-top: 90px !important;
        padding-bottom: 100px !important;
        height: 100vh !important;
        position: relative !important;
    }
    .about_baner_cont {
        width: 90% !important;
    }
    .about_baner_cont h1 {
        font-size: 26px !important;
        line-height: 1.3 !important;
        margin-bottom: 15px !important;
    }
    .about_baner_cont p {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }
    
    /* Stats Grid Responsive scaling */
    .about_hero_stats {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        margin-top: 25px !important;
    }
    .stat_item {
        padding: 10px !important;
    }
    .stat_item h3 {
        font-size: 22px !important;
    }
    .stat_item p {
        font-size: 10px !important;
    }
}

@media (max-width: 767px) {
    /* Hide mouse scroll indicators on mobile for cleaner viewport use */
    .scroll_indicator {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .about_hero_stats {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ======================= Disable PagePiling Slide Lock on Mobile/Tablet ======================= */
@media (max-width: 991px) {
    html, body {
        overflow: auto !important;
        overflow-x: hidden !important;
        height: auto !important;
    }
    #pagepiling {
        height: auto !important;
        position: relative !important;
        touch-action: auto !important;
    }
    .section {
        height: auto !important;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    .about_center_cont {
        height: auto !important;
    }
    #pp-nav {
        display: none !important;
    }
    
    /* Ensure timeline elements are fully visible without PagePiling's active class trigger */
    .timeline_item {
        opacity: 1 !important;
    }
    .timeline_line {
        height: 100% !important;
    }
}

/* ======================= Light Theme CTA Overrides ======================= */
.light_theme_cta {
    background: transparent !important;
}
.light_theme_cta .cta_wrapper {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05) !important;
}
.light_theme_cta .cta_text_col h2,
.light_theme_cta .capsule_inner h3 {
    color: #0d0d14 !important;
}
.light_theme_cta .cta_text_col p,
.light_theme_cta .capsule_inner p {
    color: #555566 !important;
}
.light_theme_cta .cta_benefits_list li {
    color: #333344 !important;
}
.light_theme_cta .cta_capsule_card {
    background: #f8fafc !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
}
.light_theme_cta .cta_capsule_card:hover {
    border-color: rgba(0, 188, 169, 0.3) !important;
    box-shadow: 0 15px 40px rgba(0, 188, 169, 0.08) !important;
}
.light_theme_cta .btn_cta_secondary {
    color: #0d0d14 !important;
    background: rgba(0, 0, 0, 0.03) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}
.light_theme_cta .btn_cta_secondary:hover {
    background: rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
}

/* ======================= Slide Footer Component ======================= */
.slide_footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 40px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    z-index: 10;
    font-size: 13px;
    border-top: none;
}
.slide_footer.light_footer {
    border-top: none;
}
.slide_footer .copy_text {
    color: #a0a0ab;
    margin-right: 20px;
}
html[dir="rtl"] .slide_footer .copy_text {
    margin-right: 0;
    margin-left: 20px;
}
.slide_footer.light_footer .copy_text {
    color: #555566;
}
.slide_footer .social_icons a {
    color: #a0a0ab;
    margin-left: 15px;
    font-size: 15px;
    transition: all 0.3s ease;
}
.slide_footer.light_footer .social_icons a {
    color: #555566;
}
.slide_footer .social_icons a:hover {
    color: #00bca9;
}
@media (max-width: 991px) {
    .slide_footer {
        display: none !important;
    }
}

/* ======================= Mobile Animations, Swiper & Touch Interactions ======================= */
@media (max-width: 991px) {
    /* --- CSS Scroll Snap Carousel for Pillars, Values, and Teams grids --- */
    .pillars_grid,
    .values_grid,
    .team_grid_wrapper {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        scroll-behavior: smooth !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 15px 15px 30px 15px !important;
        margin-left: -15px !important;
        margin-right: -15px !important;
        gap: 20px !important;
    }

    .pillars_grid::-webkit-scrollbar,
    .values_grid::-webkit-scrollbar,
    .team_grid_wrapper::-webkit-scrollbar {
        display: none !important;
    }

    .pillars_grid > [class*="col-"],
    .values_grid > [class*="col-"],
    .team_grid_wrapper > [class*="col-"] {
        flex: 0 0 85% !important;
        width: 85% !important;
        max-width: 85% !important;
        scroll-snap-align: center !important;
        margin-bottom: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .pillar_card,
    .value_card,
    .team_card {
        height: 100% !important;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4) !important;
        transform: scale(0.97);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                    border-color 0.4s ease, 
                    box-shadow 0.4s ease,
                    background-color 0.4s ease !important;
    }

    /* Active/focused card in scroll-snap gets slightly prominent scale */
    .pillar_card.carousel-focus,
    .value_card.carousel-focus,
    .team_card.carousel-focus {
        transform: scale(1);
        border-color: rgba(0, 188, 169, 0.4);
        background: rgba(255, 255, 255, 0.05);
    }

    /* --- Scroll Dot Indicators injected via JS --- */
    .scroll_dots_container {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin-top: 10px;
        margin-bottom: 25px;
        width: 100%;
    }

    .scroll_dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.2);
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .scroll_dot.active {
        width: 24px;
        border-radius: 4px;
        background: #00bca9;
        box-shadow: 0 0 10px rgba(0, 188, 169, 0.5);
    }

    /* --- Mobile Timeline Redesign for single column --- */
    .about_timeline_wrapper {
        padding-left: 10px !important;
        padding-right: 10px !important;
        margin-top: 30px !important;
    }

    .timeline_line {
        left: 20px !important;
        transform: none !important;
        height: 0;
        transition: height 2s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .timeline_line.in-view {
        height: 100% !important;
    }

    .timeline_item {
        width: 100% !important;
        left: 0 !important;
        padding-left: 45px !important;
        padding-right: 0 !important;
        text-align: left !important;
        margin-bottom: 25px !important;
        transform: translateY(30px);
        opacity: 0;
        transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                    opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .timeline_item.in-view {
        transform: translateY(0) !important;
        opacity: 1 !important;
    }

    .timeline_item:nth-child(even) {
        left: 0 !important;
        padding-left: 45px !important;
    }

    .timeline_item:nth-child(odd) {
        left: 0 !important;
        padding-left: 45px !important;
    }

    .timeline_badge {
        left: 20px !important;
        transform: translateX(-50%) !important;
        top: 15px !important;
    }

    .timeline_item:nth-child(even) .timeline_badge {
        left: 20px !important;
        transform: translateX(-50%) !important;
    }

    .timeline_item:nth-child(odd) .timeline_badge {
        right: auto !important;
        left: 20px !important;
        transform: translateX(-50%) !important;
    }

    .timeline_card {
        padding: 20px !important;
    }

    /* --- Scroll-driven animations for general elements --- */
    .reveal-mobile {
        opacity: 0;
        transform: translateY(30px);
        transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                    opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    .reveal-mobile.in-view {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }

    /* Stagger helpers for mobile triggers */
    .stagger-1 { transition-delay: 0.1s !important; }
    .stagger-2 { transition-delay: 0.2s !important; }
    .stagger-3 { transition-delay: 0.3s !important; }
    .stagger-4 { transition-delay: 0.4s !important; }

    /* Experience section floating & slide-ins for mobile */
    .experience_sect .left_img,
    .experience_sect .btm_img,
    .experience_sect .btm_top_img {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
        transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1), 
                    opacity 1s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    .experience_sect.in-view .left_img {
        opacity: 1 !important;
        transform: translateY(0) scale(1) !important;
    }

    .experience_sect.in-view .btm_img {
        opacity: 1 !important;
        transform: translateY(0) scale(1) !important;
        transition-delay: 0.3s !important;
    }

    .experience_sect.in-view .btm_top_img {
        opacity: 1 !important;
        transform: translateY(0) scale(1) !important;
        transition-delay: 0.5s !important;
    }

    /* Floating animation for subtle background mockups on mobile */
    @keyframes mobileFloat {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-8px); }
    }
    
    .experience_sect.in-view .btm_img img {
        animation: mobileFloat 4s ease-in-out infinite alternate;
        animation-delay: 1.3s;
    }

    .experience_sect.in-view .btm_top_img img {
        animation: mobileFloat 5s ease-in-out infinite alternate;
        animation-delay: 1.5s;
    }

    /* --- Premium Touch Interactions on mobile --- */
    .stat_item:active,
    .pillar_card:active,
    .team_card:active,
    .timeline_card:active {
        transform: scale(0.96) !important;
        border-color: rgba(0, 188, 169, 0.6) !important;
        box-shadow: 0 0 15px rgba(0, 188, 169, 0.3) !important;
        background: rgba(0, 188, 169, 0.08) !important;
    }
}

/* Stats Grid layout when positioned inside the Empowering section (light theme) */
.right_content_experience .about_hero_stats {
    grid-template-columns: repeat(2, 1fr);
    max-width: 440px;
    margin: 30px auto 0 auto;
    width: 100%;
}

.right_content_experience .stat_item {
    background: rgba(0, 0, 0, 0.03) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.right_content_experience .stat_item:hover {
    background: rgba(0, 188, 169, 0.05) !important;
    border-color: rgba(0, 188, 169, 0.2) !important;
}

.right_content_experience .stat_item h3 {
    color: #00bca9 !important;
}

.right_content_experience .stat_item p {
    color: #444455 !important;
}

