/* ---------- Reset & variáveis ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #555555;
  --card: #efede8;
  --line: #1a1a1a;
  --brand: #0b2f7a; /* azul único: logo e botões */
  --navy: var(--brand);
  --red: #d7263d;
  --dark: #111111;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-hand: "Kalam", "Inter", cursive;
  --container: 1100px;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { list-style: none; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--dark); color: #fff; padding: .6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid #f7d046; outline-offset: 3px; }

.label { font-size: .75rem; color: var(--muted); letter-spacing: .02em; }

.deco { position: absolute; pointer-events: none; user-select: none; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .45rem; font: 500 .8rem var(--font);
  padding: .55rem 1.2rem; border-radius: 6px; border: 0;
  text-decoration: none; cursor: pointer; color: #fff;
  transition: transform .2s ease, opacity .2s ease;
}
.btn:hover { transform: translateY(-2px); opacity: .9; }
.btn--dark { background: var(--dark); }
.btn--navy { background: var(--navy); }
.btn--red { background: var(--red); }
.btn--light { background: #fff; color: var(--dark); }
.btn--small { padding: .4rem .9rem; font-size: .7rem; }
.btn__icon { width: 1em; height: 1em; flex: none; }
.btn__icon--text { width: auto; height: auto; font-weight: 800; font-size: 1em; line-height: 1; letter-spacing: -.02em; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
}
/* a linha do menu fica dentro do container */
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 56px; border-bottom: 1px solid var(--line); }
.logo { font-weight: 400; font-size: .85rem; letter-spacing: .04em; text-decoration: none; color: var(--text); }
.logo span { color: var(--brand); font-weight: 800; }

.nav ul { display: flex; align-items: center; gap: 1.6rem; font-size: .75rem; }
.nav a { text-decoration: none; transition: opacity .2s; }
.nav a:not(.btn):hover { opacity: .6; }

/* seletor de idioma */
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.lang__btn {
  font: 500 .65rem var(--font); letter-spacing: .04em; padding: .3rem .55rem;
  background: transparent; color: var(--text); border: 0; cursor: pointer;
  transition: background .2s, color .2s;
}
.lang__btn + .lang__btn { border-left: 1px solid var(--line); }
.lang__btn:hover { background: #eee; }
.lang__btn[aria-pressed="true"] { background: var(--dark); color: #fff; }

.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--dark); margin: 5px 0; transition: .3s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; display: grid; grid-template-columns: 300px 1fr;
  align-items: center; gap: 3rem; padding-block: 2.5rem 2rem;
}
.hero__photo img { width: 100%; border-radius: 4px; object-fit: cover; }
.hero__text { position: relative; }
.hero h1 {
  font-family: "Manrope", var(--font); font-weight: 300;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.25; letter-spacing: -.01em;
}
.hero__role { display: block; }
.hero__role--last { position: relative; width: max-content; max-width: 100%; }
.deco--squiggle { width: 30px; left: -2.4rem; top: -1.4rem; }
.deco--squiggle-down { width: 30px; left: calc(100% + .6rem); bottom: -.9rem; }
.deco--circle { width: 150px; right: -40px; top: 35%; }

/* ---------- Quick info ---------- */
.quick { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 1rem; }
.quick__list { display: grid; grid-template-columns: repeat(3, 1fr); padding-block: .9rem; gap: 1rem; }
.quick__item dt { font-size: .65rem; color: var(--muted); }
.quick__item dd { font-size: .75rem; font-weight: 500; }
.quick__item a { text-decoration: none; }
.quick__item a:hover { text-decoration: underline; }

/* ---------- Info ---------- */
.info { margin-top: 2.5rem; }
.info__card { background: var(--card); border-radius: 20px; padding: 2rem 2rem 2.5rem; }
.info__title { font-weight: 400; font-size: 2.2rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.info__card { font-family: "DM Sans", var(--font); }
.info__row { position: relative; display: grid; grid-template-columns: 46% 1fr; padding-block: 1.5rem 1rem; }
.info__row--services { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 1.6rem 1.6rem; }
.info__row .label { font-size: .8rem; font-weight: 400; color: var(--text); }
.info__side { display: grid; gap: .9rem; align-content: start; }
.info__photo { width: 152px; max-width: 100%; margin-left: 1.25rem; }
.deco--arrow { width: 76px; left: calc(46% - 110px); top: 1.5rem; }
.info__text { font-size: .8rem; line-height: 1.55; display: grid; gap: .9rem; align-content: start; max-width: 480px; }
.link { font-size: .8rem; text-decoration: none; }
.link:hover { text-decoration: underline; }

.services { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; font-size: .8rem; line-height: 1.5; }
.services ul { display: grid; gap: .05rem; }

/* ---------- Experience (reaproveita o card do Info) ---------- */
.exp__row + .exp__row { border-top: 1px solid var(--line); }
.exp__meta { font-size: .72rem; color: var(--muted); }
.exp__role { font-size: .9rem; font-weight: 500; line-height: 1.3; }
/* ---------- Portfolio ---------- */
.portfolio { position: relative; }
.portfolio__head { position: relative; padding-top: 5.5rem; }
.deco--blob { width: 130px; left: -30px; top: -1.6rem; z-index: 0; }
.portfolio__title { position: relative; font-size: clamp(2.4rem, 6vw, 3.4rem); font-weight: 300; line-height: 1.1; }
.portfolio__sub { position: relative; font-size: .85rem; }
.portfolio__sub span { font-size: .7rem; color: var(--muted); }
.deco--star { width: 22px; right: 4%; top: 6rem; }

.strip { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); height: clamp(320px, 34vw, 440px); margin-top: 1.5rem; }
.strip__item { display: block; overflow: hidden; background: #eee; }
.strip__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.strip__item:hover img { transform: scale(1.05); }
/* bola amarela decorativa */
.deco--ball-yellow { width: 180px; left: 10%; top: calc(100% - 2px); z-index: 1; }

.cta { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; padding-block: 5rem 2.5rem; }
.cta__text { font-size: clamp(1.1rem, 2.2vw, 1.5rem); font-weight: 400; max-width: 560px; margin-top: .4rem; line-height: 1.35; }
.cta__buttons { position: relative; display: flex; gap: .8rem; }
/* seta ao lado esquerdo do botão do Behance */
.deco--arrow-cta { width: 38px; right: calc(100% + .8rem); top: calc(50% - 5px); transform: translateY(-50%); }

.dev { position: relative; padding-bottom: 3rem; }
.dev__label { font-size: .9rem; margin-bottom: 1rem; }
.deco--star-dev { right: 0; top: -1rem; }

.projects { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.project__link { text-decoration: none; display: block; }
.project__thumb { aspect-ratio: 8 / 5; margin-bottom: .8rem; overflow: hidden; border-radius: 4px; background: #111; transition: transform .3s; }
.project__thumb img { width: 100%; height: 100%; object-fit: cover; }
.project__link:hover .project__thumb { transform: translateY(-4px); }.project h3 { font-size: .85rem; font-weight: 600; }
.project p { font-size: .65rem; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { position: relative; background: #111; color: #fff; margin-top: 5rem; padding: 4rem 0 2rem; }
/* o rodapé cobre a metade amarela: só a calota verde aparece */
.deco--ball-green { width: 150px; left: 50%; top: -70px; z-index: -1; transform: translateX(-50%); }
.footer__inner { display: grid; gap: 2.5rem; }

.footer__grid { display: grid; grid-template-columns: auto 1.4fr 1fr; gap: 2.5rem 4rem; align-items: start; }
.footer__logo { display: block; width: 80px; }
.footer__logo img { width: 80px; height: 80px; }
.footer__title { font-size: 1.1rem; font-weight: 600; margin-bottom: 1rem; }
.footer__address { font-style: normal; display: grid; gap: 1.1rem; font-size: .85rem; line-height: 1.6; color: #aaa; }
.footer__address a { text-decoration: none; }
.footer__address a:hover { color: #fff; text-decoration: underline; }
.footer__social { display: flex; flex-wrap: wrap; gap: .8rem; }
.footer__social a { display: block; width: 40px; height: 40px; transition: transform .2s ease; }
.footer__social a:hover { transform: scale(1.1); }
.footer__social img { width: 100%; height: 100%; object-fit: contain; }
.footer__copy { text-align: center; font-size: .75rem; color: #888; padding-top: 1.5rem; border-top: 1px solid #333; }

/* ---------- Animação de entrada ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .project__thumb { transition: none; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 260px 1fr; gap: 2rem; }
  .deco--circle { width: 110px; right: 0; }
  .info__card { padding: 1.75rem 1.5rem 2rem; }
  .projects { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 200px 1fr; gap: 1.5rem; padding-block: 2rem 1.5rem; }
  .deco--circle { width: 90px; top: 8%; }
  .info__row { grid-template-columns: 1fr; gap: .8rem; }
  .info__text { max-width: none; }
  .deco--arrow { display: none; }
  .strip { grid-template-columns: repeat(2, 1fr); height: auto; }
  .strip__item { height: auto; aspect-ratio: 808 / 632; }
  .deco--ball-yellow { width: 120px; }
  .cta { padding-block: 4rem 2rem; }
}

@media (max-width: 720px) {
  /* menu mobile */
  .menu-toggle {
    display: grid; place-content: center; width: 44px; height: 44px; padding: 0;
    border: 1px solid var(--line); border-radius: 8px; background: #fff;
  }
  .menu-toggle span { width: 20px; margin: 3px 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

  .nav {
    position: absolute; top: 56px; left: 0; right: 0; background: #fff;
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height .3s ease, visibility .3s;
  }
  .nav.is-open { max-height: 480px; visibility: visible; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0, 0, 0, .08); }
  .nav ul { flex-direction: column; align-items: stretch; gap: .25rem; padding: 1rem 1.25rem 1.4rem; font-size: .9rem; }
  .nav li > a:not(.btn) { display: block; padding: .7rem 0; border-bottom: 1px solid #eee; }
  .nav li:has(.lang) { padding: .7rem 0; }
  .lang__btn { padding: .45rem .8rem; font-size: .75rem; }
  .nav .btn { justify-content: center; width: 100%; padding: .8rem 1rem; font-size: .8rem; margin-top: .4rem; }

  /* hero */
  .hero { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero__photo { max-width: 220px; }
  /* sem rabiscos decorativos no hero em telas pequenas */
  .hero .deco, .deco--ball-yellow { display: none; }

  .quick__list { grid-template-columns: 1fr; gap: .7rem; }
  .info { margin-top: 1.75rem; }
  .info__title { font-size: 1.8rem; }
  .info__photo { margin-left: 0; }
  .services { grid-template-columns: 1fr; gap: .4rem; }

  .portfolio__head { padding-top: 4rem; }
  .deco--blob { width: 100px; }

  /* CTA: seta fica inline, ao lado do botão do Behance */
  .cta { gap: 2.75rem; padding-bottom: 3rem; }
  .cta__buttons { flex-wrap: wrap; align-items: center; }
  .deco--arrow-cta { position: static; transform: translateY(-5px); width: 28px; flex: none; }
  .btn { padding: .7rem 1.1rem; }

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

  /* rodapé */
  .footer { padding-top: 3.5rem; margin-top: 4rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 420px) {
  .container { width: min(100% - 2rem, var(--container)); }
  .info__card { padding: 1.25rem 1.1rem 1.5rem; border-radius: 16px; }
  .strip { grid-template-columns: 1fr; }
  .cta__text { font-size: 1.15rem; }
}