:root {
    --primary-color: #668053;
    --secondary-color: #2ecc71;
    --terciary-color: #0d321c;
    --quaternary-color: #f3f3f3;
    --text-color: #141414;
    --background-color: #DADBDF;
}

* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

body {
            font-family: 'Inter', sans-serif;
            line-height: 1.6;
            color: var(--text-color);
            background-color: var(--background-color);
            scroll-behavior: smooth;
            overflow-x: hidden;
        }

/* Cabeçalho com Flexbox */
       header {
    background-color: var(--header-bg);
    padding: 10px 2%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.logo img {
    height: 100px; /* ajusta o tamanho */
    display: block;
}


nav ul {
            display: flex;
            list-style: none;
            gap: 2rem;
        }

nav a {
            text-decoration: none;
            color: var(--secondary-color);
            font-weight: 500;
            transition: color 0.3s;
        }

nav a:hover {
            color: var(--primary-color);
        }

/* Seções Gerais */
        section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 140px 16px 60px;
}

    h2 {
            font-size: 2rem;
            margin-bottom: 2rem;
            text-align: center;
            position: relative;
        }

    h2::after {
            content: '';
            display: none;
            width: 50px;
            height: 4px;
            background: var(--primary-color);
            margin: 10px auto;
            border-radius: 2px;
        }

           /* Sobre Mim */
    .sobre-container {
    display: flex;
    flex-direction: column; /* 👈 ESSENCIAL */
    align-items: center;    /* centraliza horizontalmente */
    justify-content: center;
    gap: 1.5rem;
    text-align: center;     /* centraliza o texto */
}

    .sobre-texto {
            flex: 1;
            width: 100%;
            min-width: 800px;
            flex-direction: column;
            justify-content: center;
        }
        
    .sobre-texto p {
        margin: 0;
        font-size: 1rem;
        color: var(--terciary-color);
        text-align: center;
        }

    .sobre-img {
            width: 150px;
            height: 150px;
            border-radius: 50%;  
            margin: 0 auto;
            display: block;
            border: 4px solid var(--white);
        }


            /* Meus Projetos - Grid */
    #projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            margin-top: 2rem;
        }

    .project-card {
            background: var(--card-bg);
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            display: flex;
            flex-direction: column;
            background: rgb(72, 95, 27);
        }

    .project-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        }

        .project-img {
            height: 180px;
            background: #57a472;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            color: #1a3c1e;
        }

        .project-info {
            padding: 1.5rem;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }

        .project-info h3 {
            margin-bottom: 0.5rem;
            color: var(--text-color);
        }

        .project-info p {
            font-size: 0.95rem;
            color: var(--text-color);
            margin-bottom: 1.5rem;
            flex-grow: 1;
        }

        .project-tags {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
            margin-bottom: 1rem;
        }

        .tag {
            background: #87ee97;
            color: var(--terciary-color);
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 800;
        }

    
form {
    background-color: var(--white);
    padding: 40px;
    border-radius: 16px;      
    max-width: 550px;
    margin: 40px auto;        
    display: flex;            
    flex-direction: column;   
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}

#contato h2 {
    margin-bottom: 30px;
    color: var(--dark-color);
}

.campo {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;       
}

form label {
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

form input, form textarea {
    padding: 14px;
    border: 2px solid #edf2f7;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background-color: #f8fafc;
}

form textarea {
    resize: vertical;
    min-height: 120px;
}

form button {
    margin-top: 10px;
    padding: 16px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 800;
}

form button:hover {
    background-color: #1d4ed8;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}





        .btn-view {
            display: inline-block;
            text-align: center;
            padding: 0.6rem 1rem;
            background: var(--primary-color);
            color: white;
            text-decoration: none;
            border-radius: 6px;
            font-weight: 800;
            transition: opacity 0.3s;
        }

        .btn-view:hover {
            opacity: 0.9;
        }

                /* Rodapé */
        footer {
            background: #0a2a1c;
            color: white;
            text-align: center;
            padding: 3rem 5%;
            margin-top: 4rem;
        }

        .social-links {
            margin-bottom: 1rem;
        }

        .social-links a {
            color: white;
            margin: 0 10px;
            text-decoration: none;
            opacity: 0.8;
        }

        .social-links a:hover {
            opacity: 1;
        }

        /* Responsividade */
/* BOTÃO HAMBÚRGUER */
/* ================= BOTÃO HAMBÚRGUER ================= */
#btn-menu {
    display: none;
    border: none;
    background: none;
    cursor: pointer;
    position: relative;
    z-index: 1100;
}

#hamburguer {
    border-top: 2px solid #000;
    width: 25px;
    display: block;
}

#hamburguer::before,
#hamburguer::after {
    content: '';
    display: block;
    width: 25px;
    height: 2px;
    background: #000;
    margin-top: 5px;
    transition: 0.3s;
}

@media (max-width: 768px) {

    #btn-menu {
        display: block;
    }

    /* MENU */
    nav {
        position: fixed;
        top: 110px; /* altura do seu header */
        left: 0;
        width: 100%;
        background: white;
        height: 0;
        overflow: hidden;
        transition: height 0.3s ease;
        z-index: 1000;
    }

    nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 1rem 0;
    }

    /* MENU ABERTO */
    header.active nav {
        height: calc(100vh - 110px);
    }

    /* ANIMAÇÃO DO ÍCONE */
    header.active #hamburguer {
        border-top-color: transparent;
    }

    header.active #hamburguer::before {
        transform: rotate(135deg);
    }

    header.active #hamburguer::after {
        transform: rotate(-135deg);
        position: relative;
        top: -7px;
    }
}

/* ================= AJUSTE DO CONTEÚDO ================= */
section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 140px 16px 60px;
}


#btn-tema {
    padding: 5px 12px;
    cursor: pointer;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
}

body.dark-theme {
    --header-bg: #162254;
    --background-color: #0c1834; /* fundo escuro */
    --text-color: #f1f5f9;       /* texto claro */
    --quaternary-color: #94a3b8; /* ajuste de textos secundários */
    --primary-color: #6af63b;
    --white: #1e293b;
    --terciary-color: #ffffff;
}

body.dark-theme footer {
    background-color: #020617;
    color: #f1f5f9;           
}