* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Merriweather", serif;
}

html {
    scroll-behavior: smooth;
}

.navbar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #021383;
    color: white;
    padding: 10px;
}

.logo img {
    height: 60px;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
}

.navbar li a:hover {
    color: #faf730;
}

hr {
    height: 20px;
    border: 1px solid #fff;
}

.menu-toggle {
    display: none;
    /* Esconde o botão em desktops */
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: white;
    transition: 0.4s;
}

.banner {
    background: url("./assets/banner.png") center / cover no-repeat;
    height: 470px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: #fff;
}

.align {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    font-size: 18px;
    line-height: 1.8;
}

.banner-text {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 300px;
    padding: 0 15%;
}

.banner-text h2 {
    color: #faf730;
}

.banner-text-inline {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.banner-text p {
    font-size: 20px;
    font-weight: bolder;
    color: #faf730;
}

.banner-text strong {
    font-size: 20px;
    font-weight: bolder;
    color: #fff;
}

.banner-text-inline hr {
    height: 20px;
    margin: 0;
}

.banner-text-explication {
    margin-top: 40px;
    line-height: 1.8;
}

.about-me {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 10px 20px;
    width: 100%;
    background-color: #f2f3f7;
}

.about-me h3 {
    align-items: center;
    color: #021383;
}

.about {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-top: 30px;
    gap: 80px;
}

.about ul {
    width: 60%;
}

.about img {
    border-radius: 50%;
    height: 250px;
}

/* ===== RESPONSIVIDADE PARA DISPOSITIVOS PEQUENOS ===== */

/* Tablets e telas médias (1280px e abaixo) */
@media (max-width: 1280px) {
    h1 {
        font-size: 26px;
    }

    .banner-text {
        padding: 0 2%;
        justify-content: space-around;
    }

    .banner-text-explication {
        margin-top: 5px;
    }
}

@media (max-width: 778px) {
    .menu-toggle {
        display: block;
        /* Mostra o botão no mobile */
    }

    .nav-menu {
        display: flex;
        /* Esconde o menu de links no mobile por padrão */
        position: absolute;
        right: 0;
        top: 60px;
        /* Ajuste conforme a altura do seu header */
        max-height: 0;
        width: 120px;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-15px);
        /* leve subida antes de aparecer */
        transition:
            max-height 0.45s cubic-bezier(0.25, 0.1, 0.25, 1),
            opacity 0.35s ease-in-out,
            transform 0.45s cubic-bezier(0.25, 0.1, 0.25, 1);
        background-color: #01469c;
        flex-direction: column;
        text-align: center;
        margin-right: 55px;
        border-radius: 20px;
    }

    .nav-menu.active {
        display: block;
        padding: 10px;
        width: 120px;
        max-height: 400px;
        background-color: rgba(1, 70, 156, 0.6);
        opacity: 1;
        transform: translateY(0);
        top: 60px;
        margin-right: 55px;
        border-radius: 20px;
    }

    .nav-menu.active li:nth-child(1) {
        transition-delay: 0.2s;
    }

    .nav-menu.active li:nth-child(2) {
        transition-delay: 0.3s;
    }

    .nav-menu.active li:nth-child(3) {
        transition-delay: 0.4s;
    }

    .nav-menu.active li:nth-child(4) {
        transition-delay: 0.5s;
    }

    .nav-menu.active li:nth-child(5) {
        transition-delay: 0.68s;
    }

    .nav-menu.active li:nth-child(6) {
        transition-delay: 0.72s;
    }

    .nav-menu.active li:nth-child(7) {
        transition-delay: 0.92s;
    }

    .nav-menu li {
        opacity: 0;
        transform: translateY(-8px);
        transition:
            opacity 0.32s ease,
            transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
        /* evita que fiquem clicáveis enquanto fechados */
        pointer-events: none;
    }

    /* estado quando o menu abre */
    .nav-menu.active li {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .navbar {
        justify-content: space-between;
        padding: 10px 60px;
    }

    .navbar li {
        margin: 0 5px;
    }

    .navbar li a {
        font-size: 14px;
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    hr {
        display: none;
    }

    .banner {
        min-height: 350px;
        flex-direction: column;
        justify-content: flex-start;
    }

    h1 {
        order: -1;
        /* Força o H1 a ser o primeiro elemento visual */
        font-size: 28px;
        text-align: center;
    }

    .align h2 {
        font-size: 22px;
    }

    .banner-text {
        display: flex;
        flex-direction: column;
        width: 100%;
        font-size: 16px;
    }

    .banner-text-inline {
        flex-wrap: wrap;
        margin-bottom: 20px;
        gap: 8px;
        justify-content: center;
    }

    .banner-text p {
        font-size: 14px;
    }

    .banner-text-explication {
        margin-top: 60px;
    }
}

/* Smartphones (até 480px) */
@media (max-width: 480px) {
    * {
        font-size: 14px;
    }

    .navbar {
        height: 60px;
        padding: 10px;
    }

    .navbar img {
        height: 40px;
    }

    .nav-menu.active {
        width: 100px;
        padding: 0;
        right: -50px;
    }

    .nav-menu {
        width: 100px;
        padding: 0;
        right: -50px;
    }

    .banner {
        height: 300px;
        justify-content: flex-start;
        flex-direction: column;
    }

    .banner-text {
        width: 100%;
        padding-left: 20px;
        height: auto;
        font-size: 14px;
        gap: 8px;
        justify-content: center;
        align-items: flex-start;
    }

    .banner-text-explication {
        font-size: 12px;
        line-height: 1.6;
        margin-top: 0;
    }

    .banner-text-explication h2 {
        font-size: 16px;
        margin-top: 10px;
    }

    .about img {
        height: 100px;
    }
}

/* Dispositivos muito pequenos (até 360px) */
@media (max-width: 360px) {
    * {
        font-size: 12px;
    }

    .banner {
        min-height: 280px;
        padding: 0 10px;
        flex-direction: column;
        width: 100%;
        justify-content: center;
    }

    .banner-text {
        width: 100%;
        font-size: 12px;
        align-items: center;
    }

    .align {
        line-height: normal;
    }

    .banner-text-inline {
        margin-bottom: 0;
    }

    .banner-text-explication {
        font-size: 11px;
        line-height: 1.4;
        text-align: center;
    }

    .banner-text-explication h2 {
        font-size: 14px;
        margin-top: 8px;
    }

    .banner-text-explication h3 {
        font-size: 11px;
        margin-top: 5px;
    }

    .align {
        margin-top: 5px;
    }

    h1 {
        font-size: 18px;

        margin-top: 5px;
    }
}