/* ============================================
   PORTFOLIO — Felipe Ribeiro
   Edit sections marked with 📝 EDIT
============================================ */

:root {
  --black: #0e0e0e;
  --white: #fafaf8;
  --gray-100: #f2f2f0;
  --gray-200: #e4e4e0;
  --gray-400: #a8a8a4;
  --gray-600: #6b6b68;
  --gray-800: #2a2a28;
  --accent: #1a1a1a;
  --font-sans: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --nav-h: 64px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--black);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(250,250,248,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  z-index: 100;
}

.nav-logo {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--black);
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--gray-600);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--black); }

/* SECTIONS */
section { padding: 100px 0; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 48px; }

/* HERO */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  align-items: center;
  width: 100%;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: 20px;
}

.hero-name {
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: var(--black);
  margin-bottom: 24px;
}

.hero-name strong {
  font-weight: 500;
  display: block;
}

.hero-bio {
  font-size: 17px;
  color: var(--gray-600);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 40px;
  font-weight: 300;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--black);
  color: var(--white);
}
.btn-primary:hover { background: var(--gray-800); }

.btn-secondary {
  background: transparent;
  color: var(--black);
  border: 1px solid var(--gray-200);
}
.btn-secondary:hover { border-color: var(--gray-400); }

.hero-photo-wrap {
  position: relative;
}

.hero-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  filter: grayscale(8%);
}

.hero-photo-frame {
  position: absolute;
  top: 16px;
  left: 16px;
  right: -16px;
  bottom: -16px;
  border: 1px solid var(--gray-200);
  pointer-events: none;
  z-index: -1;
}

/* SECTION LABELS */
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 300;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.section-title strong { font-weight: 500; }

/* ABOUT */
#about { background: var(--gray-100); }

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

.about-text p {
  font-size: 16px;
  color: var(--gray-600);
  margin-bottom: 16px;
  font-weight: 300;
  line-height: 1.8;
}

.about-details {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.detail-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: 14px;
}
.detail-row:first-child { border-top: 1px solid var(--gray-200); }

.detail-label {
  color: var(--gray-400);
  font-weight: 400;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  padding-top: 2px;
}

.detail-value {
  color: var(--black);
  font-weight: 400;
}

/* SKILLS */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gray-200);
  border: 1px solid var(--gray-200);
}

.skill-group {
  background: var(--white);
  padding: 32px;
}

.skill-group-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 20px;
}

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

.skill-tag {
  font-size: 13px;
  font-weight: 400;
  padding: 5px 12px;
  border: 1px solid var(--gray-200);
  color: var(--gray-800);
  background: var(--white);
  white-space: nowrap;
}

/* PROJECTS */
#projects { background: var(--white); }

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--gray-200);
  border: 1px solid var(--gray-200);
}

.project-card {
  background: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  transition: background 0.2s;
}
.project-card:hover { background: var(--gray-100); }

.project-img-wrap {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--gray-100);
}

.project-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.project-card:hover .project-img-wrap img { transform: scale(1.03); }

.project-info {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-date {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gray-400);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.project-name {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.3;
}

.project-desc {
  font-size: 14px;
  color: var(--gray-600);
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: 24px;
}

.project-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tool-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  background: var(--gray-100);
  color: var(--gray-600);
  letter-spacing: 0.04em;
}

/* EXPERIENCE */
#experience { background: var(--gray-100); }

.exp-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.exp-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--gray-200);
}
.exp-item:first-child { border-top: 1px solid var(--gray-200); }

.exp-period {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gray-400);
  letter-spacing: 0.05em;
  padding-top: 4px;
}

.exp-title {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.exp-org {
  font-size: 13px;
  color: var(--gray-400);
  margin-bottom: 16px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.exp-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exp-bullets li {
  font-size: 14px;
  color: var(--gray-600);
  font-weight: 300;
  line-height: 1.65;
  padding-left: 16px;
  position: relative;
}

.exp-bullets li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gray-400);
}

/* CONTACT */
#contact {
  background: var(--black);
  color: var(--white);
  padding: 100px 0;
}

#contact .section-label { color: rgba(255,255,255,0.3); }
#contact .section-label::after { background: rgba(255,255,255,0.1); }
#contact .section-title { color: var(--white); }

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

.contact-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.5);
  font-weight: 300;
  line-height: 1.75;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-decoration: none;
  color: var(--white);
  transition: all 0.2s;
  font-size: 15px;
}
.contact-link:first-child { border-top: 1px solid rgba(255,255,255,0.1); }
.contact-link:hover { color: rgba(255,255,255,0.6); }

.contact-link-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-arrow { font-size: 18px; opacity: 0.3; }

/* FOOTER */
footer {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer span {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  font-family: var(--font-mono);
}

/* ANIMATIONS */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 860px) {
  nav { padding: 0 24px; }
  .container { padding: 0 24px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-photo-wrap { order: -1; max-width: 280px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .skills-grid { grid-template-columns: 1fr; }
  .project-card { grid-template-columns: 1fr; }
  .exp-item { grid-template-columns: 1fr; gap: 8px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  footer { flex-direction: column; gap: 8px; text-align: center; }
}
