/* ============================================
   Thaís Immich — Portfolio
   Design: Figma (cyabBlBd5FhyA7Jh6PhwHW)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Pixelify+Sans:wght@400&family=Vampiro+One&family=Arbutus+Slab&display=swap');

/* ----- Custom Properties ----- */
:root {
  --blue:    #0076ec;
  --yellow:  #f9ff82;
  --dark:    #000b3d;
  --white:   #ffffff;
  --light-blue: #b0d7ff;
  --nav-h:   88px;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  font-family: 'Plus Jakarta Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background: #1a3a5c;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ----- Background layer ----- */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.page-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.6;
  display: block;
}
.about-bg img { opacity: 1; }
.page-bg .exclusion {
  position: absolute;
  inset: 0;
  background: #0022ff;
  mix-blend-mode: exclusion;
  display: none;
}
.page-bg.about-bg .exclusion { display: block; }
/* Grain overlay */
.page-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* ----- Page wrapper ----- */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* ----- Navigation ----- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
}
.nav__inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Left pill — yellow border, yellow text */
.nav__pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1.5px solid var(--yellow);
  border-radius: 100px;
  padding: 8px 24px;
  width: auto;
  gap: 54px; /* o mesmo espaço entre abas de quando eram 4 (largura fixa de 400px); o pill encolhe sem o contact */
}
.nav__pill a {
  font-size: 12px;
  font-weight: 400;
  color: var(--yellow);
  font-family: 'Plus Jakarta Sans', sans-serif;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), font-weight 0.2s;
}
/* reserva a largura do texto em negrito p/ o menu não "tremer" no hover (data-text vem do nav.js) */
.nav__pill a::after {
  content: attr(data-text);
  font-weight: 700;
  height: 0;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}
/* hover padrão do site: tilt + negrito + um pouco maior. A aba da página atual não reage. */
.nav__pill a:not(.active):hover {
  transform: translateY(-3px) rotate(-6deg) scale(1.18);
  font-weight: 700;
}
.nav__pill a.active { cursor: default; font-weight: 700; } /* página atual em negrito (Figma) */

/* Right side: socials + divider + lang toggle */
.nav__right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav__socials {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav__social-btn {
  width: 39px; height: 39px;
  border-radius: 100px;
  border: 1.5px solid var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1);
  flex-shrink: 0;
}
/* hover padrão do site: só o tilt, sem preenchimento */
.nav__social-btn:hover { transform: translateY(-3px) rotate(-6deg); }
.nav__social-btn img { width: 16px; height: 16px; display: block; }
.nav__divider {
  width: 1px;
  height: 37px;
  background: var(--yellow);
  opacity: 0.4;
  flex-shrink: 0;
}
.nav__lang-toggle {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--yellow);
  border-radius: 100px;
  padding: 8px;
  gap: 0;
  height: 40px;
}
.nav__lang-opt {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--yellow);
  border-radius: 100px;
  padding: 0;
  width: 42px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.nav__lang-opt.active { background: transparent; } /* o SVG do EN já é a pílula amarela */
.nav__flag { width: 42px; height: 24px; display: block; }

/* Mobile hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--yellow);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   HOME PAGE
   ============================================ */

/* Hero */
.hero {
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 62px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
  max-width: 1440px;
  margin: 0 auto;
  padding-left: 64px;
  padding-right: 64px;
}

/* Row 1: "Hi, I'm Thaís!" [photo] I'm [typed] | who loves */
.hero__row1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
}
.hero__greeting {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 32px;
  font-weight: 400;
  color: var(--white);
  white-space: nowrap;
}
.hero__avatar {
  width: 70px; height: 70px;
  border-radius: 100px;
  border: 3px solid var(--yellow);
  overflow: hidden;
  flex-shrink: 0;
}
.hero__avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Typing block */
.hero__typing-block {
  display: flex;
  align-items: center;
  gap: 4px;
}
.hero__im {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 32px;
  font-weight: 400;
  color: var(--white);
  white-space: nowrap;
}
.hero__typed-wrap {
  display: flex;
  align-items: center;
  gap: 2px;
}
.hero__typed {
  font-family: 'Pixelify Sans', monospace;
  font-size: 42px;
  color: var(--yellow);
  white-space: nowrap;
  line-height: 1;
}
/* Blinking cursor */
.hero__cursor {
  display: inline-block;
  width: 2px;
  height: 52px;
  background: var(--yellow);
  margin-left: 3px;
  animation: blink 0.9s step-end infinite;
  vertical-align: middle;
  flex-shrink: 0;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
.hero__wholoves {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 32px;
  font-weight: 400;
  color: var(--white);
  white-space: nowrap;
}

/* Row 2: the "making complicated..." line */
.hero__tagline {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 32px;
  font-weight: 400;
  color: var(--white);
  line-height: 1.3;
  text-align: center;
  width: 100%;
}

/* Bio paragraph */
.hero__bio {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--white);
  line-height: 35px;
  text-align: center;
  max-width: 900px;
}

/* CTA */
.hero__cta {
  font-family: 'Pixelify Sans', monospace;
  font-size: 22px;
  color: var(--yellow);
  text-align: center;
  transition: opacity 0.2s;
}
.hero__cta:hover { opacity: 0.7; }

/* ---- Work card wave section ---- */
.work-wave {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  height: 370px;
  overflow: visible;
}
.work-wave__waves {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.work-wave__waves img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: fill;
}
/* Category labels above the wave */
.work-wave__labels {
  position: absolute;
  top: 8px;
  left: 63px;
  display: flex;
  gap: 140px;
  z-index: 2;
}
.work-wave__label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: var(--yellow);
  cursor: pointer;
  transition: opacity 0.2s;
}
.work-wave__label:hover { opacity: 0.7; }
.work-wave__label.active-label { color: var(--white); }

/* Project card inside wave */
.project-card {
  position: absolute;
  bottom: 20px;
  left: 39px;
  width: 763px;
  z-index: 3;
  padding: 16px 24px;
}
.project-card__tag-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.project-tag {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: var(--blue);
  background: var(--yellow);
  border-radius: 8px;
  padding: 4px 12px;
  white-space: nowrap;
}
.project-card__meta {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--yellow);
}
.project-card__meta em { font-style: italic; }
.project-card__title {
  font-family: 'Arbutus Slab', serif;
  font-size: 24px;
  color: var(--white);
  line-height: 1.3;
}
.project-card__image {
  width: 100%; height: 174px;
  border-radius: 0 0 19px 19px;
  background: #c4c4c4;
  overflow: hidden;
  margin-top: 8px;
}
.project-card__image img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ============================================
   FOOTER (shared)
   ============================================ */
.site-footer {
  width: 100%;
}

/* Marquee */
.marquee {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  padding: 8px 0;
  cursor: pointer;
}
.marquee__track {
  display: inline-flex;
  animation: marquee 20s linear infinite;
  gap: 0;
}
.marquee__track span {
  font-family: 'Pixelify Sans', monospace;
  font-size: 28px;
  color: var(--yellow);
  white-space: nowrap;
  padding-right: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Yellow contact footer */
.footer-cta {
  background: var(--yellow);
  padding: 32px 64px 24px;
  position: relative;
  overflow: hidden;
  min-height: 341px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.footer-cta__cat {
  position: absolute;
  top: -15px;
  right: 64px;
  width: 258px;
  pointer-events: none;
}
.footer-cta__cat img { width: 100%; }
.footer-cta__heading {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--blue);
  line-height: 1.4;
  max-width: 480px;
}
.footer-cta__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.footer-cta__name {
  font-family: 'Vampiro One', cursive;
  font-size: 64px;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 24px;
}
.footer-cta__copy {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--blue);
}
.footer-cta__copy em { font-style: italic; }
.footer-cta__socials {
  display: flex;
  gap: 16px;
  align-items: flex-end;
}
.social-btn {
  width: 39px; height: 39px;
  border-radius: 100px;
  border: 1.5px solid var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}
.social-btn:hover { background: rgba(0, 118, 236, 0.08); }
.social-btn img { width: 16px; height: 16px; }

/* ============================================
   ABOUT PAGE
   ============================================ */

.about-hero {
  padding-top: calc(var(--nav-h) + 60px);
  max-width: 1440px;
  margin: 0 auto;
  padding-left: 64px;
  padding-right: 64px;
  text-align: center;
}
.about-hero__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--blue);
  line-height: 1.5;
  margin-bottom: 20px;
}
.about-hero__sub {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--blue);
}

/* Computer section */
.about-computer {
  position: relative;
  max-width: 1440px;
  margin: 40px auto 0;
  padding: 0 130px;
  height: 845px;
}
.about-computer__screen {
  position: absolute;
  left: 130px; top: 59px;
  width: 1180px; height: 786px;
}
.about-computer__screen img { width: 100%; height: 100%; object-fit: cover; }

/* Sticker/decorative image */
.about-sticker {
  position: absolute;
  right: 130px; top: 0;
  width: 89px; height: 194px;
}
.about-sticker img { width: 100%; height: 100%; object-fit: contain; }

/* Desktop icons on the computer */
.desktop-icons {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
.desktop-icon {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 90px;
  cursor: default;
}
.desktop-icon img.icon-img { width: 32px; height: 32px; }
.desktop-icon .icon-label {
  font-family: 'Tahoma', 'Arial', sans-serif;
  font-size: 11px;
  color: #000;
  text-align: center;
  background: transparent;
  padding: 1px;
  line-height: 1.2;
  text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

/* Floating desktop apps */
.desktop-app {
  position: absolute;
}
.desktop-app img { width: 48px; height: 48px; }

/* Windows XP dialog */
.xp-dialog {
  position: absolute;
  width: 503px;
  font-family: 'Tahoma', 'Arial', sans-serif;
  font-size: 11px;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.3);
  z-index: 10;
}
/* Titlebar */
.xp-titlebar {
  height: 29px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg,
    #3d95ff 6.7%, #0372ff 10.36%, #0365f1 13.9%,
    #0053e1 25.8%, #0058ee 56.3%, #026afe 74.1%,
    #026afe 84.7%, #0060fc 90.8%, #0043cf 96.4%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 5px;
  box-shadow: inset 8px 0 5px -5px rgba(34,37,46,0.54), inset -8px 0 5px -5px rgba(0,15,102,0.66);
  border: 1px solid #0059e8;
}
.xp-titlebar__left {
  display: flex; align-items: center; gap: 4px;
}
.xp-titlebar__icon { width: 16px; height: 16px; }
.xp-titlebar__title {
  font-family: 'Trebuchet MS', sans-serif;
  font-weight: 700; font-size: 13px;
  color: #d8e4f8;
}
.xp-titlebar__close {
  width: 21px; height: 21px;
  background: linear-gradient(180deg, #e46446 0%, #e65d32 100%);
  border-radius: 2px;
  border: 1px solid #e45f3e;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: inset -2px -3px 5px rgba(170,35,0,0.7), inset 10px 2px 8px rgba(255,255,255,0.1);
}
.xp-titlebar__close img { width: 9px; height: 9px; }
/* Dialog body */
.xp-body {
  background: #ece9d8;
  border-left: 3px solid #1255e7;
  border-right: 3px solid #002ebe;
}
.xp-content {
  background: white;
  padding: 16px 8px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.xp-row { display: flex; flex-direction: column; gap: 4px; }
.xp-row__title {
  font-family: 'Arial', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: #000;
}
.xp-row__desc {
  font-family: 'Tahoma', sans-serif;
  font-size: 11px;
  color: #000;
}
.xp-separator {
  height: 1px;
  background: #cac6af;
  border-bottom: 1px solid #f6f6f4;
}
.xp-nav {
  display: flex;
  justify-content: flex-end;
  padding: 10px;
}
.xp-btn {
  font-family: 'Tahoma', sans-serif;
  font-size: 11px;
  padding: 4px 13px;
  border-radius: 2.5px;
  border: 1px solid #1c5180;
  background: linear-gradient(180deg, #fff 0%, #f0f0ea 100%);
  box-shadow: 1px 1px 0 rgba(255,255,255,0.75), -1px -1px 0 rgba(0,0,0,0.05),
              inset 1.5px 1.5px 2px white, inset -1.5px -2.5px 2px rgba(83,55,0,0.2);
  cursor: pointer;
  min-width: 75px;
  text-align: center;
}
.xp-bottom {
  height: 3px;
  background: #002ebe;
  box-shadow: inset -3.5px -3.5px 1px -2px #00138c, inset 4px 0 4px -2px #0017c1,
              inset 5px 3.5px 1px -2px #0048f1;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .nav__inner { padding: 0 24px; }
  .nav__pill { width: auto; gap: 16px; padding: 8px 16px; }
  .nav__pill a { font-size: 11px; }

  .hero { padding: 120px 24px 60px; gap: 24px; }
  .hero__text { font-size: 20px; }
  .hero__text .pixel { font-size: 22px; }

  .work-wave { height: 280px; padding: 0 16px; }
  .project-card { width: 90%; }
  .project-card__title { font-size: 18px; }

  .footer-cta { padding: 24px 24px 20px; }
  .footer-cta__cat { display: none; }
  .footer-cta__name { font-size: 44px; }
  .footer-cta__bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
  .marquee__track span { font-size: 20px; }

  .about-hero { padding: 120px 24px 40px; }
  .about-computer { padding: 0 24px; height: auto; }
  .xp-dialog { position: relative; top: auto; left: auto; width: 100%; margin-top: 16px; }
  .about-computer__screen { position: relative; left: auto; top: auto; width: 100%; height: auto; }

  .nav__hamburger { display: flex; }
  .nav__pill {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    width: 100%;
    border-radius: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 20px;
    background: rgba(0, 11, 61, 0.95);
    backdrop-filter: blur(16px);
  }
  .nav__pill.open { display: flex; }
  .nav__pill a { font-size: 16px; }
}
