@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&family=Saira+Condensed:wght@100;200;300;400;500;600;700;800;900&display=swap');

:root {
    --background: #faf2f0;
    --text: #090504;
    --primary: #d25b3f;
    --secondary: #eda291;
    --accent: #ed7255;
}

body.night-mode {
    --background: #0f0705;
    --text: #faf7f5;
    --primary: #be472d;
    --secondary: #814132;
    --accent: #ab2e12;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background);
    color: var(--text);
}

/* Topbar */
.topbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem -2rem;
    z-index: 1200;
}

.topbar button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--background);
}

.topbar button:hover {
    color: var(--secondary);
}

.site-title {
    font-family: 'Georgia', serif;
    font-weight: bold;
    color: var(--background);
}

.site-title a {
    text-decoration: none;    /* Tira o sublinhado */
    color: inherit;           /* Faz o link herdar a cor do elemento pai */
}

.site-title a:hover {
    text-decoration: none;    /* Continua sem sublinhado no hover */
    color: var(--secondary);    /* (Opcional) Pode colocar uma cor ao passar o mouse */
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(210, 91, 63, 0.60);  /* Cor com leve transparência, se quiser */
    color: var(--background);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1100;
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--background);
    margin-bottom: 2rem;
}

/* button */

.btn-download, .btn-whatsapp {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    min-width: 250px;         /* Garante tamanho mínimo */
    border: 2px solid var(--primary);
}

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

.btn-download:hover {
    background-color: var(--accent);
    transform: scale(1.05);
}

.btn-whatsapp {
    background-color: none;
    color: #d25c41;
}

.btn-whatsapp:hover {
    background-color: #ffece8;
    transform: scale(1.05);
}

/* Links do menu */
.sidebar a {
    color: var(--background);
    text-decoration: none;
    font-size: 1.5rem;
    margin: 1rem 0;
    transition: transform 0.2s ease;
}

.sidebar a:hover {
    transform: scale(1.1);
}

.lista-habilidades {
    color: var(--accent);

}

.lista-habilidades a {
    color: var(--accent);
    text-decoration: none;
    font-weight: bold;         
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    margin: 1rem 0;
}

.sidebar a {
    color: var(--background);
    text-decoration: none;
    font-weight: bold;
}

header {
    padding: 6rem 1rem 2rem;
    text-align: center;
    background-color: var(--background);
    color: var(--accent);

}

section {
    padding: 2rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.full-width-section {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 2rem 1rem;
    box-sizing: border-box;
}

.content-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.alternate-bg {
    background-color: var(--primary);
    color: var(--background);
}

h1 {
    font-family: "Saira Condensed", sans-serif;
    color: var(--primary);
    text-transform: uppercase;
    
}

.destaque {
    color: var(--secondary);
    text-transform: uppercase;
    font-family: "Saira Condensed", sans-serif;
}

h2 {
    font-family: "Saira Condensed", sans-serif;
    color: var(--secondary);
    font-weight: 600;
    text-align: center;
}

.sobre-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--secondary);
    object-fit: cover;
    margin-bottom: 1rem;
}

.icons {
    width: 20px;
    height: auto; /* Mantém a proporção da imagem */
    vertical-align: middle; /* Alinha verticalmente com o texto */
    margin-right: 8px;      /* Espaço entre o ícone e o texto */
}

.lampada {
    width: 20px;
    height: auto; /* Mantém a proporção da imagem */
    vertical-align: middle; /* Alinha verticalmente com o texto */
    margin-right: 8px;      /* Espaço entre o ícone e o texto */

}

.projeto-item {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: auto;
    max-width: 100%; /* Faz o item ocupar o máximo da coluna */
    border-radius: 8px;
}

.projeto-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.container-projetos {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

/* O texto com fundo por cima da imagem */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Cor com transparência (pode ajustar) */
    color: #fff;  /* Cor do texto */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: bold;
    font-size: 0.8rem;
    transition: opacity 0.3s ease;
}

/* Quando passa o mouse: o overlay some */
.projeto-item:hover .overlay {
    opacity: 0;
}

/* Opcional: Aumentar a imagem no hover */
.projeto-item:hover img {
    transform: scale(1.05);
}


.colagem1 {
    height: 400px;
    width: auto;

}

/* Layout lado a lado em telas maiores */
@media(min-width: 768px) {

    .sobre-container {
        flex-direction: row;
        align-items: flex-start;
        gap: 2rem;
    }
    .profile-pic {
        width: 250px;
        height: auto;
    
    }

    .container-projetos {
        grid-template-columns: 1fr 1fr;   /* Desktop: 2 por linha */
        gap: 2rem;                        /* Mantém o espaçamento */
        justify-items: stretch;           /* Faz eles ocuparem o espaço da coluna */
    }

    .projeto-item img {
    width: 100%;
    height: 350px;
}

p {
    font-size: 1.2rem;
}

h2 {
    font-size: 2rem;
}


.topbar button {
    font-size: 2.5rem;
    
}

.lampada {
    width: 2.1rem;
    height: auto;

}

}

footer {
    text-align: center;
    padding: 1rem;
    background-color: var(--primary);
    color: var(--background);
    margin-top: 2rem;
}
