/* =========================================================
   ELYAS EMANUEL PORTFOLIO
   CSS organizado por: base, layout, componentes, páginas,
   animações e responsivo.
========================================================= */


/* =========================================================
   01. VARIÁVEIS E RESET
========================================================= */

:root {
  --bg: #020c28;
  --text: #f4f1ea;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.55);
  --muted-strong: rgba(255, 255, 255, 0.72);
  --line: rgba(244, 241, 234, 0.12);
  --accent: #ffdd00;
  --nav: #2d354d;
  --nav-hover: rgba(45, 53, 77, 0.42);
  --dark-text: #020817;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-card: 20px;

  --max: 1180px;
  --left-column: 360px;
  --layout-gap: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;

  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video,
iframe {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: none;
  margin: 0;
}


/* =========================================================
   02. NAVBAR
========================================================= */

.icon-nav {
  position: relative;
  z-index: 10;

  width: fit-content;
  height: 46px;
  margin: 28px auto 54px;
  padding: 0 14px;

  display: flex;
  align-items: center;

  background: var(--nav);
  border-radius: var(--radius-sm);
}

.icon-nav a {
  position: relative;

  width: 56px;
  height: 28px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--white);
}

.icon-nav a:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 4px;

  width: 1px;
  height: 20px;

  background: rgba(255, 255, 255, 0.35);
}

.icon-nav svg {
  width: 21px;
  height: 21px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;

  transition: transform 0.2s ease, opacity 0.2s ease;
}

.icon-nav a:hover svg {
  transform: translateY(-2px);
  opacity: 0.85;
}

.icon-nav a::before {
  content: attr(data-label);

  position: absolute;
  top: calc(100% + 15px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);

  padding: 5px 12px;

  color: var(--white);
  background: var(--nav);
  border-radius: 9px;

  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;

  opacity: 0;
  pointer-events: none;

  transition: opacity 0.2s ease, transform 0.2s ease;
}

.icon-nav a:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* =========================================================
   03. LAYOUT PRINCIPAL
========================================================= */

.main-layout {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;

  display: grid;
  grid-template-columns: var(--left-column) 1fr;
  gap: var(--layout-gap);
  align-items: start;
}

.profile-column {
  position: sticky;
  top: 28px;
  align-self: start;
  min-height: calc(100vh - 28px);
}

.content-column {
  min-width: 0;
}

.content-column .projects-page-section {
  width: 100%;
  padding-bottom: 72px;
}


/* =========================================================
   04. CARD AMARELO / PERFIL
========================================================= */

.profile-card {
  width: 100%;
  max-width: var(--left-column);
  padding: 42px 34px 36px;

  color: var(--dark-text);
  background: var(--accent);
  border: none;
  border-radius: var(--radius-card);
  box-shadow: none;
  text-align: center;
}

.avatar-wrap {
  width: 100%;
  max-width: 255px;
  margin: 0 auto 28px;

  overflow: hidden;
  aspect-ratio: 1 / 1;

  background: #111;
  border-radius: var(--radius-md);
}

.avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-card h1 {
  margin: 0 0 24px;

  color: var(--dark-text);
  font-size: 32px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.profile-card p {
  max-width: 300px;
  margin: 0 auto 30px;

  color: #3d4150;
  font-size: 17px;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.instagram-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  color: var(--dark-text);
  font-size: 16px;
  font-weight: 500;
}

.instagram-link svg {
  width: 20px;
  height: 20px;

  stroke: currentColor;
  stroke-width: 2;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #000;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 999px;
  transition: all 0.25s ease;
}

.social-link svg,
.social-link i {
  width: 22px;
  height: 22px;
  transition: transform 0.25s ease;
}

.social-link:hover {
  background: #000;
  color: #ffd600;
  transform: translateY(-2px);
}

.social-link:hover svg,
.social-link:hover i {
  transform: scale(1.08);
}

.social-link:focus-visible {
  outline: 2px solid #000;
  outline-offset: 4px;
}


/* =========================================================
   05. HOME / HERO
========================================================= */

.hero {
  min-height: 480px;
  display: flex;
  align-items: flex-start;
  padding: 0;
}

.hero.section {
  padding-top: 0;
  padding-bottom: 40px;
}

.hero-copy {
  width: 100%;
  padding-top: 0;
}

.hero-copy .eyebrow,
.hero-copy h2 {
  margin: 0;

  font-size: clamp(72px, 5vw, 118px);
  line-height: 1;
  font-weight: 600;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  color: var(--white);
}

.hero-copy h2 {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.12);
}

.intro {
  max-width: 560px;
  margin: 0 0 74px;

  color: var(--white);
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.stats-grid {
  display: flex;
  align-items: flex-start;
  gap: 72px;
  margin-top: 72px;
}

.stats-grid article {
  min-height: auto;
  padding: 0;

  display: block;

  background: transparent;
  border: none;
  border-radius: 0;
}

.stats-grid strong {
  display: block;

  color: var(--white);
  font-size: 58px;
  line-height: 0.85;
  font-weight: 600;
}

.stats-grid span {
  display: block;
  margin-top: 18px;

  color: rgba(255, 255, 255, 0.56);
  font-size: 14px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}


/* =========================================================
   06. TÍTULOS E BOTÕES COMPARTILHADOS
========================================================= */

.section-title {
  margin-bottom: 54px;
}

.section-title h2 {
  margin: 0;

  text-transform: uppercase;
  line-height: 1;
}

.section-title h2 span,
.section-title h2 strong {
  display: block;

  font-size: clamp(72px, 5vw, 118px);
  font-weight: 600;
}

.section-title h2 span {
  color: var(--white);
}

.section-title h2 strong {
  color: rgba(255, 255, 255, 0.12);
}

.full-button {
  width: 100%;
  height: 46px;
  margin-top: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--white);
  background: var(--nav);
  border-radius: var(--radius-sm);

  font-size: 16px;
  font-weight: 800;

  transition: transform 0.2s ease, opacity 0.2s ease;
}

.full-button:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}


/* =========================================================
   07. LISTAS COMPARTILHADAS / HOVER / SETAS
========================================================= */

.project-row,
.career-row,
.software-item,
.extra-row {
  position: relative;

  border-radius: var(--radius-lg);

  transition:
    background-color 0.25s ease,
    transform 0.25s ease,
    padding 0.25s ease;
}

.project-row,
.extra-row {
  margin-left: -18px;
  margin-right: -18px;
  padding: 14px 18px;
}

.career-row {
  margin-left: -22px;
  margin-right: -22px;
  padding: 24px 22px;
}

.software-item {
  margin-left: -14px;
  margin-right: -14px;
  padding: 12px 14px;
}

.project-row:hover,
.career-row:hover,
.software-item:hover,
.extra-row:hover {
  background: var(--nav-hover);
}

.row-arrow {
  justify-self: end;
  align-self: start;

  width: 28px;
  height: 28px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--accent);

  transition: transform 0.25s ease;
}

.row-arrow svg {
  width: 22px;
  height: 22px;

  stroke: currentColor;
  stroke-width: 2;
}

.project-row:hover .row-arrow,
.career-row:hover .row-arrow,
.extra-row:hover .row-arrow {
  transform: translate(5px, -5px);
}


/* =========================================================
   08. HOME / PROJETOS
========================================================= */

.portfolio-section {
  padding-top: 120px;
}

.project-list {
  display: grid;
  gap: 25px;
}

.project-row {
  display: grid;
  grid-template-columns: 180px 1fr 32px;
  align-items: center;
  gap: 28px;

  color: var(--white);
}

.project-row img {
  width: 180px;
  height: 126px;

  object-fit: cover;
  border-radius: var(--radius-sm);
}

.project-row h3 {
  margin: 0 0 8px;

  color: var(--white);
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.045em;
}

.project-row p {
  margin: 0;

  color: var(--muted);
  font-size: 16px;
  line-height: 1.25;
}


/* =========================================================
   09. HOME / CARREIRA
========================================================= */

.career-section {
  padding-top: 120px;
}

.career-list {
  display: grid;
  gap: 40px;
}

.career-row {
  display: grid;
  grid-template-columns: 1fr 32px;
  gap: 28px;
}

.career-row h3 {
  margin: 0 0 16px;

  color: var(--white);
  font-size: 30px;
  line-height: 1;
  font-weight: 500;
}

.career-row h4 {
  margin: 0 0 22px;

  color: var(--accent);
  font-size: 19px;
  line-height: 1.1;
  font-weight: 500;
}

.career-row p {
  max-width: 560px;
  margin: 0 0 24px;

  color: var(--muted);
  font-size: 18px;
  line-height: 1.4;
}

.career-row time {
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
}


/* =========================================================
   10. HOME / HABILIDADES
========================================================= */

.skills-section {
  padding-top: 120px;
  padding-bottom: 70px;
}

.software-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 74px;
  row-gap: 10px;
}

.software-item {
  display: grid;
  grid-template-columns: 68px 1fr;
  align-items: center;
  gap: 22px;
}

.software-item img {
  width: 68px;
  height: 68px;

  object-fit: cover;
  background: var(--white);
  border-radius: 10px;
}

.software-item h3 {
  margin: 0 0 8px;

  color: var(--white);
  font-size: 26px;
  line-height: 1;
  font-weight: 500;
}

.software-item p {
  margin: 0;

  color: var(--muted);
  font-size: 17px;
}


/* =========================================================
   11. HOME / EXPERIÊNCIAS EXTRAS
========================================================= */

.extras-section {
  padding-top: 120px;
}

.extra-list {
  display: grid;
  gap: 40px;
}

.extra-row {
  display: grid;
  grid-template-columns: 180px 1fr 32px;
  gap: 28px;
  align-items: start;
}

.extra-row img {
  width: 180px;
  height: 126px;

  object-fit: cover;
  border-radius: var(--radius-sm);
}

.extra-row h3 {
  max-width: 520px;
  margin: 0 0 20px;

  color: var(--white);
  font-size: 30px;
  line-height: 1.12;
  font-weight: 500;
}

.extra-row p {
  max-width: 530px;
  margin: 0 0 20px;

  color: var(--muted);
  font-size: 18px;
  line-height: 1.4;
}

.extra-row time {
  color: var(--muted);
  font-size: 18px;
}


/* =========================================================
   12. FORMULÁRIO / CONTATO
========================================================= */

.contact-section {
  min-height: calc(100vh - 28px);
  padding-top: 120px;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.contact-section .section-title {
  margin-top: 0;
}

.contact-form {
  width: 100%;
  margin-bottom: 120px;

  display: grid;
  gap: 22px;

  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.contact-form label {
  display: grid;
  gap: 10px;

  color: var(--muted);
  font-size: 14px;
  line-height: 1;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 16px 18px;

  color: var(--white);
  background: var(--nav);
  border: none;
  border-radius: var(--radius-sm);
  outline: none;

  font: inherit;
  font-size: 16px;
}

.contact-form textarea {
  min-height: 118px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.contact-form input:focus,
.contact-form textarea:focus {
  box-shadow: 0 0 0 2px rgba(255, 221, 0, 0.75);
}

.contact-form button {
  width: 100%;
  height: 48px;

  color: var(--dark-text);
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);

  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}


/* =========================================================
   13. PÁGINA /HABILIDADES
========================================================= */

.skills-page-section,
.content-column > .skills-section:first-child,
.content-column > .section:first-child {
  padding-top: 0;
}

.skills-page-section .section-title {
  margin-top: 0;
  margin-bottom: 42px;
}

.skills-page-grid {
  column-gap: 56px;
  row-gap: 26px;
}

.skills-page-grid .software-item {
  grid-template-columns: 58px 1fr;
  gap: 16px;

  min-height: 72px;
  padding: 10px 14px;
  margin-left: -14px;
  margin-right: -14px;
}

.skills-page-grid .software-item img {
  width: 58px;
  height: 58px;
  border-radius: 9px;
}

.skills-page-grid .software-item h3 {
  margin-bottom: 5px;
  font-size: 19px;
}

.skills-page-grid .software-item p {
  font-size: 13px;
}

.skills-section + .contact-section {
  padding-top: 0;
}


/* =========================================================
   14. PÁGINA /PROJETOS
========================================================= */

.projects-page-section {
  padding-top: 0;
}

.projects-page-section .section-title {
  margin-bottom: 42px;
}

.projects-page-section .section-title h2 span,
.projects-page-section .section-title h2 strong {
  font-size: clamp(72px, 5vw, 108px);
}

.projects-page-list {
  display: grid;
  gap: 10px;
}

.project-page-row {
  grid-template-columns: 140px 1fr 28px;
  gap: 24px;

  min-height: 120px;
  padding: 14px 18px;
  margin-left: -18px;
  margin-right: -18px;

  border-radius: 16px;
}

.project-page-row img {
  width: 180px;
  height: auto;

  object-fit: cover;
  border-radius: var(--radius-md);
}

.project-page-row h3 {
  margin: 0 0 7px;

  font-size: 30px;
  line-height: 1.05;
  font-weight: 600;
}

.project-page-row p {
  font-size: 16px;
  line-height: 1.2;
}

.project-page-row .row-arrow {
  width: 24px;
  height: 24px;
}

.project-page-row .row-arrow svg {
  width: 18px;
  height: 18px;
}

.projects-page-section + .contact-section {
  padding-top: 0;
}


/* =========================================================
   15. PÁGINAS INTERNAS DE PROJETOS
========================================================= */

.project-detail {
  width: 100%;
  padding-top: 0;
  padding-bottom: 90px;
}

.project-detail-header {
  margin-bottom: 28px;
}

.project-detail-header h1 {
  margin: 0 0 8px;

  color: var(--accent);
  font-size: clamp(36px, 4.2vw, 54px);
  line-height: 0.95;
  font-weight: 800;
  text-transform: uppercase;
}

.project-detail-header p {
  max-width: 620px;
  margin: 0;

  color: var(--white);
  font-size: 16px;
  line-height: 1.35;
}

.project-meta {
  display: grid;
  grid-template-columns: 0.3fr 1fr auto;
  gap: 28px;
  align-items: start;

  margin-bottom: 34px;
  padding-bottom: 20px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.project-logo-area,
.project-softwares {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
}

.project-logo-area {
  justify-self: start;
}

.project-softwares {
  justify-self: center;
  text-align: left;
  overflow: visible;
}

.project-logo-area span,
.project-softwares span {
  display: block;
  height: 14px;
  margin: 0;

  color: var(--muted);
  font-size: 15px;
  line-height: 14px;
}

.project-logo-area img {
  width: 110px;
  height: auto;
  object-fit: contain;
}

.project-software-icons {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  overflow: visible;
  padding-bottom: 26px;
}

.software-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.project-software-icons img {
  width: 36px;
  height: 36px;

  border-radius: 6px;
  object-fit: cover;
  background: #ffffff;
}

.software-tooltip::before {
  content: attr(data-label);

  position: absolute;
  top: auto;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);

  padding: 5px 10px;

  background: var(--nav);
  color: #ffffff;
  border-radius: 8px;

  font-size: 12px;
  font-weight: 700;
  line-height: 1;

  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  z-index: 50;

  transition: opacity 0.2s ease, transform 0.2s ease;
}

.software-tooltip:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.project-access-button {
  height: 40px;
  margin-top: 18px;
  padding: 0 16px;

  justify-self: end;
  align-self: start;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  color: var(--dark-text);
  background: var(--accent);
  border-radius: var(--radius-sm);

  font-size: 13px;
  font-weight: 800;
}

.project-access-button svg {
  width: 16px;
  height: 16px;
}

.project-hero-image,
.project-wide-image {
  width: 100%;
  height: auto;
  max-height: none;
  margin: 0 0 58px;

  display: block;

  object-fit: contain;
  object-position: center;
  border-radius: 16px;
}

.project-hero-image img{
  border-radius: 16px;
}

.project-video-featured {
  width: 100%;
  margin: 0 0 58px;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.project-video-element {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 0;
  object-fit: contain;
  background: #000;
}

.project-gif-video {
  width: 100%;
  margin: 0 0 58px;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.project-gif-video video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.project-content-block {
  width: 100%;
  margin-bottom: 54px;
}

.project-content-block h2 {
  margin: 0 0 18px;

  color: var(--white);
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
}

.project-content-block p,
.project-content-block li {
  max-width: 100%;

  color: var(--white);
  font-size: 16px;
  line-height: 1.42;
}

.project-content-block p {
  margin: 0 0 14px;
}

.project-content-block ul {
  max-width: 100%;
  margin: 0;
  padding-left: 18px;
}

.project-content-block.text-narrow p,
.project-content-block.text-narrow ul {
  max-width: 720px;
}

.project-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;

  width: 100%;
  margin: 0 0 58px;
}

.project-image-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;

  object-fit: cover;
  border-radius: 12px;
}

.project-image-grid.two-columns img {
  height: auto;
  aspect-ratio: 1 / 1;
}

.project-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 58px;

  overflow: hidden;

  background: var(--nav);
  border-radius: var(--radius-sm);
}

.project-video iframe,
.project-video video {
  width: 100%;
  height: 100%;

  display: block;
  border: 0;
}

.project-detail + .contact-section {
  padding-top: 70px;
}


/* =========================================================
   16. FOOTER
========================================================= */

.site-footer {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 48px;

  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 260px 1fr auto;
  gap: 24px;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;

  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand img {
  width: 42px;
  height: 42px;

  object-fit: cover;
  border-radius: 50%;
}

.footer-grid nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-grid a:hover {
  color: var(--text);
}

/* =========================================================
   PÁGINA 404
========================================================= */

.error-page {
  min-height: 100vh;
}

.error-layout {
  width: min(var(--max), calc(100% - 40px));
  min-height: calc(100vh - 128px);
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: center;
}

.error-hero {
  position: relative;

  width: 100%;
  min-height: 620px;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
}

.error-logo-bg {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  pointer-events: none;
}

.error-logo-bg img {
  width: min(560px, 78vw);
  height: auto;

  opacity: 0.08;
  object-fit: contain;
}

.error-content {
  position: relative;
  z-index: 1;

  display: grid;
  justify-items: center;
}

.error-content h1 {
  margin: 0 0 28px;

  color: var(--accent);
  font-size: clamp(120px, 15vw, 210px);
  line-height: 0.78;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.error-button {
  min-width: 150px;
  height: 42px;
  padding: 0 22px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: var(--dark-text);
  background: var(--white);
  border-radius: 8px;

  font-size: 14px;
  font-weight: 800;
  line-height: 1;

  transition: transform 0.2s ease, opacity 0.2s ease;
}

.error-button:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* =========================================================
   17. ANIMAÇÕES
========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.hidden-until-scroll {
  opacity: 0;
  transform: translateY(48px);
  filter: blur(8px);
  pointer-events: none;

  transition:
    opacity 0.8s ease,
    transform 0.8s ease,
    filter 0.8s ease;
}

.hidden-until-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  pointer-events: auto;
}


/* =========================================================
   18. CLASSES ANTIGAS / COMPATIBILIDADE
   Mantidas sem estilo para não quebrar HTML antigo.
========================================================= */

.section-head,
.project-grid,
.career-layout,
.timeline,
.skills-grid,
.extras-grid,
.contact-grid,
.ghost-link {
  /* Não usar nas novas seções */
}

.logo-carousel-area {
  width: 100%;
  max-width: 720px;
  margin-top: 88px;
}

.logo-carousel-title {
  margin: 0 0 22px;

  color: rgba(255, 255, 255, 0.56);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.logo-carousel {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;

  cursor: grab;
  user-select: none;
  scroll-behavior: auto;

  mask-image: linear-gradient(
    to right,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );

  scrollbar-width: none;
}

.logo-carousel::-webkit-scrollbar {
  display: none;
}

.logo-carousel.is-dragging {
  cursor: grabbing;
}

.logo-carousel:hover .logo-carousel-track,
.logo-carousel.is-dragging .logo-carousel-track {
  animation-play-state: paused;
}

.logo-carousel-track {
  width: max-content;

  display: flex;
  align-items: center;

  animation: logo-scroll 28s linear infinite;
  will-change: transform;
}

.logo-carousel-group {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.logo-carousel img {
  width: 150px;
  height: 34px;
  padding: 0 22px;

  flex: 0 0 150px;

  object-fit: contain;
  object-position: center;

  opacity: 0.55;
  filter: grayscale(1) brightness(2.2);

  transition:
    opacity 0.2s ease,
    filter 0.2s ease,
    transform 0.2s ease;
}

.logo-carousel img:hover {
  opacity: 1;
  filter: grayscale(0) brightness(1);
  transform: scale(1.04);
}

@keyframes logo-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* =========================================================
   19. RESPONSIVO
   Desktop small, tablet, phone e phone pequeno
========================================================= */


/* =========================================================
   19.1 DESKTOP SMALL
   Notebooks menores / desktop reduzido
========================================================= */

@media (max-width: 1180px) {
  :root {
    --max: 1040px;
    --left-column: 300px;
    --layout-gap: 56px;
  }

  .icon-nav {
    margin: 24px auto 46px;
  }

  .profile-card {
    max-width: var(--left-column);
    padding: 32px 26px 30px;
    border-radius: 16px;
  }

  .avatar-wrap {
    max-width: 210px;
    margin-bottom: 22px;
    border-radius: 10px;
  }

  .profile-card h1 {
    margin-bottom: 20px;
    font-size: 26px;
  }

  .profile-card p {
    max-width: 245px;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.18;
  }

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

  .hero {
    min-height: 450px;
  }

  .hero-copy .eyebrow,
  .hero-copy h2,
  .section-title h2 span,
  .section-title h2 strong {
    font-size: clamp(56px, 5vw, 82px);
  }

  .stats-grid {
    gap: 50px;
    margin-top: 58px;
  }

  .stats-grid strong {
    font-size: 48px;
  }

  .stats-grid span {
    font-size: 12px;
  }

  .logo-carousel-area {
    max-width: 620px;
    margin-top: 70px;
  }

  .project-row {
    grid-template-columns: 145px 1fr 28px;
    gap: 22px;
  }

  .project-row img {
    width: 145px;
    height: 102px;
  }

  .project-row h3 {
    font-size: 26px;
  }

  .career-row h3,
  .extra-row h3 {
    font-size: 26px;
  }

  .career-row p,
  .extra-row p {
    font-size: 16px;
  }

  .software-grid {
    column-gap: 46px;
  }

  .software-item {
    grid-template-columns: 58px 1fr;
    gap: 18px;
  }

  .software-item img {
    width: 58px;
    height: 58px;
  }

  .software-item h3 {
    font-size: 22px;
  }

  .software-item p {
    font-size: 15px;
  }
}


/* =========================================================
   19.2 TABLET
   Card amarelo horizontal no topo
========================================================= */

@media (max-width: 900px) {
  :root {
    --max: 720px;
    --left-column: 100%;
    --layout-gap: 54px;
  }

  .icon-nav {
    width: fit-content;
    height: 48px;
    margin: 20px auto 34px;
    padding: 0 10px;
  }

  .icon-nav a {
    width: 54px;
  }

  .icon-nav svg {
    width: 21px;
    height: 21px;
    stroke: currentColor;
    stroke-width: 2;
  }

  .icon-nav a::before {
    font-size: 12px;
  }

  .main-layout {
    width: min(720px, calc(100% - 32px));
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .profile-column {
    position: static;
    min-height: auto;
  }

  .profile-card {
    max-width: none;
    width: 100%;

    display: grid;
    grid-template-columns: 220px 1fr;
    grid-template-areas:
      "avatar name"
      "avatar text"
      "avatar link";
    align-items: center;
    column-gap: 34px;

    padding: 28px 34px;
    text-align: left;
    border-radius: 14px;
  }

  .avatar-wrap {
    grid-area: avatar;
    width: 220px;
    max-width: none;
    margin: 0;
    border-radius: 10px;
  }

  .profile-card h1 {
    grid-area: name;
    margin: 0 0 16px;
    font-size: 28px;
    line-height: 1;
  }

  .profile-card p {
    grid-area: text;
    max-width: 330px;
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.18;
  }

  .instagram-link {
    grid-area: link;
    width: fit-content;
    font-size: 14px;
  }

  .hero {
    min-height: auto;
    padding-bottom: 60px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-copy .eyebrow,
  .hero-copy h2 {
    font-size: clamp(62px, 13vw, 104px);
    line-height: 0.92;
  }

  .hero-copy h2 {
    margin-bottom: 0;
  }

  .stats-grid {
    justify-content: center;
    gap: 56px;
    margin-top: 56px;
  }

  .stats-grid strong {
    font-size: 50px;
  }

  .stats-grid span {
    font-size: 12px;
  }

  .logo-carousel-area {
    max-width: 100%;
    margin-top: 64px;
    text-align: center;
  }

  .logo-carousel-title {
    margin-bottom: 18px;
    font-size: 14px;
  }

  .logo-carousel img {
    width: 120px;
    height: 34px;
    padding: 0 18px;
    flex-basis: 120px;
  }

  .section-title {
    width: 100%;
    max-width: 100%;
    margin-bottom: 42px;
    text-align: center;
    overflow: hidden;
  }

  .section-title h2 span,
  .section-title h2 strong {
    font-size: clamp(54px, 13vw, 86px);
    line-height: 0.9;
    letter-spacing: -0.04em;
  }

  .portfolio-section,
  .career-section,
  .skills-section,
  .extras-section {
    padding-top: 96px;
  }

  .project-list,
  .career-list,
  .extra-list {
    gap: 24px;
  }

  .project-row,
  .extra-row {
    grid-template-columns: 120px 1fr 24px;
    gap: 18px;
  }

  .project-row img,
  .extra-row img {
    width: 120px;
    height: 86px;
  }

  .project-row h3,
  .career-row h3,
  .extra-row h3 {
    font-size: 24px;
  }

  .project-row p,
  .career-row p,
  .extra-row p {
    font-size: 15px;
  }

  .career-row {
    grid-template-columns: 1fr 24px;
  }

  .career-row h4 {
    font-size: 16px;
  }

  .career-row time,
  .extra-row time {
    font-size: 15px;
  }

  .software-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 26px;
    row-gap: 18px;
  }

  .software-item {
    grid-template-columns: 54px 1fr;
    gap: 14px;
  }

  .software-item img {
    width: 54px;
    height: 54px;
  }

  .software-item h3 {
    font-size: 20px;
  }

  .software-item p {
    font-size: 14px;
  }

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

  .contact-section {
    min-height: auto;
    padding-top: 96px;
  }

  .contact-form {
    margin-bottom: 70px;
  }

  /* Página /projetos no tablet */
  .projects-page-list {
    gap: 12px;
  }

  .project-page-row {
    grid-template-columns: 132px 1fr 24px;
    gap: 18px;
    min-height: 104px;
    padding: 12px 14px;
    margin-left: -14px;
    margin-right: -14px;
    align-items: center;
    border-radius: 14px;
  }

  .project-page-row img {
    width: 132px;
    height: 92px;
    object-fit: cover;
    border-radius: 10px;
  }

  .project-page-row h3 {
    margin: 0 0 6px;
    font-size: 24px;
    line-height: 1.05;
  }

  .project-page-row p {
    font-size: 14px;
    line-height: 1.2;
  }

  .project-page-row .row-arrow {
    width: 22px;
    height: 22px;
  }

  .project-page-row .row-arrow svg {
    width: 16px;
    height: 16px;
  }

  /* Páginas internas de projetos */
  .project-meta {
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
  }

  .project-logo-area,
  .project-softwares,
  .project-access-button {
    justify-self: start;
  }

  .project-softwares {
    text-align: left;
  }

  .project-access-button {
    width: fit-content;
  }

  /* Páginas internas de projetos no tablet */
.project-detail {
  padding-bottom: 70px;
}

.project-detail-header h1,
.project-detail-header p {
  text-align: left;
}

.project-detail-header h1 {
  font-size: clamp(38px, 9vw, 64px);
}

.project-detail-header p {
  max-width: 100%;
  font-size: 15px;
}

.project-meta {
  grid-template-columns: 1fr 1fr;
  gap: 22px 18px;
  align-items: start;
}

.project-logo-area,
.project-softwares {
  justify-self: start;
  text-align: left;
}

.project-access-button {
  grid-column: 1 / -1;
  justify-self: stretch;
  width: 100%;
}

.project-software-icons {
  padding-bottom: 0;
  flex-wrap: wrap;
}

.project-hero-image,
.project-wide-image,
.project-video-featured,
.project-gif-video {
  margin-bottom: 42px;
  border-radius: 12px;
}

.project-content-block {
  margin-bottom: 42px;
}

.project-content-block h2 {
  font-size: 24px;
  text-align: left;
}

.project-content-block p,
.project-content-block li {
  font-size: 15px;
  text-align: left;
}

.project-image-grid {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 42px;
}

.project-image-grid img,
.project-image-grid.two-columns img {
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
}

  .footer-grid {
    grid-template-columns: 1fr;
  }
  .internal-page .main-layout {
    display: flex;
    flex-direction: column;
  }
  
  .internal-page .content-column {
    order: 1;
    width: 100%;
  }
  
  .internal-page .profile-column {
    order: 2;
    width: 100%;
    margin-bottom: 72px;
  }
  .main-layout {
    width: min(720px, calc(100% - 32px));
    grid-template-columns: 1fr;
    gap: 54px;
  }
}


/* =========================================================
   19.3 PHONE
   Centralizado na Home e ajustado nas páginas internas
========================================================= */

@media (max-width: 600px) {
  :root {
    --layout-gap: 42px;
  }

  .icon-nav {
    width: fit-content;
    max-width: calc(100% - 28px);
    height: 44px;
    margin: 18px auto 34px;
    padding: 0 8px;
  }

  .icon-nav a {
    width: 48px;
    height: 28px;
  }

  .icon-nav svg {
    width: 19px;
    height: 19px;
  }

  .main-layout {
    width: min(390px, calc(100% - 24px));
    gap: 44px;
  }

  .profile-card {
    display: block;
    max-width: 100%;
    padding: 28px 24px 26px;
    text-align: center;
    border-radius: 14px;
  }

  .avatar-wrap {
    width: 100%;
    max-width: 235px;
    margin: 0 auto 24px;
    border-radius: 10px;
  }

  .profile-card h1 {
    margin: 0 0 18px;
    font-size: 28px;
  }

  .profile-card p {
    max-width: 290px;
    margin: 0 auto 24px;
    font-size: 15px;
    line-height: 1.16;
  }

  .instagram-link {
    margin: 0 auto;
    justify-content: center;
    font-size: 14px;
  }

  .hero {
    padding-bottom: 42px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-copy .eyebrow,
  .hero-copy h2 {
    font-size: clamp(52px, 17vw, 74px);
    line-height: 0.9;
  }

  .stats-grid {
    justify-content: center;
    gap: 28px;
    margin-top: 42px;
  }

  .stats-grid strong {
    font-size: 40px;
  }

  .stats-grid span {
    margin-top: 12px;
    font-size: 9px;
    line-height: 1.05;
  }

  .logo-carousel-area {
    margin-top: 46px;
  }

  .logo-carousel-title {
    max-width: 280px;
    margin: 0 auto 16px;
    font-size: 13px;
    line-height: 1.25;
  }

  .logo-carousel img {
    width: 104px;
    height: 30px;
    padding: 0 16px;
    flex-basis: 104px;
  }

  .portfolio-section,
  .career-section,
  .skills-section,
  .extras-section {
    padding-top: 82px;
  }

  .section-title {
    width: 100%;
    max-width: 100%;
    margin-bottom: 34px;
    text-align: center;
    overflow: hidden;
  }

  .section-title h2 span,
  .section-title h2 strong {
    font-size: clamp(34px, 11vw, 52px);
    line-height: 0.92;
    letter-spacing: -0.04em;
  }

  .extras-section .section-title h2 span,
  .extras-section .section-title h2 strong,
  .skills-section .section-title h2 span,
  .skills-section .section-title h2 strong {
    font-size: clamp(32px, 10vw, 48px);
  }

  .project-list,
  .career-list,
  .extra-list {
    gap: 22px;
  }

  .project-row,
  .extra-row {
    grid-template-columns: 76px 1fr 20px;
    gap: 14px;
    margin-left: -10px;
    margin-right: -10px;
    padding: 10px;
    border-radius: 12px;
  }

  .project-row img,
  .extra-row img {
    width: 76px;
    height: 58px;
    border-radius: 6px;
  }

  .project-row h3,
  .extra-row h3 {
    margin-bottom: 5px;
    font-size: 16px;
    line-height: 1.05;
  }

  .project-row p,
  .extra-row p {
    font-size: 11px;
    line-height: 1.2;
  }

  .row-arrow {
    width: 20px;
    height: 20px;
  }

  .row-arrow svg {
    width: 15px;
    height: 15px;
  }

  .full-button {
    height: 38px;
    margin-top: 22px;
    font-size: 12px;
  }

  .career-row {
    grid-template-columns: 1fr 20px;
    gap: 14px;
    margin-left: -10px;
    margin-right: -10px;
    padding: 18px 10px;
    border-radius: 12px;
  }

  .career-row h3 {
    margin-bottom: 10px;
    font-size: 19px;
  }

  .career-row h4 {
    margin-bottom: 14px;
    font-size: 13px;
  }

  .career-row p {
    margin-bottom: 16px;
    font-size: 12px;
    line-height: 1.35;
  }

  .career-row time {
    font-size: 12px;
  }

  .software-grid {
    grid-template-columns: 1fr;
    row-gap: 16px;
  }

  .software-item,
  .skills-page-grid .software-item {
    grid-template-columns: 48px 1fr;
    gap: 12px;
    margin-left: -10px;
    margin-right: -10px;
    padding: 10px;
    border-radius: 12px;
  }

  .software-item img,
  .skills-page-grid .software-item img {
    width: 48px;
    height: 48px;
  }

  .software-item h3,
  .skills-page-grid .software-item h3 {
    margin-bottom: 4px;
    font-size: 18px;
  }

  .software-item p,
  .skills-page-grid .software-item p {
    font-size: 12px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .contact-form {
    gap: 18px;
    margin-bottom: 50px;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 14px 15px;
    font-size: 14px;
  }

  .contact-form button {
    height: 44px;
  }

  /* Página /projetos no phone */
  .projects-page-list {
    gap: 10px;
  }

  .project-page-row {
    grid-template-columns: 110px 1fr 22px;
    gap: 14px;
    min-height: 96px;
    padding: 10px 8px;
    margin-left: -8px;
    margin-right: -8px;
    align-items: center;
    border-radius: 12px;
  }

  .project-page-row img {
    width: 110px;
    height: 76px;
    object-fit: cover;
    border-radius: 7px;
  }

  .project-page-row h3 {
    margin: 0 0 5px;
    font-size: 20px;
    line-height: 1.05;
  }

  .project-page-row p {
    font-size: 13px;
    line-height: 1.15;
  }

  .project-page-row .row-arrow {
    align-self: start;
    width: 20px;
    height: 20px;
  }

  .project-page-row .row-arrow svg {
    width: 15px;
    height: 15px;
  }

  /* Páginas internas de projeto no phone */
.project-detail {
  padding-bottom: 56px;
}

.project-detail-header {
  margin-bottom: 26px;
  text-align: center;
}

.project-detail-header h1 {
  margin: 0 0 12px;
  font-size: clamp(38px, 13vw, 54px);
  line-height: 0.9;
  text-align: center;
}

.project-detail-header p {
  max-width: 320px;
  margin: 0 auto;
  text-align: center;
  font-size: 13px;
  line-height: 1.35;
}

/* Logo + softwares lado a lado, botão embaixo */
.project-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
  align-items: start;

  margin-bottom: 28px;
  padding-bottom: 18px;
}

.project-logo-area,
.project-softwares {
  width: 100%;
  justify-self: stretch;
  align-items: center;
  text-align: center;
}

.project-logo-area span,
.project-softwares span {
  height: auto;
  margin-bottom: 2px;

  font-size: 12px;
  line-height: 1;
  text-align: center;
}

.project-logo-area img {
  width: auto;
  max-width: 126px;
  max-height: 38px;
  margin: 0 auto;
  object-fit: contain;
}

.project-software-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;

  gap: 6px;
  padding-bottom: 0;
}

.project-software-icons img {
  width: 34px;
  height: 34px;
  border-radius: 7px;
}

.project-access-button {
  grid-column: 1 / -1;

  width: 100%;
  height: 40px;
  margin-top: 0;

  justify-self: stretch;

  font-size: 13px;
  border-radius: 8px;
}

.project-hero-image,
.project-wide-image,
.project-video-featured,
.project-gif-video {
  margin-bottom: 36px;
  border-radius: 12px;
}

.project-hero-image img {
  border-radius: 12px;
}

.project-content-block {
  margin-bottom: 36px;
}

.project-content-block h2 {
  margin-bottom: 14px;
  font-size: 22px;
  text-align: left;
}

.project-content-block p,
.project-content-block li {
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
}

.project-content-block ul {
  padding-left: 18px;
}

.project-image-grid {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 36px;
}

.project-image-grid img,
.project-image-grid.two-columns img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 9px;
}
.error-layout {
  width: calc(100% - 24px);
  min-height: calc(100vh - 110px);
}

.error-hero {
  min-height: 520px;
}

.error-circle {
  width: 320px;
  height: 320px;
}

.error-content h1 {
  font-size: 96px;
}
}


/* =========================================================
   19.4 PHONE PEQUENO
========================================================= */

@media (max-width: 390px) {
  .main-layout {
    width: calc(100% - 20px);
  }

  .icon-nav a {
    width: 42px;
  }

  .profile-card {
    padding: 24px 20px;
  }

  .avatar-wrap {
    max-width: 210px;
  }

  .profile-card h1 {
    font-size: 25px;
  }

  .profile-card p {
    font-size: 14px;
  }

  .hero-copy .eyebrow,
  .hero-copy h2 {
    font-size: clamp(46px, 16vw, 58px);
  }

  .stats-grid {
    gap: 20px;
  }

  .stats-grid strong {
    font-size: 34px;
  }

  .stats-grid span {
    font-size: 8px;
  }

  .section-title h2 span,
  .section-title h2 strong {
    font-size: clamp(30px, 10vw, 42px);
  }

  .project-page-row {
    grid-template-columns: 96px 1fr 20px;
    min-height: 88px;
  }

  .project-page-row img {
    width: 96px;
    height: 66px;
  }

  .project-page-row h3 {
    font-size: 18px;
  }

  .project-page-row p {
    font-size: 12px;
  }
}