/* Standalone Home1 technology section. */
.technologies-section {
    --tech-heading: #000;
    --tech-blue: #0969da;
    --tech-teal: #087f72;
    --tech-violet: #8a49bb;
    --tech-amber: #b65412;
    --tech-rose: #b33c70;
    padding-block: clamp(1.5rem, 3.5vw, 2.75rem);
    border-block: 1px solid var(--line);
    background: var(--soft);
}

[data-bs-theme=dark] .technologies-section {
    --tech-heading: #fff;
    --tech-blue: #80bdff;
    --tech-teal: #61d9c5;
    --tech-violet: #d0a4ff;
    --tech-amber: #ffc36d;
    --tech-rose: #f3a7ce;
}

.technology-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "heading" "photo" "directory";
    align-items: center;
    gap: 1rem;
}

.technology-panel-heading { grid-area: heading; }
.technology-panel-heading h2 {
    margin: 0 0 .35rem;
    font-size: clamp(1.7rem, 2.6vw, 2.45rem);
}
.technology-panel-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 1.0625rem;
    line-height: 1.45;
}

.technology-figure {
    grid-area: photo;
    justify-self: center;
    width: min(100%, 20rem);
    margin: 0;
    padding: .45rem;
    border: 1px solid var(--line);
    border-radius: .875rem;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.technology-panel-photo {
    display: block;
    width: 100%;
    height: auto;
    border-radius: .55rem;
}

.technology-directory {
    grid-area: directory;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin: 0;
    border: 1px solid var(--line);
    border-radius: .75rem;
    background: var(--surface);
}

.technology-category {
    --tech-accent: var(--tech-blue);
    min-width: 0;
    padding: .48rem .75rem;
    line-height: 1.35;
}

.technology-category + .technology-category { border-block-start: 1px solid var(--line); }
.technology-frontend, .technology-observability { --tech-accent: var(--tech-teal); }
.technology-backend, .technology-automation { --tech-accent: var(--tech-violet); }
.technology-databases, .technology-ai { --tech-accent: var(--tech-rose); }
.technology-devops, .technology-tools { --tech-accent: var(--tech-amber); }

.technology-category dt {
    display: flex;
    align-items: center;
    gap: .42rem;
    margin: 0 0 .12rem;
    color: var(--tech-heading);
    font-family: var(--heading-font);
    font-size: .9375rem;
    font-weight: 750;
}

.technology-category dt::before {
    flex: 0 0 .2rem;
    height: .9rem;
    border-radius: 1rem;
    background: var(--tech-accent);
    content: "";
}

.technology-category dd { margin: 0; }

.technology-category ul {
    display: flex;
    flex-wrap: wrap;
    gap: .1rem .36rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: .9375rem;
    color: var(--muted);
}

.technology-category li {
    position: relative;
    max-width: 100%;
    padding-inline-start: .41rem;
    overflow-wrap: anywhere;
}

.technology-category li::before {
    position: absolute;
    inset-inline-start: 0;
    inset-block-start: .58em;
    width: .19rem;
    height: .19rem;
    border-radius: 50%;
    background: var(--tech-accent);
    content: "";
}

@media (max-width: 699.98px) {
    .technology-category { padding: .43rem .65rem; }
    .technology-category dt { font-size: .875rem; }
}

@media (min-width: 375px) {
    .technology-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .technology-category:nth-child(2) { border-block-start: 0; }
    .technology-category:nth-child(even) { border-inline-start: 1px solid var(--line); }
}

@media (min-width: 700px) {
    .technology-panel {
        grid-template-columns: minmax(0, 1fr) minmax(0, 38%);
        grid-template-areas: "heading photo" "directory directory";
        gap: 1.125rem 1.5rem;
    }

    .technology-figure { justify-self: end; }
    .technology-directory { grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); }
    .technology-category { padding-inline: .9rem; }
}

@media (min-width: 1100px) {
    .technology-panel {
        grid-template-columns: minmax(0, 1fr) clamp(17.75rem, 28%, 23.5rem);
        grid-template-areas: "heading photo" "directory photo";
        gap: 1rem clamp(1.5rem, 3vw, 2.75rem);
    }

    .technology-figure { width: 100%; }
}

@media print {
    .technologies-section, .technology-directory { background: #fff; }
    .technology-panel { display: block; }
    .technology-panel-heading { margin-bottom: .75rem; }
    .technology-figure { display: none; }
    .technology-category { break-inside: avoid; }
    .technology-category dt, .technology-category ul { color: #000; }
}
