/* =========================================================
   Hero details: cards, languages and knowledge
   ========================================================= */

/* Keep the intro line quieter while preserving the name as the visual focus. */
.hero__title {
    font-size: clamp(2.5rem, 3.1vw, 3.55rem);
}

.hero__title span {
    font-size: 1.28em;
}

/* Keep all three competency cards visually aligned. */
.hero__cards {
    align-items: stretch;
}

.hero-card {
    height: 100%;
}

.hero__skills-overview {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
    gap: 0;
    margin-top: 2px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(20, 31, 45, 0.9), rgba(12, 19, 29, 0.76));
    border: 1px solid rgba(112, 139, 171, 0.2);
    border-radius: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02), 0 16px 38px rgba(0, 0, 0, 0.1);
}

.hero-skill-section {
    min-width: 0;
    padding: 20px 22px;
}

.hero-skill-section + .hero-skill-section {
    border-left: 1px solid rgba(112, 139, 171, 0.16);
}

.hero-skill-section__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.hero-skill-section__header h2 {
    margin: 0;
    color: #eef3f9;
    font-size: 0.96rem;
    font-weight: 680;
}

.hero-skill-section__icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    color: #5a9bec;
    background: rgba(47, 140, 255, 0.07);
    border: 1px solid rgba(100, 164, 243, 0.26);
    border-radius: 50%;
}

.hero-skill-section__icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.skill-rating-list,
.knowledge-rating-grid {
    margin: 0;
    padding: 0;
    list-style: none;
}

.skill-rating-list {
    display: grid;
    gap: 8px;
}

.knowledge-rating-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 24px;
}

.skill-rating {
    display: grid;
    align-items: center;
    justify-content: start;
    gap: 12px;
    min-width: 0;
    color: #aeb8c5;
    font-size: 0.86rem;
    line-height: 1.35;
}

.skill-rating-list .skill-rating {
    grid-template-columns: 110px auto;
}

.knowledge-rating-grid .skill-rating {
    grid-template-columns: minmax(120px, 150px) auto;
}

.skill-rating__label {
    min-width: 0;
}

.skill-rating__dots {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 2px;
    font-size: 0.78rem;
    line-height: 1;
    letter-spacing: 0.04em;
}

.skill-rating__dots--active {
    color: #66a8f5;
    text-shadow: 0 0 8px rgba(102, 168, 245, 0.18);
}

.skill-rating__dots--inactive {
    color: #526072;
}

/* ---------------------------------------------------------
   Current role highlight
   --------------------------------------------------------- */

.hero__current-role {
    position: relative;
    grid-column: 1 / -1;
    margin-top: 2px;
    padding: 24px 26px;
    overflow: hidden;
    background: linear-gradient(115deg, rgba(41, 108, 188, 0.3) 0%, rgba(22, 54, 88, 0.52) 36%, rgba(12, 19, 29, 0.86) 100%);
    border: 1px solid rgba(84, 151, 232, 0.3);
    border-radius: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 18px 42px rgba(0, 0, 0, 0.12);
}

.hero__current-role::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, #73b4ff, #2f8cff 60%, rgba(47, 140, 255, 0.15));
    box-shadow: 0 0 18px rgba(47, 140, 255, 0.4);
}

.current-role__topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
}

.current-role__identity {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
}

.current-role__icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    color: #6eacf4;
    background: rgba(47, 140, 255, 0.08);
    border: 1px solid rgba(105, 168, 244, 0.28);
    border-radius: 50%;
}

.current-role__icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.current-role__eyebrow {
    display: block;
    margin-bottom: 2px;
    color: #6ba9f2;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.current-role__identity h2 {
    margin: 0;
    color: #f3f7fc;
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.3;
}

.current-role__identity p {
    margin: 3px 0 0;
    color: #aab6c4;
    font-size: 0.9rem;
    font-style: italic;
}

.current-role__meta {
    flex: 0 0 auto;
    text-align: right;
}

.current-role__meta strong,
.current-role__meta span {
    display: block;
}

.current-role__meta strong {
    color: #e6edf6;
    font-size: 0.9rem;
    font-weight: 650;
}

.current-role__meta span {
    margin-top: 2px;
    color: #7f8da0;
    font-size: 0.78rem;
}

.current-role__tasks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 28px;
    margin: 20px 0 0;
    padding: 18px 0 0;
    border-top: 1px solid rgba(125, 163, 207, 0.15);
    list-style: none;
}

.current-role__tasks li {
    position: relative;
    padding-left: 18px;
    color: #b6c0cc;
    font-size: 0.84rem;
    line-height: 1.5;
}

.current-role__tasks li::before {
    content: "";
    position: absolute;
    top: 0.63em;
    left: 0;
    width: 6px;
    height: 6px;
    background: #5fa7f5;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(95, 167, 245, 0.3);
}

@media (max-width: 1100px) {
    .hero-card {
        height: auto;
    }

    .hero__skills-overview {
        grid-template-columns: 1fr;
    }

    .hero-skill-section + .hero-skill-section {
        border-top: 1px solid rgba(112, 139, 171, 0.16);
        border-left: 0;
    }

    .current-role__tasks {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .hero__title {
        font-size: clamp(2.25rem, 8.5vw, 3.25rem);
    }

    .hero-skill-section {
        padding: 18px;
    }

    .knowledge-rating-grid {
        grid-template-columns: 1fr;
    }

    .skill-rating-list .skill-rating,
    .knowledge-rating-grid .skill-rating {
        grid-template-columns: minmax(100px, 140px) auto;
    }

    .hero__current-role {
        padding: 20px;
    }

    .current-role__topline {
        display: block;
    }

    .current-role__meta {
        margin: 14px 0 0 56px;
        text-align: left;
    }
}
