:root {
    --primary-color: #1e40af;
    --secondary-color: #f3f4f6;
    --dark-color: #111827;
    --light-gray: #e5e7eb;
    --spacing-unit: 1rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    line-height: 1.6;
}

header {
    background-color: var(--dark-color);
    color: white;
    padding: 1rem 0;
    text-align: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
    padding-bottom: 5rem;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
}

hr{
    border: none;
    border-top: 2px solid var(--light-gray);
    margin: 2rem 0;
}

#intro {
    padding: 0;
}

.intro {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.intro p {
    max-width: 700px;
    margin: 0 auto;
}

.personal-image {
    width: 27lvw;
    border-radius: 5%;
    align-self: center;
    display: block;
    margin: 1rem auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.project-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.project-image {
    height: 200px;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.project-info p {
    margin-bottom: 1rem;
    color: #4b5563;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.project-links {
    display: flex;
    gap: 0.5rem;
}

.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #1e3a8a;
}

.btn-secondary {
    background-color: var(--light-gray);
    color: var(--dark-color);
}

.btn-secondary:hover {
    background-color: #d1d5db;
}

.activities-list {
    margin-top: 1lvh;
    margin-bottom: 4lvh;
    margin-left: 3dvw;
}

footer {
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

footer p {
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-links a {
    color: white;
    text-decoration: none;
}

.social-links a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {

}

/* Estilos para a navegação com âncoras */
.nav-container {
    background-color: var(--dark-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

nav {
    display: flex;
    justify-content: center;
    padding: 0.5rem 0;
}

nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 1rem;
}

nav a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 0.7rem 1.2rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

nav a:hover {
    background-color: var(--primary-color);
}

section {
    scroll-margin-top: 70px;
}

:target {
    animation: highlight 1s ease;
}

@keyframes highlight {
    0% { background-color: transparent; }
    50% { background-color: rgba(31, 67, 184, 0.1); }
    100% { background-color: transparent; }
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Responsividade para o menu de navegação */
@media (max-width: 768px) {
    .personal-image {
        width: 45lvw;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-image {
        height: 250px;
    }

    .nav-container {
        padding: 0.5rem 1rem;
    }

    nav {
        justify-content: space-between;
        align-items: center;
    }

    .menu-toggle {
        display: flex;
        z-index: 101;
    }

    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 60%;
        flex-direction: column;
        background-color: var(--dark-color);
        padding: 5rem 2rem 2rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        gap: 0;
    }

    nav ul.active {
        right: 0;
    }

    nav ul li {
        margin-bottom: 1rem;
    }

    nav a {
        padding: 1rem;
        border-radius: 4px;
        display: block;
        text-align: center;
    }

    /* Animação do menu hamburguer para X */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    section {
        scroll-margin-top: 80px;
    }
}