body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    overflow-y: hidden;
}

.navbar {
    display: flex;
    margin-left: -1.7%;
    align-items: center;
    height: 11vh;
    min-height: 70px; 
    background-color: #2E4238;
    padding: 0 20px;
    position: relative;
}

.logo {
    width: 7%;
    min-width: 50px;
    height: 100%;
}

#logo-img {
    width: 100%;
    height: 100%;
    background-image: url(logo.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: background-image 0.3s ease;
}

.dark-mode #logo-img {
    background-image: url(logo_dark); 
}
.dark-mode h1{
    color: white;
}

.menu-container {
    flex-grow: 1;
    height: 100%;
    position: relative;
    margin-left: 20px;
}

.menu-background {
    position: absolute;
    top: 0;
    left: -36px; 
    right: 0;
    width: 103%;
    height: 82%; 
    background-color: #89B29E;
    border-top-right-radius: 30px;
    z-index: 0;
    margin-top: auto;
    bottom: 0;
}

.theme-btn {
    position: absolute;
    top: 20px;
    right: 0px;
    background: none;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: rgba(0, 0, 0, 0.1);
}

.theme-btn:hover {
    transform: scale(1.1);
    background-color: rgba(0, 0, 0, 0.2);
}

.theme-btn svg {
    width: 24px;
    height: 24px;
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

body.light-mode .sun-icon {
    opacity: 0;
    transform: rotate(90deg);
}
body.light-mode .moon-icon {
    opacity: 1;
    transform: rotate(0);
    color: #333;
}

body.dark-mode .moon-icon {
    opacity: 0;
    transform: rotate(-90deg);
}
body.dark-mode .sun-icon {
    opacity: 1;
    transform: rotate(0);
    color: #fff;
}

.menu {
    position: relative;
    z-index: 1;
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: flex-end;
    gap: 2vw; 
    padding-right: 3vw;
}

.menu a {
    text-decoration: none;
    color: black;
    font-size: clamp(14px, 1.8vw, 18px);
    font-family: 'Fredoka', sans-serif;
    white-space: nowrap;
    padding: 5px 0;
    position: relative;
}

.menu a:hover {
    color: #333;
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #2E4238;
    transition: width 0.3s;
}

.menu a:hover::after {
    width: 100%;
}

main{
    display: flex;
}

#lateral{
    background-color: #2E4238;
    height: 89vh;
    width: 1.2%;
    position: absolute;
    z-index: 10;
}

#main-corpo{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url(background-perso.png);
    background-size: cover;
    background-repeat: no-repeat;
    height: 89vh;
}

.dark-mode #main-corpo{
    background-image: url(Fundo_Escuro.png);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1;
}

.botao2 {
    background-color: #b0c4a1;
    height: 9vh;
    width: 10%;
    margin-bottom: 5%;
    display: inline-block;
    position: absolute;
    border-color: #89B29E;
    border-style: none;
    border-radius: 15px;
    align-self: flex-end;
    margin-left: 80%;
}

.botao2 button{
    background-color: #b0c4a1;
    height: 4vh;
    width: 30%;
    display: inline-block;
    border-radius: 15px;
    position: relative;
}

#sp2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #c6dae5;
    margin-left: -20%;
    margin-top: 7%;
    height: 9vh;
    border-radius: 15px;
    width: 115%;
    font-size: 16px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    color: #333;
    position: relative;
    z-index: 1;
}

#sp2 a{
    font-size: 130%;
    text-decoration: none;
    color: #47576E;
}

#footer{
    display: flex;
    z-index: 1;
    margin-top: 41.5%;
    position: absolute;
    background-color: #89B29E;
    width: 100%;
    height: 9.3vh;
}

/* ========== [ALTERAÇÕES DE COR] ========== */

:root {
    /* TEMA CLARO */
    --light-bg: #f5f5f5;
    --light-text: #333;
    --light-primary: #89B29E;
    
    /* TEMA ESCURO */
    --dark-bg: #597768;
    --dark-text: #f0f0f0;
    --dark-primary: #2E4238;
}

.dark-mode {
    background-color: var(--dark-bg);
    color: var(--dark-text);
}

.dark-mode .navbar {
    background-color: var(--dark-primary);
}

.dark-mode #lateral {
    background-color: var(--dark-primary);
}

.dark-mode .menu-background {
    background-color: #597768;
}

.dark-mode .botao2 {
    background-color: #3B503C;
    color: #FFFFFF;
}

.dark-mode #sp2 {
    background-color: #53808D;
    color: #FFFFFF;
}

.dark-mode #sp2 a {
    color: white !important;
}

.dark-mode #footer {
    background-color: #597768;
}

body, 
.navbar,
#lateral,
.menu-background,
.botao2,
#sp2,
#footer {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
/* Adicione estes estilos ao seu CSS */

#welcome-section {
    width: 80%;
    max-width: 800px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: justify; /* Alterado de center para justify */
    z-index: 2;
    position: relative;
    margin: 0 auto;
}

#welcome-section ul {
    text-align: justify;
    text-justify: inter-word;
    margin: 20px 0;
    padding-left: 20px;
}

.contact-link {
    text-align: center; /* Mantém o link "contate-nos" centralizado */
}

#welcome-section h1 {
    color: #2E4238;
    font-size: 2.2rem;
    margin-bottom: 20px;
}
button{
    border: none;
    background-color: white;
}
.dark-mode button{
    border: none;
    background-color: rgba(46, 66, 56, 0.9);
}
button a{
    color: black;
    text-decoration: none;
}
#welcome-section p {
    color: #47576E;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}


#welcome-section li {
    margin-bottom: 10px;
    color: #47576E;
}

.welcome-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.welcome-btn {
    background-color: #89B29E;
    color: black;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.welcome-btn a{
    text-decoration: none;
 color: black;
}
.dark-mode .welcome-btn a{
    color: white;
   }
.welcome-btn:hover {
    background-color: #6E888F;
    transform: translateY(-2px);
}

.contact-link a {
    color: black;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.contact-link a:hover {
    color: #2E4238;
    text-decoration: underline;
}

/* ========== [MODO ESCURO - AJUSTE ESTAS CORES] ========== */
.dark-mode #welcome-section {
    background-color: rgba(46, 66, 56, 0.9); /* Cor de fundo para modo escuro */
}

.dark-mode #welcome-section h1 {
    color: #f0f0f0; /* Cor do título no modo escuro */
}

.dark-mode #welcome-section p,
.dark-mode #welcome-section li {
    color: #e0e0e0; /* Cor do texto no modo escuro */
}

.dark-mode .welcome-btn {
    background-color: #6E888F; /* Cor dos botões no modo escuro */
}

.dark-mode .welcome-btn:hover {
    background-color: #89B29E; /* Cor dos botões hover no modo escuro */
}

.dark-mode .contact-link a {
    color: #c6dae5; /* Cor do link no modo escuro */
}

.dark-mode .contact-link a:hover {
    color: #ffffff; /* Cor do link hover no modo escuro */
}
