/* ============================================================
   CENA 2
   Este arquivo contém apenas os estilos específicos da cena 2
   e seus ajustes responsivos.
   ============================================================ */

/* ============================================================
   CENA 2 — SOBRE MIM
   ============================================================ */
#scene-2 {
    padding: 10vw;
    flex-direction: column;
    justify-content: center;
}

#scene-2 .content {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 8vw;   
    align-items: center;
}

#scene-2 h2 {
    font-size: clamp(2rem, 3.2vw, 3.2rem);   /* ← é AQUI que você mexe */
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

#scene-2 .bio {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-muted);
    overflow-wrap: anywhere;
    word-break: break-word;
}

#scene-2 .bio p { margin-bottom: 1.3rem; }

#scene-2 h2,
.tech-tag,
.tech-tag strong {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.tech-tags {
    display: flex;
    gap: 3rem;
    margin-top: 2.5rem;
    border-top: 1px solid rgba(128, 128, 128, 0.2);
    padding-top: 1.8rem;
}

.tech-tag {
    font-size: 0.7rem;
    line-height: 1.5;
}

.tech-tag strong {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    margin-top: 0.2rem;
    letter-spacing: 0.08em;
}

/* ------------------------------------------------------------
   BOLINHA DO KARAOKÊ
   ------------------------------------------------------------ */
#scene-2 h2 {
    position: relative;    /* âncora pra bolinha */
}

.bb-letter {
    display: inline-block;
    color: var(--text-muted);
    transition: color 0.22s ease, text-shadow 0.22s ease;
    will-change: color;
}

.bb-letter.bb-hit {
    color: var(--text-color);
    text-shadow: 0 0 14px rgba(255, 45, 85, 0.35);
}

.bb-space {
    display: inline-block;
    width: 0.3em;
}

.bb-ball {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 5;

    /* Bolinha puramente preta — sem luz, sem sombra, sem gradiente */
    background: #000;

    /* Squash com origem no fundo (o pouso fica cravado no baseline) */
    transform-origin: 50% 100%;
    will-change: transform, opacity;

    /* Começa invisível; a IIFE liga via resetCycle() */
    opacity: 0;
    transition: opacity 0.4s ease;
}

.terminal-cursor {
    display: inline-block;
    background: #00ff66;
    color: #00ff66;
}

.bb-ink {
    position: absolute;
    border-radius: 50%;
    background: #000;
    pointer-events: none;
    z-index: 4;
    will-change: transform, opacity;
}

/* ============================================================
   MOBILE — LAYOUT CINEMÁTICO
   ============================================================ */
@media (max-width: 768px) {

    /* ---------------- CENA 2 ---------------- */
        #scene-2 {
            padding:
                calc(58px + env(safe-area-inset-top))
                20px
                calc(24px + env(safe-area-inset-bottom));
            flex-direction: column;
            justify-content: flex-start;
            overflow: hidden;
        }

    #scene-2 .content {
            width: 100%;
            max-width: 560px;
            margin: 9vh auto 0;
            display: flex;
            flex-direction: column;
            gap: 14px;
            align-items: stretch;
        }

    #scene-2 h2 {
            font-size: clamp(1.9rem, 7.7vw, 3rem);
            line-height: 1.03;
            letter-spacing: -0.035em;
        }

    #scene-2 .bio {
            font-size: clamp(0.76rem, 3.05vw, 0.94rem);
            line-height: 1.48;
        }

    #scene-2 .bio p { margin-bottom: 0.72rem; }

    .tech-tags {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 8px;
            margin-top: 0.3rem;
            padding-top: 0.8rem;
        }

    .tech-tag {
            font-size: 0.54rem;
            line-height: 1.3;
        }

    .tech-tag strong {
            font-size: 0.72rem;
            margin-top: 0.08rem;
            letter-spacing: 0.05em;
        }
}

/* ============================================================
   TELAS MUITO PEQUENAS
   ============================================================ */
@media (max-width: 380px) {

    #scene-2 .content {
            margin-top: 7vh;
            gap: 10px;
        }

    #scene-2 .bio { font-size: 0.72rem; line-height: 1.4; }

    .tech-tag strong { font-size: 0.66rem; }
}

/* ============================================================
   CELULAR DEITADO — LANDSCAPE
   ============================================================ */
@media (max-width: 900px) and (orientation: landscape) {

    /* ---------------- CENA 2 ---------------- */
        #scene-2 {
            padding: 48px 6vw 20px;
            justify-content: center;
            overflow: hidden;
        }

    #scene-2 .content {
            width: 100%;
            max-width: 1000px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 0.85fr 1.15fr;
            gap: 5vw;
            align-items: center;
        }

    #scene-2 h2 {
            font-size: clamp(1.7rem, 4.6vw, 3rem);
            line-height: 1;
            letter-spacing: -0.04em;
        }

    #scene-2 .bio {
            font-size: clamp(0.62rem, 1.65vw, 0.82rem);
            line-height: 1.45;
        }

    #scene-2 .bio p { margin-bottom: 0.65rem; }

    .tech-tags {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 0.7rem;
            margin-top: 0.7rem;
            padding-top: 0.8rem;
        }

    .tech-tag {
            font-size: 0.48rem;
            line-height: 1.3;
        }

    .tech-tag strong {
            font-size: 0.68rem;
            margin-top: 0.08rem;
        }
}

/* ============================================================
   CELULAR DEITADO — ALTURA MUITO BAIXA
   ============================================================ */
@media (max-width: 900px)
and (orientation: landscape)
and (max-height: 430px) {
    #scene-2 {
        padding-top: 38px;
        padding-bottom: 14px;
    }

    #scene-2 h2 { font-size: clamp(1.35rem, 4vw, 2.3rem); }

    #scene-2 .bio { font-size: 0.58rem; line-height: 1.35; }

    #scene-2 .bio p { margin-bottom: 0.42rem; }

    .tech-tags { margin-top: 0.4rem; padding-top: 0.55rem; }

    .tech-tag { font-size: 0.4rem; }

    .tech-tag strong { font-size: 0.58rem; }
}

/* ============================================================
   CELULARES MUITO PEQUENOS — LANDSCAPE
   ============================================================ */
@media (max-width: 700px)
and (orientation: landscape)
and (max-height: 360px) {

    /* CENA 2 */
        #scene-2 { padding: 30px 14px 10px; justify-content: center; }

    #scene-2 .content {
            grid-template-columns: 0.8fr 1.2fr;
            gap: 3vw;
            max-width: 100%;
        }

    #scene-2 h2 { font-size: clamp(1.15rem, 4vw, 1.8rem); line-height: 0.95; }

    #scene-2 .bio { font-size: clamp(0.5rem, 1.05vw, 0.66rem); line-height: 1.35; }

    #scene-2 .bio p { margin-bottom: 0.3rem; }

    .tech-tags { margin-top: 0.25rem; padding-top: 0.4rem; gap: 0.4rem; }

    .tech-tag { font-size: clamp(0.46rem, 0.9vw, 0.58rem); }

    .tech-tag strong { font-size: clamp(0.5rem, 1vw, 0.64rem); }
}

@media (prefers-reduced-motion: reduce) {

    .bb-ball { display: none; }

    .bb-letter { color: inherit !important; }
}
