:root {
    --technologies-primary: #087a68;
    --technologies-primary-dark: #075e52;

    --technologies-heading: #15201d;
    --technologies-white: #ffffff;
    --technologies-border: #dfe8e7;

    --technologies-shadow:
        0 12px 32px rgba(19, 55, 50, 0.07);
}

/* =========================================
   MAIN SECTION
========================================= */

.technologies-section {
    position: relative;

    width: 100%;
    padding: 70px 20px 80px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(211, 244, 237, 0.22),
            transparent 34%
        ),
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fafefd 100%
        );
}

.technologies-container {
    position: relative;
    z-index: 5;

    width: min(1360px, 100%);
    margin: 0 auto;
}

/* =========================================
   DECORATIVE ELEMENTS
========================================= */

.technologies-dots {
    position: absolute;

    width: 145px;
    height: 85px;

    opacity: 0.28;

    background-image:
        radial-gradient(
            var(--technologies-primary) 3px,
            transparent 3px
        );

    background-size: 23px 23px;

    pointer-events: none;
}

.technologies-dots-top {
    top: 24px;
    left: 18px;
}

.technologies-dots-bottom {
    right: 28px;
    bottom: 22px;
}

.technologies-circles {
    position: absolute;

    border: 1px solid rgba(7, 141, 125, 0.3);
    border-radius: 50%;

    pointer-events: none;
}

.technologies-circles::before,
.technologies-circles::after {
    content: "";

    position: absolute;

    border: 1px solid rgba(7, 141, 125, 0.22);
    border-radius: 50%;
}

.technologies-circles-top {
    top: -145px;
    right: -80px;

    width: 315px;
    height: 315px;
}

.technologies-circles-top::before {
    inset: 32px;
}

.technologies-circles-top::after {
    inset: 64px;
}

.technologies-circles-bottom {
    left: -120px;
    bottom: -145px;

    width: 325px;
    height: 325px;

    border-width: 34px;
    border-color: rgba(7, 141, 125, 0.06);
}

.technologies-circles-bottom::before,
.technologies-circles-bottom::after {
    display: none;
}

/* =========================================
   SECTION HEADING
========================================= */

.technologies-heading {
    max-width: 1200px;

    margin: 0 auto 48px;

    text-align: center;
}

.technologies-badge {
    width: fit-content;

    margin: 0 auto 17px;
    padding: 9px 20px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    color: var(--technologies-white);

    background:
        linear-gradient(
            135deg,
            var(--technologies-primary-dark),
            #28aa9a
        );

    border-radius: 100px;

    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.7px;
    text-transform: uppercase;

    box-shadow:
        0 10px 25px rgba(7, 141, 125, 0.18);
}

.technologies-badge-icon {
    width: 18px;
    height: 18px;

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

.technologies-badge-icon svg {
    width: 100%;
    height: 100%;
}

.technologies-heading h2 {
    margin: 0;
    color: var(--title-color);
    font-family: var(--title-font);
    font-size: var(--title-size);
    font-weight: var(--title-weight);
    line-height: 1.16;
    letter-spacing: -1px;
}

.technologies-heading h2 span {
    color: var(--technologies-primary);
}

.technologies-heading h3 {
    margin: 8px 0 0;

    color: var(--technologies-heading);

    font-size: clamp(25px, 2.8vw, 39px);
    font-weight: 600;
    line-height: 1.2;
}

.technologies-heading-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin-top: 17px;
}

.technologies-heading-line span {
    width: 100px;
    height: 3px;

    background: var(--technologies-primary);

    border-radius: 100px;
}

.technologies-heading-line i {
    width: 6px;
    height: 6px;

    background: var(--technologies-primary);

    border-radius: 50%;
}

/* =========================================
   GRID — CENTERED SECOND ROW
========================================= */

.technologies-grid {
    display: grid;

    /*
    12 columns:
    Har card 2 columns lega.
    Pehli row mein 6 cards.
    Niche ke 3 cards exact center.
    */

    grid-template-columns: repeat(12, minmax(0, 1fr));

    gap: 20px;
}

.technology-card {
    grid-column: span 2;
}

/*
Second row:
Laravel column 4 se start hoga.
Laravel, MySQL aur REST API center mein rahenge.
*/

.technology-card:nth-child(7) {
    grid-column: 4 / span 2;
}

/* =========================================
   TECHNOLOGY CARD
========================================= */

.technology-card {
    position: relative;

    min-width: 0;
    min-height: 190px;

    overflow: hidden;

    background: var(--technologies-white);

    border: 1px solid var(--technologies-border);
    border-radius: 17px;

    box-shadow: var(--technologies-shadow);

    isolation: isolate;

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

/* Left colored accent */

.technology-side-line {
    position: absolute;
    z-index: 4;

    top: 50%;
    left: 0;

    width: 3px;
    height: 45%;

    background: var(--technology-color);

    border-radius: 0 10px 10px 0;

    transform: translateY(-50%);

    transition:
        height 0.35s ease,
        width 0.35s ease;
}

/* Colored border on hover */

.technology-card::before {
    content: "";

    position: absolute;
    z-index: 2;

    inset: 0;

    padding: 2px;

    border-radius: inherit;

    background:
        linear-gradient(
            135deg,
            var(--technology-color),
            color-mix(
                in srgb,
                var(--technology-color) 52%,
                #ffffff
            ),
            var(--technology-color)
        );

    opacity: 0;

    -webkit-mask:
        linear-gradient(#ffffff 0 0) content-box,
        linear-gradient(#ffffff 0 0);

    -webkit-mask-composite: xor;
    mask-composite: exclude;

    transition: opacity 0.3s ease;

    pointer-events: none;
}

.technology-card-content {
    position: relative;
    z-index: 5;

    min-height: 190px;

    padding: 24px 14px 20px;

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

    text-align: center;
}

/* =========================================
   ICON
========================================= */

.technology-logo-wrapper {
    width: 88px;
    height: 88px;

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

    margin-bottom: 14px;

    border-radius: 50%;

    background:
        color-mix(
            in srgb,
            var(--technology-color) 7%,
            #ffffff
        );

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.technology-logo {
    display: block;

    width: 70px;
    height: 70px;

    object-fit: contain;

    transition: transform 0.3s ease;
}

/* =========================================
   TITLE
========================================= */

.technology-card h4 {
    margin: 0;

    color: var(--technologies-heading);

    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
}

.technology-title-line {
    display: block;

    width: 30px;
    height: 2px;

    margin: 14px auto 0;

    background: var(--technology-color);

    border-radius: 100px;

    transition:
        width 0.3s ease,
        height 0.3s ease;
}

/* =========================================
   HOVER
========================================= */

.technology-card:hover {
    transform: translateY(-7px);

    border-color: transparent;

    box-shadow:
        0 18px 42px
        color-mix(
            in srgb,
            var(--technology-color) 18%,
            rgba(19, 55, 50, 0.08)
        );
}

.technology-card:hover::before {
    opacity: 1;
}

.technology-card:hover .technology-side-line {
    width: 4px;
    height: 82%;
}

.technology-card:hover .technology-logo-wrapper {
    transform: translateY(-3px) scale(1.04);

    box-shadow:
        0 10px 24px
        color-mix(
            in srgb,
            var(--technology-color) 16%,
            transparent
        );
}

.technology-card:hover .technology-logo {
    transform: scale(1.06);
}

.technology-card:hover .technology-title-line {
    width: 48px;
}

/* =========================================
   MEDIUM DESKTOP
========================================= */

@media screen and (max-width: 1250px) {
    .technologies-grid {
        grid-template-columns: repeat(10, minmax(0, 1fr));
        gap: 18px;
    }

    .technology-card {
        grid-column: span 2;
    }

    /*
    Last row mein 4 cards ho sakte hain.
    Custom centering remove.
    */

    .technology-card:nth-child(7) {
        grid-column: span 2;
    }

    .technology-card,
    .technology-card-content {
        min-height: 185px;
    }
}

/* =========================================
   LAPTOP
========================================= */

@media screen and (max-width: 1050px) {
    .technologies-section {
        padding: 65px 20px 75px;
    }

    .technologies-heading {
        margin-bottom: 43px;
    }

    .technologies-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }

    .technology-card {
        grid-column: span 2;
    }

    .technology-card,
    .technology-card-content {
        min-height: 180px;
    }

    .technology-logo-wrapper {
        width: 82px;
        height: 82px;
    }

    .technology-logo {
        width: 65px;
        height: 65px;
    }
}

/* =========================================
   TABLET
========================================= */

@media screen and (max-width: 800px) {
    .technologies-section {
        padding: 58px 18px 68px;
    }

    .technologies-heading h2 {
        font-size: var(--title-size);
    }

    .technologies-heading h3 {
        font-size: clamp(23px, 5.5vw, 32px);
    }

    .technologies-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 16px;
    }

    .technology-card {
        grid-column: span 2;
    }

    .technology-card,
    .technology-card-content {
        min-height: 175px;
    }

    .technology-card-content {
        padding: 20px 12px 18px;
    }

    .technology-logo-wrapper {
        width: 78px;
        height: 78px;
    }

    .technology-logo {
        width: 61px;
        height: 61px;
    }

    .technology-card h4 {
        font-size: 16px;
    }
}

/* =========================================
   MOBILE
========================================= */

@media screen and (max-width: 600px) {
    .technologies-section {
        padding: 48px 14px 58px;
    }

    .technologies-heading {
        margin-bottom: 34px;
    }

    .technologies-badge {
        padding: 8px 15px;

        font-size: 10px;
    }

    .technologies-heading h2 {
        font-size: var(--title-size);
        letter-spacing: -0.8px;
    }

    .technologies-heading h3 {
        margin-top: 7px;

        font-size: 24px;
    }

    .technologies-heading-line {
        margin-top: 14px;
    }

    .technologies-heading-line span {
        width: 75px;
    }

    .technologies-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 12px;
    }

    .technology-card {
        grid-column: span 2;

        min-height: 165px;

        border-radius: 14px;
    }

    /*
    9th card ko final row mein center.
    */

    .technology-card:nth-child(9) {
        grid-column: 2 / span 2;
    }

    .technology-card-content {
        min-height: 165px;

        padding: 18px 10px 16px;
    }

    .technology-logo-wrapper {
        width: 72px;
        height: 72px;

        margin-bottom: 11px;
    }

    .technology-logo {
        width: 56px;
        height: 56px;
    }

    .technology-card h4 {
        font-size: 14px;
    }

    .technology-title-line {
        margin-top: 11px;
    }

    .technology-card:hover,
    .technology-card:focus-within {
        transform: translateY(-4px);
    }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media screen and (max-width: 390px) {
    .technologies-heading h2 {
        font-size: 27px;
    }

    .technologies-heading h3 {
        font-size: 22px;
    }

    .technologies-grid {
        grid-template-columns: 1fr;
    }

    .technology-card,
    .technology-card:nth-child(7),
    .technology-card:nth-child(9) {
        grid-column: 1;

        min-height: 170px;
    }

    .technology-card-content {
        min-height: 170px;
    }

    .technology-logo-wrapper {
        width: 78px;
        height: 78px;
    }

    .technology-logo {
        width: 61px;
        height: 61px;
    }
}

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

@media (prefers-reduced-motion: reduce) {
    .technology-card,
    .technology-card::before,
    .technology-side-line,
    .technology-logo-wrapper,
    .technology-logo,
    .technology-title-line {
        transition: none !important;
    }

    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
    }
}