/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */
@media (pointer: fine) {
  body {
    cursor: none;
  }

  a, button, [role="button"], input, textarea, select, label {
    cursor: none;
  }

  .cursor-dot {
    position: fixed;
    top: -4px;
    left: -4px;
    width: 8px;
    height: 8px;
    background: var(--black);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.05s ease, opacity 0.2s ease, width 0.2s ease, height 0.2s ease, background 0.2s ease;
    will-change: transform;
  }

  .cursor-ring {
    position: fixed;
    top: -18px;
    left: -18px;
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--black);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.35;
    transition: opacity 0.2s ease, width 0.25s ease, height 0.25s ease, border-color 0.2s ease, top 0.25s ease, left 0.25s ease;
    will-change: transform;
  }

  .cursor-dot--hover {
    background: var(--green);
    width: 10px;
    height: 10px;
    top: -5px;
    left: -5px;
  }

  .cursor-ring--hover {
    border-color: var(--green);
    opacity: 0.5;
    width: 44px;
    height: 44px;
    top: -22px;
    left: -22px;
  }
}

:root {
  --green: #4caf78;
  --black: #1a1a1a;
  --gray: #6b6b6b;
  --light-gray: #f5f5f5;
  --border: #e8e8e8;
  --white: #ffffff;

  --font: 'Inter', sans-serif;
  --nav-h: 64px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* ============================================
   NAV
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
}

.nav-name {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.nav-role {
  color: var(--gray);
  font-weight: 400;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-email {
  font-size: 13px;
  color: var(--gray);
  transition: color 0.2s;
}

.nav-email:hover {
  color: var(--black);
}

.nav-icon {
  display: flex;
  align-items: center;
  color: var(--gray);
  transition: color 0.2s;
}

.nav-icon:hover {
  color: var(--black);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 72px 48px 80px;
  max-width: 900px;
}

/* Hero availability badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--black);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px 6px 10px;
  margin-bottom: 24px;
}

.hero-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
  flex-shrink: 0;
}

/* Hero buttons */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 32px 0 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 100px;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  cursor: pointer;
  line-height: 1;
}

.btn--primary {
  background: var(--black);
  color: var(--white);
  border: 1.5px solid var(--black);
}

.btn--primary:hover {
  background: #333;
  transform: translateY(-1px);
}

.btn--secondary {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--border);
}

.btn--secondary:hover {
  border-color: #c0c0c0;
  transform: translateY(-1px);
}

.hero-label {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 4px;
}

.hero-sub-label {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 32px;
  font-style: normal;
}

.hero-sub-label em {
  font-style: normal;
  color: var(--black);
}

.hero-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--black);
}

.hero-title-green {
  color: var(--green);
  font-weight: 500;
}

/* ============================================
   FEATURED PROJECTS
   ============================================ */
.projects {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.project-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
  border-top: 1px solid var(--border);
}

.project-featured--right {
  direction: rtl;
}

.project-featured--right > * {
  direction: ltr;
}

.project-featured__info {
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.project-featured__title {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 420px;
}

.project-featured__body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray);
  max-width: 400px;
}

.project-featured__meta {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.5;
}

.project-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--black);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  transition: gap 0.2s;
}

.project-link:hover {
  gap: 8px;
}

/* Metrics */
.project-featured__metrics {
  display: flex;
  gap: 32px;
  padding: 20px 0;
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric__value {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--black);
}

.metric__label {
  font-size: 12px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Media panels */
.project-featured__media {
  overflow: hidden;
  padding: 0;
}

.project-featured__media--green {
  background: #e8f5ee;
}

.project-featured__media--beige {
  background: #f5f0e8;
}

.project-featured__media--purple {
  background: #eeebf8;
}

/* Mockup grids inside media panels */
.mockup-grid {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

/* Hide broken image icons — placeholders show via background */
img[src$=".png"]:not([src^="data"]) {
  background: rgba(0,0,0,0.06);
  min-height: 80px;
}

.mockup-img--single {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ============================================
   OTHER PROJECTS
   ============================================ */
.other-projects {
  padding: 80px 48px;
  border-top: 1px solid var(--border);
}

.other-projects__title {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
}

.other-projects__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.other-project-card {
  background: var(--white);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.other-project-card__top {
  padding: 32px 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.other-project-card__name {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.other-project-card__body {
  font-size: 13px;
  line-height: 1.65;
  color: var(--gray);
}

.other-project-card__download {
  margin-top: 4px;
  align-self: flex-start;
  font-size: 13px;
  padding: 10px 18px;
}

.other-project-card__media {
  flex: 1;
  min-height: 220px;
  overflow: hidden;
  padding: 0;
}

.other-project-card__media--yellow  { background: #f5f0d8; }
.other-project-card__media--dark    { background: #1a2236; }
.other-project-card__media--light   { background: #f0f4f8; }
.other-project-card__media--gray    { background: #f0f0f0; }

.other-project-card__media .mockup-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ============================================
   1LOCK MODAL
   ============================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.is-open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: 0;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  max-height: 92vh;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.modal.is-open {
  transform: translateY(0);
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.modal__title-group {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.modal__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
}

.modal__title {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--black);
}

.modal__close {
  background: none;
  border: none;
  padding: 6px;
  color: var(--gray);
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  line-height: 0;
}

.modal__close:hover {
  background: var(--light-gray);
  color: var(--black);
}

.modal__body {
  padding: 24px 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}

.modal__cols {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
}

.modal__col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.modal__cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal__cell--alt {
  background: #f2f2f2;
  border-radius: 8px;
  padding: 14px 16px;
}

.modal__cell-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2e7d52;
}

.modal__cell-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--black);
}

.modal__image {
  background: #1a2236;
  overflow: hidden;
  flex-shrink: 0;
  min-height: 200px;
}

.modal__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  border-top: 1px solid var(--border);
  padding: 80px 48px;
  display: flex;
  justify-content: center;
}

.about__inner {
  display: flex;
  align-items: center;
  gap: 64px;
  max-width: 960px;
  width: 100%;
}

.about__photo {
  width: 280px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--light-gray);
}

.about__photo img {
  width: 100%;
  height: auto;
  display: block;
}

.about__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about__content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--black);
}

.about__greeting {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.about__name {
  font-size: 14px;
  color: var(--gray);
  margin-top: 8px;
}

.about__name span {
  font-size: 13px;
  color: var(--gray);
}

.about__cv-btn {
  align-self: flex-start;
  font-size: 13px;
  padding: 10px 18px;
  margin-top: 4px;
}

/* ============================================
   FOOTER / CTA
   ============================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 80px 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer__title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 400;
  letter-spacing: -0.03em;
}

.footer__cta {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  padding: 14px 32px;
  border-radius: 100px;
  transition: background 0.2s, transform 0.2s;
}

.footer__cta:hover {
  background: #333;
  transform: translateY(-1px);
}

.footer__email {
  font-size: 13px;
  color: var(--gray);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  /* Modal 1Lock — coluna única */
  .modal__cols {
    grid-template-columns: 1fr;
  }

  .modal__body {
    padding: 16px 20px 24px;
  }

  .modal__header {
    padding: 16px 20px;
  }

  .modal__image {
    min-height: unset;
  }

  .modal__image img {
    height: auto;
    object-fit: unset;
  }

  .nav {
    padding: 0 24px;
  }

  .nav-email {
    display: none;
  }

  .hero {
    padding: 48px 24px 56px;
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .project-featured__metrics {
    gap: 20px;
  }

  .metric__value {
    font-size: 22px;
  }

  .project-featured {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .project-featured--right {
    direction: ltr;
  }

  /* Texto sempre acima da imagem no mobile */
  .project-featured__info {
    padding: 40px 24px;
    order: 1;
  }

  .project-featured__media {
    min-height: 280px;
    order: 2;
  }

  /* Imagens sem borda cinza — hug */
  .project-featured__media .mockup-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
  }

  .other-projects {
    padding: 56px 24px;
  }

  .other-projects__grid {
    grid-template-columns: 1fr;
  }

  .about {
    padding: 56px 24px;
    justify-content: flex-start;
  }

  .about__inner {
    flex-direction: column;
    gap: 32px;
  }

  .about__photo {
    width: 100%;
  }

  .about__content {
    max-width: 100%;
  }

  .footer {
    padding: 56px 24px;
  }
}
