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

:root {
  --bg:        #f5f4f0;
  --dark:      #0f1b2d;
  --accent:    #2a9d8f;
  --muted:     #5a6a7a;
  --border:    #ddd9d2;
  --white:     #ffffff;
  --card-bg:   #ffffff;
  --radius:    10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--dark);
  font-size: 16px;
  line-height: 1.7;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ====================================================
   Typography
   ==================================================== */
h1, h2, h3 { line-height: 1.25; }

.playfair { font-family: 'Playfair Display', serif; }

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1.5rem;
}

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

section { padding: 5rem 0; }

/* ====================================================
   Navigation
   ==================================================== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-name {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark);
}

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

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--dark); text-decoration: none; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ====================================================
   Hero
   ==================================================== */
#hero {
  background: var(--dark);
  color: var(--white);
  padding: 6rem 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  align-items: center;
  gap: 4rem;
}

.hero-text .eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hero-title {
  font-size: 1.05rem;
  color: #a0b4c8;
  margin-bottom: 1.5rem;
}

.hero-statement {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #d4e0ec;
  max-width: 540px;
  margin-bottom: 2.5rem;
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.4rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover { background: #238a7d; text-decoration: none; }

.btn-outline {
  border: 1.5px solid #a0b4c8;
  color: #d4e0ec;
}
.btn-outline:hover { border-color: var(--white); color: var(--white); text-decoration: none; }

.hero-photo-wrap {
  display: flex;
  justify-content: center;
}

.hero-photo {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 4px solid var(--accent);
  box-shadow: 0 8px 40px rgba(0,0,0,0.35);
}

/* ====================================================
   About
   ==================================================== */
#about { background: var(--white); }

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

.about-text p { color: var(--muted); margin-bottom: 1rem; }
.about-text p:last-child { margin-bottom: 0; }

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  background: var(--bg);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
}

.highlight-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.highlight-item strong {
  display: block;
  font-size: 0.9rem;
  color: var(--dark);
  margin-bottom: 0.15rem;
}

.highlight-item span {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ====================================================
   What I Do — pillar cards
   ==================================================== */
#what-i-do { background: var(--bg); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 6px 24px rgba(15,27,45,0.1);
  transform: translateY(-2px);
}

.card-icon {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  display: block;
  line-height: 1;
}

.card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.6rem;
}

.card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  background: #e8f5f3;
  color: #1d7a6e;
  white-space: nowrap;
}

/* ====================================================
   Skills strip
   ==================================================== */
#skills {
  background: var(--dark);
  padding: 3.5rem 0;
}

#skills .section-label { color: var(--accent); }
#skills .section-title { color: var(--white); font-size: 1.3rem; margin-bottom: 2rem; }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.skill-group h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a0b4c8;
  margin-bottom: 0.6rem;
}

.skill-group .pill-row .pill {
  background: rgba(42,157,143,0.2);
  color: #6fddd2;
}

/* ====================================================
   Selected Science
   ==================================================== */
#science { background: var(--white); }

.science-intro {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 680px;
  margin-bottom: 3rem;
}

.pub-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.pub {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.pub:last-child { border-bottom: none; padding-bottom: 0; }

.pub--full { grid-template-columns: 1fr; }

.science-sublabel {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.5rem;
}
.science-sublabel + .pub-list,
.science-sublabel + .pub { margin-top: 0; }
.pub--full + .science-sublabel { margin-top: 3rem; }

.pub-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.pub-journal {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.pub h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.6rem;
  line-height: 1.45;
}

.pub-bridge {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  padding: 0.65rem 0.9rem;
  background: #f0faf8;
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
}

.pub-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.pub-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.pub-links a {
  font-size: 0.8rem;
  font-weight: 600;
}

.science-footer {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ====================================================
   Background / Timeline
   ==================================================== */
#background { background: var(--bg); }

.bg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.timeline {
  position: relative;
  padding-left: 1.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

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

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.625rem;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}

.timeline-year {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.timeline-item h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
}

.timeline-item p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.awards-block h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.award-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.85rem;
}

.award-item::before {
  content: '—';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.award-item span {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ====================================================
   Pelourinho divider
   ==================================================== */
.pelourinho-band {
  position: relative;
  height: 240px;
  background-image: url('images/others/pelourinho.jpeg');
  background-size: cover;
  background-position: center 60%;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pelourinho-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15,27,45,0.52);
}

.pelourinho-text {
  position: relative;
  z-index: 1;
  text-align: center;
}

.pelourinho-text p {
  font-size: 1.05rem;
  font-style: italic;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.04em;
}

/* ====================================================
   Contact / Footer
   ==================================================== */
#contact {
  background: var(--dark);
  padding: 4rem 0;
}

.contact-inner {
  text-align: center;
}

.contact-inner .section-label { color: var(--accent); }

.contact-inner h2 {
  font-size: 1.8rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.contact-inner p {
  color: #a0b4c8;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.3rem;
  border-radius: 6px;
  border: 1.5px solid #2a3f55;
  color: #d4e0ec;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s;
}

.contact-link:hover {
  border-color: var(--accent);
  color: var(--white);
  text-decoration: none;
}

.contact-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.cv-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 2.5rem;
}

.cv-link:hover { color: #6fddd2; text-decoration: none; }

.footer-bottom {
  border-top: 1px solid #1e3248;
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: #4a6070;
}

/* ====================================================
   Mobile responsive
   ==================================================== */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-photo-wrap { order: -1; }

  .hero-statement { margin: 0 auto 2.5rem; text-align: left; }

  .hero-ctas { justify-content: center; }

  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }

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

  .bg-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem 1.5rem;
    gap: 1rem;
    z-index: 99;
  }
  .nav-hamburger { display: flex; }
  nav { position: relative; }

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

  .pub { grid-template-columns: 1fr; }
  .pub-img { height: 180px; }

  section { padding: 3.5rem 0; }

  .pelourinho-band { background-attachment: scroll; }
}
