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

:root {
  --bg:        #FAFAFA;
  --bg-2:      #F3F3F1;
  --surface:   #FFFFFF;
  --line:      #E4E4E0;
  --text:      #111111;
  --text-2:    #555555;
  --text-3:    #999999;
  --accent:    #111111;
  --em:        #4A4AFF;
  --radius:    16px;
  --nav-h:     72px;
  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

em { font-family: 'Playfair Display', serif; font-style: italic; }
a  { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
img, svg { display: block; }

.hidden { display: none !important; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* ════════════════════════════════════════════
   TELA DE SENHA
════════════════════════════════════════════ */
#lock-screen {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  background: var(--bg);
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}

#lock-screen.unlocking {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.lock-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 800px 600px at 80% 20%, rgba(74,74,255,0.04) 0%, transparent 70%),
    radial-gradient(ellipse 600px 500px at 10% 80%, rgba(74,74,255,0.03) 0%, transparent 70%);
  pointer-events: none;
}

.lock-card {
  position: relative;
  width: 100%; max-width: 480px;
  padding: 60px 56px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 2px 40px rgba(0,0,0,0.06), 0 1px 0 rgba(0,0,0,0.04);
  animation: lockIn 0.9s var(--ease) both;
}

@keyframes lockIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.lock-top {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 40px;
}

.lock-icon-wrap {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-2);
  border-radius: 10px;
}

.lock-icon { width: 20px; height: 20px; color: var(--text); }

.lock-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lock-title {
  font-size: clamp(36px, 6vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.lock-title em { color: #111111; font-style: normal; }

.lock-subtitle {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 40px;
}

.input-wrap {
  display: flex;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--surface);
}

.input-wrap:focus-within {
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(17,17,17,0.06);
}

.input-wrap.error {
  border-color: #E53935;
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-6px); }
  40%       { transform: translateX(6px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}

#pass-input {
  flex: 1;
  padding: 16px 20px;
  border: none; outline: none;
  font-size: 16px;
  font-family: inherit;
  background: transparent;
  color: var(--text);
  letter-spacing: 0.08em;
}

#pass-input::placeholder { color: var(--text-3); letter-spacing: 0; }

#enter-btn {
  width: 56px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
  transition: color 0.2s, background 0.2s;
  border-left: 1.5px solid var(--line);
}

#enter-btn svg { width: 18px; height: 18px; }
#enter-btn:hover { color: var(--text); background: var(--bg-2); }

.lock-error {
  margin-top: 10px;
  font-size: 13px;
  color: #E53935;
  opacity: 0;
  transition: opacity 0.3s;
  min-height: 20px;
}

.lock-error.visible { opacity: 1; }

.lock-footer {
  display: flex; gap: 6px; justify-content: center;
  margin-top: 40px;
}

.dot {
  display: block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--line);
}

/* ════════════════════════════════════════════
   NAV
════════════════════════════════════════════ */
#nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  z-index: 100;
  transition: background 0.3s, border-color 0.3s;
}

#nav.scrolled {
  background: rgba(250,250,250,0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.nav-logo em { color: var(--text); font-style: normal; }

.nav-links {
  display: flex; gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0.01em;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0; height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-menu-btn {
  display: none;
  flex-direction: column; gap: 5px;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
}

.nav-menu-btn span {
  display: block; width: 22px; height: 1.5px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; top: var(--nav-h);
  background: var(--surface);
  z-index: 99;
  padding: 40px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.mobile-menu.open { opacity: 1; visibility: visible; }

.mobile-menu ul { list-style: none; }

.mobile-link {
  display: block;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
  transition: color 0.2s;
}

.mobile-link:hover { color: var(--text); }

/* ════════════════════════════════════════════
   HERO
════════════════════════════════════════════ */
.section-hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 60px) 40px 80px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.section-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  background-image: url('assets/hero-bg2.webp');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  z-index: -1;
  pointer-events: none;
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 32px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  width: fit-content;
}

.hero-tag-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--em);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
  display: flex; flex-direction: column;
}

.hero-title em { color: #111111; font-style: normal; }

/* Reveal animation */
.reveal-line {
  overflow: hidden;
  display: block;
  padding-top: 0.1em;
  margin-top: -0.1em;
}

.reveal-line span {
  display: block;
  transform: translateY(110%);
  animation: revealUp 0.9s var(--ease) both;
}

.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  animation: revealFade 0.8s var(--ease) both;
}

@keyframes revealUp   { to { transform: translateY(0); } }
@keyframes revealFade { to { opacity: 1; transform: translateY(0); } }

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.45s; }
.delay-1 span { animation-delay: 0.1s; }
.delay-2 span { animation-delay: 0.2s; }

.hero-desc {
  font-size: 18px;
  color: var(--text-2);
  max-width: 520px;
  margin-bottom: 48px;
  line-height: 1.7;
}

.hero-cta {
  display: flex; gap: 16px; flex-wrap: wrap;
}

/* ════════════════════════════════════════════
   BUTTONS
════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px;
  background: var(--text);
  color: var(--bg);
  font-size: 15px;
  font-weight: 600;
  border-radius: 100px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(17,17,17,0.2);
}

.btn-primary svg { width: 18px; height: 18px; }

.btn-full { width: 100%; justify-content: center; border-radius: 12px; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px;
  border: 1.5px solid var(--line);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  border-radius: 100px;
  transition: border-color 0.2s, background 0.2s;
}

.btn-ghost:hover { border-color: var(--text); background: var(--bg-2); }

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 48px; left: 40px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}

.scroll-line {
  width: 1px; height: 64px;
  background: linear-gradient(to bottom, var(--line), transparent);
  animation: scrollLine 2s ease infinite;
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.hero-scroll-indicator span {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  writing-mode: vertical-rl;
}

/* ════════════════════════════════════════════
   SECTIONS COMMON
════════════════════════════════════════════ */
.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--em);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 64px;
}

.section-title em { color: var(--em); }

.section-header { margin-bottom: 0; }

/* ════════════════════════════════════════════
   SOBRE
════════════════════════════════════════════ */
.section-sobre {
  padding: 120px 0;
  background: var(--bg-2);
}

.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
  margin-top: 64px;
}

.photo-frame {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 20px;
  overflow: hidden;
  background: var(--line);
}

.photo-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px;
  color: var(--text-3);
  background: var(--bg);
}

.photo-placeholder svg { width: 64px; height: 64px; opacity: 0.3; }
.photo-placeholder span { font-size: 13px; opacity: 0.5; }

.photo-badge {
  position: absolute;
  bottom: 24px; right: -20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex; flex-direction: column; gap: 2px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.badge-num {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.badge-text {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.4;
}

.sobre-bio {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 20px;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 36px 0;
}

.skill-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.skill-item:hover {
  border-color: var(--text-3);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.skill-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-2);
  border-radius: 8px;
}

.skill-icon svg { width: 18px; height: 18px; color: var(--text-2); }

.skill-item strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.skill-item span {
  display: block;
  font-size: 12px;
  color: var(--text-3);
}

.tools-list {
  display: flex; flex-wrap: wrap; gap: 8px;
}

.tool-tag {
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--text-2);
  transition: border-color 0.2s, color 0.2s;
}

.tool-tag:hover { border-color: var(--text); color: var(--text); }

/* ════════════════════════════════════════════
   PROJETOS
════════════════════════════════════════════ */
.section-projetos {
  padding: 120px 0;
  background: var(--bg);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.card-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.card-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.3);
  transition: transform 0.6s var(--ease);
}

.project-card:hover .card-img-placeholder {
  transform: scale(1.04);
}

.card-img-real {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s var(--ease);
}

.project-card:hover .card-img-real {
  transform: scale(1.04);
}

.card-overlay {
  position: absolute; inset: 0;
  background: rgba(17,17,17,0.72);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  backdrop-filter: blur(4px);
}

.project-card:hover .card-overlay { opacity: 1; }

.card-open-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  border-radius: 100px;
  transform: translateY(8px);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.project-card:hover .card-open-btn { transform: translateY(0); }
.card-open-btn svg { width: 16px; height: 16px; }
.card-open-btn:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.15); }

.card-info { padding: 24px; }

.card-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}

.card-category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--em);
}

.card-year {
  font-size: 12px;
  color: var(--text-3);
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.card-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 16px;
}

.card-tags {
  display: flex; gap: 6px; flex-wrap: wrap;
}

.card-tags span {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  background: var(--bg-2);
  border-radius: 100px;
  color: var(--text-2);
}

/* ════════════════════════════════════════════
   MODAL IFRAME
════════════════════════════════════════════ */
.iframe-modal {
  position: fixed; inset: 0;
  z-index: 300;
  display: flex; flex-direction: column;
  background: var(--bg);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}

.iframe-modal.open { opacity: 1; visibility: visible; }

.iframe-modal-bar {
  height: 52px;
  background: var(--text);
  display: flex; align-items: center;
  padding: 0 20px;
  flex-shrink: 0;
  gap: 12px;
}

.iframe-modal-title {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  flex: 1;
  letter-spacing: 0.02em;
}

.iframe-modal-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--text);
  color: var(--surface);
  flex-shrink: 0;
  transition: background 0.2s, opacity 0.2s;
}

.iframe-modal-close:hover { opacity: 0.75; }
.iframe-modal-close svg { width: 15px; height: 15px; }

.iframe-modal iframe {
  flex: 1;
  width: 100%;
  border: none;
}

/* ════════════════════════════════════════════
   MODAL
════════════════════════════════════════════ */
.modal {
  position: fixed; inset: 0;
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}

.modal.open { opacity: 1; visibility: visible; }

.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(17,17,17,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-panel {
  position: relative;
  width: 100%; max-width: 760px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: 24px;
  padding: 56px;
  transform: translateY(32px) scale(0.97);
  transition: transform 0.4s var(--ease);
  box-shadow: 0 40px 100px rgba(0,0,0,0.2);
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.modal.open .modal-panel { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute; top: 24px; right: 24px;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-2);
  color: var(--text-2);
  transition: background 0.2s, color 0.2s;
}

.modal-close:hover { background: var(--line); color: var(--text); }
.modal-close svg { width: 18px; height: 18px; }

.modal-img {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 36px;
}

.modal-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.25);
}

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

.modal-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.modal-gallery-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  object-position: center top;
  border-radius: 8px;
  display: block;
}

.modal-meta {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 20px;
}

.modal-cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--em);
  padding: 6px 14px;
  border: 1.5px solid var(--em);
  border-radius: 100px;
}

.modal-year {
  font-size: 12px;
  color: var(--text-3);
  padding: 6px 0;
}

.modal-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.modal-desc {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 32px;
}

.modal-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 32px;
}

.modal-detail {
  padding: 20px;
  background: var(--bg-2);
}

.modal-detail label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 6px;
}

.modal-detail span {
  font-size: 15px;
  font-weight: 600;
}

.modal-tags {
  display: flex; gap: 8px; flex-wrap: wrap;
}

.modal-tags span {
  font-size: 13px;
  font-weight: 500;
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--text-2);
}

.modal-divider {
  height: 1px;
  background: var(--line);
  margin: 32px 0;
}

.modal-section {
  margin-bottom: 28px;
}

.modal-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}

.modal-section-text {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.75;
}

.modal-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}

.modal-bullets li {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.6;
  padding: 10px 0 10px 20px;
  position: relative;
  border-bottom: 1px solid var(--line);
}

.modal-bullets li:last-child { border-bottom: none; }

.modal-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--em);
}

/* ════════════════════════════════════════════
   CONTATO
════════════════════════════════════════════ */
.section-contato {
  padding: 120px 0;
  background: var(--bg-2);
}

.contato-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contato-text .section-title { margin-bottom: 20px; }

.contato-desc {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 40px;
}

.contato-links {
  display: flex; flex-direction: column; gap: 16px;
}

.contato-link {
  display: flex; align-items: center; gap: 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.2s;
}

.contato-link svg { width: 20px; height: 20px; flex-shrink: 0; }
.contato-link:hover { color: var(--text); }

.contato-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(17,17,17,0.06);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-3); }

.form-success {
  margin-top: 14px;
  font-size: 14px;
  color: #2e7d32;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s;
}

.form-success.visible { opacity: 1; }

/* ════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════ */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
}

.footer-logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer-logo em { color: var(--text); font-style: normal; }

.footer-copy {
  font-size: 13px;
  color: var(--text-3);
}

.footer-top {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.footer-top svg { width: 16px; height: 16px; }
.footer-top:hover {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
  transform: translateY(-2px);
}

/* ════════════════════════════════════════════
   SCROLL PROGRESS BAR
════════════════════════════════════════════ */
#scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--em);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 9998;
  transition: transform 0.1s linear;
}

/* ════════════════════════════════════════════
   ANIMAÇÕES DE SCROLL
════════════════════════════════════════════ */

/* Base: elementos ficam invisíveis antes de entrar */
.anim-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

.anim-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.anim-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.anim-fade {
  opacity: 0;
  transition: opacity 0.7s var(--ease);
}

/* Estado visível */
.anim-up.is-visible,
.anim-left.is-visible,
.anim-right.is-visible,
.anim-fade.is-visible {
  opacity: 1;
  transform: none;
}

/* ── Split-text: cada palavra é um span.sw ── */
.split-words { overflow: visible; }

.sw {
  display: inline-block;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: var(--d, 0s);
}

.sw-in {
  opacity: 1;
  transform: translateY(0);
}

/* Compatibilidade com classes antigas (hero usa CSS animation) */
.js-reveal { opacity: 0; transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js-reveal.revealed { opacity: 1; transform: translateY(0); }
.js-reveal-left { opacity: 0; transform: translateX(-40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js-reveal-left.revealed { opacity: 1; transform: translateX(0); }
.js-reveal-right { opacity: 0; transform: translateX(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js-reveal-right.revealed { opacity: 1; transform: translateX(0); }

/* ════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════ */
@media (max-width: 960px) {
  .sobre-grid    { grid-template-columns: 1fr; gap: 48px; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .contato-inner { grid-template-columns: 1fr; gap: 48px; }
  .photo-frame   { max-width: 400px; }
  .photo-badge   { right: 0; }
}

@media (max-width: 640px) {
  .container   { padding: 0 24px; }
  #nav         { padding: 0 24px; }
  .section-hero { padding: calc(var(--nav-h) + 40px) 24px 80px; }
  .nav-links   { display: none; }
  .nav-menu-btn { display: flex; }
  .projects-grid { grid-template-columns: 1fr; }
  .skills-grid   { grid-template-columns: 1fr; }
  .modal-panel   { padding: 32px 24px; }
  .modal-details { grid-template-columns: 1fr; }
  .footer-copy   { display: none; }
  .hero-scroll-indicator { display: none; }
  .lock-card     { padding: 40px 28px; }
}
