/* ─────────────────────────────────────────────────────────
   Zambian Student Hub - Global Styles (Dark Theme)
   ───────────────────────────────────────────────────────── */

/* ── Fonts ───────────────────────────────────────────── */
/* Self-hosted (was Google Fonts, whose render-blocking stylesheet delayed
   first paint by ~2s on mobile). Latin + Latin Extended subsets only;
   variable files, so one file covers every weight. Licences: /fonts/. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('/fonts/space-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('/fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Design Tokens ───────────────────────────────────── */
:root {
  /* Match native UI (form controls, scrollbars) to the dark theme */
  color-scheme: dark;

  /* Dark palette - Cosmic Slate */
  --color-bg:           #020617;
  --color-surface:      #0f172a;
  --color-surface-2:    #1e293b;
  --color-surface-deep: #0b1120;
  --color-border:       rgba(51, 65, 85, 0.5);
  --color-border-hover: #475569;

  /* Text */
  --color-text:         #e2e8f0;
  --color-text-muted:   #94a3b8;

  /* Brand */
  --color-primary:        #2dd4bf;
  --color-primary-bright: #5eead4;
  --color-primary-dark:   #14b8a6;
  --color-primary-dim:    rgba(20, 184, 166, 0.1);
  --color-accent:         #818cf8;
  --color-accent-dark:    #6366f1;

  /* Semantic */
  --color-error:        #fb7185;
  --color-success:      #34d399;
  --color-warning:      #fbbf24;
  --color-info:         #818cf8;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg:  0 8px 24px rgba(0,0,0,0.5);

  /* Typography */
  --font-sans:    "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", "Fira Code", monospace;

  /* Shape */
  --radius:    8px;
  --radius-lg: 12px;

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

/* ── Custom Scrollbar ─────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-border-hover); }

/* ── Text Selection ───────────────────────────────────── */
::selection { background: rgba(45, 212, 191, 0.25); color: var(--color-text); }

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--color-primary-dark); text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* ── Typography ──────────────────────────────────────── */
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; color: var(--color-text); font-family: var(--font-display); }
h1 { font-size: 2rem;    margin-bottom: var(--space-md); }
h2 { font-size: 1.5rem;  margin-bottom: var(--space-sm); }
h3 { font-size: 1.25rem; margin-bottom: var(--space-sm); }
p  { margin-bottom: var(--space-md); }

/* ── Layout ──────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ── App Header ──────────────────────────────────────── */
.app-header {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.app-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: var(--space-md);
}

.app-header h1,
.app-header .brand {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
  white-space: nowrap;
  text-decoration: none;
}

.app-header h1 span,
.app-header .brand span { color: var(--color-primary); }

.app-header nav {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.app-header nav a {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

.app-header nav a:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
  text-decoration: none;
}

.app-header nav a.active {
  color: var(--color-primary);
  background: var(--color-primary-dim);
}

/* ── App Main & Footer ───────────────────────────────── */
.app-main { flex: 1; padding: var(--space-xl) 0; }

.app-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--space-lg) 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.app-footer p { margin: 0; }
.app-footer a { color: var(--color-text-muted); }
.app-footer a:hover { color: var(--color-text); }

/* ── Card ────────────────────────────────────────────── */
.card {
  background: linear-gradient(180deg, var(--color-surface), var(--color-surface-deep));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.card h2 {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-md);
}

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.6rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-sans);
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  line-height: 1.4;
}

.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, #14b8a6 100%);
  color: #020617;
  border-color: var(--color-primary);
  box-shadow: 0 1px 3px rgba(45, 212, 191, 0.3);
}
.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #5eead4 0%, var(--color-primary) 100%);
  box-shadow: 0 4px 14px rgba(45, 212, 191, 0.4);
  text-decoration: none;
  color: #020617;
  transform: translateY(-1px);
}
.btn-primary:active:not(:disabled) { transform: translateY(0); box-shadow: none; }

.btn-accent {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  color: #020617;
  border-color: var(--color-accent);
  box-shadow: 0 1px 3px rgba(129, 140, 248, 0.3);
}
.btn-accent:hover:not(:disabled) {
  background: linear-gradient(135deg, #a5b4fc 0%, var(--color-accent) 100%);
  box-shadow: 0 4px 14px rgba(129, 140, 248, 0.4);
  text-decoration: none;
  color: #020617;
  transform: translateY(-1px);
}
.btn-accent:active:not(:disabled) { transform: translateY(0); box-shadow: none; }

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-outline:hover:not(:disabled) {
  background: var(--color-surface-2);
  border-color: var(--color-border-hover);
  text-decoration: none;
  color: var(--color-text);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  border-color: transparent;
}
.btn-ghost:hover:not(:disabled) {
  background: var(--color-surface-2);
  color: var(--color-text);
}

.btn-sm  { padding: 0.35rem 0.8rem;  font-size: 0.85rem; }
.btn-lg  { padding: 0.85rem 1.75rem; font-size: 1.05rem; }

/* ── Forms ───────────────────────────────────────────── */
.form-group { margin-bottom: var(--space-md); }

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: var(--space-xs);
  color: var(--color-text);
}

.form-control {
  width: 100%;
  padding: 0.6rem 0.85rem;
  font-size: 1rem;
  font-family: var(--font-sans);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-control::placeholder { color: var(--color-text-muted); }

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.15);
}

select.form-control { appearance: auto; }

/* ── Grid Form ───────────────────────────────────────── */
.grid-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-sm);
  align-items: end;
}

/* ── Utility ─────────────────────────────────────────── */
.hidden        { display: none !important; }
.text-center   { text-align: center; }
.text-muted    { color: var(--color-text-muted); }
.gradient-text {
  background: linear-gradient(135deg, var(--color-text) 40%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.mt-md         { margin-top: var(--space-md); }
.mt-lg         { margin-top: var(--space-lg); }
.mb-md         { margin-bottom: var(--space-md); }
.mb-lg         { margin-bottom: var(--space-lg); }
.flex          { display: flex; }
.flex-col      { flex-direction: column; }
.flex-wrap     { flex-wrap: wrap; }
.items-center  { align-items: center; }
.justify-center{ justify-content: center; }
.justify-between{ justify-content: space-between; }
.gap-sm        { gap: var(--space-sm); }
.gap-md        { gap: var(--space-md); }
.w-full        { width: 100%; }

/* ── Badge ───────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.badge-green  { background: rgba(52,211,153,0.12); color: var(--color-success); border: 1px solid rgba(52,211,153,0.3); }
.badge-blue   { background: rgba(129,140,248,0.12);color: var(--color-info);    border: 1px solid rgba(129,140,248,0.3); }
.badge-orange { background: rgba(251,191,36,0.12); color: var(--color-warning); border: 1px solid rgba(251,191,36,0.3); }

/* ── Alerts ──────────────────────────────────────────── */
.alert {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius);
  margin-bottom: var(--space-md);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  border-left-width: 3px;
}

.alert-error   { background: rgba(251,113,133,0.08); color: #fb7185; border-color: rgba(251,113,133,0.2); border-left-color: #fb7185; }
.alert-success { background: rgba(52,211,153,0.08);  color: #34d399; border-color: rgba(52,211,153,0.2);  border-left-color: #34d399; }
.alert-info    { background: rgba(129,140,248,0.08); color: #818cf8; border-color: rgba(129,140,248,0.2); border-left-color: #818cf8; }
.alert-warning { background: rgba(251,191,36,0.08);  color: #fbbf24; border-color: rgba(251,191,36,0.2);  border-left-color: #fbbf24; }

/* ── Spinner ─────────────────────────────────────────── */
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: var(--space-lg) auto;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Skeleton ────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--color-surface) 25%,
    var(--color-surface-2) 50%,
    var(--color-surface) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.8s infinite;
  border-radius: var(--radius);
  color: transparent !important;
  pointer-events: none;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Token Status / Timer ────────────────────────────── */
.token-status {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-mono);
}
.token-status.active  { background: rgba(52,211,153,0.12);  color: var(--color-success); }
.token-status.expired { background: rgba(251,113,133,0.12); color: var(--color-error);   }
.token-status.pending { background: rgba(251,191,36,0.12);  color: var(--color-warning); }

/* ── University Grid Hero ────────────────────────────── */
.uni-grid-hero {
  text-align: center;
  padding: var(--space-2xl) 0 var(--space-xl);
}

.uni-grid-hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-text) 40%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--space-md);
}

.uni-grid-hero p {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 auto var(--space-lg);
}

.uni-grid-hero p strong { color: var(--color-text); }

/* ── Stats Bar ───────────────────────────────────────── */
.stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

/* ── University Grid ─────────────────────────────────── */
.university-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

/* ── Entrance Animation ───────────────────────────────── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.university-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--uni-color, var(--color-border));
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, box-shadow 0.2s, transform 0.18s;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  animation: fadeSlideUp 0.45s ease both;
  animation-delay: calc(var(--i, 0) * 0.04s);
}

.university-card:hover {
  background: var(--color-surface-2);
  border-color: var(--uni-color, var(--color-border-hover));
  border-left-color: var(--uni-color, var(--color-primary));
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}

.university-card:active { transform: translateY(0); box-shadow: none; }

.uni-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  background: white;
  padding: 4px;
  flex-shrink: 0;
}

.uni-info { flex: 1; min-width: 0; }

.uni-abbr {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.uni-name {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.uni-arrow {
  color: var(--color-border-hover);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: color 0.18s, transform 0.18s;
}

.university-card:hover .uni-arrow {
  color: var(--uni-color, var(--color-text-muted));
  transform: translateX(3px);
}

/* ── Feature Cards (Study Tools) ─────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s, background 0.18s, transform 0.18s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.feature-card:hover {
  border-color: var(--color-primary);
  background: var(--color-surface-2);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  text-decoration: none;
  color: inherit;
}

.feature-card:active { transform: translateY(0); box-shadow: none; }

.feature-icon { font-size: 2rem; line-height: 1; }
.feature-card h3 { margin: 0; font-size: 1.05rem; font-weight: 700; }
.feature-card p  { color: var(--color-text-muted); font-size: 0.88rem; margin: 0; flex: 1; }

/* ── Past Paper Item ─────────────────────────────────── */
.paper-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
}
.paper-item:last-child { border-bottom: none; }
.paper-item h3 { margin-bottom: var(--space-xs); }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
  .university-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  html { font-size: 15px; }

  .app-header .container {
    flex-direction: column;
    height: auto;
    padding: var(--space-sm) var(--space-md);
    gap: var(--space-xs);
  }

  .app-header nav { flex-wrap: wrap; justify-content: center; }

  .uni-grid-hero h1 { font-size: 2rem; }

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

@media (max-width: 480px) {
  html { font-size: 14px; }
  .university-grid { grid-template-columns: 1fr; }
}

/* ── PWA install banner ─────────────────────────────── */
.pwa-install-bar {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translate(-50%, 160%);
  width: calc(100% - 2rem);
  max-width: 460px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 1rem;
  background: var(--color-surface, #0f172a);
  border: 1px solid var(--color-border, rgba(51, 65, 85, 0.5));
  border-radius: 14px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  opacity: 0;
  transition: transform 0.32s ease, opacity 0.32s ease;
}
.pwa-install-bar.show { transform: translate(-50%, 0); opacity: 1; }
.pwa-install-icon { border-radius: 10px; flex-shrink: 0; }
.pwa-install-text { display: flex; flex-direction: column; line-height: 1.3; flex: 1; min-width: 0; }
.pwa-install-text strong { font-size: 0.92rem; color: var(--color-text, #e2e8f0); }
.pwa-install-text span { font-size: 0.78rem; color: var(--color-text-muted, #94a3b8); }
.pwa-install-actions { display: flex; align-items: center; gap: 0.35rem; flex-shrink: 0; }
.pwa-install-btn {
  background: var(--color-primary, #2dd4bf);
  color: #020617;
  border: 0;
  border-radius: 8px;
  padding: 0.5rem 0.95rem;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
}
.pwa-install-btn:hover { filter: brightness(1.08); }
.pwa-install-close {
  background: transparent;
  border: 0;
  color: var(--color-text-muted, #94a3b8);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.25rem;
}
.pwa-install-close:hover { color: var(--color-text, #e2e8f0); }

/* ── Pricing survey ────────────────────────────────────
 * Intentionally empty. The modal's rules are injected by /survey.js itself
 * instead of living here: /css/* is cached for a day and served
 * stale-while-revalidate by the service worker, so a returning visitor
 * could get the modal markup with no styling at all. Do not move them back. */

/* ── About: developer profile ───────────────────────── */
.profile-card { display: flex; gap: 1.5rem; align-items: flex-start; flex-wrap: wrap; }
.profile-avatar {
  width: 140px;
  height: 140px;
  border-radius: 16px;
  object-fit: cover;
  border: 3px solid var(--color-primary);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}
.profile-photo {
  width: 240px;
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  border: 3px solid var(--color-primary);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}
@media (max-width: 560px) {
  .profile-card { justify-content: center; }
  .profile-photo { width: 100%; max-width: 320px; }
}
.profile-body { flex: 1; min-width: 240px; }
.profile-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.profile-role { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.85rem; }

/* ── About: certifications ──────────────────────────── */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.cert-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.1rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
}
.cert-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.6rem; }
.cert-card h3 { margin: 0; font-size: 1.02rem; line-height: 1.3; }
.cert-issuer { margin: 0.2rem 0 0; font-size: 0.8rem; color: var(--color-text-muted); }
.cert-date {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-text-muted);
  white-space: nowrap;
  padding-top: 0.15rem;
}
.skill-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.skill-chip {
  font-size: 0.72rem;
  padding: 0.22rem 0.6rem;
  border-radius: 20px;
  color: var(--color-text);
  background: color-mix(in srgb, var(--color-primary) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-primary) 32%, transparent);
}
.cert-card .btn { margin-top: auto; align-self: flex-start; }

/* ── Services ───────────────────────────────────────── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.service-card:hover { transform: translateY(-3px); border-color: var(--color-primary); }
.service-card h3 { margin: 0; font-size: 1.05rem; }
.service-card .btn { margin-top: auto; align-self: flex-start; }
.service-icon { font-size: 1.9rem; line-height: 1; }
.service-featured {
  border: 1px solid color-mix(in srgb, var(--color-primary) 45%, var(--color-border));
  background: linear-gradient(135deg, color-mix(in srgb, var(--color-primary) 10%, var(--color-surface)), var(--color-surface));
}
.service-featured-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.service-price-box { flex-shrink: 0; text-align: right; }
.service-price { font-size: 1.9rem; font-weight: 800; color: var(--color-primary); white-space: nowrap; }
.service-price small { font-size: 0.85rem; font-weight: 600; color: var(--color-text-muted); }

/* ── Reduced motion ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
