:root {
    --bg: #0b0b0d;
    --bg-soft: #141418;
    --surface: #1a1a1f;
    --ink: #f0f0f2;
    --ink-soft: #b0b0b8;
    --ink-faint: #6e6e78;
    --line: #2a2a30;
    --line-strong: #3c3c44;

    --accent: #0066ff;
    --accent-ink: #ffffff;
    --accent-soft: #2d2a50;
    --accent-dim: rgba(107, 99, 255, 0.16);

    --success: #3dd68c;
    --success-soft: #1d3a2e;
    --warning: #f0b34b;
    --warning-soft: #3d2f18;

    --whatsapp: #25d366;

    /* --- Tipografia --- */
    --font-display: 'Fraunces', 'Georgia', serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* --- Forma --- */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 18px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 12px 28px -8px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 24px 60px -12px rgba(0, 0, 0, 0.7);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --container-w: 1180px;
}

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

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

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

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

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

a {
    color: inherit;
}

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

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 2px;
}

/* =========================================================
   MOTION LAYER — grain, progresso de scroll
   ========================================================= */

.grain-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    opacity: 0.025;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: 0 50%;
    z-index: 1001;
    will-change: transform;
}

.container {
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 128px 0;
    position: relative;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--ink);
}

p {
    color: var(--ink-soft);
}

.highlight {
    font-style: italic;
    font-weight: 600;
    color: var(--ink);
    background-image: linear-gradient(180deg, transparent 62%, var(--accent-soft) 62%);
    padding: 0 0.05em;
}

/* =========================================================
   REVEAL AO SCROLL
   ========================================================= */

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 3s cubic-bezier(0.16, 1, 0.3, 1), transform 3s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(var(--i, 0) * 70ms);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-image {
    clip-path: inset(0 0 0 100%);
    transition: clip-path 0.9s cubic-bezier(0.65, 0, 0.15, 1);
    transition-delay: calc(var(--i, 0) * 70ms);
}

.reveal-image.is-visible {
    clip-path: inset(0 0 0 0%);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.94);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(var(--i, 0) * 60ms);
}

.reveal-scale.is-visible {
    opacity: 1;
    transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal-image,
    .reveal-scale {
        opacity: 1 !important;
        transform: none !important;
        clip-path: none !important;
        transition: none !important;
    }
}

.section-header {
    margin-bottom: 64px;
    min-width: 100%;
    display: grid;
    place-items: center;
}

.section-header.center {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-subtitle {
    display: block;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 17px;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(2rem, 3.4vw, 2.75rem);
    margin-bottom: 18px;
    font-weight: 600;
}

.section-description {
    font-size: 1.05rem;
    color: var(--ink-soft);
    line-height: 1.75;
}

.section-header.center .section-description {
    margin: 0 auto;
}

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

.header {
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 22px 0;
    transition: var(--transition);
    background: rgba(11, 11, 13, 0);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
}

/* .header.scrolled {
    padding: 14px 0;
    background: rgba(11, 11, 13, 0.94);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
} */

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    justify-content: center;
}

.nav-logo {
    display: flex;
    align-items: center;
}

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

.logo-code img {
    height: 150px;
    width: auto;
    filter: brightness(0) invert(1);
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 50px;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.logo-suffix {
    color: var(--accent);
    font-style: italic;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 36px;
}

.nav-link {
    color: var(--ink-soft);
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 15px;
    position: relative;
    padding: 6px 0;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: var(--ink);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--ink);
    font-weight: 600;
}

.nav-btns {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-toggle {
    display: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--ink);
}

.nav-close {
    display: none;
}

.btn-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    background: var(--ink);
    color: var(--bg);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    border: none;
}

.btn-contact:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* =========================================================
   BOTÕES
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 28px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border-radius: 60px;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: #5a52e6;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    border-color: var(--ink);
    color: var(--ink);
}

.btn-secondary:hover {
    background: var(--ink);
    color: var(--bg);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border-color: var(--line-strong);
    color: var(--ink);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-small {
    padding: 9px 18px;
    font-size: 13.5px;
}

.btn-block {
    width: 100%;
}

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

.home {
    min-height: 92vh;
    display: flex;
    align-items: center;
    padding-top: 220px;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

.home-container {
    position: relative;
    z-index: 1;
}

.home-title .line {
    display: block;
    overflow: hidden;
}

.home-title .line-inner {
    display: flex;
    justify-content: center;
    transform: translateY(110%);
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(var(--i, 0) * 120ms);
}

.home.loaded .home-title .line-inner {
    transform: translateY(0);
}

.home-description,
.home-btns,
.home-stats {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.home.loaded .home-description {
    transition-delay: 0.55s;
}

.home.loaded .home-btns {
    transition-delay: 0.68s;
}

.home.loaded .home-stats {
    transition-delay: 0.8s;
}

.home.loaded .home-description,
.home.loaded .home-btns,
.home.loaded .home-stats {
    opacity: 1;
    transform: translateY(0);
}

.home-visual {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.5s;
}

.home.loaded .home-visual {
    opacity: 0.8;
    transform: translateY(0) scale(1);
}

.home-content {
    padding: 40vh 0 30vh 0;
}

@media (prefers-reduced-motion: reduce) {

    .home-title .line-inner,
    .home-description,
    .home-btns,
    .home-stats,
    .home-visual {
        transform: none !important;
        opacity: 1 !important;
        transition: none !important;
    }
}

.home-title {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 4.8vw, 4rem);
    margin-bottom: 24px;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.home-description {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--ink-soft);
    margin-bottom: 34px;
    line-height: 1.75;
    max-width: 480px;
}

.home-btns {
    display: flex;
    gap: 16px;
    margin-bottom: 56px;
}

.home-stats {
    display: flex;
    gap: 36px;
}

.stat {
    display: flex;
    flex-direction: column;
    position: relative;
    padding-left: 18px;
    border-left: 2px solid var(--line);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1;
}

.stat-label {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--ink-soft);
    margin-top: 6px;
}

.home-visual {
    position: relative;
    height: auto;
    margin-top: 9%;
    display: flex;
    gap: 25px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.floating-card {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line);
    overflow: hidden;
    animation: float 7s ease-in-out infinite;
    flex: 1;
    min-width: 200px;
}

.code-card {
    animation-delay: 0s;
}

.design-card {
    animation-delay: 1.5s;
}

.design-card-right {
    animation-delay: 1s;
}

@keyframes float {

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

    50% {
        transform: translateY(-14px);
    }
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 18px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
}

.card-header span {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-faint);
    font-weight: 500;
}

.dots {
    display: flex;
    gap: 7px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red {
    background: #ec6a5e;
}

.dot.yellow {
    background: #f4bf4f;
}

.dot.green {
    background: #61c454;
}

.card-content {
    padding: 20px;
}

.card-content pre {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-soft);
    overflow-x: hidden;
    line-height: 1.6;
    white-space: pre-wrap;
}

.card-content code .keyword {
    color: var(--accent);
    font-weight: 600;
}

.card-content code .string {
    color: var(--success);
}

.card-content code .comment {
    color: var(--ink-faint);
}

.design-preview {
    height: 290px;
    background: var(--surface);
}

.browser-bar {
    padding: 11px;
    background: var(--bg-soft);
    display: flex;
    justify-content: flex-start;
    padding-left: 16px;
    border-bottom: 1px solid var(--line);
}

.browser-dots {
    display: flex;
    gap: 6px;
}

.browser-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--line-strong);
}

.design-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px;
}

.design-element {
    height: 10px;
    background: var(--bg-soft);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.design-element::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--accent-soft), transparent);
    animation: shimmer 3.2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.design-element.e1 {
    width: 80%;
}

.design-element.e2 {
    width: 55%;
}

.design-element.e3 {
    width: 92%;
}

/* =========================================================
   MARQUEE
   ========================================================= */

.marquee {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    overflow: hidden;
    padding: 22px 0;
}

.marquee-track {
    display: flex;
    width: max-content;
    gap: 56px;
    animation: marquee 28s linear infinite;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--ink-faint);
    white-space: nowrap;
}

.marquee-item i {
    color: var(--accent);
    font-size: 15px;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track {
        animation: none;
    }
}

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

.about {
    background: var(--bg-soft);
}

.about-container {
    display: grid;
    align-items: start;
    place-content: center;
    text-align: center;
}

.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1 / 1.05;
    margin: 0 auto;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    position: relative;
    z-index: 2;
}

.image-frame {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    top: 16px;
    left: -16px;
    z-index: 1;
}

.image-dots {
    position: absolute;
    width: 90px;
    height: 90px;
    background-image: radial-gradient(var(--line-strong) 1.5px, transparent 2px);
    background-size: 14px 14px;
    bottom: -24px;
    right: -24px;
    z-index: 0;
}

.tech-stack {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 40px;
    flex-wrap: wrap;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    transition: var(--transition);
}

.tech-item:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.tech-item i {
    font-size: 20px;
    color: var(--accent);
}

.tech-item span {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-soft);
    font-weight: 500;
}

.about-title {
    font-family: var(--font-display);
    font-size: 1.9rem;
    margin-bottom: 22px;
    font-weight: 600;
    line-height: 1.25;
}

.about-text p {
    margin-bottom: 16px;
    color: var(--ink-soft);
    font-family: var(--font-body);
    line-height: 1.8;
    max-width: 620px;
}

.about-text strong {
    color: var(--ink);
}

.about-features {
    display: grid;
    gap: 14px;
    margin: 32px 0 36px;
}

.feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px;
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    transition: var(--transition);
}

.feature:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-soft);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    color: var(--accent);
}

.feature-content h4 {
    margin-bottom: 4px;
    font-size: 16px;
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--ink);
}

.feature-content p {
    color: var(--ink-soft);
    font-size: 14px;
    font-family: var(--font-body);
    line-height: 1.6;
}

/* =========================================================
   SKILLS
   ========================================================= */

.skills-container {
    display: grid;
    place-items: center;
    margin-top: 10px;
    margin-top: 60px;
}

.service-list {
    display: grid;
    gap: 22px;
    margin-bottom: 32px;
}

.service-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.service-item i {
    color: var(--accent);
    font-size: 19px;
    margin-top: 3px;
    flex-shrink: 0;
    width: 22px;
    text-align: center;
}

.service-item h4 {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--ink);
    margin-bottom: 4px;
}

.service-item p {
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.65;
    max-width: 480px;
}

.skills-title {
    font-family: var(--font-display);
    font-size: 1.9rem;
    margin-bottom: 22px;
    font-weight: 600;
    text-align: center;
    width: 100%;
}

.skills-description {
    color: var(--ink-soft);
    font-family: var(--font-body);
    line-height: 2;
    font-size: 14.5px;
    padding: 22px 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

.skills-description strong {
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.02em;
}

.skill-radar {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 420px;
}

.radar-circle {
    position: relative;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
}

.radar-circle::before {
    content: '';
    position: absolute;
    width: 78%;
    height: 78%;
    border-radius: 50%;
    border: 1px solid var(--line);
}

.radar-circle::after {
    content: '';
    position: absolute;
    width: 56%;
    height: 56%;
    border-radius: 50%;
    border: 1px solid var(--line);
}

.radar-line {
    position: absolute;
    width: 78%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent) 85%);
    animation: rotate 12s linear infinite;
    transform-origin: center;
}

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

    100% {
        transform: rotate(360deg);
    }
}

.skill-point {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(var(--angle)) translate(130px) rotate(calc(-1 * var(--angle)));
}

.point {
    width: 13px;
    height: 13px;
    background: var(--surface);
    border: 2px solid var(--accent);
    border-radius: 50%;
    position: relative;
}

.point::after {
    content: '';
    position: absolute;
    width: 26px;
    height: 26px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.35;
    animation: pulse 2.4s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.35;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.35);
        opacity: 0;
    }
}

.skill-point span {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-soft);
    font-weight: 500;
}

/* =========================================================
   PROJECTS
   ========================================================= */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

.project-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--line);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    position: relative;
}

.project-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

@media (prefers-reduced-motion: reduce) {
    .project-card {
        transition: border-color 0.25s ease, box-shadow 0.25s ease;
        transform: none !important;
    }
}

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--bg-soft);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.04);
}

.project-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(11, 11, 13, 0.85);
    color: #fff;
    padding: 6px 13px;
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
    backdrop-filter: blur(6px);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 11, 13, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    width: 52px;
    height: 52px;
    background: var(--surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    font-size: 19px;
    text-decoration: none;
    transition: var(--transition);
}

.project-link:hover {
    background: var(--accent);
    color: #fff;
    transform: scale(1.08);
}

.project-content {
    padding: 24px;
}

.project-title {
    font-family: var(--font-display);
    font-size: 1.28rem;
    margin-bottom: 9px;
    font-weight: 600;
}

.project-description {
    color: var(--ink-soft);
    margin-bottom: 18px;
    font-size: 14px;
    font-family: var(--font-body);
    line-height: 1.65;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 16px;
}

.project-tech span {
    background: var(--bg-soft);
    color: var(--ink-soft);
    padding: 4px 11px;
    border-radius: 30px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 500;
    border: 1px solid var(--line);
}

.project-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--ink-soft);
    font-family: var(--font-body);
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.online {
    background: var(--success);
}

.status-dot.developing {
    background: var(--warning);
}

.status-dot.planning {
    background: var(--accent);
}

.project-btns {
    display: flex;
    gap: 10px;
}

/* =========================================================
   CONTACT
   ========================================================= */

.contact {
    background: var(--bg-soft);
}

.contact .section-subtitle {
    color: var(--accent);
}

.contact .section-title,
.contact .section-description {
    color: var(--ink);
}

.contact .section-description {
    color: var(--ink-soft);
}

.contact .highlight {
    color: var(--ink);
    background-image: linear-gradient(180deg, transparent 62%, var(--accent-soft) 62%);
}

.contact-container {
    display: block;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.contact-card {
    background: var(--surface);
    border-radius: 50px;
    padding: 40px;
    border: 1px solid var(--line);
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.contact-card.featured {
    background: var(--accent);
    border-color: var(--accent);
}

.contact-card.featured .contact-content h4 {
    color: #fff;
}

.contact-card.featured .contact-content p {
    color: rgba(255, 255, 255, 0.8);
}

.contact-card.featured .contact-link {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.contact-card.featured .contact-link:hover {
    border-bottom-color: #fff;
}

.contact-icon {
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    margin-bottom: 20px;
    color: var(--ink);
}

.contact-card.featured .contact-icon {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.contact-content h4 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--ink);
}

.contact-content p {
    color: var(--ink-soft);
    font-size: 13.5px;
    margin-bottom: 14px;
    font-family: var(--font-body);
    line-height: 1.6;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14.5px;
    padding-bottom: 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition);
}

.contact-link:hover {
    border-color: var(--ink);
}

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

.footer {
    background: var(--bg);
    padding: 60px 0 28px;
    border-top: 1px solid var(--line);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 44px;
}

.footer-logo .logo-box {
    margin-bottom: 18px;
}

.footer-logo .logo-text {
    color: var(--ink);
}

.footer-description {
    color: var(--ink-soft);
    font-size: 13.5px;
    line-height: 1.8;
    font-family: var(--font-body);
}

.footer-links h4,
.footer-tech h4 {
    font-family: var(--font-body);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 20px;
    color: var(--ink-faint);
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 11px;
}

.footer-links a {
    color: var(--ink-soft);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
    font-family: var(--font-body);
}

.footer-links a:hover {
    color: var(--ink);
}

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

.tech-tags span {
    background: var(--bg-soft);
    color: var(--ink-soft);
    padding: 6px 13px;
    border-radius: 30px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    border: 1px solid var(--line);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 26px;
    border-top: 1px solid var(--line);
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--ink-faint);
    flex-wrap: wrap;
    gap: 12px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    background: var(--bg-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--line);
}

.footer-social a:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
    color: #fff;
}

/* =========================================================
   BACK TO TOP
   ========================================================= */

.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 46px;
    height: 46px;
    background: var(--surface);
    color: var(--ink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 17px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--line);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* =========================================================
   PRELOADER
   ========================================================= */

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

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

.loader {
    display: flex;
    gap: 8px;
}

.loader-square {
    width: 14px;
    height: 44px;
    background: var(--accent);
    border-radius: 3px;
    animation: loader 1.2s cubic-bezier(0, 0.5, 0.5, 1) infinite;
}

.loader-square:nth-child(1) {
    animation-delay: -0.24s;
}

.loader-square:nth-child(2) {
    animation-delay: -0.12s;
}

.loader-square:nth-child(3) {
    animation-delay: 0s;
}

.loader-square:nth-child(4) {
    animation-delay: 0.12s;
}

@keyframes loader {

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

    50% {
        transform: scaleY(1.7);
    }
}

/* =========================================================
   RESPONSIVO - COMPLETO
   ========================================================= */

/* TABLETS E TELAS MÉDIAS (até 1200px) */
@media screen and (max-width: 1200px) {
    .container {
        max-width: 960px;
        padding: 0 20px;
    }

    .home-title {
        font-size: clamp(2.4rem, 4.2vw, 3.6rem);
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 24px;
    }

    .contact-info {
        gap: 16px;
    }
}

/* TABLETS (992px) */
@media screen and (max-width: 992px) {
    .logo-text {
        font-size: 36px;
    }

    .logo-code img {
        height: 110px;
    }

    .nav-list {
        gap: 24px;
    }

    .nav-link {
        font-size: 14px;
    }

    .btn-contact {
        padding: 9px 18px;
        font-size: 13px;
    }

    /* HOME */
    .home {
        min-height: auto;
        padding-top: 140px;
        padding-bottom: 60px;
    }

    .home-container {
        gap: 40px;
    }

    .home-content {
        padding: 20vh 0 15vh 0;
    }

    .home-title {
        font-size: clamp(2.2rem, 4vw, 3.2rem);
        text-align: center;
    }

    .home-description {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        max-width: 560px;
    }

    .home-btns {
        justify-content: center;
        flex-wrap: wrap;
    }

    .home-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 24px;
    }

    .home-visual {
        height: auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        margin-top: 0;
        margin-bottom: 30px;
    }

    .floating-card {
        flex: 0 1 calc(50% - 20px);
        min-width: 250px;
        max-width: 380px;
        margin: 0 auto;
    }

    .code-card {
        order: 1;
    }

    .design-card {
        order: 2;
    }

    .design-card-right {
        order: 3;
        flex: 0 1 100%;
        max-width: 380px;
        display: none;
    }

    /* ABOUT */
    .about {
        padding: 80px 0;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        place-items: center;
    }

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

    .about-text p {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .about-title {
        font-size: 1.7rem;
        text-align: center;
    }

    .image-wrapper {
        max-width: 280px;
    }

    .image-frame {
        left: 0;
        top: 12px;
    }

    .tech-stack {
        max-width: 100%;
    }

    .about-features {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .feature {
        text-align: left;
    }

    /* SKILLS */
    .skills {
        padding: 80px 0;
    }

    .skills-container {
        gap: 40px;
    }

    .skills-title {
        font-size: 1.7rem;
        text-align: center;
    }

    .service-list {
        max-width: 500px;
        margin: 0 auto;
    }

    .service-item {
        text-align: left;
    }

    .service-item p {
        max-width: 100%;
    }

    .skills-description {
        text-align: left;
    }

    .skill-radar {
        height: 280px;
    }

    .radar-circle {
        width: 220px;
        height: 220px;
    }

    .skill-point {
        transform: translate(-50%, -50%) rotate(var(--angle)) translate(110px) rotate(calc(-1 * var(--angle)));
    }

    /* PROJECTS */
    .projects {
        padding: 80px 0;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 24px;
    }

    .project-image {
        height: 180px;
    }

    .project-content {
        padding: 20px;
    }

    .project-title {
        font-size: 1.15rem;
    }

    /* CONTACT */
    .contact {
        padding: 80px 0;
    }

    .contact-info {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .contact-card {
        padding: 30px 24px;
        border-radius: 30px;
    }

    /* SECTION HEADERS */
    .section-header {
        max-width: 100%;
        margin-bottom: 48px;
        text-align: center;
    }

    .section-header.center {
        text-align: center;
    }

    .section-title {
        font-size: clamp(1.8rem, 3vw, 2.4rem);
    }

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

    /* FOOTER */
    .footer {
        padding: 50px 0 24px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

/* TABLETS PEQUENOS E LANDSCAPE MOBILE (768px) */
@media screen and (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    .header.scrolled {
        padding: 12px 0;
    }

    .logo-text {
        font-size: 55px;
    }

    .logo-code img {
        height: 130px;
    }

    .nav-list {
        display: none;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 380px;
        height: 100vh;
        height: 100dvh;
        background: var(--surface);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        padding: 80px 28px 30px;
        box-shadow: var(--shadow-lg);
        border-left: 1px solid var(--line);
        display: flex;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-list {
        display: flex;
        flex-direction: column;
        gap: 4px;
        text-align: left;
        margin-top: 20px;
    }

    .nav-link {
        font-size: 18px;
        padding: 14px 0;
        display: block;
        border-bottom: 1px solid var(--line);
        font-weight: 500;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link:hover {
        color: var(--accent);
    }

    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: var(--bg-soft);
        border-radius: var(--radius-sm);
        border: 1px solid var(--line);
        font-size: 20px;
        cursor: pointer;
        color: var(--ink);
        transition: var(--transition);
    }

    .nav-toggle:hover {
        background: var(--accent-soft);
        border-color: var(--accent);
    }

    .nav-close {
        display: flex;
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 24px;
        cursor: pointer;
        color: var(--ink);
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        background: var(--bg-soft);
        border-radius: var(--radius-sm);
        border: 1px solid var(--line);
        transition: var(--transition);
    }

    .nav-close:hover {
        background: var(--accent-soft);
        border-color: var(--accent);
    }

    .nav-btns {
        gap: 12px;
    }

    .btn-contact {
        padding: 10px;
        width: 44px;
        height: 44px;
        justify-content: center;
        border-radius: var(--radius-sm);
    }

    .btn-contact span {
        display: none;
    }

    .btn-contact i {
        font-size: 18px;
        margin: 0;
    }

    /* HOME */
    .home {
        padding-top: 100px;
        padding-bottom: 40px;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .home-content {
        padding: 45vh 0 45vh 0;
    }

    .home-title {
        font-size: clamp(2rem, 5vw, 2.6rem);
        margin-top: 0;
        margin-bottom: 16px;
    }

    .home-title .line-inner {
        justify-content: center;
        font-size: clamp(3.8rem, 4.5vw, 2.4rem);
    }

    .home-description {
        font-size: 1rem;
        margin-bottom: 28px;
        padding: 0 10px;
    }

    .home-btns {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-bottom: 40px;
        padding: 0 10px;
    }

    .home-btns .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }

    .home-stats {
        flex-wrap: wrap;
        gap: 16px;
        justify-content: center;
    }

    .stat {
        padding-left: 14px;
        min-width: 80px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 12px;
    }

    .home-visual {
        margin-top: 160px;
    }

    /* ABOUT */
    .about {
        padding: 60px 0;
    }

    .about-container {
        gap: 32px;
    }

    .about-title {
        font-size: 1.5rem;
    }

    .about-text p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .image-wrapper {
        max-width: 240px;
    }

    .image-frame {
        top: 10px;
        left: 0;
    }

    .image-dots {
        width: 60px;
        height: 60px;
        background-size: 12px 12px;
        bottom: -16px;
        right: -16px;
    }

    .tech-stack {
        gap: 10px;
        margin-top: 28px;
    }

    .tech-item {
        padding: 10px 14px;
        min-width: 50px;
    }

    .tech-item i {
        font-size: 18px;
    }

    .tech-item span {
        font-size: 10px;
    }

    .about-features {
        gap: 12px;
        margin: 24px 0 28px;
    }

    .feature {
        padding: 14px 16px;
        gap: 14px;
    }

    .feature-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .feature-content h4 {
        font-size: 15px;
    }

    .feature-content p {
        font-size: 13px;
    }

    /* SKILLS */
    .skills {
        padding: 60px 0;
    }

    .skills-container {
        gap: 32px;
        margin-top: 0;
    }

    .skills-title {
        font-size: 1.5rem;
    }

    .service-list {
        gap: 18px;
    }

    .service-item {
        gap: 14px;
    }

    .service-item i {
        font-size: 17px;
        width: 20px;
    }

    .service-item h4 {
        font-size: 0.95rem;
    }

    .service-item p {
        font-size: 13px;
        line-height: 1.6;
    }

    .skills-description {
        font-size: 13px;
        padding: 18px 20px;
        line-height: 1.8;
    }

    .skills-description strong {
        font-size: 11px;
    }

    .skill-radar {
        height: 240px;
    }

    .radar-circle {
        width: 190px;
        height: 190px;
    }

    .skill-point {
        transform: translate(-50%, -50%) rotate(var(--angle)) translate(95px) rotate(calc(-1 * var(--angle)));
    }

    .skill-point span {
        font-size: 10px;
        top: -24px;
    }

    .point {
        width: 12px;
        height: 12px;
    }

    .point::after {
        width: 22px;
        height: 22px;
    }

    /* PROJECTS */
    .projects {
        padding: 60px 0;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-card {
        max-width: 500px;
        margin: 0 auto;
    }

    .project-image {
        height: 160px;
    }

    .project-badge {
        font-size: 10px;
        padding: 4px 10px;
        top: 10px;
        left: 10px;
    }

    .project-content {
        padding: 18px;
    }

    .project-title {
        font-size: 1.1rem;
    }

    .project-description {
        font-size: 13px;
        line-height: 1.6;
    }

    .project-tech span {
        font-size: 10px;
        padding: 3px 10px;
    }

    .project-btns {
        flex-direction: column;
        gap: 8px;
    }

    .project-btns .btn {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
    }

    .project-status {
        font-size: 12px;
    }

    /* CONTACT */
    .contact {
        padding: 60px 0;
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: 14px;
        max-width: 480px;
        margin: 0 auto;
    }

    .contact-card {
        padding: 24px 20px;
        border-radius: 24px;
    }

    .contact-card.featured {
        order: -1;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 17px;
        margin-bottom: 16px;
    }

    .contact-content h4 {
        font-size: 1.05rem;
        margin-bottom: 6px;
    }

    .contact-content p {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .contact-link {
        font-size: 13px;
    }

    /* SECTION HEADERS */
    .section-header {
        margin-bottom: 36px;
    }

    .section-subtitle {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .section-title {
        font-size: clamp(1.6rem, 4vw, 2rem);
        margin-bottom: 12px;
    }

    .section-description {
        font-size: 0.95rem;
        line-height: 1.7;
        padding: 0 10px;
    }

    /* FOOTER */
    .footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
    }

    .footer-logo .logo-box {
        justify-content: center;
    }

    .footer-logo .logo-text {
        font-size: 28px;
    }

    .footer-description {
        font-size: 13px;
        line-height: 1.7;
        max-width: 400px;
        margin: 0 auto;
    }

    .footer-links h4,
    .footer-tech h4 {
        font-size: 13px;
        margin-bottom: 16px;
    }

    .footer-links ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 16px;
    }

    .footer-links li {
        margin-bottom: 0;
    }

    .footer-links a {
        font-size: 13px;
    }

    .tech-tags {
        justify-content: center;
    }

    .tech-tags span {
        font-size: 10px;
        padding: 4px 11px;
    }

    .footer-social {
        justify-content: center;
        margin-top: 16px;
    }

    .footer-social a {
        width: 42px;
        height: 42px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding-top: 20px;
        font-size: 12px;
    }

    /* BACK TO TOP */
    .back-to-top {
        width: 44px;
        height: 44px;
        bottom: 20px;
        right: 20px;
        font-size: 16px;
    }
}

/* MOBILE GRANDE (576px) */
@media screen and (max-width: 576px) {
    .container {
        padding: 0 16px;
    }

    section {
        padding: 50px 0;
    }

    .logo-text {
        font-size: 40px;
    }

    .logo-code img {
        height: 100px;
    }

    .nav-toggle {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .btn-contact {
        width: 40px;
        height: 40px;
        padding: 8px;
    }

    .btn-contact i {
        font-size: 16px;
    }

    .nav-menu {
        padding: 70px 20px 24px;
        max-width: 320px;
    }

    .nav-link {
        font-size: 16px;
        padding: 12px 0;
    }

    .nav-close {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    /* HOME */
    .home {
        padding-top: 80px;
        padding-bottom: 30px;
    }

    .home-content {
        padding: 10vh 0 8vh 0;
    }

    .home-title {
        font-size: clamp(1.6rem, 4.5vw, 2rem);
    }

    .home-title .line-inner {
        font-size: clamp(1.4rem, 4vw, 1.8rem);
    }

    .home-description {
        font-size: 0.9rem;
        padding: 0 4px;
    }

    .home-btns {
        padding: 0 4px;
    }

    .home-btns .btn {
        padding: 12px 16px;
        font-size: 14px;
    }

    .stat {
        min-width: 70px;
        padding-left: 12px;
    }

    .stat-number {
        font-size: 1.3rem;
    }

    .stat-label {
        font-size: 11px;
    }

    .home-stats {
        gap: 12px;
    }

    /* ABOUT */
    .about {
        padding: 50px 0;
        min-height: 70vh;
        display: grid;
        place-items: center;
    }

    .about-container {
        gap: 24px;
    }

    .about-title {
        font-size: 1.3rem;
        margin-bottom: 16px;
    }

    .about-text p {
        font-size: 0.88rem;
        line-height: 1.65;
        margin-bottom: 12px;
    }

    .image-wrapper {
        max-width: 200px;
    }

    .image-frame {
        top: 8px;
    }

    .image-dots {
        width: 50px;
        height: 50px;
        background-size: 10px 10px;
        bottom: -12px;
        right: -12px;
    }

    .tech-stack {
        gap: 8px;
        margin-top: 20px;
    }

    .tech-item {
        padding: 8px 12px;
    }

    .tech-item i {
        font-size: 16px;
    }

    .tech-item span {
        font-size: 9px;
    }

    .feature {
        padding: 12px 14px;
        gap: 12px;
    }

    .feature-icon {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .feature-content h4 {
        font-size: 14px;
    }

    .feature-content p {
        font-size: 12px;
    }

    /* SKILLS */
    .skills {
        padding: 50px 0;
        display: grid;
        min-height: 100vh;
        place-items: center;
    }

    .skills-title {
        font-size: 1.3rem;
        margin-bottom: 16px;
    }

    .service-list {
        gap: 14px;
    }

    .service-item {
        gap: 12px;
    }

    .service-item i {
        font-size: 15px;
        width: 18px;
    }

    .service-item h4 {
        font-size: 0.88rem;
    }

    .service-item p {
        font-size: 12px;
        line-height: 1.55;
    }

    .skills-description {
        font-size: 12px;
        padding: 16px;
        line-height: 1.7;
    }

    .skills-description strong {
        font-size: 10px;
    }

    .skill-radar {
        height: 200px;
    }

    .radar-circle {
        width: 200px;
        height: 200px;
    }

    .skill-point {
        transform: translate(-50%, -50%) rotate(var(--angle)) translate(80px) rotate(calc(-1 * var(--angle)));
    }

    .skill-point span {
        font-size: 9px;
        top: -20px;
    }

    .point {
        width: 10px;
        height: 10px;
        border-width: 1.5px;
    }

    .point::after {
        width: 18px;
        height: 18px;
    }

    /* PROJECTS */
    .projects {
        padding: 50px 0;
    }

    .projects-grid {
        gap: 16px;
    }

    .project-image {
        height: 140px;
    }

    .project-content {
        padding: 16px;
    }

    .project-title {
        font-size: 1rem;
        margin-bottom: 6px;
    }

    .project-description {
        font-size: 12px;
        margin-bottom: 14px;
    }

    .project-tech {
        gap: 5px;
        margin-bottom: 12px;
    }

    .project-tech span {
        font-size: 9px;
        padding: 3px 8px;
    }

    .project-status {
        font-size: 11px;
        margin-bottom: 14px;
    }

    .status-dot {
        width: 6px;
        height: 6px;
    }

    .project-btns .btn {
        font-size: 13px;
        padding: 10px 14px;
    }

    .project-link {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }

    /* CONTACT */
    .contact {
        padding: 50px 0;
    }

    .contact-info {
        gap: 12px;
        max-width: 100%;
    }

    .contact-card {
        padding: 20px 16px;
        border-radius: 20px;
    }

    .contact-icon {
        width: 36px;
        height: 36px;
        font-size: 15px;
        margin-bottom: 12px;
    }

    .contact-content h4 {
        font-size: 0.95rem;
    }

    .contact-content p {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .contact-link {
        font-size: 12px;
    }

    /* SECTION HEADERS */
    .section-header {
        margin-bottom: 28px;
    }

    .section-subtitle {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .section-title {
        font-size: clamp(1.4rem, 3.5vw, 1.7rem);
        margin-bottom: 10px;
    }

    .section-description {
        font-size: 0.88rem;
        line-height: 1.6;
        padding: 0 4px;
    }

    /* FOOTER */
    .footer {
        padding: 32px 0 16px;
    }

    .footer-content {
        gap: 24px;
    }

    .footer-logo .logo-text {
        font-size: 24px;
    }

    .footer-description {
        font-size: 12px;
        line-height: 1.6;
        max-width: 100%;
    }

    .footer-links h4,
    .footer-tech h4 {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .footer-links a {
        font-size: 12px;
    }

    .tech-tags span {
        font-size: 9px;
        padding: 3px 10px;
    }

    .footer-social a {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .footer-bottom {
        font-size: 11px;
    }

    /* BACK TO TOP */
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 16px;
        right: 16px;
        font-size: 14px;
    }

    .btn {
        border-radius: 40px;
        padding: 12px 20px;
        font-size: 14px;
    }

    .btn-small {
        padding: 8px 14px;
        font-size: 12px;
    }
}

/* MOBILE PEQUENO (480px) */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    section {
        padding: 40px 0;
    }

    .logo-text {
        font-size: 45px;
    }

    .logo-code img {
        height: 90px;
    }

    .home-title {
        font-size: clamp(1.4rem, 4vw, 1.6rem);
    }

    .home-title .line-inner {
        font-size: clamp(2.8rem, 3.5vw, 1.4rem);
    }

    .home-content {
        padding: 45vh 0 45vh 0;
    }

    .home-description {
        font-size: 0.85rem;
    }

    .home-btns .btn {
        font-size: 13px;
        padding: 10px 14px;
    }

    .stat-number {
        font-size: 1.1rem;
    }

    .stat-label {
        font-size: 10px;
    }

    .about-title {
        font-size: 1.2rem;
    }

    .about-text p {
        font-size: 0.85rem;
    }

    .image-wrapper {
        max-width: 160px;
    }

    .image-frame {
        top: 6px;
    }

    .image-dots {
        width: 40px;
        height: 40px;
        background-size: 8px 8px;
        bottom: -10px;
        right: -10px;
    }

    .tech-item {
        padding: 6px 10px;
    }

    .tech-item i {
        font-size: 14px;
    }

    .tech-item span {
        font-size: 8px;
    }

    .skills-title {
        font-size: 1.2rem;
    }

    .service-item h4 {
        font-size: 0.85rem;
    }

    .service-item p {
        font-size: 11px;
    }

    .service-item i {
        font-size: 14px;
        width: 16px;
    }

    .skill-radar {
        height: 300px;
    }

    .skill-point {
        transform: translate(-50%, -50%) rotate(var(--angle)) translate(65px) rotate(calc(-1 * var(--angle)));
    }

    .skill-point span {
        font-size: 8px;
        top: -18px;
    }

    .point {
        width: 8px;
        height: 8px;
        border-width: 1px;
    }

    .point::after {
        width: 14px;
        height: 14px;
    }

    .project-image {
        height: 120px;
    }

    .project-content {
        padding: 14px;
    }

    .project-title {
        font-size: 0.95rem;
    }

    .project-description {
        font-size: 11px;
    }

    .project-tech span {
        font-size: 8px;
        padding: 2px 7px;
    }

    .project-status {
        font-size: 10px;
    }

    .project-btns .btn {
        font-size: 12px;
        padding: 8px 12px;
    }

    .contact-card {
        padding: 16px 14px;
        border-radius: 16px;
    }

    .contact-icon {
        width: 32px;
        height: 32px;
        font-size: 13px;
        margin-bottom: 10px;
    }

    .contact-content h4 {
        font-size: 0.85rem;
    }

    .contact-content p {
        font-size: 11px;
    }

    .contact-link {
        font-size: 11px;
    }

    .section-title {
        font-size: clamp(1.2rem, 3vw, 1.4rem);
    }

    .section-description {
        font-size: 0.82rem;
    }

    .section-subtitle {
        font-size: 12px;
    }

    .footer-logo .logo-text {
        font-size: 20px;
    }

    .footer-description {
        font-size: 11px;
    }

    .footer-links a {
        font-size: 11px;
    }

    .tech-tags span {
        font-size: 8px;
        padding: 2px 8px;
    }

    .footer-social a {
        width: 34px;
        height: 34px;
        font-size: 12px;
    }

    .back-to-top {
        width: 36px;
        height: 36px;
        bottom: 12px;
        right: 12px;
        font-size: 12px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 13px;
        border-radius: 30px;
    }

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

    .design-preview {
        display: none;
    }

    .design-card {
        display: none;
    }
}

/* TELAS MUITO PEQUENAS (até 360px) */
@media screen and (max-width: 360px) {
    .container {
        padding: 0 10px;
    }

    .logo-text {
        font-size: 16px;
    }

    .logo-code img {
        height: 40px;
    }

    .home-title {
        font-size: clamp(1.2rem, 3.5vw, 1.3rem);
    }

    .home-title .line-inner {
        font-size: clamp(1rem, 3vw, 1.1rem);
    }

    .home-description {
        font-size: 0.8rem;
    }

    .home-btns .btn {
        font-size: 12px;
        padding: 8px 12px;
    }

    .stat-number {
        font-size: 1rem;
    }

    .stat-label {
        font-size: 9px;
    }

    .about-title {
        font-size: 1.1rem;
    }

    .about-text p {
        font-size: 0.8rem;
    }

    .image-wrapper {
        max-width: 140px;
    }

    .tech-item {
        padding: 4px 8px;
    }

    .tech-item i {
        font-size: 12px;
    }

    .tech-item span {
        font-size: 7px;
    }

    .skills-title {
        font-size: 1.1rem;
    }

    .service-item h4 {
        font-size: 0.8rem;
    }

    .service-item p {
        font-size: 10px;
    }

    .skill-radar {
        height: 130px;
    }

    .radar-circle {
        width: 110px;
        height: 110px;
    }

    .skill-point {
        transform: translate(-50%, -50%) rotate(var(--angle)) translate(55px) rotate(calc(-1 * var(--angle)));
    }

    .skill-point span {
        font-size: 7px;
        top: -16px;
    }

    .project-image {
        height: 100px;
    }

    .project-content {
        padding: 12px;
    }

    .project-title {
        font-size: 0.85rem;
    }

    .project-description {
        font-size: 10px;
    }

    .section-title {
        font-size: clamp(1rem, 2.8vw, 1.2rem);
    }

    .section-description {
        font-size: 0.78rem;
    }

    .contact-card {
        padding: 14px 12px;
        border-radius: 14px;
    }

    .contact-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .contact-content h4 {
        font-size: 0.8rem;
    }

    .contact-content p {
        font-size: 10px;
    }

    .contact-link {
        font-size: 10px;
    }

    .footer-logo .logo-text {
        font-size: 18px;
    }
}

/* ORIENTAÇÃO PAISAGEM EM MOBILE */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .home {
        padding-top: 80px;
        min-height: 100vh;
        min-height: 100dvh;
        padding-bottom: 20px;
    }

    .home-content {
        padding: 5vh 0 3vh 0;
    }

    .home-title {
        font-size: clamp(1.2rem, 3vw, 1.8rem);
    }

    .home-title .line-inner {
        font-size: clamp(1rem, 2.8vw, 1.6rem);
    }

    .home-description {
        font-size: 0.85rem;
        margin-bottom: 16px;
    }

    .home-btns {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 16px;
    }

    .home-btns .btn {
        width: auto;
        padding: 8px 16px;
        font-size: 12px;
    }

    .home-stats {
        gap: 16px;
    }

    .stat-number {
        font-size: 1.1rem;
    }

    .stat-label {
        font-size: 10px;
    }

    section {
        padding: 40px 0;
    }

    .about-container {
        gap: 20px;
    }

    .image-wrapper {
        max-width: 160px;
    }

    .skills-container {
        gap: 20px;
    }

    .skill-radar {
        height: 160px;
    }

    .radar-circle {
        width: 130px;
        height: 130px;
    }

    .skill-point {
        transform: translate(-50%, -50%) rotate(var(--angle)) translate(65px) rotate(calc(-1 * var(--angle)));
    }

    .project-image {
        height: 120px;
    }

    .projects-grid {
        gap: 16px;
    }
}

/* TELAS RETINA */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .grain-overlay {
        opacity: 0.02;
    }
}

/* =========================================================
   THREE.JS — Camada 3D
   (vem DEPOIS do responsivo global, ANTES de prefers-contrast)
   ========================================================= */

/* Wrapper genérico dos canvases 3D */
.three-canvas-wrap {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
    will-change: opacity;
}

.three-canvas-wrap.is-ready {
    opacity: 1;
}

.three-canvas-wrap canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none;
}

/* =========================================================
   HERO — empilhamento + partículas + nó
   ========================================================= */

.three-canvas-wrap[data-three="hero-particles"] {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0;
    transition: opacity 1.6s ease 0.4s;
}

.three-canvas-wrap[data-three="hero-particles"].is-ready {
    opacity: 0.55;
}

.three-canvas-wrap[data-three="hero-knot"] {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0;
    transition: opacity 1.4s ease 0.8s;
    pointer-events: none;
    mix-blend-mode: screen;
}

.three-canvas-wrap[data-three="hero-knot"].is-ready {
    opacity: 0.7;
}

/* Garante que TODO o conteúdo do hero fique acima do 3D */
.home-container,
.home-visual,
.home-content {
    position: relative;
    z-index: 2;
}

/* =========================================================
   ABOUT — esfera de partículas
   ========================================================= */

.about-container {
    position: relative;
}

.three-canvas-wrap[data-three="about-sphere"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 42%;
    height: 100%;
    z-index: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
    pointer-events: none;
}

.three-canvas-wrap[data-three="about-sphere"].is-ready {
    opacity: 0.85;
}

/* =========================================================
   SKILLS — cubo wireframe
   ========================================================= */

.skills .container {
    position: relative;
}

.three-canvas-wrap[data-three="skills-cube"] {
    position: absolute;
    top: 180px;
    right: 0;
    width: 42%;
    height: 460px;
    z-index: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
    pointer-events: none;
    mix-blend-mode: screen;
}

.three-canvas-wrap[data-three="skills-cube"].is-ready {
    opacity: 0.9;
}

/* =========================================================
   HERO — LAPTOP 3D
   ========================================================= */

.home-visual {
    /* Mantém o layout mas agora só tem o canvas */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 520px;
    margin-top: 4%;
}

.home-visual .three-canvas-wrap[data-three="hero-laptop"] {
    position: relative;
    width: 100%;
    max-width: 720px;
    height: 520px;
    inset: auto;
    z-index: 2;
    opacity: 0;
    transition: opacity 1.4s ease 0.6s;
    pointer-events: none;
    filter: drop-shadow(0 40px 60px rgba(0, 102, 255, 0.15));
}

.home-visual .three-canvas-wrap[data-three="hero-laptop"].is-ready {
    opacity: 1;
}

@media screen and (max-width: 992px) {
    .home-visual {
        min-height: 400px;
        margin-top: 20px;
    }

    .home-visual .three-canvas-wrap[data-three="hero-laptop"] {
        height: 400px;
        max-width: 100%;
    }
}

@media screen and (max-width: 576px) {
    .home-visual {
        min-height: 320px;
    }

    .home-visual .three-canvas-wrap[data-three="hero-laptop"] {
        height: 320px;
    }
}

/* =========================================================
   RESPONSIVO 3D — consolidado
   ========================================================= */

@media screen and (max-width: 992px) {
    .three-canvas-wrap[data-three="about-sphere"] {
        position: relative;
        width: 100%;
        height: 320px;
        margin-bottom: 24px;
    }

    .three-canvas-wrap[data-three="skills-cube"] {
        position: relative;
        top: 0;
        right: auto;
        width: 100%;
        height: 340px;
        margin: 24px 0;
    }
}

@media screen and (max-width: 576px) {
    .three-canvas-wrap[data-three="about-sphere"] {
        height: 240px;
    }

    .three-canvas-wrap[data-three="skills-cube"] {
        height: 260px;
    }
}

/* =========================================================
   ESTADOS GLOBAIS
   ========================================================= */

/* Quando o 3D falha/desativa, esconde todos os canvases */
body.three-disabled .three-canvas-wrap {
    display: none !important;
}

/* Glow radial do hero — COMEÇA VISÍVEL (JS esconde se falhar) */
.home::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(0, 102, 255, 0.12), transparent 55%),
        radial-gradient(circle at 75% 70%, rgba(0, 102, 255, 0.08), transparent 60%);
    pointer-events: none;
    z-index: 1;
    opacity: 1;
    transition: opacity 1.6s ease 0.5s;
}

body.three-disabled .home::before {
    opacity: 0;
}

/* Scanline sutil — também começa visível */
.home::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(to bottom,
            transparent 0px,
            transparent 3px,
            rgba(255, 255, 255, 0.012) 3px,
            rgba(255, 255, 255, 0.012) 4px);
    pointer-events: none;
    z-index: 1;
    opacity: 1;
    transition: opacity 1.4s ease 0.6s;
}

body.three-disabled .home::after {
    opacity: 0;
}

/* =========================================================
   PREFERÊNCIA POR CONTRASTE — ÚLTIMO BLOCO DO ARQUIVO
   ========================================================= */

@media (prefers-contrast: high) {
    :root {
        --ink: #ffffff;
        --ink-soft: #e0e0e8;
        --line: #4a4a52;
        --line-strong: #6a6a72;
        --accent: #7ab0ff;
        --accent-soft: #3a3a6a;
    }

    .btn {
        border-width: 2px;
    }

    .btn-primary {
        background: var(--accent);
        color: #000;
    }

    .btn-outline {
        border-color: var(--ink);
    }
}

/* =========================================================
   HERO — LAPTOP 3D
   ========================================================= */

.home-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 480px;
    margin-top: 4%;
    padding: 20px 0;
}

.home-visual .three-canvas-wrap[data-three="hero-laptop"] {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: 720px;
    height: 480px;
    z-index: 2;
    opacity: 0;
    transition: opacity 1.4s ease 0.6s;
    pointer-events: none;
    filter: drop-shadow(0 40px 60px rgba(0, 102, 255, 0.15));
}

.home-visual .three-canvas-wrap[data-three="hero-laptop"].is-ready {
    opacity: 1;
}

/* Responsivo */
@media screen and (max-width: 992px) {
    .home-visual {
        min-height: 380px;
        margin-top: 0;
        margin-bottom: 20px;
    }
    .home-visual .three-canvas-wrap[data-three="hero-laptop"] {
        height: 380px;
        max-width: 100%;
    }
}

@media screen and (max-width: 576px) {
    .home-visual {
        min-height: 300px;
    }
    .home-visual .three-canvas-wrap[data-three="hero-laptop"] {
        height: 300px;
    }
}
