:root {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --accent-color: #007bff;
    --card-bg: #1e1e1e;
    --card-shadow: rgba(0, 0, 0, 0.2);
    --font-family: 'Roboto', Arial, sans-serif;
}

/* Estilos gerais */
body {
    margin: 0;
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Poppins', bebas-neue;
    margin-bottom: 1rem;
}

/* Cabeçalho com Parallax */
.parallax {
    background-image: url('https://github.com/user-attachments/assets/8f57127c-7e94-4670-82a1-4709300f5224');
    min-height: 100vh;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.parallax1 {
    background-image: url('https://github.com/user-attachments/assets/972ce2dd-f82d-40a9-bf3e-75444952a079');
    min-height: 80vh;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 4rem 1rem 1rem;
}

/* Animações */
.fade-in, .slide-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible, .slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.overlay {
    background: rgba(0, 0, 0, 0.6);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 1rem;
}


.overlay1 {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    color: white;
    padding-top: 2rem;
    background: none;
    width: 100%;
}

.overlay h1, .overlay p {
    font-family: 'Bebas Neue', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0.5rem 0;
}

.overlay h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.2;
}

.overlay p {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
}

/* Navegação */
nav {
    background: var(--bg-color);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px var(--card-shadow);
    border-bottom: 1px solid #333;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: bold;
    transition: color 0.3s, transform 0.2s;
    white-space: nowrap;
}

nav a:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

/* Seções */
section {
    padding: 3rem 1rem;
    text-align: center;
    background-color: var(--bg-color);
}

#about .content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

#about .about-container {
    display: flex;
    flex-direction: row; /* Mantém os itens em linha */
    align-items: flex-start; /* Alinha no topo */
    justify-content: center;
    gap: 1rem; /* Espaço entre imagem e texto */
    margin: 2rem auto;
    max-width: 1200px; /* Largura máxima do container */
    width: 90%; /* Largura relativa */
}

.image-wrapper {
    flex: 1;
    text-align: center;
    max-width: 250px;
    width: 100%;
}

.imagem {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 8px var(--card-shadow);
    transition: transform 0.3s;
    margin: 0;
}

.imagem:hover {
    transform: scale(1.05);
}

.text-wrapper {
    flex: 2;
    color: var(--text-color);
    max-width: 800px;
    width: 100%;
    padding: 0 1rem;
    text-align: center;
}

.text-wrapper h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #ffffff;
    margin-bottom: 1rem;
}

.text-wrapper p {
    font-size: clamp(1rem, 2vw, 1.1rem);
    line-height: 1.8;
    color: #ddd;
    text-align: justify;
    hyphens: auto;
}

/* Cartões */
.skill-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    width: 100%;
    max-width: 150px;
    box-shadow: 0 4px 8px var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card {
    background: var(--card-bg);
    padding: 1.2rem;
    border-radius: 10px;
    text-align: center;
    width: 100%;
    max-width: 350px;
    box-shadow: 0 4px 8px var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    margin: 0.5rem;
}

.skill-card:hover, .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px var(--card-shadow);
}

.skill-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.project-card img {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 5px;
}

.projects-container, .skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
}

/* Contato */
.contact-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-container a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-container img {
    width: 50px;
    height: 50px;
    transition: transform 0.3s;
}

.contact-container img:hover {
    transform: scale(1.2);
}

/* Rodapé */
footer {
    text-align: center;
    padding: 1rem;
    background: var(--card-bg);
    color: #aaa;
    font-size: 0.9rem;
    border-top: 1px solid #333;
}

/* Media Queries para diferentes tamanhos de tela */
@media (max-width: 768px) {
    .overlay h1 {
        font-size: 2rem; /* Ajuste opcional para mobile */
        line-height: 1.3;
    }
    
    .overlay p {
        font-size: 1.1rem;
    }
    
    nav ul {
        gap: 0.8rem;
    }
    
    section {
        padding: 2rem 1rem;
    }
    
    .text-wrapper p {
        text-align: left;
    }
    
    .project-card {
        padding: 1rem;
    }
    
    .contact-container {
        gap: 1.5rem;
    }
     #about .about-container {
        flex-direction: column; /* Empilha em mobile */
        align-items: center;
        gap: 2rem;
    }
    
    .image-wrapper {
        flex: 0 0 auto; /* Remove a largura fixa em mobile */
        max-width: 250px;
    }
    
    .text-wrapper {
        text-align: center; /* Centraliza o texto em mobile */
    }
    .overlay {
        padding: 2rem; /* Reduz o padding em mobile */
        width: 90%; /* Ocupa mais largura */
        margin: 0 auto; /* Centraliza */
    }
}

@media (max-width: 480px) {
    .overlay h1 {
        font-size: 2rem;
    }
    
    .overlay p {
        font-size: 1rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .parallax, .parallax1 {
        background-attachment: scroll;
    }
    
    .skills-container {
        gap: 1rem;
    }
    
    .skill-card {
        max-width: 120px;
        padding: 1rem;
    }
    
    .skill-card img {
        width: 60px;
        height: 60px;
    }
    
    .contact-container img {
        width: 40px;
        height: 40px;
    }
     .overlay {
        padding: 1.5rem;
    }
}

@media (min-width: 1200px) {
    .about-container {
        flex-direction: row;
    }
    
    .text-wrapper {
        text-align: left;
        padding-left: 3rem;
    }
}
