/* Paula R. T. Coelho — Academic Page
   Author: Claude Sonnet 4.6
   Aesthetic: Refined academic elegance with celestial touches
   Typography: Cormorant Garamond (display) + Source Sans 3 (body) */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Source+Sans+3:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

:root {
  --bg: #fafbfc;
  --bg-soft: #f4f5f7;
  --bg-card: #eef1f4;
  --bg-deep: #1a2a3a;

  --accent: #2a7d94;
  --accent-dark: #1d5f70;
  --accent-light: #e4f0f3;
  --accent-glow: rgba(42, 125, 148, 0.15);

  --celestial: #1e3a5f;
  --celestial-light: #2d4a6f;
  --star: #f0e6d3;

  --text: #2c3e50;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --text-dim: #a0aec0;

  --border: #dce1e6;
  --border-light: #e8ecef;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-y: scroll;
}

body {
  font: 400 1rem/1.8 var(--font-body);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* --- Layout --- */

.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border-light);
  animation: fadeInUp 0.6s ease-out both;
}

section:last-of-type {
  border-bottom: none;
}

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

/* Staggered section animations */
section:nth-child(1) { animation-delay: 0.1s; }
section:nth-child(2) { animation-delay: 0.15s; }
section:nth-child(3) { animation-delay: 0.2s; }
section:nth-child(4) { animation-delay: 0.25s; }
section:nth-child(5) { animation-delay: 0.3s; }
section:nth-child(6) { animation-delay: 0.35s; }

/* --- Header with subtle celestial gradient --- */

header {
  padding: 4rem 0 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(30, 58, 95, 0.03) 0%, transparent 70%),
    var(--bg);
  animation: fadeInUp 0.5s ease-out both;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.4;
}

.header-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
  gap: 2rem;
}

.photo-placeholder {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-soft));
  border: 3px solid var(--bg);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.08),
    0 0 0 1px var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-placeholder:hover {
  transform: scale(1.02);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.1),
    0 0 0 1px var(--accent);
}

.photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% center;
}

.header-text h1 {
  font: 400 2.4rem/1.15 var(--font-display);
  letter-spacing: 0.5px;
  color: var(--text);
}

.header-text .subtitle {
  font: 400 0.95rem/1.5 var(--font-body);
  color: var(--accent);
  margin-top: 0.4rem;
  letter-spacing: 0.3px;
}

.header-text .institution {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.header-text .institution a {
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

.header-text .institution a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* --- Nav --- */

nav {
  margin-top: 2rem;
  padding: 1.5rem 0 1.5rem;
  border-top: 1px solid var(--border-light);
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 2rem;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.2px;
  transition: color 0.2s ease;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.2s ease;
}

nav a:hover {
  color: var(--accent);
}

nav a:hover::after {
  width: 100%;
}

nav a.external::after {
  display: none;
}

nav a.external {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

nav a.external span.arrow {
  font-size: 0.7em;
  color: var(--text-dim);
  transition: transform 0.2s ease;
}

nav a.external:hover span.arrow {
  transform: translate(2px, -2px);
}

/* --- Section headings --- */

section h2 {
  font: 700 1rem/1 var(--font-body);
  letter-spacing: 0.8px;
  color: var(--accent);
  margin-bottom: 2rem;
  text-transform: uppercase;
}

section h2 .dotted-line {
  display: none;
}

/* --- Research --- */

.research-intro {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
}

.research-intro p + p {
  margin-top: 1.2rem;
}


/* --- Four pillars --- */

.pillars {
  margin: 3rem 0 2.5rem;
  position: relative;
}

.pillar-step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0 1.6rem;
  align-items: start;
}

.pillar-icon-box {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-light), rgba(42, 125, 148, 0.08));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--accent);
  grid-row: 1;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px var(--accent-glow);
  position: relative;
}

.pillar-num {
  display: none;
}

.pillar-step:hover .pillar-icon-box {
  transform: scale(1.04);
  box-shadow: 0 6px 20px var(--accent-glow);
  background: linear-gradient(135deg, rgba(42, 125, 148, 0.18), rgba(42, 125, 148, 0.06));
}

.pillar-icon-box svg {
  width: 26px;
  height: 26px;
}

.pillar-body {
  padding-top: 0.15rem;
}

.pillar-step h3 {
  font: 600 0.95rem/1.3 var(--font-body);
  color: var(--accent-dark);
  letter-spacing: 0.1px;
}

.pillar-step p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-top: 0.35rem;
}

.pillar-connector {
  width: 72px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  opacity: 0.35;
  margin: 0;
}

.pillar-connector svg {
  width: 24px;
  height: 40px;
}

/* --- Research highlights --- */

.research-highlights {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}

.research-highlights p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  padding-left: 1rem;
  border-left: 2px solid var(--border);
  transition: border-color 0.2s ease;
}

.research-highlights p:hover {
  border-left-color: var(--accent);
}

.research-highlights p + p {
  margin-top: 1rem;
}

.research-highlights strong {
  display: block;
  font: 600 0.78rem/1.4 var(--font-body);
  color: var(--accent-dark);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

/* --- Pleiad --- */

.pleiad-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.8rem;
}

.pleiad-logo {
  width: 200px;
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow:
    0 10px 40px rgba(30, 58, 95, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pleiad-logo:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 16px 50px rgba(30, 58, 95, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.15);
}

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

.pleiad-text {
  max-width: 620px;
}

.pleiad-text .group-name {
  font: 500 1.3rem/1.2 var(--font-display);
  color: var(--text);
  letter-spacing: 0.5px;
}

.pleiad-text p {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* --- Teaching --- */

.teaching-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.teaching-content p + p {
  margin-top: 1.1rem;
}

.topics {
  margin: 1.2rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.topics span {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.topics span:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

/* --- Mentoring --- */

.mentoring-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* --- Values --- */

#values {
  background:
    radial-gradient(ellipse 100% 80% at 50% 100%, rgba(30, 58, 95, 0.05) 0%, transparent 60%),
    var(--bg-soft);
  margin-left: -2.5rem;
  margin-right: -2.5rem;
  padding: 3.5rem 2.5rem;
  border-bottom: none;
  position: relative;
}

#values::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

#values h2 {
  font: 600 1.15rem/1.2 var(--font-display);
  text-transform: none;
  letter-spacing: 0.3px;
  color: var(--accent);
}

.values {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.6rem;
  margin-top: 1rem;
}

.value-word {
  font: 400 1.05rem/1.4 var(--font-display);
  color: var(--text);
  letter-spacing: 0.3px;
}

.value-dot {
  color: var(--accent);
  font-size: 1rem;
  line-height: 1;
  user-select: none;
}

/* --- Links / Footer --- */

.links-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.5rem;
  margin-bottom: 2rem;
}

.links-grid a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
}

.link-sep {
  color: var(--border);
  font-size: 1rem;
  user-select: none;
  align-self: center;
}

.links-grid a:hover {
  color: var(--accent);
}

.links-grid a .link-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}

.links-grid a .link-icon svg,
.links-grid a .link-icon img {
  width: 100%;
  height: 100%;
}

.links-grid a .link-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.links-grid a .link-label {
  display: none;
}

.links-grid a .link-value {
  font-size: 0.9rem;
  color: inherit;
  font-weight: 500;
}

footer {
  padding: 3rem 0 4rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
  border-top: 1px solid var(--border-light);
  text-align: center;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.4;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.footer-name {
  font: 500 1.1rem/1.3 var(--font-display);
  color: var(--text);
  margin-bottom: 0.2rem;
}

.footer-affiliation {
  color: var(--text-secondary);
}

.footer-address {
  font-size: 0.82rem;
}

.footer-contact-line {
  margin-top: 0.3rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  font-size: 0.85rem;
}

.footer-contact-line span {
  color: var(--text-muted);
}

footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  border-bottom: 1px solid transparent;
}

footer a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.email-protect {
  unicode-bidi: bidi-override;
  direction: rtl;
  cursor: pointer;
}

.email-protect:hover::after {
  content: ' (click to copy)';
  direction: ltr;
  unicode-bidi: normal;
  font-size: 0.75rem;
  color: var(--accent);
}

/* --- Responsive --- */

@media screen and (max-width: 600px) {
  .container {
    padding: 0 1.5rem;
  }

  header {
    padding: 3rem 0 1.5rem;
  }

  .header-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.2rem;
  }

  .photo-placeholder {
    width: 120px;
    height: 120px;
  }

  .header-text h1 {
    font-size: 1.8rem;
  }

  nav ul {
    gap: 0.3rem 1.2rem;
    justify-content: center;
  }

  section {
    padding: 2.5rem 0;
  }

  .pillar-step {
    grid-template-columns: 58px 1fr;
    gap: 0 1.2rem;
  }

  .pillar-icon-box {
    width: 58px;
    height: 58px;
  }

  .pillar-connector {
    width: 58px;
  }

  .pleiad-logo {
    width: 160px;
    height: 160px;
  }

  #values {
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

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

  .footer-contact {
    flex-direction: column;
    gap: 1.5rem;
  }
}

/* --- Print styles --- */

@media print {
  body {
    font-size: 11pt;
  }

  header::before,
  header::after,
  footer::after,
  .pillar-connector {
    display: none;
  }

  section {
    page-break-inside: avoid;
  }
}
