/* ═══════════════════════════════════════════════
   Roey Elmelech Portfolio — Shared Styles
   Palette: Pearl White · Forest Green
═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700;9..40,800&family=JetBrains+Mono:wght@400;500;600&family=Space+Mono:wght@400;700&display=swap');

/* ── TOKENS ── */
:root {
  --bg:       #f3f8f5;
  --bg-tint:  #e8f2ec;
  --surface:  #ffffff;
  --border:   rgba(18, 96, 58, 0.10);
  --border-m: rgba(18, 96, 58, 0.20);
  --accent:   #1a7a50;
  --acc-lt:   #dff0e7;
  --acc-dk:   #0f5234;
  --text-1:   #0d1a12;
  --text-2:   #375849;
  --text-3:   #7c9f8d;
  --mono:     'Space Mono', 'JetBrains Mono', monospace;
  --sans:     'DM Sans', sans-serif;
  --r:        12px;
  --r-lg:     18px;
  --mw:       1100px;
  --nav-h:    68px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text-1);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── PAGE FADE IN ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── NAV ── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(243, 248, 245, 0.90);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--mw); width: 100%; margin: 0 auto;
  padding: 0 48px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  font-weight: 700; font-size: 16px;
  letter-spacing: -0.022em; color: var(--text-1);
}
.nav-links {
  display: flex; gap: 4px; align-items: center; list-style: none;
}
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--text-2);
  padding: 6px 13px; border-radius: 100px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--accent); font-weight: 600; }
.nav-links li.nav-cta a {
  background: var(--accent); color: #fff;
  padding: 8px 18px; border-radius: 100px; font-weight: 600;
}
.nav-links li.nav-cta a:hover { background: var(--acc-dk); color: #fff; }

/* ── LAYOUT ── */
.wrap { max-width: var(--mw); margin: 0 auto; padding: 0 48px; }
.section { padding: 88px 0; }
.section + .section { border-top: 1px solid var(--border); }

/* ── TYPOGRAPHY ── */
.eyebrow {
  display: block;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.section-h {
  font-size: 38px; font-weight: 700;
  letter-spacing: -0.025em; line-height: 1.12;
  color: var(--text-1); margin-bottom: 14px;
}
.section-lead {
  font-size: 17px; color: var(--text-2); line-height: 1.72;
  max-width: 600px;
}
.mono-label {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3);
}

/* ── BADGE ── */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--acc-lt); border: 1px solid rgba(26,122,80,0.2);
  border-radius: 100px; padding: 5px 14px;
  font-family: var(--mono); font-size: 10px;
  color: var(--acc-dk); letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 28px;
}
.badge-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 8px;
  font-size: 14px; font-weight: 600; cursor: pointer; border: none;
  transition: all 0.18s; font-family: var(--sans);
}
.btn-p { background: var(--accent); color: #fff; }
.btn-p:hover { background: var(--acc-dk); }
.btn-o { background: transparent; color: var(--text-2); border: 1px solid var(--border-m); }
.btn-o:hover { border-color: var(--accent); color: var(--accent); }

/* ── CARD ── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 28px;
}

/* ── DOT GRID ── */
.dot-pattern {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(26,122,80,0.07) 1px, transparent 1px);
  background-size: 30px 30px;
}

/* ── PAGE HEADER (inner pages) ── */
.page-header { padding: 72px 0 56px; border-bottom: 1px solid var(--border); margin-bottom: 0; }
.page-h1 {
  font-size: 52px; font-weight: 800;
  letter-spacing: -0.032em; line-height: 1.06;
  color: var(--text-1); margin-bottom: 16px;
}
.page-lead {
  font-size: 18px; color: var(--text-2); line-height: 1.68;
  max-width: 560px;
}

/* ── FOOTER ── */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0; }
.footer-inner {
  max-width: var(--mw); margin: 0 auto; padding: 0 48px;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-brand { font-weight: 700; font-size: 15px; letter-spacing: -0.02em; color: var(--text-1); }
.footer-links { display: flex; gap: 28px; }
.footer-links a { font-size: 13px; color: var(--text-3); transition: color 0.15s; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-family: var(--mono); font-size: 10px; color: var(--text-3); letter-spacing: 0.1em; }

/* ════════════════════════════════════
   HOME
════════════════════════════════════ */
.hero {
  padding: 80px 0 96px;
  position: relative; overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 380px;
  gap: 80px; align-items: center; position: relative; z-index: 1;
}
.hero-h1 {
  font-size: 66px; font-weight: 800;
  letter-spacing: -0.035em; line-height: 1.0;
  color: var(--text-1); margin-bottom: 24px;
}
.hero-h1 em { font-style: normal; color: var(--accent); }
.hero-bio {
  font-size: 18px; color: var(--text-2); line-height: 1.72;
  max-width: 490px; margin-bottom: 40px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-photo-wrap { position: relative; }
.hero-photo {
  width: 100%; aspect-ratio: 3 / 4;
  object-fit: cover; object-position: center top;
  border-radius: var(--r-lg); border: 1px solid var(--border);
}
.stat-card {
  position: absolute; bottom: 28px; left: -40px;
  background: var(--surface); border: 1px solid var(--border-m);
  border-radius: var(--r); padding: 16px 22px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.stat-num { font-size: 24px; font-weight: 700; color: var(--text-1); letter-spacing: -0.02em; margin: 4px 0 2px; }
.stat-sub { font-size: 12px; color: var(--text-3); }

/* Pillars */
.pillars-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px; margin-top: 52px;
}
.pillar {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 36px 30px;
  transition: border-color 0.2s, transform 0.2s;
}
.pillar:hover { border-color: rgba(26,122,80,0.28); transform: translateY(-3px); }
.pillar-icon {
  width: 44px; height: 44px; background: var(--acc-lt);
  border-radius: 10px; display: flex; align-items: center;
  justify-content: center; margin-bottom: 22px;
}
.pillar-icon svg { width: 22px; height: 22px; }
.pillar-h { font-size: 17px; font-weight: 700; color: var(--text-1); letter-spacing: -0.01em; margin-bottom: 10px; }
.pillar-p { font-size: 14px; color: var(--text-2); line-height: 1.7; }

/* ════════════════════════════════════
   ABOUT
════════════════════════════════════ */
.about-grid {
  display: grid; grid-template-columns: 1fr 360px;
  gap: 72px; align-items: start; padding-top: 64px; padding-bottom: 88px;
}
.about-body p { font-size: 17px; color: var(--text-2); line-height: 1.78; margin-bottom: 22px; }
.about-body p:last-child { margin-bottom: 0; }
.about-photo {
  width: 100%; aspect-ratio: 3/4;
  object-fit: cover; object-position: center top;
  border-radius: var(--r-lg); border: 1px solid var(--border);
  position: sticky; top: 84px;
}
.social-links { margin-top: 40px; display: flex; flex-direction: column; gap: 10px; }
.social-link {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; color: var(--text-2); font-weight: 500;
  padding: 12px 16px; border-radius: var(--r);
  border: 1px solid var(--border);
  transition: border-color 0.15s, color 0.15s;
}
.social-link:hover { border-color: rgba(26,122,80,0.28); color: var(--accent); }
.social-link svg { width: 18px; height: 18px; flex-shrink: 0; stroke: var(--text-3); }

/* Approach */
.approach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.approach-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 26px 24px;
}
.approach-num { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: 0.1em; margin-bottom: 10px; }
.approach-h { font-size: 15px; font-weight: 700; color: var(--text-1); margin-bottom: 8px; letter-spacing: -0.01em; }
.approach-p { font-size: 13px; color: var(--text-2); line-height: 1.65; }

/* ════════════════════════════════════
   RESUME
════════════════════════════════════ */
.resume-layout { display: grid; grid-template-columns: 1fr 320px; gap: 72px; padding-top: 64px; padding-bottom: 88px; align-items: start; }

/* Education card */
.edu-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 28px 28px;
  display: flex; gap: 20px; align-items: flex-start;
  margin-bottom: 24px;
}
.edu-icon { width: 48px; height: 48px; background: var(--acc-lt); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.edu-icon svg { width: 24px; height: 24px; }
.edu-school { font-size: 17px; font-weight: 700; color: var(--text-1); letter-spacing: -0.015em; margin-bottom: 3px; }
.edu-deg { font-size: 14px; color: var(--text-2); font-weight: 500; margin-bottom: 4px; }
.edu-date { font-family: var(--mono); font-size: 10px; color: var(--text-3); letter-spacing: 0.1em; text-transform: uppercase; }

/* Timeline */
.timeline-section-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 32px; margin-top: 8px; }
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px; background: var(--border-m); }
.timeline-item { position: relative; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot { position: absolute; left: -29px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border-m); }
.timeline-dot.current { background: var(--accent); border-color: var(--accent); }
.timeline-dot.accent { background: var(--surface); border-color: var(--accent); }
.timeline-date { font-family: var(--mono); font-size: 10px; color: var(--text-3); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 5px; }
.timeline-co { font-size: 16px; font-weight: 700; color: var(--text-1); letter-spacing: -0.01em; margin-bottom: 2px; }
.timeline-role { font-size: 13px; color: var(--text-2); font-weight: 500; margin-bottom: 6px; }
.timeline-desc { font-size: 13px; color: var(--text-3); line-height: 1.65; max-width: 480px; }

/* Sidebar */
.resume-sidebar { position: sticky; top: 84px; }
.sidebar-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px; margin-bottom: 16px; }
.sidebar-card-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.sidebar-stat { margin-bottom: 16px; }
.sidebar-stat:last-child { margin-bottom: 0; }
.sidebar-stat-num { font-size: 28px; font-weight: 700; color: var(--text-1); letter-spacing: -0.02em; line-height: 1; }
.sidebar-stat-label { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.sidebar-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.sidebar-tag { font-size: 12px; color: var(--text-2); background: var(--bg-tint); border: 1px solid var(--border); border-radius: 6px; padding: 5px 11px; }

/* ════════════════════════════════════
   SKILLS
════════════════════════════════════ */
.skills-layout { padding-top: 64px; padding-bottom: 88px; }
.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.skill-col-head { font-size: 22px; font-weight: 700; color: var(--text-1); letter-spacing: -0.02em; margin-bottom: 36px; }
.skill-group { margin-bottom: 36px; }
.skill-group:last-child { margin-bottom: 0; }
.skill-group-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tag { font-size: 13px; font-weight: 500; color: var(--text-2); background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 6px 13px; transition: border-color 0.15s, color 0.15s; }
.skill-tag:hover { border-color: rgba(26,122,80,0.3); color: var(--accent); }
.skill-tag.hl { background: var(--acc-lt); border-color: rgba(26,122,80,0.22); color: var(--acc-dk); font-weight: 600; }

/* ════════════════════════════════════
   CONTACT
════════════════════════════════════ */
.contact-layout { padding-top: 64px; padding-bottom: 88px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-lead { font-size: 19px; color: var(--text-2); line-height: 1.72; margin-bottom: 40px; }
.contact-links { display: flex; flex-direction: column; gap: 12px; }
.contact-link {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px; border-radius: var(--r);
  border: 1px solid var(--border); background: var(--surface);
  transition: border-color 0.2s, transform 0.15s;
}
.contact-link:hover { border-color: rgba(26,122,80,0.3); transform: translateX(4px); }
.contact-link-icon { width: 40px; height: 40px; background: var(--acc-lt); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-link-icon svg { width: 20px; height: 20px; }
.contact-link-body { flex: 1; }
.contact-link-label { font-family: var(--mono); font-size: 10px; color: var(--text-3); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 3px; }
.contact-link-val { font-size: 15px; font-weight: 600; color: var(--text-1); }
.contact-availability { background: var(--acc-lt); border: 1px solid rgba(26,122,80,0.2); border-radius: var(--r-lg); padding: 32px; }
.contact-avail-head { font-size: 19px; font-weight: 700; color: var(--text-1); letter-spacing: -0.01em; margin-bottom: 6px; }
.contact-avail-sub { font-size: 14px; color: var(--text-2); line-height: 1.65; margin-bottom: 24px; }
.avail-items { display: flex; flex-direction: column; gap: 10px; }
.avail-item { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-2); line-height: 1.5; }
.avail-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 6px; }
