/* =========================================
   RESET & BASE
   ========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:        #0a0a0f;
    --bg-alt:    #0f0f18;
    --surface:   rgba(255,255,255,0.04);
    --border:    rgba(255,255,255,0.08);
    --accent:    #6c63ff;
    --accent2:   #00d4aa;
    --text:      #c8c8d8;
    --text-dim:  #7878a0;
    --white:     #ffffff;
    --radius:    14px;
    --font:      'Inter', sans-serif;
    --mono:      'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

::selection { background: var(--accent); color: #fff; }

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; }

/* =========================================
   SCROLLBAR
   ========================================= */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* =========================================
   NAV
   ========================================= */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 18px 0;
    transition: background 0.4s, padding 0.4s, backdrop-filter 0.4s;
}

#navbar.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.5px;
}
.nav-logo .dot { color: var(--accent); }

.nav-links {
    display: flex;
    gap: 36px;
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dim);
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

.btn-nav {
    background: var(--accent) !important;
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem !important;
    transition: opacity 0.2s !important;
}
.btn-nav:hover { opacity: 0.85; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform 0.3s;
}

/* =========================================
   HERO
   ========================================= */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.25;
    animation: float 8s ease-in-out infinite;
}
.orb-1 {
    width: 500px; height: 500px;
    background: var(--accent);
    top: -150px; left: -100px;
}
.orb-2 {
    width: 400px; height: 400px;
    background: var(--accent2);
    bottom: -100px; right: -80px;
    animation-delay: -3s;
}
.orb-3 {
    width: 300px; height: 300px;
    background: #ff6b9d;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -6s;
    opacity: 0.12;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50%       { transform: translate(30px, -30px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.profile-pic {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    box-shadow: 0 0 0 6px rgba(108,99,255,0.15), 0 0 40px rgba(108,99,255,0.3);
    margin-bottom: 8px;
    transition: transform 0.4s, box-shadow 0.4s;
}
.profile-pic:hover {
    transform: scale(1.06);
    box-shadow: 0 0 0 8px rgba(0,212,170,0.2), 0 0 60px rgba(0,212,170,0.3);
}

.hero-greeting {
    font-size: 1rem;
    color: var(--accent2);
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-name {
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 800;
    color: var(--white);
    letter-spacing: -1px;
    line-height: 1.1;
}

.hero-title {
    font-family: var(--mono);
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--accent);
    min-height: 2em;
}

.cursor {
    animation: blink 0.8s step-end infinite;
    color: var(--accent2);
}
@keyframes blink {
    50% { opacity: 0; }
}

.hero-desc {
    font-size: 0.95rem;
    color: var(--text-dim);
    margin-top: 4px;
}

.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 8px 30px rgba(108,99,255,0.4);
}
.btn-primary:hover { box-shadow: 0 12px 40px rgba(108,99,255,0.5); }

.btn-outline {
    border: 1.5px solid var(--border);
    color: var(--white);
    background: var(--surface);
    backdrop-filter: blur(10px);
}
.btn-outline:hover { border-color: var(--accent2); color: var(--accent2); }

.scroll-down {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-dim);
    font-size: 1.2rem;
    animation: bounce-y 2s ease-in-out infinite;
    z-index: 1;
}
@keyframes bounce-y {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

/* =========================================
   SECTIONS
   ========================================= */
.section { padding: 100px 24px; }
.section-alt { background: var(--bg-alt); }

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section-label {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.5px;
    margin-bottom: 48px;
}

/* =========================================
   SOBRE
   ========================================= */
.sobre-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 48px;
    align-items: start;
}

.sobre-text p {
    margin-bottom: 16px;
    font-size: 1rem;
    color: var(--text);
}
.sobre-text strong { color: var(--accent2); font-weight: 600; }

.sobre-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    transition: border-color 0.3s, transform 0.3s;
}
.stat-card:hover { border-color: var(--accent); transform: translateY(-4px); }

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
}
.stat-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-align: center;
    line-height: 1.3;
}

/* =========================================
   SKILLS
   ========================================= */
.skills-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.skill-group {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: border-color 0.3s, transform 0.3s;
}
.skill-group:hover { border-color: var(--accent); transform: translateY(-4px); }

.skill-group-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.skill-group-title i { color: var(--accent); }

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: rgba(108,99,255,0.1);
    border: 1px solid rgba(108,99,255,0.25);
    color: var(--accent2);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    cursor: default;
}
.tag:hover {
    background: rgba(0,212,170,0.15);
    border-color: var(--accent2);
    transform: translateY(-2px);
}

/* =========================================
   TIMELINE
   ========================================= */
.timeline {
    position: relative;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--accent2));
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    margin-bottom: 36px;
}

.timeline-dot {
    position: absolute;
    left: -28px;
    top: 22px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg);
    box-shadow: 0 0 12px rgba(108,99,255,0.6);
}

.timeline-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
    transition: border-color 0.3s, transform 0.3s;
}
.timeline-card:hover { border-color: var(--accent); transform: translateX(4px); }

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.timeline-role {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
}

.timeline-company {
    font-size: 0.85rem;
    color: var(--accent2);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.timeline-period {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--text-dim);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    padding: 4px 12px;
    border-radius: 50px;
    white-space: nowrap;
}

.timeline-desc {
    font-size: 0.92rem;
    color: var(--text);
    margin-bottom: 16px;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.timeline-tags span {
    font-size: 0.75rem;
    padding: 3px 12px;
    border-radius: 50px;
    background: rgba(108,99,255,0.1);
    border: 1px solid rgba(108,99,255,0.2);
    color: var(--text-dim);
}

/* =========================================
   EDUCAÇÃO
   ========================================= */
.edu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.edu-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    transition: border-color 0.3s, transform 0.3s;
}
.edu-card:hover { border-color: var(--accent2); transform: translateY(-4px); }

.edu-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(0,212,170,0.1);
    border: 1px solid rgba(0,212,170,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--accent2);
    flex-shrink: 0;
}

.edu-year {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--accent);
    display: block;
    margin-bottom: 4px;
}

.edu-info h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}

.edu-info p {
    font-size: 0.82rem;
    color: var(--text-dim);
    margin-bottom: 10px;
}

.edu-badge {
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 50px;
    background: rgba(108,99,255,0.12);
    border: 1px solid rgba(108,99,255,0.25);
    color: var(--accent);
    font-weight: 500;
}

/* =========================================
   CURSOS
   ========================================= */
.cursos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.curso-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: border-color 0.3s, transform 0.3s;
}
.curso-card:hover { border-color: var(--accent); transform: translateY(-3px); }

.curso-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(108,99,255,0.1);
    border: 1px solid rgba(108,99,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: var(--accent);
    flex-shrink: 0;
}

.curso-info h4 {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 3px;
    line-height: 1.3;
}

.curso-info span {
    font-size: 0.76rem;
    color: var(--text-dim);
    font-family: var(--mono);
}

/* =========================================
   PROJETOS
   ========================================= */
.projetos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.projeto-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
    min-width: 300px;
    transition: border-color 0.3s, transform 0.3s;
    cursor: pointer;
}
.projeto-card:hover {
    border-color: var(--accent2);
    transform: translateY(-4px);
}

.projeto-icon {
    font-size: 2rem;
    line-height: 1;
}

.projeto-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}
.projeto-info p {
    font-size: 0.85rem;
    color: var(--text-dim);
}
.projeto-info strong { color: var(--accent2); }

.projeto-arrow {
    margin-left: auto;
    color: var(--text-dim);
    font-size: 0.9rem;
    transition: color 0.3s;
}
.projeto-card:hover .projeto-arrow { color: var(--accent2); }

/* =========================================
   CONTATO
   ========================================= */
.contact-inner { text-align: center; }

.contact-desc {
    color: var(--text);
    font-size: 1rem;
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.contact-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white);
    transition: border-color 0.3s, transform 0.3s, background 0.3s;
}
.contact-card i { font-size: 1.2rem; color: var(--accent); }
.contact-card:hover {
    border-color: var(--accent);
    background: rgba(108,99,255,0.08);
    transform: translateY(-4px);
}
.contact-card-whatsapp i { color: #25d366; }
.contact-card-whatsapp:hover {
    border-color: #25d366;
    background: rgba(37,211,102,0.08);
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    text-align: center;
    padding: 28px;
    font-size: 0.85rem;
    color: var(--text-dim);
    border-top: 1px solid var(--border);
}
.heart { color: #ff6b9d; }

/* =========================================
   REVEAL ANIMATIONS
   ========================================= */
.reveal, .reveal-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible, .reveal-item.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-item:nth-child(2) { transition-delay: 0.1s; }
.reveal-item:nth-child(3) { transition-delay: 0.2s; }
.reveal-item:nth-child(4) { transition-delay: 0.3s; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: rgba(10,10,15,0.97);
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--border);
    }
    .hamburger { display: flex; }
    #navbar { position: fixed; }

    .sobre-grid { grid-template-columns: 1fr; }
    .sobre-stats { grid-template-columns: repeat(2, 1fr); }

    .timeline { padding-left: 20px; }
    .timeline-dot { left: -16px; }

    .timeline-header { flex-direction: column; }

    .section { padding: 72px 20px; }

    .hero-cta { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
    .sobre-stats { grid-template-columns: 1fr 1fr; }
    .cursos-grid { grid-template-columns: 1fr; }
    .edu-grid { grid-template-columns: 1fr; }
}
