/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #1a1a2e; /* Cor de fundo escura */
    overflow-x: hidden; /* Evita scroll horizontal */
}

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

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: #61DAFB; /* Azul vibrante */
    margin-bottom: 20px;
}

h2 {
    font-size: 2.5em;
    text-align: center;
    padding-bottom: 10px;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: #61DAFB;
    border-radius: 2px;
}

a {
    color: #61DAFB;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #a4f2ff;
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

.primary-btn {
    background-color: #61DAFB;
    color: #1a1a2e;
    border: 2px solid #61DAFB;
}

.primary-btn:hover {
    background-color: #a4f2ff;
    color: #1a1a2e;
    transform: translateY(-2px);
}

.secondary-btn {
    background-color: transparent;
    color: #61DAFB;
    border: 2px solid #61DAFB;
}

.secondary-btn:hover {
    background-color: #61DAFB;
    color: #1a1a2e;
    transform: translateY(-2px);
}

.icon {
    font-size: 0.9em;
    vertical-align: middle;
}

/* Header */
.header {
    background-color: #0F0F1A; /* Fundo mais escuro para o cabeçalho */
    padding: 15px 0;
    border-bottom: 1px solid #2e2e4e;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8em;
    font-weight: 700;
    color: #61DAFB;
}

.nav-list {
    display: flex;
    gap: 25px;
}

.nav-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.05em;
    color: #e0e0e0;
    padding: 5px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #61DAFB;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    background-color: #1a1a2e;
    padding: 100px 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px); /* Ajusta para a altura do header */
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-pic {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #61DAFB;
    margin-bottom: 30px;
    box-shadow: 0 0 20px rgba(97, 218, 251, 0.5);
}

.hero-text h2 {
    font-size: 3.2em;
    margin-bottom: 15px;
    line-height: 1.2;
    color: #61DAFB;
}

.hero-text .tagline {
    font-size: 1.5em;
    color: #ffffff;
    margin-bottom: 25px;
    font-weight: 300;
}

.hero-text p {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #b0b0b0;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Common Section Styles */
section {
    padding: 80px 0;
    border-top: 1px solid #2e2e4e;
    background-color: #21213c; /* Alterna o fundo para as seções */
}

section:nth-of-type(even) {
    background-color: #1a1a2e;
}

/* About Section */
.about-section p {
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto 20px auto;
    text-align: justify;
    color: #b0b0b0;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.skill-category {
    background-color: #0F0F1A;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
    border: 1px solid #2e2e4e;
}

.skill-category:hover {
    transform: translateY(-5px);
    border-color: #61DAFB;
}

.skill-category h3 {
    color: #61DAFB;
    font-size: 1.6em;
    margin-bottom: 15px;
    text-align: center;
}

.skill-category ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.skill-category li {
    background-color: #2e2e4e;
    color: #e0e0e0;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.95em;
    white-space: nowrap;
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 40px auto;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #61DAFB;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 20px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    right: -10px;
    background-color: #61DAFB;
    border: 4px solid #1a1a2e;
    top: 30px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(even)::after {
    left: -8px; /* Ajuste para o lado esquerdo */
}

.timeline-item-content {
    padding: 20px 30px;
    background-color: #0F0F1A;
    position: relative;
    border-radius: 8px;
    border: 1px solid #2e2e4e;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.timeline-item h3 {
    color: #61DAFB;
    font-size: 1.5em;
    margin-bottom: 5px;
}

.timeline-item .date {
    color: #bbb;
    font-size: 0.9em;
    margin-bottom: 10px;
    font-style: italic;
}

.timeline-item ul {
    list-style: disc;
    margin-left: 20px;
    color: #b0b0b0;
}

.timeline-item li {
    margin-bottom: 5px;
}

/* Projects Section */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background-color: #0F0F1A;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
    border: 1px solid #2e2e4e;
    text-align: center;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: #61DAFB;
}

.project-card h3 {
    color: #61DAFB;
    font-size: 1.7em;
    margin-bottom: 15px;
}

.project-card p {
    color: #b0b0b0;
    margin-bottom: 25px;
}

.project-btn {
    font-size: 0.95em;
    padding: 10px 20px;
    border-radius: 25px;
}

.github-links {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px dashed #2e2e4e;
}

.github-links p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #b0b0b0;
}

.github-links .btn {
    margin: 0 10px;
}

/* Education Section */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.education-item {
    background-color: #0F0F1A;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    border: 1px solid #2e2e4e;
}

.education-item h3 {
    color: #61DAFB;
    font-size: 1.6em;
    margin-bottom: 15px;
}

.education-item ul {
    list-style: disc;
    margin-left: 20px;
    color: #b0b0b0;
}

.education-item li {
    margin-bottom: 8px;
}

/* Contact Section */
.contact-section {
    text-align: center;
}

.contact-tagline {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #b0b0b0;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto 50px auto;
    background-color: #0F0F1A;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    border: 1px solid #2e2e4e;
    text-align: left;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #61DAFB;
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #4a4a6e;
    border-radius: 5px;
    background-color: #2e2e4e;
    color: #e0e0e0;
    font-size: 1em;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a0a0a0;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #61DAFB;
    box-shadow: 0 0 0 2px rgba(97, 218, 251, 0.3);
}

.contact-form button[type="submit"] {
    width: auto;
    padding: 12px 30px;
    font-size: 1.1em;
    cursor: pointer;
    margin-top: 10px;
}

.form-message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
    display: none; /* Escondido por padrão */
}

.form-message.success {
    background-color: #4CAF50;
    color: white;
}

.form-message.error {
    background-color: #f44336;
    color: white;
}

.contact-info {
    margin-top: 30px;
    font-size: 1.1em;
    color: #b0b0b0;
}

.contact-info p {
    margin-bottom: 10px;
}

.contact-info a {
    color: #61DAFB;
}

.social-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    background-color: #2e2e4e;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: #61DAFB;
    color: #1a1a2e;
}


/* Footer */
.footer {
    background-color: #0F0F1A;
    color: #b0b0b0;
    text-align: center;
    padding: 30px 0;
    font-size: 0.9em;
    border-top: 1px solid #2e2e4e;
}

.footer p {
    margin-bottom: 8px;
}

/* Responsividade */
@media (max-width: 992px) {
    .nav-list {
        gap: 15px;
    }
    .hero-text h2 {
        font-size: 2.5em;
    }
    .hero-text .tagline {
        font-size: 1.3em;
    }
    h2 {
        font-size: 2em;
    }
    .timeline::before {
        left: 20px; /* Alinha a linha do tempo à esquerda em telas menores */
    }
    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 20px;
        left: 0 !important;
    }
    .timeline-item::after {
        left: 15px !important; /* Move o círculo para o lado esquerdo */
        right: auto;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        text-align: center;
    }
    .nav {
        margin-top: 20px;
    }
    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
    }
    .nav-link {
        font-size: 0.9em;
        padding: 5px 10px;
    }
    .hero-section {
        padding: 80px 0;
    }
    .hero-text h2 {
        font-size: 2em;
    }
    .hero-text .tagline {
        font-size: 1.1em;
    }
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        width: 80%;
        max-width: 250px;
    }
    h2 {
        font-size: 1.8em;
    }
    .skills-grid, .project-grid, .education-grid {
        grid-template-columns: 1fr;
    }
    .skill-category h3 {
        font-size: 1.4em;
    }
    .contact-form {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.5em;
    }
    .nav-list {
        gap: 10px;
    }
    .hero-text h2 {
        font-size: 1.8em;
    }
    .hero-text .tagline {
        font-size: 1em;
    }
    .profile-pic {
        width: 120px;
        height: 120px;
    }
    .timeline-item {
        padding: 15px 15px 15px 50px;
    }
    .timeline-item::after {
        width: 12px;
        height: 12px;
        top: 25px;
        left: 17px !important;
    }
    .timeline-item h3 {
        font-size: 1.3em;
    }
    .project-card {
        padding: 20px;
    }
}