/* =========================================================
   TELA DE INICIO (celular e tablet)
   O computador (>= 1024px) usa o layout original (.hero-classico).
   ========================================================= */

:root {
    --hn-azul: #0b7cff;
    --hn-azul-texto: #4da3ff;
    --hn-texto: #ffffff;
    --hn-texto-suave: rgba(255, 255, 255, .88);
    --hn-linha: rgba(255, 255, 255, .28);
    --hn-rede-bg: rgba(6, 14, 32, .55);
}

body.light {
    --hn-azul-texto: #1a73e8;
    --hn-texto: #0b1630;
    --hn-texto-suave: #1f2a44;
    --hn-linha: rgba(11, 22, 48, .25);
    --hn-rede-bg: rgba(255, 255, 255, .55);
}

/* computador: mostra o layout original e esconde o novo */
@media screen and (min-width: 1024px) {
    .inicio .hn-conteudo,
    .inicio .hn-scroll { display: none; }

    .inicio .hero-classico { display: contents; }

    /* o wrapper nao conta como filho direto, entao devolve o empilhamento acima do veu do fundo */
    .inicio .hero-classico > article { position: relative; z-index: 1; }

    /* paragrafo novo, abaixo de "Eu sou um Dev FullStack" */
    section#container div.texto p.hero-paragrafo {
        max-width: 30em;
        margin: 14px 0 0;
        font-size: 17px;
        font-weight: 400;
        line-height: 1.55;
        color: var(--titulo-home);
        opacity: .9;
    }
}

/* celular e tablet: mostra o layout novo e esconde o original */
@media screen and (max-width: 1023px) {

    .inicio .hero-classico { display: none; }

    section#container.inicio {
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: center;
        box-sizing: border-box;
        min-height: 100vh;
        min-height: 100svh;
        padding: 28px 0 120px;
        gap: 0;
        font-family: 'inter', 'Inter', sans-serif;
    }

    .inicio .hn-conteudo {
        position: relative;
        z-index: 2;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        box-sizing: border-box;
        width: 100%;
        max-width: 560px;
        padding: 0 7vw;
        color: var(--hn-texto);
    }

    /* selo */
    .inicio .hn-badge {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 7px 14px;
        border: 1px solid var(--hn-azul);
        border-radius: 999px;
        color: var(--hn-azul-texto);
        background: rgba(11, 124, 255, .06);
        font-size: 11.5px;
        font-weight: 700;
        letter-spacing: .04em;
        text-transform: uppercase;
        line-height: 1;
        white-space: nowrap;
    }

    .inicio .hn-badge i { font-size: 11px; }

    /* titulo */
    .inicio .hn-titulo { margin-top: 18px; }

    .inicio .hn-ola {
        margin: 0;
        font-size: clamp(17px, 4.8vw, 24px);
        font-weight: 400;
        line-height: 1.2;
        color: var(--hn-texto);
    }

    .inicio .hn-titulo h1 {
        margin: 2px 0 0;
        font-size: clamp(32px, 9.6vw, 50px);
        font-weight: 800;
        line-height: 1.04;
        letter-spacing: -.02em;
        color: var(--hn-texto);
        text-shadow: none;
    }

    .inicio .hn-titulo h1 span {
        display: block;
        color: var(--hn-azul);
        text-shadow: none;
    }

    .inicio .hn-descricao {
        margin: 12px 0 0;
        max-width: 28em;
        font-size: clamp(12.5px, 3.3vw, 15px);
        line-height: 1.5;
        color: var(--hn-texto-suave);
    }

    /* destaques */
    .inicio .hn-destaques {
        display: flex;
        align-items: center;
        margin-top: 18px;
    }

    .inicio .hn-destaque {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: clamp(11px, 2.9vw, 13px);
        line-height: 1.3;
        color: var(--hn-texto-suave);
    }

    .inicio .hn-destaque i {
        font-size: clamp(17px, 4.6vw, 22px);
        color: var(--hn-azul);
    }

    .inicio .hn-destaque + .hn-destaque {
        margin-left: 18px;
        padding-left: 18px;
        border-left: 1px solid var(--hn-linha);
    }

    /* botoes */
    .inicio .hn-botoes {
        display: flex;
        flex-direction: column;
        gap: 11px;
        width: 100%;
        margin: 20px 0 0;
    }

    .inicio .hn-btn {
        display: flex;
        align-items: center;
        justify-content: space-between;
        box-sizing: border-box;
        width: 100%;
        min-height: 46px;
        padding: 0 20px;
        border-radius: 999px;
        text-decoration: none;
        font-family: inherit;
        font-size: 15px;
        font-weight: 500;
        line-height: 1.2;
        white-space: nowrap;
        transition: background .25s ease, border-color .25s ease, transform .2s ease;
    }

    .inicio .hn-btn i { font-size: 17px; }
    .inicio .hn-btn:hover { transform: translateY(-2px); }

    .inicio .hn-btn-principal {
        color: #ffffff;
        background: var(--hn-azul);
        border: 2px solid var(--hn-azul);
        box-shadow: 0 5px 18px rgba(11, 124, 255, .32);
    }

    .inicio .hn-btn-principal:hover { background: #0a6de0; border-color: #0a6de0; }

    /* Entrar em contato: transparente */
    .inicio .hn-btn-contorno {
        color: var(--hn-azul-texto);
        background: transparent;
        border: 2px solid var(--hn-azul);
    }

    .inicio .hn-btn-contorno:hover { background: rgba(11, 124, 255, .14); }

    /* curriculo */
    .inicio .hn-cv {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        margin-top: 16px;
        padding: 0 4px 6px;
        color: var(--hn-texto-suave);
        text-decoration: none;
        font-size: 13.5px;
        border-bottom: 1px solid var(--hn-linha);
        transition: color .25s ease, border-color .25s ease;
    }

    .inicio .hn-cv i { font-size: 13px; }
    .inicio .hn-cv:hover { color: var(--hn-azul-texto); border-color: var(--hn-azul); }

    /* redes */
    .inicio .hn-redes {
        display: flex;
        gap: 12px;
        margin: 20px 0 0;
        padding: 0;
        list-style: none;
    }

    .inicio .hn-redes li { list-style: none; }

    .inicio .hn-redes a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        width: 44px;
        height: 44px;
        border: 1.5px solid rgba(11, 124, 255, .85);
        border-radius: 50%;
        background: var(--hn-rede-bg);
        color: var(--hn-texto);
        font-size: 20px;
        text-decoration: none;
        transition: background .25s ease, color .25s ease, transform .2s ease;
    }

    .inicio .hn-redes a:hover { background: var(--hn-azul); color: #ffffff; transform: translateY(-2px); }

    /* role para explorar (mais para cima) */
    .inicio .hn-scroll {
        position: absolute;
        left: 50%;
        bottom: 64px;
        z-index: 2;
        transform: translateX(-50%);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        color: var(--hn-texto);
        text-decoration: none;
        font-size: 13px;
        white-space: nowrap;
    }

    .inicio .hn-scroll i { font-size: 12px; animation: hn-seta 1.6s ease-in-out infinite; }

    .inicio .hn-mouse {
        position: relative;
        width: 18px;
        height: 27px;
        box-sizing: border-box;
        border: 1.5px solid currentColor;
        border-radius: 10px;
    }

    .inicio .hn-mouse::after {
        content: '';
        position: absolute;
        top: 5px;
        left: 50%;
        width: 2px;
        height: 5px;
        margin-left: -1px;
        border-radius: 2px;
        background: currentColor;
    }
}

@keyframes hn-seta {
    0%, 100% { transform: translateY(0); opacity: .7; }
    50%      { transform: translateY(4px); opacity: 1; }
}

/* tablet: mesmo layout, letras um pouco maiores que no celular, mas contidas */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    .inicio .hn-conteudo { max-width: 520px; padding: 0 0 0 6vw; }
    .inicio .hn-titulo h1 { font-size: 46px; }
    .inicio .hn-ola { font-size: 22px; }
    .inicio .hn-descricao { font-size: 15px; }
    .inicio .hn-destaque { font-size: 13px; }
    .inicio .hn-btn { min-height: 48px; font-size: 15px; }
    .inicio .hn-scroll { bottom: 56px; }
}

/* celular deitado */
@media screen and (max-width: 1023px) and (orientation: landscape) and (max-height: 520px) {
    section#container.inicio { padding: 20px 0 100px; }
}

/* =========================================================
   BOTAO DE TEMA: pilula com lua e sol
   ========================================================= */
header button#theme-toggle {
    box-sizing: border-box;
    display: inline-block;
    flex: 0 0 auto;
    width: 56px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .10);
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    overflow: hidden;
    transition: background .3s ease;
}

header button#theme-toggle:hover { background: rgba(255, 255, 255, .16); }

/* bolinha com o icone do tema atual */
header button#theme-toggle .tt-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #0a0d14;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .45);
}

header button#theme-toggle i {
    position: absolute;
    top: 50%;
    width: 22px;
    margin-top: -7px;
    text-align: center;
    font-size: 13px;
    line-height: 14px;
}

/* escuro: lua na bolinha (esquerda), sol apagado (direita) */
header button#theme-toggle .tt-moon { left: 3px; color: #ffffff; }
header button#theme-toggle .tt-sun  { right: 3px; color: rgba(255, 255, 255, .55); }

/* claro: sol na bolinha (esquerda), lua apagada (direita) */
body.light header button#theme-toggle { background: rgba(255, 255, 255, .55); }
body.light header button#theme-toggle:hover { background: rgba(255, 255, 255, .75); }
body.light header button#theme-toggle .tt-knob { background: #ffffff; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
body.light header button#theme-toggle .tt-sun  { left: 3px; right: auto; color: #f59e0b; }
body.light header button#theme-toggle .tt-moon { left: auto; right: 3px; color: rgba(17, 24, 39, .45); }

/* celular: pilula e menu hamburguer alinhados */
@media screen and (max-width: 767px) {
    header > div:not(.overlay) {
        display: flex;
        align-items: center;
        gap: 14px;
        margin-right: 10px;
    }

    header button#theme-toggle {
        position: relative;
        margin: 0;
        transform: none;
    }

    header i#burguer {
        transform: none;
        margin-right: 0;
    }
}

/* CABECALHO (celular/tablet): escuro translucido no escuro, claro no claro */
@media screen and (max-width: 1023px) {
    header {
        background-color: rgba(8, 12, 22, .72);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }
    
    body.light header {
        background-color: rgba(238, 244, 255, .78);
    }
    
    body.light header button#theme-toggle { background: rgba(11, 22, 48, .08); }
    body.light header button#theme-toggle:hover { background: rgba(11, 22, 48, .14); }
    body.light header button#theme-toggle .tt-knob { background: #ffffff; box-shadow: 0 1px 4px rgba(11, 22, 48, .28); }
}

/* =========================================================
   CORRECAO CABECALHO (tablet/computador)
   1) Modo claro: links do menu ficavam brancos sobre fundo claro.
   2) Menu empurrado para a esquerda para nao ficar em cima do botao de tema.
   ========================================================= */
@media screen and (min-width: 768px) {
    header nav#menu div#explorar {
        /* botao de tema (56px) + distancia da borda + folga */
        margin-right: calc(56px + 4vw + 18px);
    }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
    body.light header nav#menu div#explorar a {
        color: #0b1630;
        background: rgba(255, 255, 255, .55);
        border-color: rgba(11, 22, 48, .18);
    }

    body.light header nav#menu div#explorar a:hover {
        background: rgba(255, 255, 255, .85);
        border-color: rgba(37, 99, 235, .45);
    }

    body.light header nav#menu div#explorar a:active,
    body.light header nav#menu div#explorar a:focus {
        color: #1d4ed8;
    }
}
