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

:root {
  --navy:     #0f1b2d;
  --navy-mid: #162032;
  --accent:   #2563eb;
  --accent-light: #3b82f6;
  --text:     #1e293b;
  --muted:    #64748b;
  --border:   #e2e8f0;
  --bg-light: #f8fafc;
  --white:    #ffffff;
  --radius:   12px;
  --shadow:   0 4px 24px rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-light); }

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(15, 27, 45, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}
.logo:hover { color: var(--accent-light); }

nav { display: flex; gap: 32px; }

nav a {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
nav a:hover, nav a.nav-active { color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  align-items: center;
  padding: 100px 0 60px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.hero-tagline {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.55);
  font-weight: 400;
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}

.hero-bio {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  max-width: 540px;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-links { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-photo {
  flex-shrink: 0;
}

.hero-photo img {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.1);
  box-shadow: 0 0 0 8px rgba(37,99,235,0.15);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent-light);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,99,235,0.35);
}

.btn-outline {
  border: 2px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.85);
}
.btn-outline:hover {
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 96px 0; }
.bg-light { background: var(--bg-light); }

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 56px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 16px;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 20px;
  font-size: 1.02rem;
}
.about-text p strong { color: var(--text); }

.about-highlights { display: flex; flex-direction: column; gap: 16px; }

.highlight-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.highlight-icon { font-size: 1.5rem; flex-shrink: 0; }

.highlight-card div {
  display: flex;
  flex-direction: column;
}

.highlight-card strong {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
}

.highlight-card span {
  font-size: 0.83rem;
  color: var(--muted);
  margin-top: 2px;
}

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline { display: flex; flex-direction: column; gap: 0; }

.timeline-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.timeline-item:last-child { border-bottom: none; }

.timeline-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 4px;
}

.timeline-date {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.timeline-org {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
}

.timeline-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.timeline-content p {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.75;
}

.timeline-content a { color: var(--accent); }

/* ============================================================
   PUBLICATIONS CARDS
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.pub-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.pub-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.pub-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(37,99,235,0.08);
  border-radius: 4px;
  padding: 4px 10px;
  margin-bottom: 16px;
}

.pub-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.4;
}

.pub-card h3 a { color: var(--navy); }
.pub-card h3 a:hover { color: var(--accent); }

.pub-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ============================================================
   PROJECTS LIST
   ============================================================ */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 48px;
}

.project-item {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.project-item:last-child { border-bottom: none; }

.project-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.project-item h3 a { color: var(--navy); }
.project-item h3 a:hover { color: var(--accent); }

.project-item p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.apps-cta {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.apps-cta p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
}

/* ============================================================
   PAGE HERO (apps.html)
   ============================================================ */
.page-hero {
  background: var(--navy);
  padding: 140px 0 72px;
  text-align: center;
}

.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--white);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.6);
}

/* ============================================================
   APPS GRID
   ============================================================ */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

.app-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

.app-card--coming-soon {
  opacity: 0.6;
}

.app-icon {
  font-size: 2.5rem;
}

.app-info h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.app-info p {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.75;
  margin-bottom: 20px;
}

.app-status {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 4px 10px;
  margin-bottom: 12px;
}

.app-status.active {
  color: #059669;
  background: rgba(5,150,105,0.1);
}

.app-status.coming-soon {
  color: #d97706;
  background: rgba(217,119,6,0.1);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy);
  padding: 40px 0;
}

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

.site-footer p {
  color: rgba(255,255,255,0.4);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  nav { display: none; }
  .nav-toggle { display: block; }

  nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--navy-mid);
    padding: 24px;
    gap: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-photo { order: -1; margin: 0 auto; }
  .hero-photo img { width: 200px; height: 200px; }
  .hero-links { justify-content: center; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }

  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .timeline-meta { flex-direction: row; flex-wrap: wrap; gap: 8px; align-items: center; }

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

@media (max-width: 480px) {
  .section { padding: 64px 0; }
  .card-grid { grid-template-columns: 1fr; }
}
