/* ============================================================
   CORREÇÕES GLOBAIS (independente de breakpoint)
============================================================ */

/* Fix: borda branca no portfolio grid — o background branco aparecia
   nos cantos arredondados quando as imagens não cobriam o espaço todo */
.portfolio-grid {
    background: transparent;
}

/* Fix: garante que cada célula do grid cubra 100% do espaço
   sem deixar gaps que exponham o fundo */
.portfolio-grid__cell {
    background: #000;
    overflow: hidden;
}

.portfolio-grid__item {
    object-position: center;
}

/* Fix: imagens da página Sobre — alinhadas pelo topo em telas menores
   para não cortar o rosto/parte principal da imagem */
@media (max-width: 1024px) {

    .sobre-historia__img,
    .sobre-skills__img {
        object-position: top;
    }
}

/* Fix: foto hero e badge de profissões nas duas menores medidas */
@media (max-width: 480px) {

    /* Ancora foto pelo topo para não cortar o rosto */
    .hero__photo {
        object-position: top;
    }

    /* Remove o position:relative do wrapper para o badge
       não ficar preso dentro da área da foto */
    .hero__photo-wrapper {
        position: static;
    }

    /* Badge sai do absolute e flui normalmente abaixo da foto */
    .hero__role-badge {
        position: static;
        transform: none;
        margin-top: 20px;
        padding: 8px 0;
        text-align: center;
        width: 100%;
    }

    .sobre-historia__img,
    .sobre-skills__img {
        object-position: top;
    }
}

@media (max-width: 375px) {

    .hero__photo {
        object-position: top;
    }

    .hero__photo-wrapper {
        position: static;
    }

    .hero__role-badge {
        position: static;
        transform: none;
        margin-top: 20px;
        padding: 8px 0;
        text-align: center;
        width: 100%;
    }

    .sobre-historia__img,
    .sobre-skills__img {
        object-position: top;
    }
}


/* ============================================================
   RESPONSIVE.CSS
   Design base: 1440px (sem alterações nesse tamanho)
   Breakpoints cobertos (somente abaixo de 1440px):

   → max-width: 1280px  Laptops 13"/14"
   → max-width: 1024px  Tablets horizontais / iPad Pro
   → max-width: 768px   Tablets verticais / iPad Mini
   → max-width: 720px   HD ready / tablets pequenos
   → max-width: 600px   Smartphones landscape / transição
   → max-width: 480px   Smartphones padrão (iPhone 14, Galaxy S)
   → max-width: 375px   Smartphones compactos (iPhone SE, Galaxy A)

   Não altera nenhuma regra dos arquivos CSS originais.
============================================================ */


/* ============================================================
   1280px — Laptops 13"/14"
============================================================ */
@media (max-width: 1280px) {

    /* styles.css */
    .hero,
    .portfolio-section,
    .portfolio-grid,
    .social-highlights-section,
    .social-highlights,
    .resume-section,
    .section-divider {
        width: 100%;
        padding-left: 40px;
        padding-right: 40px;
    }

    .hero {
        gap: 24px;
    }

    .hero__left,
    .hero__photo-wrapper {
        width: 420px;
    }

    .hero__photo {
        width: 420px;
        height: 460px;
    }

    .hero__greeting {
        font-size: 100px;
        width: 100%;
    }

    .hero__name {
        font-size: 124px;
        width: 100%;
    }

    .hero__bio {
        width: 100%;
    }

    .hero__bio p {
        font-size: 20px;
    }

    .quote-section {
        width: 100%;
        padding: 0 40px;
    }

    .quote__text {
        font-size: 32px;
    }

    .post-card {
        width: 420px;
        height: auto;
    }

    .social-highlights {
        gap: 36px;
    }

    .resume-grid {
        gap: 32px;
    }

    .footer__bottom {
        padding: 48px 64px;
    }

    /* sobre.css */
    .sobre-hero,
    .sobre-historia,
    .sobre-skills {
        width: 100%;
        padding-left: 40px;
        padding-right: 40px;
    }

    .sobre-hero__word {
        font-size: 150px;
    }

    .sobre-hero__word--accent {
        font-size: 68px;
    }

    .sobre-hero__bio {
        font-size: 22px;
    }

    .sobre-card {
        width: 320px;
        padding: 40px 32px;
    }

    .sobre-historia__img,
    .sobre-skills__img {
        width: 440px;
        height: 620px;
    }

    .sobre-historia__text p,
    .sobre-skills__list li {
        font-size: 22px;
    }

    /* sandbox.css */
    .sandbox-section {
        width: 100%;
        padding-left: 40px;
        padding-right: 40px;
    }

    .sandbox-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .sandbox-card {
        width: 100%;
    }

    /* contato.css */
    .contact-section {
        width: 100%;
        padding-left: 40px;
        padding-right: 40px;
    }

    /* portfolio.css */
    .project-card,
    .project-card img#portfolioPostImage {
        height: 800px;
    }
}


/* ============================================================
   1024px — Tablets horizontais / iPad Pro / Surface
============================================================ */
@media (max-width: 1024px) {

    /* Navbar */
    .navbar {
        padding: 0 28px;
        height: 56px;
    }

    .navbar__menu {
        gap: 32px;
    }

    .nav-link {
        font-size: 16px;
    }

    /* Hero */
    .hero {
        flex-direction: column;
        align-items: center;
        padding: 0 32px;
        gap: 32px;
    }

    .hero__left,
    .hero__photo-wrapper {
        width: 100%;
        max-width: 520px;
    }

    .hero__photo {
        width: 100%;
        max-width: 520px;
        height: 420px;
    }

    .hero__right {
        width: 100%;
        align-items: center;
    }

    .hero__greeting {
        font-size: 96px;
        text-align: center;
        width: 100%;
    }

    .hero__name {
        font-size: 116px;
        text-align: center;
        width: 100%;
    }

    .hero__bio {
        width: 100%;
    }

    .hero__bio p {
        font-size: 18px;
        text-align: center;
    }

    .hero__social-icons {
        justify-content: center;
    }

    .role-text {
        font-size: 26px;
    }

    /* Quote */
    .quote-section {
        padding: 0 32px;
    }

    .quote__text {
        font-size: 26px;
    }

    .quote__author {
        font-size: 20px;
    }

    /* Portfolio */
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        border-radius: 32px;
    }

    .portfolio-grid__item {
        height: 300px;
    }

    /* Social */
    .social-highlights {
        flex-direction: column;
        gap: 32px;
        padding: 0 32px;
    }

    .post-card {
        width: 100%;
        height: auto;
    }

    /* Resume */
    .resume-grid {
        flex-direction: column;
        gap: 32px;
        padding: 0 32px;
    }

    /* CTA */
    .cta-section {
        width: 100%;
        padding: 0 32px;
    }

    .cta-section__text {
        font-size: 22px;
    }

    /* Footer */
    .footer__links {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__bottom {
        padding: 48px;
    }

    /* sobre.css */
    .sobre-hero {
        flex-direction: column;
        align-items: center;
        padding: 0 32px;
        gap: 40px;
    }

    .sobre-card {
        width: 100%;
        max-width: 480px;
    }

    .sobre-hero__right {
        width: 100%;
        align-items: center;
        min-height: unset;
    }

    .sobre-hero__word {
        font-size: 120px;
        text-align: center;
    }

    .sobre-hero__word--accent {
        font-size: 56px;
        text-align: center;
    }

    .sobre-hero__bio {
        font-size: 20px;
        text-align: center;
        max-width: 100%;
    }

    .sobre-hero__social {
        justify-content: center;
    }

    .sobre-historia {
        flex-direction: column;
        padding: 0 32px;
        gap: 32px;
    }

    .sobre-historia__img {
        width: 100%;
        height: 480px;
    }

    .sobre-historia__title,
    .sobre-skills__title {
        font-size: 32px;
    }

    .sobre-historia__text p {
        font-size: 18px;
    }

    .sobre-skills {
        flex-direction: column;
        padding: 0 32px;
        gap: 32px;
    }

    .sobre-skills__img {
        width: 100%;
        height: 480px;
    }

    .sobre-skills__list li {
        font-size: 18px;
    }

    /* sandbox.css */
    .sandbox-section {
        padding: 0 32px 32px;
    }

    .sandbox-title {
        font-size: 32px;
    }

    .sandbox-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sandbox-card {
        width: 100%;
    }

    /* contato.css */
    .contact-section {
        padding: 0 32px;
    }

    .contact-title {
        font-size: 32px;
    }

    .contact-social {
        width: 100%;
    }

    .contact-social__text {
        font-size: 24px;
    }

    /* portfolio.css */
    .project-card,
    .project-card img#portfolioPostImage {
        height: 680px;
    }

    .slider-arrow {
        font-size: 64px;
    }
}


/* ============================================================
   768px — Tablets verticais (iPad Mini, iPad)
============================================================ */
@media (max-width: 768px) {

    /* Navbar */
    .navbar {
        width: 95%;
        padding: 0 20px;
        height: 52px;
    }

    .navbar__menu {
        gap: 20px;
    }

    .nav-link {
        font-size: 14px;
    }

    .navbar__lang {
        font-size: 13px;
    }

    /* Page */
    .page-content {
        gap: 56px;
        padding-top: 90px;
        padding-bottom: 56px;
    }

    /* Hero */
    .hero {
        padding: 0 20px;
    }

    .hero__greeting {
        font-size: 72px;
    }

    .hero__name {
        font-size: 88px;
    }

    .hero__bio p {
        font-size: 16px;
    }

    .role-text {
        font-size: 20px;
    }

    /* General */
    .section-title {
        font-size: 28px;
    }

    .quote-section {
        padding: 0 20px;
    }

    .quote__text {
        font-size: 22px;
    }

    .quote__author {
        font-size: 18px;
    }

    /* Portfolio */
    .portfolio-grid {
        grid-template-columns: 1fr;
        border-radius: 24px;
    }

    .portfolio-grid__item {
        height: 260px;
    }

    /* Social */
    .social-highlights-section {
        padding: 0 20px;
    }

    .social-highlights {
        padding: 0;
    }

    /* Resume */
    .resume-section {
        padding: 0 20px;
    }

    .resume-column__title {
        font-size: 20px;
    }

    .resume-item__role {
        font-size: 16px;
    }

    /* CTA */
    .cta-section {
        padding: 0 20px;
    }

    .cta-section__text {
        font-size: 20px;
    }

    .btn--outline {
        width: 190px;
        font-size: 16px;
    }

    /* Footer */
    .footer__links {
        grid-template-columns: 1fr;
    }

    .footer__link {
        padding: 12px 24px;
        height: 72px;
    }

    .footer__bottom {
        padding: 40px 24px;
    }

    .footer__name,
    .footer__email {
        font-size: 18px;
    }

    .footer__roles,
    .footer__copyright {
        font-size: 14px;
    }

    /* sobre.css */
    .sobre-hero {
        padding: 0 20px;
    }

    .sobre-card {
        padding: 40px 24px;
    }

    .sobre-card__photo-wrapper,
    .sobre-card__photo {
        width: 180px;
        height: 180px;
    }

    .sobre-hero__word {
        font-size: 90px;
        letter-spacing: -2px;
    }

    .sobre-hero__word--accent {
        font-size: 44px;
    }

    .sobre-hero__bio {
        font-size: 18px;
    }

    .sobre-historia {
        padding: 0 20px;
    }

    .sobre-historia__img {
        height: 360px;
    }

    .sobre-historia__title,
    .sobre-skills__title {
        font-size: 28px;
    }

    .sobre-historia__text p {
        font-size: 16px;
    }

    .sobre-skills {
        padding: 0 20px;
    }

    .sobre-skills__img {
        height: 360px;
    }

    .sobre-skills__list li {
        font-size: 16px;
    }

    /* sandbox.css */
    .sandbox-section {
        padding: 0 20px 32px;
    }

    .sandbox-title {
        font-size: 28px;
        padding-top: 48px;
    }

    .sandbox-grid {
        grid-template-columns: 1fr;
    }

    .sandbox-card {
        width: 100%;
    }

    .sandbox-card__image {
        height: 200px;
    }

    .sandbox-card__title {
        font-size: 20px;
    }

    .sandbox-card__desc {
        font-size: 14px;
    }

    .sandbox-card__btn,
    .sandbox-btn-all {
        font-size: 16px;
    }

    /* contato.css */
    .contact-section {
        padding: 0 20px;
        gap: 32px;
    }

    .contact-title {
        font-size: 28px;
    }

    .contact-social__text {
        font-size: 20px;
    }

    .form-field__label {
        font-size: 16px;
    }

    .contact-submit {
        width: 120px;
        height: 44px;
        font-size: 16px;
    }

    /* portfolio.css */
    .portfolio-container {
        height: auto;
    }

    .project-card,
    .project-card img#portfolioPostImage {
        height: 480px;
    }

    .slider-arrow {
        font-size: 48px;
    }

    .slider-controls {
        bottom: 24px;
    }
}


/* ============================================================
   720px — HD ready / tablets pequenos em landscape
============================================================ */
@media (max-width: 720px) {

    /* Navbar — reduzido para caber todos os itens sem cortar */
    .navbar {
        padding: 0 12px;
        height: 50px;
        width: 98%;
    }

    .navbar__menu {
        gap: 10px;
        padding: 0;
    }

    .nav-link {
        font-size: 11.5px;
    }

    .navbar__lang {
        font-size: 11.5px;
        gap: 2px;
    }

    .theme-toggle {
        width: 24px;
        height: 24px;
    }

    .theme-toggle svg {
        width: 17px;
        height: 17px;
    }

    /* Hero */
    .hero {
        padding: 0 18px;
    }

    .hero__greeting {
        font-size: 64px;
    }

    .hero__name {
        font-size: 80px;
    }

    .hero__photo {
        height: 300px;
        object-position: top;
    }

    .hero__bio p {
        font-size: 15px;
    }

    .role-text {
        font-size: 18px;
    }

    /* General */
    .section-title {
        font-size: 26px;
    }

    .quote__text {
        font-size: 20px;
    }

    .quote__author {
        font-size: 16px;
    }

    .portfolio-grid__item {
        height: 240px;
    }

    /* CTA */
    .cta-section__text {
        font-size: 19px;
    }

    /* Footer */
    .footer__bottom {
        padding: 36px 20px;
    }

    .footer__name,
    .footer__email {
        font-size: 17px;
    }

    /* sobre.css */
    .sobre-hero__word {
        font-size: 82px;
    }

    .sobre-hero__word--accent {
        font-size: 40px;
    }

    .sobre-hero__bio {
        font-size: 17px;
    }

    .sobre-historia__img,
    .sobre-skills__img {
        height: 320px;
        object-position: top;
    }

    .sobre-historia__title,
    .sobre-skills__title {
        font-size: 26px;
    }

    .sobre-historia__text p {
        font-size: 15px;
    }

    .sobre-skills__list li {
        font-size: 15px;
    }

    /* sandbox.css */
    .sandbox-title {
        font-size: 26px;
    }

    .sandbox-card__image {
        height: 190px;
    }

    .sandbox-card__title {
        font-size: 19px;
    }

    /* contato.css */
    .contact-title {
        font-size: 26px;
    }

    .contact-social__text {
        font-size: 19px;
    }

    /* portfolio.css */
    .project-card,
    .project-card img#portfolioPostImage {
        height: 420px;
    }

    .slider-arrow {
        font-size: 44px;
    }
}


/* ============================================================
   600px — Smartphones landscape / transição
============================================================ */
@media (max-width: 600px) {

    .navbar__menu {
        gap: 14px;
    }

    .nav-link {
        font-size: 13px;
    }

    .hero__greeting {
        font-size: 58px;
    }

    .hero__name {
        font-size: 72px;
    }

    .hero__photo {
        height: 340px;
    }

    .portfolio-grid__item {
        height: 220px;
    }

    .quote__text {
        font-size: 18px;
    }

    .quote__author {
        font-size: 15px;
    }

    .post-card {
        padding: 28px 20px;
    }

    .post-card__name {
        font-size: 18px;
    }

    .post-card__platform {
        font-size: 15px;
    }

    .footer__link-icon {
        width: 30px;
        height: 30px;
    }

    /* sobre.css */
    .sobre-hero__word {
        font-size: 72px;
    }

    .sobre-hero__word--accent {
        font-size: 36px;
    }

    .sobre-hero__bio {
        font-size: 16px;
    }

    .sobre-historia__img,
    .sobre-skills__img {
        height: 300px;
    }

    /* sandbox.css */
    .sandbox-card__image {
        height: 180px;
    }

    /* portfolio.css */
    .project-card,
    .project-card img#portfolioPostImage {
        height: 380px;
    }

    .slider-arrow {
        font-size: 40px;
    }
}


/* ============================================================
   480px — Smartphones padrão (iPhone 14, Galaxy S)
============================================================ */
@media (max-width: 480px) {

    /* Navbar */
    .navbar {
        width: 96%;
        padding: 0 16px;
        height: 48px;
    }

    .navbar__menu {
        gap: 12px;
    }

    .nav-link {
        font-size: 12px;
    }

    /* Page */
    .page-content {
        gap: 48px;
        padding-top: 80px;
    }

    /* Hero */
    .hero {
        padding: 0 16px;
    }

    .hero__greeting {
        font-size: 48px;
        letter-spacing: -1px;
    }

    .hero__name {
        font-size: 60px;
        letter-spacing: -1px;
    }

    .hero__photo {
        height: 300px;
    }

    .hero__bio p {
        font-size: 15px;
    }

    .role-text {
        font-size: 17px;
    }

    /* General */
    .section-title {
        font-size: 24px;
    }

    .quote__text {
        font-size: 16px;
    }

    .portfolio-grid__item {
        height: 200px;
    }

    .social-highlights-section,
    .resume-section,
    .quote-section {
        padding: 0 16px;
    }

    .resume-item__role {
        font-size: 14px;
    }

    /* CTA */
    .cta-section {
        padding: 0 16px;
    }

    .cta-section__text {
        font-size: 18px;
    }

    .btn--outline {
        width: 170px;
        height: 44px;
        font-size: 15px;
    }

    /* Footer */
    .footer__bottom {
        padding: 32px 16px;
    }

    .footer__name,
    .footer__email {
        font-size: 16px;
    }

    .footer__roles,
    .footer__copyright {
        font-size: 13px;
    }

    /* sobre.css */
    .sobre-hero,
    .sobre-historia,
    .sobre-skills {
        padding: 0 16px;
    }

    .sobre-card {
        padding: 32px 16px;
    }

    .sobre-card__photo-wrapper,
    .sobre-card__photo {
        width: 150px;
        height: 150px;
    }

    .sobre-card__name {
        font-size: 17px;
    }

    .sobre-card__subtitle {
        font-size: 14px;
    }

    .sobre-card__badge {
        width: 180px;
        font-size: 11px;
    }

    .sobre-hero__word {
        font-size: 60px;
    }

    .sobre-hero__word--accent {
        font-size: 30px;
    }

    .sobre-hero__bio {
        font-size: 15px;
    }

    .sobre-historia__img,
    .sobre-skills__img {
        height: 260px;
    }

    .sobre-historia__title,
    .sobre-skills__title {
        font-size: 24px;
    }

    .sobre-historia__text p,
    .sobre-skills__list li {
        font-size: 15px;
    }

    /* sandbox.css */
    .sandbox-section {
        padding: 0 16px 24px;
    }

    .sandbox-title {
        font-size: 24px;
        padding-top: 40px;
    }

    .sandbox-card {
        padding: 24px 20px;
        border-radius: 24px;
    }

    .sandbox-card__image {
        height: 168px;
    }

    .sandbox-card__title {
        font-size: 18px;
    }

    .sandbox-card__desc,
    .sandbox-card__btn,
    .sandbox-btn-all {
        font-size: 14px;
    }

    /* contato.css */
    .contact-section {
        padding: 0 16px;
    }

    .contact-title {
        font-size: 24px;
    }

    .contact-social__text {
        font-size: 18px;
    }

    .form-field__label {
        font-size: 15px;
    }

    .form-field__textarea {
        height: 140px;
        font-size: 14px;
    }

    .contact-submit {
        width: 110px;
        height: 42px;
        font-size: 15px;
    }

    /* portfolio.css */
    .project-card,
    .project-card img#portfolioPostImage {
        height: 320px;
    }

    .slider-arrow {
        font-size: 36px;
    }

    .slider-arrow--prev {
        left: 12px;
    }

    .slider-arrow--next {
        right: 12px;
    }
}


/* ============================================================
   375px — Smartphones compactos (iPhone SE, Galaxy A)
============================================================ */
@media (max-width: 375px) {

    /* Navbar */
    .navbar {
        padding: 0 12px;
        height: 46px;
    }

    .navbar__menu {
        gap: 8px;
    }

    .nav-link {
        font-size: 11px;
    }

    /* Hero */
    .hero {
        padding: 0 12px;
    }

    .hero__greeting {
        font-size: 40px;
    }

    .hero__name {
        font-size: 50px;
    }

    .hero__photo {
        height: 260px;
    }

    .hero__bio p {
        font-size: 14px;
    }

    .role-text {
        font-size: 15px;
    }

    /* General */
    .section-title {
        font-size: 22px;
    }

    .quote__text {
        font-size: 15px;
    }

    .quote__author {
        font-size: 14px;
    }

    .portfolio-grid__item {
        height: 180px;
    }

    /* CTA */
    .cta-section__text {
        font-size: 16px;
    }

    .btn--outline {
        width: 155px;
        height: 40px;
        font-size: 14px;
    }

    /* Footer */
    .footer__link {
        height: 60px;
        font-size: 14px;
    }

    .footer__name,
    .footer__email {
        font-size: 15px;
    }

    .footer__roles,
    .footer__copyright {
        font-size: 12px;
    }

    /* sobre.css */
    .sobre-hero,
    .sobre-historia,
    .sobre-skills {
        padding: 0 12px;
    }

    .sobre-card__photo-wrapper,
    .sobre-card__photo {
        width: 130px;
        height: 130px;
    }

    .sobre-hero__word {
        font-size: 50px;
    }

    .sobre-hero__word--accent {
        font-size: 26px;
    }

    .sobre-hero__bio {
        font-size: 14px;
    }

    .sobre-historia__img,
    .sobre-skills__img {
        height: 220px;
    }

    .sobre-historia__title,
    .sobre-skills__title {
        font-size: 22px;
    }

    .sobre-historia__text p,
    .sobre-skills__list li {
        font-size: 14px;
    }

    /* sandbox.css */
    .sandbox-section {
        padding: 0 12px 20px;
    }

    .sandbox-title {
        font-size: 22px;
    }

    .sandbox-card {
        padding: 20px 16px;
        border-radius: 20px;
    }

    .sandbox-card__title {
        font-size: 17px;
    }

    /* contato.css */
    .contact-section {
        padding: 0 12px;
    }

    .contact-title {
        font-size: 22px;
    }

    .contact-social__text {
        font-size: 16px;
    }

    .form-field__textarea {
        height: 120px;
    }

    .contact-submit {
        width: 100px;
        font-size: 14px;
    }

    /* portfolio.css */
    .project-card,
    .project-card img#portfolioPostImage {
        height: 280px;
    }

    .slider-arrow {
        font-size: 28px;
    }
}