/* ============================================================
   VARIABLES & RESET
   ============================================================ */
:root {
  --navy:      #1a3a5c;
  --navy-dark: #112840;
  --navy-mid:  #2a5080;
  --accent:    #c8a84b;   /* gold accent — pairs well with navy */
  --text:      #222222;
  --text-light:#555555;
  --bg:        #ffffff;
  --bg-alt:    #f4f6f9;
  --border:    #dde3ea;
  --radius:    6px;
  --max-w:     900px;
  --nav-h:     60px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 1rem;
}

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

/* ============================================================
   NAV
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--navy-dark);
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}

.nav-name {
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

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

.nav-links a {
  color: #ccd9e8;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  min-height: 100vh;
  background:
    linear-gradient(160deg, rgba(17,40,64,0.82) 0%, rgba(26,58,92,0.72) 60%, rgba(42,80,128,0.68) 100%),
    url('../images/hurricane-lee.jpg') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 2rem) 1.5rem 3rem;
  position: relative;
}

.hero-image-credit {
  position: absolute;
  bottom: 0.6rem;
  right: 0.8rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.45);
  max-width: 520px;
  text-align: right;
  line-height: 1.4;
}

.hero-content { max-width: 680px; }

#hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: #fff;
  letter-spacing: 0.02em;
  margin-bottom: 0.6rem;
}

.hero-subtitle {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: #a8c4de;
  margin-bottom: 0.5rem;
}

.hero-tagline {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.9rem;
  color: #7a9fbd;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
}

.hero-links { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 0.65rem 1.6rem;
  border-radius: var(--radius);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  background: var(--accent);
  color: var(--navy-dark);
  border: 2px solid var(--accent);
}

.btn:hover { background: #dbb95a; border-color: #dbb95a; text-decoration: none; }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

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

.container {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-title {
  font-size: 1.7rem;
  color: var(--navy);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--accent);
  display: inline-block;
}

.subsection-title {
  font-size: 1.15rem;
  color: var(--navy);
  margin: 2rem 0 0.75rem;
  font-style: italic;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-inner {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

.about-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  border: 4px solid var(--accent);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.about-text p { margin-bottom: 1rem; max-width: 72ch; }

@media (max-width: 560px) {
  .about-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ============================================================
   RESEARCH HIGHLIGHTS
   ============================================================ */
.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
}

.research-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.research-number {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.research-card h3 {
  font-size: 1.05rem;
  color: var(--navy);
  line-height: 1.35;
}

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

.research-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.research-tags span {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.72rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--navy);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  letter-spacing: 0.02em;
}

/* ============================================================
   TIMELINE (Experience & Education)
   ============================================================ */
.timeline { position: relative; padding-left: 1.5rem; }

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

.timeline-item {
  position: relative;
  margin-bottom: 2.2rem;
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1.2rem;
  align-items: start;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.85rem;
  top: 0.45rem;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--navy);
}

.timeline-date {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.82rem;
  color: var(--text-light);
  text-align: right;
  padding-top: 0.15rem;
}

.timeline-body h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.1rem;
}

.timeline-body h4 {
  font-size: 0.9rem;
  font-weight: normal;
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 0.6rem;
}

.timeline-body ul {
  padding-left: 1.2rem;
  font-size: 0.95rem;
}

.timeline-body ul li { margin-bottom: 0.3rem; }

.timeline-body p { font-size: 0.95rem; }

/* ============================================================
   PUBLICATIONS
   ============================================================ */
.pub-list {
  padding-left: 1.4rem;
  font-size: 0.92rem;
}

.pub-list li {
  margin-bottom: 0.9rem;
  line-height: 1.6;
}

.pub-list a {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.8rem;
  padding: 0.1rem 0.4rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--navy);
  white-space: nowrap;
}

.pub-list a:hover { background: var(--navy); color: #fff; text-decoration: none; }

.award-badge {
  display: inline-block;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.75rem;
  background: var(--accent);
  color: var(--navy-dark);
  padding: 0.1rem 0.5rem;
  border-radius: 3px;
  font-weight: 600;
  margin-left: 0.4rem;
  vertical-align: middle;
}

/* ============================================================
   AWARDS
   ============================================================ */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.award-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--navy);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
}

.award-year {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0.4rem;
}

.award-card h3 {
  font-size: 0.98rem;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.award-card p { font-size: 0.88rem; color: var(--text-light); }

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

.skill-group h3 {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.3rem;
  margin-bottom: 0.7rem;
}

.skill-group ul { list-style: none; }

.skill-group ul li {
  font-size: 0.95rem;
  padding: 0.2rem 0;
  color: var(--text);
}

.skill-group ul li::before {
  content: '›  ';
  color: var(--navy-mid);
  font-weight: bold;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-container { text-align: center; }
.contact-container > p { margin-bottom: 1.5rem; color: var(--text-light); }

.contact-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.95rem;
  padding: 0.55rem 1.2rem;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  transition: background 0.2s;
}

.contact-item:hover { background: var(--navy-mid); text-decoration: none; }
.contact-icon { font-size: 1.1rem; }

/* ============================================================
   SCROLL-FADE ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in:nth-child(4) { transition-delay: 0.3s; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--navy-dark);
  color: #7a9fbd;
  text-align: center;
  padding: 1.2rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.82rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--navy-dark);
    padding: 1rem 1.5rem;
    gap: 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
  .timeline-date { text-align: left; }
}
