/* === RESET E VARIÁVEIS GLOBAIS === */
:root {
    --bg-dark: #0D1117;
    --bg-medium: #161B22;
    --border-color: #30363D;
    --text-primary: #C9D1D9;
    --text-secondary: #8B949E;
    --accent-blue: #58A6FF;
    --accent-blue-hover: #79c0ff;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === HEADER E NAVEGAÇÃO === */
header {
    background-color: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--text-primary);
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--accent-blue);
}


/* === LAYOUT PRINCIPAL (2 COLUNAS) === */
.main-content {
    display: flex;
    gap: 40px;
    padding-top: 60px;
    padding-bottom: 60px;
}

.left-column {
    width: 40%;
    position: sticky;
    top: 130px; 
    height: calc(100vh - 130px);
    align-self: flex-start;
}

.right-column {
    width: 60%;
    min-width: 0;
}

.profile-intro h1 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    color: var(--text-primary);
    font-weight: 700;
}

.profile-intro h2 {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    color: var(--accent-blue);
    font-weight: 500;
    margin-top: 5px;
}

.profile-intro .subtitle {
    color: var(--text-secondary);
    margin-top: 20px;
    font-size: 1rem;
}

.social-links {
    margin-top: 30px;
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--text-secondary);
    transition: color 0.3s ease, transform 0.3s ease;
}
.social-links a:hover {
    color: var(--accent-blue);
    transform: translateY(-3px);
}
.social-links i {
    width: 24px;
    height: 24px;
}


/* === CONTEÚDO DA COLUNA DIREITA === */
.content-section {
    padding-bottom: 80px;
}

.content-section > h2 {
    display: none; 
}

#sobre p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}
#sobre strong {
    color: var(--text-primary);
    font-weight: 500;
}

/* === TIMELINE DE EXPERIÊNCIA === */
#experiencia > h2 {
    display: block; 
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
    margin-bottom: 40px;
}

/* NOVO: Estilo para os subtítulos h3 */
#experiencia h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--accent-blue);
    margin-top: 60px;
    margin-bottom: 25px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}
#experiencia h3:first-of-type {
    margin-top: 0;
}


.timeline {
    position: relative;
    padding-left: 30px;
    border-left: 2px solid var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding: 10px 0;
    margin-top: -10px;
}
.timeline-item:last-child {
    margin-bottom: 0;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(88, 166, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(88, 166, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(88, 166, 255, 0);
    }
}

.timeline-dot {
    position: absolute;
    left: -39px;
    top: calc(50% - 7px);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--bg-dark);
    border: 3px solid var(--accent-blue);
    animation: pulse 2.5s infinite;
    cursor: pointer;
}

.timeline-tooltip {
    position: absolute;
    left: -270px; 
    top: 50%;
    transform: translateY(-50%) translateX(-10px);
    width: 220px;
    background-color: var(--bg-medium);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 15px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.timeline-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%; 
    transform: translateY(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent transparent var(--bg-medium);
}

.timeline-item:hover .timeline-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.timeline-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: block;
}

.timeline-title {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 4px;
}

.timeline-company {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.timeline-desc-main {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 10px;
    font-style: italic;
}

.timeline-desc {
    list-style: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 15px;
    padding-left: 0;
}
.timeline-desc li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 5px;
}
.timeline-desc li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: bold;
    font-size: 1.2rem;
    top: -2px;
}

/* === PROJETOS === */
#projetos h2 {
    display: block; 
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
    margin-bottom: 40px;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.project-card {
    background-color: var(--bg-medium);
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.project-title {
    font-size: 1.2rem;
    color: var(--accent-blue);
    font-weight: 600;
    margin-bottom: 2px;
}

.project-context {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 20px;
}

.project-subtitle {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-top: 15px;
    margin-bottom: 5px;
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.project-features {
    font-size: 0.9rem;
    color: var(--text-secondary);
    list-style: none;
    padding-left: 0;
    margin-top: 5px;
}

.project-features li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 5px;
}
.project-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: bold;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.project-tags span {
    background-color: rgba(88, 166, 255, 0.1);
    color: var(--accent-blue);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
}

.project-links {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 20px;
    align-items: center;
}

.project-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}
.project-links a:hover {
    color: var(--accent-blue);
}
.project-links a i {
    width: 18px;
    height: 18px;
}

/* === CONTATO E FOOTER === */
#contato {
    text-align: center;
    padding-top: 20px;
}

#contato h2 {
    display: block; 
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--text-primary);
    margin-bottom: 15px;
}
#contato p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

#contato form {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background-color: var(--bg-medium);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 14px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
}

.button-primary {
    width: 100%;
    padding: 14px 28px;
    background-color: var(--accent-blue);
    color: var(--bg-dark);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button-primary:hover {
    background-color: var(--accent-blue-hover);
}

.button-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-status-message {
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    border-radius: 6px;
    font-weight: 500;
}


footer {
    text-align: center;
    padding: 30px 0;
    color: var(--text-secondary);
    font-size: 0.8rem;
}
footer .tech-stack {
    font-size: 0.75rem;
}


/* === RESPONSIVIDADE === */
@media (max-width: 992px) {
    .main-content {
        flex-direction: column;
    }
    .left-column, .right-column {
        width: 100%;
    }
    .left-column {
        position: static;
        height: auto;
        padding-bottom: 40px;
    }
    nav.container {
        padding: 0 20px;
    }
    .timeline-tooltip {
        display: none;
    }
}

@media (max-width: 768px) {
    nav.container {
        flex-direction: column;
        gap: 10px;
        height: auto;
        padding: 15px 0;
    }
}