/* =========================================
   RESPONSIVIDADE.CSS
   Media Queries — MoonStudio
   Breakpoints:
   - Tablet:  max-width: 1024px
   - Mobile L: max-width: 768px
   - Mobile S: max-width: 480px
   ========================================= */

/* =========================================
   TABLET — 1024px
   ========================================= */
@media (max-width: 1024px) {

    /* --- HEADER --- */
    .header {
        padding: 18px 0;
    }

    .header__nav ul {
        gap: 20px;
    }

    .header__nav a {
        font-size: 13px;
    }

    /* --- HERO --- */
    .hero {
        padding-top: 160px;
        padding-bottom: 400px;
    }

    .hero__lua {
        width: 1000px;
        left: 10%;
    }

    .hero__content {
        margin-left: 0;
        max-width: 720px;
    }

    .hero__titulo {
        font-size: 52px;
        line-height: 58px;
    }

    .hero__descricao {
        font-size: 16px;
    }

    /* --- SOBRE --- */
    .sobre {
        padding-top: 80px;
        padding-bottom: 100px;
        margin-bottom: -130px;
    }

    .sobre__content {
        max-width: 680px;
    }

    .sobre__titulo {
        font-size: 48px;
        line-height: 56px;
    }

    .sobre__descricao {
        font-size: 20px;
        line-height: 28px;
    }

    .sobre__visual {
        width: 160px;
        height: 160px;
        right: 1%;
        opacity: 0.6;
    }

    .sobre__planeta {
        width: 160px;
        height: 160px;
    }

    .sobre__anel {
        width: 180px;
        height: 340px;
    }

    /* --- PILARES --- */
    .pilares {
        padding-top: 80px;
        padding-bottom: 200px;
    }

    .pilares__titulo {
        font-size: 42px;
    }

    .pilares__grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto;
        gap: 12px;
        max-width: 900px;
    }

    .card__titulo {
        font-size: 15px;
    }

    .card__descricao {
        font-size: 12px;
    }

    /* --- PROJETOS --- */
    .projetos {
        padding-top: 120px;
        padding-bottom: 200px;
    }

    .projetos__titulo {
        font-size: 48px;
    }

    .projetos__card {
        height: 260px;
    }

    .projetos__nome {
        font-size: 42px;
        line-height: 52px;
        letter-spacing: -1px;
    }

    /* --- DESTAQUE --- */
    .destaque {
        margin-bottom: -65;
        padding-top: 180px;
        padding-bottom: 100px;
    }

    .destaque__card {
        min-height: 600px;
        padding: 0 60px;
    }

    .destaque__titulo {
        font-size: 68px;
        line-height: 76px;
        letter-spacing: -3px;
    }

    .destaque__descricao {
        font-size: 20px;
    }

    .destaque__conteudo {
        width: 60%;
    }

    .destaque__imagem-container {
        width: 42%;
    }

    /* --- IMPACTO --- */
    .impacto {
        padding-top: 100px;
        padding-bottom: 100px;
    }

    .impacto__container {
        gap: 48px;
    }

    .impacto__linha-um {
        font-size: 96px;
        line-height: 104px;
    }

    .impacto__palavra-niveis {
        font-size: 100px;
        line-height: 104px;
    }

    .impacto__item-titulo {
        font-size: 30px;
    }

    /* --- TECNOLOGIAS --- */
    .tecnologias {
        padding-top: 100px;
        padding-bottom: 140px;
    }

    .tecnologias__container {
        gap: 40px;
    }

    .linha-1,
    .linha-3 {
        font-size: 96px;
        line-height: 104px;
    }

    .linha-2 {
        font-size: 92px;
        line-height: 104px;
    }

    .tecnologias__descricao {
        font-size: 17px;
        margin-left: 80px;
    }

    .bolha {
        width: 150px;
        height: 150px;
    }

    /* --- DEPOIMENTOS --- */
    .depoimentos {
        padding-top: 100px;
        padding-bottom: 100px;
    }

    .depoimentos__titulo {
        font-size: 38px;
        line-height: 56px;
    }

    .carousel-card {
        width: 560px;
        height: 240px;
    }

    .carousel-card.active {
        height: 264px;
    }
}

/* =========================================
   MOBILE LARGE — 768px
   ========================================= */
@media (max-width: 768px) {

    /* --- HEADER --- */
    .header {
        padding: 16px 0;
    }

    .header__nav {
        display: none;
        /* Menu hamburguer pode ser adicionado via JS */
    }

    .btn-primario {
        display: none;
        /* Oculta botão no header em mobile */
    }

    /* --- HERO --- */
    .hero {
        padding-top: 130px;
        padding-bottom: 160px;
    }

    .hero__lua {
        width: 700px;
        left: 51%;
        top: 60%;
        transform: translate(-50%, -50%);
    }

    .hero .container {
        justify-content: center;
    }

    .hero__content {
        margin-left: 0;
        max-width: 100%;
        text-align: center;
    }

    .hero__titulo {
        font-size: 38px;
        line-height: 44px;
    }

    .hero__descricao {
        font-size: 15px;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .btn-hero {
        width: 240px;
        font-size: 15px;
        margin: 32px auto 0;
        display: flex;
    }

    /* --- SOBRE --- */
    .sobre {
        padding-top: 60px;
        padding-bottom: 120px;
    }

    /* Planeta centralizado verticalmente na seção, lado direito */
    .sobre__visual {
        display: block;
        width: 160px;
        height: 160px;
        top: 50%;
        right: -50px;
        bottom: auto;
        transform: translateY(-50%);
        opacity: 0.75;
    }

    .sobre__planeta {
        width: 160px;
        height: 160px;
    }

    .sobre__anel {
        width: 175px;
        height: 340px;
    }

    .sobre__content {
        max-width: 100%;
        text-align: center;
    }

    .sobre__titulo {
        font-size: 36px;
        line-height: 44px;
    }

    .sobre__descricao {
        font-size: 17px;
        line-height: 26px;
    }

    .sobre__link {
        justify-content: center;
    }

    /* --- PILARES --- */
    .pilares {
        padding-top: 60px;
        padding-bottom: 120px;
    }

    .pilares__titulo {
        font-size: 32px;
        line-height: 40px;
    }

    .pilares__subtitulo {
        font-size: 15px;
    }

    /* Grid de 3 colunas vira 2 colunas */
    .pilares__grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        gap: 12px;
    }

    /* Reset de todas as posições explícitas do grid */
    .pilares__grid .pilares__card:nth-child(1),
    .pilares__grid .pilares__card:nth-child(2),
    .pilares__grid .pilares__card:nth-child(3),
    .pilares__grid .pilares__card:nth-child(4),
    .pilares__grid .pilares__card:nth-child(5),
    .pilares__grid .pilares__card:nth-child(6),
    .pilares__grid .pilares__card:nth-child(7) {
        grid-column: auto;
        grid-row: auto;
    }
.btn-pilares-ver-mais {
        margin: 0 auto 30px auto !important; /* Centraliza e dá a margem inferior */
        display: inline-flex !important; /* Força o comportamento do ícone */
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
    }

/* Regra de segurança para o ícone do Bootstrap não bugar */
.btn-pilares-ver-mais i, 
.btn-pilares-ver-mais svg {
    margin: 0; /* Remove margens extras que o Bootstrap às vezes joga no ícone */
    display: flex;
}
    /* Último card ocupa as 2 colunas */
    .pilares__grid .pilares__card:nth-child(7) {
        grid-column: 1 / -1;
    }

    .pilares__card {
        min-height: 180px;
        padding: 24px 20px;
    }

    /* --- PROJETOS --- */
    .projetos {
        padding-top: 80px;
        padding-bottom: 120px;
        border-top-left-radius: 30% 60px;
        border-top-right-radius: 30% 60px;
        border-bottom-left-radius: 30% 120px;
        border-bottom-right-radius: 30% 120px;
    }

    .projetos__titulo {
        font-size: 36px;
        line-height: 1.1;
    }

    .projetos__subtitulo {
        font-size: 15px;
    }

    /* Cards viram coluna única */
    .projetos__card,
    .projetos__card:nth-child(odd),
    .projetos__card:nth-child(even),
    .projetos__card.card-invertido {
        flex-direction: column;
        height: auto;
        border-radius: 24px;
    }

    .projetos__img-container {
        width: 100%;
        height: 220px;
        border-radius: 24px 24px 0 0;
    }

    .projetos__info {
        width: 100%;
        padding: 28px 24px !important;
        margin: 0 !important;
        border-radius: 0 0 24px 24px !important;
    }

    .projetos__nome {
        font-size: 32px;
        line-height: 40px;
        letter-spacing: -1px;
    }

    .projetos__desc {
        font-size: 14px;
    }

    /* --- DESTAQUE --- */
    .destaque {
        padding-top: 120px;
        padding-bottom: 80px;
    }

    .destaque__card {
        flex-direction: column;
        min-height: auto;
        padding: 60px 32px 0;
        align-items: flex-start;
    }

    .destaque__conteudo {
        width: 100%;
        padding-bottom: 40px;
    }

    .destaque__titulo {
        font-size: 52px;
        line-height: 58px;
        letter-spacing: -2px;
    }

    .destaque__descricao {
        font-size: 16px;
        line-height: 26px;
        max-width: 100%;
    }

    .destaque__imagem-container {
        position: relative;
        right: auto;
        bottom: auto;
        width: 100%;
        height: auto;
        justify-content: center;
        margin-top: 20px;
    }

    .destaque__celular {
        max-width: 320px;
        margin: 0 auto;
        display: block;
    }

    /* --- IMPACTO --- */
    .impacto {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .impacto__container {
        flex-direction: column;
        gap: 60px;
        align-items: flex-start;
    }

    .impacto__header {
        width: 100%;
    }

    .impacto__lista {
        width: 100%;
        gap: 48px;
    }

    .impacto__titulo {
        letter-spacing: -3px;
    }

    .impacto__linha-um {
        font-size: 72px;
        line-height: 80px;
    }

    .impacto__palavra-niveis {
        font-size: 76px;
        line-height: 80px;
    }

    .impacto__item-titulo {
        font-size: 26px;
    }

    /* --- TECNOLOGIAS --- */
    .tecnologias {
        padding-top: 80px;
        padding-bottom: 100px;
    }

    .tecnologias__container {
        flex-direction: column-reverse;
        align-items: center;
    }

    .tecnologias__bolhas {
        width: 100%;
        height: 340px;
    }

    .bolha {
        width: 120px;
        height: 120px;
    }

    .bolha--html {
        top: 30%;
        left: 0%;
    }

    .bolha--python {
        top: 0%;
        left: 35%;
    }

    .bolha--css {
        bottom: 0%;
        left: 10%;
    }

    .bolha--js {
        bottom: 10%;
        right: 0%;
    }

    .tecnologias__conteudo {
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .tecnologias__titulo {
        align-items: center;
        letter-spacing: -3px;
    }

    .linha-1,
    .linha-3 {
        font-size: 72px;
        line-height: 80px;
    }

    .linha-2 {
        font-size: 68px;
        line-height: 80px;
        margin-left: 0;
    }

    .linha-3 {
        margin-left: 0;
    }

    .tecnologias__circulos {
        display: none;
    }

    .tecnologias__descricao {
        font-size: 16px;
        margin-left: 0;
        text-align: center;
        max-width: 100%;
    }

    /* --- DEPOIMENTOS --- */
    .depoimentos {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .depoimentos__titulo {
        font-size: 32px;
        line-height: 44px;
    }

    .depoimentos__subtitulo {
        font-size: 15px;
        line-height: 24px;
    }

    .carousel-card {
        width: 320px;
        height: auto;
        min-height: 220px;
        padding: 20px 24px;
    }

    .carousel-card.active {
        height: auto;
        min-height: 240px;
    }

    .card__nome {
        font-size: 18px;
    }

    .card__texto {
        font-size: 14px;
        line-height: 22px;
    }
}

/* =========================================
   MOBILE SMALL — 480px
   ========================================= */
@media (max-width: 480px) {

    /* --- HEADER --- */
    .header__logo img {
        height: 26px;
    }

    /* --- HERO --- */
    .hero {
        padding-top: 110px;
        padding-bottom: 180px;
    }

    .hero__lua {
        width: 600px;
    }

    .hero__titulo {
        font-size: 30px;
        line-height: 36px;
    }

    .hero__descricao {
        font-size: 14px;
    }

    .btn-hero {
        width: 210px;
        height: 46px;
        font-size: 14px;
    }

    /* --- SOBRE --- */
    .sobre__titulo {
        font-size: 28px;
        line-height: 36px;
    }

    .sobre__descricao {
        font-size: 15px;
    }

    .sobre__visual {
        width: 120px;
        height: 120px;
        top: 50%;
        right: -40px;
        bottom: auto;
        transform: translateY(-50%);
        opacity: 0.65;
    }

    .sobre__planeta {
        width: 120px;
        height: 120px;
    }

    .sobre__anel {
        width: 135px;
        height: 260px;
    }

    /* --- PILARES --- */
    .pilares__grid {
        grid-template-columns: 1fr;
    }

    .pilares__grid .pilares__card:nth-child(7) {
        grid-column: 1;
    }

    .pilares__titulo {
        font-size: 26px;
        line-height: 34px;
    }

    /* --- PROJETOS --- */
    .projetos__titulo {
        font-size: 28px;
    }

    .projetos__img-container {
        height: 180px;
    }

    .projetos__nome {
        font-size: 26px;
        line-height: 34px;
    }

    /* --- DESTAQUE --- */
    .destaque__titulo {
        font-size: 40px;
        line-height: 46px;
        letter-spacing: -1px;
    }

    .destaque__descricao {
        font-size: 14px;
    }

    .destaque__celular {
        max-width: 260px;
    }

    /* --- IMPACTO --- */
    .impacto__linha-um {
        font-size: 56px;
        line-height: 64px;
    }

    .impacto__palavra-niveis {
        font-size: 58px;
        line-height: 64px;
    }

    .impacto__circulos {
        width: 130px;
    }

    .circulo-1 {
        width: 80px;
        height: 80px;
    }

    .circulo-2 {
        width: 70px;
        height: 70px;
        left: 32px;
    }

    .circulo-3 {
        width: 55px;
        height: 55px;
        left: 75px;
    }

    .impacto__item-titulo {
        font-size: 22px;
    }

    .impacto__item-desc {
        font-size: 14px;
    }

    /* --- TECNOLOGIAS --- */
    .linha-1,
    .linha-3 {
        font-size: 52px;
        line-height: 60px;
    }

    .linha-2 {
        font-size: 50px;
        line-height: 60px;
    }

    .tecnologias__descricao {
        font-size: 14px;
    }

    .bolha {
        width: 100px;
        height: 100px;
    }

    /* --- DEPOIMENTOS --- */
    .depoimentos__titulo {
        font-size: 26px;
        line-height: 36px;
    }

    .carousel-card {
        width: 280px;
        padding: 16px 20px;
    }

    .card__nome {
        font-size: 16px;
    }

    .card__texto {
        font-size: 13px;
    }

    .btn-carousel {
        width: 46px;
        height: 46px;
    }
}