/* Abertura da home: quem eu sou (o nome), o que eu faco (Brawling the Bits) e o Jotaro.
   No celular tudo empilhado e centralizado; na tela larga o Jotaro vai pro lado,
   pra os cartoes do CEDERJ e do blog aparecerem ja na primeira tela. */
.hero {
    width: 90%;
    max-width: var(--largura);
    margin: 0 auto;
    padding: 2.5rem 1rem 1rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 2rem 3rem;
}

.hero__texto {
    min-width: 0;
}

.hero__ola {
    font-family: var(--font-pixel);
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--pink);
    margin: 0 0 1.5rem;
}

/* a resposta: "I am Beatriz Costa and I am brawling the bits", o user do GitHub.
   Os "I am" ficam pequenos e apagados; o nome e o lema sao os grandes. */
.hero__resposta {
    font-family: var(--font-pixel);
    font-weight: 400;
    margin: 0 0 1.5rem;
}

.hero__resposta > span {
    display: block;
}

.hero__eu {
    font-size: clamp(0.72rem, 1.3vw, 0.9rem);
    line-height: 1.6;
    color: var(--texto-suave);
    margin-bottom: 0.7rem;
}

.hero__nome {
    font-size: clamp(1.6rem, 4.2vw, 3rem);
    line-height: 1.35;
    margin-bottom: 1.1rem;
}

/* o lema vira um logo de fliperama: amarelo com sombra rosa dura e um cursor piscando */
.hero__marca {
    font-size: clamp(0.95rem, 2.4vw, 1.6rem);
    line-height: 1.6;
    text-transform: uppercase;
    color: var(--yellow);
    text-shadow: 3px 3px 0 var(--pink);
}

.hero__marca::after {
    content: "_";
    margin-left: 0.15em;
    color: var(--text-color);
    text-shadow: none;
    animation: pisca 1.1s steps(1) infinite;
}

@keyframes pisca {
    50% { opacity: 0; }
}

.hero__intro {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--texto-suave);
    max-width: 40ch;
    margin: 0;
}

.hero__jotaro {
    display: block;
    width: auto;
    height: clamp(220px, 40vh, 380px);
    image-rendering: pixelated;
}

/* Portas da home: um cartao pro CEDERJ e outro pro blog. O cartao inteiro e o link.
   Enquanto o blog nao tem post, a porta dele fica tracejada, sem link, com EM BREVE. */
.portas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0 2.5rem;
}

.porta {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    min-width: 0;
    padding: 1.5rem;
    border: 2px solid var(--purple);
    border-radius: 2px;
    color: var(--text-color);
    text-decoration: none;
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

a.porta:hover {
    border-color: var(--pink);
    transform: translate(-3px, -3px);
    box-shadow: var(--sombra-px) var(--pink);
}

.porta__topo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.porta__titulo {
    font-family: var(--font-pixel);
    font-size: 1.1rem;
    color: var(--yellow);
}

.porta__texto {
    line-height: 1.6;
    flex: 1;
    margin: 0;
}

.porta__rodape {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.porta__meta {
    font-size: 0.85rem;
    color: var(--pink);
}

.porta__seta {
    font-family: var(--font-pixel);
    color: var(--pink);
    margin-left: auto;
}

.porta--breve {
    border-style: dashed;
    border-color: var(--linha);
}

.porta--breve .porta__titulo,
.porta--breve .porta__texto {
    color: var(--texto-suave);
}

/* "To Be Continued" no fim da pagina, como fim de episodio */
.continua {
    display: flex;
    justify-content: flex-end;
    margin: 3rem 0 0;
}

.continua img {
    width: 220px;
    max-width: 60%;
    height: auto;
}

/* About Section */
.about__title {
    font-family: 'Press Start 2P', cursive;
    margin: 2.5rem 0;
}

.about__description {
    line-height: 1.6;
    margin: 1.5rem 0;
}

/* Experience Section */
.experience__title {
    font-family: 'Press Start 2P', cursive;
    margin: 2.5rem 0;
}

.experience__item {
    margin-bottom: 3rem;
}

.experience__company {
    font-size: 1.25rem;
    margin: 1.5rem 0;
}

.experience__duration {
    color: #a8a8a8;
    margin: 1rem 0;
}

.experience__description {
    line-height: 1.6;
    margin: 1.5rem 0;
}

.experience__list {
    list-style: circle;
    padding-left: 1.5rem;
}

.experience__list-item {
    margin: 1rem 0;
    line-height: 1.6;
}

/* Tech Stack */
.tech-stack__title {
    font-family: 'Press Start 2P', cursive;
    margin: 2.5rem 0;
}

.tech-stack__icons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 2rem;
    justify-items: center;
    padding: 2rem 0;
}

.tech-stack__icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    transition: transform 0.2s;
}

.tech-stack__icon:hover {
    transform: scale(1.1);
}

/* Education Section */
.education__title {
    font-family: 'Press Start 2P', cursive;
    margin: 2.5rem 0;
}

.education__description {
    line-height: 1.6;
    margin: 1.5rem 0;
}

.education__resources {
    list-style: none;
    padding: 0;
}

.education__resource-item {
    margin: 1rem 0;
}

.education__resource-item a {
    color: #fffff0;
    text-decoration: none;
    transition: opacity 0.2s;
}

.education__resource-item a:hover {
    opacity: 0.8;
}

/* Rodape: os icones doodle das redes e o copyright embaixo.
   Igual em todas as paginas (o build.py monta a partir do site.json). */
.footer {
    width: 100%;
    padding: 2.5rem 1rem 2rem;
    margin-top: 2rem;
    text-align: center;
    font-family: var(--font-pixel);
    font-size: 0.65rem;
    border-top: 1px dashed var(--linha-fraca);
}

.footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    margin-bottom: 1.5rem;
}

.footer__link {
    display: inline-block;
    padding: 6px;
    transition: transform 0.2s;
}

.footer__link:hover {
    transform: translateY(-4px);
}

.footer__link img {
    display: block;
    width: 32px;
    height: 32px;
}

.footer__text {
    color: var(--texto-suave);
    margin: 0;
}

/* Listagem do blog (quando tiver post) */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-post {
    background: rgba(255, 255, 240, 0.05);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.blog-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.3);
}

.blog-post__title {
    font-family: var(--font-pixel);
    margin-bottom: 0.5rem;
}

.blog-post__date {
    color: #a8a8a8;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.blog-post__excerpt {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.blog-post__link {
    font-weight: bold;
    color: var(--text-color);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 240, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background 0.2s, opacity 0.2s;
}

.blog-post__link:hover {
    background: rgba(255, 255, 240, 0.1);
    opacity: 0.9;
}

.post-content {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.post-meta {
    color: #a8a8a8;
    margin: 1rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.post-date {
    font-size: 0.875rem;
}

.post-tags {
    display: flex;
    gap: 0.5rem;
}

.post-tag {
    background: rgba(255, 255, 240, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 16px;
    font-size: 0.75rem;
}

@media (prefers-reduced-motion: reduce) {
    .porta,
    a.porta:hover {
        transition: none;
        transform: none;
    }

    .hero__marca::after {
        animation: none;
    }
}
