/* ================================================== */
/* VARIABLES GLOBALES                                 */
/* ================================================== */
:root {
    --font-primary: "Inter", "Segoe UI", Arial, sans-serif;

    /* Fondo */
    --color-bg: #f4f7fa;
    --color-bg-alt: #eef3f8;

    /* Superficies */
    --color-surface: #ffffff;
    --color-surface-soft: #f8fbfd;
    --color-surface-muted: #edf2f7;

    /* Texto */
    --color-text: #0f1720;
    --color-text-soft: #334155;
    --color-text-muted: #64748b;

    /* Acento */
    --color-accent: #0f4c5c;
    --color-accent-dark: #0b3946;
    --color-accent-light: #d9e8ed;

    /* Bordes */
    --color-border: #d8e1e8;
    --color-border-strong: #b8c7d3;

    /* Sombras */
    --shadow-soft: 0 8px 24px rgba(15, 23, 32, 0.06);
    --shadow-card: 0 18px 40px rgba(15, 23, 32, 0.08);
    --shadow-hover: 0 22px 44px rgba(15, 23, 32, 0.12);

    /* Radios */
    --radius-sm: 0.5rem;
    --radius-md: 0.9rem;
    --radius-lg: 1.25rem;
    --radius-xl: 1.75rem;
    --radius-pill: 999px;

    /* Layout */
    --container-width: 1180px;
    --section-space: 6rem;
    --section-space-mobile: 4rem;

    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* ================================================== */
/* TEMA OSCURO GLOBAL                                 */
/* ================================================== */
body.dark-mode {
    --color-bg: #0b1220;
    --color-bg-alt: #121c2d;

    --color-surface: #182334;
    --color-surface-soft: #1c2a3d;
    --color-surface-muted: #233247;

    --color-text: #ffffff;
    --color-text-soft: #f1f5f9;
    --color-text-muted: #dbe7f3;

    --color-accent: #7cc6dd;
    --color-accent-dark: #5bb1cc;
    --color-accent-light: rgba(124, 198, 221, 0.14);

    --color-border: #304256;
    --color-border-strong: #476079;

    --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.28);
    --shadow-card: 0 18px 40px rgba(0, 0, 0, 0.35);
    --shadow-hover: 0 22px 44px rgba(0, 0, 0, 0.42);
}

/* ================================================== */
/* RESET                                              */
/* ================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
p,
ul,
ol,
figure {
    margin: 0;
}

ul,
ol {
    padding: 0;
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

/* ================================================== */
/* BASE GENERAL                                       */
/* ================================================== */
body {
    min-height: 100vh;
    font-family: var(--font-primary);
    background:
        radial-gradient(circle at top left, rgba(15, 76, 92, 0.05), transparent 28%),
        linear-gradient(to bottom, var(--color-bg) 0%, var(--color-bg-alt) 100%);
    color: var(--color-text);
    line-height: 1.65;
    padding-bottom: 5rem;
    transition:
        background-color var(--transition-normal),
        color var(--transition-normal);
}

::selection {
    background-color: var(--color-accent);
    color: #ffffff;
}

/* ================================================== */
/* TIPOGRAFÍA                                         */
/* ================================================== */
h1,
h2,
h3 {
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--color-text);
}

h1 {
    font-size: clamp(3rem, 7vw, 5.2rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 780;
}

h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

p {
    font-size: 1rem;
    color: var(--color-text-soft);
}

/* ================================================== */
/* CONTENEDORES                                       */
/* ================================================== */
.site-header__container,
.hero__container,
.about__container,
.skills__container,
.projects__container,
.resume__container,
.contact__container,
.site-footer__container {
    width: min(100% - 2rem, var(--container-width));
    margin-inline: auto;
}

/* ================================================== */
/* SECCIONES GENERALES                                */
/* ================================================== */
.hero,
.about,
.skills,
.projects,
.resume,
.contact {
    padding-block: var(--section-space);
}

/* ================================================== */
/* ACCESIBILIDAD                                      */
/* ================================================== */
a,
button {
    transition:
        color var(--transition-fast),
        background-color var(--transition-fast),
        border-color var(--transition-fast),
        transform var(--transition-fast),
        box-shadow var(--transition-fast),
        opacity var(--transition-fast);
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

/* ================================================== */
/* SWITCH DE TEMA                                     */
/* ================================================== */
.theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1400;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.theme-toggle__track {
    position: relative;
    width: 5.8rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-inline: 0.7rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #e9edf3 0%, #dbe2ea 100%);
    border: 1px solid rgba(15, 23, 32, 0.12);
    box-shadow: inset 0 2px 8px rgba(15, 23, 32, 0.08);
}

.theme-toggle__icon {
    position: relative;
    z-index: 1;
    font-size: 1rem;
    line-height: 1;
    color: #8a93a3;
    user-select: none;
}

.theme-toggle__thumb {
    position: absolute;
    top: 0.3rem;
    left: 0.32rem;
    width: 2.35rem;
    height: 2.35rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(180deg, #ffa726 0%, #f57c00 100%);
    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.18),
        inset 0 2px 2px rgba(255, 255, 255, 0.35);
    transition:
        transform var(--transition-normal),
        background var(--transition-normal);
}

.theme-toggle__thumb-icon {
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1;
    user-select: none;
}

body.dark-mode .theme-toggle__track {
    background: linear-gradient(180deg, #2a3561 0%, #35416f 100%);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.22);
}

body.dark-mode .theme-toggle__icon--sun {
    color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .theme-toggle__icon--moon {
    color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .theme-toggle__thumb {
    transform: translateX(2.8rem);
    background: linear-gradient(180deg, #5b8cff 0%, #4f6fd6 100%);
}

body.dark-mode .theme-toggle__thumb-icon {
    color: #ffffff;
}

/* ================================================== */
/* HEADER                                             */
/* ================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: color-mix(in srgb, var(--color-bg) 88%, transparent);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent);
}

.site-header__container {
    min-height: 5.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-right: 7.5rem;
}

.site-header__logo {
    display: inline-flex;
    align-items: center;
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--color-text);
}

.site-header__nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.site-header__menu {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    flex-wrap: wrap;
}

.site-header__link {
    position: relative;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-soft);
}

.site-header__link:hover,
.site-header__link.active {
    color: var(--color-accent);
}

.site-header__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.45rem;
    width: 100%;
    height: 2px;
    background-color: var(--color-accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--transition-normal);
}

.site-header__link:hover::after,
.site-header__link:focus-visible::after,
.site-header__link.active::after {
    transform: scaleX(1);
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* ================================================== */
/* BOTÓN PRINCIPAL DEL HEADER                         */
/* ================================================== */
.site-header__button {
    min-height: 2.9rem;
    padding-inline: 1.2rem;
    border: 1px solid var(--color-accent);
    background-color: transparent;
    color: var(--color-accent);
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: var(--radius-pill);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    white-space: nowrap;
}

.site-header__button:hover {
    background-color: var(--color-accent);
    color: #ffffff;
    transform: translateY(-1px);
}

/* ================================================== */
/* HERO                                               */
/* ================================================== */
.hero {
    padding-top: 7rem;
    padding-bottom: 5.5rem;
}

.hero__container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 4rem;
}

.hero__eyebrow {
    display: inline-block;
    margin-bottom: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    background-color: var(--color-accent-light);
    color: var(--color-accent);
    font-size: 0.92rem;
    font-weight: 700;
    border: 1px solid color-mix(in srgb, var(--color-accent) 12%, transparent);
}

.hero__title {
    max-width: 8ch;
    margin-bottom: 1rem;
}

.hero__subtitle {
    max-width: 38rem;
    margin-bottom: 1rem;
    font-size: clamp(1.12rem, 2vw, 1.4rem);
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.45;
}

.hero__description {
    max-width: 36rem;
    margin-bottom: 2rem;
    font-size: 1.02rem;
    color: var(--color-text-soft);
}

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

.hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.15rem;
    padding: 0.9rem 1.5rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    border: 1px solid transparent;
}

.hero__button--primary {
    background-color: var(--color-accent);
    color: #ffffff;
    box-shadow: var(--shadow-soft);
}

.hero__button--primary:hover {
    background-color: var(--color-accent-dark);
    transform: translateY(-2px);
}

.hero__button--secondary {
    border-color: var(--color-border-strong);
    background-color: var(--color-surface);
    color: var(--color-text);
}

.hero__button--secondary:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-2px);
}

.hero__media {
    display: flex;
    justify-content: center;
}

.hero__image-wrapper {
    position: relative;
    width: min(100%, 22rem);
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(
        145deg,
        color-mix(in srgb, var(--color-accent) 10%, transparent),
        color-mix(in srgb, var(--color-surface) 92%, transparent)
    );
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
    padding: 1rem;
}

.hero__image-wrapper::before {
    content: "";
    position: absolute;
    inset: 0.9rem;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--color-accent) 15%, transparent);
    pointer-events: none;
}

.hero__image {
    width: 100%;
    max-width: 18rem;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    background-color: var(--color-surface-muted);
    border: 6px solid var(--color-surface);
    box-shadow: 0 10px 25px rgba(15, 23, 32, 0.08);
}

/* ================================================== */
/* ENCABEZADOS DE SECCIÓN                             */
/* ================================================== */
.about__header,
.skills__header,
.projects__header,
.resume__header,
.contact__header {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.about__subtitle,
.skills__subtitle,
.projects__subtitle,
.resume__subtitle,
.contact__subtitle {
    max-width: 42rem;
    color: var(--color-text-muted);
}

/* ================================================== */
/* ABOUT                                              */
/* ================================================== */
.about__content {
    max-width: 56rem;
    display: grid;
    gap: 1.25rem;
    padding: 2.2rem;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

.about__paragraph {
    color: var(--color-text-soft);
}

/* ================================================== */
/* SKILLS                                             */
/* ================================================== */
.skills__group-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.skills__group {
    padding: 1.75rem;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.skills__group-title {
    margin-bottom: 1rem;
}

.skills__list {
    display: grid;
    gap: 0.85rem;
}

.skills__item {
    position: relative;
    padding-left: 1.1rem;
    color: var(--color-text-soft);
}

.skills__item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.68rem;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background-color: var(--color-accent);
}

/* ================================================== */
/* PROJECTS                                           */
/* ================================================== */
.projects__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.projects__card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

.projects__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.projects__card--featured {
    border-color: color-mix(in srgb, var(--color-accent) 28%, var(--color-border));
}

.projects__card-body {
    display: grid;
    gap: 1rem;
    padding: 1.7rem;
    height: 100%;
}

.projects__card-title {
    color: var(--color-text);
}

.projects__card-description {
    color: var(--color-text-soft);
    font-size: 0.98rem;
}

.projects__card-tech {
    margin-top: auto;
}

.projects__tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.projects__tech-item {
    padding: 0.45rem 0.8rem;
    border-radius: var(--radius-pill);
    background-color: var(--color-surface-muted);
    color: var(--color-text-soft);
    font-size: 0.84rem;
    font-weight: 700;
    border: 1px solid var(--color-border);
}

.projects__card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.projects__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.8rem;
    padding-inline: 1.05rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    border: 1px solid transparent;
}

.projects__link--demo {
    background-color: var(--color-accent);
    color: #ffffff;
}

.projects__link--demo:hover {
    background-color: var(--color-accent-dark);
}

.projects__link--repo {
    background-color: var(--color-surface-soft);
    border-color: var(--color-border);
    color: var(--color-text);
}

.projects__link--repo:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
}

/* ================================================== */
/* RESUME                                             */
/* ================================================== */
.resume__content {
    max-width: 54rem;
    padding: 2.2rem;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

.resume__description {
    margin-bottom: 1.5rem;
    color: var(--color-text-soft);
}

.resume__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.resume__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding-inline: 1.2rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    border: 1px solid transparent;
}

.resume__button--view {
    background-color: var(--color-accent);
    color: #ffffff;
}

.resume__button--view:hover {
    background-color: var(--color-accent-dark);
}

.resume__button--download {
    background-color: var(--color-surface-soft);
    border-color: var(--color-border);
    color: var(--color-text);
}

.resume__button--download:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* ================================================== */
/* CONTACT                                            */
/* ================================================== */
.contact__content {
    max-width: 54rem;
    padding: 2.2rem;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

.contact__list {
    display: grid;
    gap: 1rem;
}

.contact__item {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding-bottom: 0.95rem;
    border-bottom: 1px solid var(--color-border);
}

.contact__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact__label {
    color: var(--color-text);
    font-weight: 700;
}

.contact__link {
    color: var(--color-accent);
    word-break: break-word;
}

.contact__link:hover {
    color: var(--color-accent-dark);
}

/* ================================================== */
/* FOOTER                                             */
/* ================================================== */
.site-footer {
    padding-block: 2rem;
    border-top: 1px solid var(--color-border);
    background-color: color-mix(in srgb, var(--color-surface) 75%, transparent);
}

.site-footer__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-footer__copy {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.site-footer__links {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-footer__link {
    color: var(--color-text-soft);
    font-size: 0.95rem;
}

.site-footer__link:hover {
    color: var(--color-accent);
}

/* ================================================== */
/* BOTÓN FLOTANTE                                     */
/* ================================================== */
.back-to-top {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1200;
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(15, 23, 32, 0.18);
    border: 1px solid color-mix(in srgb, var(--color-surface) 90%, transparent);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
}

.back-to-top.is-visible {
    opacity: 0.94;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-2px) scale(1.03);
    opacity: 1;
}

/* ================================================== */
/* ANIMACIONES DE ENTRADA                             */
/* ================================================== */
.fade-element {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.8s cubic-bezier(0.2, 0.9, 0.3, 1),
        transform 0.8s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.fade-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================== */
/* MENÚ MÓVIL                                         */
/* ================================================== */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1010;
}

.hamburger-line {
    width: 2rem;
    height: 0.2rem;
    background: var(--color-text);
    border-radius: 10px;
    transition: all var(--transition-normal);
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(0.42rem, 0.42rem);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(0.42rem, -0.42rem);
}

/* ================================================== */
/* RESPONSIVE TABLET                                  */
/* ================================================== */
@media (max-width: 980px) {
    .theme-toggle {
        top: 0.8rem;
        right: 0.8rem;
    }

    .theme-toggle__track {
        width: 5.2rem;
        height: 2.8rem;
    }

    .theme-toggle__thumb {
        width: 2.15rem;
        height: 2.15rem;
    }

    body.dark-mode .theme-toggle__thumb {
        transform: translateX(2.45rem);
    }

    .site-header__container {
        min-height: auto;
        padding-block: 1rem;
        padding-right: 5.8rem;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .hamburger-menu {
        display: flex;
    }

    .site-header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(80%, 320px);
        height: 100vh;
        background: var(--color-surface);
        box-shadow: var(--shadow-card);
        padding: 5rem 2rem 2rem;
        transition: right var(--transition-normal);
        z-index: 1005;
        overflow-y: auto;
    }

    .site-header__nav.active {
        right: 0;
    }

    .site-header__menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .site-header__link {
        font-size: 1.1rem;
    }

    .hero__container {
        grid-template-columns: 1fr;
        gap: 2.8rem;
        text-align: center;
    }

    .hero__content {
        display: grid;
        justify-items: center;
    }

    .hero__title {
        max-width: none;
    }

    .hero__subtitle,
    .hero__description {
        max-width: 42rem;
    }

    .hero__image-wrapper {
        width: min(100%, 20rem);
    }

    .hero__image {
        max-width: 16rem;
    }

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

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

    .site-footer__content {
        justify-content: center;
        text-align: center;
    }

    .back-to-top {
        width: 2.85rem;
        height: 2.85rem;
        right: 0.9rem;
        bottom: 0.9rem;
        font-size: 0.95rem;
    }
}

/* ================================================== */
/* RESPONSIVE MOBILE                                  */
/* ================================================== */
@media (max-width: 640px) {
    body {
        padding-bottom: 5.5rem;
    }

    .hero,
    .about,
    .skills,
    .projects,
    .resume,
    .contact {
        padding-block: var(--section-space-mobile);
    }

    .site-header__container,
    .hero__container,
    .about__container,
    .skills__container,
    .projects__container,
    .resume__container,
    .contact__container,
    .site-footer__container {
        width: min(100% - 1.25rem, var(--container-width));
    }

    .theme-toggle {
        top: 0.7rem;
        right: 0.7rem;
    }

    .theme-toggle__track {
        width: 4.8rem;
        height: 2.6rem;
        padding-inline: 0.62rem;
    }

    .theme-toggle__thumb {
        top: 0.26rem;
        left: 0.26rem;
        width: 2rem;
        height: 2rem;
    }

    body.dark-mode .theme-toggle__thumb {
        transform: translateX(2.25rem);
    }

    .site-header__container {
        gap: 0.85rem;
        padding-block: 0.85rem;
        padding-right: 5.2rem;
    }

    .site-header__actions {
        margin-left: auto;
    }

    .site-header__button {
        min-height: 2.7rem;
        padding-inline: 1rem;
    }

    .hero {
        padding-top: 5.25rem;
        padding-bottom: 4rem;
    }

    .hero__actions,
    .resume__actions,
    .projects__card-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero__button,
    .resume__button,
    .projects__link {
        width: 100%;
    }

    .hero__image-wrapper {
        width: min(100%, 15rem);
        padding: 0.75rem;
    }

    .hero__image-wrapper::before {
        inset: 0.65rem;
    }

    .hero__image {
        max-width: 12rem;
        border-width: 4px;
    }

    .skills__group-list,
    .projects__grid {
        grid-template-columns: 1fr;
    }

    .about__content,
    .skills__group,
    .projects__card-body,
    .resume__content,
    .contact__content {
        padding: 1.35rem;
    }

    .back-to-top {
        width: 2.65rem;
        height: 2.65rem;
        right: 0.75rem;
        bottom: 0.75rem;
        font-size: 0.9rem;
        box-shadow: 0 8px 18px rgba(15, 23, 32, 0.16);
    }
}