/* ===========================
   Variables
=========================== */
:root {
  --bg: #f7f8fc;
  --bg-card: #ffffff;
  --bg-dark: #eef0f6;
  --border: #c8cedd;
  --border-light: #b8c0d4;
  --text: #0f1117;
  --text-muted: #636b85;
  --text-soft: #2e3347;
  --green: #00a87a;
  --gold: #d49a0a;
  --green-glow: rgba(0, 168, 122, 0.1);
  --font-sans: 'Inter', 'Noto Color Emoji', 'Segoe UI Emoji', 'Apple Color Emoji', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* ===========================
   Layout
=========================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.accent { color: var(--green); }

/* ===========================
   NAV
=========================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.nav.scrolled {
  background: rgba(7, 7, 15, 0.92);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: color var(--transition);
  letter-spacing: 0.02em;
}

.nav-links a:hover,
.nav-links a.active { color: var(--green); }

/* ===========================
   HERO
=========================== */
.hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 0 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Subtle tech grid */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 168, 122, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 168, 122, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* Brazilian diamond shapes, subtle nod to the flag's rhombus */
.hero-bg::before {
  content: '';
  position: absolute;
  top: 50%;
  right: -8%;
  transform: translateY(-50%) rotate(45deg);
  width: 420px;
  height: 420px;
  border: 1px solid rgba(0, 168, 122, 0.15);
  border-radius: 6px;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -3%;
  transform: translateY(-50%) rotate(45deg);
  width: 600px;
  height: 600px;
  border: 1px solid rgba(212, 154, 10, 0.12);
  border-radius: 6px;
}

/* Ambient glow */
.hero::before {
  content: '';
  position: absolute;
  top: 25%;
  left: 15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(0, 168, 122, 0.06) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--green);
  border: 1px solid rgba(0, 200, 150, 0.25);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 2rem;
  letter-spacing: 0.06em;
}

.dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0,200,150,0.4); }
  50% { opacity: 0.6; box-shadow: 0 0 0 4px rgba(0,200,150,0); }
}

.hero-name {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-mono);
  font-size: clamp(0.8rem, 1.5vw, 0.95rem);
  color: var(--text-soft);
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}

.hero-location {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2.75rem;
}

.hero-location i { color: var(--gold); margin-right: 0.25rem; }

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--green);
  color: #ffffff;
}

.btn-primary:hover {
  background: #00daa5;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(0, 200, 150, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-light);
}

.btn-ghost:hover {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-1px);
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollpulse 2s ease-in-out infinite;
}

@keyframes scrollpulse {
  0%, 100% { opacity: 0.8; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.6); }
}

/* ===========================
   SECTIONS
=========================== */
.section { padding: 4rem 0; }
.section-dark { background: var(--bg-dark); }

.section-header { margin-bottom: 2.5rem; }
.section-header.centered { text-align: center; }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--green);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.6rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
}

/* ===========================
   ABOUT
=========================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 5rem;
  align-items: start;
}

.about-text p {
  color: var(--text-soft);
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
}

.about-text strong {
  color: var(--text);
  font-weight: 600;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--green);
  font-family: var(--font-mono);
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  line-height: 1.4;
}

.image-placeholder {
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  overflow: hidden;
  position: relative;
  background: var(--bg-card);
}

/* Gradient overlay referencing Brazil's green + gold */
.image-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 200, 150, 0.04) 0%,
    transparent 40%,
    rgba(240, 180, 41, 0.04) 100%
  );
}

.image-placeholder-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--text-muted);
  z-index: 1;
}

.image-placeholder-inner i { font-size: 3rem; opacity: 0.3; }

.image-placeholder-inner span {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  opacity: 0.4;
}

/* ===========================
   EXPERTISE
=========================== */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.expertise-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all var(--transition);
}

.expertise-card:hover {
  border-color: rgba(0, 200, 150, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 200, 150, 0.07);
}

.expertise-icon {
  width: 48px;
  height: 48px;
  background: var(--green-glow);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.2rem;
  color: var(--green);
}

.expertise-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
  color: var(--text);
}

.expertise-card p {
  font-size: 1rem;
  color: var(--text-soft);
  line-height: 1.7;
}

/* ===========================
   TIMELINE
=========================== */
.timeline {
  position: relative;
  padding-left: 1.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(to bottom, var(--green), var(--border) 80%, transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  padding-left: 2.5rem;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 1.5rem;
  width: 10px;
  height: 10px;
  background: var(--green);
  border-radius: 50%;
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 3px rgba(0, 200, 150, 0.15);
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color var(--transition);
}

.timeline-content:hover { border-color: var(--border-light); }

.timeline-content.featured {
  border-color: rgba(0, 200, 150, 0.25);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(0, 200, 150, 0.03) 100%);
}

.timeline-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.timeline-header h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.timeline-company {
  display: block;
  font-size: 0.85rem;
  color: var(--green);
  font-weight: 500;
  margin-top: 0.2rem;
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--text-muted);
}

.timeline-badge {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.timeline-badge.current {
  background: rgba(0, 200, 150, 0.1);
  color: var(--green);
  border: 1px solid rgba(0, 200, 150, 0.25);
}

.timeline-content > p {
  font-size: 1rem;
  color: var(--text-soft);
  margin-bottom: 1.25rem;
  line-height: 1.75;
}

/* ===========================
   TAGS
=========================== */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 0.73rem;
  font-family: var(--font-mono);
  padding: 0.28rem 0.7rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-soft);
  transition: all var(--transition);
}

.tag:hover {
  border-color: rgba(0, 200, 150, 0.4);
  color: var(--green);
}

.tag-lang {
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-code {
  font-size: 0.65rem;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  background: var(--green);
  color: #fff;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.lang-br { background: #009c3b; }
.lang-es { background: #c60b1e; }

/* ===========================
   SKILLS
=========================== */
.skills-groups {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.skills-group h4 {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

/* ===========================
   EDUCATION
=========================== */
.education-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.education-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: all var(--transition);
}

.education-card.featured {
  border-color: rgba(0, 200, 150, 0.18);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(0, 200, 150, 0.025) 100%);
}

.education-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.edu-icon {
  width: 44px;
  height: 44px;
  background: var(--green-glow);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 1.05rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.education-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.edu-degree {
  font-size: 0.875rem;
  color: var(--text-soft);
  margin-bottom: 0.3rem;
}

.edu-location {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--text-muted);
  display: block;
}

.edu-year {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--text-muted);
}

/* ===========================
   FEATURED
=========================== */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.featured-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  position: relative;
}

.featured-card:hover {
  border-color: rgba(0, 168, 122, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 168, 122, 0.08);
}

.featured-type {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--green);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.featured-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.featured-episode {
  font-size: 0.9rem;
  color: var(--green);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.featured-desc {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex: 1;
}

.featured-cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap var(--transition);
}

.featured-card:hover .featured-cta { gap: 0.65rem; }

.episode-list {
  list-style: none;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.episode-list li a {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--text-soft);
  transition: color var(--transition);
  line-height: 1.5;
}

.episode-list li a:hover { color: var(--green); }

.ep-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--green);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.featured-footer { margin-top: 2rem; }

@media (max-width: 640px) {
  .featured-grid { grid-template-columns: 1fr; }
}

/* ===========================
   CERTIFICATIONS
=========================== */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all var(--transition);
}

.cert-card:hover {
  border-color: rgba(0, 168, 122, 0.35);
  transform: translateY(-1px);
}

.cert-icon {
  width: 32px;
  height: 32px;
  background: var(--green-glow);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.cert-info { flex: 1; }

.cert-info h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.2rem;
  line-height: 1.35;
}

.cert-issuer {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.cert-link {
  color: var(--text-muted);
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: auto;
  transition: color var(--transition);
}

.cert-link:hover { color: var(--green); }

.certs-footer {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===========================
   HONORS & LEADERSHIP
=========================== */
.honors-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.honors-col-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: 1.25rem;
}

.leadership-card {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.leadership-icon {
  width: 40px;
  height: 40px;
  background: var(--green-glow);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.leadership-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.2rem;
  line-height: 1.35;
}

.leadership-school {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.5rem;
}

.leadership-card p {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.6;
}

.awards-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.awards-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.4;
}

.awards-list li i {
  color: var(--gold);
  font-size: 0.85rem;
  flex-shrink: 0;
  width: 16px;
  text-align: center;
}

@media (max-width: 700px) {
  .honors-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ===========================
   CONTACT
=========================== */
.section-contact { background: var(--bg-dark); }

.contact-sub {
  color: var(--text-soft);
  font-size: 1rem;
  margin-top: 0.75rem;
}

.contact-links {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text-soft);
  transition: all var(--transition);
  min-width: 190px;
}

.contact-card i {
  color: var(--green);
  font-size: 1.1rem;
}

.contact-card:hover {
  border-color: rgba(0, 200, 150, 0.4);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 200, 150, 0.07);
}

/* ===========================
   FOOTER
=========================== */
.footer {
  padding: 2.25rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

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

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-image {
    order: -1;
    max-width: 280px;
  }

  .image-placeholder { aspect-ratio: 1; }

  .education-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 0 1.25rem; }
  .section { padding: 4rem 0; }

  .nav-links { display: none; }

  .hero-name { font-size: clamp(2.5rem, 12vw, 4rem); }

  .about-stats { grid-template-columns: repeat(3, 1fr); gap: 1rem; }

  .contact-card { min-width: unset; width: 100%; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.4rem;
  }

  .timeline { padding-left: 1rem; }
  .timeline-item { padding-left: 2rem; }
  .timeline-dot { left: -1.6rem; }
}
