/* =========================================================
   TECHNOLOGY / TECH STACK
   Reference-layout CSS
   File: technology_tech_stack.css
========================================================= */

.technology-tech-stack-section {
    --tech-blue: #0878f9;
    --tech-blue-dark: #075bc5;
    --tech-navy: #10244d;
    --tech-text: #344463;
    --tech-muted: #667591;
    --tech-border: rgba(34, 63, 105, .09);
    --tech-shadow: 0 12px 35px rgba(28, 63, 110, .075);

    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 78px 0 70px;
    background: #f7fbff;
}

.technology-tech-stack-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 16%, rgba(44, 145, 255, .08), transparent 27%),
        radial-gradient(circle at 88% 45%, rgba(44, 145, 255, .065), transparent 25%),
        linear-gradient(rgba(15, 118, 230, .028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 118, 230, .028) 1px, transparent 1px);
    background-size: auto, auto, 44px 44px, 44px 44px;
    mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.65) 70%, transparent 100%);
}

/* =========================================================
   HERO
========================================================= */

.technology-tech-hero {
    display: grid;
    grid-template-columns: minmax(0, .94fr) minmax(430px, 1.06fr);
    align-items: center;
    gap: 40px;
    min-height: 400px;
    margin-bottom: 34px;
}

.technology-tech-hero-content {
    padding-left: 25px;
}

.technology-tech-eyebrow {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 16px;

    color: var(--tech-blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.2px;
    text-transform: uppercase;
}

.tech-eyebrow-line {
    width: 30px;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
}

.technology-tech-heading {
    max-width: 610px;
    margin: 0;
    color: var(--tech-navy);
    font-size: clamp(37px, 4vw, 56px);
    font-weight: 800;
    line-height: 1.10;
    letter-spacing: -1.8px;
}

.technology-tech-description {
    max-width: 560px;
    margin: 20px 0 0;
    color: var(--tech-text);
    font-size: 17px;
    line-height: 1.68;
}

.technology-tech-features {
    display: flex;
    flex-wrap: wrap;
    gap: 27px;
    margin-top: 29px;
}

.technology-tech-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 145px;
}

.technology-tech-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(8,120,249,.13);
    border-radius: 50%;
    color: var(--tech-blue);
    background: #e9f4ff;
    box-shadow: 0 8px 20px rgba(8,120,249,.08);
    font-size: 18px;
}

.technology-tech-feature-title {
    max-width: 100px;
    color: var(--tech-navy);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.35;
}

/* =========================================================
   HERO VISUAL
========================================================= */

.technology-tech-hero-visual {
    position: relative;
    min-height: 390px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.technology-tech-hero-image-wrap {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 650px;
}

.technology-tech-hero-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 25px rgba(20,58,100,.10));
}

/* CSS fallback visual */
.technology-tech-laptop {
    position: relative;
    z-index: 2;
    width: 345px;
    height: 235px;
    perspective: 900px;
}

.technology-tech-screen {
    position: absolute;
    left: 33px;
    top: 5px;
    width: 280px;
    height: 180px;
    overflow: hidden;
    border: 8px solid #172b4e;
    border-radius: 12px 12px 5px 5px;
    background:
        radial-gradient(circle at 72% 45%, rgba(16,124,255,.28), transparent 26%),
        linear-gradient(145deg, #0b2347, #103a6e);
    box-shadow: 0 20px 30px rgba(10,39,80,.18);
    transform: rotateX(1deg);
}

.technology-tech-screen::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(255,255,255,.11), transparent 28%);
}

.technology-tech-screen-code {
    position: absolute;
    left: 70px;
    top: 62px;
    color: #1684ff;
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -8px;
}

.technology-tech-screen-text {
    position: absolute;
    right: 18px;
    top: 58px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.22;
}

.technology-tech-laptop-base {
    position: absolute;
    left: 0;
    bottom: 22px;
    width: 345px;
    height: 27px;
    border-radius: 5px 5px 50% 50%;
    background: linear-gradient(180deg, #d8e2ec, #91a6ba);
    box-shadow: 0 20px 30px rgba(24,58,93,.15);
}

.technology-tech-laptop-base::after {
    content: "";
    position: absolute;
    left: 135px;
    top: 4px;
    width: 75px;
    height: 4px;
    border-radius: 99px;
    background: #7e94aa;
}

.technology-tech-floating-icon {
    position: absolute;
    z-index: 3;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 62px;
    height: 62px;
    border: 1px solid rgba(25,73,126,.10);
    border-radius: 15px;

    background: rgba(255,255,255,.96);
    box-shadow: 0 13px 30px rgba(29,67,111,.13);

    font-size: 28px;
}

.tech-float-php {
    left: 4%;
    top: 16%;
    color: #6d7fba;
}

.tech-float-wordpress {
    left: 29%;
    top: 0;
    color: #176ba5;
}

.tech-float-js {
    right: 17%;
    top: 3%;
    color: #e6b900;
}

.tech-float-code {
    right: 0;
    top: 24%;
    color: var(--tech-blue);
}

.tech-float-mysql {
    right: 2%;
    bottom: 24%;
    color: #2473a8;
}

.tech-float-html {
    left: 3%;
    bottom: 24%;
    color: #e34f26;
}

/* =========================================================
   CATEGORY ROWS
========================================================= */

.technology-tech-category-list {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.technology-tech-category {
    display: grid;
    grid-template-columns: 225px minmax(0, 1fr);
    align-items: stretch;
    min-height: 142px;

    padding: 18px 20px 18px 24px;
    border: 1px solid var(--tech-border);
    border-radius: 17px;

    background: rgba(255,255,255,.94);
    box-shadow: var(--tech-shadow);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.technology-tech-category:hover {
    transform: translateY(-3px);
    border-color: rgba(8,120,249,.16);
    box-shadow: 0 17px 42px rgba(28,63,110,.10);
}

.technology-tech-category-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 24px;
    border-right: 1px solid rgba(35,66,109,.11);
}

.technology-tech-category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    margin-bottom: 8px;
    border-radius: 11px;
    color: var(--tech-blue);
    background: #edf6ff;
    font-size: 20px;
}

.technology-tech-category-title {
    margin: 0;
    color: var(--tech-navy);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
}

.technology-tech-category-description {
    max-width: 205px;
    margin: 7px 0 0;
    color: var(--tech-muted);
    font-size: 12px;
    line-height: 1.5;
}

.technology-tech-items {
    display: grid;
    grid-template-columns: repeat(7, minmax(80px, 1fr));
    align-items: center;
    gap: 10px;
    padding-left: 21px;
}

.technology-tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 102px;
    padding: 8px 5px;

    border: 1px solid transparent;
    border-radius: 12px;

    color: var(--tech-navy);
    text-align: center;
    text-decoration: none;

    transition:
        background .22s ease,
        border-color .22s ease,
        transform .22s ease;
}

.technology-tech-item:hover {
    color: var(--tech-blue-dark);
    background: #f8fbff;
    border-color: rgba(8,120,249,.10);
    text-decoration: none;
    transform: translateY(-3px);
}

.technology-tech-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 63px;
    height: 63px;
    margin-bottom: 8px;

    border: 1px solid rgba(25,70,120,.055);
    border-radius: 13px;

    color: var(--tech-blue);
    background: linear-gradient(145deg, #fff, #f4f8fd);
    box-shadow: 0 8px 20px rgba(28,63,110,.055);

    font-size: 29px;
}

.technology-tech-item-title {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: inherit;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =========================================================
   CTA
========================================================= */

.technology-tech-cta {
    display: grid;
    grid-template-columns: 55px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;

    margin-top: 19px;
    padding: 17px 22px;

    border: 1px solid rgba(8,120,249,.08);
    border-radius: 16px;

    background: linear-gradient(
        100deg,
        #e8f4ff 0%,
        #ddecff 100%
    );

    box-shadow: 0 10px 28px rgba(24,72,123,.055);
}

.technology-tech-cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;
    border-radius: 50%;

    color: var(--tech-blue);
    background: rgba(255,255,255,.72);

    font-size: 23px;
}

.technology-tech-cta-content h3 {
    margin: 0;
    color: var(--tech-navy);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
}

.technology-tech-cta-content p {
    margin: 5px 0 0;
    color: var(--tech-text);
    font-size: 12px;
    line-height: 1.5;
}

.technology-tech-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 47px;
    padding: 11px 21px;

    border-radius: 9px;
    color: #fff;
    background: linear-gradient(135deg, #0878f9, #0567dd);
    box-shadow: 0 10px 22px rgba(8,120,249,.20);

    font-size: 12px;
    font-weight: 750;
    text-decoration: none;

    transition:
        transform .22s ease,
        box-shadow .22s ease;
}

.technology-tech-cta-button:hover {
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 14px 27px rgba(8,120,249,.27);
}

/* =========================================================
   1200px
========================================================= */

@media (max-width: 1199.98px) {
    .technology-tech-hero {
        grid-template-columns: minmax(0, 1fr) minmax(350px, .95fr);
        gap: 25px;
    }

    .technology-tech-items {
        grid-template-columns: repeat(5, minmax(70px, 1fr));
    }
}

/* =========================================================
   991px
========================================================= */

@media (max-width: 991.98px) {
    .technology-tech-stack-section {
        padding: 65px 0;
    }

    .technology-tech-hero {
        grid-template-columns: 1fr;
        gap: 15px;
        min-height: 0;
    }

    .technology-tech-hero-content {
        padding-left: 0;
    }

    .technology-tech-heading {
        max-width: 700px;
    }

    .technology-tech-description {
        max-width: 700px;
    }

    .technology-tech-hero-visual {
        min-height: 330px;
    }

    .technology-tech-category {
        grid-template-columns: 190px minmax(0, 1fr);
    }

    .technology-tech-items {
        grid-template-columns: repeat(4, minmax(75px, 1fr));
    }
}

/* =========================================================
   767px
========================================================= */

@media (max-width: 767.98px) {
    .technology-tech-stack-section {
        padding: 52px 0 48px;
    }

    .technology-tech-hero {
        gap: 8px;
        margin-bottom: 27px;
    }

    .technology-tech-eyebrow {
        font-size: 10px;
        letter-spacing: 1.7px;
    }

    .technology-tech-heading {
        font-size: 34px;
        letter-spacing: -1px;
    }

    .technology-tech-description {
        margin-top: 15px;
        font-size: 14px;
        line-height: 1.7;
    }

    .technology-tech-features {
        gap: 14px;
        margin-top: 23px;
    }

    .technology-tech-feature {
        min-width: 0;
        flex: 1 1 30%;
        gap: 7px;
    }

    .technology-tech-feature-icon {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }

    .technology-tech-feature-title {
        max-width: 85px;
        font-size: 11px;
    }

    .technology-tech-hero-visual {
        min-height: 260px;
    }

    .technology-tech-laptop {
        transform: scale(.76);
    }

    .technology-tech-floating-icon {
        width: 45px;
        height: 45px;
        border-radius: 11px;
        font-size: 20px;
    }

    .tech-float-php {
        left: 0;
    }

    .tech-float-wordpress {
        left: 25%;
    }

    .tech-float-js {
        right: 16%;
    }

    .tech-float-code {
        right: 0;
    }

    .tech-float-mysql {
        right: 0;
    }

    .tech-float-html {
        left: 0;
    }

    .technology-tech-category {
        display: block;
        padding: 17px;
        border-radius: 15px;
    }

    .technology-tech-category-info {
        display: grid;
        grid-template-columns: 43px minmax(0, 1fr);
        column-gap: 11px;
        padding: 0 0 14px;
        border-right: 0;
        border-bottom: 1px solid rgba(35,66,109,.10);
    }

    .technology-tech-category-icon {
        grid-row: span 2;
        width: 43px;
        height: 43px;
        margin: 0;
        font-size: 18px;
    }

    .technology-tech-category-title {
        align-self: end;
        font-size: 17px;
    }

    .technology-tech-category-description {
        max-width: none;
        margin-top: 4px;
    }

    .technology-tech-items {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 7px;
        padding: 15px 0 0;
    }

    .technology-tech-item {
        min-height: 85px;
    }

    .technology-tech-item-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 6px;
        font-size: 23px;
    }

    .technology-tech-item-title {
        font-size: 10px;
    }

    .technology-tech-cta {
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 12px;
        padding: 16px;
    }

    .technology-tech-cta-icon {
        width: 44px;
        height: 44px;
        font-size: 19px;
    }

    .technology-tech-cta-content h3 {
        font-size: 17px;
    }

    .technology-tech-cta-content p {
        font-size: 11px;
    }

    .technology-tech-cta-button {
        grid-column: 1 / -1;
        width: 100%;
    }
}

/* =========================================================
   420px
========================================================= */

@media (max-width: 420px) {
    .technology-tech-heading {
        font-size: 29px;
    }

    .technology-tech-features {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .technology-tech-feature:last-child {
        grid-column: 1 / -1;
    }

    .technology-tech-hero-visual {
        min-height: 225px;
    }

    .technology-tech-laptop {
        transform: scale(.62);
    }

    .technology-tech-floating-icon {
        width: 39px;
        height: 39px;
        font-size: 17px;
    }

    .technology-tech-items {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .technology-tech-item {
        min-height: 79px;
    }

    .technology-tech-item-icon {
        width: 45px;
        height: 45px;
        font-size: 21px;
    }

    .technology-tech-cta-content h3 {
        font-size: 16px;
    }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
    .technology-tech-category,
    .technology-tech-item,
    .technology-tech-cta-button {
        transition: none !important;
    }

    .technology-tech-category:hover,
    .technology-tech-item:hover,
    .technology-tech-cta-button:hover {
        transform: none;
    }
}
