@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

:root {
    --primary-color: #ff6700;
    --background-color: #f4f4f4;
    --text-color: #333;
    --card-background: #ffffff;
    --footer-background: #333;
}

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
}

.container {
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    padding: 0 2rem;
}

.navbar {
    background: var(--card-background);
    padding: 1rem;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar .container {
    justify-content: center;
    display: flex;
    align-items: center;
}

.navbar .nav-links {
    display: flex;
    list-style: none;
}

.navbar .nav-links li a {
    color: var(--text-color);
    padding: 0.75rem;
    margin: 0 0.25rem;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.navbar .nav-links li a:hover {
    color: var(--primary-color);
}

/* --- ESTILOS DO VÍDEO DE FUNDO --- */
.hero {
    height: 80vh; /* Altura da seção com o vídeo */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative; /* Essencial para posicionar o vídeo */
    overflow: hidden; /* Garante que o vídeo não ultrapasse a seção */
    color: #fff; /* Cor do texto sobre o vídeo */
}

#background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Sobreposição escura para legibilidade */
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1; /* Garante que o conteúdo fique sobre a sobreposição */
}
/* --- FIM DOS ESTILOS DO VÍDEO --- */


.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    color: #fff; /* Corrigido para branco para ser legível sobre o vídeo */
}

.hero-content p {
    font-size: 1.2rem;
    color: #f4f4f4; /* Corrigido para cinza claro para ser legível */
}

.hero-content .subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #f4f4f4; /* Corrigido para cinza claro para ser legível */
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 0.8rem 2rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.btn:hover {
    transform: scale(1.05);
}

.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.about-content {
    text-align: center;
    max-width: 700px;
    margin: auto;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: var(--card-background);
    padding: 2rem;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.skill-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.project-card {
    background: var(--card-background);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

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

.project-content {
    padding: 2rem;
    text-align: left;
}

.project-content h3 {
    margin-bottom: 0.5rem;
}

.project-content p {
    margin-bottom: 1rem;
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s, color 0.3s;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: #fff;
}

.footer {
    text-align: center;
    padding: 2rem;
    background: var(--footer-background);
    color: #f4f4f4;
}

@media (min-width: 768px) {
    .project-card {
        flex-direction: row;
    }

    .project-image {
        width: 40%;
        height: auto;
    }

    .project-content {
        width: 60%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}