* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f4f9;
    color: #333;
    scroll-behavior: smooth;
}

/* Estilos do Cabeçalho e Navegação */
header {
    background-color: #2c5e1a; /* Verde Agro */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
}

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

.nav-item {
    margin-left: 2rem;
}

.nav-link {
    font-size: 1rem;
    color: #ffffff;
    text-decoration: none;
    transition: 0.3s;
}

.nav-link:hover {
    color: #a8e6cf;
}

/* Configuração do botão Hambúrguer */
.hamburger {
    display: none;
    cursor: pointer;
}

.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: #ffffff;
}

/* Estilo das seções de conteúdo */
main {
    margin-top: 70px;
}

.secao {
    padding: 6rem 2rem;
    min-height: 60vh;
    text-align: center;
}

.secao h1, .secao h2 {
    color: #2c5e1a;
    margin-bottom: 1rem;
}

.secao p {
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Fundo alternado para as seções */
#inicio { background-color: #e8f5e9; }
#drones { background-color: #ffffff; }
#iot { background-color: #e8f5e9; }
#sustentabilidade { background-color: #ffffff; }

/* Responsividade (Telas de celular) */
@media only screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background-color: #2c5e1a;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1.5rem 0;
    }

    .hamburger {
        display: block;
    }

    /* Animação do X no menu hambúrguer */
    .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);
    }
}