/* --- GERAL E VARIÁVEIS --- */
:root {
    --primary-color: #0246b3; /* Azul */
    --secondary-color: #050607; /* Cinza escuro */
    --background-color: #cccfd1; /* Cinza bem claro */
    --text-color: #334155;
    --white-color: #ffffff;
    --container-width: 1100px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
}

section {
    padding: 60px 20px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--secondary-color);
}

/* --- CABEÇALHO E NAVEGAÇÃO --- */
header {
    background-color: var(--white-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 15px 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 35px;
}

.nav-list a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 900;
    transition: color 0.3s;
}

.nav-list a:hover {
    color: var(--primary-color);
}

.mobile-menu-icon {
    display: none;
}

.mobile-menu-icon button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- SEÇÃO HERO (INÍCIO) --- */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    gap: 40px;
}

.hero-content {
    max-width: 600px;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
}

.hero-content .highlight {
    color: var(--primary-color);
}

.hero-content .subtitle {
    font-size: 1.5rem;
    margin: 10px 0 20px;
    color: var(--secondary-color);
}

.hero-content .description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.hero-image img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-color);
}

/* --- SEÇÃO SOBRE --- */
#about .about-container {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

#about p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* --- SEÇÃO PROJETOS --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--white-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.project-info p {
    margin-bottom: 20px;
}

.project-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 15px;
}

/* --- SEÇÃO HABILIDADES --- */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.skill-item {
    background-color: var(--white-color);
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s;
}

.skill-item:hover {
    transform: scale(1.05);
    color: var(--primary-color);
}

.skill-item i {
    font-size: 2rem;
    color: var(--primary-color);
}

/* --- SEÇÃO CONTATO --- */
#contact {
    text-align: center;
}

#contact p {
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
}

.social-links {
    margin-top: 30px;
}

.social-links a {
    font-size: 2rem;
    color: var(--secondary-color);
    margin: 0 15px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* --- RODAPÉ --- */
footer {
    text-align: center;
    padding: 20px;
    background-color: var(--secondary-color);
    color: var(--background-color);
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 768px) {
    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: white;
        position: absolute;
        top: 65px;
        left: 0;
        text-align: center;
        padding: 20px 0;
    }

    .nav-list.active {
        display: flex;
    }

    .nav-list li {
        margin: 10px 0;
    }

    .mobile-menu-icon {
        display: block;
    }

    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 100px; /* Para não ficar atrás do header */
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image img {
        width: 250px;
        height: 250px;
    }
}