/* =============================================
   ESTEBAN J. CHAVES — Personal Website
   Scientific / Seismological Design
   ============================================= */

/* --- Variables --- */
:root {
  --bg-primary:    #070b14;
  --bg-secondary:  #0b1120;
  --bg-card:       #0e1628;
  --accent-cyan:   #00d4ff;
  --accent-cyan-dim: rgba(0, 212, 255, 0.12);
  --accent-green:  #00ff88;
  --text-primary:  #dde6f4;
  --text-secondary:#8899bb;
  --text-muted:    #44567a;
  --border:        rgba(0, 212, 255, 0.18);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --font-body:     'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:     'JetBrains Mono', 'Fira Code', monospace;
  --radius:        14px;
  --radius-sm:     8px;
  --ease:          cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
.mono { font-family: var(--font-mono); }

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: background 0.4s var(--ease), padding 0.3s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(7, 11, 20, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--border-subtle);
  padding: 0.7rem 0;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.8; }
.nav-wave-icon {
  width: 36px;
  height: 14px;
  color: var(--accent-cyan);
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 2.25rem;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s var(--ease);
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background: var(--accent-cyan);
  transition: width 0.25s var(--ease);
}
.nav-links a:hover { color: var(--accent-cyan); }
.nav-links a:hover::after { width: 100%; }
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  background: rgba(0,212,255,0.06);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 100px;
  padding: 0.3rem 0.7rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  margin-left: 1rem;
}
.lang-toggle:hover {
  background: rgba(0,212,255,0.12);
  border-color: rgba(0,212,255,0.4);
}
.lang-opt {
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: 0.05em;
  padding: 0.1rem 0.25rem;
  border-radius: 100px;
  cursor: pointer;
  transition: color 0.2s;
  user-select: none;
}
.lang-opt.lang-active {
  color: var(--accent-cyan);
}
.lang-opt:hover:not(.lang-active) { color: var(--text-secondary); }
.lang-sep {
  font-size: 0.65rem;
  color: var(--text-muted);
  opacity: 0.5;
  pointer-events: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.25s var(--ease);
}

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 15% 55%, rgba(0, 90, 170, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 20%, rgba(0, 212, 255, 0.07) 0%, transparent 45%),
    var(--bg-primary);
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(0,212,255,0.07) 1px, transparent 0);
  background-size: 48px 48px;
  pointer-events: none;
}
.hero-seismogram {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  opacity: 0.22;
  pointer-events: none;
}
.hero-seismogram svg { width: 100%; height: 100%; }

.seismo-line {
  fill: none;
  stroke: var(--accent-cyan);
  stroke-width: 1.5;
  stroke-dasharray: 6000;
  stroke-dashoffset: 6000;
  animation: draw-seismo 3.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.seismo-line-2 {
  stroke: rgba(0, 212, 255, 0.35);
  stroke-width: 1;
  animation-duration: 4.5s;
  animation-delay: 0.4s;
}
@keyframes draw-seismo { to { stroke-dashoffset: 0; } }

.ping-ring  { animation: ring-expand 2.5s ease-out infinite; }
.ping-ring-2 { animation: ring-expand 2.5s ease-out infinite 0.6s; }
@keyframes ring-expand {
  0%   { opacity: 0.8; transform-origin: center; transform: scale(0.6); }
  100% { opacity: 0;   transform: scale(1.5); }
}

.hero-content {
  text-align: center;
  padding: 2rem;
  max-width: 820px;
  z-index: 1;
  animation: hero-in 1s var(--ease) both;
}
@keyframes hero-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.28);
  border-radius: 100px;
  padding: 0.4rem 1.1rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 1.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.pulse-dot {
  width: 7px; height: 7px;
  background: var(--accent-cyan);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  animation: dot-pulse 2s ease-in-out infinite;
}
.pulse-dot.green { background: var(--accent-green); }
.pulse-dot.green { animation: dot-pulse-green 2s ease-in-out infinite; }
@keyframes dot-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(0,212,255,0.5); }
  50%      { box-shadow: 0 0 0 6px rgba(0,212,255,0); }
}
@keyframes dot-pulse-green {
  0%,100% { box-shadow: 0 0 0 0 rgba(0,255,136,0.5); }
  50%      { box-shadow: 0 0 0 6px rgba(0,255,136,0); }
}

.hero-title {
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
  background: linear-gradient(140deg, #ffffff 30%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-degree {
  font-size: 0.42em;
  font-weight: 400;
  vertical-align: super;
  margin-left: 0.2em;
  -webkit-text-fill-color: var(--accent-cyan);
}
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}
.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 2.5rem;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}
.stat { text-align: center; padding: 0 2.5rem; }
.stat-divider {
  width: 1px; height: 40px;
  background: var(--border-subtle);
  flex-shrink: 0;
}
.stat-number {
  display: block;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  line-height: 1;
  margin-bottom: 0.2rem;
}
.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: bounce-y 2.5s ease-in-out infinite;
}
.scroll-arrow {
  width: 16px; height: 16px;
  border-right: 1.5px solid var(--text-muted);
  border-bottom: 1.5px solid var(--text-muted);
  transform: rotate(45deg);
}
@keyframes bounce-y {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(7px); }
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.72rem 1.65rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.25s var(--ease);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-cyan);
  color: #000a14;
}
.btn-primary:hover {
  background: #33ddff;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,212,255,0.35);
}
.btn-outline {
  background: transparent;
  border: 1px solid rgba(0,212,255,0.3);
  color: var(--text-primary);
}
.btn-outline:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,212,255,0.1);
}

/* =============================================
   SECTIONS
   ============================================= */
.section { padding: 6.5rem 0; }
.section-dark { background: var(--bg-secondary); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

.section-header { text-align: center; margin-bottom: 4.5rem; }
.section-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-cyan);
  margin-bottom: 0.65rem;
  letter-spacing: 0.03em;
}
.section-title {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.75;
}

/* =============================================
   ABOUT
   ============================================= */
.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 5rem;
  align-items: start;
}
.photo-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--border-subtle), 0 30px 60px rgba(0,0,0,0.5);
}
.photo-frame img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  filter: grayscale(15%) brightness(0.95);
  transition: filter 0.4s var(--ease);
}
.photo-frame:hover img { filter: grayscale(0%) brightness(1); }
.photo-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.5rem 1.25rem;
  background: linear-gradient(transparent, rgba(7,11,20,0.92));
}
.photo-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0,212,255,0.12);
  border: 1px solid rgba(0,212,255,0.3);
  border-radius: 100px;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.about-lead {
  font-size: 1.18rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.about-text {
  color: var(--text-secondary);
  line-height: 1.82;
  margin-bottom: 1rem;
  font-size: 0.97rem;
}
.research-interests { margin: 2rem 0; }
.research-interests h3 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.tag {
  background: var(--accent-cyan-dim);
  border: 1px solid rgba(0,212,255,0.2);
  color: rgba(0,212,255,0.9);
  padding: 0.28rem 0.72rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  transition: background 0.2s;
}
.tag:hover { background: rgba(0,212,255,0.2); }
.education { display: flex; flex-direction: column; gap: 0.75rem; }
.edu-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}
.edu-icon {
  background: var(--accent-cyan-dim);
  border: 1px solid rgba(0,212,255,0.25);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
.edu-info { display: flex; flex-direction: column; gap: 0.2rem; }
.edu-info strong { font-size: 0.875rem; color: var(--text-primary); }
.edu-info span { font-size: 0.78rem; color: var(--text-muted); }

/* =============================================
   PROJECTS
   ============================================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.project-card:hover {
  border-color: rgba(0,212,255,0.28);
  transform: translateY(-5px);
  box-shadow: 0 24px 50px rgba(0,0,0,0.45), 0 0 40px rgba(0,212,255,0.04);
}
.project-card-featured {
  border-color: rgba(0,212,255,0.22);
  box-shadow: 0 0 40px rgba(0,212,255,0.06);
}

.project-image {
  position: relative;
  height: 190px;
  overflow: hidden;
  background: var(--bg-secondary);
}
.project-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.project-card:hover .project-image img { transform: scale(1.06); }

/* Juan Castro Blanco – illustrated graphic */
.project-image-jcb {
  background: linear-gradient(160deg, #041a0c 0%, #061a10 40%, #040e08 100%);
}
.jcb-graphic, .sj-graphic { width: 100%; height: 100%; padding: 0; }
.terrain-svg, .city-svg { width: 100%; height: 100%; }

/* San José – city grid */
.project-image-sj {
  background: linear-gradient(160deg, #060616 0%, #080822 100%);
}
.project-image-sj::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.05) 1px, transparent 1px);
  background-size: 20px 20px;
}
.sj-graphic { position: relative; z-index: 1; }

.project-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 55%, rgba(7,11,20,0.85) 100%);
  display: flex;
  align-items: flex-end;
  padding: 0.85rem 1rem;
  pointer-events: none;
}
.project-coords { font-size: 0.68rem; color: rgba(255,255,255,0.45); font-family: var(--font-mono); }

.project-featured-badge {
  position: absolute;
  top: 0.85rem; right: 0.85rem;
  background: var(--accent-cyan);
  color: #000a14;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.22rem 0.6rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.project-body { padding: 1.4rem 1.5rem; }
.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7rem;
}
.project-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-green);
}
.project-type { font-size: 0.7rem; color: var(--text-muted); font-family: var(--font-mono); }
.project-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.4rem; }
.project-location {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.775rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}
.project-desc { font-size: 0.855rem; color: var(--text-secondary); line-height: 1.72; margin-bottom: 1.25rem; }
.project-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}
.spec { display: flex; flex-direction: column; gap: 0.2rem; }
.spec-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
}
.spec-value { font-size: 0.76rem; font-weight: 600; color: var(--accent-cyan); font-family: var(--font-mono); }

/* =============================================
   PUBLICATIONS
   ============================================= */
.publications-list { display: flex; flex-direction: column; }
.pub-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.5rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.2s;
}
.pub-item:hover { background: rgba(0,212,255,0.018); }
.pub-highlight {
  padding: 1.4rem 1.4rem;
  background: rgba(0,212,255,0.04);
  border-left: 2.5px solid var(--accent-cyan);
  border-bottom: 1px solid var(--border-subtle);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.pub-year {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  padding-top: 0.3rem;
  line-height: 1;
}
.pub-content { display: flex; flex-direction: column; gap: 0.3rem; }
.journal-badge {
  display: inline-block;
  padding: 0.18rem 0.6rem;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  align-self: flex-start;
  margin-bottom: 0.1rem;
}
.journal-science { background: rgba(220,60,60,0.15); color: #ff7070; border: 1px solid rgba(220,60,60,0.3); }
.journal-sa      { background: rgba(80,190,80,0.12);  color: #80dd80; border: 1px solid rgba(80,190,80,0.3); }
.journal-tsr     { background: rgba(0,180,255,0.12);  color: #55c8ff; border: 1px solid rgba(0,180,255,0.3); }
.journal-jgr     { background: rgba(180,90,240,0.12); color: #cc88ff; border: 1px solid rgba(180,90,240,0.3); }
.journal-agu     { background: rgba(255,190,0,0.12);  color: #ffcc44; border: 1px solid rgba(255,190,0,0.3); }
.journal-cg      { background: rgba(0,210,150,0.12);  color: #44ddaa; border: 1px solid rgba(0,210,150,0.3); }
.pub-title { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.65; }
.pub-title strong { color: var(--text-primary); }
.pub-title em { font-style: italic; }
.pub-details { font-size: 0.775rem; color: var(--text-muted); font-family: var(--font-mono); }
.pub-doi { color: var(--accent-cyan); transition: opacity 0.2s; }
.pub-doi:hover { opacity: 0.65; }
.pub-cta { text-align: center; margin-top: 2.5rem; }

/* =============================================
   FORENSIC & NUCLEAR SEISMOLOGY
   ============================================= */
.forensic-subsection { margin-bottom: 4.5rem; }
.forensic-subsection:last-child { margin-bottom: 0; }

.subsection-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}
.subsection-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.subsection-icon svg { width: 24px; height: 24px; }
.subsection-icon-nuclear {
  background: rgba(255, 100, 60, 0.12);
  border: 1px solid rgba(255, 100, 60, 0.3);
  color: #ff7a50;
}
.subsection-icon-forensic {
  background: rgba(140, 100, 255, 0.12);
  border: 1px solid rgba(140, 100, 255, 0.3);
  color: #b080ff;
}
.subsection-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}
.subsection-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 700px;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.research-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.research-card:hover {
  border-color: rgba(0,212,255,0.25);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.research-card-featured {
  border-color: rgba(220, 60, 60, 0.2);
  box-shadow: 0 0 30px rgba(220,60,60,0.05);
}
.research-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.research-country {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.research-flag { font-size: 1rem; line-height: 1; }
.research-title {
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}
.research-desc {
  font-size: 0.845rem;
  color: var(--text-secondary);
  line-height: 1.75;
  flex: 1;
}
.research-desc strong { color: var(--text-primary); font-weight: 600; }
.research-desc em { font-style: italic; }
.research-significance {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.65;
  border-left: 2px solid rgba(0,212,255,0.3);
  padding-left: 0.75rem;
  font-style: italic;
}
.research-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  transition: opacity 0.2s;
  margin-top: auto;
  padding-top: 0.25rem;
}
.research-link:hover { opacity: 0.65; }

/* =============================================
   AWARDS
   ============================================= */
.awards-section { padding: 4rem 0; }
.awards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.award-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: border-color 0.25s, transform 0.25s;
}
.award-item:hover { border-color: var(--border); transform: translateY(-2px); }
.award-icon-wrap {
  width: 36px; height: 36px;
  background: var(--accent-cyan-dim);
  border: 1px solid rgba(0,212,255,0.22);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}
.award-icon-wrap svg { width: 18px; height: 18px; }
.award-content { display: flex; flex-direction: column; gap: 0.2rem; }
.award-content strong { font-size: 0.85rem; color: var(--text-primary); line-height: 1.35; }
.award-content span  { font-size: 0.75rem; color: var(--text-muted); }

/* =============================================
   CONTACT
   ============================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.contact-info { display: flex; flex-direction: column; gap: 2rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-icon {
  width: 42px; height: 42px;
  background: var(--accent-cyan-dim);
  border: 1px solid rgba(0,212,255,0.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}
.contact-icon svg { width: 18px; height: 18px; }
.contact-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.contact-value { font-size: 0.925rem; color: var(--text-primary); line-height: 1.55; }
a.contact-value:hover { color: var(--accent-cyan); }

.cv-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
}
.cv-icon {
  width: 62px; height: 62px;
  background: var(--accent-cyan-dim);
  border: 1px solid rgba(0,212,255,0.28);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  margin: 0 auto 1.25rem;
}
.cv-icon svg { width: 28px; height: 28px; }
.cv-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.7rem; }
.cv-card p  { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.65; margin-bottom: 1.5rem; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 0 0 2rem;
  overflow: hidden;
}
.footer-seismo { height: 50px; opacity: 0.4; }
.footer-seismo svg { width: 100%; height: 100%; }
.footer-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding-top: 1.5rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1rem;
}
.footer-text { font-size: 0.85rem; color: var(--text-secondary); }
.footer-copy { font-size: 0.72rem; color: var(--text-muted); }

/* =============================================
   FADE-IN ANIMATION
   ============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* =============================================
   RESPONSIVE — Tablet
   ============================================= */
@media (max-width: 1100px) {
  .projects-grid  { grid-template-columns: 1fr; max-width: 580px; margin: 0 auto; }
  .research-grid  { grid-template-columns: 1fr; }
  .awards-grid    { grid-template-columns: repeat(2, 1fr); }
  .about-grid    { grid-template-columns: 1fr; gap: 3rem; }
  .about-photo   { max-width: 340px; margin: 0 auto; }
}

/* =============================================
   RESPONSIVE — Mobile
   ============================================= */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(7,11,20,0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 0.5rem 2rem 1.25rem;
    gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--border-subtle); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a { display: block; padding: 0.9rem 0; }
  .nav-links a::after { display: none; }
  .nav-toggle { display: flex; }
  .navbar { position: relative; }

  .hero { min-height: auto; padding: 6rem 0 4rem; }
  .hero-stats { gap: 0; }
  .stat { padding: 0 1.5rem; }
  .stat-divider { height: 30px; }

  .contact-grid  { grid-template-columns: 1fr; gap: 3rem; }
  .awards-grid   { grid-template-columns: 1fr; }
  .pub-item      { grid-template-columns: 46px 1fr; gap: 1rem; }
  .project-specs { grid-template-columns: repeat(2, 1fr); }
  .section       { padding: 4.5rem 0; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
  .hero-badge { font-size: 0.7rem; }
  .stat { padding: 0 1rem; }
  .stat-divider { display: none; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
}
