/* ─── Dev Tech Public Styles ─── */

/* Prevents horizontal scroll without reserving scrollbar space,
   so 100vw stays equal to the content width and the section never shifts. */
html {
    overflow-x: clip;
}

/* =========================
   FULL-WIDTH BREAKOUT
   Escapes Betheme's content column
========================= */
.dev-tech-section {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    padding: 80px 20px !important;
    /* background-color: #fff !important; */
    background-image: none !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    box-sizing: border-box !important;
    border: none !important;
    box-shadow: none !important;
    float: none !important;
    overflow: visible !important;
}

/* =========================
   DECORATIVE BLOBS
========================= */
.dev-tech-blob {
    position: absolute !important;
    border-radius: 50% !important;
    pointer-events: none !important;
    z-index: 0 !important;
    will-change: transform !important;
}

/* Pink — top center, bleeds slightly above section */
.dev-tech-blob--pink {
    width: 180px !important;
    height: 180px !important;
    background: #B51B5A !important;
    filter: blur(150px) !important;
    opacity: 1 !important;
    top: 60px !important;
    left: calc(50% - 90px) !important;
}

/* Blue — middle left, bleeds slightly off left edge */
.dev-tech-blob--blue-mid {
    width: 250px !important;
    height: 250px !important;
    background: #35B6FF !important;
    filter: blur(184px) !important;
    opacity: 1 !important;
    top: 22% !important;
    left: 92px !important;
}

/* Blue — bottom right, bleeds slightly off right edge */
.dev-tech-blob--blue-br {
    width: 250px !important;
    height: 250px !important;
    background: #87D4FF !important;
    filter: blur(150px) !important;
    opacity: 1 !important;
    bottom: -50px !important;
    right: 67px !important;
}

/* =========================
   INNER CONTAINER
========================= */
.dev-tech-container {
    width: 100% !important;
    max-width: 1058px !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    font-family: 'Open Sans', sans-serif !important;
    float: none !important;
    position: relative !important;
    z-index: 1 !important;
}

/* reset Betheme column styles applied to inner divs */
.dev-tech-container *,
.dev-tech-container *::before,
.dev-tech-container *::after {
    box-sizing: border-box;
}

/* =========================
   TITLE
========================= */
.dev-tech-section .dev-tech-title {
    font-family: 'Syne', sans-serif !important;
    font-weight: 700 !important;
    font-size: 40px !important;
    line-height: 100% !important;
    text-align: center !important;
    color: #191919 !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

/* =========================
   DESCRIPTION
========================= */
.dev-tech-section .dev-tech-description {
    max-width: 678px !important;
    margin: 0 auto 24px !important;
    font-family: 'Google Sans', sans-serif !important;
    font-weight: 400 !important;
    font-size: 22px !important;
    line-height: 130% !important;
    text-align: center !important;
    color: #778AA9 !important;
    padding: 0 !important;
}

/* =========================
   TABS WRAP (holds bar + fade indicators)
========================= */
.dev-tech-section .dev-tech-tabs-wrap {
    position: relative !important;
    margin-bottom: 50px !important;
}

/* right fade — shown when more tabs exist to the right */
.dev-tech-section .dev-tech-tabs-wrap.fade-right::after {
    content: '' !important;
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 70px !important;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.92)) !important;
    pointer-events: none !important;
    border-radius: 0 160px 160px 0 !important;
    z-index: 2 !important;
}

/* left fade — shown after the user has scrolled right */
.dev-tech-section .dev-tech-tabs-wrap.fade-left::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 70px !important;
    background: linear-gradient(to left, transparent, rgba(255,255,255,0.92)) !important;
    pointer-events: none !important;
    border-radius: 160px 0 0 160px !important;
    z-index: 2 !important;
}

/* =========================
   TABS BAR
========================= */
.dev-tech-section .dev-tech-tabs-bar {
    width: 100% !important;
    min-height: 73px !important;
    background: rgba(53, 182, 255, 0.2) !important;
    border-radius: 160px !important;
    padding: 8px !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 10px !important;
    box-sizing: border-box !important;
    border: none !important;
    box-shadow: none !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    list-style: none !important;
}

.dev-tech-section .dev-tech-tabs-bar::-webkit-scrollbar {
    display: none !important;
}

/* =========================
   SCROLL PROGRESS TRACK
   A custom, JS-driven indicator instead of the native scrollbar — native
   scrollbars can't sit cleanly inside a fully rounded (stadium-shaped)
   pill without clipping through the curved ends, and on touch devices
   (iOS Safari in particular) the OS fades/hides them mid-scroll no
   matter how they're styled. This track lives BELOW the pill, is plain
   markup with fully controllable styling, and stays visible in every scroll state.
   Hidden by default — only shown once tabs actually become scrollable
   (see the ≤ 991px breakpoint below).
========================= */
.dev-tech-section .dev-tech-tabs-scrollbar {
    display: none;
}

/* =========================
   TAB BUTTON
   Override Betheme's aggressive button styles
========================= */
.dev-tech-section .dev-tech-tab-btn,
.dev-tech-section .dev-tech-tab-btn:link,
.dev-tech-section .dev-tech-tab-btn:visited {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    min-height: 57px !important;
    height: auto !important;
    border-radius: 160px !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    -webkit-tap-highlight-color: transparent !important;
    text-decoration: none !important;

    font-family: 'Open Sans', sans-serif !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    color: #191919 !important;
    cursor: pointer !important;
    /* allow long tab names to wrap onto two lines instead of being clipped */
    white-space: normal !important;
    padding: 8px 16px !important;
    margin: 0 !important;
    transition: background 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    position: static !important;
}

.dev-tech-section .dev-tech-tab-btn::before,
.dev-tech-section .dev-tech-tab-btn::after {
    display: none !important;
    content: none !important;
}

.dev-tech-section .dev-tech-tab-btn:hover,
.dev-tech-section .dev-tech-tab-btn:focus,
.dev-tech-section .dev-tech-tab-btn:focus-visible,
.dev-tech-section .dev-tech-tab-btn:active {
    color: #191919 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.dev-tech-section .dev-tech-tab-btn.active,
.dev-tech-section .dev-tech-tab-btn.active:hover,
.dev-tech-section .dev-tech-tab-btn.active:focus,
.dev-tech-section .dev-tech-tab-btn.active:focus-visible,
.dev-tech-section .dev-tech-tab-btn.active:active {
    background: #FFFFFF40 !important;
    background-color: #FFFFFF40 !important;
    background-image: none !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    color: #191919 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 160px !important;
}

/* =========================
   PANELS
========================= */
.dev-tech-section .dev-tech-panels {
    max-width: 813px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

.dev-tech-section .dev-tech-panel {
    display: none !important;
    animation: dt-fadein .25s ease;
}

.dev-tech-section .dev-tech-panel.active {
    display: block !important;
}

@keyframes dt-fadein {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =========================
   IMAGES GRID — 5 per row, partial rows centered
========================= */
.dev-tech-section .dev-tech-images-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 45px 50px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* =========================
   TECH ITEM
========================= */
.dev-tech-section .dev-tech-img-item {
    flex: 0 0 calc((100% - 200px) / 5) !important;
    width: calc((100% - 200px) / 5) !important;
    min-height: 104px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: center !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.dev-tech-section .dev-tech-img-item img {
    width: 66px !important;
    height: 66px !important;
    max-width: 66px !important;
    max-height: 66px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 0 14px 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    float: none !important;
}

.dev-tech-section .dev-tech-img-label {
    font-family: 'Open Sans', sans-serif !important;
    font-weight: 600 !important;
    font-size: 18px !important;
    color: #191919 !important;
    text-align: center !important;
    line-height: 1.2 !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* =========================
   NO IMAGES
========================= */
.dev-tech-section .dev-tech-no-images {
    text-align: center !important;
    color: #aab4c4 !important;
    font-size: 15px !important;
    padding: 30px 0 !important;
    margin: 0 !important;
}

/* Up to 991px - Tablet */
@media (max-width: 991px) {
    .dev-tech-section .dev-tech-title {
        font-size: 34px !important;
    }
    .dev-tech-section .dev-tech-description {
        font-size: 20px !important;
    }
    .dev-tech-section .dev-tech-tabs-bar {
        padding: 7px !important;
        gap: 8px !important;
    }
    .dev-tech-section .dev-tech-tab-btn {
        flex: 0 0 auto !important;
        min-height: 52px !important;
        height: auto !important;
        font-size: 17px !important;
        padding: 8px 20px !important;
    }
    /* Tabs no longer stretch to fill the row at this width — they become
       horizontally scrollable, so show this custom progress track under
       the pill as a permanent hint that there's more to scroll to. */
    .dev-tech-section .dev-tech-tabs-scrollbar {
        /* keep the styling here, but only actually show it on small mobile
           (≤630px) — the ≤630px query below flips display back on */
        display: none;
        position: relative;
        height: 4px;
        margin: 10px 28px 0 !important;
        background: rgba(24, 119, 242, 0.15);
        border-radius: 999px;
    }
    .dev-tech-section .dev-tech-tabs-scrollbar-thumb {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        min-width: 24px;
        background: rgba(24, 119, 242, 0.6);
        border-radius: 999px;
        cursor: grab;
        touch-action: none;
        -webkit-user-select: none;
        user-select: none;
    }
    /* Invisible larger hit area — a 4px-tall bar is too thin to grab
       precisely with a mouse or finger, so the actual draggable target
       extends well above and below the visible line. */
    .dev-tech-section .dev-tech-tabs-scrollbar-thumb::before {
        content: '';
        position: absolute;
        top: -10px;
        bottom: -10px;
        left: 0;
        right: 0;
    }
    .dev-tech-section .dev-tech-tabs-scrollbar-thumb.is-dragging {
        cursor: grabbing;
        background: rgba(24, 119, 242, 0.8);
    }
    .dev-tech-section .dev-tech-images-grid {
        gap: 30px 22px !important;
    }
    .dev-tech-section .dev-tech-img-item {
        flex: 0 0 calc((100% - 66px) / 4) !important;
        width: calc((100% - 66px) / 4) !important;
    }
    .dev-tech-blob--pink {
        width: 135px !important;
        height: 135px !important;
        filter: blur(115px) !important;
        top: -10px !important;
        left: calc(50% - 67px) !important;
    }
    .dev-tech-blob--blue-mid {
        width: 188px !important;
        height: 188px !important;
        filter: blur(140px) !important;
        top: 22% !important;
        left: 40px !important;
    }
    .dev-tech-blob--blue-br {
        width: 188px !important;
        height: 188px !important;
        filter: blur(115px) !important;
        bottom: -30px !important;
        right: 30px !important;
    }
}

/* Up to 767px - Mobile */
@media (max-width: 767px) {
    .dev-tech-section {
        padding: 60px 16px !important;
    }
    .dev-tech-section .dev-tech-title {
        font-size: 28px !important;
        line-height: 120% !important;
    }
    .dev-tech-section .dev-tech-description {
        font-size: 16px !important;
        line-height: 150% !important;
        margin-bottom: 35px !important;
    }
    .dev-tech-section .dev-tech-tabs-bar {
        min-height: 60px !important;
        padding: 6px !important;
        gap: 6px !important;
    }
    .dev-tech-section .dev-tech-tab-btn {
        flex: 0 0 auto !important;
        min-height: 48px !important;
        height: auto !important;
        font-size: 15px !important;
        padding: 8px 18px !important;
    }
    .dev-tech-section .dev-tech-tabs-scrollbar {
        margin: 8px 18px 0 !important;
    }
    .dev-tech-section .dev-tech-images-grid {
        gap: 30px 16px !important;
    }
    .dev-tech-section .dev-tech-img-item {
        flex: 0 0 calc((100% - 32px) / 3) !important;
        width: calc((100% - 32px) / 3) !important;
    }
    .dev-tech-section .dev-tech-img-item img {
        width: 50px !important;
        height: 50px !important;
        max-width: 50px !important;
        max-height: 50px !important;
    }
    .dev-tech-section .dev-tech-img-label {
        font-size: 14px !important;
    }
    .dev-tech-blob--pink {
        width: 100px !important;
        height: 100px !important;
        filter: blur(90px) !important;
        top: -5px !important;
        left: calc(50% - 50px) !important;
    }
    .dev-tech-blob--blue-mid {
        width: 140px !important;
        height: 140px !important;
        filter: blur(110px) !important;
        top: 20% !important;
        left: -20px !important;
    }
    .dev-tech-blob--blue-br {
        width: 140px !important;
        height: 140px !important;
        filter: blur(90px) !important;
        bottom: -20px !important;
        right: -20px !important;
    }
}

/* Blue scroll slider under the tabs: shown only on small mobile (≤630px);
   removed on tablet and larger (>630px) per request. */
@media (max-width: 630px) {
    .dev-tech-section .dev-tech-tabs-scrollbar {
        display: block;
    }
}

/* =========================
   SCROLL-REVEAL ENTRANCE — "Zoom-pop wave"
   Title fades + rises first, then the tech logos fade in and scale up
   from scale(0.82) in a left-to-right wave (nth-child stagger).
   opacity + transform only — no filter/blur on the bordered-safe grid
   items, no layout-driving transforms, so there is zero layout shift.
   The revealed state lives on `.devtech-in` (on the section), so once
   revealed every item stays visible — including items in tab panels
   the visitor switches to afterward.
========================= */

/* Initial hidden state — only while awaiting reveal */
.dev-tech-section.devtech-reveal .dev-tech-title,
.dev-tech-section.devtech-reveal .dev-tech-description,
.dev-tech-section.devtech-reveal .dev-tech-img-item {
    opacity: 0;
    transition-property: opacity, transform;
    transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

/* Title rises + fades first */
.dev-tech-section.devtech-reveal .dev-tech-title {
    transform: translateY(28px);
    transition-duration: 1.1s;
    transition-delay: 0s;
}

/* Description follows just behind the title */
.dev-tech-section.devtech-reveal .dev-tech-description {
    transform: translateY(24px);
    transition-duration: 1.1s;
    transition-delay: 0.12s;
}

/* Logos zoom-pop up from 0.82 */
.dev-tech-section.devtech-reveal .dev-tech-img-item {
    transform: scale(0.82);
    transition-duration: 1.25s;
    transition-delay: 0.28s;
}

/* Left-to-right wave — nth-child stagger across the grid */
.dev-tech-section.devtech-reveal .dev-tech-img-item:nth-child(1)  { transition-delay: 0.28s; }
.dev-tech-section.devtech-reveal .dev-tech-img-item:nth-child(2)  { transition-delay: 0.35s; }
.dev-tech-section.devtech-reveal .dev-tech-img-item:nth-child(3)  { transition-delay: 0.42s; }
.dev-tech-section.devtech-reveal .dev-tech-img-item:nth-child(4)  { transition-delay: 0.49s; }
.dev-tech-section.devtech-reveal .dev-tech-img-item:nth-child(5)  { transition-delay: 0.56s; }
.dev-tech-section.devtech-reveal .dev-tech-img-item:nth-child(6)  { transition-delay: 0.63s; }
.dev-tech-section.devtech-reveal .dev-tech-img-item:nth-child(7)  { transition-delay: 0.70s; }
.dev-tech-section.devtech-reveal .dev-tech-img-item:nth-child(8)  { transition-delay: 0.77s; }
.dev-tech-section.devtech-reveal .dev-tech-img-item:nth-child(9)  { transition-delay: 0.84s; }
.dev-tech-section.devtech-reveal .dev-tech-img-item:nth-child(10) { transition-delay: 0.91s; }
.dev-tech-section.devtech-reveal .dev-tech-img-item:nth-child(11) { transition-delay: 0.98s; }
.dev-tech-section.devtech-reveal .dev-tech-img-item:nth-child(12) { transition-delay: 1.05s; }
.dev-tech-section.devtech-reveal .dev-tech-img-item:nth-child(13) { transition-delay: 1.12s; }
.dev-tech-section.devtech-reveal .dev-tech-img-item:nth-child(14) { transition-delay: 1.19s; }
.dev-tech-section.devtech-reveal .dev-tech-img-item:nth-child(15) { transition-delay: 1.26s; }
.dev-tech-section.devtech-reveal .dev-tech-img-item:nth-child(16) { transition-delay: 1.33s; }
.dev-tech-section.devtech-reveal .dev-tech-img-item:nth-child(17) { transition-delay: 1.40s; }
.dev-tech-section.devtech-reveal .dev-tech-img-item:nth-child(18) { transition-delay: 1.47s; }
.dev-tech-section.devtech-reveal .dev-tech-img-item:nth-child(19) { transition-delay: 1.54s; }
.dev-tech-section.devtech-reveal .dev-tech-img-item:nth-child(n+20) { transition-delay: 1.61s; }

/* Revealed state — restores resting transforms; stays put once set */
.dev-tech-section.devtech-in .dev-tech-title,
.dev-tech-section.devtech-in .dev-tech-description,
.dev-tech-section.devtech-in .dev-tech-img-item {
    opacity: 1;
    transform: none;
}

/* Respect reduced-motion: reveal instantly, no transition */
@media (prefers-reduced-motion: reduce) {
    .dev-tech-section.devtech-reveal .dev-tech-title,
    .dev-tech-section.devtech-reveal .dev-tech-description,
    .dev-tech-section.devtech-reveal .dev-tech-img-item {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Up to 480px - Mobile */
@media (max-width: 480px) {
    .dev-tech-section .dev-tech-images-grid {
        gap: 25px 14px !important;
    }
    .dev-tech-section .dev-tech-img-item {
        flex: 0 0 calc((100% - 14px) / 2) !important;
        width: calc((100% - 14px) / 2) !important;
    }
    .dev-tech-blob--pink {
        width: 75px !important;
        height: 75px !important;
        filter: blur(70px) !important;
        top: -5px !important;
        left: calc(50% - 37px) !important;
    }
    .dev-tech-blob--blue-mid {
        width: 110px !important;
        height: 110px !important;
        filter: blur(90px) !important;
        top: 18% !important;
        left: -15px !important;
    }
    .dev-tech-blob--blue-br {
        width: 110px !important;
        height: 110px !important;
        filter: blur(70px) !important;
        bottom: -15px !important;
        right: -15px !important;
    }
}
