/* =========================================================================
   PORTFÓLIO JESI — FOLHA DE ESTILO PRINCIPAL
   -------------------------------------------------------------------------
   Abordagem : desktop first (base = desktop; media queries em 1024/768/480)
   Ordenação : seletores e propriedades em ordem alfabética
   Estrutura : 1. Variáveis & base  ->  2. Componentes  ->
               3. Responsivo       ->  4. Keyframes
   ========================================================================= */

/* ========================================================================
   1. VARIÁVEIS GLOBAIS (:root) & ESTILOS BASE
   ======================================================================== */

:root {
    --bg: #080910;
    --bg2: #10121d;
    --border: rgba(255, 255, 255, .11);
    --card: rgba(255, 255, 255, .055);
    --gradient: linear-gradient(125deg, #6366f1 0%, #06b6d4 32%, #ec4899 68%, #f59e0b 100%);
    --muted: #a9adbf;
    --orange: #f59e0b;
    --pink: #ec4899;
    --primary: #6366f1;
    --radius: 22px;
    --secondary: #06b6d4;
    --text: #fff;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "DM Sans", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

body.light {
    --bg: #f7f8fc;
    --bg2: #fff;
    --border: rgba(0, 0, 0, .1);
    --card: rgba(0, 0, 0, .04);
    --muted: #667085;
    --text: #111827;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

button {
    border: 0;
    outline: 0;
}

/* ========================================================================
   2. COMPONENTES (DESKTOP)
   ======================================================================== */

.about-card {
    align-items: center;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 420px;
    padding: 50px;
    text-align: center;
}

.about-content .big {
    color: var(--text);
    font-size: 1.45rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.about-content p:not(.big) {
    color: var(--muted);
    margin-bottom: 16px;
}

.about-grid {
    align-items: center;
    display: grid;
    gap: 80px;
    grid-template-columns: .8fr 1.2fr;
}

.about-name {
    font-size: 1.7rem;
    font-weight: 700;
    margin-top: 22px;
}

.about-role {
    color: var(--muted);
}

.about-status {
    align-items: center;
    display: flex;
    font-size: .8rem;
    gap: 7px;
    margin-top: 15px;
}

.about-status span {
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
    height: 8px;
    position: relative;
    width: 8px;
}

.about-status span::after {
    animation-delay: .9s;
}

.about-status span::before,
.about-status span::after {
    animation: radio-wave 1.8s ease-out infinite;
    border: 1px solid #22c55e;
    border-radius: 50%;
    content: "";
    inset: -2px;
    position: absolute;
}

.alt {
    background: var(--bg2);
}

.availability {
    align-items: center;
    background: rgba(99, 102, 241, .1);
    border: 1px solid rgba(99, 102, 241, .45);
    border-radius: 50px;
    color: #bfc3ff;
    display: inline-flex;
    font-size: .8rem;
    gap: 9px;
    margin-bottom: 20px;
    padding: 7px 13px;
}

.availability span {
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 12px #22c55e;
    display: inline-block;
    height: 8px;
    position: relative;
    width: 8px;
}

.availability span::after {
    animation-delay: .9s;
}

.availability span::before,
.availability span::after {
    animation: availability-wave 1.8s ease-out infinite;
    border: 1px solid #22c55e;
    border-radius: 50%;
    content: "";
    inset: -2px;
    position: absolute;
}

.avatar {
    animation: gradient 6s ease infinite;
    background: linear-gradient(135deg, #6366f1, #06b6d4, #ec4899, #f59e0b);
    background-size: 250% 250%;
    border-radius: 38px;
    box-shadow: 0 20px 60px rgba(99, 102, 241, .3);
    height: 150px;
    overflow: hidden;
    padding: 3px;
    position: relative;
    width: 150px;
    z-index: 2;
}

.avatar img {
    border-radius: 35px;
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.back-top {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    bottom: 25px;
    color: var(--text);
    cursor: pointer;
    height: 45px;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    right: 25px;
    transition: .3s;
    width: 45px;
    z-index: 900;
}

.back-top.show {
    bottom: 85px;
    opacity: 1;
    pointer-events: auto;
}

.btn {
    align-items: center;
    border: 0;
    border-radius: 14px;
    display: inline-flex;
    font-weight: 500;
    gap: 10px;
    justify-content: center;
    padding: 14px 22px;
    transition: transform .3s ease, box-shadow .3s ease;
}

.btn-gradient {
    animation: gradient 5s ease infinite;
    background: var(--gradient);
    background-size: 250% 250%;
    box-shadow: 0 10px 30px rgba(99, 102, 241, .18);
    color: #fff;
}

.btn-gradient i {
    transition: transform .3s ease;
}

.btn-gradient:hover i {
    transform: translate(2px, -2px);
}

.btn-outline {
    background: var(--card);
    border: 1px solid var(--border);
}

.btn-small {
    font-size: .85rem;
    padding: 11px 16px;
}

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

.code-body {
    padding: 32px;
}

.code-body b {
    color: #a78bfa;
}

.code-body em {
    color: #22d3ee;
    font-style: normal;
}

.code-body i {
    color: #f472b6;
    font-style: normal;
}

.code-body pre {
    color: #d8d9e5;
    font: 500 15px/1.9 ui-monospace, SFMono-Regular, Menlo, monospace;
    white-space: pre-wrap;
}

.code-window {
    background: rgba(14, 15, 25, .88);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, .4);
    overflow: hidden;
}

#contato {
    padding: 70px 0;
}

.contact {
    background: linear-gradient(135deg, #16152a, #101c26 45%, #211322);
}

.contact-content h2 {
    font-size: clamp(2.5rem, 4vw, 4.3rem);
    font-weight: 700;
    line-height: 1.05;
    margin: 15px 0 20px;
}

.contact-content>p {
    color: var(--muted);
    max-width: 500px;
}

.contact-form {
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .18);
    padding: 30px;
}

.contact-form input,
.contact-form textarea {
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    margin-top: 7px;
    outline: none;
    padding: 14px;
    transition: border-color .3s ease, box-shadow .3s ease;
    width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .12);
}

.contact-form label {
    color: var(--muted);
    display: block;
    font-size: .85rem;
    margin-bottom: 16px;
}

.contact-grid {
    align-items: start;
    display: grid;
    gap: 80px;
    grid-template-columns: .8fr 1.2fr;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 35px;
}

.contact-links a {
    align-items: center;
    color: var(--muted);
    display: flex;
    gap: 12px;
    transition: transform .3s ease, color .3s ease;
}

.contact-links a:hover {
    color: var(--text);
    transform: translateX(5px);
}

.contact-links i {
    background: var(--card);
    border-radius: 10px;
    color: #818cf8;
    display: grid;
    height: 40px;
    place-items: center;
    width: 40px;
}

.container {
    margin: auto;
    width: min(1180px, 92%);
}

.cursor-glow {
    background: radial-gradient(circle, rgba(99, 102, 241, .14), rgba(236, 72, 153, .06), transparent 70%);
    height: 250px;
    pointer-events: none;
    position: fixed;
    transform: translate(-50%, -50%);
    width: 250px;
    z-index: -1;
}

.dot {
    color: #ec4899;
}

#experiencia {
    padding: 60px 0 0;
}

.experience {
    color: #818cf8;
    font-size: 3rem;
    font-weight: 700;
    margin-top: 35px;
}

.experience small {
    color: var(--muted);
    display: block;
    font-size: .8rem;
    font-weight: 400;
}

.eyebrow,
.section-title>span,
.contact-content>span {
    color: #8ea0ff;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.faq {
    padding: 80px 0;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item button {
    align-items: center;
    background: none;
    border: 0;
    color: var(--text);
    cursor: pointer;
    display: flex;
    font-weight: 700;
    justify-content: space-between;
    padding: 23px 0;
    text-align: left;
    width: 100%;
}

.faq-item button i {
    transition: transform .3s;
}

.faq-item div {
    display: grid;
    grid-template-rows: 0fr;
    transition: .3s;
}

.faq-item p {
    color: var(--muted);
    overflow: hidden;
    padding-right: 40px;
}

.faq-item.open button i {
    transform: rotate(45deg);
}

.faq-item.open div {
    grid-template-rows: 1fr;
}

.faq-list {
    margin: auto;
    max-width: 850px;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 45px;
}

.filters button {
    background: var(--card);
    border: 0;
    border-radius: 50px;
    color: var(--muted);
    cursor: pointer;
    padding: 8px 24px;
    transition: transform .3s ease, background .3s ease, color .3s ease;
}

.filters button.active,
.filters button:hover {
    background: var(--gradient);
    background-size: 250% 250%;
    border: 0;
    color: #fff;
    transform: translateY(-2px);
}

.floating-card {
    align-items: center;
    animation: float 4s ease-in-out infinite;
    background: rgba(18, 19, 30, .94);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, .25);
    display: flex;
    font-size: .8rem;
    font-weight: 700;
    gap: 9px;
    padding: 12px 16px;
    position: absolute;
}

.floating-card i {
    font-size: 1.25rem;
}

.floating-card.css {
    animation-delay: 1s;
    color: #22d3ee;
    right: -25px;
    top: 40%;
}

.floating-card.html {
    color: #fb7185;
    left: -80px;
    top: 12%;
}

.floating-card.js {
    animation-delay: 2s;
    bottom: 10%;
    color: #a78bfa;
    left: -108px;
}

footer {
    border-top: 1px solid var(--border);
    padding: 30px 0;
}

.footer-grid {
    align-items: center;
    color: var(--muted);
    display: flex;
    font-size: .85rem;
    justify-content: space-between;
}

.footer-grid>div {
    display: flex;
    gap: 15px;
}

.footer-logo {
    align-items: center;
    display: inline-flex;
    text-decoration: none;
}

.footer-logo img {
    display: block;
    object-fit: contain;
    transition: opacity .3s ease;
    width: 80px;
}

.footer-logo:hover img {
    opacity: .85;
}

.form-row {
    display: grid;
    gap: 15px;
    grid-template-columns: 1fr 1fr;
}

.gradient-text {
    animation: gradient 6s ease infinite;
    background: linear-gradient(110deg, #818cf8 0%, #22d3ee 28%, #f472b6 58%, #fb923c 82%, #facc15 100%);
    background-clip: text;
    background-size: 250% 250%;
    color: transparent;
    -webkit-background-clip: text;
}

.header {
    backdrop-filter: blur(20px);
    background: rgba(8, 9, 16, .72);
    border-bottom: 1px solid transparent;
    left: 0;
    position: fixed;
    top: 0;
    -webkit-backdrop-filter: blur(20px);
    width: 100%;
    z-index: 1000;
}

.hero {
    align-items: center;
    display: flex;
    min-height: 100vh;
    overflow: hidden;
    padding: 140px 0 !important;
    position: relative;
}

.hero h1 {
    display: flex;
    flex-direction: column;
    font-size: clamp(3.7rem, 7vw, 6.6rem);
    font-weight: 700;
    letter-spacing: -4px;
    line-height: .95;
    margin-bottom: 25px;
}

.hero-bg {
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    margin: 32px 0;
}

.hero-description {
    color: var(--muted);
    font-size: 1.06rem;
    max-width: 620px;
}

.hero-grid {
    align-items: center;
    display: grid;
    gap: 70px;
    grid-template-columns: 1.05fr .95fr;
    position: relative;
    z-index: 1;
}

.hero-social {
    align-items: center;
    color: var(--muted);
    display: flex;
    font-size: .85rem;
    gap: 12px;
}

.hero-social a {
    background: var(--card);
    border: 0;
    border-radius: 10px;
    display: grid;
    height: 38px;
    place-items: center;
    transition: transform .3s ease, background .3s ease, color .3s ease;
    width: 38px;
}

.hero-social a:hover {
    background: var(--gradient);
    background-size: 250% 250%;
    border: 0;
    color: #fff;
    transform: translateY(-3px);
}

.hero-visual {
    position: relative;
}

.highlights {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 30px;
}

.highlights div {
    align-items: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    display: flex;
    gap: 12px;
    padding: 16px;
    transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.highlights div:hover {
    border-color: rgba(99, 102, 241, .5);
    box-shadow: 0 15px 35px rgba(0, 0, 0, .18);
    transform: translateY(-5px);
}

.highlights div:hover i {
    transform: scale(1.15);
}

.highlights i {
    color: #818cf8;
    transition: transform .35s ease;
}

.light .header {
    background: rgba(255, 255, 255, .75);
}

.logo {
    align-items: center;
    display: inline-flex;
    text-decoration: none;
}

.logo-img {
    display: block;
    height: auto;
    object-fit: contain;
    width: 120px;
}

.menu-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    cursor: pointer;
    display: none;
    flex-direction: column;
    gap: 5px;
    height: 42px;
    justify-content: center;
    padding: 0;
    width: 42px;
}

.menu-toggle span {
    background: var(--text);
    border-radius: 2px;
    display: block;
    height: 2px;
    transition: background .3s ease, opacity .25s ease, transform .35s ease;
    width: 24px;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(.3);
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.menu-toggle:hover span {
    background: var(--primary);
}

.modal {
    align-items: center;
    background: rgba(0, 0, 0, .75);
    display: none;
    inset: 0;
    justify-content: center;
    padding: 20px;
    position: fixed;
    z-index: 2000;
}

.modal-box {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .4);
    padding: 35px;
    position: relative;
    width: min(600px, 100%);
}

.modal-box h2 {
    font-size: 2.4rem;
    font-weight: 700;
    margin: 8px 0 15px;
}

.modal-box p {
    color: var(--muted);
}

.modal-box>span {
    color: #818cf8;
    font-size: .75rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: 0;
    color: var(--text);
    cursor: pointer;
    font-size: 2rem;
    position: absolute;
    right: 20px;
    top: 15px;
}

.modal-tags {
    margin-top: 20px;
}

.modal.active {
    display: flex;
}

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

.nav-actions {
    align-items: center;
    display: flex;
    gap: 12px;
}

.nav-link {
    color: var(--muted);
    font-size: .9rem;
    transition: color .3s;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

.nav-menu {
    display: flex;
    gap: 28px;
}

.orb {
    border-radius: 50%;
    filter: blur(100px);
    opacity: .2;
    position: absolute;
}

.orb-1 {
    background: #6366f1;
    height: 420px;
    left: -12%;
    top: 0;
    width: 420px;
}

.orb-2 {
    background: #06b6d4;
    height: 380px;
    right: -8%;
    top: 25%;
    width: 380px;
}

.orb-3 {
    background: #ec4899;
    bottom: -10%;
    height: 330px;
    left: 35%;
    width: 330px;
}

.p1 {
    background: linear-gradient(135deg, #4338ca, #0891b2, #8b5cf6);
}

.p2 {
    background: linear-gradient(135deg, #7c3aed, #db2777, #f97316);
}

.p3 {
    background: linear-gradient(135deg, #0369a1, #06b6d4, #4f46e5);
}

.p4 {
    background: linear-gradient(135deg, #be185d, #9333ea, #f59e0b);
}

.progress {
    background: rgba(255, 255, 255, .08);
    border-radius: 20px;
    height: 7px;
    overflow: hidden;
}

.progress i {
    animation: progressGradient 5s linear infinite;
    background: linear-gradient(90deg, #6366f1, #06b6d4, #ec4899, #f59e0b);
    background-size: 250% 100%;
    border-radius: inherit;
    display: block;
    height: 100%;
}

#projetos {
    padding: 60px 0;
}


.project {
    border-radius: 24px;
}

.project-image {
    align-items: center;
    aspect-ratio: 16/9;
    display: flex;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.project-image .view-project {
    bottom: 20px;
    position: absolute;
    right: 20px;
    z-index: 3;
}

.project-image img {
    display: block;
    height: 100%;
    inset: 0;
    object-fit: cover;
    object-position: center;
    position: absolute;
    width: 100%;
}

.project-image span {
    font-size: 1.4rem;
    font-weight: 700;
    left: 25px;
    position: absolute;
    top: 25px;
    z-index: 2;
}

.project-image>i {
    font-size: 5rem;
    transition: transform .4s ease;
    z-index: 2;
}

.project-info {
    padding: 25px;
}

.project-info em,
.modal-tags em {
    background: rgba(99, 102, 241, .11);
    border-radius: 8px;
    color: #a5b4fc;
    display: inline-block;
    font-size: .75rem;
    font-style: normal;
    margin-right: 5px;
    padding: 6px 10px;
    transition: transform .3s ease, background .3s ease;
}

.project-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 7px 0;
}

.project-info p {
    color: var(--muted);
    margin-bottom: 18px;
}

.project-info small {
    color: #818cf8;
    font-weight: 700;
}

.project:hover .project-image>i {
    transform: scale(1.08) translateY(-5px);
}

.project:hover .project-info em {
    background: rgba(99, 102, 241, .2);
    transform: translateY(-3px);
}

.projects-grid {
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(2, 1fr);
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .8s ease, transform .8s ease;
}

.reveal.show {
    opacity: 1;
    transform: none;
}

.scroll-down {
    align-items: center;
    bottom: 30px;
    color: var(--muted);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    font-size: .72rem;
    gap: 5px;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
}

.scroll-down i {
    animation: bounce 1.5s infinite;
}

.section-title {
    margin-bottom: 60px;
    max-width: 700px;
}

.section-title h2 {
    font-size: clamp(2.4rem, 4vw, 4rem);
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1.05;
    margin: 14px 0;
}

.section-title h2 b,
.contact-content h2 b {
    animation: gradient 6s ease infinite;
    background: linear-gradient(110deg, #818cf8, #22d3ee, #f472b6, #fb923c);
    background-clip: text;
    background-size: 250% 250%;
    color: transparent;
    -webkit-background-clip: text;
}

.section-title p {
    color: var(--muted);
}

.section-title.center {
    margin-inline: auto;
    text-align: center;
}

#servicos {
    padding: 60px 0;
}

.service {
    border-radius: 22px;
    padding: 30px;
}

.service a {
    align-items: center;
    animation: gradientMove 5s ease infinite;
    background: var(--gradient);
    background-size: 300% 300%;
    border: 0;
    border-radius: 8px;
    color: #fff;
    display: inline-flex;
    font-size: 13px;
    font-weight: 600;
    gap: 10px;
    justify-content: center;
    margin-top: 18px;
    padding: 11px 18px;
    text-decoration: none;
    transition: transform .3s, box-shadow .3s;
}

.service a i {
    font-size: 11px;
    transition: transform .3s;
}

.service a:hover {
    box-shadow: 0 8px 25px rgba(124, 58, 237, .3);
    transform: translateY(-2px);
}

.service a:hover i {
    transform: translateX(4px);
}

.service h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.service p {
    color: var(--muted);
    font-size: .9rem;
    min-height: 60px;
}

.service:hover>i {
    text-shadow: 0 0 6px rgba(129, 140, 248, .45), 0 0 16px rgba(129, 140, 248, .25);
    transform: scale(1.15) rotate(-5deg);
}

.service:nth-child(2),
.skill:nth-child(2),
.project:nth-child(2) {
    transition-delay: .03s;
}

.service:nth-child(3),
.skill:nth-child(3),
.project:nth-child(3) {
    transition-delay: .06s;
}

.service:nth-child(4),
.skill:nth-child(4),
.project:nth-child(4) {
    transition-delay: .09s;
}

.service>i {
    color: #818cf8;
    font-size: 2rem;
    margin-bottom: 25px;
    transition: transform .35s ease, text-shadow .35s ease;
}

.service>span {
    color: #666;
    font-weight: 700;
    position: absolute;
    right: 20px;
    top: 18px;
}

.services-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(4, 1fr);
}

.skill {
    border-radius: 22px;
    padding: 24px;
}

.skill,
.project,
.service,
.about-card {
    background: var(--card);
    border: 1px solid var(--border);
    overflow: hidden;
    position: relative;
    transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease;
}

.skill-top {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
}

.skill-top b {
    color: var(--muted);
    font-size: .85rem;
}

.skill-top i {
    color: #818cf8;
    font-size: 1.5rem;
    transition: transform .35s ease;
}

.skill-top span {
    align-items: center;
    display: flex;
    font-weight: 700;
    gap: 10px;
}

.skill:active,
.project:active,
.service:active,
.about-card:active {
    transform: translateY(-5px) scale(.99);
}

.skill:hover,
.project:hover,
.service:hover,
.about-card:hover {
    border-color: rgba(99, 102, 241, .48);
    box-shadow: 0 20px 45px rgba(0, 0, 0, .28);
    transform: translateY(-10px) scale(1.015);
}

.skill:hover .skill-top i {
    transform: scale(1.12) rotate(-6deg);
}

#skills {
    padding: 60px 0;
}

.skills-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, 1fr);
}

#sobre {
    padding: 60px 0;
}

.stars {
    color: #fbbf24;
    letter-spacing: 3px;
    transition: transform .3s ease;
}

.stat {
    border-right: 1px solid var(--border);
    text-align: center;
}

.stat span {
    color: var(--muted);
    font-size: .85rem;
}

.stat strong {
    animation: gradient 6s ease infinite;
    background: linear-gradient(110deg, #818cf8, #22d3ee, #f472b6, #fb923c);
    background-clip: text;
    background-size: 250% 250%;
    color: transparent;
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    -webkit-background-clip: text;
}

.stat:last-child {
    border: 0;
}

.stats {
    border-bottom: 1px solid var(--border);
    border-top: 1px solid var(--border);
    padding: 35px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.timeline {
    margin: auto;
    max-width: 850px;
    position: relative;
}

.timeline-dot {
    animation: gradient 5s ease infinite;
    background: var(--gradient);
    background-size: 250% 250%;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(99, 102, 241, .45);
    height: 19px;
    left: 0;
    position: absolute;
    top: 4px;
    width: 19px;
}

.timeline-item {
    padding: 0 0 50px 50px;
    position: relative;
}

.timeline-item h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 6px;
}

.timeline-item h4 {
    color: var(--muted);
    font-weight: 500;
}

.timeline-item p {
    color: var(--muted);
    margin-top: 10px;
}

.timeline-item span {
    color: #818cf8;
    font-size: .75rem;
    font-weight: 700;
}

.timeline:before {
    background: var(--border);
    bottom: 0;
    content: "";
    left: 9px;
    position: absolute;
    top: 0;
    width: 1px;
}

.toast {
    background: #181923;
    border: 1px solid var(--border);
    border-radius: 14px;
    bottom: 25px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .3);
    opacity: 0;
    padding: 15px 20px;
    position: fixed;
    right: 25px;
    transform: translateY(100px);
    transition: .3s;
    z-index: 3000;
}

.toast.active {
    opacity: 1;
    transform: translateY(0);
}

.view-project {
    background: #fff;
    border: 0;
    border-radius: 50%;
    bottom: 20px;
    color: #111;
    cursor: pointer;
    font-size: 1.4rem;
    height: 45px;
    position: absolute;
    right: 20px;
    transition: transform .3s ease;
    width: 45px;
    z-index: 3;
}

.view-project:hover {
    transform: scale(1.1) rotate(4deg);
}

.window-footer {
    border-bottom: 0;
    border-top: 1px solid var(--border);
    font-size: .75rem;
}

.window-footer span:first-child {
    color: #4ade80;
}

.window-top,
.window-footer {
    align-items: center;
    background: rgba(255, 255, 255, .035);
    border-bottom: 1px solid var(--border);
    display: flex;
    height: 50px;
    justify-content: space-between;
    padding: 0 18px;
}

.window-top small,
.window-footer {
    color: var(--muted);
}

.window-top>div {
    display: flex;
    gap: 7px;
}

.window-top>div span {
    border-radius: 50%;
    height: 11px;
    width: 11px;
}

.window-top>div span:nth-child(1) {
    background: #fb7185;
}

.window-top>div span:nth-child(2) {
    background: #facc15;
}

.window-top>div span:nth-child(3) {
    background: #4ade80;
}

/* ========================================================================
   3. RESPONSIVO (MEDIA QUERIES)
   ======================================================================== */

@media (max-width: 1024px) {
    .about-card {
        min-height: 380px;
        padding: 40px;
    }

    .about-content .big {
        font-size: 1.3rem;
    }

    .about-grid,
    .contact-grid,
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        gap: 50px;
    }

    .contact-grid {
        gap: 40px;
    }

    .floating-card.css {
        right: -10px;
    }

    .floating-card.html {
        left: -20px;
    }

    .floating-card.js {
        left: -20px;
    }

    .hero {
        padding: 140px 0 100px;
    }

    .hero-grid {
        gap: 50px;
    }

    .hero-visual {
        margin-top: 30px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-actions .btn-small {
        display: none;
    }

    .nav-menu {
        display: none;
    }

    .nav-menu.open {
        -webkit-overflow-scrolling: touch;
        animation: menu-slide .35s ease both;
        backdrop-filter: blur(18px);
        background: var(--bg2);
        border-bottom: 1px solid var(--border);
        display: flex;
        flex-direction: column;
        gap: 0;
        left: 0;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 10px 0 22px;
        position: fixed;
        right: 0;
        top: 80px;
        z-index: 1500;
    }

    .nav-menu.open .nav-link {
        border-bottom: 1px solid var(--border);
        font-size: 1rem;
        padding: 16px 24px;
        transition: background .3s ease, color .3s ease, padding-left .3s ease;
    }

    .nav-menu.open .nav-link:last-child {
        border-bottom: 0;
    }

    .nav-menu.open .nav-link.active,
    .nav-menu.open .nav-link:hover {
        background: var(--card);
        border-left: 3px solid var(--primary);
        color: var(--text);
        padding-left: 28px;
    }

    .section {
        padding: 100px 0;
    }

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

@media (max-width: 768px) {
    .about-card {
        min-height: 350px;
        padding: 32px;
    }

    .avatar {
        height: 130px;
        width: 130px;
    }

    .code-body {
        padding: 22px;
    }

    .code-body pre {
        font-size: 12.5px;
    }

    .contact-form {
        padding: 24px;
    }

    #contato {
        padding: 60px 0;
    }

    .experience {
        font-size: 2.5rem;
    }

    #experiencia {
        padding: 60px 0;
    }

    .faq {
        padding: 0 0 90px;
    }

    .faq {
        padding: 0 0;
    }

    .floating-card {
        display: flex;
    }

    .floating-card.css {
        right: -8px;
        top: 42%;
    }

    .floating-card.html {
        left: 94px;
        top: -5%;
    }

    .floating-card.js {
        bottom: -7%;
        left: 126px;
    }

    .form-row,
    .highlights,
    .projects-grid,
    .services-grid,
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding: 120px 0 80px;
    }

    .hero h1 {
        font-size: 3.4rem;
        letter-spacing: -2px;
    }

    .hero-description {
        font-size: 1rem;
    }

    #inicio {
        padding: 140px 0 60px;
    }

    .modal-box {
        padding: 28px;
    }

    .modal-box h2 {
        font-size: 2rem;
    }

    .project:hover,
    .service:hover,
    .skill:hover,
    .about-card:hover {
        transform: translateY(-5px) scale(1.01);
    }

    #projetos {
        padding: 60px 0;
    }

    .scroll-down {
        display: flex;
    }

    .section {
        padding: 85px 0;
    }

    .section-title {
        margin-bottom: 45px;
    }

    .section-title h2 {
        font-size: 2.5rem;
    }

    #servicos {
        padding: 60px 0;
    }

    #skills {
        padding: 60px 0;
    }

    #sobre {
        padding: 60px 0;
    }

    .stat strong {
        font-size: 2rem;
    }

    .stat:nth-child(2) {
        border: 0;
    }

    .stats-grid {
        gap: 20px;
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline-item {
        padding: 0 0 40px 40px;
    }
}

@media (max-width: 480px) {
    .about-card {
        min-height: 300px;
        padding: 24px;
    }

    .about-content .big {
        font-size: 1.15rem;
        line-height: 1.5;
    }

    .about-name {
        font-size: 1.3rem;
    }

    .about-role {
        font-size: .9rem;
    }

    .about-status {
        font-size: .75rem;
    }

    .availability {
        font-size: .72rem;
    }

    .back-top,
    .toast {
        bottom: 16px;
        right: 16px;
    }

    .btn {
        font-size: 13px;
        padding: 13px 18px;
        width: 100%;
    }

    .code-body {
        padding: 16px;
    }

    .code-body pre {
        font-size: 13px;
        line-height: 1.7;
    }

    .contact-content h2 {
        font-size: 1.9rem;
        line-height: 1.1;
    }

    .contact-content>p {
        font-size: .9rem;
        line-height: 1.55;
    }

    .contact-form {
        border-radius: 18px;
        padding: 18px;
    }

    .contact-form label {
        font-size: .78rem;
    }

    .container {
        width: min(1180px, 90%);
    }

    #contato {
        padding: 60px 0;
    }

    #experiencia {
        padding: 60px 0;
    }

    .faq {
        padding: 0 0;
    }

    .faq-item button {
        font-size: .9rem;
        gap: 14px;
        padding: 18px 0;
    }

    .faq-item p {
        font-size: .85rem;
        line-height: 1.55;
        padding-right: 0;
    }

    .faq-list {
        padding-bottom: 40px;
    }

    .floating-card {
        display: flex;
    }

    .floating-card.css {
        border-radius: 10px;
        font-size: .62rem;
        gap: 6px;
        padding: 7px 10px;
        right: -8px;
        top: 42%;
    }

    .floating-card.css i {
        font-size: .95rem;
    }

    .floating-card.html {
        border-radius: 10px;
        font-size: .62rem;
        gap: 6px;
        left: 80px;
        padding: 7px 10px;
        top: -2%;
    }

    .floating-card.html i {
        font-size: .95rem;
    }

    .floating-card.js {
        border-radius: 10px;
        bottom: -5%;
        font-size: .62rem;
        gap: 6px;
        left: 140px;
        padding: 7px 10px;
    }

    .floating-card.js i {
        font-size: .95rem;
    }

    .footer-grid {
        flex-direction: column;
        font-size: .75rem;
        gap: 15px;
        text-align: center;
    }

    .hero {
        padding: 105px 0 60px;
    }

    .hero h1 {
        font-size: 2.35rem;
        letter-spacing: -1px;
        line-height: 1;
    }

    .hero-buttons {
        flex-direction: column;
        margin: 26px 0;
    }

    .hero-description {
        font-size: .9rem;
        line-height: 1.55;
    }

    .hero-social {
        flex-wrap: wrap;
        font-size: .8rem;
    }

    #inicio {
        padding: 120px 0 60px;
    }

    .logo-img {
        width: 100px;
    }

    .modal-box {
        border-radius: 18px;
        padding: 22px;
    }

    .modal-box h2 {
        font-size: 1.7rem;
    }

    .nav {
        height: 66px;
    }

    .nav-menu.open {
        top: 66px;
    }

    .nav-menu.open .nav-link {
        font-size: .95rem;
    }

    .orb {
        filter: blur(70px);
    }

    .orb-1,
    .orb-2,
    .orb-3 {
        height: 220px;
        width: 220px;
    }

    .project-image>i {
        font-size: 3rem;
    }

    .project-image span {
        font-size: 1.15rem;
    }

    .project-info {
        padding: 20px;
    }

    .project-info h3 {
        font-size: 1.2rem;
    }

    .project-info p {
        font-size: .88rem;
        line-height: 1.55;
    }

    .project-info small {
        font-size: .72rem;
    }

    #projetos {
        padding: 60px 0;
    }

    .scroll-down {
        display: flex;
    }

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

    .section-title h2 {
        font-size: 1.85rem;
        letter-spacing: -.8px;
        line-height: 1.1;
    }

    .section-title p {
        font-size: .9rem;
        line-height: 1.55;
    }

    .eyebrow,
    .section-title>span,
    .contact-content>span {
        font-size: .68rem;
        letter-spacing: 1.6px;
    }

    .service {
        padding: 24px;
    }

    .service h3 {
        font-size: 1.15rem;
    }

    .service p {
        font-size: .85rem;
        line-height: 1.55;
        min-height: 0;
    }

    .service a {
        font-size: .8rem;
    }

    .skill-top b {
        font-size: .78rem;
    }

    .skill-top span {
        font-size: .9rem;
    }

    #skills {
        padding: 60px 0;
    }

    #sobre {
        padding: 60px 0;
    }

    .stat {
        border-right: 0;
    }

    .stat strong {
        font-size: 1.6rem;
    }

    .stat span {
        font-size: .75rem;
    }

    .stats-grid {
        gap: 18px;
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline-item {
        padding: 0 0 34px 34px;
    }

    .timeline-item h3 {
        font-size: 1.15rem;
    }

    .timeline-item h4 {
        font-size: .9rem;
    }

    .timeline-item p {
        font-size: .85rem;
        line-height: 1.55;
    }

    .timeline-item span {
        font-size: .7rem;
    }

    .experience {
        font-size: 2.1rem;
    }

    .experience small {
        font-size: .72rem;
    }
}

/* ========================================================================
   4. KEYFRAMES (ANIMAÇÕES)
   ======================================================================== */

@keyframes availability-wave {
    0% {
        opacity: .7;
        transform: scale(.8);
    }

    100% {
        opacity: 0;
        transform: scale(1.8);
    }
}

@keyframes bounce {
    50% {
        transform: translateY(6px);
    }
}

@keyframes float {
    50% {
        transform: translateY(-12px);
    }
}

@keyframes gradient {

    0%,
    100% {
        background-position: 0 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes menu-slide {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

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

@keyframes progressGradient {
    0% {
        background-position: 0 50%;
    }

    100% {
        background-position: 250% 50%;
    }
}

@keyframes radio-wave {
    0% {
        opacity: .7;
        transform: scale(.8);
    }

    100% {
        opacity: 0;
        transform: scale(1.8);
    }
}