@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
    --highlight-yellow: #fabb1c;
}

body {
    background-color: #0d1117;
    margin: 0;
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, 'Segoe UI Mono', Roboto Mono, monospace;
    color: #ffffff;
}

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-sizing: border-box;
    backdrop-filter: blur(4px);
}

.topbar-left {
    color: #ffffff;
    font-weight: 600;
}

.topbar-center {
    display: flex;
    gap: 28px;
}

.topbar-center a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.topbar-center a:hover {
    color: var(--highlight-yellow);
    transform: scale(1.1);
}

.topbar-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

.icon {
    display: inline-flex;
    width: 28px;
    height: 28px;
    color: #ffffff;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.icon:hover {
    color: var(--highlight-yellow);
    transform: scale(1.1);
}

.icon svg {
    width: 20px;
    height: 20px;
    color: inherit;
}

main {
    padding-top: 84px;
}

@media (max-width: 700px) {
    .topbar-center { display: none; }
}

/* Hero / seção esquerda */
.hero {
    display: block;
    min-height: calc(100vh - 84px);
}

.hero-left {
    max-width: 50vw;
    box-sizing: border-box;
    padding-left: 8rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - 84px);
}

.hero-left h1 {
    font-size: 64px;
    line-height: 1.02;
    margin: 0;
    font-weight: 700;
}

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background-color: var(--highlight-yellow);
    margin-left: 4px;
    animation: blink 0.7s infinite;
}

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

.subtitle {
    margin-top: 12px;
    color: #c9d1d9;
    font-size: 18px;
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    background: var(--highlight-yellow);
    color: #0b0b0b;
    padding: 12px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    width: fit-content;
}

.btn-contact svg {
    width: 20px;
    height: 20px;
    color: inherit;
}

@media (max-width: 900px) {
    .hero-left h1 { font-size: 44px; }
}

@media (max-width: 700px) {
    .hero-left { padding: 20px; max-width: 100%; }
    .projects-grid { grid-template-columns: 1fr; }
}

/* Componente de título reutilizável */
.section-title-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 60px 0 40px 0;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
    color: #ffffff;
}

.section-title-line {
    flex: 1;
    height: 2px;
    background: var(--highlight-yellow);
}

.sobre-mim-section {
    padding: 40px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-content {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    margin-top: 40px;
    max-width: 100%;
}

.sobre-mim-left {
    flex: 1;
}

.sobre-mim-right {
    flex: 1;
    display: flex;
    justify-content: center;
}

.sobre-mim-text {
    color: #8b949e;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 30px 0;
}

.highlight {
    color: var(--highlight-yellow);
    font-weight: 700;
}

.tech-icons {
    display: flex;
    gap: 20px;
    align-items: center;
    margin: 30px 0;
    flex-wrap: wrap;
}

.tech-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tech-icon:hover {
    color: var(--highlight-yellow);
    transform: scale(1.15);
}

.tech-icon svg {
    width: 32px;
    height: 32px;
    color: inherit;
}

.about-photo {
    width: 300px;
    height: 300px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    object-fit: cover;
}

.experiencia-section {
    padding: 40px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.experiencia-section .section-content {
    display: flex;
    gap: var(--gap-md);
    margin-top: clamp(20px, 4vw, 40px);
    justify-content: center;
}

.experience-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 150px;
}

.experience-item {
    padding: 12px 18px;
    cursor: pointer;
    color: #8b949e;
    font-size: 14px;
    border-left: 2px solid transparent;
    transition: all 0.3s ease;
}

.experience-item:hover {
    color: #ffffff;
}

.experience-item.active {
    color: var(--highlight-yellow);
    border-left-color: var(--highlight-yellow);
}

.experience-content {
    flex: 1;
    max-width: 40%;
}

.job {
    display: none;
}

.job-title {
    font-size: 18px;
    color: #ffffff;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.job-date {
    color: #8b949e;
    font-size: 14px;
    margin: 0 0 16px 0;
}

.job-description-wrapper {
    border-left: 2px solid #8b949e;
    padding-left: 16px;
}

.job-description {
    color: #8b949e;
    line-height: 1.6;
    margin: 0;
    font-size: 14px;
}

.projetos-section {
    padding: 40px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.projects-grid {
    max-width: 1000px;
    margin: 200px auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 60px;
    align-items: stretch;
    justify-items: stretch;
}

.projects-grid a {
    text-decoration: none;
    color: inherit;
    display: flex;
    width: 100%;
    height: 100%;
}

.project-card {
    width: 100%;
    height: 100%;
    background-color: #161b22;
    padding: 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.project-card:hover {
    background-color: #1c2128;
    transform: translateY(-4px);
    border: 1px solid var(--highlight-yellow);
    box-shadow: 0 0 16px rgba(250, 187, 28, 0.3);
}

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

.project-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    flex: 1;
    text-align: left;
}

.project-icon {
    width: 24px;
    height: 24px;
    color: var(--highlight-yellow);
    flex-shrink: 0;
}

.project-description {
    color: #8b949e;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    text-align: left;
}

.footer {
    padding: 40px 20px;
    text-align: center;
    background-color: #0d1117;
    border-top: 1px solid #21262d;
    margin-top: 60px;
}

.footer p {
    color: #8b949e;
    font-size: 14px;
    margin: 0;
    letter-spacing: 0.5px;
}