/* =========================================================
   DESIGN SYSTEM
   ========================================================= */

:root {
    --background: #050816;
    --background-secondary: #080d1f;
    --surface: rgba(13, 19, 40, .72);

    --border: rgba(148, 163, 184, .14);
    --border-hover: rgba(99, 102, 241, .55);

    --text: #f8fafc;
    --text-secondary: #a8b3c7;
    --text-muted: #68758b;

    --accent: #38bdf8;
    --accent-secondary: #6366f1;
    --accent-purple: #8b5cf6;

    --white: #fff;

    --gradient:
        linear-gradient(135deg,
            var(--accent),
            var(--accent-secondary) 50%,
            var(--accent-purple));

    --background-gradient:
        radial-gradient(circle at 15% 15%,
            rgba(56, 189, 248, .09),
            transparent 30%),
        radial-gradient(circle at 85% 25%,
            rgba(99, 102, 241, .10),
            transparent 32%),
        radial-gradient(circle at 50% 100%,
            rgba(139, 92, 246, .08),
            transparent 35%);

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

    --shadow-soft:
        0 10px 40px rgba(0, 0, 0, .20);

    --header-height: 82px;
    --max-width: 1280px;

    --radius: 20px;
    --radius-large: 30px;

    --transition: .25s ease;
}


/* =========================================================
   TEMA CLARO
   ========================================================= */

body[data-theme="day"] {
    --background: #f4f7fb;
    --background-secondary: #eaf0f8;
    --surface: rgba(255, 255, 255, .78);

    --border: rgba(15, 23, 42, .12);
    --border-hover: rgba(79, 70, 229, .45);

    --text: #111827;
    --text-secondary: #475569;
    --text-muted: #64748b;

    --accent: #0284c7;
    --accent-secondary: #4f46e5;
    --accent-purple: #7c3aed;

    --gradient:
        linear-gradient(135deg,
            var(--accent),
            var(--accent-secondary) 50%,
            var(--accent-purple));

    --background-gradient:
        radial-gradient(circle at 15% 15%,
            rgba(14, 165, 233, .12),
            transparent 30%),
        radial-gradient(circle at 85% 25%,
            rgba(99, 102, 241, .10),
            transparent 32%),
        radial-gradient(circle at 50% 100%,
            rgba(139, 92, 246, .08),
            transparent 35%);

    --shadow:
        0 20px 60px rgba(15, 23, 42, .12);

    --shadow-soft:
        0 10px 40px rgba(15, 23, 42, .08);

    color-scheme: light;
}


/* =========================================================
   RESET / BASE
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

html {
    background: var(--background);
}

body {
    min-height: 100vh;
    overflow-x: hidden;

    color: var(--text);

    background:
        var(--background-gradient),
        var(--background);

    background-attachment: fixed;

    font-family: "Poppins", sans-serif;

    animation: fadeIn .6s ease;
}

button,
a {
    font: inherit;
}

button {
    cursor: pointer;
}

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

a {
    color: inherit;
}

*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

::selection {
    color: var(--white);
    background: var(--accent-secondary);
}


/* =========================================================
   FUNDO
   ========================================================= */

body::before,
body::after {
    content: "";

    position: fixed;

    pointer-events: none;
}

body::before {
    inset: 0;
    z-index: -2;

    opacity: .35;

    background:
        linear-gradient(rgba(255, 255, 255, .025) 1px,
            transparent 1px),
        linear-gradient(90deg,
            rgba(255, 255, 255, .025) 1px,
            transparent 1px);

    background-size: 60px 60px;

    mask-image:
        linear-gradient(to bottom,
            #000,
            transparent 90%);
}

body::after {
    z-index: -1;

    width: 500px;
    height: 500px;

    top: 10%;
    right: -250px;

    border-radius: 50%;

    background: rgba(99, 102, 241, .08);

    filter: blur(120px);
}


/* =========================================================
   SCROLLBAR
   ========================================================= */

::-webkit-scrollbar {
    width: 7px;
}

::-webkit-scrollbar-track {
    background: #03050d;
}

::-webkit-scrollbar-thumb {
    border-radius: 20px;
    background: var(--gradient);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}


/* =========================================================
   ANIMAÇÕES
   ========================================================= */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

@keyframes roleFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes rcFieldPulse {

    0%,
    100% {
        opacity: .35;
        transform: translate(-50%, -50%) scale(.88);
    }

    50% {
        opacity: .8;
        transform: translate(-50%, -50%) scale(1.08);
    }
}

@keyframes rcRingPulse {

    0%,
    100% {
        opacity: .15;
        scale: .88;
    }

    50% {
        opacity: .5;
        scale: 1.05;
    }
}


/* =========================================================
   WRAPPER
   ========================================================= */

.wrapper {
    width: min(100%, var(--max-width));

    margin-inline: auto;

    padding-inline: 32px;
}


/* =========================================================
   HEADER
   ========================================================= */

.header-menu {
    position: fixed;

    inset: 0 0 auto;

    z-index: 1000;

    height: var(--header-height);

    display: flex;
    align-items: center;

    border-bottom: 1px solid transparent;

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

.header-menu .wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 18px;
}

.header-menu.scrolled {
    background: rgba(5, 8, 22, .88);

    border-bottom-color: var(--border);

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

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


/* =========================================================
   NAVEGAÇÃO
   ========================================================= */

.header-menu-navigation ul {
    display: flex;
    align-items: center;

    gap: 34px;

    list-style: none;
}

.header-menu-navigation a {
    position: relative;

    display: inline-block;

    padding: 7px 0;

    color: var(--text-secondary);

    font-size: 14px;
    font-weight: 500;

    text-decoration: none;

    transition: color var(--transition);
}

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

.header-menu-navigation a::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 0;

    width: 0;
    height: 2px;

    border-radius: 10px;

    background: var(--gradient);

    transform: translateX(-50%);

    transition: width var(--transition);
}

.header-menu-navigation a:hover::after,
.header-menu-navigation a.active::after {
    width: 60%;
}


/* =========================================================
   CONTROLES
   ========================================================= */

.switches {
    display: flex;
    align-items: center;

    gap: 8px;
}

.switch-theme-content,
.switch-language-content {
    position: relative;
}

.switch-theme,
.switch-language {
    min-height: 38px;

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

    gap: 7px;

    padding: 7px 13px;

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

    background: rgba(255, 255, 255, .035);
    color: var(--text-secondary);

    font-size: 13px;
    font-weight: 500;

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

.switch-theme {
    min-width: 78px;
}

.switch-language {
    min-width: 90px;
}

.switch-theme:hover,
.switch-language:hover {
    color: var(--accent);

    background: rgba(56, 189, 248, .08);

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

    transform: translateY(-1px);
}

.theme-icon {
    flex-shrink: 0;
}

.theme-icon-sun {
    display: none;
}

body[data-theme="day"] .theme-icon-moon {
    display: none;
}

body[data-theme="day"] .theme-icon-sun {
    display: block;
}


/* =========================================================
   IDIOMAS
   ========================================================= */

.languages {
    position: absolute;

    top: calc(100% + 10px);
    right: 0;

    z-index: 1100;

    display: none;
    flex-direction: column;

    gap: 5px;

    min-width: 90px;

    padding: 7px;

    background: rgba(9, 14, 32, .96);

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

    box-shadow: var(--shadow);

    backdrop-filter: blur(15px);
}

.languages button {
    min-height: 36px;

    border: 0;
    border-radius: 8px;

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

    font-size: 13px;
    font-weight: 600;

    transition:
        background-color .2s ease,
        color .2s ease;
}

.languages button:hover {
    color: var(--accent);

    background: rgba(56, 189, 248, .10);
}


/* =========================================================
   TEMA CLARO / IDIOMAS
   ========================================================= */

body[data-theme="day"] .header-menu.scrolled .header-menu-navigation a,
body[data-theme="day"] .header-menu.scrolled .switch-theme,
body[data-theme="day"] .header-menu.scrolled .switch-language,
body[data-theme="day"] .header-menu.scrolled .languages button {
    color: #f6c953;
}

body[data-theme="day"] .header-menu.scrolled .switch-theme,
body[data-theme="day"] .header-menu.scrolled .switch-language {
    border-color: rgba(246, 201, 83, .35);
}

body[data-theme="day"] .header-menu.scrolled .languages {
    background: rgba(9, 14, 32, .96);
}

body[data-theme="day"] .languages {
    background: rgba(255, 255, 255, .96);
}

body[data-theme="day"] .languages button {
    color: #111827;
}


/* =========================================================
   MENU MOBILE
   ========================================================= */

.mobile-menu-switch {
    display: none;

    padding: 6px;

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

    background: rgba(255, 255, 255, .035);

    line-height: 0;
}

.mobile-menu-switch img {
    width: 32px;
    height: 32px;

    filter: invert(1);
}


/* =========================================================
   HOME
   ========================================================= */

.home {
    position: relative;

    min-height: 100vh;

    display: flex;
    align-items: center;

    padding:
        calc(var(--header-height) + 50px) 0 100px;

    overflow: hidden;
}

.home::before {
    content: "";

    position: absolute;

    width: 450px;
    aspect-ratio: 1;

    top: 10%;
    left: -250px;

    border-radius: 50%;

    background: rgba(56, 189, 248, .06);

    filter: blur(100px);

    pointer-events: none;
}

.home .container {
    min-height: calc(100vh - var(--header-height));

    display: flex;
    align-items: center;

    gap: 80px;
}


/* =========================================================
   INTRODUÇÃO
   ========================================================= */

.home .introduction {
    position: relative;

    flex: 1;

    display: flex;
    flex-direction: column;
    justify-content: center;

    max-width: 700px;
}

.home .title {
    margin-bottom: 12px;

    color: var(--text);

    font-size: clamp(38px, 4vw, 48px);
    font-weight: 600;

    line-height: 1.04;
    letter-spacing: -2.5px;
}

.home .description {
    max-width: 650px;

    color: var(--text-secondary);

    font-size: clamp(16px, 1.7vw, 21px);

    line-height: 1.8;
}

.home .description.typewriter::after {
    content: "|";

    margin-left: 5px;

    color: var(--accent);

    animation: blink 1s infinite;
}

.home .contact-button {
    width: fit-content;
    min-width: 205px;
    min-height: 54px;

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

    margin-top: 38px;

    padding: 13px 26px;

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

    background: var(--gradient);
    color: var(--white);

    font-size: 15px;
    font-weight: 600;

    text-decoration: none;

    box-shadow: 0 10px 35px rgba(56, 189, 248, .12);

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

.home .contact-button:hover {
    filter: brightness(1.08);

    transform: translateY(-3px);

    box-shadow: 0 15px 45px rgba(99, 102, 241, .25);
}


/* =========================================================
   ILUSTRAÇÃO HOME
   ========================================================= */

.home-illustration {
    position: relative;

    isolation: isolate;

    flex: 1;

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

    max-width: 580px;
    min-width: 0;
}

.home-illustration::before,
.home-illustration::after {
    content: "";

    position: absolute;

    top: 50%;
    left: 50%;

    border-radius: 50%;

    transform: translate(-50%, -50%);

    pointer-events: none;
}

.home-illustration::before {
    width: 72%;
    aspect-ratio: 1;

    z-index: -2;

    background:
        radial-gradient(circle,
            rgba(56, 189, 248, .18),
            rgba(99, 102, 241, .12) 28%,
            rgba(139, 92, 246, .07) 45%,
            transparent 72%);

    filter: blur(18px);

    opacity: .5;

    animation: rcFieldPulse 5.5s ease-in-out infinite;
}

.home-illustration::after {
    width: 55%;
    aspect-ratio: 1;

    z-index: -1;

    border: 1px solid rgba(56, 189, 248, .12);

    box-shadow:
        0 0 30px rgba(56, 189, 248, .10),
        inset 0 0 30px rgba(99, 102, 241, .08);

    opacity: .4;

    animation: rcRingPulse 4s ease-in-out infinite;
}

.home-illustration .background-home-illustration {
    position: relative;

    z-index: 2;

    width: 100%;
    max-width: 580px;
    height: auto;

    object-fit: contain;

    transform-origin: center;

    filter:
        drop-shadow(0 25px 50px rgba(0, 0, 0, .45)) drop-shadow(0 0 25px rgba(56, 189, 248, .12));

}


/* =========================================================
   ABOUT
   ========================================================= */

.about {
    position: relative;

    width: 94%;

    margin-inline: auto;

    padding: 90px 0;

    background:
        linear-gradient(145deg,
            rgba(13, 19, 40, .88),
            rgba(7, 11, 26, .92));

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

    box-shadow: var(--shadow);

    overflow: hidden;
}

.about::before {
    content: "";

    position: absolute;

    width: 300px;
    aspect-ratio: 1;

    top: -150px;
    right: -100px;

    border-radius: 50%;

    background: rgba(99, 102, 241, .08);

    filter: blur(70px);
}

.about .container {
    position: relative;

    display: grid;

    grid-template-columns: 1.15fr .85fr;

    align-items: center;

    gap: 80px;
}

.about-description {
    min-width: 0;
}

.about .title {
    margin-bottom: 22px;

    color: var(--white);

    font-size: clamp(34px, 4vw, 52px);
    font-weight: 700;

    line-height: 1.15;
    letter-spacing: -1.5px;
}

.about .title::after,
.projects .project-title:not(h3)::after {
    content: "";

    display: block;

    width: 56px;
    height: 4px;

    margin-top: 20px;

    border-radius: 999px;

    background: var(--gradient);
}

.about .description {
    color: var(--white);

    font-size: 16px;

    line-height: 1.9;
}


/* =========================================================
   FRASES ROTATIVAS
   ========================================================= */

.hero-role {
    width: fit-content;
    min-height: 31px;

    display: flex;
    align-items: center;

    margin-bottom: 24px;

    padding: 7px 13px;

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

    background: rgba(56, 189, 248, .055);
    color: var(--accent);

    font-family: monospace;
    font-size: 15px;
    font-weight: 600;

    letter-spacing: 1.5px;

    overflow: hidden;
}

#rotating-role {
    display: inline-block;

    min-width: 250px;

    text-align: center;

    animation: roleFade .45s ease;
}


/* =========================================================
   REDES SOCIAIS
   ========================================================= */

.social-network {
    margin-top: 35px;
}

.social-network .badges {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;
}

.social-button {
    position: relative;

    min-width: 125px;
    min-height: 64px;

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

    gap: 10px;

    padding: 12px 18px;

    overflow: hidden;

    border: 1px solid rgba(125, 211, 252, .30);
    border-radius: 16px;

    background:
        linear-gradient(145deg,
            rgba(255, 255, 255, .055),
            rgba(255, 255, 255, .018));

    color: #e0f2fe;

    text-decoration: none;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, .25),
        inset 0 1px 0 rgba(255, 255, 255, .06);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

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

.social-button::before {
    content: "";

    position: absolute;

    top: -50%;
    left: -30%;

    width: 80%;
    height: 180%;

    background:
        linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, .06),
            transparent);

    transform: rotate(20deg);

    pointer-events: none;

    transition: left .5s ease;
}

.social-network-badge {
    position: relative;

    z-index: 1;

    width: 27px;
    height: 27px;

    flex-shrink: 0;

    object-fit: contain;

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

.social-button span {
    position: relative;

    z-index: 1;

    color: #bae6fd;

    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 600;

    white-space: nowrap;

    transition: color var(--transition);
}

.social-button:hover {
    transform: translateY(-5px);

    border-color: var(--accent);

    background:
        linear-gradient(145deg,
            rgba(8, 47, 73, .82),
            rgba(2, 6, 23, .82));

    box-shadow:
        0 15px 35px rgba(14, 165, 233, .20),
        0 0 25px rgba(56, 189, 248, .10);
}

.social-button:hover::before {
    left: 120%;
}

.social-button:hover .social-network-badge {
    transform: scale(1.08);

    filter:
        drop-shadow(0 0 8px rgba(56, 189, 248, .45));
}

.social-button:hover span {
    color: var(--white);
}

.social-button:active {
    transform: translateY(-2px) scale(.98);
}


/* =========================================================
   DOCUMENTOS / SHOWCASE
   ========================================================= */

.technical-skills {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-showcase {
    position: relative;

    width: min(100%, 500px);

    aspect-ratio: 1;

    overflow: hidden;

    border: 1px solid rgba(56, 189, 248, .30);
    border-radius: 32px;

    background: #020617;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, .45),
        0 0 50px rgba(14, 165, 233, .08);
}

.ai-background {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    opacity: .85;

    transform: scale(1.02);
}

.ai-overlay {
    position: absolute;

    inset: 0;

    z-index: 1;

    background:
        radial-gradient(circle at center,
            rgba(2, 6, 23, .10),
            rgba(2, 6, 23, .35) 55%,
            rgba(2, 6, 23, .72));

    pointer-events: none;
}

.documents {
    position: absolute;

    inset: 0;

    z-index: 2;

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

    gap: 14px;

    padding: 30px;
}

.document-button {
    position: relative;

    width: 140px;
    min-height: 78px;

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

    gap: 5px;

    padding: 10px;

    overflow: hidden;

    border: 1px solid rgba(125, 211, 252, .30);
    border-radius: 16px;

    background:
        linear-gradient(145deg,
            rgba(255, 255, 255, .055),
            rgba(255, 255, 255, .018));

    color: #e0f2fe;

    text-decoration: none;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, .25),
        inset 0 1px 0 rgba(255, 255, 255, .06);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

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

.document-button:hover {
    transform: translateY(-5px);

    border-color: var(--accent);

    background:
        linear-gradient(145deg,
            rgba(8, 47, 73, .82),
            rgba(2, 6, 23, .82));

    box-shadow:
        0 15px 35px rgba(14, 165, 233, .20),
        0 0 25px rgba(56, 189, 248, .10);
}

.document-button span {
    color: var(--accent);

    font-family: "Inter", sans-serif;

    font-size: 22px;
    font-weight: 800;

    line-height: 1;
}

.document-button small {
    color: #bae6fd;

    font-family: "Inter", sans-serif;

    font-size: 12px;
    font-weight: 500;
}

.document-button:hover span {
    color: #7dd3fc;
}


/* =========================================================
   PROJETOS
   ========================================================= */

.projects {
    width: 94%;

    margin-inline: auto;

    padding: 120px 0 60px;
}

.projects .project-title:not(h3) {
    position: relative;

    margin-bottom: 45px;

    color: var(--text);

    font-size: clamp(34px, 4vw, 52px);
    font-weight: 700;

    line-height: 1.15;
    letter-spacing: -1.5px;
}

.projects .project-title:not(h3)::after {
    width: 55px;
    height: 3px;

    margin-top: 18px;
}


/* =========================================================
   CARDS
   ========================================================= */

.projects .cards {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 22px;

    align-items: stretch;
}

.projects .card {
    min-width: 0;

    display: flex;
    flex-direction: column;

    overflow: hidden;

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

    background:
        linear-gradient(145deg,
            rgba(255, 255, 255, .045),
            rgba(255, 255, 255, .015));

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

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

.projects .card:hover {
    transform: translateY(-7px);

    border-color: var(--border-hover);

    box-shadow:
        0 25px 60px rgba(0, 0, 0, .35),
        0 0 30px rgba(99, 102, 241, .07);
}

.projects .card>img {
    width: 100%;
    height: 210px;

    object-fit: cover;

    background:
        linear-gradient(135deg,
            #0c1730,
            #111936);

    border-bottom: 1px solid var(--border);
}


/* =========================================================
   CONTEÚDO DOS CARDS
   ========================================================= */

.card-content {
    flex: 1;

    display: flex;
    flex-direction: column;

    gap: 12px;

    padding: 22px;
}

.card-content a {
    display: inline-block;

    text-decoration: none;
}

.card-content h3.project-title {
    margin: 0;

    color: var(--text);

    font-size: 19px;
    font-weight: 600;

    line-height: 1.35;

    transition: color var(--transition);
}

.card-content h3.project-title::after {
    display: none;
}

.card-content h3.project-title:hover {
    color: var(--accent);
}

.project-description {
    color: var(--text-secondary);

    font-size: 14px;

    line-height: 1.75;

    white-space: pre-line;
}


/* =========================================================
   FOOTER
   ========================================================= */

.main-footer {
    min-height: 110px;

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

    margin-top: 80px;

    border-top: 1px solid var(--border);
}

.main-footer .content {
    width: 100%;

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

    padding: 30px;
}

.main-footer p {
    color: var(--text-muted);

    font-size: 12px;

    line-height: 1.6;

    text-align: center;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1199px) {

    :root {
        --header-height: 78px;
    }

    .wrapper {
        padding-inline: 28px;
    }

    .home .container,
    .about .container {
        gap: 45px;
    }

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

    .projects .card>img {
        height: 230px;
    }
}


/* =========================================================
   TABLET / MOBILE
   ========================================================= */

@media (max-width: 991px) {

    .header-menu .wrapper {
        gap: 12px;
    }

    .header-menu-navigation {
        position: absolute;

        top: calc(100% + 8px);
        right: 28px;

        display: none;

        width: 250px;

        padding: 8px;

        background: rgba(7, 11, 26, .96);

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

        box-shadow: var(--shadow);

        backdrop-filter: blur(20px);
    }

    .header-menu-navigation ul {
        flex-direction: column;
        align-items: stretch;

        gap: 3px;

        padding: 5px;
    }

    .header-menu-navigation a {
        display: block;

        width: 100%;

        padding: 12px 14px;

        border-radius: 10px;
    }

    .header-menu-navigation a:hover,
    .header-menu-navigation a.active {
        color: var(--accent);

        background: rgba(56, 189, 248, .06);
    }

    .header-menu-navigation a::after {
        display: none;
    }

    .mobile-menu-switch {
        display: block;
    }

    .home .container {
        flex-direction: column;
        justify-content: center;
    }

    .home .introduction {
        align-items: center;

        max-width: 800px;

        text-align: center;
    }

    .home .description {
        max-width: 750px;
    }

    .home-illustration {
        width: 100%;

        max-width: 580px;
    }

    .about .container {
        grid-template-columns: 1fr;
    }

    .about-description {
        text-align: center;
    }

    .about .description {
        max-width: 850px;

        margin-inline: auto;
    }

    .social-network .badges {
        justify-content: center;
    }

    .technical-skills {
        width: 100%;

        max-width: 580px;

        margin-inline: auto;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    :root {
        --header-height: 72px;

        --radius: 18px;
        --radius-large: 24px;
    }

    .wrapper,
    .header-menu .wrapper {
        padding-inline: 20px;
    }

    .header-menu {
        height: var(--header-height);
    }

    .header-menu-navigation {
        top: calc(100% + 6px);

        right: 20px;
        left: 20px;

        width: auto;
    }

    .switch-theme,
    .switch-language {
        min-width: 78px;
        min-height: 38px;

        font-size: 12px;
    }

    .mobile-menu-switch img {
        width: 28px;
        height: 28px;
    }


    /* HOME */

    .home {
        min-height: auto;

        padding:
            calc(var(--header-height) + 65px) 0 75px;
    }

    .home .container {
        min-height: auto;

        gap: 50px;
    }

    .home .title {
        margin-bottom: 18px;

        font-size: 38px;

        letter-spacing: -1.5px;
    }

    .home .description {
        font-size: 16px;

        line-height: 1.75;
    }

    .home .contact-button {
        min-width: 190px;
        min-height: 52px;

        margin-top: 28px;

        font-size: 14px;
    }


    /* FRASES */

    .hero-role {
        margin-bottom: 20px;

        font-size: 15px;

        letter-spacing: 1.2px;
    }

    #rotating-role {
        min-width: 220px;
    }


    /* ABOUT */

    .about {
        width: 94%;

        padding: 60px 0;
    }

    .about .container {
        padding-inline: 20px;

        gap: 45px;
    }

    .about .title {
        font-size: 32px;

        letter-spacing: -1px;
    }

    .about .description {
        font-size: 15px;

        line-height: 1.8;
    }


    /* SOCIAL */

    .social-network {
        margin-top: 28px;
    }

    .social-network .badges {
        gap: 9px;
    }

    .social-button {
        min-width: 115px;
        min-height: 58px;

        padding: 10px 14px;

        border-radius: 14px;

        gap: 8px;
    }

    .social-network-badge {
        width: 25px;
        height: 25px;
    }

    .social-button span {
        font-size: 12px;
    }


    /* DOCUMENTOS */

    .technical-skills {
        width: 100%;

        max-width: 100%;
    }

    .ai-showcase {
        width: 100%;

        max-width: 500px;

        border-radius: 24px;
    }

    .documents {
        gap: 10px;

        padding: 20px;
    }

    .document-button {
        width: 130px;

        min-height: 72px;
    }


    /* PROJETOS */

    .projects {
        width: 94%;

        padding: 80px 0 30px;
    }

    .projects .container {
        padding-inline: 8px;
    }

    .projects .project-title:not(h3) {
        margin-bottom: 35px;

        font-size: 32px;
    }

    .projects .cards {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .projects .card>img {
        height: 215px;
    }

    .card-content {
        padding: 20px;
    }

    .project-description {
        font-size: 14px;

        line-height: 1.7;
    }


    /* FOOTER */

    .main-footer {
        margin-top: 55px;
    }

    .main-footer p {
        font-size: 11px;
    }
}


/* =========================================================
   CELULARES PEQUENOS
   ========================================================= */

@media (max-width: 420px) {

    .wrapper,
    .header-menu .wrapper {
        padding-inline: 16px;
    }

    .social-network .badges {
        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        width: 100%;

        gap: 8px;
    }

    .social-button {
        width: 100%;

        min-width: 0;
        min-height: 56px;

        padding: 9px 10px;
    }

    .social-button span {
        font-size: 11px;
    }

    .social-network-badge {
        width: 23px;
        height: 23px;
    }

    .switch-theme,
    .switch-language {
        min-width: 70px;
        min-height: 36px;

        padding: 5px 8px;

        font-size: 11px;
    }

    .switch-theme .theme-label {
        display: none;
    }

    .switch-language svg,
    .switch-theme svg {
        width: 18px;
        height: 18px;
    }

    .mobile-menu-switch {
        padding: 5px;
    }

    .mobile-menu-switch img {
        width: 26px;
        height: 26px;
    }


    /* HOME */

    .home .title {
        font-size: 33px;
    }

    .home .description {
        font-size: 15px;
    }


    /* PROJETOS */

    .projects .project-title:not(h3) {
        font-size: 29px;
    }

    .card-content h3.project-title {
        font-size: 19px;
    }

    .projects .card>img {
        height: 190px;
    }


    /* DOCUMENTOS */

    .technical-skills {
        width: 100%;

        max-width: 100%;
    }

    .ai-showcase {
        width: 100%;

        max-width: 100%;

        aspect-ratio: auto;

        min-height: 220px;
    }

    .documents {
        position: absolute;

        inset: 0;

        display: flex;
        flex-direction: row;

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

        gap: 8px;

        padding: 15px;
    }

    .document-button {
        width: calc(50% - 4px);

        max-width: 150px;

        min-height: 65px;
    }
}