/* ============================================================
   Hannah Yarbrough — Marine Biologist Portfolio
   Deep Ocean Theme
   ============================================================ */

/* === CSS CUSTOM PROPERTIES === */
:root {
  --deep-ocean: #030d1a;
  --ocean-dark: #071829;
  --ocean-mid: #0d2137;
  --ocean-light: #1a3a5c;
  --ocean-card: rgba(10, 30, 55, 0.7);

  --cyan: #00d4ff;
  --cyan-dim: rgba(0, 212, 255, 0.12);
  --cyan-glow: rgba(0, 212, 255, 0.25);
  --teal: #00c9a7;
  --teal-dim: rgba(0, 201, 167, 0.12);
  --coral: #ff7675;
  --coral-dim: rgba(255, 118, 117, 0.12);
  --sand: #d4c9a8;

  --text-primary: #e8f4f8;
  --text-secondary: #8fa8c0;
  --text-muted: #4a6278;
  --heading: #ffffff;

  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --cyan-border: rgba(0, 212, 255, 0.2);

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --section-pad: 110px 0;
  --container: 1200px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--deep-ocean);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--teal);
}

/* === NOISE TEXTURE OVERLAY === */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* === UTILITY === */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--heading);
  line-height: 1.15;
  margin-bottom: 20px;
}

.section-title em {
  font-style: italic;
  color: var(--cyan);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.8;
}

/* === SCROLL ANIMATIONS === */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* === NAVIGATION === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: background var(--transition), padding var(--transition), backdrop-filter var(--transition);
}

.nav.scrolled {
  background: rgba(3, 13, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 12px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--heading);
  letter-spacing: 0.02em;
}

.nav-logo span {
  color: var(--cyan);
}

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

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--cyan);
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--cyan);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cyan) !important;
  border: 1px solid var(--cyan-border);
  padding: 8px 20px;
  border-radius: 50px;
  transition: background var(--transition), color var(--transition) !important;
}

.nav-cta:hover {
  background: var(--cyan);
  color: var(--deep-ocean) !important;
}

.nav-cta::after {
  display: none !important;
}

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

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === HERO === */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../../images/1645039410259.jpeg');
  background-size: cover;
  background-position: center 40%;
  transform: scale(1.05);
  transition: transform 10s ease;
}

.hero-bg.loaded {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(3, 13, 26, 0.6) 0%,
    rgba(3, 13, 26, 0.4) 40%,
    rgba(3, 13, 26, 0.75) 80%,
    var(--deep-ocean) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 900px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 24px;
  animation: fadeUp 0.8s ease 0.2s both;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--cyan);
  opacity: 0.6;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 700;
  color: var(--heading);
  line-height: 1.0;
  margin-bottom: 28px;
  animation: fadeUp 0.8s ease 0.4s both;
}

.hero-title em {
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.6);
  display: block;
}

.hero-typing-wrap {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--text-secondary);
  margin-bottom: 48px;
  animation: fadeUp 0.8s ease 0.6s both;
  min-height: 2em;
}

.hero-typing-wrap .typing-prefix {
  color: var(--text-secondary);
}

#typing-text {
  color: var(--cyan);
  font-weight: 500;
}

.cursor-blink {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--cyan);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 0.8s step-end infinite;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp 0.8s ease 0.8s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.03em;
}

.btn-primary {
  background: var(--cyan);
  color: var(--deep-ocean);
}

.btn-primary:hover {
  background: var(--teal);
  color: var(--deep-ocean);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 212, 255, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  border-color: var(--cyan-border);
  color: var(--cyan);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeIn 1s ease 1.5s both;
}

.hero-scroll span {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(180deg, var(--cyan), transparent);
  animation: scrollPulse 2s ease infinite;
}

/* === WAVE DIVIDER === */
.wave-divider {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-top: -1px;
}

.wave-divider svg {
  display: block;
  width: 100%;
}

/* === ABOUT === */
.about {
  padding: var(--section-pad);
  background: var(--deep-ocean);
}

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

.about-photos {
  position: relative;
}

.about-photos-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.about-photo-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  aspect-ratio: 3/4;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.about-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform var(--transition-slow);
}

.about-photo-item:hover img {
  transform: scale(1.04);
}

.about-photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(3, 13, 26, 0.88));
  padding: 28px 12px 10px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 500;
}

.about-badge {
  display: inline-block;
  background: var(--cyan);
  color: var(--deep-ocean);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 50px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.35);
  margin-top: 14px;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-text p {
  color: var(--text-secondary);
  line-height: 1.85;
  font-size: 1.02rem;
}

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

/* Bento stats grid */
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.stat-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 20px 16px;
  text-align: center;
  transition: border-color var(--transition), background var(--transition);
}

.stat-card:hover {
  border-color: var(--cyan-border);
  background: var(--cyan-dim);
}

.stat-card .stat-num {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-card .stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* === SECTION QUOTE (origin story) === */
.section-quote {
  text-align: center;
  margin-bottom: 72px;
  padding: 0 20px;
  position: relative;
}

.section-quote-mark {
  font-family: var(--font-heading);
  font-size: 6rem;
  line-height: 0.5;
  color: var(--cyan-glow);
  margin-bottom: 16px;
  display: block;
  user-select: none;
}

.section-quote blockquote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  color: var(--text-secondary);
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.65;
}

/* === LINKEDIN ICON NAV === */
.nav-linkedin {
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav-linkedin:hover {
  color: var(--cyan);
}

.nav-linkedin svg {
  width: 18px;
  height: 18px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.contact-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-style: italic;
  color: var(--heading);
  border: 1px solid var(--glass-border);
  padding: 20px 36px;
  border-radius: var(--radius);
  transition: all var(--transition);
  backdrop-filter: blur(10px);
  background: var(--glass-bg);
  min-width: min(480px, 90vw);
  text-align: center;
}

.contact-bubble:hover {
  border-color: var(--cyan-border);
  color: var(--cyan);
  background: var(--cyan-dim);
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(0, 212, 255, 0.12);
}

.contact-bubble--linkedin:hover {
  border-color: rgba(0, 119, 181, 0.35);
  color: #4fa8d5;
  background: rgba(0, 119, 181, 0.08);
  box-shadow: 0 20px 50px rgba(0, 119, 181, 0.1);
}

/* === THESIS SPOTLIGHT === */
.thesis-spotlight {
  margin-top: 48px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.06), rgba(0, 201, 167, 0.04));
  border: 1px solid var(--cyan-border);
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  position: relative;
  overflow: hidden;
}

.thesis-spotlight::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.thesis-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--deep-ocean);
  background: var(--cyan);
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.thesis-spotlight h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  color: var(--heading);
  line-height: 1.3;
  margin-bottom: 18px;
}

.thesis-spotlight h3 em {
  font-style: italic;
  color: var(--cyan);
}

.thesis-spotlight p {
  color: var(--text-secondary);
  line-height: 1.85;
  font-size: 0.98rem;
  max-width: 860px;
  margin-bottom: 24px;
}

.thesis-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.thesis-meta span {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.thesis-meta span::before {
  content: '·';
  margin-right: 8px;
  color: var(--cyan);
}

.thesis-meta span:first-child::before {
  content: none;
}

/* === USFWS PERMIT NOTE === */
.permit-note {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
  letter-spacing: 0.04em;
  font-style: italic;
}

/* === RESEARCH === */
.research {
  padding: var(--section-pad);
  background: linear-gradient(180deg, var(--deep-ocean) 0%, var(--ocean-dark) 100%);
  position: relative;
}

.research-header {
  text-align: center;
  margin-bottom: 64px;
}

.research-header .section-subtitle {
  margin: 0 auto;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.research-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.research-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--card-accent, var(--cyan)), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.research-card:hover {
  border-color: var(--cyan-border);
  background: var(--cyan-dim);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.research-card:hover::before {
  opacity: 1;
}

.research-card.accent-teal:hover {
  border-color: rgba(0, 201, 167, 0.25);
  background: var(--teal-dim);
}
.research-card.accent-teal::before,
.research-card.accent-teal .research-icon {
  --card-accent: var(--teal);
}
.research-card.accent-teal .research-icon { color: var(--teal); }

.research-card.accent-coral:hover {
  border-color: rgba(255, 118, 117, 0.25);
  background: var(--coral-dim);
}
.research-card.accent-coral .research-icon { color: var(--coral); }

.research-icon {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: var(--cyan);
  display: block;
}

.research-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--heading);
  margin-bottom: 12px;
}

.research-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* === EXPERIENCE === */
.experience {
  padding: var(--section-pad);
  background: var(--ocean-dark);
}

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

.experience-sticky {
  position: sticky;
  top: 100px;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(180deg, var(--cyan), var(--teal), transparent);
  opacity: 0.3;
}

.timeline-item {
  display: flex;
  gap: 24px;
  padding-bottom: 40px;
  position: relative;
}

.timeline-dot {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--cyan-border);
  background: var(--ocean-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  z-index: 1;
  transition: border-color var(--transition), background var(--transition);
}

.timeline-item:hover .timeline-dot {
  border-color: var(--cyan);
  background: var(--cyan-dim);
}

.timeline-body {
  flex: 1;
  padding-top: 8px;
}

.timeline-period {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 6px;
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--heading);
  margin-bottom: 4px;
}

.timeline-org {
  font-size: 0.88rem;
  color: var(--teal);
  margin-bottom: 12px;
  font-weight: 500;
}

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

.timeline-bullets li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding-left: 16px;
  position: relative;
  line-height: 1.6;
}

.timeline-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-size: 0.7rem;
  top: 3px;
}

/* === AMOS SECTION === */
.amos {
  padding: var(--section-pad);
  background: var(--deep-ocean);
  position: relative;
  overflow: hidden;
}

.amos::before {
  content: '';
  position: absolute;
  top: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 201, 167, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.amos::after {
  content: '';
  position: absolute;
  bottom: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.amos-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.amos-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.amos-photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.amos-photo:first-child {
  grid-row: span 2;
}

.amos-photo:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.amos-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.amos-photo:first-child {
  aspect-ratio: auto;
}

.amos-photo:not(:first-child) {
  aspect-ratio: 4/3;
}

.amos-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.amos-highlight {
  background: var(--teal-dim);
  border: 1px solid rgba(0, 201, 167, 0.2);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  font-size: 0.92rem;
  color: var(--text-primary);
  line-height: 1.6;
}

.amos-highlight strong {
  color: var(--teal);
}

.amos-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--teal);
  border: 1px solid rgba(0, 201, 167, 0.25);
  padding: 12px 24px;
  border-radius: 50px;
  transition: all var(--transition);
  align-self: flex-start;
}

.amos-link:hover {
  background: var(--teal);
  color: var(--deep-ocean);
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 201, 167, 0.3);
}

.amos-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.amos-link:hover svg {
  transform: translateX(3px);
}

/* === GALLERY === */
.gallery {
  padding: var(--section-pad);
  background: var(--ocean-dark);
}

.gallery-header {
  text-align: center;
  margin-bottom: 56px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto;
  gap: 12px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid var(--glass-border);
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
  min-height: 200px;
}

.gallery-item:hover img {
  transform: scale(1.07);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(3, 13, 26, 0.85) 100%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 20px;
  gap: 4px;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-caption {
  font-size: 0.82rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(3, 13, 26, 0.95);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  backdrop-filter: blur(10px);
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 2rem;
  color: var(--text-secondary);
  cursor: pointer;
  background: none;
  border: none;
  transition: color var(--transition);
  line-height: 1;
}

.lightbox-close:hover { color: var(--heading); }

/* === PUBLICATIONS === */
.publications {
  padding: var(--section-pad);
  background: var(--deep-ocean);
}

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

.publications-sticky {
  position: sticky;
  top: 100px;
}

.pub-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pub-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
  position: relative;
}

.pub-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--cyan);
  border-radius: 3px 0 0 3px;
  opacity: 0;
  transition: opacity var(--transition);
}

.pub-card:hover {
  border-color: var(--cyan-border);
  background: var(--cyan-dim);
  transform: translateX(6px);
}

.pub-card:hover::before {
  opacity: 1;
}

.pub-year {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 8px;
}

.pub-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--heading);
  line-height: 1.45;
  margin-bottom: 8px;
}

.pub-authors {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.pub-authors strong {
  color: var(--teal);
  font-weight: 600;
}

.pub-journal {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 12px;
}

.pub-doi {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--cyan);
  font-weight: 500;
  transition: color var(--transition);
}

.pub-doi:hover {
  color: var(--teal);
}

/* === CERTIFICATIONS === */
.certifications {
  padding: var(--section-pad);
  background: var(--ocean-dark);
}

.certs-header {
  text-align: center;
  margin-bottom: 60px;
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cert-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: all var(--transition);
}

.cert-card:hover {
  border-color: var(--cyan-border);
  background: var(--cyan-dim);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.cert-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  display: block;
}

.cert-org {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 8px;
}

.cert-name {
  font-size: 0.88rem;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.4;
}

/* === LEADERSHIP === */
.leadership {
  padding: var(--section-pad);
  background: var(--deep-ocean);
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.leadership-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
}

.leadership-card:hover {
  border-color: var(--cyan-border);
  background: var(--cyan-dim);
  transform: translateY(-4px);
}

.leadership-card .l-icon {
  font-size: 1.8rem;
  margin-bottom: 16px;
  display: block;
}

.leadership-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--heading);
  margin-bottom: 6px;
}

.leadership-card .l-org {
  font-size: 0.82rem;
  color: var(--teal);
  font-weight: 500;
  margin-bottom: 12px;
}

.leadership-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* === NEWS FEED === */
.news {
  padding: var(--section-pad);
  background: linear-gradient(180deg, var(--ocean-dark) 0%, var(--deep-ocean) 100%);
}

.news-header {
  text-align: center;
  margin-bottom: 60px;
}

.news-header .section-subtitle,
.gallery-header .section-subtitle {
  margin: 0 auto;
}

.news-sources {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.news-source-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 4px 12px;
  border-radius: 50px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  min-height: 300px;
}

.news-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all var(--transition);
  text-decoration: none;
}

.news-card:hover {
  border-color: var(--cyan-border);
  background: var(--cyan-dim);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.news-card-source {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
}

.news-card-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--heading);
  line-height: 1.45;
  flex: 1;
}

.news-card-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.news-card-arrow {
  align-self: flex-start;
  color: var(--cyan);
  opacity: 0;
  transform: translateX(-4px);
  transition: all var(--transition);
  font-size: 0.85rem;
}

.news-card:hover .news-card-arrow {
  opacity: 1;
  transform: translateX(0);
}

.news-loading {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 60px;
  color: var(--text-muted);
}

.news-spinner {
  width: 32px;
  height: 32px;
  border: 2px solid var(--glass-border);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* === CONTACT === */
.contact {
  padding: var(--section-pad);
  background: var(--deep-ocean);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.04) 0%, transparent 65%);
  pointer-events: none;
}

.contact-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.contact-inner .section-subtitle {
  margin: 0 auto 40px;
}

/* .contact-email replaced by .contact-bubble */

/* === FOOTER === */
.footer {
  background: var(--ocean-dark);
  border-top: 1px solid var(--glass-border);
  padding: 40px 0;
}

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

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--heading);
}

.footer-logo span {
  color: var(--cyan);
}

.footer-nav {
  display: flex;
  gap: 28px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-nav a:hover { color: var(--cyan); }

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
  width: 100%;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
  margin-top: 20px;
}

/* === KEYFRAMES === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes scrollPulse {
  0% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.7); }
  100% { opacity: 1; transform: scaleY(1); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .about-grid,
  .amos-layout,
  .publications-layout,
  .experience-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-photos {
    max-width: 560px;
    margin: 0 auto;
  }

  .thesis-spotlight {
    padding: 32px 28px;
  }

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

  .certs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .experience-sticky,
  .publications-sticky {
    position: static;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (max-width: 768px) {
  :root {
    --section-pad: 72px 0;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(3, 13, 26, 0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1.1rem;
  }

  .nav-hamburger {
    display: flex;
    z-index: 1001;
  }

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

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item.wide {
    grid-column: span 1;
  }

  .gallery-item.tall {
    grid-row: span 1;
  }

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

  .amos-photos {
    grid-template-columns: 1fr 1fr;
  }

  .amos-photo:first-child {
    grid-row: span 1;
  }

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

  .hero-title {
    font-size: clamp(2.8rem, 10vw, 5rem);
  }

  .certs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .footer-nav {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 20px;
  }

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

  .about-stats {
    grid-template-columns: 1fr 1fr;
  }

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

  .amos-photos {
    grid-template-columns: 1fr;
  }
}
