
/* =========================================
IDENTIDADE VISUAL - PORTFÓLIO / DEVLAB
========================================= */

:root {
    color-scheme: dark;

    --primary: #65d6c4;
    --primary-strong: #32b8a5;
    --primary-hover: #65d6c4;
    --primary-soft: rgba(101, 214, 196, 0.12);
    --secondary: #65d6c4;

    --bg-primary: #0b1014;
    --bg-secondary: #111a20;
    --bg-tertiary: #17232b;
    --bg-card: #17232b;
    --bg-hover: #1d2b34;

    --border-color: #2a3942;
    --border-strong: #40535d;

    --text-primary: #f1f5f7;
    --text-secondary: #c0cbd1;
    --text-muted: #9aaab3;

    --header-bg: rgba(11, 16, 20, 0.96);

    --button-bg: #32b8a5;
    --button-hover: #65d6c4;
    --button-text: #071411;

    --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.20);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    --transition: 0.25s ease;
}

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

html[data-theme="light"] {
    color-scheme: light;

    --primary: #087f70;
    --primary-strong: #087f70;
    --primary-hover: #066b5e;
    --primary-soft: rgba(8, 127, 112, 0.09);
    --secondary: #087f70;

    --bg-primary: #f5f7f8;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e7efef;
    --bg-card: #ffffff;
    --bg-hover: #e7efef;

    --border-color: #d5dfe2;
    --border-strong: #b9c9ce;

    --text-primary: #182329;
    --text-secondary: #394950;
    --text-muted: #52646d;

    --header-bg: rgba(255, 255, 255, 0.96);

    --button-bg: #087f70;
    --button-hover: #066b5e;
    --button-text: #ffffff;

    --shadow-card: 0 8px 30px rgba(20, 35, 40, 0.07);
}

/* =========================================
CONFIGURAÇÕES GERAIS
========================================= */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 25px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;

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

a {
    color: inherit;
}

button {
    font: inherit;
}

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

:focus-visible {
    outline: 3px solid var(--secondary);
    outline-offset: 4px;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 15px;
    z-index: 1000;

    padding: 12px 18px;

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

    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 700;
}

.skip-link:focus {
    top: 15px;
}

/* =========================================
CABEÇALHO
========================================= */

.header {
    min-height: 530px;

    background: var(--header-bg);
    color: var(--text-primary);

    padding: 25px 10% 75px;

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

    transition: background var(--transition);
}

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

/* LOGO */

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: var(--text-primary);
    text-decoration: none;

    font-size: 21px;
    font-weight: 700;
    letter-spacing: 0.3px;

    transition: color var(--transition);
}

.logo-icon {
    display: inline-block;

    color: var(--primary);

    font-family: Consolas, "Courier New", monospace;
    font-size: 21px;
    font-weight: 700;

    line-height: 1;
    letter-spacing: -2px;

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

.logo:hover .logo-icon {
    color: var(--primary-hover);
    transform: translateY(-2px);
}

.logo:hover {
    color: var(--primary);
}

/* MENU */

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;

    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;

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

    transition: color var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

/* BOTÃO DE TEMA */

.theme-toggle {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;

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

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

    background: var(--bg-card);
    color: var(--text-primary);

    cursor: pointer;

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

.theme-toggle:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.theme-icon {
    font-size: 18px;
    line-height: 1;
}

/* =========================================
APRESENTAÇÃO
========================================= */

.hero {
    width: 100%;
    max-width: 1120px;

    margin: 75px auto 0;

    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    align-items: center;
    gap: 35px;
}

.hero-content {
    min-width: 0;
    max-width: 700px;
}

.tag,
.section-tag {
    display: inline-block;

    color: var(--primary);

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;

    margin-bottom: 15px;
}

.hero h1 {
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.2;

    margin-bottom: 12px;
    letter-spacing: -1.5px;
}

.hero h1 span {
    color: var(--primary);
}

.hero h2 {
    font-size: 25px;
    color: var(--text-secondary);

    margin-bottom: 20px;
    font-weight: 500;
}

.hero p:not(.tag) {
    max-width: 560px;

    margin-bottom: 30px;

    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.8;
}

/* =========================================
ESFERA FUTURISTA
========================================= */

.hero-visual {
    position: relative;

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

    width: 100%;
    min-width: 0;

    padding: 10px 0 0;
}

.sphere-scene {
    position: relative;

    width: min(100%, 390px);
    aspect-ratio: 1;

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

    isolation: isolate;
}

.sphere-glow {
    position: absolute;

    width: 65%;
    height: 65%;

    border-radius: 50%;

    background: var(--primary-strong);
    opacity: 0.16;

    filter: blur(48px);

    animation: sphere-pulse 5s ease-in-out infinite;
}

.sphere-core {
    position: relative;
    z-index: 2;

    width: 43%;
    aspect-ratio: 1;

    overflow: hidden;
    border-radius: 50%;

    background:
        radial-gradient(
            circle at 30% 25%,
            #b4f4e9 0%,
            var(--primary) 18%,
            var(--primary-strong) 43%,
            #087f70 70%,
            var(--bg-primary) 100%
        );

    box-shadow:
        0 0 28px rgba(101, 214, 196, 0.28),
        0 0 75px rgba(50, 184, 165, 0.22),
        inset -18px -18px 30px rgba(7, 20, 17, 0.48),
        inset 10px 8px 20px rgba(180, 244, 233, 0.24);
}

.sphere-highlight {
    position: absolute;

    top: 12%;
    left: 18%;

    width: 35%;
    height: 22%;

    border-radius: 50%;

    background: #b4f4e9;
    opacity: 0.45;

    filter: blur(12px);

    transform: rotate(-35deg);
}

.sphere-grid {
    position: absolute;
    inset: 0;

    border-radius: 50%;

    background:
        repeating-linear-gradient(
            0deg,
            transparent 0,
            transparent 17px,
            rgba(180, 244, 233, 0.13) 18px,
            transparent 19px
        ),
        repeating-linear-gradient(
            90deg,
            transparent 0,
            transparent 17px,
            rgba(101, 214, 196, 0.10) 18px,
            transparent 19px
        );

    opacity: 0.55;
    mix-blend-mode: screen;
}

/* ANÉIS ORBITAIS */

.orbit {
    position: absolute;
    z-index: 3;

    top: 50%;
    left: 50%;

    border: 1px solid rgba(101, 214, 196, 0.48);
    border-radius: 50%;

    pointer-events: none;
}

.orbit-one {
    width: 82%;
    height: 34%;

    transform: translate(-50%, -50%) rotate(-28deg);

    animation: orbit-rotate-one 18s linear infinite;
}

.orbit-two {
    width: 88%;
    height: 45%;

    border-color: rgba(138, 228, 214, 0.55);

    transform: translate(-50%, -50%) rotate(55deg);

    animation: orbit-rotate-two 24s linear infinite;
}

.orbit-three {
    width: 68%;
    height: 90%;

    border-color: rgba(50, 184, 165, 0.35);

    transform: translate(-50%, -50%) rotate(65deg);

    animation: orbit-rotate-three 30s linear infinite;
}

/* PONTOS DOS ANÉIS */

.orbit-point {
    position: absolute;

    top: 50%;
    right: -5px;

    width: 10px;
    height: 10px;

    border-radius: 50%;

    background: var(--primary);

    box-shadow:
        0 0 8px var(--primary),
        0 0 18px rgba(101, 214, 196, 0.55);
}

.orbit-two .orbit-point {
    top: auto;
    right: auto;
    bottom: 12%;
    left: 8%;

    width: 8px;
    height: 8px;

    background: var(--primary-hover);

    box-shadow:
        0 0 8px var(--primary-hover),
        0 0 18px rgba(138, 228, 214, 0.5);
}

.orbit-three .orbit-point {
    top: 15%;
    right: 12%;

    width: 6px;
    height: 6px;

    background: var(--primary);
}

/* PARTÍCULAS AO REDOR */

.sphere-particle {
    position: absolute;
    z-index: 4;

    display: block;

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: var(--primary-hover);

    box-shadow:
        0 0 9px var(--primary-hover),
        0 0 18px rgba(138, 228, 214, 0.45);
}

.particle-one {
    top: 17%;
    left: 22%;

    animation: particle-float 4s ease-in-out infinite;
}

.particle-two {
    top: 28%;
    right: 12%;

    width: 4px;
    height: 4px;

    background: var(--primary);

    box-shadow: 0 0 12px var(--primary);

    animation: particle-float 5s ease-in-out infinite reverse;
}

.particle-three {
    right: 20%;
    bottom: 18%;

    width: 6px;
    height: 6px;

    animation: particle-float 4.5s ease-in-out infinite;
}

.particle-four {
    bottom: 24%;
    left: 12%;

    width: 4px;
    height: 4px;

    background: var(--primary);

    box-shadow: 0 0 12px var(--primary);

    animation: particle-float 5.5s ease-in-out infinite reverse;
}

/* IDENTIFICAÇÃO VISUAL */

.visual-caption {
    display: inline-block;

    margin-top: -3px;

    color: var(--text-muted);

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-align: center;
}

/* =========================================
ANIMAÇÕES DA ESFERA
========================================= */

@keyframes orbit-rotate-one {
    from {
        transform: translate(-50%, -50%) rotate(-28deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(332deg);
    }
}

@keyframes orbit-rotate-two {
    from {
        transform: translate(-50%, -50%) rotate(55deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(-305deg);
    }
}

@keyframes orbit-rotate-three {
    from {
        transform: translate(-50%, -50%) rotate(65deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(425deg);
    }
}

@keyframes sphere-pulse {
    0%,
    100% {
        opacity: 0.12;
        transform: scale(0.92);
    }

    50% {
        opacity: 0.23;
        transform: scale(1.08);
    }
}

@keyframes particle-float {
    0%,
    100% {
        transform: translateY(0);
        opacity: 0.65;
    }

    50% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* =========================================
BOTÃO PRINCIPAL
========================================= */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;

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

    padding: 13px 23px;

    border-radius: var(--radius-sm);

    text-decoration: none;
    font-weight: 700;

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

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

.btn span {
    font-size: 19px;
}

/* =========================================
SEÇÕES GERAIS
========================================= */

.section {
    padding: 85px 10%;
    text-align: center;
    scroll-margin-top: 20px;
}

.section-heading {
    margin-bottom: 35px;
}

.section h2 {
    font-size: clamp(27px, 3vw, 34px);
    color: var(--text-primary);
    line-height: 1.3;
}

.section-line {
    width: 55px;
    height: 4px;

    background: var(--primary-strong);

    margin: 17px auto;
    border-radius: 5px;
}

.section-description {
    color: var(--text-muted);
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.8;
}

/* =========================================
SOBRE MIM
========================================= */

.sobre {
    background: var(--bg-primary);
}

.about-content {
    max-width: 780px;
    margin: 0 auto;
}

.sobre p {
    margin: 0 auto 22px;

    font-size: 16px;
    color: var(--text-secondary);

    text-align: left;
    line-height: 1.9;
}

.sobre p:last-child {
    margin-bottom: 0;
}

/* =========================================
HABILIDADES
========================================= */

.habilidades {
    background: var(--bg-secondary);
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 22px;

    max-width: 1050px;
    margin: 0 auto;

    text-align: left;
}

.skill-card {
    background: var(--bg-card);

    padding: 27px;

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

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

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

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.skill-card h3 {
    color: var(--primary);

    font-size: 19px;
    margin-bottom: 12px;
}

.skill-card p {
    color: var(--text-muted);

    font-size: 16px;
    line-height: 1.8;
}

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

.projetos {
    background: var(--bg-primary);
}

.project-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr);

    align-items: stretch;
    gap: 24px;

    max-width: 850px;
    margin: 0 auto;

    text-align: left;
}

.project-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;
    height: 100%;

    background: var(--bg-card);

    padding: 36px;

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

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

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

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.project-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    margin-bottom: 22px;

    background: var(--primary-soft);
    color: var(--primary);

    border-radius: 10px;

    font-weight: 800;
    font-size: 14px;
}

.project-card h3 {
    color: var(--text-primary);

    font-size: 22px;
    line-height: 1.4;

    margin-bottom: 15px;
}

.project-card p {
    margin-bottom: 23px;

    color: var(--text-muted);

    font-size: 16px;
    line-height: 1.8;
}

/* TECNOLOGIAS */

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: auto;
}

.tech-tags span {
    display: inline-block;

    padding: 6px 11px;

    background: var(--primary-soft);
    color: var(--primary);

    border-radius: 6px;

    font-size: 13px;
    font-weight: 700;
}

/* =========================================
IDENTIDADE DO DEVLAB
========================================= */

.project-featured {
    border-color: rgba(101, 214, 196, 0.55);

    background:
        linear-gradient(
            145deg,
            var(--primary-soft),
            var(--bg-card) 55%
        );
}

.project-featured:hover {
    border-color: var(--primary);

    box-shadow:
        0 12px 35px rgba(50, 184, 165, 0.13);
}

.project-featured-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.project-featured-top .project-number {
    margin-bottom: 22px;
}

.project-status {
    padding: 6px 11px;

    background: var(--primary-soft);
    color: var(--primary);

    border: 1px solid rgba(101, 214, 196, 0.25);
    border-radius: 20px;

    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.devlab-brand {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 22px;

    color: var(--text-primary);

    font-size: 28px;
    font-weight: 800;
    letter-spacing: 3px;
}

.devlab-symbol {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 48px;
    height: 48px;

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

    border-radius: 11px;

    font-size: 25px;
    letter-spacing: 0;
}

/* RODAPÉ DO CARTÃO */

.project-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;

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

    margin-top: auto;
    padding-top: 20px;
}

.project-complete {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    color: var(--text-secondary);

    font-size: 14px;
    font-weight: 600;
}

.status-dot {
    flex-shrink: 0;

    width: 8px;
    height: 8px;

    background: #22c55e;
    border-radius: 50%;
}

/* =========================================
LINK DO DEVLAB
========================================= */

.project-actions {
    display: flex;
    flex-direction: column;
    gap: 9px;

    width: 100%;
}

.project-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    width: 100%;

    min-height: 48px;
    padding: 12px 18px;

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

    border: 1px solid var(--button-bg);
    border-radius: var(--radius-sm);

    text-decoration: none;

    font-size: 15px;
    font-weight: 700;
    text-align: center;

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

.project-link:hover {
    background: var(--button-hover);
    border-color: var(--button-hover);

    transform: translateY(-2px);
}

.project-link span {
    font-size: 18px;
}

/* =========================================
CONTATO
========================================= */

.contato {
    background: var(--bg-secondary);
}

.contact-description {
    max-width: 600px;

    color: var(--text-secondary);

    margin: 0 auto 28px;

    font-size: 16px;
    line-height: 1.8;
}

.contact-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;

    margin-top: 25px;
}

.contact-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    min-width: 160px;
    min-height: 46px;

    padding: 13px 18px;

    background: var(--bg-card);

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

    color: var(--text-primary);
    text-decoration: none;

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

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

.contact-link span:last-child {
    color: var(--primary);
    font-size: 18px;
}

.contact-link:hover {
    border-color: var(--primary);
    background: var(--primary-soft);

    transform: translateY(-3px);
}

/* =========================================
RODAPÉ
========================================= */

.footer {
    background: var(--bg-secondary);

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

    color: var(--text-secondary);

    text-align: center;
    padding: 35px 20px;
}

.footer-logo {
    display: inline-block;

    margin-bottom: 8px;

    color: var(--text-primary);
    text-decoration: none;

    font-weight: 800;
    letter-spacing: 2px;
    font-size: 14px;
}

.footer p {
    font-size: 14px;
}

.footer .copyright {
    margin-top: 15px;

    color: var(--text-muted);
    font-size: 13px;
}

/* =========================================
TABLETS E TELAS INTERMEDIÁRIAS
========================================= */

@media (max-width: 1100px) {
    .hero {
        grid-template-columns: minmax(0, 1.1fr) minmax(250px, 0.9fr);
        gap: 20px;
    }

    .sphere-scene {
        max-width: 340px;
    }
}

@media (max-width: 900px) {
    .header {
        padding-left: 6%;
        padding-right: 6%;
    }

    .section {
        padding-left: 6%;
        padding-right: 6%;
    }

    .navbar {
        justify-content: space-between;
    }

    .skills-container {
        gap: 15px;
    }

    .skill-card {
        padding: 22px;
    }

    .hero {
        grid-template-columns: minmax(0, 1fr) minmax(220px, 0.8fr);
    }

    .sphere-scene {
        max-width: 300px;
    }
}

/* =========================================
CELULARES E TELAS MENORES
========================================= */

@media (max-width: 768px) {
    .header {
        min-height: auto;
        padding: 22px 6% 55px;
    }

    .navbar {
        gap: 20px;
    }

    .nav-links {
        width: 100%;

        justify-content: center;
        flex-wrap: wrap;

        gap: 15px;
    }

    .nav-links a {
        font-size: 14px;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 30px;

        margin-top: 65px;
    }

    .hero-content {
        max-width: 650px;
    }

    .hero-visual {
        max-width: 390px;
        margin: 0 auto;
    }

    .sphere-scene {
        width: min(82vw, 340px);
    }

    .visual-caption {
        margin-top: 0;
    }

    .hero h2 {
        font-size: 23px;
    }

    .section {
        padding: 65px 6%;
    }

    .project-container {
        max-width: 600px;
    }

    .skills-container {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin: 0 auto;
    }
}

/* =========================================
TELAS PEQUENAS
========================================= */

@media (max-width: 480px) {
    .logo {
        font-size: 19px;
        gap: 9px;
    }

    .logo-icon {
        font-size: 19px;
    }

    .hero {
        margin-top: 55px;
        gap: 25px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero h2 {
        font-size: 21px;
    }

    .hero p:not(.tag) {
        font-size: 16px;
    }

    .hero-visual {
        width: 100%;
    }

    .sphere-scene {
        width: min(86vw, 310px);
    }

    .visual-caption {
        font-size: 11px;
        letter-spacing: 2px;
    }

    .section {
        padding: 55px 6%;
    }

    .section h2 {
        font-size: 27px;
    }

    .sobre p {
        font-size: 16px;
    }

    .project-card {
        padding: 24px;
    }

    .project-card h3 {
        font-size: 20px;
    }

    .project-card p {
        font-size: 16px;
    }

    .devlab-brand {
        font-size: 23px;
    }

    .devlab-symbol {
        width: 43px;
        height: 43px;
        font-size: 23px;
    }

    .contact-info {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-link {
        width: 100%;
    }
}

/* =========================================
ACESSIBILIDADE E MOVIMENTO REDUZIDO
========================================= */

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

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