:root {
    --background: #050b14;
    --background-secondary: #091322;
    --background-soft: #0d1a2c;

    --card: #0d1b2d;
    --card-light: #11233a;

    --border: rgba(255, 255, 255, 0.1);

    --text: #f1f5f9;
    --text-secondary: #9eafc4;
    --text-muted: #74869c;

    --primary: #38bdf8;
    --primary-light: #7dd3fc;
    --primary-dark: #0284c7;

    --whatsapp: #25d366;

    --container: 1180px;
    --header-height: 82px;
    --radius: 18px;
    --radius-small: 11px;

    --shadow:
        0 20px 60px rgba(0, 0, 0, 0.32);

    --transition: 0.25s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
}

body {
    min-width: 320px;
    overflow-x: hidden;

    background: var(--background);
    color: var(--text);

    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;

    line-height: 1.65;
}

body::before {
    content: "";

    position: fixed;
    inset: 0;
    z-index: -2;

    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(56, 189, 248, 0.08),
            transparent 26%
        ),
        radial-gradient(
            circle at 90% 30%,
            rgba(2, 132, 199, 0.09),
            transparent 30%
        );

    pointer-events: none;
}

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

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
}

button,
input,
textarea,
select {
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 3px;
}

.container {
    width: min(90%, var(--container));
    margin-inline: auto;
}

/* Cabeçalho */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(5, 11, 20, 0.9);
    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.header-content {
    min-height: var(--header-height);

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.logo-link {
    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;

    transition:
        transform var(--transition),
        filter var(--transition);
}

.logo-link:hover {
    transform: translateY(-2px);

    filter:
        drop-shadow(
            0 0 12px rgba(56, 189, 248, 0.35)
        );
}

.header-logo {
    width: auto;
    height: 50px;

    object-fit: contain;
}

.header-socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.social-link {
    position: relative;

    width: 37px;
    height: 37px;
    padding: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--border);
    border-radius: 10px;

    color: var(--text-secondary);

    transform-origin: center;
    will-change: transform;

    transition:
        color var(--transition),
        background var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.social-link svg {
    width: 18px;
    height: 18px;

    fill: currentColor;

    pointer-events: none;
}

.social-link:hover,
.social-link:focus-visible {
    z-index: 2;
}

/* LinkedIn */

.social-link-linkedin:hover,
.social-link-linkedin:focus-visible {
    color: #0a66c2;
    background: rgba(10, 102, 194, 0.13);
    border-color: rgba(10, 102, 194, 0.65);

    box-shadow:
        0 8px 25px rgba(10, 102, 194, 0.25);
}

/* Instagram */

.social-link-instagram:hover,
.social-link-instagram:focus-visible {
    color: rgb(193, 53, 132, 0.65);
    background: rgba(131, 58, 180, 0.13);
    border-color: rgba(193, 53, 132, 0.65);

    box-shadow:
        0 8px 25px rgba(193, 53, 132, 0.25);
}

/* GitHub */

.social-link-github:hover,
.social-link-github:focus-visible {
    color: #f97316;
    background: rgba(249, 115, 22, 0.13);
    border-color: rgba(249, 115, 22, 0.65);

    box-shadow:
        0 8px 25px rgba(249, 115, 22, 0.25);
}

/* WhatsApp */

.social-link-whatsapp:hover,
.social-link-whatsapp:focus-visible {
    color: #25d366;
    background: rgba(37, 211, 102, 0.13);
    border-color: rgba(37, 211, 102, 0.65);

    box-shadow:
        0 8px 25px rgba(37, 211, 102, 0.25);
}

/* Compartilhar */

.social-link-share {
    cursor: pointer;
}

.social-link-share:hover,
.social-link-share:focus-visible {
    color: var(--primary-light);
    background: rgba(56, 189, 248, 0.13);
    border-color: rgba(56, 189, 248, 0.65);

    box-shadow:
        0 8px 25px rgba(56, 189, 248, 0.25);
}

/* Navegação */

.navigation {
    display: flex;
    align-items: center;
    gap: 24px;
}

.navigation a {
    position: relative;

    padding: 8px 0;

    color: var(--text-secondary);

    font-size: 0.9rem;
    font-weight: 600;

    transition: color var(--transition);
}

.navigation a::after {
    content: "";

    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;

    height: 2px;

    background: var(--primary);
    border-radius: 999px;

    transform: scaleX(0);
    transform-origin: center;

    transition: transform var(--transition);
}

.navigation a:hover,
.navigation a.is-active {
    color: var(--text);
}

.navigation a:hover::after,
.navigation a.is-active::after {
    transform: scaleX(1);
}

.navigation a.is-active {
    text-shadow:
        0 0 18px rgba(56, 189, 248, 0.24);
}

/* Apresentação */

.hero {
    position: relative;
    overflow: hidden;

    min-height: calc(100vh - var(--header-height));

    display: flex;
    align-items: center;

    background:
        radial-gradient(
            circle at 83% 36%,
            rgba(56, 189, 248, 0.18),
            transparent 31%
        );
}

.hero::after {
    content: "";

    position: absolute;
    right: -180px;
    bottom: -280px;

    width: 620px;
    height: 620px;

    border: 1px solid rgba(56, 189, 248, 0.08);
    border-radius: 50%;

    box-shadow:
        0 0 0 70px rgba(56, 189, 248, 0.025),
        0 0 0 140px rgba(56, 189, 248, 0.015);

    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(280px, 0.65fr);

    align-items: center;
    gap: 70px;

    padding-block: 90px;
}

.hero-label,
.section-label {
    display: block;

    color: var(--primary);

    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-name-heading {
    position: relative;

    width: min(100%, 910px);
    margin-top: 11px;

    color: var(--text);

    font-size: clamp(3.2rem, 7.5vw, 5.8rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.hero-name-fallback {
    display: block;

    transition:
        opacity 0.18s ease,
        visibility 0.18s ease;
}

.hero-name-svg {
    position: absolute;
    inset: 0 auto auto 0;

    width: 100%;
    height: auto;

    display: block;
    overflow: visible;

    color: var(--text);

    opacity: 0;
    visibility: hidden;
}

.hero-name-heading.is-animated .hero-name-fallback {
    opacity: 0;
    visibility: hidden;
}

.hero-name-heading.is-animated .hero-name-svg {
    opacity: 1;
    visibility: visible;
}

.hero-name-fill {
    opacity: 0;
}

.hero-name-fill-path {
    fill: currentColor;
    stroke: none;
}

.hero-name-outline {
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-name-path {
    fill: none;
    stroke: currentColor;

    vector-effect: non-scaling-stroke;
}

.hero h2 {
    width: 100%;
    max-width: 850px;
    margin: 22px auto 0;

    color: var(--text-secondary);

    font-size: clamp(1.15rem, 2.4vw, 1.5rem);
    font-weight: 500;
    line-height: 1.45;
    text-align: center;
}

.hero h2 span {
    color: var(--primary);
    margin-inline: 4px;
}

.hero-buttons,
.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;

    margin-top: 35px;
}

/* Botões */

.button {
    min-height: 49px;
    padding: 0 25px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid transparent;
    border-radius: var(--radius-small);

    font-weight: 800;

    transition:
        transform var(--transition),
        background var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.button:hover {
    transform: translateY(-3px);
}

.button-primary {
    background: var(--primary);
    color: #03111d;

    box-shadow:
        0 12px 30px rgba(56, 189, 248, 0.17);
}

.button-primary:hover {
    background: var(--primary-light);

    box-shadow:
        0 14px 36px rgba(56, 189, 248, 0.27);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.035);
    border-color: var(--border);

    color: var(--text);
}

.button-secondary:hover {
    background: rgba(56, 189, 248, 0.07);
    border-color: rgba(56, 189, 248, 0.5);
}

.button-resume {
    background: rgba(56, 189, 248, 0.08);
    border-color: rgba(56, 189, 248, 0.28);

    color: var(--primary-light);
}

.button-resume:hover {
    background: rgba(56, 189, 248, 0.14);
    border-color: rgba(56, 189, 248, 0.58);

    box-shadow:
        0 12px 30px rgba(56, 189, 248, 0.12);
}

.button-icon {
    width: 19px;
    height: 19px;
    margin-right: 9px;

    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.button-whatsapp {
    background: var(--whatsapp);
    color: #04120a;

    box-shadow:
        0 12px 30px rgba(37, 211, 102, 0.16);
}

.button-whatsapp:hover {
    background: #49e778;

    box-shadow:
        0 14px 36px rgba(37, 211, 102, 0.27);
}

/* Foto */

.profile-card {
    position: relative;

    width: 100%;
    max-width: 430px;

    /*
     * Mantém a caixa sempre quadrada.
     */
    aspect-ratio: 1 / 1;
    min-height: 0;

    padding: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    /*
     * Posiciona a caixa no lado direito
     * da coluna no desktop.
     */
    justify-self: end;

    background:
        linear-gradient(
            145deg,
            rgba(56, 189, 248, 0.14),
            rgba(255, 255, 255, 0.025)
        );

    border: 1px solid var(--border);
    border-radius: 28px;

    box-shadow: var(--shadow);
}

.profile-card::before {
    content: "";

    position: absolute;
    inset: -1px;
    z-index: -1;

    background:
        linear-gradient(
            145deg,
            rgba(56, 189, 248, 0.35),
            transparent 45%,
            rgba(125, 211, 252, 0.12)
        );

    border-radius: inherit;
}

.profile-photo-wrapper {
    /*
     * Pode diminuir junto com a caixa,
     * mas sempre mantém largura e altura iguais.
     */
    width: min(100%, 350px);
    height: auto;
    aspect-ratio: 1 / 1;

    /*
     * Impede que o flexbox comprima somente
     * a largura e transforme o círculo em oval.
     */
    flex: 0 0 auto;

    padding: 6px;
    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            var(--primary-light),
            var(--primary-dark)
        );

    border-radius: 50%;

    box-shadow:
        0 0 0 8px rgba(56, 189, 248, 0.06),
        0 20px 50px rgba(0, 0, 0, 0.42),
        0 0 34px rgba(56, 189, 248, 0.18);
}

.profile-photo {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;

    object-fit: cover;
    object-position: center;

    border: 4px solid var(--background-soft);
    border-radius: 50%;
}

/* Seções */

.section {
    padding-block: 110px;
}

.section-alternative {
    position: relative;

    background:
        linear-gradient(
            180deg,
            rgba(9, 19, 34, 0.92),
            rgba(9, 19, 34, 0.76)
        );

    border-block:
        1px solid rgba(255, 255, 255, 0.035);
}

.section-title {
    max-width: 820px;
    margin-top: 10px;

    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.about-content {
    max-width: 930px;
    margin-top: 38px;
}

.about-content p {
    margin-bottom: 20px;

    color: var(--text-secondary);

    font-size: 1.04rem;
    line-height: 1.85;
}

.about-content p:first-child {
    color: var(--text);

    font-size: 1.13rem;
    font-weight: 700;
}

/* Tecnologias */

.technology-groups {
    display: grid;
    grid-template-columns:
        repeat(6, minmax(0, 1fr));

    gap: 15px;

    margin-top: 44px;
}

.technology-group {
    position: relative;

    min-height: 175px;
    padding: 20px 15px;

    background:
        linear-gradient(
            160deg,
            rgba(17, 35, 58, 0.95),
            rgba(9, 19, 34, 0.88)
        );

    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: 16px;

    box-shadow:
        inset 0 0 28px rgba(56, 189, 248, 0.025),
        0 14px 35px rgba(0, 0, 0, 0.16);

    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.technology-group::after {
    content: "";

    position: absolute;
    right: 14px;
    bottom: -1px;
    left: 14px;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--primary),
            transparent
        );

    opacity: 0.6;

    box-shadow:
        0 0 12px rgba(56, 189, 248, 0.8);
}

.technology-group:hover {
    transform: translateY(-5px);

    border-color: rgba(56, 189, 248, 0.5);

    box-shadow:
        inset 0 0 35px rgba(56, 189, 248, 0.05),
        0 18px 42px rgba(0, 0, 0, 0.25),
        0 0 25px rgba(56, 189, 248, 0.08);
}

.technology-group h3 {
    min-height: 40px;

    color: var(--text-secondary);

    font-size: 0.77rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.4;
    text-align: center;
    text-transform: uppercase;
}

.technology-icons {
    min-height: 78px;

    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;

    margin-top: 10px;
}

.technology-item {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
}

.technology-item img {
    width: 38px;
    height: 38px;

    object-fit: contain;

    filter:
        drop-shadow(0 5px 8px rgba(0, 0, 0, 0.28));

    transition:
        transform var(--transition),
        filter var(--transition);
}

.technology-item:hover img {
    transform: translateY(-4px) scale(1.08);

    filter:
        drop-shadow(
            0 7px 12px rgba(56, 189, 248, 0.25)
        );
}

.technology-item span {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    z-index: 5;

    padding: 5px 8px;

    background: #02060c;
    border: 1px solid var(--border);
    border-radius: 6px;

    color: var(--text);

    font-size: 0.7rem;
    white-space: nowrap;

    opacity: 0;
    pointer-events: none;

    transform:
        translateX(-50%)
        translateY(5px);

    transition:
        opacity var(--transition),
        transform var(--transition);
}

.technology-item:hover span {
    opacity: 1;

    transform:
        translateX(-50%)
        translateY(0);
}

/* Projetos */

.projects-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.carousel-controls {
    display: flex;
    gap: 10px;
}

.carousel-button {
    width: 46px;
    height: 46px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--border);
    border-radius: 11px;

    color: var(--text);

    font-size: 1.35rem;
    line-height: 1;

    cursor: pointer;

    transition:
        background var(--transition),
        border-color var(--transition),
        color var(--transition),
        transform var(--transition),
        opacity var(--transition);
}

.carousel-button:hover:not(:disabled) {
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.5);

    color: var(--primary-light);

    transform: translateY(-2px);
}

.carousel-button:disabled {
    opacity: 0.32;
    cursor: not-allowed;
}

.projects-carousel {
    position: relative;

    margin-top: 42px;
    overflow: hidden;
}

.projects-track {
    display: grid;
    grid-auto-flow: column;

    grid-auto-columns:
        calc((100% - 48px) / 3);

    gap: 24px;

    overflow-x: auto;
    overscroll-behavior-inline: contain;

    scroll-behavior: smooth;
    scroll-snap-type: inline mandatory;

    scrollbar-width: none;

    padding: 3px 2px 15px;
}

.projects-track::-webkit-scrollbar {
    display: none;
}

.project-card {
    min-width: 0;
    overflow: hidden;

    display: flex;
    flex-direction: column;

    background:
        linear-gradient(
            155deg,
            var(--card-light),
            var(--card)
        );

    border: 1px solid var(--border);
    border-radius: var(--radius);

    scroll-snap-align: start;

    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.2);

    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.project-card:hover {
    transform: translateY(-6px);

    border-color: rgba(56, 189, 248, 0.42);

    box-shadow:
        0 22px 50px rgba(0, 0, 0, 0.3),
        0 0 25px rgba(56, 189, 248, 0.05);
}

.project-image-wrapper {
    position: relative;
    overflow: hidden;

    aspect-ratio: 16 / 9;

    background: var(--background-secondary);
}

.project-image {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition:
        transform 0.45s ease,
        filter 0.45s ease;
}

.project-card:hover .project-image {
    transform: scale(1.045);
    filter: brightness(1.07);
}

.project-image-wrapper::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            transparent 50%,
            rgba(5, 11, 20, 0.7)
        );

    pointer-events: none;
}

.project-content {
    flex: 1;

    padding: 27px;

    display: flex;
    flex-direction: column;
}

.project-meta {
    min-height: 28px;

    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 9px 12px;
}

.project-category {
    color: var(--primary);

    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.project-status {
    width: fit-content;
    padding: 5px 9px;

    border: 1px solid transparent;
    border-radius: 999px;

    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.055em;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
}

.project-status-development {
    background: rgba(251, 191, 36, 0.09);
    border-color: rgba(251, 191, 36, 0.28);
    color: #fcd34d;
}

.project-status-beta {
    background: rgba(56, 189, 248, 0.09);
    border-color: rgba(56, 189, 248, 0.28);
    color: var(--primary-light);
}

.project-status-completed {
    background: rgba(52, 211, 153, 0.09);
    border-color: rgba(52, 211, 153, 0.28);
    color: #6ee7b7;
}

.project-status-paused {
    background: rgba(148, 163, 184, 0.08);
    border-color: rgba(148, 163, 184, 0.22);
    color: #cbd5e1;
}

.project-content h3 {
    margin-top: 9px;

    font-size: 1.42rem;
    line-height: 1.25;
}

.project-content > p {
    margin-top: 15px;

    color: var(--text-secondary);

    font-size: 0.94rem;
    line-height: 1.7;
}

.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;

    margin-top: 21px;
}

.project-technologies span {
    padding: 6px 10px;

    background: rgba(56, 189, 248, 0.07);
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: 999px;

    color: #bae6fd;

    font-size: 0.72rem;
    font-weight: 700;
}

.project-link {
    width: fit-content;
    margin-top: auto;
    padding-top: 25px;

    color: var(--primary);

    font-weight: 800;

    transition:
        color var(--transition),
        transform var(--transition);
}

a.project-link:hover {
    color: var(--primary-light);
    transform: translateX(4px);
}

.project-link-disabled {
    display: flex;
    align-items: center;
    gap: 9px;

    color: var(--text-muted);

    cursor: not-allowed;
    user-select: none;
}

.project-link-disabled small {
    padding: 3px 7px;

    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 5px;

    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.carousel-instruction {
    margin-top: 11px;

    color: var(--text-muted);

    font-size: 0.8rem;
    text-align: right;
}

/* Contato */

.contact-section {
    position: relative;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 50%,
            rgba(56, 189, 248, 0.11),
            transparent 42%
        );

    text-align: center;
}

.contact-content {
    max-width: 800px;
}

.contact-content .section-title {
    margin-right: auto;
    margin-left: auto;
}

.contact-content > p {
    max-width: 640px;
    margin: 22px auto 0;

    color: var(--text-secondary);

    font-size: 1.04rem;
}

.contact-links {
    justify-content: center;
}

/* Rodapé */

.footer {
    padding-block: 28px;

    background: rgba(3, 8, 15, 0.75);
    border-top: 1px solid var(--border);

    color: var(--text-secondary);

    font-size: 0.86rem;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer a {
    color: var(--primary);

    font-weight: 700;

    transition: color var(--transition);
}

.footer a:hover {
    color: var(--primary-light);
}

/* Aviso do compartilhamento */

.share-feedback {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 2000;

    max-width: min(360px, calc(100vw - 32px));
    padding: 12px 17px;

    background: rgba(9, 19, 34, 0.97);
    border: 1px solid rgba(56, 189, 248, 0.42);
    border-radius: 10px;

    color: var(--text);

    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.45;

    box-shadow:
        0 16px 45px rgba(0, 0, 0, 0.38);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(12px);

    transition:
        opacity var(--transition),
        visibility var(--transition),
        transform var(--transition);
}

.share-feedback.is-visible {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}

/* Animações */



/* Atrasos das animações sem estilos inline */

.reveal-delay-0 {
    --reveal-delay: 0ms;
}

.reveal-delay-70 {
    --reveal-delay: 70ms;
}

.reveal-delay-90 {
    --reveal-delay: 90ms;
}

.reveal-delay-140 {
    --reveal-delay: 140ms;
}

.reveal-delay-180 {
    --reveal-delay: 180ms;
}

.reveal-delay-210 {
    --reveal-delay: 210ms;
}

.reveal-delay-280 {
    --reveal-delay: 280ms;
}

.reveal-delay-350 {
    --reveal-delay: 350ms;
}

.js [data-reveal] {
    opacity: 0;

    transform: translateY(24px);

    transition:
        opacity 0.68s ease var(--reveal-delay, 0ms),
        transform 0.68s
            cubic-bezier(0.2, 0.72, 0.2, 1)
            var(--reveal-delay, 0ms);

    will-change: opacity, transform;
}

.js [data-reveal="left"] {
    transform: translateX(-28px);
}

.js [data-reveal="right"] {
    transform: translateX(28px);
}

.js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* Janela de compartilhamento */

.share-dialog {
    width: 100%;
    max-width: none;
    max-height: none;
    padding: 0;

    background: transparent;
    border: 0;

    color: var(--text);
}

.share-dialog[open] {
    display: grid;
    place-items: center;
}

.share-dialog::backdrop {
    background: rgba(2, 6, 12, 0.78);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.share-dialog-card {
    position: relative;

    width: min(92vw, 480px);
    padding: 34px;

    background:
        linear-gradient(
            150deg,
            rgba(17, 35, 58, 0.99),
            rgba(7, 15, 27, 0.99)
        );

    border: 1px solid rgba(56, 189, 248, 0.32);
    border-radius: 20px;

    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.55),
        0 0 35px rgba(56, 189, 248, 0.08);
}

.share-dialog-close {
    position: absolute;
    top: 14px;
    right: 14px;

    width: 36px;
    height: 36px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 9px;

    color: var(--text-secondary);

    font-size: 1.55rem;
    line-height: 1;

    cursor: pointer;
}

.share-dialog-close:hover,
.share-dialog-close:focus-visible {
    color: var(--text);
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.45);
}

.share-dialog-label {
    color: var(--primary);

    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.share-dialog h2 {
    max-width: 360px;
    margin-top: 8px;

    font-size: clamp(1.6rem, 5vw, 2.1rem);
    line-height: 1.2;
}

.share-dialog-card > p {
    margin-top: 12px;

    color: var(--text-secondary);
}

.share-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;

    margin-top: 28px;
}

.share-option {
    min-height: 49px;
    padding: 0 16px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 10px;

    color: var(--text);

    font-size: 0.9rem;
    font-weight: 800;
    text-align: center;

    cursor: pointer;

    transition:
        transform var(--transition),
        background var(--transition),
        border-color var(--transition),
        color var(--transition),
        box-shadow var(--transition);
}

.share-option:hover,
.share-option:focus-visible {
    transform: translateY(-2px);
}

.share-option-whatsapp:hover,
.share-option-whatsapp:focus-visible {
    color: #25d366;
    background: rgba(37, 211, 102, 0.11);
    border-color: rgba(37, 211, 102, 0.5);
}

.share-option-email:hover,
.share-option-email:focus-visible {
    color: var(--primary-light);
    background: rgba(56, 189, 248, 0.11);
    border-color: rgba(56, 189, 248, 0.5);
}

.share-option-copy:hover,
.share-option-copy:focus-visible {
    color: #fcd34d;
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.45);
}

.share-option-native:hover,
.share-option-native:focus-visible {
    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.45);
}

.share-option[hidden] {
    display: none;
}

/* Responsividade */

@media (max-width: 1120px) {
    .header-content {
        flex-wrap: wrap;
        justify-content: center;

        padding-block: 14px;
    }

    .logo-link {
        margin-right: auto;
    }

    .navigation {
        width: 100%;

        justify-content: center;
        order: 3;

        padding-top: 5px;
    }

    .technology-groups {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 940px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 55px;

        padding-block: 85px;
    }

    .hero-text {
        text-align: center;
    }

    .hero h2 {
        margin-right: auto;
        margin-left: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .profile-card {
    width: min(100%, 470px);
    max-width: 470px;

    aspect-ratio: 1 / 1;
    min-height: 0;

    margin-inline: auto;

    justify-self: center;
    }

    .projects-track {
        grid-auto-columns:
            calc((100% - 24px) / 2);
    }
}

@media (max-width: 700px) {
    :root {
        --header-height: auto;
    }

    html {
        scroll-padding-top: 155px;
    }

    .container {
        width: min(92%, var(--container));
    }

    .header-content {
        gap: 14px;
    }

    .header-logo {
        height: 43px;
    }

    .header-socials {
        margin-left: auto;
    }

    .social-link {
        width: 34px;
        height: 34px;
    }

    .navigation {
        justify-content: flex-start;
        gap: 21px;

        overflow-x: auto;

        padding: 4px 2px 2px;

        scrollbar-width: none;
    }

    .navigation::-webkit-scrollbar {
        display: none;
    }

    .navigation a {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .hero-content {
        padding-block: 70px;
    }

    .hero-name-heading {
        width: min(100%, 680px);

        margin-right: auto;
        margin-left: auto;

        font-size: clamp(2.8rem, 14vw, 4rem);
    }

    .hero h2 span {
        display: none;
    }

    .hero h2 {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .section {
        padding-block: 82px;
    }

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

        gap: 10px;
        margin-top: 32px;
    }

    .technology-group {
        min-height: 130px;
        padding: 14px 10px;

        border-radius: 13px;
    }

    .technology-group h3 {
        min-height: 32px;

        font-size: 0.68rem;
        letter-spacing: 0.06em;
    }

    .technology-icons {
        min-height: 58px;
        gap: 9px;

        margin-top: 4px;
    }

    .technology-item img {
        width: 32px;
        height: 32px;
    }

    .projects-heading {
        align-items: center;
    }

    .projects-track {
        grid-auto-columns: 88%;
    }

    .carousel-instruction {
        text-align: center;
    }

    .footer-content {
        flex-direction: column;

        text-align: center;
    }

    .share-feedback {
        right: 16px;
        bottom: 16px;
        left: 16px;

        max-width: none;

        text-align: center;
    }
}

@media (max-width: 480px) {
    .share-dialog-card {
        padding: 30px 22px 24px;
    }

    .share-options {
        grid-template-columns: 1fr;
    }
    .header-logo {
        max-width: 145px;
    }

    .header-socials {
        gap: 6px;
    }

    .social-link {
        width: 32px;
        height: 32px;
    }

    .social-link svg {
        width: 16px;
        height: 16px;
    }

    .hero-buttons,
    .contact-links {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .profile-card {
        width: min(100%, 340px);
        max-width: 340px;

        aspect-ratio: 1 / 1;
        min-height: 0;

        padding: 24px;
    }

    .profile-photo-wrapper {
        width: min(100%, 260px);
        height: auto;
        aspect-ratio: 1 / 1;
    }

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

        gap: 8px;
    }

    .technology-group {
        min-height: 116px;
        padding: 11px 7px;

        border-radius: 11px;
    }

    .technology-group h3 {
        min-height: 28px;

        font-size: 0.62rem;
        letter-spacing: 0.045em;
    }

    .technology-icons {
        min-height: 52px;
        gap: 7px;

        margin-top: 3px;
    }

    .technology-item img {
        width: 28px;
        height: 28px;
    }

    .technology-item span {
        font-size: 0.62rem;
    }

    .projects-heading {
        align-items: flex-end;
    }

    .carousel-button {
        width: 42px;
        height: 42px;
    }

    .projects-track {
        grid-auto-columns: 94%;
    }

    .project-content {
        padding: 23px;
    }

    .project-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .project-status {
        font-size: 0.6rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero-name-fallback {
        opacity: 1 !important;
        visibility: visible !important;
    }

    .hero-name-svg {
        display: none !important;
    }

    .js [data-reveal] {
        opacity: 1;
        transform: none;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}