/* =========================================
   TECHNICAL SKILLS
========================================= */

.technical-skills {

    --surface: #FCFAF6;

    --skill-blue: #6fc5f4;
    --skill-green: #7bd4ad;
    --skill-purple: #c5a0f3;
    --skill-orange: #eab56c;
    --skill-rule: rgba(0, 0, 0, 0.16);


    --accent-1: #7bd4ad;
    --muted-1: #a9b8c8;
    --seperator-line-1: #344a5c;
    --background-color-1: #101a25;
}

.technical-skills-intro {
    max-width: 760px;
    margin-bottom: 2.25rem;
}

/* =========================================
   SKILL ORBIT
========================================= */

/* Orbit rings */
.skill-orbit-stage {
    position: relative;
    min-height: 380px;
    margin: 2rem 0 3rem;
    overflow: hidden;
    border-radius: 0.4rem;
    color: #edf4fb;
}

.skill-orbit-art {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 230px;
    max-width: 72%;
    height: auto;
    transform: translate(-50%, -50%);
    overflow: visible;
    min-width: 310px;
}

/* Orbit rings */

.skill-orbit-ring {
    fill: none;
    stroke: #526577;
    stroke-width: 1;
}

.skill-orbit-ring--outer {
    stroke-opacity: 0.8;
}

.skill-orbit-ring--middle {
    stroke-opacity: 0.65;
}

.skill-orbit-ring--inner-dashed {
    stroke: var(--surface);
    stroke-dasharray: 4 8;
    stroke-opacity: 0.7;
}

.skill-orbit-ring--dashed {
    stroke: #607a91;
    stroke-dasharray: 4 8;
    stroke-opacity: 0.7;
}

/* Connecting spokes */

.skill-orbit-spoke {
    fill: none;
    stroke: #63798d;
    stroke-width: 1;
    stroke-opacity: 0.8;
}

/* Category nodes */

.skill-orbit-node {
    stroke: #101a25;
    stroke-width: 2;
}


.skill-orbit-node--architecture {
    fill: var(--skill-blue);
}

.skill-orbit-node--data {
    fill: var(--skill-green);
}

.skill-orbit-node--interface {
    fill: var(--skill-purple);
}

.skill-orbit-node--communication {
    fill: var(--skill-orange);
}

/* Central orbit */

/* Central orbit */

.skill-orbit-core {
    fill: #172b3d;
    stroke: #6fc5f4;
    stroke-width: 1.5;
}

.skill-orbit-center-label {
    fill: #ffffff;
    font-family: monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.1px;
    text-anchor: middle;
}

/* =========================================
   ORBIT CATEGORY LABELS
   Mobile arrangement at all screen sizes
========================================= */

.skill-orbit-label {
    position: absolute;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0rem;
    width: 46%;
    max-width: 46%;
    font-size: 0.85rem;
    line-height: 1.2;
}

.skill-orbit-index {
    font-family: monospace;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
}

/* 01 / Architecture & Integration: top-left */

.skill-orbit-label--architecture {
    top: 0.85rem;
    right: auto;
    bottom: auto;
    left: 0.85rem;
    align-items: flex-start;
    text-align: left;
    transform: none;
}

.skill-orbit-label--architecture .skill-orbit-index {
    color: var(--skill-blue);
}

/* 02 / Data & Content: top-right */

.skill-orbit-label--data {
    top: 0.85rem;
    right: 0.85rem;
    bottom: auto;
    left: auto;
    text-align: right;
    transform: none;
}

.skill-orbit-label--data .skill-orbit-index {
    color: var(--skill-green);
}

/* 03 / Interface & Experience: bottom-left */

.skill-orbit-label--interface {
    top: auto;
    right: auto;
    bottom: 0.85rem;
    left: 0.85rem;
    align-items: flex-start;
    text-align: left;
    transform: none;
}

.skill-orbit-label--interface .skill-orbit-index {
    color: var(--skill-purple);
}

/* 04 / Technical Communication: bottom-right */

.skill-orbit-label--communication {
    top: auto;
    right: 0.85rem;
    bottom: 0.85rem;
    left: auto;
    text-align: right;
    transform: none;
}

.skill-orbit-label--communication .skill-orbit-index {
    color: var(--skill-orange);
}

/* =========================================
   TECHNICAL PRODUCT SKILLS
========================================= */

.skill-category-section {
    margin-top: 2.5rem;
}

.skill-category-intro {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.skill-category-intro h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.skill-category-intro>span,
.skills-tech-stack-heading>span {
    font-family: monospace;
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    opacity: 0.6;
}

/* Four columns on desktop */

.skill-category-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--skill-rule);
    border-bottom: 1px solid var(--skill-rule);
}

.skill-category {
    min-width: 0;
    padding: 1.25rem 0.85rem 1.5rem;
    border-left: 1px solid var(--skill-rule);
}

.skill-category:first-child {
    padding-left: 0;
    border-left: 0;
}

.skill-category:last-child {
    padding-right: 0;
}

/* Category headings */

.skill-category-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    margin-bottom: 1rem;
}

.skill-category-heading>span {
    font-family: monospace;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

.skill-category-heading h4 {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.4;
}

/* Category accent colors */

.skill-category--architecture .skill-category-heading>span,
.skill-category--architecture li::before {
    color: #2587bc;
}

.skill-category--data .skill-category-heading>span,
.skill-category--data li::before {
    color: #29986a;
}

.skill-category--interface .skill-category-heading>span,
.skill-category--interface li::before {
    color: #9669cb;
}

.skill-category--communication .skill-category-heading>span,
.skill-category--communication li::before {
    color: #b77a25;
}

/* Skill lists */

.skill-category ul {
    margin: 0;
    padding: 0 0 0 1.6rem;
    list-style: none;
}

.skill-category li {
    position: relative;
    margin-bottom: 0.65rem;
    padding-left: 0.8rem;
    font-size: 0.84rem;
    line-height: 1.5;
}

.skill-category li:last-child {
    margin-bottom: 0;
}

.skill-category li::before {
    position: absolute;
    top: 0.62em;
    left: 0;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

/* =========================================
   TECHNICAL TOOLKIT
========================================= */

.skills-tech-stack {
    margin-top: 3rem;
}

.skills-tech-stack-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.skills-tech-stack-heading h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Two-column label/content layout on desktop */

.skills-tech-stack-row {
    display: grid;
    grid-template-columns: minmax(190px, 0.8fr) 1.6fr;
    gap: 1.5rem;
    padding: 1.1rem 0;
    border-top: 1px solid var(--skill-rule);
}

.skills-tech-stack-row h4 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.6;
}

.skills-tech-stack-row p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.9;
    opacity: 0.8;
}

/* =========================================
   ORBIT ANIMATION
========================================= */

@keyframes skill-orbit-fade {
    from {
        opacity: 0.2;
    }

    to {
        opacity: 1;
    }
}

@keyframes skill-orbit-dash {
    to {
        stroke-dashoffset: -120;
    }
}

@keyframes skill-orbit-dash-reverse {
    to {
        stroke-dashoffset: 120;
    }
}

.skill-orbit-stage.orbit-active .skill-orbit-art {
    animation: skill-orbit-fade 0.9s ease-out both;
}

.skill-orbit-stage.orbit-active .skill-orbit-ring--dashed {
    animation: skill-orbit-dash-reverse 10s linear 0.9s infinite;
}

.skill-orbit-stage.orbit-active .skill-orbit-ring--inner-dashed {
    animation: skill-orbit-dash 6s linear 0.9s infinite;
}

.skill-orbit-stage.orbit-active .skill-orbit-label {
    animation: skill-orbit-fade 0.6s ease-out both;
}

.skill-orbit-stage.orbit-active .skill-orbit-label--architecture {
    animation-delay: 0.15s;
}

.skill-orbit-stage.orbit-active .skill-orbit-label--data {
    animation-delay: 0.3s;
}

.skill-orbit-stage.orbit-active .skill-orbit-label--interface {
    animation-delay: 0.45s;
}

.skill-orbit-stage.orbit-active .skill-orbit-label--communication {
    animation-delay: 0.6s;
}

/* =========================================
   RESPONSIVE: MEDIUM SCREENS
========================================= */

@media screen and (max-width: 1023px) {

    /* Two skill categories per row */

    .skill-category-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .skill-category {
        padding: 1.25rem;
        border-bottom: 1px solid var(--skill-rule);
    }

    .skill-category:nth-child(odd) {
        padding-left: 0;
        border-left: 0;
    }

    .skill-category:nth-child(even) {
        padding-right: 0;
    }

    .skill-category:nth-last-child(-n+2) {
        border-bottom: 0;
    }
}

/* =========================================
   RESPONSIVE: MOBILE
========================================= */

@media screen and (max-width: 639px) {

    .technical-skills-intro {
        margin-bottom: 1.75rem;
    }

    .skill-orbit-stage {
        margin: 1.5rem 0 2rem;
    }

    /* Stack section headings and metadata */

    .skill-category-intro,
    .skills-tech-stack-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.4rem;
    }

    /* One skill category per row */

    .skill-category-list {
        grid-template-columns: 1fr;
    }

    .skill-category ul {
        padding: 0 0 0 1.6rem;
    }

    .skill-category,
    .skill-category:nth-child(odd),
    .skill-category:nth-child(even) {
        padding: 1.15rem 0;
        border-left: 0;
        border-bottom: 1px solid var(--skill-rule);
    }

    .skill-category:last-child {
        border-bottom: 0;
    }

    /* Heading and number on one line */

    .skill-category-heading {
        flex-direction: row;
        align-items: baseline;
        gap: 0.75rem;
    }

    .skill-category-heading h4 {
        font-size: 1rem;
    }

    /* Stack toolkit labels above their content */

    .skills-tech-stack-row {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }
}

/* =========================================
   ACCESSIBILITY: REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {

    .skill-orbit-stage.orbit-active .skill-orbit-art,
    .skill-orbit-stage.orbit-active .skill-orbit-ring--dashed,
    .skill-orbit-stage.orbit-active .skill-orbit-label {
        animation: none !important;
    }
}

/* =========================================
   TECHNICAL SKILLS: ANIMATED DOT INDICATOR
========================================= */
/* =========================================
   ANIMATED SKILL INDICATOR
========================================= */

.skill-category-indicator {
    position: relative;
    display: flex;
    flex: 0 0 110px;
    align-items: center;
    justify-content: space-between;
    width: 110px;
    height: 26px;
    margin-left: auto;
}

.skill-indicator-line {
    position: absolute;
    top: 50%;
    right: 4.5px;
    left: 4.5px;
    height: 1px;
    background: #91a0ae;
    opacity: 0.55;
    transform: translateY(-50%);
}

.skill-indicator-dot {
    position: relative;
    z-index: 1;
    display: block;
    flex: 0 0 9px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    opacity: 0.6;
    opacity: 0.5;
    animation: skill-indicator-cycle 3.8s ease-in-out infinite;
}

.skill-indicator-dot--1 {
    background: #6fc5f4;
    animation-delay: 0s;
}

.skill-indicator-dot--2 {
    background: #7bd4ad;
    animation-delay: -2.7s;
}

.skill-indicator-dot--3 {
    background: #c5a0f3;
    animation-delay: -1.8s;
}

.skill-indicator-dot--4 {
    background: #eab56c;
    animation-delay: -0.9s;
}

@keyframes skill-indicator-cycle {

    0%,
    16% {
        opacity: 1;
    }

    21%,
    94% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}

/* Respect reduced-motion preferences */

@media (prefers-reduced-motion: reduce) {
    .skill-indicator-dot {
        animation: none;
        opacity: 0.5;
    }

    .skill-indicator-dot--1 {
        opacity: 1;
    }
}

/* Mobile: full-width dots and reduced vertical spacing */

@media screen and (max-width: 639px) {
    .skill-category-intro {
        align-items: stretch;
        flex-direction: column;
        gap: 0.2rem;
        margin-bottom: 0.65rem;
    }

    .skill-category-indicator {
        flex: 0 0 auto;
        width: 100%;
        height: 18px;
        margin-left: 0;
    }
}