:root {
    --bg-primary: #020617;
    --bg-secondary: #0f172a;
    --bg-card: rgba(15, 23, 42, 0.78);
    --bg-card-solid: #0b1220;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-soft: rgba(148, 163, 184, 0.14);
    --border-strong: rgba(34, 211, 238, 0.24);
    --cyan: #22d3ee;
    --blue: #60a5fa;
    --green: #22c55e;
    --red: #ef4444;
    --pink: #ec4899;
    --yellow: #facc15;
    --orange: #fb923c;
    --shadow-main: 0 18px 60px rgba(0, 0, 0, 0.35);
    --shadow-soft: 0 10px 30px rgba(2, 6, 23, 0.35);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.08), transparent 28%),
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.08), transparent 22%),
        linear-gradient(180deg, #020617 0%, #020617 100%);
    color: var(--text-primary);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a,
button {
    transition:
        color 0.25s ease,
        border-color 0.25s ease,
        background-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

::selection {
    background: var(--cyan);
    color: #082f49;
}

.glass-card {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(8, 15, 32, 0.92));
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-main);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

nav {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

nav .xl\:flex a {
    position: relative;
}

nav .xl\:flex a::after {
    content: "";
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.35rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

nav .xl\:flex a:hover::after {
    transform: scaleX(1);
}

#mobile-menu {
    border-top: 1px solid rgba(148, 163, 184, 0.08);
}

#inicio {
    position: relative;
    overflow: hidden;
}

#inicio::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.08), transparent 25%),
        radial-gradient(circle at 80% 30%, rgba(59, 130, 246, 0.10), transparent 30%);
    pointer-events: none;
}

#inicio h1 {
    letter-spacing: -0.04em;
}

#inicio img {
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06),
        0 25px 80px rgba(0, 0, 0, 0.45);
}

h1, h2, h3, h4 {
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

#sobre p,
#experiencia p,
#industria p,
#formacao p,
#atuacao p,
#projetos p,
#github-stats p,
#eventos p,
#youtube p,
#contato p,
#musica-voluntariado p,
#competencias li {
    line-height: 1.7;
}

#atuacao article,
#experiencia article,
#industria article,
#formacao article,
#projetos article,
#github-stats article,
#eventos article,
#youtube article,
#musica-voluntariado article,
#contato a,
.repo-card {
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

#atuacao article::before,
#experiencia article::before,
#industria article::before,
#formacao article::before,
#projetos article::before,
#github-stats article::before,
#eventos article::before,
#youtube article::before,
#musica-voluntariado article::before,
#contato a::before,
.repo-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.45), transparent);
    opacity: 0;
    transition: opacity 0.25s ease;
}

#atuacao article:hover::before,
#experiencia article:hover::before,
#industria article:hover::before,
#formacao article:hover::before,
#projetos article:hover::before,
#github-stats article:hover::before,
#eventos article:hover::before,
#youtube article:hover::before,
#musica-voluntariado article:hover::before,
#contato a:hover::before,
.repo-card:hover::before {
    opacity: 1;
}

#atuacao article:hover,
#experiencia article:hover,
#industria article:hover,
#formacao article:hover,
#projetos article:hover,
#github-stats article:hover,
#eventos article:hover,
#youtube article:hover,
#musica-voluntariado article:hover,
#contato a:hover,
.repo-card:hover {
    transform: translateY(-4px);
}

.timeline-line {
    position: relative;
}

.timeline-line::before {
    content: "";
    position: absolute;
    left: 1.15rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, rgba(34, 211, 238, 0.45), rgba(59, 130, 246, 0.2));
}

#timeline article span {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#timeline article:hover span {
    transform: scale(1.08);
    box-shadow: 0 0 0 8px rgba(34, 211, 238, 0.12);
}

#timeline article > div {
    transition: border-color 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
    box-shadow: var(--shadow-soft);
}

#timeline article:hover > div {
    transform: translateY(-2px);
    border-color: rgba(34, 211, 238, 0.35);
    background-color: rgba(8, 15, 32, 0.95);
}

#competencias span {
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

#competencias span:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.18);
}

button:hover {
    transform: translateY(-1px);
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid rgba(34, 211, 238, 0.9);
    outline-offset: 3px;
    border-radius: 0.75rem;
}

#repo-status,
#github-profile-status {
    min-height: 1.5rem;
}

.repo-card {
    min-height: 260px;
}

.repo-card h4 {
    word-break: break-word;
}

#youtube .aspect-video {
    aspect-ratio: 16 / 9;
    background: #020617;
}

#youtube iframe {
    border: 0;
    display: block;
}

/* CONTATO MELHORADO */
.social-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 210px;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(51, 65, 85, 1);
    background: #020617;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.social-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.28);
}

.social-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 1rem;
}

.social-icon-wrap {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(71, 85, 105, 0.55);
}

.social-icon {
    font-size: 1.75rem;
}

.social-action {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.42rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(71, 85, 105, 0.6);
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.65);
}

.social-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
    color: #ffffff;
}

.social-text {
    color: #94a3b8;
    font-size: 0.92rem;
    line-height: 1.65;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.social-card-cyan:hover { border-color: #22d3ee; }
.social-card-white:hover { border-color: #ffffff; }
.social-card-blue:hover { border-color: #3b82f6; }
.social-card-green:hover { border-color: #22c55e; }
.social-card-pink:hover { border-color: #ec4899; }
.social-card-yellow:hover { border-color: #facc15; }

footer {
    background: linear-gradient(180deg, rgba(2, 6, 23, 0), rgba(2, 6, 23, 0.6));
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #020617;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #164e63, #1d4ed8);
    border-radius: 999px;
}

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

.fixed.bottom-6.right-6 a {
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.fixed.bottom-6.right-6 a:hover {
    transform: scale(1.1);
}

.fixed.bottom-6.right-6 a:nth-child(1):hover {
    box-shadow: 0 16px 30px rgba(34, 197, 94, 0.35);
}

.fixed.bottom-6.right-6 a:nth-child(2):hover {
    box-shadow: 0 16px 30px rgba(34, 211, 238, 0.35);
}

.fixed.bottom-6.right-6 a:nth-child(3):hover {
    box-shadow: 0 16px 30px rgba(239, 68, 68, 0.35);
}

@media (max-width: 1024px) {
    #inicio h1 {
        line-height: 1.05;
    }

    .timeline-line::before {
        left: 1rem;
    }
}

@media (max-width: 768px) {
    body {
        background:
            radial-gradient(circle at top left, rgba(34, 211, 238, 0.06), transparent 22%),
            linear-gradient(180deg, #020617 0%, #020617 100%);
    }

    #inicio {
        border-radius: 1.5rem;
    }

    #inicio h1 {
        font-size: clamp(2.2rem, 8vw, 3.5rem);
    }

    .timeline-line {
        padding-left: 2.4rem;
    }

    .timeline-line::before {
        left: 0.85rem;
    }

    .fixed.bottom-6.right-6 {
        bottom: 1rem;
        right: 1rem;
    }

    .fixed.bottom-6.right-6 a {
        width: 3.2rem;
        height: 3.2rem;
    }

    .social-card {
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .glass-card,
    #atuacao article,
    #experiencia article,
    #industria article,
    #formacao article,
    #projetos article,
    #github-stats article,
    #eventos article,
    #youtube article,
    #musica-voluntariado article,
    #contato a,
    .repo-card {
        border-radius: 1rem;
    }

    #inicio .flex.flex-wrap.gap-4 a {
        width: 100%;
        justify-content: center;
    }
}


.timeline-column {
    position: relative;
}

.timeline-heading {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.timeline-heading-icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.timeline-line-corporate::before {
    background: linear-gradient(to bottom, rgba(251, 146, 60, 0.55), rgba(234, 88, 12, 0.18));
}

.timeline-line-academic::before {
    background: linear-gradient(to bottom, rgba(34, 211, 238, 0.45), rgba(59, 130, 246, 0.2));
}

.timeline-dot {
    position: absolute;
    left: -1.35rem;
    top: 0.25rem;
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.04);
}

.timeline-card {
    background: #020617;
    border: 1px solid rgba(51, 65, 85, 1);
    border-radius: 0.9rem;
    padding: 1.25rem;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.timeline-card:hover {
    transform: translateY(-2px);
    border-color: rgba(34, 211, 238, 0.28);
}

.timeline-period {
    font-size: 0.875rem;
    color: #94a3b8;
    margin-bottom: 0.25rem;
}

.timeline-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-top: 0.15rem;
}

.timeline-company {
    font-weight: 600;
    margin-top: 0.2rem;
}

.timeline-description {
    color: #94a3b8;
    line-height: 1.7;
    margin-top: 0.9rem;
}

@media (max-width: 768px) {
    .timeline-heading {
        align-items: flex-start;
    }

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

    .timeline-card {
        padding: 1rem;
    }
}
