/* ============================================================
   SAAR SHARIR PORTFOLIO — DESIGN SYSTEM
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=IBM+Plex+Mono:wght@400;500&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* ── CSS Variables ── */
:root {
  --bg:         #0f1012;
  --bg-2:       #16181c;
  --bg-3:       #1d2026;
  --surface:    #22262e;
  --surface-2:  #2a2f3a;
  --border:     #2e3340;
  --border-2:   #3d4455;

  --text:       #e8e9ec;
  --text-2:     #9ea3b0;
  --text-3:     #6b7080;

  --accent:     #d4a843;
  --accent-dim: #a8832e;
  --accent-glow:rgba(212,168,67,0.12);
  --accent-rgb: 212,168,67;

  --green:      #4caf76;
  --red:        #e05c5c;
  --blue:       #5b8af5;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', 'Courier New', monospace;

  --radius:    6px;
  --radius-lg: 12px;
  --radius-xl: 20px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow:    0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.6);

  --transition: 0.2s ease;
  --transition-slow: 0.4s ease;

  --container: 1200px;
  --nav-height: 64px;
}

[data-theme="light"] {
  --bg:         #f8f7f4;
  --bg-2:       #f0ede8;
  --bg-3:       #e8e4dd;
  --surface:    #ffffff;
  --surface-2:  #f5f3ef;
  --border:     #ddd9d1;
  --border-2:   #c9c4bc;

  --text:       #1a1c20;
  --text-2:     #4a4f5a;
  --text-3:     #7a8090;

  --accent:     #b88a20;
  --accent-dim: #8a6518;
  --accent-glow:rgba(184,138,32,0.10);

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.10);
  --shadow:    0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.16);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 300;
  transition: background var(--transition-slow), color var(--transition-slow);
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}
a:hover { opacity: 0.8; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { color: var(--text-2); max-width: 68ch; }

code, .mono {
  font-family: var(--font-mono);
  font-size: 0.875em;
}

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.section {
  padding-block: clamp(4rem, 8vw, 8rem);
}

.section-header {
  margin-bottom: 3rem;
}

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

.section-title {
  margin-bottom: 0.75rem;
}
.section-subtitle {
  color: var(--text-2);
  font-size: 1.05rem;
  max-width: 60ch;
  font-weight: 300;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 100;
  background: rgba(15,16,18,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition-slow), border-color var(--transition-slow);
}

[data-theme="light"] .nav {
  background: rgba(248,247,244,0.88);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--text-2);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--surface);
}
.nav-links a.active { color: var(--accent); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-theme {
  width: 36px; height: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  font-size: 1rem;
}
.btn-theme:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

.nav-mobile-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px; height: 36px;
  padding: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
}
.nav-mobile-btn span {
  display: block;
  height: 1.5px;
  background: var(--text-2);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.825rem;
  letter-spacing: 0.04em;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent-dim);
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.35);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--text-2);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
  opacity: 1;
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  padding-inline: 0.5rem;
}
.btn-ghost:hover {
  color: var(--text);
  opacity: 1;
}

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  border-color: var(--border-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.card-accent:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 24px rgba(var(--accent-rgb), 0.1);
}

/* ── Tags / Badges ── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  background: var(--surface-2);
  color: var(--text-2);
  border: 1px solid var(--border);
  white-space: nowrap;
  cursor: default;
  transition: all var(--transition);
}
.tag:hover,
.tag.active {
  background: var(--accent-glow);
  border-color: var(--accent);
  color: var(--accent);
}

.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* ── Hero Section ── */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(var(--accent-rgb), 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.07) 0%, transparent 70%);
  top: -100px; right: -100px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.2s forwards;
}
.hero-eyebrow::before {
  content: '';
  width: 40px; height: 1px;
  background: var(--accent);
}

.hero-name {
  opacity: 0;
  animation: fadeUp 0.6s ease 0.35s forwards;
  margin-bottom: 0.25rem;
}

.hero-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--text-2);
  font-weight: 400;
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.5s forwards;
}

.hero-desc {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--text-2);
  max-width: 56ch;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  font-weight: 300;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.65s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.8s forwards;
  margin-bottom: 3.5rem;
}

.hero-social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.95s forwards;
}
.hero-social a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-3);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color var(--transition);
}
.hero-social a:hover {
  color: var(--accent);
  opacity: 1;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-3);
  text-transform: uppercase;
  animation: fadeIn 1s ease 1.5s both;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(var(--accent), transparent);
  animation: scrollPulse 2s ease infinite;
}

/* ── About Section ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 2.5rem;
}

.stat-item {
  background: var(--surface);
  padding: 1.5rem;
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.about-domains {
  margin-top: 1rem;
}
.domain-list {
  list-style: none;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.domain-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-2);
}
.domain-list li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ── Skills Section ── */
.skills-bg {
  background: var(--bg-2);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.skill-group-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.skill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.skill-name {
  font-size: 0.9rem;
  color: var(--text-2);
  min-width: 100px;
}
.skill-bar-track {
  flex: 1;
  height: 3px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}
.skill-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 100px;
  width: 0;
  transition: width 1s ease;
}

/* ── Projects Section ── */
.projects-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.projects-tabs {
  display: flex;
  gap: 0.25rem;
  background: var(--surface);
  padding: 4px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.tab-btn {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.03em;
}
.tab-btn.active {
  background: var(--accent);
  color: var(--bg);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

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

.project-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  background: var(--accent-glow);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.project-category-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 100px;
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 0.6rem;
  line-height: 1.25;
  font-weight: 400;
}
.project-desc {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.25rem;
}

.project-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.project-link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: color var(--transition);
  padding: 0.25rem 0;
}
.project-link:hover {
  color: var(--accent);
  opacity: 1;
}

/* ── Project Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 720px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 2.5rem;
  transform: translateY(20px) scale(0.98);
  transition: transform var(--transition-slow);
}
.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}
.modal-close {
  width: 32px; height: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
  transition: all var(--transition);
}
.modal-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.modal-section {
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}
.modal-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.modal-section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.modal-section p {
  font-size: 0.95rem;
  color: var(--text-2);
  max-width: none;
}

/* ── Experience / Timeline ── */
.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(var(--accent) 0%, var(--border) 100%);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.75rem;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -2.4rem;
  top: 5px;
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--bg);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 0.35rem;
}
.timeline-role {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 0.1rem;
}
.timeline-org {
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.timeline-desc {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.65;
  max-width: 60ch;
}

/* ── Contact Section ── */
.contact-bg {
  background: var(--bg-2);
}

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

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  text-decoration: none;
  color: var(--text-2);
}
.contact-item:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
  color: var(--text);
  opacity: 1;
  transform: translateX(4px);
}
.contact-icon {
  font-size: 1.2rem;
  width: 36px;
  text-align: center;
}
.contact-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  display: block;
  margin-bottom: 0.15rem;
}
.contact-value {
  font-size: 0.9rem;
  color: var(--text);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.form-input,
.form-textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
  outline: none;
  resize: vertical;
}
.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-3);
}
.form-textarea { min-height: 130px; }

.form-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.form-note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-3);
}

.form-status {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
}
.form-status.success {
  display: block;
  background: rgba(76,175,118,0.1);
  color: var(--green);
  border: 1px solid rgba(76,175,118,0.2);
}
.form-status.error {
  display: block;
  background: rgba(224,92,92,0.1);
  color: var(--red);
  border: 1px solid rgba(224,92,92,0.2);
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding-block: 2rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-left {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
}
.footer-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}
.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
  transition: color var(--transition);
}
.footer-links a:hover {
  color: var(--accent);
  opacity: 1;
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scrollPulse {
  0%,100% { opacity: 0.4; transform: scaleY(0.7); transform-origin: top; }
  50%      { opacity: 1;   transform: scaleY(1);   transform-origin: top; }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Mobile Nav ── */
.nav-mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 1rem;
  z-index: 99;
  flex-direction: column;
  gap: 0.25rem;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-2);
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.nav-mobile-menu a:hover { background: var(--surface); color: var(--text); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-actions .btn-outline { display: none; }
  .nav-mobile-btn { display: flex; }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .projects-controls {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .modal { padding: 1.5rem; }

  .about-stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .about-stats { grid-template-columns: 1fr; }
  .form-submit-row { flex-direction: column; align-items: flex-start; }
}

/* ── Print ── */
@media print {
  .nav, .hero-scroll, .modal-overlay { display: none; }
  body { background: white; color: black; }
}
