﻿/* =============================================
   VARIÁVEIS
   ============================================= */
:root {
    --bg-dark: #0f172a;
    --bg-light: #f1f5f9;
    --text-dark: #1e293b;
    --text-light: #e2e8f0;
    --primary: #7c3aed;
    --primary-light: #a78bfa;
    --accent: #06b6d4;
    --accent-2: #ec4899;
    --border-dark: rgba(226, 232, 240, .1);
    --border-light: rgba(30, 41, 59, .15);
    --t: all .3s cubic-bezier(.25, .46, .45, .94);
    /* espaçamentos fluidos */
    --space-xs: clamp(.5rem, 1vw, .8rem);
    --space-sm: clamp(1rem, 2vw, 1.5rem);
    --space-md: clamp(1.5rem, 3vw, 2.5rem);
    --space-lg: clamp(2rem, 5vw, 4rem);
    --space-xl: clamp(3rem, 7vw, 6rem);
}

/* =============================================
   RESET + BASE
   ============================================= */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

/* =============================================
   SCROLLBAR
   ============================================= */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #7c3aed, #06b6d4);
    border-radius: 10px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(180deg, #6d28d9, #0891b2);
    }

* {
    scrollbar-width: thin;
    scrollbar-color: #7c3aed #0f172a;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(15, 23, 42, .8);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-dark);
    z-index: 1000;
    transition: var(--t);
}

.nav-container {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
    display: flex;
    align-items: center;
}

.nav-brand {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 800;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: .4rem;
    letter-spacing: -1px;
    transition: var(--t);
    flex-shrink: 0;
}

.brand-icon {
    color: var(--primary);
}

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

.nav-menu {
    display: flex;
    gap: clamp(1rem, 2vw, 1.8rem);
    margin: 0 0 0 clamp(1.5rem, 3vw, 3rem);
    flex: 1;
}

    .nav-menu a {
        color: var(--text-light);
        font-size: clamp(.8rem, 1.5vw, .92rem);
        font-weight: 500;
        transition: var(--t);
        position: relative;
        white-space: nowrap;
    }

        .nav-menu a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, var(--primary), var(--accent));
            transition: width .3s ease;
        }

        .nav-menu a:hover::after {
            width: 100%;
        }

.nav-cta {
    margin-left: auto;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), var(--accent-2));
    color: #fff;
    padding: .6rem 1.3rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: clamp(.8rem, 1.5vw, .9rem);
    display: flex;
    align-items: center;
    gap: .4rem;
    transition: var(--t);
    box-shadow: 0 4px 15px rgba(124,58,237,.3);
    white-space: nowrap;
}

    .nav-cta:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 25px rgba(124,58,237,.5);
    }

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    padding: 4px;
}

    .menu-toggle span {
        width: 24px;
        height: 3px;
        background: var(--text-light);
        border-radius: 3px;
        transition: var(--t);
    }

/* =============================================
   HERO
   ============================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 70px;
    padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 2rem);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.grid-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(124,58,237,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(124,58,237,.05) 1px, transparent 1px);
    background-size: clamp(25px, 4vw, 40px) clamp(25px, 4vw, 40px);
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .25;
    animation: float 20s infinite ease-in-out;
}

.glow-1 {
    width: clamp(200px,40vw,400px);
    height: clamp(200px,40vw,400px);
    background: var(--primary);
    top: -100px;
    left: -100px;
}

.glow-2 {
    width: clamp(150px,30vw,300px);
    height: clamp(150px,30vw,300px);
    background: var(--accent-2);
    bottom: -50px;
    right: 10%;
    animation-delay: 5s;
}

.glow-3 {
    width: clamp(180px,35vw,350px);
    height: clamp(180px,35vw,350px);
    background: var(--accent);
    top: 50%;
    right: -150px;
    animation-delay: 10s;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    max-width: 1200px;
    width: 100%;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2vw, 1.5rem);
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: clamp(.75rem, 1.5vw, .9rem);
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tag-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

.hero-title {
    font-size: clamp(1.8rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.15;
    background: linear-gradient(135deg, var(--text-light), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.cursor {
    display: inline-block;
    width: 3px;
    height: .9em;
    background: var(--primary);
    margin-left: .1em;
    vertical-align: middle;
    animation: blink .7s infinite;
}

.hero-subtitle {
    font-size: clamp(.9rem, 2vw, 1.05rem);
    line-height: 1.8;
    color: rgba(226,232,240,.8);
}

    .hero-subtitle strong {
        color: var(--primary-light);
        font-weight: 700;
    }

.hero-cta-group {
    display: flex;
    gap: clamp(.6rem, 2vw, 1rem);
    flex-wrap: wrap;
}

.btn {
    padding: clamp(.7rem, 2vw, .9rem) clamp(1.2rem, 3vw, 1.8rem);
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    transition: var(--t);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: clamp(.85rem, 1.5vw, .95rem);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent-2));
    color: #fff;
    box-shadow: 0 4px 15px rgba(124,58,237,.3);
}

    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(124,58,237,.5);
    }

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border-color: var(--primary);
}

    .btn-secondary:hover {
        background: var(--primary);
        color: #fff;
        transform: translateY(-3px);
    }

.hero-stats {
    display: flex;
    gap: clamp(1rem, 3vw, 2rem);
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.stat-number {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    font-size: clamp(.75rem, 1.5vw, .85rem);
    color: rgba(226,232,240,.65);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrapper {
    position: relative;
    width: 100%;
    max-width: clamp(240px, 40vw, 420px);
    aspect-ratio: 1;
}

.image-glow {
    position: absolute;
    inset: -20px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 20px;
    opacity: .45;
    filter: blur(30px);
    z-index: 1;
    animation: glow-rotate 8s linear infinite;
}

.profile-image {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    z-index: 2;
    border: 3px solid rgba(226,232,240,.15);
}

.image-border {
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary), var(--accent), transparent) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 3;
}

/* scroll hint */
.scroll-hint {
    position: absolute;
    bottom: clamp(1rem, 3vw, 2rem);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    z-index: 2;
    cursor: pointer;
}

.scroll-hint-label {
    font-size: clamp(.6rem, 1.2vw, .72rem);
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(167,139,250,.7);
    animation: fade-pulse 2s ease-in-out infinite;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(124,58,237,.6);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
    animation: glow-pulse 2s ease-in-out infinite;
}

.scroll-wheel {
    width: 3px;
    height: 7px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    border-radius: 3px;
    animation: scroll-down 2s ease-in-out infinite;
}

.scroll-arrows {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

    .scroll-arrows span {
        display: block;
        width: 8px;
        height: 8px;
        border-right: 2px solid var(--primary);
        border-bottom: 2px solid var(--primary);
        transform: rotate(45deg);
        animation: arrow-fade 2s ease-in-out infinite;
    }

        .scroll-arrows span:nth-child(1) {
            animation-delay: 0s;
            opacity: .3;
        }

        .scroll-arrows span:nth-child(2) {
            animation-delay: .2s;
            opacity: .6;
        }

        .scroll-arrows span:nth-child(3) {
            animation-delay: .4s;
            opacity: 1;
        }

/* =============================================
   SECTIONS — BASE
   ============================================= */
.section {
    padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 4vw, 2rem);
}

.section-dark {
    background: var(--bg-dark);
}

.section-light {
    background: var(--bg-light);
    color: var(--text-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(2rem, 5vw, 4rem);
}

.section-title {
    font-size: clamp(1.6rem, 5vw, 3.2rem);
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.title-accent {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-light .title-accent {
    background: linear-gradient(135deg, var(--primary), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    margin: 0 auto;
}

/* =============================================
   ABOUT
   ============================================= */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2vw, 1.5rem);
}

.about-header-block {
    display: flex;
    flex-direction: column;
    gap: .8rem;
}

.about-name {
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.about-role-tag {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(6,182,212,.1);
    border: 1px solid rgba(6,182,212,.35);
    color: var(--accent);
    font-size: clamp(.75rem, 1.5vw, .82rem);
    font-weight: 700;
    padding: .4rem 1rem;
    border-radius: 50px;
    width: fit-content;
}

.about-paragraphs {
    display: flex;
    flex-direction: column;
    gap: .9rem;
}

.about-text {
    font-size: clamp(.88rem, 1.8vw, .97rem);
    line-height: 1.85;
    color: rgba(226,232,240,.82);
}

    .about-text strong {
        color: var(--primary-light);
        font-weight: 700;
    }

.about-highlight {
    padding: 1rem 1.3rem;
    background: linear-gradient(135deg, rgba(124,58,237,.12), rgba(6,182,212,.06));
    border-left: 3px solid var(--primary);
    border-radius: 0 10px 10px 0;
    font-size: clamp(.85rem, 1.5vw, .93rem);
    font-weight: 600;
    color: var(--text-light);
}

.badges-group {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.badge {
    padding: .35rem .9rem;
    background: rgba(124,58,237,.15);
    border: 1px solid rgba(124,58,237,.4);
    border-radius: 50px;
    font-size: clamp(.72rem, 1.3vw, .78rem);
    font-weight: 600;
    color: var(--primary-light);
    transition: var(--t);
    cursor: default;
}

    .badge:hover {
        background: rgba(124,58,237,.35);
        transform: translateY(-2px);
    }

/* code card */
.about-deco {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.code-card {
    background: #0d1117;
    border: 1px solid rgba(124,58,237,.3);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.05);
    transition: var(--t);
}

    .code-card:hover {
        border-color: rgba(124,58,237,.6);
        transform: translateY(-4px);
        box-shadow: 0 20px 60px rgba(124,58,237,.2);
    }

.code-card-bar {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1rem;
    background: #161b22;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-r {
    background: #ff5f57;
}

.dot-y {
    background: #ffbd2e;
}

.dot-g {
    background: #28c840;
}

.code-card-title {
    margin-left: .5rem;
    font-size: clamp(.7rem, 1.3vw, .78rem);
    color: rgba(226,232,240,.4);
    font-family: 'Fira Code', monospace;
}

.code-block {
    margin: 0;
    padding: clamp(.8rem, 2vw, 1.4rem) clamp(1rem, 2vw, 1.5rem);
    font-family: 'Fira Code','Cascadia Code','Consolas', monospace;
    font-size: clamp(.7rem, 1.3vw, .82rem);
    line-height: 1.9;
    overflow-x: auto;
    background: transparent;
    white-space: pre;
}

.c-kw {
    color: #ff79c6;
}

.c-cl {
    color: #8be9fd;
}

.c-st {
    color: #f1fa8c;
}

.c-op {
    color: #ff79c6;
}

.c-br {
    color: #bd93f9;
}

.c-cm {
    color: #6272a4;
}

.code-card-footer {
    padding: .6rem 1rem;
    background: #161b22;
    border-top: 1px solid rgba(255,255,255,.05);
}

.code-status {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: clamp(.68rem, 1.2vw, .75rem);
    color: rgba(226,232,240,.5);
    font-family: 'Fira Code', monospace;
}

.status-dot {
    width: 7px;
    height: 7px;
    background: #28c840;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.about-stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(226,232,240,.04);
    border: 1px solid var(--border-dark);
    border-radius: 14px;
    overflow: hidden;
}

.mini-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .3rem;
    padding: clamp(.8rem, 2vw, 1.2rem) .8rem;
    transition: var(--t);
}

    .mini-stat:hover {
        background: rgba(124,58,237,.1);
    }

.mini-num {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.mini-lbl {
    font-size: clamp(.65rem, 1.2vw, .72rem);
    color: rgba(226,232,240,.55);
    text-align: center;
}

.mini-divider {
    width: 1px;
    height: 40px;
    background: var(--border-dark);
    flex-shrink: 0;
}

/* =============================================
   TIMELINE
   ============================================= */
.timeline {
    position: relative;
    padding: 2rem 0;
}

    .timeline::before {
        content: '';
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: 0;
        bottom: 0;
        width: 2px;
        background: linear-gradient(180deg, var(--primary), transparent);
    }

.timeline-item {
    margin-bottom: clamp(1.5rem, 3vw, 3rem);
    position: relative;
    padding-left: 52%;
    padding-right: 2rem;
}

    .timeline-item:nth-child(even) {
        padding-left: 2rem;
        padding-right: 52%;
    }

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 4px;
}

.timeline-dot {
    width: 18px;
    height: 18px;
    background: var(--primary);
    border: 3px solid var(--bg-light);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(124,58,237,.3);
    transition: var(--t);
}

.timeline-item:hover .timeline-dot {
    box-shadow: 0 0 0 5px var(--primary);
}

.timeline-content {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: clamp(1rem, 2vw, 1.4rem);
    transition: var(--t);
    box-shadow: 0 2px 12px rgba(30,41,59,.08);
}

.timeline-item:hover .timeline-content {
    border-color: var(--primary);
    transform: translateX(-6px);
    box-shadow: 0 8px 24px rgba(124,58,237,.12);
}

.timeline-item:nth-child(even):hover .timeline-content {
    transform: translateX(6px);
}

.timeline-date {
    display: inline-block;
    font-size: clamp(.72rem, 1.3vw, .82rem);
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(124,58,237,.1);
    padding: .25rem .7rem;
    border-radius: 20px;
    margin-bottom: .6rem;
}

.timeline-content h3 {
    font-size: clamp(.95rem, 2vw, 1.1rem);
    font-weight: 800;
    color: #1e293b;
    margin-bottom: .5rem;
}

.timeline-content p {
    font-size: clamp(.82rem, 1.5vw, .92rem);
    color: #475569;
    line-height: 1.65;
}

/* =============================================
   PROJECTS
   ============================================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: clamp(1rem, 3vw, 2rem);
}

.project-card {
    background: rgba(226,232,240,.05);
    border: 1px solid var(--border-dark);
    border-radius: 14px;
    overflow: hidden;
    transition: var(--t);
    display: flex;
    flex-direction: column;
}

    .project-card:hover {
        border-color: var(--primary);
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(124,58,237,.2);
    }

.card-preview {
    height: clamp(80px, 12vw, 110px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    position: relative;
    overflow: hidden;
}

    .card-preview::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, transparent 50%, rgba(15,23,42,.6));
    }

.preview-ecommerce {
    background: linear-gradient(135deg, #1e3a5f, #2563eb);
}

.preview-api {
    background: linear-gradient(135deg, #1e3a2f, #059669);
}

.preview-game {
    background: linear-gradient(135deg, #3b1f5e, #7c3aed);
}

.preview-site {
    background: linear-gradient(135deg, #1a3a1e, #16a34a);
}

.preview-portfolio {
    background: linear-gradient(135deg, #1e1b4b, #4f46e5);
}

.preview-icon {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: rgba(255,255,255,.85);
    z-index: 1;
}

.preview-dots {
    display: flex;
    gap: .4rem;
    z-index: 1;
}

    .preview-dots span {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: rgba(255,255,255,.4);
    }

        .preview-dots span:nth-child(1) {
            background: rgba(255,255,255,.7);
        }

        .preview-dots span:nth-child(2) {
            background: rgba(255,255,255,.45);
        }

.card-body {
    padding: clamp(1rem, 2vw, 1.4rem);
    display: flex;
    flex-direction: column;
    gap: .9rem;
    flex: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .8rem;
}

    .card-header h3 {
        font-size: clamp(1rem, 2vw, 1.2rem);
        font-weight: 800;
        color: var(--text-light);
        line-height: 1.3;
    }

.card-links {
    display: flex;
    gap: .5rem;
    flex-shrink: 0;
}

.card-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124,58,237,.15);
    border: 1px solid rgba(124,58,237,.3);
    border-radius: 8px;
    color: var(--primary-light);
    font-size: .95rem;
    transition: var(--t);
}

    .card-link:hover {
        background: var(--primary);
        color: #fff;
        border-color: var(--primary);
        transform: scale(1.1);
    }

.card-link-youtube:hover {
    background: #ff0000;
    border-color: #ff0000;
}

.project-card p {
    font-size: clamp(.82rem, 1.5vw, .9rem);
    color: rgba(226,232,240,.8);
    line-height: 1.6;
    flex: 1;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.tech {
    padding: .28rem .65rem;
    background: rgba(124,58,237,.2);
    border: 1px solid rgba(124,58,237,.35);
    border-radius: 20px;
    font-size: clamp(.68rem, 1.2vw, .75rem);
    font-weight: 600;
    color: var(--primary-light);
    transition: var(--t);
}

    .tech:hover {
        background: var(--primary);
        color: #fff;
    }

/* =============================================
   SKILLS
   ============================================= */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(clamp(90px, 12vw, 130px), 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    padding: clamp(1.2rem, 3vw, 1.8rem) 1rem;
    background: #fff;
    border: 1.5px solid var(--border-light);
    border-radius: 14px;
    transition: var(--t);
    text-align: center;
    box-shadow: 0 1px 6px rgba(30,41,59,.06);
}

    .skill-item:hover {
        border-color: var(--primary);
        transform: translateY(-8px);
        box-shadow: 0 12px 28px rgba(124,58,237,.15);
    }

.skill-icon {
    font-size: clamp(2rem, 4vw, 2.8rem);
    transition: var(--t);
}

.skill-item:hover .skill-icon {
    transform: scale(1.15);
}

.skill-item h4 {
    font-size: clamp(.75rem, 1.4vw, .88rem);
    font-weight: 700;
    color: #334155;
}

/* =============================================
   CONTACT
   ============================================= */
.contact-wrapper {
    text-align: center;
    padding: 1rem;
}

.contact-subtitle {
    font-size: clamp(.88rem, 1.8vw, 1rem);
    color: rgba(226,232,240,.8);
    max-width: 480px;
    margin: 1rem auto 2rem;
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.email-link {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 700;
    color: var(--primary-light);
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    transition: var(--t);
    word-break: break-all;
}

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

.social-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(.6rem, 2vw, 1rem);
    width: 100%;
    max-width: 600px;
}

.social-card {
    padding: clamp(1rem, 2vw, 1.4rem) 1rem;
    background: rgba(226,232,240,.06);
    border: 2px solid var(--border-dark);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    color: var(--text-light);
    transition: var(--t);
    font-size: clamp(.78rem, 1.5vw, .88rem);
    font-weight: 600;
}

    .social-card i {
        font-size: clamp(1.3rem, 3vw, 1.7rem);
        transition: var(--t);
    }

    .social-card:hover {
        transform: translateY(-6px);
    }

.social-linkedin:hover {
    border-color: #0a66c2;
    background: rgba(10,102,194,.12);
}

    .social-linkedin:hover i {
        color: #0a66c2;
    }

.social-github:hover {
    border-color: #e2e8f0;
    background: rgba(226,232,240,.1);
}

    .social-github:hover i {
        color: #e2e8f0;
    }

.social-discord:hover {
    border-color: #5865f2;
    background: rgba(88,101,242,.15);
}

    .social-discord:hover i {
        color: #5865f2;
    }

.social-instagram:hover {
    border-color: #e1306c;
    background: rgba(225,48,108,.12);
}

    .social-instagram:hover i {
        color: #e1306c;
    }

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    padding: clamp(.9rem, 2vw, 1.1rem) clamp(1.5rem, 4vw, 2.2rem);
    border-radius: 50px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    font-size: clamp(.88rem, 1.8vw, 1rem);
    transition: var(--t);
    box-shadow: 0 4px 15px rgba(37,211,102,.3);
}

    .btn-whatsapp:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(37,211,102,.5);
    }

/* =============================================
   FOOTER
   ============================================= */
.footer {
    padding: clamp(1.5rem, 3vw, 2rem);
    background: rgba(15,23,42,.6);
    border-top: 1px solid var(--border-dark);
    text-align: center;
}

    .footer p {
        font-size: clamp(.8rem, 1.5vw, .9rem);
        color: rgba(226,232,240,.6);
        margin: .3rem 0;
    }

.heart {
    color: var(--accent-2);
    animation: heartbeat 1s ease-in-out infinite;
    display: inline-block;
}

/* =============================================
   ANIMAÇÕES
   ============================================= */
@keyframes float {
    0%,100% {
        transform: translate(0,0);
    }

    33% {
        transform: translate(-30px,-30px);
    }

    66% {
        transform: translate(30px,30px);
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fade-in-left {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

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

@keyframes blink {
    0%,49%,100% {
        opacity: 1;
    }

    50%,99% {
        opacity: 0;
    }
}

@keyframes pulse {
    0%,100% {
        opacity: 1;
    }

    50% {
        opacity: .5;
    }
}

@keyframes glow-rotate {
    0%,100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(180deg);
    }
}

@keyframes heartbeat {
    0%,100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

@keyframes scroll-down {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    60%,100% {
        transform: translateY(8px);
        opacity: 0;
    }

    61% {
        transform: translateY(0);
        opacity: 0;
    }
}

@keyframes glow-pulse {
    0%,100% {
        box-shadow: 0 0 10px rgba(124,58,237,.3),inset 0 0 6px rgba(124,58,237,.1);
    }

    50% {
        box-shadow: 0 0 20px rgba(124,58,237,.6),inset 0 0 10px rgba(124,58,237,.2);
    }
}

@keyframes fade-pulse {
    0%,100% {
        opacity: .5;
    }

    50% {
        opacity: 1;
    }
}

@keyframes arrow-fade {
    0%,100% {
        opacity: .2;
    }

    50% {
        opacity: 1;
    }
}

.fade-in-up {
    animation: fade-in-up .6s ease-out forwards;
    opacity: 0;
}

.fade-in-left {
    animation: fade-in-left .6s ease-out forwards;
    opacity: 0;
}

/* =============================================
   RESPONSIVE — LAPTOP PEQUENO (< 1024px)
   ============================================= */
@media (max-width: 1024px) {
    .hero-content {
        gap: 2.5rem;
    }

    .about-wrapper {
        gap: 2.5rem;
    }
}

/* =============================================
   RESPONSIVE — TABLET (< 900px)
   ============================================= */
@media (max-width: 900px) {

    /* navbar */
    .nav-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(15,23,42,.98);
        backdrop-filter: blur(20px);
        padding: 1.5rem 2rem;
        gap: 1.2rem;
        z-index: 999;
        border-bottom: 1px solid var(--border-dark);
        margin-left: 0;
    }

        .nav-menu.active {
            display: flex;
        }

        .nav-menu a {
            font-size: 1rem;
        }

    .menu-toggle {
        display: flex;
        margin-left: auto;
        margin-right: .8rem;
    }

    .nav-container {
        justify-content: flex-start;
    }

    .nav-cta {
        margin-left: 0;
        font-size: .82rem;
        padding: .55rem 1.1rem;
    }

    /* hero */
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-tag {
        justify-content: center;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-image {
        max-width: 280px;
        margin: 0 auto;
    }

    /* about */
    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-content {
        align-items: flex-start;
    }

    /* timeline */
    .timeline::before {
        left: 14px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        padding-left: 50px;
        padding-right: 0;
    }

    .timeline-marker {
        left: 0;
    }

    .timeline-item:hover .timeline-content {
        transform: none;
    }

    /* projects */
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(280px,100%),1fr));
    }

    /* contact */
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 400px;
    }
}

/* =============================================
   RESPONSIVE — MOBILE GRANDE (< 640px)
   ============================================= */
@media (max-width: 640px) {

    .hero {
        padding: 2rem 1rem;
        min-height: calc(100vh - 70px);
    }

    .hero-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }

    .hero-image {
        max-width: 220px;
    }

    /* code card — simplifica no mobile */
    .code-block {
        font-size: .72rem;
        padding: 1rem;
    }

    /* about stats row — empilha se necessário */
    .about-stats-row {
        flex-wrap: wrap;
    }

    .mini-divider {
        display: none;
    }

    .mini-stat {
        min-width: 33%;
        border-right: 1px solid var(--border-dark);
    }

        .mini-stat:last-child {
            border-right: none;
        }

    /* projects — 1 coluna */
    .projects-grid {
        grid-template-columns: 1fr;
    }

    /* skills — 3 colunas */
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* section padding */
    .section {
        padding: 2.5rem 1rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    /* contact */
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .email-link {
        font-size: .95rem;
        word-break: break-word;
    }
}

/* =============================================
   RESPONSIVE — MOBILE PEQUENO (< 480px)
   ============================================= */
@media (max-width: 480px) {

    /* navbar */
    .nav-cta {
        display: none;
    }

    .menu-toggle {
        margin-right: 0;
    }

    /* hero */
    .hero-title {
        font-size: clamp(1.5rem, 8vw, 2rem);
        letter-spacing: -.5px;
    }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        font-size: .9rem;
    }

    .hero-stats {
        gap: .8rem;
        flex-direction: column;
        align-items: center;
    }

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

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

    .code-block {
        font-size: .68rem;
    }

    /* skills — 2 colunas no mobile pequeno */
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: .8rem;
    }

    /* timeline */
    .timeline-item,
    .timeline-item:nth-child(even) {
        padding-left: 42px;
    }

    .timeline-content {
        padding: 1rem;
    }

        .timeline-content h3 {
            font-size: .95rem;
        }

    /* contact */
    .social-grid {
        max-width: 100%;
    }

    .btn-whatsapp {
        font-size: .88rem;
        padding: .9rem 1.5rem;
        width: 100%;
        justify-content: center;
    }

    /* section */
    .section {
        padding: 2rem .8rem;
    }

    .section-title {
        font-size: 1.6rem;
    }
}

/* =============================================
   RESPONSIVE — MOBILE MÍNIMO (< 360px)
   ============================================= */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.4rem;
    }

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

    .social-grid {
        grid-template-columns: 1fr 1fr;
    }

    .badge {
        font-size: .7rem;
        padding: .3rem .7rem;
    }
}

/* =============================================
   4K / TELAS LARGAS (> 1600px)
   ============================================= */
@media (min-width: 1600px) {
    .container {
        max-width: 1400px;
    }

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

    html {
        font-size: 18px;
    }
}

/* =============================================
   BLAZOR ERROR UI
   ============================================= */
#blazor-error-ui {
    display: none;
}
