:root {
    --primary-color: #64b5f6; /* Um azul mais claro e moderno */
    --primary-color-hover: #90caf9; /* Um azul ainda mais claro para o hover */
    --background-color: #0d1117;
    --surface-color: #1f242c;
    --border-color: #30363d;
    --text-color: #8b949e;
    --heading-color: #ffffff;
    --font-primary: 'Inter', sans-serif;
    --font-monospace: 'Roboto Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

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

.section-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    color: var(--heading-color);
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
}

/* --- 2. COMPONENTES REUTILIZÁVEIS --- */
.button {
    display: inline-block;
    background-color: var(--primary-color); /* Azul */
    color: #000;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 1px solid transparent;
    text-align: center;
}

.button:hover {
    background-color: var(--primary-color-hover); /* Azul mais claro */
    transform: translateY(-3px);
}

.button--outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.button--outline:hover {
    background-color: rgba(100, 181, 246, 0.1);
}

.button--small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* --- 3. BARRA DE NAVEGAÇÃO --- */
.navbar {
    background-color: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.navbar__logo {
    color: var(--primary-color); /* Azul */
    font-family: var(--font-monospace);
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
}

.navbar__menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.navbar__link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.navbar__link:hover {
    color: var(--primary-color); /* Azul */
}

.navbar__hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.navbar__hamburger-bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--heading-color);
    transition: all 0.3s ease-in-out;
}

/* --- 4. SEÇÃO HERO --- */
.hero {
    min-height: 90vh;
    display: grid;
    place-items: center;
    padding: 4rem 1.5rem;
}

.hero__container {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1100px;
}

.hero__image-wrapper {
    flex-shrink: 0;
}

.hero__image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 4px solid var(--primary-color); /* Azul */
    object-fit: cover;
}

.hero__greeting {
    display: block;
    font-family: var(--font-monospace);
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.hero__title {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    color: var(--heading-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.hero__subtitle {
    font-size: 1.1rem;
    max-width: 50ch;
    margin-bottom: 2rem;
}

/* --- 5. SEÇÃO SOBRE --- */
.about {
    padding: 5rem 1.5rem;
    background-color: var(--surface-color);
}

.about__container {
    max-width: 800px;
    margin: 0 auto;
}

.about__content {
    text-align: center;
}

.about__description {
    margin-bottom: 3rem;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-color);
}

.about__skills-title {
    color: var(--heading-color);
    margin-bottom: 1.5rem;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.tech-badge {
    background-color: rgba(100, 181, 246, 0.1);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 4px;
    border: 1px solid rgba(100, 181, 246, 0.3);
    font-size: 0.95rem;
    font-weight: 500;
}

.tech-badge--small {
    padding: 4px 10px;
    font-size: 0.8rem;
}

.about__resume-action {
    margin-top: 2rem;
}

/* --- 6. SEÇÃO JORNADA (TIMELINE) --- */
.journey {
    padding: 5rem 1.5rem;
}

.journey__container {
    max-width: 800px;
    margin: 0 auto;
}

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

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline__item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline__item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--background-color);
    border: 4px solid var(--primary-color);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}

.timeline__item:nth-child(odd) { left: 0; }
.timeline__item:nth-child(even) { left: 50%; }

.timeline__item:nth-child(odd)::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 30px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid var(--surface-color);
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent var(--surface-color);
}

.timeline__item:nth-child(even)::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 30px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid var(--surface-color);
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--surface-color) transparent transparent;
}

.timeline__item:nth-child(even)::after { left: -10px; }

.timeline__content {
    padding: 20px;
    background-color: var(--surface-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.timeline__year {
    color: var(--primary-color);
    font-family: var(--font-monospace);
    margin-bottom: 0.5rem;
}

.timeline__description {
    font-size: 0.95rem;
    color: var(--text-color);
}

/* --- 7. SEÇÃO SERVIÇOS --- */
.services {
    padding: 5rem 1.5rem;
}

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

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2rem;
    background-color: var(--surface-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card__title {
    color: var(--heading-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.service-card__description {
    font-size: 0.95rem;
    color: var(--text-color);
}

/* --- 8. SEÇÃO PROJETOS --- */
.projects {
    padding: 5rem 1.5rem;
    background-color: var(--surface-color);
}

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

.projects__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    flex: 1 1 300px;
    max-width: 375px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.project-card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-card__content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-card__title {
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}

.project-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-card__detail {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.project-card__detail strong {
    color: var(--heading-color);
}

.project-card__actions {
    margin-top: auto;
    padding-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

/* --- 9. RODAPÉ --- */
.footer {
    padding: 4rem 1.5rem;
    text-align: center;
}

.footer__container {
    max-width: 800px;
    margin: 0 auto;
}

.footer__text {
    margin-bottom: 2rem;
}

.footer__socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer__copyright {
    font-size: 0.9rem;
}

/* --- 10. ANIMAÇÕES E KEYFRAMES --- */
@keyframes blink {
    50% { opacity: 0; }
}

.cursor {
    animation: blink 1s step-end infinite;
}

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

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- 11. DESIGN RESPONSIVO --- */
@media (max-width: 768px) {
    .navbar__menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--background-color);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        gap: 0;
        border-top: 1px solid var(--border-color);
        padding-bottom: 1rem;
    }

    .navbar__menu.active {
        left: 0;
    }

    .navbar__item {
        padding: 1rem 0;
    }

    .navbar__hamburger {
        display: block;
    }

    .navbar__hamburger.active .navbar__hamburger-bar:nth-child(2) { opacity: 0; }
    .navbar__hamburger.active .navbar__hamburger-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .navbar__hamburger.active .navbar__hamburger-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .hero__container {
        flex-direction: column;
        text-align: center;
    }

    .hero__actions {
        justify-content: center;
        flex-direction: column;
    }

    .hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .timeline::after {
        left: 20px;
    }

    .timeline__item {
        width: 100%;
        padding-left: 50px;
        padding-right: 15px;
    }

    .timeline__item:nth-child(odd),
    .timeline__item:nth-child(even) { left: 0; }

    .timeline__item::after { left: 10px; }

    .timeline__item:nth-child(even)::before,
    .timeline__item:nth-child(odd)::before {
        left: 40px;
        border-width: 10px 10px 10px 0;
        border-color: transparent var(--surface-color) transparent transparent;
    }
}