/* ============================================================
   Dr. Fawzi Hesham Yasin — Portfolio
   Design tokens
   ============================================================ */
:root {
  /* Color */
  --color-primary: #0B3D5C;      /* deep medical blue */
  --color-primary-dark: #082C43;
  --color-emerald: #0F6E4F;      /* professional emerald */
  --color-emerald-light: #12885F;
  --color-bg: #FFFFFF;
  --color-surface: #F5F7F8;      /* light gray */
  --color-surface-alt: #EEF2F3;
  --color-text: #1E2A32;         /* dark slate */
  --color-text-muted: #55666F;
  --color-accent: #4A90A4;       /* soft blue */
  --color-border: #DDE3E6;

  /* Dark mode */
  --dark-bg: #0E1418;
  --dark-surface: #151D22;
  --dark-surface-alt: #1B252B;
  --dark-text: #E7EDEF;
  --dark-text-muted: #94A5AC;
  --dark-border: #263139;

  /* Type */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

  /* Scale */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.35rem + 0.6vw, 1.85rem);
  --step-3: clamp(1.9rem, 1.65rem + 1vw, 2.5rem);
  --step-4: clamp(2.4rem, 2rem + 1.8vw, 3.4rem);
  --step-5: clamp(3rem, 2.4rem + 2.8vw, 4.6rem);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 8rem;

  /* Misc */
  --radius: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 3px rgba(11, 61, 92, 0.08);
  --shadow-md: 0 8px 24px rgba(11, 61, 92, 0.10);
  --shadow-lg: 0 16px 48px rgba(11, 61, 92, 0.14);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1180px;
}

[data-theme="dark"] {
  --color-bg: var(--dark-bg);
  --color-surface: var(--dark-surface);
  --color-surface-alt: var(--dark-surface-alt);
  --color-text: var(--dark-text);
  --color-text-muted: var(--dark-text-muted);
  --color-border: var(--dark-border);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.45);
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0; color: var(--color-text); }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
:focus-visible {
  outline: 2px solid var(--color-emerald);
  outline-offset: 3px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-emerald);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: var(--space-sm);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--color-emerald);
  display: inline-block;
}

section { padding: var(--space-2xl) 0; }
@media (max-width: 768px) {
  section { padding: var(--space-xl) 0; }
}

.section-head { max-width: 640px; margin-bottom: var(--space-lg); }
.section-head h2 { font-size: var(--step-4); }
.section-head p { color: var(--color-text-muted); margin-top: var(--space-sm); font-size: var(--step-1); }

/* ============================================================
   Vital-line signature motif
   ============================================================ */
.vital-divider {
  width: 100%;
  height: 28px;
  display: block;
  color: var(--color-emerald);
  opacity: 0.55;
}
.vital-divider path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.7em;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); transform: translateY(-2px); }
.btn-emerald {
  background: var(--color-emerald);
  color: #fff;
}
.btn-emerald:hover { background: var(--color-emerald-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-sm { padding: 0.6em 1.2em; font-size: var(--step--1); }

/* ============================================================
   Navigation
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--color-text);
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  flex-shrink: 0;
}
.brand small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  font-weight: 500;
  text-transform: uppercase;
  margin-top: 1px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.nav-links a {
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--color-text-muted);
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.2s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: var(--color-emerald);
  transition: width 0.25s var(--ease);
}
.nav-links a:hover { color: var(--color-text); }
.nav-links a.active { color: var(--color-primary); }
.nav-links a.active::after { width: 100%; }

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

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.theme-toggle:hover { border-color: var(--color-emerald); transform: rotate(15deg); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.menu-toggle span {
  width: 16px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.menu-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .menu-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem var(--space-md) 1rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-links a { width: 100%; padding: 0.85rem 0; border-bottom: 1px solid var(--color-border); }
  .nav-links a::after { display: none; }
}

/* ============================================================
   Loader
   ============================================================ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-mark { width: 180px; color: var(--color-primary); }
.loader-mark path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: draw-line 1.3s var(--ease) forwards;
}
@keyframes draw-line { to { stroke-dashoffset: 0; } }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding: var(--space-2xl) 0 var(--space-xl);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 85% 10%, color-mix(in srgb, var(--color-emerald) 7%, transparent), transparent 45%),
    radial-gradient(circle at 5% 90%, color-mix(in srgb, var(--color-primary) 8%, transparent), transparent 50%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
  background-image:
    linear-gradient(color-mix(in srgb, var(--color-border) 65%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--color-border) 65%, transparent) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-xl);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--space-lg); }
  .hero-portrait { order: -1; max-width: 260px; margin: 0 auto; }
}
.hero-greeting {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 0.8rem;
}
.hero h1 {
  font-size: var(--step-5);
  color: var(--color-primary);
  letter-spacing: -0.01em;
}
.hero-roles {
  margin-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.hero-role {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: var(--step-1);
  color: var(--color-text-muted);
  font-weight: 500;
}
.hero-role .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-emerald); flex-shrink: 0; }
.hero-typed {
  margin-top: var(--space-md);
  font-family: var(--font-mono);
  font-size: var(--step-0);
  color: var(--color-emerald);
  min-height: 1.6em;
}
.hero-typed .cursor { display: inline-block; width: 2px; background: var(--color-emerald); margin-left: 2px; animation: blink 0.9s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero-actions {
  margin-top: var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-portrait {
  position: relative;
  aspect-ratio: 3/3.6;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
}
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; }
.hero-portrait-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  background: color-mix(in srgb, var(--color-bg) 90%, transparent);
  backdrop-filter: blur(6px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--step--1);
  font-weight: 500;
}
.hero-portrait-badge .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-emerald);
  box-shadow: 0 0 0 0 rgba(15,110,79,0.5);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(15,110,79,0.45); }
  70% { box-shadow: 0 0 0 8px rgba(15,110,79,0); }
  100% { box-shadow: 0 0 0 0 rgba(15,110,79,0); }
}

.hero-vital { margin-top: var(--space-xl); }

/* ============================================================
   Stat counters
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: left; }
.stat-num {
  font-family: var(--font-display);
  font-size: var(--step-3);
  color: var(--color-primary);
  font-weight: 600;
}
.stat-label {
  font-size: var(--step--1);
  color: var(--color-text-muted);
  margin-top: 0.3rem;
}

/* ============================================================
   About
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-xl);
  align-items: start;
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.about-copy p { color: var(--color-text-muted); margin-bottom: var(--space-md); font-size: var(--step-0); }
.about-copy p:last-child { margin-bottom: 0; }
.about-copy strong { color: var(--color-text); font-weight: 600; }

.pillars {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.pillar {
  display: flex;
  gap: 1rem;
  padding: 1.2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.pillar:hover { border-color: var(--color-emerald); transform: translateX(4px); }
.pillar-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--color-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pillar-icon svg { width: 19px; height: 19px; }
.pillar h4 { font-size: var(--step-0); margin-bottom: 0.2rem; }
.pillar p { color: var(--color-text-muted); font-size: var(--step--1); }

/* ============================================================
   Skills
   ============================================================ */
.skills-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0;
}
.skills-tab {
  padding: 0.75rem 1.3rem;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--color-text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
  background: none;
  border-top: none; border-left: none; border-right: none;
}
.skills-tab:hover { color: var(--color-text); }
.skills-tab.active { color: var(--color-primary); border-bottom-color: var(--color-emerald); }

.skills-panel { display: none; }
.skills-panel.active { display: block; animation: fade-up 0.4s var(--ease); }

.skill-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem 1.6rem; }
@media (max-width: 600px) { .skill-list { grid-template-columns: 1fr; } }
.skill-item { display: flex; flex-direction: column; gap: 0.45rem; }
.skill-item-top { display: flex; justify-content: space-between; font-size: var(--step--1); }
.skill-name { font-weight: 600; }
.skill-pct { color: var(--color-text-muted); font-family: var(--font-mono); font-size: 0.78rem; }
.skill-bar { height: 5px; border-radius: 3px; background: var(--color-surface-alt); overflow: hidden; }
.skill-bar-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-emerald));
  width: 0%;
  transition: width 1.1s var(--ease);
}

/* ============================================================
   Cards / Projects
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}
@media (max-width: 760px) { .card-grid { grid-template-columns: 1fr; } }

.project-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--color-emerald); }
.project-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 0.9rem; }
.project-icon {
  width: 46px; height: 46px; border-radius: 10px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}
.project-icon svg { width: 22px; height: 22px; }
.project-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-emerald);
  background: color-mix(in srgb, var(--color-emerald) 10%, transparent);
  padding: 0.3rem 0.6rem;
  border-radius: 20px;
  white-space: nowrap;
}
.project-card h3 { font-size: var(--step-2); margin-bottom: 0.5rem; }
.project-card > p.desc { color: var(--color-text-muted); margin-bottom: 1rem; }
.project-features {
  display: flex; flex-wrap: wrap; gap: 0.45rem;
  margin-top: auto; padding-top: 0.9rem;
  border-top: 1px solid var(--color-border);
}
.feature-chip {
  font-size: 0.76rem;
  color: var(--color-text-muted);
  background: var(--color-surface);
  padding: 0.3rem 0.65rem;
  border-radius: 5px;
  border: 1px solid var(--color-border);
}

/* ============================================================
   Timeline (Experience)
   ============================================================ */
.timeline { position: relative; padding-left: 2.1rem; }
.timeline::before {
  content: "";
  position: absolute;
  left: 6px; top: 6px; bottom: 6px;
  width: 1.5px;
  background: var(--color-border);
}
.timeline-item {
  position: relative;
  padding-bottom: var(--space-lg);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.timeline-item.in-view { opacity: 1; transform: translateY(0); }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.1rem; top: 4px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 2.5px solid var(--color-emerald);
}
.timeline-period {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
  display: block;
}
.timeline-item h3 { font-size: var(--step-2); margin-bottom: 0.15rem; }
.timeline-org { color: var(--color-emerald); font-weight: 600; font-size: var(--step--1); margin-bottom: 0.8rem; display: block; }
.timeline-list { display: flex; flex-direction: column; gap: 0.45rem; }
.timeline-list li { color: var(--color-text-muted); display: flex; gap: 0.6rem; font-size: var(--step--1); }
.timeline-list li::before { content: "—"; color: var(--color-emerald); flex-shrink: 0; }

/* ============================================================
   Vision
   ============================================================ */
.vision-section {
  background: var(--color-primary);
  color: #fff;
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .vision-section { background: var(--color-primary-dark); }
.vision-section .eyebrow { color: #8FD4B4; }
.vision-section .eyebrow::before { background: #8FD4B4; }
.vision-section h2 { color: #fff; font-size: var(--step-4); max-width: 780px; }
.vision-section p.lede { color: rgba(255,255,255,0.82); font-size: var(--step-1); max-width: 700px; margin-top: var(--space-sm); }
.vision-tags {
  display: flex; flex-wrap: wrap; gap: 0.7rem;
  margin: var(--space-lg) 0;
}
.vision-tag {
  font-size: var(--step--1);
  padding: 0.6rem 1.1rem;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  background: rgba(255,255,255,0.06);
}
.vision-close {
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: #fff;
  max-width: 780px;
  font-weight: 500;
  line-height: 1.5;
  border-left: 2px solid #8FD4B4;
  padding-left: var(--space-md);
}

/* ============================================================
   Contact
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  text-align: center;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.contact-card:hover { transform: translateY(-5px); border-color: var(--color-emerald); box-shadow: var(--shadow-md); }
.contact-card-icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  background: var(--color-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.contact-card-icon svg { width: 22px; height: 22px; }
.contact-card h4 { font-size: var(--step-0); margin-bottom: 0.3rem; }
.contact-card p { color: var(--color-text-muted); font-size: var(--step--1); margin-bottom: 1rem; word-break: break-word; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-lg) 0 var(--space-md);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.2rem;
}
.footer-copy { color: var(--color-text-muted); font-size: var(--step--1); }
.footer-social { display: flex; gap: 0.7rem; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-muted);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.footer-social a:hover { border-color: var(--color-emerald); color: var(--color-emerald); transform: translateY(-2px); }
.footer-social svg { width: 16px; height: 16px; }

.to-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  z-index: 90;
}
.to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--color-emerald); }
.to-top svg { width: 18px; height: 18px; }

/* ============================================================
   Reveal on scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   Page hero (interior pages)
   ============================================================ */
.page-hero {
  padding: var(--space-xl) 0 var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}
.page-hero h1 { font-size: var(--step-4); color: var(--color-primary); }
.page-hero p { color: var(--color-text-muted); margin-top: 0.8rem; max-width: 620px; font-size: var(--step-1); }

/* Utility */
.text-center { text-align: center; }
.mt-lg { margin-top: var(--space-lg); }
