/* ==========================================
   PORTFÓLIO 2.0 - Design System
   Desenvolvido com amor e carinho ❤️
   ========================================== */

/* ==========================================
   Google Fonts - Sora
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@100;200;300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@1&display=swap');

/* ==========================================
   CSS Variables / Design Tokens
   ========================================== */
:root {
    /* Cores */
    --color-primary: #05004C;
    --color-primary-light: rgba(5, 0, 76, 0.7);
    --color-background: #101010;
    --color-text-primary: #FFFFFF;
    --color-text-secondary: rgba(255, 255, 255, 0.6);
    --color-text-muted: rgba(255, 255, 255, 0.4);

    /* Tipografia */
    --font-family: 'Sora', sans-serif;
    --font-size-hero: 128px;
    --font-size-subtitle: 16px;
    --font-size-body: 1rem;

    /* Espaçamentos */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Transições */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.6s ease;
}

/* ==========================================
   Reset & Base Styles
   ========================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-background);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================
   Tela de Carregamento (Preloader)
   ========================================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-background);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* The loader container */
.loader {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 100px;
    margin-top: -100px;
    margin-left: -100px;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.loader--reflect {
    margin-top: 0;
}

.loader--reflect:after {
    content: '';
    position: absolute;
    top: 0;
    left: -25%;
    width: 150%;
    height: 110%;
    background: linear-gradient(0deg,
            rgba(16, 16, 16, 1),
            rgba(16, 16, 16, 1) 20%,
            rgba(16, 16, 16, 0.3));
}

/* The bar */
.bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 20px;
    height: 100px;
    background-color: #05004C;
    transform: scaleY(0);
    transform-style: preserve-3d;
    animation: bar 3s cubic-bezier(.81, .04, .4, .7) infinite;
}

.bar:nth-child(2) {
    left: 20px;
    background-color: #0a0057;
    animation-delay: 50ms;
}

.bar:nth-child(3) {
    left: 40px;
    background-color: #0f0062;
    animation-delay: 100ms;
}

.bar:nth-child(4) {
    left: 60px;
    background-color: #14006d;
    animation-delay: 150ms;
}

.bar:nth-child(5) {
    left: 80px;
    background-color: #190078;
    animation-delay: 200ms;
}

.bar:nth-child(6) {
    left: 100px;
    background-color: #1e0083;
    animation-delay: 250ms;
}

.bar:nth-child(7) {
    left: 120px;
    background-color: #23008e;
    animation-delay: 300ms;
}

.bar:nth-child(8) {
    left: 140px;
    background-color: #280099;
    animation-delay: 350ms;
}

.bar:nth-child(9) {
    left: 160px;
    background-color: #2d00a4;
    animation-delay: 400ms;
}

.bar:nth-child(10) {
    left: 180px;
    background-color: #3200af;
    animation-delay: 450ms;
}

.loader--reflect .bar {
    animation-name: bar-reflect;
}

@keyframes bar {
    0% {
        transform: rotateZ(-180deg) rotateX(-360deg);
    }

    75%,
    100% {
        transform: rotateZ(0) rotateX(0);
    }
}

@keyframes bar-reflect {
    0% {
        transform: rotateZ(180deg) rotateX(360deg);
    }

    75%,
    100% {
        transform: rotateZ(0) rotateX(0);
    }
}

/* ==========================================
   Cortina de Transição
   ========================================== */
.curtain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at center,
            rgba(16, 16, 16, 0) 0%,
            rgba(16, 16, 16, 0.18) 58%,
            rgba(16, 16, 16, 0.5) 100%),
        linear-gradient(180deg,
            #05004C 0%,
            #0a0057 45%,
            #101010 100%);
    z-index: 9998;
    transform: translateY(0);
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
}

.curtain.slide-up {
    transform: translateY(-100%);
}

/* ==========================================
   Seção Hero
   ========================================== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Container do Spline (Fundo) */
.hero__spline-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: auto;
}

.hero__spline-container iframe,
.hero__spline-container canvas {
    width: 320px;
    height: 320px;
    object-fit: cover;
}

/* Container do Conteúdo (Nome + Subtítulo) */
.hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-md);
    pointer-events: none;
}

/* Nome Principal */
.hero__name {
    font-size: var(--font-size-hero);
    font-weight: 200;
    /* ExtraLight */
    color: var(--color-text-primary);
    letter-spacing: 0.02em;
    line-height: 1;
    margin-bottom: var(--spacing-sm);

    /* Animação de entrada */
    animation: heroNameFadeIn 1.2s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

/* Subtítulo - Desenvolvedor Full Stack */
.hero__subtitle {
    font-size: var(--font-size-subtitle);
    font-weight: 100;
    /* Thin */
    color: var(--color-text-secondary);
    letter-spacing: 0.2em;
    text-transform: uppercase;

    /* Animação de entrada com delay */
    animation: heroSubtitleFadeIn 1s ease-out 0.4s forwards;
    opacity: 0;
    transform: translateY(20px);
}

/* ==========================================
   Animações
   ========================================== */
@keyframes heroNameFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroSubtitleFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   Indicador de Scroll
   ========================================== */
.hero__scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;

    /* Animação de entrada */
    animation: scrollIndicatorFadeIn 1s ease-out 0.8s forwards;
    opacity: 0;
}

/* Ícone do Mouse */
.hero__scroll-icon {
    width: 20px;
    height: 32px;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    position: relative;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

/* Bolinha do Mouse (Wheel) */
.hero__scroll-wheel {
    width: 3px;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
    animation: scrollWheel 1.5s ease-in-out infinite;
}

/* Texto SCROLL */
.hero__scroll-text {
    font-size: 10px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* Linha vertical */
.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.4) 0%,
            rgba(255, 255, 255, 0) 100%);
}

/* Animação da bolinha do mouse */
@keyframes scrollWheel {

    0%,
    100% {
        opacity: 1;
        transform: translateY(0);
    }

    50% {
        opacity: 0.3;
        transform: translateY(4px);
    }
}

/* Animação de entrada do indicador */
@keyframes scrollIndicatorFadeIn {
    to {
        opacity: 1;
    }
}

/* ==========================================
   Seção Introdução
   ========================================== */
.intro {
    width: 100%;
    /* min-height: 80vh; */
    /* Removido para evitar espaco excessivo se o conteudo for menor */
    padding: 120px 80px;
    background-color: var(--color-background);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* Para as esferas não vazarem */
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    /* Separador sutil também aqui se desejar */
}

.intro__container {
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    /* Mais espaço para o texto */
    gap: 240px;
    align-items: start;
}

/* Left Side Content */
.intro__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
}

.intro__badge {
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--color-text-primary);
    background: rgba(255, 255, 255, 0.05);
    text-transform: uppercase;
}

.intro__title {
    font-size: 56px;
    font-weight: 600;
    line-height: 1.1;
    color: var(--color-text-primary);
}

.intro__text {
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    max-width: 500px;
}

/* Right Side Visual */
.intro__visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.intro__visual .intro__badge {
    margin-bottom: 20px;
}

.intro__spline-container {
    width: 420px;
    height: 380px;
    border-radius: 16px;
    overflow: hidden;
}

.intro__keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.intro__keyword {
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-primary);
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.intro__keyword:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Responsividade */
@media (max-width: 900px) {
    .intro__container {
        grid-template-columns: 1fr;
        gap: 80px;
    }

    .intro__title {
        font-size: 40px;
    }

    .intro__spline-container {
        width: 100%;
        height: 400px;
    }
}

/* ==========================================
   Seção About Me
   ========================================== */
.about {
    width: 100%;
    min-height: 100vh;
    padding: 100px 80px;
    background-color: var(--color-background);
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cabeçalho */
.about__header {
    width: 100%;
    max-width: 900px;
    /* Um pouco maior para títulos grandes centralizados */
    margin-bottom: 80px;
    text-align: center;
}

.about__label {
    font-size: 12px;
    font-weight: 300;
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
}

.about__title {
    font-size: 64px;
    font-weight: 200;
    color: var(--color-text-primary);
    line-height: 1;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.about__title-main {
    font-weight: 700;
    font-size: 1em;
}

.about__title-italic {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 1em;
}

/* Container Principal - Grid de 2 colunas */
.about__container {
    display: grid;
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    gap: 32px;
    max-width: 1200px;
    width: 100%;
    align-items: start;
}

/* Coluna Esquerda */
.about__left {
    display: flex;
    align-items: stretch;
}

/* Coluna Direita */
.about__right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about__resume-title {
    font-size: 11px;
    font-weight: 400;
    color: var(--color-text-muted);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.about__summary-card {
    padding: 22px 20px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.about__resume {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.about__resume-texts {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.about__resume-text {
    font-size: 14px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.7;
    max-width: 100%;
}

/* Links / Botões */
.about__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.about__link-icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    opacity: 0.72;
}

.about__link-icon img,
.about__link-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor;
}

.about__link-icon--text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.about__link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 12px;
    font-weight: 300;
    line-height: 1;
    text-decoration: none;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.about__link-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
}

/* Experience Section */
.about__experience {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about__experience-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 2px;
}

.about__experience-icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.about__experience-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--color-text-primary);
}

.about__experience-label {
    font-size: 10px;
    font-weight: 400;
    color: var(--color-text-muted);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* Timeline */
.about__timeline {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.about__timeline-item {
    display: grid;
    grid-template-columns: minmax(150px, 170px) minmax(0, 1fr) minmax(170px, 220px);
    gap: 16px;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.about__timeline-item::before {
    display: none;
}

.about__timeline-item:last-child::before {
    display: none;
}

.about__timeline-date {
    font-size: 11px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.34);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.about__timeline-title {
    font-size: 15px;
    font-weight: 300;
    color: var(--color-text-primary);
    line-height: 1.4;
}

.about__timeline-company {
    font-size: 12px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.34);
    text-align: right;
}

.about__photo-frame {
    width: 100%;
    max-width: 340px;
    aspect-ratio: 3/4;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #080808;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.about__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* ==========================================
   Seção Expertise / Skills
   ========================================== */
.expertise {
    width: 100%;
    padding: 100px 80px;
    background-color: var(--color-background);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.expertise__container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(320px, 1.05fr) minmax(0, 1fr);
    gap: 64px;
    align-items: start;
}

.expertise__headline {
    display: flex;
    align-items: flex-start;
}

.expertise__title {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 0.92;
}

.expertise__title-line {
    font-size: clamp(3.4rem, 6vw, 5rem);
    color: var(--color-text-primary);
}

.expertise__title-line--bold {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.expertise__title-line--serif {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
}

.expertise__title-line--italic {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.28);
}

.expertise__content {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-top: 4px;
}

.expertise__label {
    font-size: 11px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.56);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.expertise__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.expertise__column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.expertise__column-title {
    padding-bottom: 10px;
    min-height: calc(1.5em * 2 + 10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 10px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.34);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1.5;
}

.expertise__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.expertise__item {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.35;
}

/* ==========================================
   Seção My Skillset
   ========================================== */
.skillset {
    width: 100%;
    min-height: 100vh;
    padding: 100px 80px;
    background-color: var(--color-background);
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cabeçalho */
.skillset__header {
    width: 100%;
    max-width: 900px;
    margin-bottom: 60px;
    text-align: center;
}

.skillset__label {
    font-size: 12px;
    font-weight: 300;
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
}

.skillset__title {
    font-size: 64px;
    font-weight: 200;
    color: var(--color-text-primary);
    line-height: 1;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.skillset__title-main {
    font-weight: 700;
    font-size: 1em;
}

.skillset__title-italic {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 1em;
}

.skillset__subtitle {
    font-size: 14px;
    font-weight: 300;
    color: var(--color-text-secondary);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Grid Bento Box */
.skillset__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 240px);
    gap: 16px;
    max-width: 1200px;
}

/* Cards */
.skillset__card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all var(--transition-medium);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.skillset__card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.skillset__card-number {
    font-size: 12px;
    font-weight: 300;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
}

.skillset__card-title {
    font-size: 20px;
    font-weight: 400;
    color: var(--color-text-primary);
    line-height: 1.3;
}

.skillset__card-body {
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: gap 0.35s ease;
}

.skillset__card-description {
    font-size: 14px;
    font-weight: 300;
    color: var(--color-text-secondary);
    line-height: 1.5;
    max-width: 470px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(10px);
    transition: opacity 0.35s ease, max-height 0.35s ease, transform 0.35s ease;
}

.skillset__tech-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 18px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(12px);
    transition: opacity 0.4s ease, max-height 0.4s ease, transform 0.4s ease;
}

.skillset__tech-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.skillset__tech-index {
    width: 18px;
    font-size: 9px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.08em;
    flex-shrink: 0;
}

.skillset__tech-text {
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.4;
}

.skillset__card:hover .skillset__card-body {
    gap: 12px;
}

.skillset__card:hover .skillset__card-description {
    opacity: 1;
    max-height: 140px;
    transform: translateY(0);
}

.skillset__card:hover .skillset__tech-list {
    opacity: 1;
    max-height: 160px;
    transform: translateY(0);
}

@media (hover: none) and (pointer: coarse) {
    .skillset__card-body {
        gap: 12px;
    }

    .skillset__card-description,
    .skillset__tech-list {
        opacity: 1;
        max-height: none;
        overflow: visible;
        transform: none;
    }
}

/* Layout Bento Box - Posicionamento específico */
.skillset__card--1 {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.skillset__card--2 {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.skillset__card--3 {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
}

.skillset__card--4 {
    grid-column: 2 / 3;
    grid-row: 2 / 4;
}

/* ==========================================
   Seção Projetos Acadêmicos
   ========================================== */
.academic {
    width: 100%;
    padding: 100px 80px;
    background-color: var(--color-background);
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.academic__header {
    width: 100%;
    max-width: 900px;
    margin-bottom: 60px;
    text-align: center;
}

.academic__label {
    font-size: 12px;
    font-weight: 300;
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
}

.academic__title {
    font-size: 64px;
    /* Menor que o projects title principal para hierarquia, ou igual? Vamos manter similar mas adaptado */
    font-weight: 200;
    color: var(--color-text-primary);
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    line-height: 1;
    gap: 0;
}

.academic__title-main {
    font-weight: 700;
    font-size: 1em;
}

.academic__title-italic {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 1em;
}

.academic__subtitle {
    font-size: 14px;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.academic__container {
    width: 100%;
    max-width: 1100px;
    /* Largura do card grande */
    display: flex;
    flex-direction: column;
    /* Empilha os cards */
    gap: 60px;
    /* Espaçamento entre os cards */
    justify-content: center;
}

.academic__card {
    display: flex;
    width: 100%;
    background-color: #0A0A0A;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    overflow: hidden;
    min-height: 450px;
    transition: var(--transition-medium);
}

.academic__card--reverse {
    flex-direction: row-reverse;
    /* Inverte a ordem: Conteúdo | Imagem */
}

.academic__card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.academic__image-wrapper {
    width: 55%;
    /* Um pouco mais largo para a imagem */
    position: relative;
    overflow: hidden;
}

.academic__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.academic__card:hover .academic__image {
    transform: scale(1.05);
}

.academic__content {
    width: 45%;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.03), transparent);
}

.academic__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.academic__tag {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #B3B0E4;
    /* Cor azulada/ciano estilo a ref */
    border: 1px solid rgba(179, 176, 228, 0.3);
    padding: 6px 12px;
    border-radius: 100px;
    background: rgba(179, 176, 228, 0.05);
}

.academic__info {
    margin-bottom: 40px;
}

.academic__card-title {
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 16px;
    line-height: 1.2;
    color: var(--color-text-primary);
}

.academic__description {
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.academic__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
}

.academic__brand {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-primary);
    opacity: 0.8;
}

.academic__button {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: white;
    color: black;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.academic__button:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.academic__link {
    color: #FFFF;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s ease;
}

.academic__link:hover {
    color: #fff;
}

/* Responsividade para Projetos Acadêmicos */
@media (max-width: 900px) {
    .academic__card {
        flex-direction: column;
    }

    .academic__image-wrapper,
    .academic__content {
        width: 100%;
    }

    .academic__image-wrapper {
        height: 300px;
    }

    .academic__content {
        padding: 32px;
    }
}

/* ==========================================
   Seção Projetos
   ========================================== */
.projects {
    width: 100%;
    min-height: 100vh;
    padding: 100px 80px;
    background-color: var(--color-background);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 5;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cabeçalho */
.projects__header {
    width: 100%;
    max-width: 900px;
    margin-bottom: 80px;
    text-align: center;
}

.projects__label {
    font-size: 12px;
    font-weight: 300;
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
}

.projects__title {
    font-size: 64px;
    font-weight: 200;
    color: var(--color-text-primary);
    line-height: 1;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.projects__title-main {
    font-weight: 700;
    font-size: 1em;
}

.projects__title-italic {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 1em;
}

.projects__subtitle {
    font-size: 14px;
    font-weight: 300;
    color: var(--color-text-secondary);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Container accordion horizontal — um único bloco com todos os projetos */
.projects__cards {
    display: flex;
    gap: 6px;
    height: 560px;
    width: 100%;
    padding: 0.45em;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #0c0c0e;
    overflow: hidden;
}

/* Cada card = painel de um projeto */
.projects__card {
    flex: 1;
    overflow: hidden;
    cursor: pointer;
    border-radius: 6px;
    transition: flex 1.1s cubic-bezier(0.16, 1, 0.3, 1), filter 0.7s ease;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 18px 14px;
    position: relative;
}

.projects__card:hover {
    flex: 7;
}

/* Label rotacionado — visível quando o painel está colapsado */
.projects__card-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    white-space: nowrap;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.65);
    transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 2;
}

.projects__card:hover .projects__card-label {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(0deg);
}

/* Conteúdo visível ao expandir */
.projects__card-content {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease 0.35s, transform 0.6s ease 0.35s;
    pointer-events: none;
    position: relative;
    z-index: 2;
}

.projects__card:hover .projects__card-content {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.projects__card-title {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.projects__card-desc {
    font-size: 12px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.72);
    margin: 0 0 14px 0;
}

.projects__card-links {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.projects__card-links a {
    text-decoration: none;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 11px;
    transition: background 0.3s ease, border-color 0.3s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.projects__card-links a:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
}

.projects__card-links a .arrow {
    display: inline-block;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.projects__card-links a:hover .arrow {
    transform: translate(3px, -3px);
}

.projects__repo-link .projects__link-icon {
    width: 12px;
    height: 12px;
    display: inline-block;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.projects__repo-link:hover .projects__link-icon {
    transform: translate(2px, -2px);
    opacity: 0.9;
}

.projects__card-links a.is-disabled {
    opacity: 0.35;
    pointer-events: none;
}

/* Atenua os demais painéis quando um está expandido */
.projects__cards:has(.projects__card:hover) .projects__card:not(:hover) {
    filter: brightness(0.55);
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    width: 100%;
    background-color: var(--color-background);
    color: var(--color-text-primary);
    padding: 20px 80px 40px 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer__container {
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
}

/* Big Title */
.footer__title-wrapper {
    margin-bottom: 1px;
}

.footer__big-title {
    font-size: 220px;
    font-weight: 100;
    line-height: 1;
    color: var(--color-text-primary);
    text-align: left;
}

.footer__content {
    display: flex;
    /* Mudado de Grid para Flex para garantir extremos */
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: 0px;
}

/* Links Columns */
.footer__links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.footer__links-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__link {
    color: var(--color-text-primary);
    text-decoration: none;
    font-size: 24px;
    font-weight: 300;
    width: fit-content;
    display: flex;
    align-items: center;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
}

.footer__link span {
    padding-bottom: 7px;
    padding-right: 15px;
}

.footer__link-arrow {
    transform: translateX(-8px);
    transition: all 0.3s ease;
    opacity: 0;
}

.footer__link:hover .footer__link-arrow {
    transform: translateX(0);
    opacity: 1;
}

.footer__link:active .footer__link-arrow {
    transform: scale(0.9);
}

.hover-underline-animation {
    position: relative;
    color: var(--color-text-primary);
}

.hover-underline-animation:after {
    content: "";
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--color-text-primary);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.footer__link:hover .hover-underline-animation:after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Form Section */
.footer__form-section {
    max-width: 500px;
    justify-self: end;
    text-align: left;
}

.footer__form-title {
    font-size: 28px;
    font-weight: 300;
    margin-bottom: 32px;
    color: var(--color-text-primary);
}

.footer__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer__form-row {
    display: flex;
    gap: 12px;
}

.footer__input {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 18px;
    color: var(--color-text-primary);
    font-family: var(--font-family);
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s ease;
}

.footer__input:focus {
    border-color: rgba(255, 255, 255, 0.3);
}

.footer__input::placeholder {
    color: var(--color-text-muted);
}

.footer__textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 18px;
    color: var(--color-text-primary);
    font-family: var(--font-family);
    font-size: 15px;
    outline: none;
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.3s ease;
}

.footer__textarea:focus {
    border-color: rgba(255, 255, 255, 0.3);
}

.footer__textarea::placeholder {
    color: var(--color-text-muted);
}

.footer__submit {
    align-self: flex-start;
    background-color: var(--color-text-primary);
    color: var(--color-background);
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    height: 48px;
}

.footer__submit:hover {
    background-color: rgba(255, 255, 255, 0.85);
    transform: translateY(-2px);
}

/* Submit Button States */
.submit-text,
.submit-loading,
.submit-success {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.submit-loading,
.submit-success {
    position: absolute;
    opacity: 0;
    transform: scale(0.5);
}

.submit-spinner {
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

.submit-check {
    width: 24px;
    height: 24px;
}

/* Loading State */
.footer__submit.is-loading .submit-text {
    opacity: 0;
    transform: scale(0.5);
}

.footer__submit.is-loading .submit-loading {
    opacity: 1;
    transform: scale(1);
}

.footer__submit.is-loading {
    pointer-events: none;
}

/* Success State */
.footer__submit.is-success {
    background-color: #22c55e;
    pointer-events: none;
}

.footer__submit.is-success .submit-text {
    opacity: 0;
    transform: scale(0.5);
}

.footer__submit.is-success .submit-success {
    opacity: 1;
    transform: scale(1);
}

.footer__submit.is-success:hover {
    background-color: #22c55e;
    transform: none;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Bottom Bar */
.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 40px;
    margin-top: 60px;
}

.footer__bottom-left,
.footer__bottom-right {
    font-size: 12px;
    color: var(--color-text-muted);
    font-weight: 300;
}

/* ==========================================
   Seção 3D Spline
   ========================================== */
.spline-section {
    width: 100%;
    padding: 100px 0;
    display: flex;
    justify-content: center;
    background-color: var(--color-background);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.spline-container {
    width: 720px;
    height: 720px;
    /* Altura inicial sugerida */
    position: relative;
    border-radius: 30px;
    overflow: hidden;
}

/* ==========================================
   Responsividade Completa
   Sistema de Breakpoints:
   - 1200px: Desktop médio
   - 1024px: Tablet landscape
   - 900px: Tablet portrait
   - 768px: Mobile grande
   - 600px: Mobile médio
   - 480px: Mobile pequeno
   ========================================== */

/* ===== BREAKPOINT: 1200px (Desktop médio) ===== */
@media (max-width: 1200px) {

    /* Hero */
    .hero__name {
        font-size: 100px;
    }

    /* Intro */
    .intro {
        padding: 100px 60px;
    }

    .intro__container {
        gap: 120px;
    }

    .intro__title {
        font-size: 48px;
    }

    /* Skillset */
    .skillset__title {
        font-size: 100px;
    }

    /* Projects */
    .projects__title {
        font-size: 100px;
    }

    /* About */
    .about__title {
        font-size: 100px;

    }

    .expertise__container {
        gap: 48px;
    }

    .expertise__grid {
        gap: 20px;
    }

    /* Footer */
    .footer__big-title {
        font-size: 160px;
    }

    /* Spline */
    .spline-container {
        width: 600px;
        height: 600px;
    }
}

/* ===== BREAKPOINT: 1024px (Tablet landscape) ===== */
@media (max-width: 1024px) {

    /* Seções Gerais */
    .intro,
    .about,
    .skillset,
    .projects,
    .academic,
    .footer {
        padding: 80px 40px;
    }

    /* Hero */
    .hero__name {
        font-size: 80px;
    }

    /* Intro */
    .intro__container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .intro__title {
        font-size: 44px;
    }

    .intro__spline-container {
        width: 100%;
        max-width: 420px;
        height: 350px;
    }

    .intro__visual {
        align-items: center;
    }

    /* Skillset */
    .skillset__title {
        font-size: 80px;
    }

    .skillset__grid {
        max-width: 100%;
    }

    /* Projects */
    .projects__title {
        font-size: 80px;
    }

    .projects__cards {
        height: 460px;
    }

    /* About */
    .about__title {
        font-size: 80px;
    }

    .about__container {
        gap: 40px;
    }

    .about__timeline-item {
        grid-template-columns: 150px minmax(0, 1fr) 190px;
    }

    .expertise__title-line {
        font-size: clamp(3rem, 5.4vw, 4.2rem);
    }

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

    .expertise__column:last-child {
        grid-column: 1 / -1;
        max-width: 240px;
    }

    /* Academic */
    .academic__title {
        font-size: 56px;
    }

    .academic__content {
        padding: 36px;
    }

    .academic__card-title {
        font-size: 28px;
    }

    .academic__description {
        font-size: 14px;
    }

    /* Footer */
    .footer__big-title {
        font-size: 120px;
    }

    .footer__content {
        gap: 60px;
    }

    /* Spline */
    .spline-container {
        width: 500px;
        height: 500px;
    }
}

/* ===== BREAKPOINT: 900px (Tablet portrait) ===== */
@media (max-width: 900px) {

    /* Hero */
    .hero__name {
        font-size: 64px;
    }

    /* Intro */
    .intro__title {
        font-size: 36px;
    }

    .intro__spline-container {
        height: 320px;
    }

    /* Skillset */
    .skillset__title {
        font-size: 64px;
    }

    .skillset__grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .skillset__card--1,
    .skillset__card--2,
    .skillset__card--3,
    .skillset__card--4 {
        grid-column: 1 / 2;
        grid-row: auto;
        min-height: 180px;
    }

    /* Projects */
    .projects__title {
        font-size: 64px;
    }

    .projects__cards {
        flex-direction: column;
        height: auto;
        gap: 6px;
    }

    .projects__card {
        flex: 0 0 56px;
        min-height: 56px;
        transition: flex 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .projects__card:hover {
        flex: 0 0 220px;
    }

    .projects__card-label {
        top: 50%;
        left: 20px;
        transform: translate(0, -50%) rotate(0deg);
    }

    .projects__card:hover .projects__card-label {
        opacity: 0;
        transform: translate(0, -50%) rotate(0deg);
    }

    /* About */
    .about__title {
        font-size: 64px;
    }

    .about__container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about__photo-frame {
        max-width: 360px;
        margin: 0 auto;
    }

    .about__left {
        justify-content: center;
    }

    .about__timeline-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .about__timeline-company {
        text-align: left;
    }

    .expertise__container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .expertise__headline {
        justify-content: center;
    }

    .expertise__content {
        padding-top: 0;
    }

    /* Academic (já responsivo acima) */
    .academic__card {
        flex-direction: column;
        min-height: auto;
    }

    .academic__card--reverse {
        flex-direction: column;
    }

    .academic__image-wrapper,
    .academic__content {
        width: 100%;
    }

    .academic__image-wrapper {
        height: 280px;
    }

    /* Footer */
    .footer__big-title {
        font-size: 80px;
    }

    .footer__content {
        flex-direction: column;
        align-items: flex-start;
        gap: 48px;
    }

    .footer__form-section {
        max-width: 100%;
        width: 100%;
    }

    /* Spline Section */
    .spline-container {
        width: 400px;
        height: 400px;
    }
}

/* ===== BREAKPOINT: 768px (Mobile grande) ===== */
@media (max-width: 768px) {

    /* Hero */
    .hero__name {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .hero__subtitle {
        font-size: 14px;
        letter-spacing: 0.15em;
    }

    .hero__scroll-indicator {
        bottom: 24px;
    }

    /* Seções Gerais */
    .intro,
    .about,
    .skillset,
    .projects,
    .academic,
    .footer {
        padding: 60px 24px;

    }

    /* Intro */
    .intro__title {
        font-size: 32px;
    }

    .intro__text {
        font-size: 14px;
    }

    .intro__spline-container {
        height: 280px;
    }

    .intro__keyword {
        padding: 8px 16px;
        font-size: 12px;
    }

    /* Skillset */
    .skillset__title {
        font-size: 48px;
    }

    .skillset__header {
        margin-bottom: 40px;
    }

    .skillset__card {
        padding: 20px;
    }

    .skillset__card-title {
        font-size: 18px;
    }

    /* Projects */
    .projects__title {
        font-size: 48px;
    }

    .projects__header {
        margin-bottom: 48px;
    }

    .projects__card {
        width: 100%;
        max-width: 350px;
        height: 280px;
    }

    .projects__card-content {
        padding: 24px;
    }

    .projects__tip {
        font-size: 1.2em;
    }

    /* About */
    .about__title {
        font-size: 48px;
    }

    .about__header {
        margin-bottom: 48px;
    }

    .about__resume-text {
        max-width: 100%;
    }

    .about__summary-card {
        padding: 20px 18px;
    }

    .about__timeline-item {
        padding: 16px 0;
    }

    .expertise__title-line {
        font-size: clamp(2.8rem, 9vw, 4rem);
    }

    .expertise__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .expertise__column:last-child {
        max-width: 100%;
    }

    /* Academic */
    .academic__title {
        font-size: 40px;
    }

    .academic__container {
        gap: 40px;
    }

    .academic__image-wrapper {
        height: 220px;
    }

    .academic__content {
        padding: 28px;
    }

    .academic__card-title {
        font-size: 24px;
    }

    .academic__description {
        font-size: 14px;
        line-height: 1.5;
    }

    .academic__tags {
        margin-bottom: 20px;
    }

    .academic__footer {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    /* Footer */
    .footer__big-title {
        font-size: 56px;
    }

    .footer__title-wrapper {
        margin-bottom: 60px;
    }

    .footer__link {
        font-size: 20px;
    }

    .footer__form-title {
        font-size: 22px;
        margin-bottom: 24px;
    }

    .footer__form-row {
        flex-direction: column;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding-top: 32px;
    }

    /* Spline Section */
    .spline-section {
        padding: 60px 0;
    }

    .spline-container {
        width: 90%;
        max-width: 350px;
        height: 350px;
        border-radius: 20px;
    }
}

/* ===== BREAKPOINT: 600px (Mobile médio) ===== */
@media (max-width: 600px) {

    /* Hero */
    .hero__name {
        font-size: 40px;
    }

    .hero__subtitle {
        font-size: 12px;
        letter-spacing: 0.12em;
    }

    /* Intro */
    .intro__title {
        font-size: 28px;
    }

    .intro__badge {
        font-size: 10px;
        padding: 6px 12px;
    }

    .intro__spline-container {
        height: 250px;
    }

    .intro__keywords {
        justify-content: center;
    }

    /* Skillset */
    .skillset__title {
        font-size: 36px;
    }

    .skillset__subtitle {
        font-size: 13px;
    }

    /* Projects */
    .projects__title {
        font-size: 36px;
    }

    .projects__subtitle {
        font-size: 13px;
    }

    .projects__card {
        height: 260px;
    }

    .projects__card-link-circle {
        width: 36px;
        height: 36px;
        top: 16px;
        right: 16px;
    }

    .projects__card-link-icon {
        width: 16px;
        height: 16px;
    }

    /* About */
    .about__title {
        font-size: 36px;
    }

    .about__links {
        width: 100%;
    }

    .about__link-btn {
        justify-content: center;
        min-width: calc(50% - 5px);
    }

    .about__photo-frame {
        max-width: 260px;
    }

    .expertise__column-title {
        font-size: 9px;
    }

    .expertise__item {
        font-size: 13px;
    }

    /* Academic */
    .academic__title {
        font-size: 32px;
    }

    .academic__content {
        padding: 24px;
    }

    .academic__card-title {
        font-size: 22px;
    }

    .academic__tag {
        font-size: 9px;
        padding: 5px 10px;
    }

    .academic__button {
        padding: 8px 16px;
        font-size: 12px;
    }

    /* Footer */
    .footer__big-title {
        font-size: 40px;
    }

    .footer__title-wrapper {
        margin-bottom: 40px;
    }

    .footer__link {
        font-size: 18px;
    }

    .footer__form-title {
        font-size: 20px;
    }

    .footer__input,
    .footer__textarea {
        padding: 12px 16px;
        font-size: 14px;
    }

    .footer__submit {
        width: 100%;
        text-align: center;
        padding: 14px 24px;
    }

    /* Spline */
    .spline-container {
        max-width: 300px;
        height: 300px;
    }
}

/* ===== BREAKPOINT: 480px (Mobile pequeno) ===== */
@media (max-width: 480px) {

    /* Hero */
    .hero__name {
        font-size: 32px;
    }

    .hero__subtitle {
        font-size: 11px;
        letter-spacing: 0.1em;
    }

    .hero__content {
        padding: var(--spacing-sm);
    }

    .hero__scroll-indicator {
        bottom: 16px;
    }

    .hero__scroll-line {
        height: 24px;
    }

    /* Intro */
    .intro {
        padding: 60px 16px;
    }

    .intro__title {
        font-size: 24px;
    }

    .intro__text {
        font-size: 13px;
    }

    .intro__spline-container {
        height: 220px;
    }

    .intro__keyword {
        padding: 6px 12px;
        font-size: 11px;
    }

    /* Skillset */
    .skillset {
        padding: 60px 16px;
    }

    .skillset__title {
        font-size: 28px;
    }

    .skillset__subtitle {
        font-size: 12px;
    }

    .skillset__card {
        padding: 16px;
        min-height: 160px;
    }

    .skillset__card-title {
        font-size: 16px;
    }

    .skillset__card-description {
        font-size: 13px;
    }

    /* Projects */
    .projects {
        padding: 60px 16px;
    }

    .projects__title {
        font-size: 28px;
    }

    .projects__subtitle {
        font-size: 12px;
    }

    .projects__card {
        height: 240px;
    }

    .projects__card-content {
        padding: 20px;
    }

    .projects__tip {
        font-size: 1.1em;
    }

    .projects__second-text {
        font-size: 0.85em;
    }

    /* About */
    .about {
        padding: 60px 16px;
    }

    .about__title {
        font-size: 28px;
    }

    .about__resume-title {
        font-size: 10px;
    }

    .about__resume-text {
        font-size: 13px;
    }

    .about__timeline-title {
        font-size: 14px;
    }

    .about__timeline-date {
        font-size: 10px;
    }

    .about__timeline-company {
        font-size: 12px;
    }

    .about__photo-frame {
        max-width: 220px;
    }

    .about__link-btn {
        width: 100%;
        min-width: 100%;
    }

    .expertise {
        padding: 60px 16px;
    }

    .expertise__container {
        gap: 32px;
    }

    .expertise__title-line {
        font-size: clamp(2.2rem, 12vw, 3rem);
    }

    /* Academic */
    .academic {
        padding: 60px 16px;
    }

    .academic__title {
        font-size: 28px;
    }

    .academic__subtitle {
        font-size: 13px;
    }

    .academic__container {
        gap: 32px;
    }

    .academic__image-wrapper {
        height: 180px;
    }

    .academic__content {
        padding: 20px;
    }

    .academic__card-title {
        font-size: 20px;
    }

    .academic__description {
        font-size: 13px;
    }

    .academic__info {
        margin-bottom: 24px;
    }

    .academic__brand {
        font-size: 12px;
    }

    /* Footer */
    .footer {
        padding: 60px 16px 32px;
    }

    .footer__big-title {
        font-size: 32px;
    }

    .footer__title-wrapper {
        margin-bottom: 32px;
    }

    .footer__link {
        font-size: 16px;
    }

    .footer__link span {
        padding-bottom: 4px;
        padding-right: 10px;
    }

    .footer__link-arrow {
        width: 20px;
        height: 8px;
    }

    .footer__form-title {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .footer__form {
        gap: 12px;
    }

    .footer__input,
    .footer__textarea {
        padding: 12px 14px;
        font-size: 13px;
        border-radius: 10px;
    }

    .footer__textarea {
        min-height: 100px;
    }

    .footer__submit {
        padding: 12px 20px;
        font-size: 14px;
        border-radius: 10px;
    }

    .footer__bottom-left,
    .footer__bottom-right {
        font-size: 11px;
    }

    /* Spline Section */
    .spline-section {
        padding: 40px 0;
    }

    .spline-container {
        max-width: 260px;
        height: 260px;
        border-radius: 16px;
    }
}

/* ===== BREAKPOINT: 360px (Mobile ultra pequeno) ===== */
@media (max-width: 360px) {
    .hero__name {
        font-size: 28px;
    }

    .intro__title {
        font-size: 22px;
    }

    .skillset__title,
    .projects__title,
    .about__title,
    .academic__title {
        font-size: 24px;
    }

    .footer__big-title {
        font-size: 28px;
    }

    .projects__card {
        height: 220px;
    }

    .spline-container {
        max-width: 220px;
        height: 220px;
    }
}

/* ==========================================
   Desabilitar cursor customizado em touch devices
   ========================================== */
@media (hover: none) and (pointer: coarse) {

    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }

    body,
    a,
    button,
    input,
    textarea,
    .footer__link {
        cursor: auto !important;
    }
}

/* ==========================================
   Custom Cursor (apenas para dispositivos com mouse)
   ========================================== */
@media (hover: hover) and (pointer: fine) {

    body,
    a,
    button,
    input,
    textarea,
    .projects__card,
    .footer__link {
        cursor: none !important;
    }

    .cursor-dot {
        width: 8px;
        height: 8px;
        background-color: #DAD9F2;
        position: fixed;
        top: 0;
        left: 0;
        transform: translate(-50%, -50%);
        border-radius: 50%;
        z-index: 10001;
        pointer-events: none;
    }

    .cursor-outline {
        width: 40px;
        height: 40px;
        border: 1px solid #DAD9F2;
        position: fixed;
        top: 0;
        left: 0;
        transform: translate(-50%, -50%);
        border-radius: 50%;
        z-index: 10001;
        pointer-events: none;
        transition: width 0.2s, height 0.2s, background-color 0.2s;
    }

    /* Hover Effect */
    body:has(a:hover) .cursor-outline,
    body:has(button:hover) .cursor-outline {
        width: 60px;
        height: 60px;
        background-color: rgba(218, 217, 242, 0.1);
    }
}

/* Fallback para cursor customizado - esconder em telas pequenas */
@media (max-width: 768px) {

    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }
}

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

    /* Desliga animações/efeitos de movimento no hero */
    .hero__name,
    .hero__subtitle,
    .hero__scroll-indicator,
    .hero__scroll-wheel {
        animation: none !important;
        transition: none !important;
    }

    /* Remove cursor customizado */
    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }

    /* Splines secundários: reduz carga gráfica e movimento */
    .intro__spline-container,
    .spline-section {
        display: none !important;
    }
}