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

:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #0f1630;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --accent: #6366f1;
    --accent-light: #818cf8;
    --accent-glow: rgba(99, 102, 241, 0.35);
    --teal: #22d3ee;
    --teal-glow: rgba(34, 211, 238, 0.25);
    --text-primary: #e2e8f0;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --border: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(99, 102, 241, 0.4);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ===================== NOISE TEXTURE ===================== */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

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

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 99px;
}

/* ===================== NAVBAR ===================== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

#navbar.scrolled {
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 12px 32px;
}

.nav-logo {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    text-decoration: none;
}

.nav-logo span {
    color: var(--accent-light);
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
    margin: 5px 0;
}

/* ===================== HERO ===================== */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    position: relative;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.hero-orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(99, 102, 241, 0.2);
    top: 10%;
    left: 10%;
    animation: floatOrb 8s ease-in-out infinite;
}

.hero-orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(34, 211, 238, 0.15);
    bottom: 15%;
    right: 10%;
    animation: floatOrb 10s ease-in-out infinite reverse;
}

@keyframes floatOrb {

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

    50% {
        transform: translate(30px, -30px) scale(1.05);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid var(--border-accent);
    border-radius: 99px;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent-light);
    margin-bottom: 28px;
    animation: fadeInDown 0.6s ease both;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--teal);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

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

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.hero-name {
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 16px;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-name .gradient-text {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-family: 'Fira Code', monospace;
    font-size: 1rem;
    color: var(--teal);
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 40px;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: #fff;
    padding: 13px 28px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 0 24px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px var(--accent-glow);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 13px 28px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid var(--border);
    transition: var(--transition);
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* ===================== SECTIONS ===================== */
.section {
    padding: 100px 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.section-label {
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: var(--accent-light);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-label::after {
    content: '';
    flex: 1;
    max-width: 60px;
    height: 1px;
    background: var(--border-accent);
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 48px;
}

/* ===================== SOBRE ===================== */
#sobre .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

#sobre .about-text p {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 1rem;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
    font-family: 'Fira Code', monospace;
    transition: var(--transition);
}

.skill-tag:hover {
    border-color: var(--border-accent);
    color: var(--accent-light);
    background: rgba(99, 102, 241, 0.08);
}

/* ===================== TIMELINE / HISTÓRIA ===================== */
.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) 0%, transparent 100%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 36px;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 6px;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent-glow);
}

.timeline-period {
    font-family: 'Fira Code', monospace;
    font-size: 0.78rem;
    color: var(--teal);
    margin-bottom: 4px;
}

.timeline-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.timeline-desc {
    color: var(--text-muted);
    font-size: 0.925rem;
}

.timeline-desc a {
    color: var(--accent-light);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.timeline-desc a:hover {
    border-bottom-color: var(--accent-light);
}

/* ===================== EXPERIÊNCIA ===================== */
.exp-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.exp-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.exp-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.exp-card:hover {
    border-color: var(--border-accent);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.exp-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
}

.exp-company {
    font-size: 1.1rem;
    font-weight: 700;
}

.exp-badge {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 99px;
    white-space: nowrap;
    flex-shrink: 0;
}

.exp-badge.current {
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.3);
    color: var(--teal);
}

.exp-badge.past {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--accent-light);
}

.exp-period {
    font-family: 'Fira Code', monospace;
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-bottom: 14px;
}

.exp-role {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent-light);
    margin-bottom: 14px;
}

.exp-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.exp-list li {
    font-size: 0.875rem;
    color: var(--text-muted);
    padding-left: 16px;
    position: relative;
}

.exp-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* ===================== PORTFOLIO ===================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.portfolio-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    transition: var(--transition);
    display: block;
    opacity: 0;
    transform: scale(0.95);
}

.portfolio-card.visible {
    opacity: 1;
    transform: scale(1);
}

.portfolio-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
}

.portfolio-thumb {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-thumb {
    transform: scale(1.04);
}

.portfolio-thumb-wrapper {
    overflow: hidden;
    position: relative;
}

.portfolio-thumb-wrapper::after {
    content: '↗';
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(10, 14, 26, 0.7);
    backdrop-filter: blur(6px);
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-thumb-wrapper::after {
    opacity: 1;
}

.portfolio-info {
    padding: 18px;
}

.portfolio-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.portfolio-desc {
    font-size: 0.82rem;
    color: var(--text-dim);
}

/* Portfolio sem imagem (GitHub) */
.portfolio-icon-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 170px;
    gap: 12px;
    padding: 24px;
}

.portfolio-icon-card svg {
    opacity: 0.7;
}

.portfolio-icon-card span {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
}

/* ===================== CONTATO / FOOTER ===================== */
#contato {
    background: linear-gradient(0deg, var(--bg-secondary) 0%, transparent 100%);
}

.contact-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 24px 60px;
    text-align: center;
}

.contact-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 24px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.contact-link:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
    color: var(--accent-light);
    transform: translateY(-2px);
}

.contact-link svg {
    flex-shrink: 0;
}

footer {
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 24px;
    color: var(--text-dim);
    font-size: 0.8rem;
}

footer a {
    color: var(--accent-light);
    text-decoration: none;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 14, 26, 0.95);
        backdrop-filter: blur(20px);
        padding: 16px;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    #sobre .about-grid {
        grid-template-columns: 1fr;
    }

    #navbar {
        padding: 14px 20px;
    }

    #navbar.scrolled {
        padding: 10px 20px;
    }
}

/* ===================== CURSOS ALURA ===================== */
.page-hero {
    min-height: 38vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 60px;
    position: relative;
}

.page-hero .hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.page-hero .orb-1 {
    width: 360px;
    height: 360px;
    background: rgba(99, 102, 241, 0.18);
    top: 5%;
    left: 5%;
    animation: floatOrb 8s ease-in-out infinite;
}

.page-hero .orb-2 {
    width: 260px;
    height: 260px;
    background: rgba(34, 211, 238, 0.12);
    bottom: 5%;
    right: 8%;
    animation: floatOrb 10s ease-in-out infinite reverse;
}

.page-hero-content {
    position: relative;
    z-index: 1;
}

.page-hero-content .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid var(--border-accent);
    border-radius: 99px;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent-light);
    margin-bottom: 20px;
}

.page-hero-content .hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--teal);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* ===== COURSES SECTION ===== */
.courses-section {
    padding: 0 24px 100px;
    max-width: 1100px;
    margin: 0 auto;
}

/* ===== GROUP BLOCK ===== */
.course-group {
    margin-bottom: 64px;
}

.group-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.group-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.group-icon.sql         { background: rgba(34, 211, 238, 0.12); border: 1px solid rgba(34, 211, 238, 0.3); }
.group-icon.programacao { background: rgba(99, 102, 241, 0.12); border: 1px solid rgba(99, 102, 241, 0.3); }
.group-icon.negocios    { background: rgba(251, 191, 36, 0.12); border: 1px solid rgba(251, 191, 36, 0.3); }
.group-icon.pessoal     { background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.3); }

.group-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.group-count {
    font-family: 'Fira Code', monospace;
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-top: 2px;
}

/* ===== COURSE CARDS GRID ===== */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.course-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px 22px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateY(18px);
}

.course-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.course-card:hover {
    border-color: var(--border-accent);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.course-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.course-date {
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 6px;
}

.course-date::before {
    content: '✓';
    color: var(--teal);
}

/* ===== SUMMARY BAR ===== */
.summary-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 52px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex: 1;
    min-width: 100px;
}

.summary-item strong {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-light), var(--teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.summary-item span {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-align: center;
    font-family: 'Fira Code', monospace;
}

/* ===== BACK LINK ===== */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 40px;
}

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

@media (max-width: 600px) {
    .courses-grid {
        grid-template-columns: 1fr;
    }

    .summary-bar {
        gap: 10px;
    }
}