@font-face {
    font-family: "Mona Sans";
    font-style: normal;
    font-display: swap;
    font-weight: 200 900;
    src: url("https://cdn.jsdelivr.net/npm/@fontsource-variable/mona-sans@5/files/mona-sans-latin-wght-normal.woff2")
    format("woff2-variations");
}

:root {
    color-scheme: dark;

    --color-canvas: #09090b;
    --color-surface: #18181b;
    --color-surface-subtle: #27272a;

    --color-text: #a1a1aa;
    --color-text-soft: #71717a;
    --color-text-strong: #e4e4e7;
    --color-heading: #ffffff;

    --color-border: #18181b;
    --color-border-strong: #27272a;

    --color-accent: #38bdf8;
    --color-accent-soft: #7dd3fc;

    --color-success: #34d399;

    --font-sans:
            "Mona Sans",
            ui-sans-serif,
            system-ui,
            -apple-system,
            BlinkMacSystemFont,
            "Segoe UI",
            sans-serif;

    --font-mono:
            "JetBrains Mono",
            ui-monospace,
            "SFMono-Regular",
            Consolas,
            monospace;

    --content-width: 72rem;
    --transition: 160ms ease;
}

/* =========================================================
   RESET E BASE
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
p,
ul {
    margin: 0;
}

ul {
    padding: 0;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

body {
    min-width: 20rem;
    min-height: 100vh;
    position: relative;
    isolation: isolate;
    overflow-x: hidden;

    background-color: var(--color-canvas);
    color: var(--color-text);

    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;

    background:
            radial-gradient(
                    45rem 30rem at 10% -8%,
                    rgb(56 189 248 / 0.12),
                    transparent 60%
            ),
            radial-gradient(
                    42rem 34rem at 92% 4%,
                    rgb(129 140 248 / 0.16),
                    transparent 58%
            ),
            radial-gradient(
                    64rem 44rem at 50% 118%,
                    rgb(168 85 247 / 0.12),
                    transparent 60%
            ),
            linear-gradient(180deg, #0b0b13 0%, #09090b 45%);
}

::selection {
    background: rgb(56 189 248 / 0.3);
    color: #ffffff;
}

:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
}

/* =========================================================
   ESTRUTURA PRINCIPAL
   ========================================================= */

.site-container {
    width: 100%;
    max-width: var(--content-width);
    margin-inline: auto;
    padding-inline: 1.5rem;
}

.portfolio-layout {
    min-height: 100vh;
}

.profile-panel {
    position: relative;
    padding-block: 3rem;
}

.profile-decoration {
    position: absolute;
    top: 0.5rem;
    right: 0;
    z-index: 0;

    width: 18rem;
    height: 14rem;

    overflow: hidden;
    color: rgb(82 82 91 / 0.3);
    pointer-events: none;
}

.profile-decoration svg {
    width: 100%;
    height: 100%;
}

.profile-panel__content {
    position: relative;
    z-index: 1;
}

.portfolio-main {
    min-width: 0;
    padding-block: 3rem;
    border-top: 1px solid var(--color-border);
}

/* =========================================================
   PERFIL
   ========================================================= */

.brand-mark {
    display: inline-flex;
    width: 2.75rem;
    height: 2.75rem;
    align-items: center;
    justify-content: center;

    overflow: hidden;
    border-radius: 0.75rem;
    background: rgb(56 189 248 / 0.1);
    box-shadow: inset 0 0 0 1px rgb(56 189 248 / 0.3);
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-header {
    margin-top: 1.5rem;
}

.profile-name {
    color: var(--color-heading);
    font-size: 2.475rem;
    font-weight: 300;
    line-height: 0.8;
}

.profile-role {
    margin-top: 0.25rem;
    color: var(--color-accent);
    font-size: 1.475rem;
    line-height: 1.5;
    font-weight: 100;
}

.profile-summary,
.profile-description {
    max-width: 38rem;
    font-size: 1.075rem;
    line-height: 1.5;
}

.profile-summary {
    margin-top: 1.25rem;
}

.profile-description {
    margin-top: 0.75rem;
    color: var(--color-text-soft);
}

.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;

    margin-top: 1.25rem;
    padding: 0.25rem 0.75rem;

    border-radius: 9999px;
    background: rgb(16 185 129 / 0.1);
    box-shadow: inset 0 0 0 1px rgb(16 185 129 / 0.2);

    color: var(--color-success);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.5;
}

.availability-badge__indicator {
    width: 0.375rem;
    height: 0.375rem;
    flex: 0 0 auto;

    border-radius: 50%;
    background: var(--color-success);
    box-shadow: 0 0 0.6rem rgb(52 211 153 / 0.45);
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;

    margin-top: 1.5rem;
    list-style: none;
}

.skill-list li,
.project-tags li {
    border-radius: 0.375rem;
    background: rgb(24 24 27 / 0.9);
    box-shadow: inset 0 0 0 1px var(--color-border-strong);

    color: var(--color-text);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    line-height: 1.5;
}

.skill-list li {
    padding: 0.25rem 0.5rem;
}

.profile-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;

    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);

    font-size: 0.875rem;
}

.profile-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;

    width: fit-content;
    max-width: 100%;

    color: var(--color-text);
    transition: color var(--transition);
    overflow-wrap: anywhere;
}

.profile-links a span {
    color: #52525b;
    transition: color var(--transition);
}

.profile-links a:hover {
    color: var(--color-heading);
}

.profile-links a:hover span {
    color: var(--color-accent);
}

/* =========================================================
   CABEÇALHO DOS PROJETOS
   ========================================================= */

.portfolio-header {
    margin-bottom: 2.5rem;
}

.portfolio-eyebrow {
    color: var(--color-text-soft);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.portfolio-title {
    margin-top: 0.5rem;

    color: var(--color-heading);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

/* =========================================================
   TIMELINE
   ========================================================= */

.timeline {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
}

.timeline-item::before {
    content: "";
    position: absolute;
    top: 0.5rem;
    left: 0;

    width: 7px;
    height: 100%;

    background-image:
            linear-gradient(
                    to right,
                    rgb(255 255 255 / 0.14) 0 1px,
                    transparent 1px
            ),
            repeating-linear-gradient(
                    to bottom,
                    rgb(255 255 255 / 0.09) 0 1px,
                    transparent 1px 13px
            );
}

.timeline-item:last-child::before {
    height: 1rem;
}

.timeline-item__marker {
    position: absolute;
    top: 0.375rem;
    left: -0.40625rem;
    z-index: 1;

    width: 0.75rem;
    height: 0.75rem;

    border: 2px solid var(--color-canvas);
    border-radius: 50%;
    background: #52525b;

    transition:
            background-color var(--transition),
            box-shadow var(--transition);
}

.timeline-item:hover .timeline-item__marker {
    background: var(--color-accent);
    box-shadow: 0 0 12px rgb(56 189 248 / 0.6);
}

.timeline-item__content {
    min-width: 0;
}

.timeline-item__period {
    color: var(--color-text-soft);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1.5;
}

.project-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.75rem;
    margin-top: 0.25rem;
}

.project-title {
    color: var(--color-heading);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.5;
}

.project-role {
    padding: 0.125rem 0.5rem;

    border-radius: 9999px;
    background: rgb(56 189 248 / 0.1);
    box-shadow: inset 0 0 0 1px rgb(56 189 248 / 0.2);

    color: var(--color-accent);
    font-size: 0.6875rem;
    font-weight: 500;
    line-height: 1.5;
}

.project-summary {
    margin-top: 0.75rem;
    color: var(--color-text);
    font-size: 0.975rem;
    line-height: 1.7;
}

.project-summary + .project-summary {
    margin-top: 0.5rem;
}

.project-contributions {
    display: grid;
    gap: 0.35rem;

    margin-top: 0.875rem;
    padding-left: 1.125rem;

    color: var(--color-text);
    font-size: 0.8125rem;
    line-height: 1.6;
}

.project-contributions li::marker {
    color: #52525b;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;

    margin-top: 0.875rem;
    list-style: none;
}

.project-tags li {
    padding: 0.125rem 0.5rem;
    color: var(--color-text-soft);
}

.project-status {
    margin-top: 1rem;
    color: var(--color-text-soft);
    font-size: 0.75rem;
    font-style: italic;
    line-height: 1.5;
}

/* =========================================================
   RODAPÉ
   ========================================================= */

.site-footer {
    margin-top: 4rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);

    color: #52525b;
    font-size: 0.75rem;
}

/* =========================================================
   RESPONSIVIDADE
   ========================================================= */

@media (min-width: 64rem) {
    .site-container {
        padding-inline: 2rem;
    }

    .portfolio-layout {
        display: flex;
        gap: 4rem;
    }

    .profile-panel {
        position: sticky;
        top: 0;

        display: flex;
        flex: 0 0 29rem;
        flex-direction: column;

        width: 20rem;
        height: 100vh;
        padding-block: 4rem;
    }

    .profile-panel__content {
        flex: 1;
    }

    .profile-links {
        margin-top: 0;
    }

    .portfolio-main {
        flex: 1;
        padding-block: 4rem;
        padding-left: 4rem;

        border-top: 0;
        border-left: 1px solid var(--color-border);
    }
}

@media (max-width: 40rem) {
    .site-container {
        padding-inline: 1.25rem;
    }

    .profile-panel,
    .portfolio-main {
        padding-block: 2.5rem;
    }

    .profile-decoration {
        right: -5rem;
        opacity: 0.65;
    }

    .portfolio-title {
        font-size: 1.375rem;
    }

    .timeline-item {
        padding-left: 1.75rem;
    }

    .project-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}