 

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
    
    --cor-primaria: #00a8ff; 
    --cor-fundo: #0f172a;     
    --cor-texto: #e2e8f0;     
    --cor-fundo-card: #1e293b; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif; /* Tipografia principal */
}

body {
    background-color: var(--cor-fundo);
    color: var(--cor-texto);
    scroll-behavior: smooth; /* Adiciona a rolagem suave nativa */
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}


/* Cabeçalho e Navegação */

.header {
    background-color: var(--cor-fundo);
    width: 100%;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--cor-primaria);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem; 
}

.nav-link {
    color: var(--cor-texto);
    text-decoration: none;
    transition: color 0.3s ease; 
}

.nav-link:hover {
    color: var(--cor-primaria);
}


/* ESTILO DAS SEÇÕES PRINCIPAIS */

.section {
    min-height: 100vh; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 80px; 

.section h1 {
    font-size: 3rem;
    color: var(--cor-primaria);
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* ESTILOS ESPECÍFICOS  */
#projetos .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.projeto-card {
    background-color: var(--cor-fundo-card);
    padding: 1.5rem;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border-left: 3px solid var(--cor-primaria);
}

.projeto-card h3 {
    color: var(--cor-primaria);
    margin-bottom: 0.5rem;
}


/* RODAPÉ */

.footer {
    text-align: center;
    padding: 2rem 0;
    background-color: var(--cor-fundo-card);
}

@media (max-width: 768px) {
    .hamburger {
        display: block; 
        cursor: pointer;
    }

    .hamburger .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        -webkit-transition: all 0.3s ease-in-out;
        transition: all 0.3s ease-in-out;
        background-color: var(--cor-texto);
    }
    
    .nav-menu {
        position: fixed;
        left: -100%; 
        top: 70px;
        flex-direction: column; 
        background-color: var(--cor-fundo);
        width: 100%;
        text-align: center;
        transition: 0.3s;
    }

    .nav-menu.active {
        left: 0; 
    }

    .nav-item {
        margin: 1.5rem 0;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .section h1 {
        font-size: 2.5rem;
    }

    .section h2 {
        font-size: 2rem;
    }

    .projeto-card {
        width: 95%;
    }
}

body.light-mode {
    --cor-fundo: #f0f2f5;
    --cor-texto: #1c1e21;
    --cor-fundo-card: #ffffff;
}


/* === ESTILO PARA O INTERRUPTOR DE TEMA === */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
}
.theme-switch {
    display: inline-block;
    height: 24px;
    position: relative;
    width: 50px;
}

.theme-switch input {
    display:none;
}

.slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
}

.slider:before {
    background-color: #fff;
    bottom: 2px;
    content: "";
    height: 20px;
    left: 2px;
    position: absolute;
    transition: .4s;
    width: 20px;
}

input:checked + .slider {
    background-color: var(--cor-primaria);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;

}
