/* Nadia Metoui - Professional Portfolio Styles
   Separated Presentation Layer
*/

:root {
  /* Color Palette */
  --ink: #1c1c1a;
  --ink-mid: #3d3d38;
  --ink-muted: #6b6b62;
  --ink-faint: #a0a097;
  --paper: #f6f3ee;
  --paper-warm: #ede9e1;
  --paper-card: #ffffff;
  --accent: #2d6a4f;
  --accent-mid: #3a856a;
  --accent-light: #d8ede4;
  --accent-pale: #eef7f2;
  --accent-deep: #1b4332;
  --rule: #d8d3c8;

  /* Typography */
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;

  /* Layout Constants */
  --r: 10px;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* Reset & Global */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--paper); color: var(--ink); line-height: 1.7; font-size: 15px; }

/* Navigation */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 60px; background: rgba(246,243,238,0.92);
  backdrop-filter: blur(14px); border-bottom: 1px solid var(--rule);
}
.nav-logo { font-family: var(--serif); font-size: 16px; color: var(--ink); text-decoration: none; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--ink-muted); font-size: 12px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta { background: var(--accent); color: #fff !important; padding: 7px 16px; border-radius: 20px; }
.nav-cta:hover { background: var(--accent-deep) !important; }

/* Hero Section */
.hero { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; padding-top: 58px; }
.hero-text { display: flex; flex-direction: column; justify-content: center; padding: 80px 56px 80px 80px; }
.hero-eyebrow {
  font-size: 11px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
}
.hero-eyebrow::after { content: ''; flex: 0 0 32px; height: 1px; background: var(--accent); }
.hero-name { font-family: var(--serif); font-size: clamp(44px, 4.5vw, 66px); line-height: 1.06; color: var(--ink); margin-bottom: 8px; }
.hero-name em { font-style: italic; color: var(--accent); }
.hero-bio { color: var(--ink-muted); font-size: 14.5px; line-height: 1.85; max-width: 440px; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 14px; align-items: center; }

/* Visual Elements */
.hero-visual { background: var(--paper-warm); position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.hero-photo-frame {
  width: 72%; max-width: 360px; aspect-ratio: 3/4;
  background: var(--accent-light); border-radius: 20px 20px 0 0; overflow: hidden;
  position: relative; z-index: 1;
}
.hero-photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* Buttons */
.btn-primary {
  background: var(--accent); color: #fff; padding: 11px 24px;
  border-radius: var(--r); text-decoration: none; font-weight: 500; font-size: 13.5px;
  transition: background 0.2s, transform 0.15s; display: inline-block;
}
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn-ghost {
  color: var(--ink-muted); font-size: 13.5px; text-decoration: none;
  border-bottom: 1px dashed var(--rule); padding-bottom: 1px;
}

/* Sections */
section { padding: 88px 80px; }
section.alt-bg { background: var(--paper-warm); }
h2 { font-family: var(--serif); font-size: clamp(28px, 2.8vw, 40px); color: var(--ink); margin-bottom: 52px; }

/* Timeline (Experience & Education) */
.timeline-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; }
.timeline { position: relative; padding-left: 18px; }
.timeline::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 1px; background: var(--rule); }
.timeline-item { position: relative; padding-left: 22px; margin-bottom: 34px; }
.timeline-item::before {
  content: ''; position: absolute; left: -18px; top: 8px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--paper-warm);
  outline: 1px solid var(--accent);
}
.t-date { font-size: 10.5px; font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase; color: var(--accent); }
.t-role { font-family: var(--serif); font-size: 15.5px; color: var(--ink); font-weight: 600; }
.t-org { font-size: 13px; color: var(--ink-muted); }

/* Publications */
.pub-list { display: flex; flex-direction: column; gap: 12px; }
.pub-item {
  background: var(--paper-card); border: 1px solid var(--rule);
  border-radius: var(--r); padding: 18px 22px;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: flex; gap: 18px; align-items: flex-start;
}
.pub-item:hover { border-color: var(--accent-mid); box-shadow: var(--shadow); }
.pub-badge {
  display: inline-block; font-size: 10px; font-weight: 500; text-transform: uppercase;
  background: var(--accent-pale); border: 1px solid var(--accent-light);
  padding: 2px 8px; border-radius: 3px; margin-bottom: 6px;
}

/* Contact Form */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.form-group { margin-bottom: 13px; }
.form-group label { display: block; font-size: 10.5px; font-weight: 500; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 5px; }
.form-group input, .form-group textarea {
  width: 100%; background: var(--paper); border: 1px solid var(--rule);
  border-radius: 7px; padding: 9px 13px; font-family: var(--sans);
}

/* Footer */
footer { background: var(--ink); color: rgba(255,255,255,0.38); padding: 36px 80px; text-align: center; }

/* Responsive Adjustments */
@media (max-width: 960px) {
  nav { padding: 14px 22px; }
  section { padding: 56px 24px; }
  .hero { grid-template-columns: 1fr; }
  .timeline-cols, .contact-layout { grid-template-columns: 1fr; }
}