.hero {
    min-height: max(38rem, calc(100svh - 5rem));
    display: flex;
    align-items: center;
    background: var(--color-bg-alt);
}

.hero__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: clamp(2.5rem, 6vw, 4rem);
    align-items: center;
    width: 100%;
}

.hero__content {
    min-width: 0;
}

.hero__eyebrow {
    display: inline-block;
    margin-bottom: 1.5rem;
    padding: 0.25rem 0.7rem;
    background: rgba(30, 41, 59, 0.55);
    border-radius: 4px;
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero__title {
    max-width: 15ch;
    margin-bottom: 1.25rem;
    color: var(--color-heading);
    font-size: clamp(2.1rem, 4.4vw, 2.9rem);
    font-weight: 700;
}

.hero__name {
    display: inline;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__description {
    max-width: 56ch;
    margin-bottom: 2rem;
    color: var(--color-muted);
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    line-height: 1.75;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.tech-stack {
    margin-top: 2.5rem;
}

.tech-stack__title {
    margin-bottom: 1rem;
    color: var(--color-muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tech-stack__list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.tech-stack__item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
}

.tech-stack__item i {
    font-size: 2.25rem;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.tech-stack__item:hover i {
    transform: translateY(-4px);
}

.tech-stack__item--html5 i { color: #ee6200; }
.tech-stack__item--css3 i { color: #005df9; }
.tech-stack__item--javascript i { color: #f9c200; }
.tech-stack__item--git i { color: #ee6200; }

.hero__media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 34rem);
    aspect-ratio: 1 / 1;
    margin: 0 auto;
}

.hero__media::before {
    content: "";
    position: absolute;
    inset: 10%;
    background: linear-gradient(135deg, var(--color-blue), var(--color-purple));
    border-radius: 50%;
    z-index: 0;
}

.hero__image {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
}

@media (max-width: 1024px) {
    .hero {
        min-height: auto;
        padding-block: 5rem;
    }

    .hero__layout {
        grid-template-columns: minmax(0, 1fr) minmax(240px, 0.8fr);
        gap: 2.5rem;
    }

    .hero__title {
        max-width: none;
    }
}

@media (max-width: 860px) {
    .hero {
        padding-block: 4.5rem;
    }

    .hero__layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero__media {
        order: -1;
        width: min(82vw, 24rem);
    }

    .hero__content {
        text-align: center;
    }

    .hero__eyebrow {
        margin-bottom: 1.1rem;
    }

    .hero__title,
    .hero__description {
        margin-inline: auto;
    }

    .hero__actions,
    .tech-stack__list {
        justify-content: center;
    }
}

@media (max-width: 560px) {
    .hero {
        padding-block: 3.75rem;
    }

    .hero__layout {
        gap: 2.35rem;
    }

    .hero__title {
        font-size: clamp(1.95rem, 10vw, 2.35rem);
        line-height: 1.14;
    }

    .hero__description {
        margin-bottom: 1.5rem;
        font-size: 0.94rem;
        line-height: 1.65;
    }

    .hero__actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: min(100%, 24rem);
        margin-inline: auto;
    }

    .hero__actions .button {
        width: 100%;
    }

    .tech-stack {
        margin-top: 2rem;
    }

    .tech-stack__list {
        gap: 1rem;
    }

    .tech-stack__item {
        width: 2.25rem;
        height: 2.25rem;
    }

    .tech-stack__item i {
        font-size: 1.95rem;
    }

    .hero__media {
        width: min(78vw, 19rem);
    }
}

@media (max-width: 380px) {
    .hero__actions {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .hero__actions .button {
        max-width: 20rem;
        margin-inline: auto;
    }
}
