/* ═══ MORNING LIGHT — Portfolio Styles ═══ */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --bg: #FAF6F0;
  --card: #FFFFFF;
  --text: #2C2016;
  --subtle: #8C7B6B;
  --accent: #4A90A4;
  --terra: #C4725A;
  --amber: #D4A853;
  --gold: #B8952A;
  --border: #E8E0D4;
  --input-bg: #F5F0E8;
  --shadow: 0 2px 12px rgba(44,32,22,0.06);
  --shadow-lg: 0 8px 32px rgba(44,32,22,0.1);
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'DM Sans', -apple-system, 'Segoe UI', sans-serif;
  --max-w: 900px;
  --nav-h: 56px;
}

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

body {
  background: var(--bg);
  font-family: var(--sans);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ─── NAV ─────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,246,240,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

nav .nav-name {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.3px;
}

nav .nav-name:hover { color: var(--accent); }

nav .nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
}

nav .nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--subtle);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
  letter-spacing: 0.2px;
}

nav .nav-links a:hover { color: var(--text); background: var(--input-bg); }
nav .nav-links a.active { color: var(--accent); font-weight: 600; }

nav .nav-links .app-link {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  padding: 6px 14px;
  margin-left: 6px;
}
nav .nav-links .app-link:hover { background: #3d7a8c; color: #fff; }

/* Mobile menu toggle */
nav .menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text);
  cursor: pointer;
  padding: 4px;
}

/* ─── MAIN ────────────────────────────── */
main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* ─── HERO ────────────────────────────── */
.hero {
  text-align: center;
  padding: 60px 0 40px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 6vw, 52px);
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.hero .subtitle {
  font-size: 18px;
  color: var(--subtle);
  font-weight: 400;
  margin-bottom: 24px;
}

.hero .tagline {
  font-size: 15px;
  color: var(--subtle);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ─── LANDSCAPE DIVIDER ───────────────── */
.landscape-divider {
  width: 100%;
  max-width: 520px;
  margin: 0 auto 34px;
  display: block;
  opacity: 0.9;
}

.landscape-divider .ridge-far {
  fill: var(--terra);
  opacity: 0.09;
}

.landscape-divider .ridge-near {
  fill: var(--text);
  opacity: 0.055;
}

.landscape-divider .bridge {
  fill: var(--terra);
  opacity: 0.16;
}

.landscape-divider .river {
  stroke: var(--accent);
  opacity: 0.18;
  vector-effect: non-scaling-stroke;
}

.landscape-divider .river-shimmer {
  stroke: var(--accent);
  opacity: 0.10;
  vector-effect: non-scaling-stroke;
  animation: riverShimmer 8s ease-in-out infinite;
}

.landscape-divider .drift {
  animation: ridgeDrift 14s ease-in-out infinite;
  transform-origin: 50% 50%;
}

@keyframes riverShimmer {
  0%, 100% { opacity: 0.10; }
  50% { opacity: 0.18; }
}

@keyframes ridgeDrift {
  0%, 100% { transform: translateX(0px); }
  50% { transform: translateX(3px); }
}

/* ─── SECTION HEADERS ─────────────────── */
.section-title {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--text);
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

.section-title .accent-dot {
  color: var(--terra);
}

/* ─── CARDS ───────────────────────────── */
.card {
  background: var(--card);
  border-radius: 14px;
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.card-flat {
  background: var(--card);
  border-radius: 14px;
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

/* ─── DASHBOARD GRID ──────────────────── */
.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.dash-grid.three-col {
  grid-template-columns: 1fr 1fr 1fr;
}

.dash-grid .full {
  grid-column: 1 / -1;
}

/* ─── EXPERIENCE ENTRY ────────────────── */
.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
  flex-wrap: wrap;
  gap: 8px;
}

.exp-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.exp-company {
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 10px;
}

.exp-dates {
  font-size: 13px;
  color: var(--subtle);
  font-weight: 500;
  white-space: nowrap;
}

.exp-list {
  list-style: none;
  padding: 0;
}

.exp-list li {
  font-size: 14px;
  color: var(--text);
  padding: 3px 0 3px 16px;
  position: relative;
  line-height: 1.6;
}

.exp-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--terra);
}

/* ─── TAGS / PILLS ────────────────────── */
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: var(--input-bg);
  color: var(--accent);
  border: 1px solid var(--border);
  margin: 3px 3px 3px 0;
}

.tag.terra { background: #FFF0EC; color: var(--terra); border-color: #F0D8CF; }
.tag.amber { background: #FFF8E8; color: var(--gold); border-color: #F0E0B8; }

/* ─── CERT ENTRY ──────────────────────── */
.cert-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 4px;
}

.cert-entry:last-child { border-bottom: none; }

.cert-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.cert-issuer {
  font-size: 12px;
  color: var(--subtle);
}

.cert-date {
  font-size: 13px;
  color: var(--subtle);
  font-weight: 500;
}

/* ─── PROJECT CARD ────────────────────── */
.project-card {
  background: var(--card);
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 24px;
  transition: box-shadow 0.2s ease;
}

.project-card:hover { box-shadow: var(--shadow-lg); }

.project-header {
  background: linear-gradient(135deg, var(--accent), #3d7a8c);
  padding: 28px 24px;
  color: #fff;
}

.project-header h3 {
  font-family: var(--serif);
  font-size: 24px;
  margin-bottom: 4px;
}

.project-header .project-sub {
  font-size: 14px;
  opacity: 0.85;
}

.project-body {
  padding: 24px;
}

.project-body p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 16px;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}

.project-link:hover { background: #3d7a8c; }

/* ─── CONTACT ─────────────────────────── */
.contact-card {
  text-align: center;
  padding: 48px 24px;
}

.contact-card .contact-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.contact-card h2 {
  font-family: var(--serif);
  font-size: 28px;
  margin-bottom: 12px;
}

.contact-card p {
  font-size: 15px;
  color: var(--subtle);
  max-width: 420px;
  margin: 0 auto 24px;
  line-height: 1.7;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 12px 28px;
  border: 2px solid var(--accent);
  border-radius: 10px;
  transition: all 0.2s;
  margin: 6px;
}

.contact-link:hover {
  background: var(--accent);
  color: #fff;
}

/* ─── PHOTO GRID ──────────────────────── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.photo-placeholder {
  background: var(--input-bg);
  border-radius: 12px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--subtle);
  font-size: 14px;
  border: 2px dashed var(--border);
}

/* ─── FOOTER ──────────────────────────── */
footer {
  text-align: center;
  padding: 32px 24px;
  font-size: 12px;
  color: var(--subtle);
  border-top: 1px solid var(--border);
  max-width: var(--max-w);
  margin: 0 auto;
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

/* ─── RESPONSIVE ──────────────────────── */
@media (max-width: 640px) {
  .dash-grid { grid-template-columns: 1fr; }
  .dash-grid.three-col { grid-template-columns: 1fr; }
  nav .nav-links { display: none; }
  nav .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 16px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
  }
  nav .nav-links.open a { padding: 10px 12px; font-size: 15px; }
  nav .menu-toggle { display: block; }
  main { padding: 24px 16px 60px; }
  .hero { padding: 32px 0 24px; }
  .hero h1 { font-size: 32px; }
}

/* ─── ANIMATIONS ──────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp 0.5s ease forwards;
  opacity: 0;
}

.fade-up:nth-child(1) { animation-delay: 0.05s; }
.fade-up:nth-child(2) { animation-delay: 0.1s; }
.fade-up:nth-child(3) { animation-delay: 0.15s; }
.fade-up:nth-child(4) { animation-delay: 0.2s; }
.fade-up:nth-child(5) { animation-delay: 0.25s; }
.fade-up:nth-child(6) { animation-delay: 0.3s; }
