*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f5f3ef;
  --bg2: #eceae4;
  --black: #111110;
  --gray: #888680;
  --gray-light: #d8d5ce;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Geist', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--black);
  font-size: 14px;
  line-height: 1.6;
  font-weight: 300;
}

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

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  background: var(--bg);
  border-bottom: 1px solid var(--gray-light);
}

.nav-name {
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  font-size: 12px;
  color: var(--gray);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.nav-links a:hover {
  border-color: var(--gray-light);
  color: var(--black);
}

/* ─── PAGE WRAPPER ─── */
.page {
  max-width: 780px;
  margin: 0 auto;
  padding: 7rem 2rem 4rem;
}

/* ─── HERO ─── */
.hero {
  padding: 4rem 0 5rem;
  border-bottom: 1px solid var(--gray-light);
}

.hero-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--bg2);
  border: 1px solid var(--gray-light);
  margin-bottom: 2rem;
  overflow: hidden;
}

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

.hero-intro {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  line-height: 1.15;
  font-weight: 400;
  margin-bottom: 1.75rem;
  letter-spacing: -0.02em;
}

.hero-intro em {
  font-style: normal;
  color: var(--gray);
}

.hero-intro .highlight {
  display: inline-block;
  background: #E9A2A6;
  border-radius: 40px;
  padding: 0 0.35em;
  font-style: normal;
  color: var(--black);
}

.hero-sub {
  font-size: 14px;
  color: var(--gray);
  max-width: 440px;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 12px;
  border: 1px solid #E9A2A6;
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  color: #c97a7e;
  background: #fdf0f0;
}

/* ─── SECTION ─── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #c97a7e;
  border: 1px solid #E9A2A6;
  background: #fdf0f0;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  margin-bottom: 1.5rem;
}

.section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--gray-light);
}

.section-heading {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 2.5rem;
  letter-spacing: -0.02em;
}

/* ─── PROJETS ─── */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.project-card {
  background: var(--bg2);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
  border: 1px solid var(--gray-light);
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.07);
}

.project-thumb {
  width: 100%;
  height: 200px;
  background: #ffffff;
  overflow: hidden;
  border-bottom: 1px solid var(--gray-light);
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}

.project-thumb-inner {
  width: 60%;
  height: 60%;
  border-radius: 10px;
  background: var(--gray-light);
  opacity: 0.6;
}

.project-info {
  padding: 1.1rem 1.25rem;
}

.project-cat {
  font-size: 11px;
  color: var(--gray);
  margin-bottom: 0.2rem;
  letter-spacing: 0.04em;
}

.project-name {
  font-size: 14px;
  font-weight: 500;
}

.projects-more {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 13px;
  color: var(--gray);
  border: 1px solid var(--gray-light);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  transition: all 0.2s;
}

.projects-more:hover {
  color: var(--black);
  border-color: var(--black);
}

/* ─── SERVICES ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.service-card {
  background: var(--bg2);
  border-radius: 14px;
  padding: 1.5rem;
  border: 1px solid var(--gray-light);
}

.service-num {
  font-size: 11px;
  color: var(--gray);
  margin-bottom: 1rem;
  border: 1px solid var(--gray-light);
  border-radius: 999px;
  display: inline-flex;
  padding: 0.15rem 0.6rem;
}

.service-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.service-items {
  list-style: none;
  font-size: 13px;
  color: var(--gray);
  line-height: 2;
}

/* ─── EXPÉRIENCES ─── */
.exp-list {
  display: flex;
  flex-direction: column;
  
}

.exp-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 1rem;
  align-items: start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--gray-light);
}

.exp-item:last-child { border-bottom: none; }

.exp-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg2);
  border: 1px solid var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  overflow: hidden;
}

.exp-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.exp-role {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 0.1rem;
}

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

.exp-meta {
  text-align: right;
  font-size: 12px;
  color: var(--gray);
  line-height: 1.7;
  flex-shrink: 0;
}

/* ─── ABOUT TEXT ─── */
.about-text {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.9;
  max-width: 620px;
  margin-bottom: 1rem;
}

/* ─── INTÉRÊTS ─── */
.interests-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.interest-card {
  background: var(--bg2);
  border-radius: 14px;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid var(--gray-light);
  font-size: 13px;
  color: var(--gray);
  transition: background 0.2s;
}

.interest-card:hover { background: var(--gray-light); }

.interest-icon {
  font-size: 24px;
  line-height: 1;
}

/* ─── STATS ─── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat-card {
  background: var(--bg2);
  border-radius: 14px;
  padding: 1.5rem;
  border: 1px solid var(--gray-light);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stat-num {
  font-family: var(--serif);
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 12px;
  color: var(--gray);
}

/* ─── CTA ─── */
.cta-section {
  padding: 5rem 0 3rem;
  text-align: center;
}

.cta-heading {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.cta-heading em {
  font-style: italic;
  color: var(--gray);
}

.cta-sub {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 2rem;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--black);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  transition: opacity 0.2s;
}

.cta-btn:hover { opacity: 0.75; }

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--gray-light);
  padding: 2rem 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.footer-links a {
  font-size: 12px;
  color: var(--gray);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--black); }

.footer-copy {
  font-size: 11px;
  color: var(--gray-light);
  padding: 1.5rem 0 0;
  display: block;
  text-align: center;
  width: 100%;
}

/* ─── LIGHTBOX ─── */
.lightbox-trigger {
  cursor: zoom-in;
}

.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-overlay img {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
  border-radius: 8px;
  cursor: zoom-out;
}

.lightbox-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-close:hover { background: rgba(255,255,255,0.3); }
.fade {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade.visible {
  opacity: 1;
  transform: none;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 600px) {
  .projects-grid,
  .services-grid,
  .stats-grid { grid-template-columns: 1fr; }

  .interests-grid { grid-template-columns: repeat(2, 1fr); }

  .exp-item { grid-template-columns: 44px 1fr; }
  .exp-meta { display: none; }

  nav { padding: 1rem 1.25rem; }
  .page { padding: 5.5rem 1.25rem 3rem; }
}
