/* ============================================================
   style.css  —  All visual styles for ATGC Bioinformatics
   ============================================================
   To retheme the site, edit the :root variables below.
   Everything else cascades from those tokens.
   ============================================================ */

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

/* ── DESIGN TOKENS ────────────────────────────────────────── */
:root {
  /* Colors */
  --ink:        #1a1a1a;
  --ink-light:  #4a4a4a;
  --ink-faint:  #888;
  --paper:      #faf9f7;
  --paper-2:    #f3f1ee;
  --rule:       #ddd9d4;
  --accent:     #2c5f6e;
  --accent-lt:  #3a7a8c;
  --accent-bg:  #edf3f5;
  --gold:       #b08c50;

  /* Typography */
  --serif: 'Playfair Display', Georgia, serif;
  --body:  'Source Serif 4', Georgia, serif;
  --mono:  'JetBrains Mono', monospace;

  /* Layout */
  --section-padding-v: clamp(4rem, 10vw, 8rem);
  --section-padding-h: clamp(1.5rem, 5vw, 4rem);
  --max-width: 1100px;
}

html { scroll-behavior: smooth; }

body {
  background:  var(--paper);
  color:       var(--ink);
  font-family: var(--body);
  font-size:   17px;
  line-height: 1.7;
}

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

/* ── TYPOGRAPHY ───────────────────────────────────────────── */
h1 {
  font-family:    var(--serif);
  font-size:      clamp(2.4rem, 5vw, 4rem);
  font-weight:    700;
  line-height:    1.1;
  letter-spacing: -0.02em;
  color:          var(--ink);
}

h2 {
  font-family:    var(--serif);
  font-size:      clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight:    600;
  letter-spacing: -0.02em;
  line-height:    1.15;
}

h3 {
  font-family: var(--serif);
  font-size:   1.2rem;
  font-weight: 600;
  color:       var(--ink);
}

/* ── LAYOUT UTILITIES ─────────────────────────────────────── */
.section-inner {
  max-width: var(--max-width);
  margin:    0 auto;
}

section {
  padding: var(--section-padding-v) var(--section-padding-h);
}

/* ── SECTION HEADER ───────────────────────────────────────── */
.section-header { margin-bottom: 3.5rem; }

.section-eyebrow {
  font-family:    var(--mono);
  font-size:      0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color:          var(--accent);
  display:        flex;
  align-items:    center;
  gap:            0.75rem;
  margin-bottom:  0.75rem;
}
.section-eyebrow::before {
  content:    '';
  display:    inline-block;
  width:      24px;
  height:     1px;
  background: var(--accent);
}

.section-rule {
  width:      48px;
  height:     2px;
  background: var(--gold);
  margin-top: 1rem;
}

/* Intro text below section title (used in Publications) */
.section-subtext {
  margin-top: 1.25rem;
  font-size:  0.95rem;
  color:      var(--ink-light);
  max-width:  680px;
  line-height: 1.75;
}

/* ── REUSABLE COMPONENTS ──────────────────────────────────── */

.tag {
  font-family:    var(--mono);
  font-size:      0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color:          var(--accent);
  background:     var(--accent-bg);
  border:         1px solid rgba(44, 95, 110, 0.2);
  padding:        0.2rem 0.5rem;
}

.btn-primary {
  display:        inline-block;
  padding:        0.85rem 2rem;
  background:     var(--accent);
  color:          #fff;
  text-decoration: none;
  font-size:      0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family:    var(--body);
  transition:     background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--accent-lt); transform: translateY(-1px); }

.btn-secondary {
  display:        inline-block;
  padding:        0.85rem 2rem;
  border:         1px solid var(--rule);
  color:          var(--ink-light);
  text-decoration: none;
  font-size:      0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family:    var(--body);
  transition:     border-color 0.2s, color 0.2s;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* ── NAVIGATION ───────────────────────────────────────────── */
nav {
  position:        fixed;
  top: 0; left: 0; right: 0;
  z-index:         100;
  background:      rgba(250, 249, 247, 0.93);
  backdrop-filter: blur(12px);
  border-bottom:   1px solid var(--rule);
  padding:         0 var(--section-padding-h);
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  height:          64px;
}

.nav-brand {
  font-family:     var(--serif);
  font-size:       1.1rem;
  font-weight:     600;
  color:           var(--ink);
  text-decoration: none;
  letter-spacing:  -0.01em;
}
.nav-brand span { color: var(--accent); }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-family:     var(--body);
  font-size:       0.85rem;
  letter-spacing:  0.08em;
  text-transform:  uppercase;
  color:           var(--ink-light);
  text-decoration: none;
  transition:      color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

.hamburger {
  display:    none;
  flex-direction: column;
  gap:        5px;
  cursor:     pointer;
  background: none;
  border:     none;
  padding:    4px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); transition: 0.3s; }

/* ── HERO ─────────────────────────────────────────────────── */
#hero {
  min-height:            100vh;
  display:               grid;
  grid-template-columns: 1fr 1fr;
  padding-top:           64px;
}

.hero-text {
  display:        flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 8vw, 8rem) clamp(2rem, 5vw, 5rem);
  padding-right: 3rem;
}

.hero-eyebrow {
  font-family:    var(--mono);
  font-size:      0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color:          var(--accent);
  margin-bottom:  1.5rem;
  display:        flex;
  align-items:    center;
  gap:            0.75rem;
}
.hero-eyebrow::before {
  content: ''; display: inline-block;
  width: 32px; height: 1px;
  background: var(--accent);
}

.hero-title-accent { font-style: italic; color: var(--accent); }

.hero-founder {
  font-family:    var(--mono);
  font-size:      0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color:          var(--gold);
  margin-top:     1rem;
  display:        flex;
  align-items:    center;
  gap:            0.6rem;
}
.hero-founder::before {
  content: ''; display: inline-block;
  width: 20px; height: 1px;
  background: var(--gold);
}

.hero-tagline {
  font-size:   1.05rem;
  font-weight: 300;
  color:       var(--ink-light);
  margin:      1.5rem 0 2.5rem;
  max-width:   480px;
  line-height: 1.8;
}

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

.hero-visual {
  background: var(--accent);
  position:   relative;
  overflow:   hidden;
  display:    flex;
  align-items: center;
  justify-content: center;
}
.hero-visual::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, #2c5f6e 0%, #1a3d48 60%, #0f2830 100%);
}

.dna-svg { position: relative; z-index: 1; width: min(380px, 80%); opacity: 0.18; }

.hero-stats {
  position: absolute; bottom: 3rem; left: 3rem; right: 3rem;
  z-index: 2;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.stat {
  text-align: center; padding: 1.25rem 0.5rem;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
}
.stat-num  { display: block; font-family: var(--serif); font-size: 1.9rem; font-weight: 700; color: #fff; line-height: 1; }
.stat-label { display: block; font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-top: 0.4rem; }

/* Hero fade-in */
.hero-text > * { opacity: 0; animation: fadeUp 0.7s ease forwards; }
.hero-text > *:nth-child(1) { animation-delay: 0.10s; }
.hero-text > *:nth-child(2) { animation-delay: 0.25s; }
.hero-text > *:nth-child(3) { animation-delay: 0.38s; }
.hero-text > *:nth-child(4) { animation-delay: 0.52s; }
.hero-text > *:nth-child(5) { animation-delay: 0.66s; }

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

/* ── ABOUT ────────────────────────────────────────────────── */
#about { background: var(--paper); }

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

.about-photo-placeholder {
  width: 100%; aspect-ratio: 3/4;
  background: var(--accent-bg); border: 1px solid var(--rule);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem; color: var(--ink-faint);
}
.about-photo-placeholder svg { opacity: 0.3; }
.about-photo-placeholder p   { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; }
.about-photo { width: 100%; aspect-ratio: 3/4; object-fit: cover; border: 1px solid var(--rule); display: block; }

.about-links { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.about-link {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.85rem; color: var(--accent); text-decoration: none;
  padding: 0.5rem 0; border-bottom: 1px solid var(--rule); transition: color 0.2s;
}
.about-link:hover { color: var(--gold); }
.about-link-icon  { font-size: 1rem; width: 20px; text-align: center; }

.about-content p { color: var(--ink-light); margin-bottom: 1.25rem; font-size: 1.05rem; }

.about-highlights {
  margin-top: 2rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.highlight-card { padding: 1.25rem; border: 1px solid var(--rule); background: var(--paper-2); }
.highlight-card h4 { font-family: var(--serif); font-size: 0.95rem; font-weight: 600; margin-bottom: 0.3rem; }
.highlight-card p  { font-size: 0.85rem; color: var(--ink-faint); margin: 0; }

/* ── EXPERIENCE CARDS (inside About) ─────────────────────── */
.about-experience { }

.exp-cards {
  display:               grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap:                   1px;
  background:            var(--rule);
  border:                1px solid var(--rule);
}

.exp-card {
  background: var(--paper);
  padding:    1.75rem 1.5rem;
  transition: background 0.2s;
}
.exp-card:hover { background: var(--accent-bg); }

.exp-card-header {
  display:         flex;
  justify-content: space-between;
  align-items:     flex-start;
  gap:             1rem;
  margin-bottom:   0.75rem;
}

.exp-card-org {
  font-family:  var(--serif);
  font-size:    0.98rem;
  font-weight:  600;
  color:        var(--ink);
  line-height:  1.3;
  margin-bottom: 0.2rem;
}

.exp-card-role {
  font-size:  0.82rem;
  color:      var(--accent);
  font-style: italic;
}

.exp-card-period {
  font-family:    var(--mono);
  font-size:      0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color:          var(--gold);
  white-space:    nowrap;
  flex-shrink:    0;
}

.exp-card-summary {
  font-size:   0.88rem;
  color:       var(--ink-light);
  line-height: 1.65;
}

/* ── SERVICES ─────────────────────────────────────────────── */
#services { background: var(--paper-2); }

.services-grid {
  display:               grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap:                   1.5px;
  background:            var(--rule);
  border:                1px solid var(--rule);
}
.service-card { background: var(--paper); padding: 2.5rem 2rem; transition: background 0.2s; cursor: default; }
.service-card:hover { background: var(--accent-bg); }

.service-icon {
  width: 44px; height: 44px;
  background: var(--accent-bg); border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem; font-size: 1.2rem;
}
.service-card h3 { margin-bottom: 0.75rem; }
.service-card p  { font-size: 0.9rem; color: var(--ink-light); line-height: 1.7; margin-bottom: 1rem; }
.service-tags    { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }

/* ── SKILLS / EXPERTISE ───────────────────────────────────── */
#skills { background: var(--paper); }

.skills-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }

.skill-group { margin-bottom: 2rem; }
.skill-group-title {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--rule);
}
.skill-items { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.skill-pill  {
  font-size: 0.82rem; color: var(--ink); background: var(--paper-2);
  border: 1px solid var(--rule); padding: 0.35rem 0.85rem;
  transition: border-color 0.2s, color 0.2s;
}
.skill-pill:hover { border-color: var(--accent); color: var(--accent); }

/* ── PUBLICATIONS ─────────────────────────────────────────── */
#publications { background: var(--paper-2); }

.pub-list { list-style: none; }
.pub-item {
  padding: 1.75rem 0; border-bottom: 1px solid var(--rule);
  display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: start;
}
.pub-year    { font-family: var(--mono); font-size: 0.75rem; color: var(--accent); font-weight: 500; min-width: 2.5rem; padding-top: 0.2rem; }
.pub-title   { font-family: var(--serif); font-size: 0.98rem; font-weight: 600; color: var(--ink); line-height: 1.4; margin-bottom: 0.3rem; }
.pub-title.first-author { color: var(--accent); }
.pub-journal { font-size: 0.82rem; color: var(--ink-faint); font-style: italic; }
.pub-journal a { color: var(--accent); }
.pub-badge   {
  display: inline-block; font-family: var(--mono); font-size: 0.6rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--accent); color: white; padding: 0.15rem 0.45rem;
  margin-left: 0.5rem; vertical-align: middle;
}
.pub-scholar-link { display: block; margin-top: 2rem; font-size: 0.88rem; color: var(--ink-faint); }
.pub-scholar-link a { color: var(--accent); }

/* ── TESTIMONIALS ─────────────────────────────────────────── */
#testimonials { background: var(--accent); }
#testimonials h2                       { color: white; }
#testimonials .section-rule            { background: rgba(255,255,255,0.3); }
#testimonials .section-eyebrow         { color: rgba(255,255,255,0.6); }
#testimonials .section-eyebrow::before { background: rgba(255,255,255,0.4); }

.testimonials-note {
  margin-top: 1rem; font-size: 0.88rem;
  color: rgba(255,255,255,0.55); font-style: italic;
}
.testimonials-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem; margin-top: 2.5rem;
}
.testimonial-card {
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.07); padding: 2rem;
}
.testimonial-quote  { font-family: var(--serif); font-size: 1.05rem; font-style: italic; color: rgba(255,255,255,0.9); line-height: 1.7; margin-bottom: 1.5rem; }
.testimonial-author { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.5); }

/* ── CONTACT ──────────────────────────────────────────────── */
#contact { background: var(--paper); }

.contact-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 5rem; align-items: start; }

.contact-info h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.contact-info p  { font-size: 0.92rem; color: var(--ink-light); margin-bottom: 2rem; line-height: 1.75; }

.contact-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 0; border-bottom: 1px solid var(--rule);
  font-size: 0.9rem; color: var(--ink-light);
}
.contact-item a { color: inherit; text-decoration: none; }
.contact-item a:hover { color: var(--accent); }
.contact-icon {
  width: 36px; height: 36px; background: var(--accent-bg); border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center; font-size: 0.9rem; flex-shrink: 0;
}

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-family: var(--mono); font-size: 0.68rem;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 0.5rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 0.85rem 1rem; border: 1px solid var(--rule);
  background: var(--paper); color: var(--ink); font-family: var(--body);
  font-size: 0.92rem; outline: none; transition: border-color 0.2s; appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--accent); }
.form-group textarea { height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-submit {
  width: 100%; padding: 1rem; background: var(--accent); color: white; border: none;
  font-family: var(--body); font-size: 0.85rem; letter-spacing: 0.1em;
  text-transform: uppercase; cursor: pointer; transition: background 0.2s; margin-top: 0.5rem;
}
.form-submit:hover { background: var(--accent-lt); }

/* ── FOOTER ───────────────────────────────────────────────── */
footer {
  background: var(--ink); color: rgba(255,255,255,0.5);
  padding: 2.5rem var(--section-padding-h);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.footer-brand { font-family: var(--serif); font-size: 1rem; color: white; }
.footer-copy  { font-size: 0.8rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.8rem; color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: white; }

/* ── SCROLL REVEAL ────────────────────────────────────────── */
.reveal           { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible   { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
  #hero                  { grid-template-columns: 1fr; }
  .hero-visual           { min-height: 320px; grid-row: 1; }
  .hero-text             { padding: 3rem 2rem; grid-row: 2; }
  .about-grid            { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-aside           { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
  .about-highlights      { grid-template-columns: 1fr; }
  .skills-layout         { grid-template-columns: 1fr; }
  .contact-layout        { grid-template-columns: 1fr; gap: 2.5rem; }
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 1rem 2rem; gap: 1rem;
  }
  .nav-links.open { display: flex; }
  .hamburger      { display: flex; }
}

@media (max-width: 600px) {
  .form-row     { grid-template-columns: 1fr; }
  .about-aside  { grid-template-columns: 1fr; }
  .hero-stats   { grid-template-columns: 1fr; gap: 0.5rem; bottom: 1.5rem; left: 1.5rem; right: 1.5rem; }
  .exp-cards    { grid-template-columns: 1fr; }
}