/* ============================================================
   hamid-resume — shared design system
   Dark theme: bg #070b14, text #f4f7fb, WhatsApp green #25d366
   Fonts: Plus Jakarta Sans (headings) + Inter (body)
   ============================================================ */

:root {
  --bg: #070b14;
  --bg-soft: #0b1120;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f7fb;
  --text-dim: #aab3c5;
  --text-muted: #7c8698;
  --accent: #25d366;
  --accent-soft: rgba(37, 211, 102, 0.12);
  --gold: #f5b642;
  --red: #ff5e6c;
  --radius: 18px;
  --radius-sm: 10px;
  --maxw: 1200px;
  --nav-h: 72px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --font-head: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Skip link (a11y) ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #04110a;
  padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 700; z-index: 1000;
}
.skip-link:focus { left: 0; color: #04110a; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7, 11, 20, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, #25d366, #128c46);
  color: #04110a; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.nav-links {
  display: flex; align-items: center; gap: 6px; list-style: none;
}
.nav-links a {
  display: inline-block; padding: 8px 14px; border-radius: 8px;
  color: var(--text-dim); font-weight: 600; font-size: 0.95rem;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover { color: var(--text); background: var(--surface-hover); text-decoration: none; }
.nav-links a.active { color: var(--text); background: var(--accent-soft); }

.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #04110a;
  font-weight: 800; font-size: 0.95rem;
  padding: 10px 18px; border-radius: 999px;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.25);
}
.btn-whatsapp:hover { background: #2fe070; transform: translateY(-1px); text-decoration: none; box-shadow: 0 6px 22px rgba(37, 211, 102, 0.35); }
.btn-whatsapp svg { flex: 0 0 auto; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 10px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; border-radius: 2px;
  background: var(--text); transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 64px;
  background:
    radial-gradient(1000px 420px at 85% -10%, rgba(37, 211, 102, 0.12), transparent 60%),
    radial-gradient(800px 380px at -10% 20%, rgba(245, 182, 66, 0.07), transparent 60%);
}
.hero-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--border-strong);
  border-radius: 999px; padding: 6px 14px; background: var(--accent-soft);
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.12; margin-bottom: 20px;
}
.hero .grad {
  background: linear-gradient(92deg, #25d366 0%, #6ee7a7 45%, #a5f3c9 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-block; text-shadow: none;
}
.hero-sub { color: var(--text-dim); font-size: 1.12rem; max-width: 620px; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 1rem; padding: 13px 24px; border-radius: 12px;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}
.btn-primary { background: var(--accent); color: #04110a; }
.btn-primary:hover { background: #2fe070; transform: translateY(-1px); text-decoration: none; }
.btn-ghost { border: 1px solid var(--border-strong); color: var(--text); background: var(--surface); }
.btn-ghost:hover { background: var(--surface-hover); transform: translateY(-1px); text-decoration: none; }
.hero-portrait { text-align: center; }
.portrait-frame {
  display: inline-block; border-radius: 24px; overflow: hidden;
  border: 1px solid var(--border-strong); box-shadow: var(--shadow);
  background: var(--surface);
}
.portrait-frame img { width: 300px; height: auto; }

.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px; margin-top: 44px;
}
.stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 18px;
}
.stat strong { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: var(--accent); }
.stat span { color: var(--text-dim); font-size: 0.88rem; }

/* ---------- Section scaffolding ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-kicker {
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.section-head h2 {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.2; margin-bottom: 12px;
}
.section-head p { color: var(--text-dim); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
}
.card:hover { transform: translateY(-3px); border-color: var(--border-strong); background: var(--surface-hover); }
.card h3 { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--text-dim); font-size: 0.95rem; }

/* Project cards */
.project-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.project-card .pc-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.project-card .pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.project-card:hover .pc-media img { transform: scale(1.03); }
.pc-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(37,211,102,0.10), rgba(37,211,102,0.02) 55%, rgba(245,182,66,0.08));
  font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; color: rgba(255,255,255,0.12);
}
.pc-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.pc-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--border-strong); color: var(--text-dim);
}
.badge-accent { background: var(--accent-soft); color: var(--accent); border-color: rgba(37,211,102,0.3); }
.badge-gold { background: rgba(245,182,66,0.1); color: var(--gold); border-color: rgba(245,182,66,0.3); }
.pc-links { margin-top: auto; display: flex; gap: 12px; flex-wrap: wrap; }
.pc-links a { font-weight: 700; font-size: 0.92rem; }

/* ---------- Project page details ---------- */
.breadcrumbs {
  display: flex; flex-wrap: wrap; gap: 8px; list-style: none;
  font-size: 0.85rem; color: var(--text-muted); margin-bottom: 28px;
}
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--text-muted); }
.breadcrumbs a { color: var(--text-dim); }
.breadcrumbs a:hover { color: var(--accent); text-decoration: none; }
.breadcrumbs [aria-current="page"] { color: var(--text); }

.page-hero { padding: 64px 0 40px; }
.page-hero h1 { font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.15; margin-bottom: 16px; }
.page-hero .lede { color: var(--text-dim); font-size: 1.12rem; max-width: 820px; }
.page-hero .tagline { color: var(--accent); font-weight: 700; margin-bottom: 12px; }

.prose h2 {
  font-family: var(--font-head); font-weight: 800; font-size: 1.5rem;
  margin: 40px 0 14px; scroll-margin-top: calc(var(--nav-h) + 16px);
}
.prose h3 { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; margin: 26px 0 10px; }
.prose p { margin-bottom: 14px; color: var(--text-dim); }
.prose ul, .prose ol { margin: 0 0 16px 20px; color: var(--text-dim); }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text); }
.prose code {
  background: var(--surface-hover); border: 1px solid var(--border);
  border-radius: 6px; padding: 2px 7px; font-size: 0.9em;
}
.prose pre {
  background: #0a101d; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 18px; overflow-x: auto; margin: 16px 0 22px;
}
.prose pre code { background: none; border: 0; padding: 0; }

.tech-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }

.project-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

.screenshot {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden; margin: 18px 0; background: var(--bg-soft);
}
.screenshot img { width: 100%; height: auto; }
.screenshot figcaption { padding: 10px 14px; font-size: 0.82rem; color: var(--text-muted); }

.info-table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 0.95rem; }
.info-table th, .info-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.info-table th { color: var(--text-muted); font-weight: 600; width: 34%; }

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 20px 22px; margin-bottom: 14px;
}
.faq-item h3 { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; margin-bottom: 8px; }
.faq-item p { color: var(--text-dim); font-size: 0.97rem; }

/* ---------- Filters / search (projects directory) ---------- */
.controls { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; align-items: center; }
.controls input[type="search"] {
  flex: 1 1 260px; max-width: 420px;
  background: var(--surface); border: 1px solid var(--border-strong);
  color: var(--text); border-radius: 999px; padding: 12px 20px; font-size: 0.95rem;
  font-family: var(--font-body);
}
.controls input[type="search"]:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.filter-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
  background: var(--surface); color: var(--text-dim); border: 1px solid var(--border-strong);
  border-radius: 999px; padding: 8px 16px; font-size: 0.88rem; font-weight: 700; cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.filter-btn:hover { color: var(--text); border-color: var(--accent); }
.filter-btn.active { background: var(--accent); color: #04110a; border-color: var(--accent); }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.no-results { text-align: center; color: var(--text-muted); padding: 60px 0; display: none; }
.no-results.visible { display: block; }

/* ---------- Contact / CTA ---------- */
.cta-panel {
  background: linear-gradient(135deg, rgba(37,211,102,0.14), rgba(37,211,102,0.03) 60%);
  border: 1px solid rgba(37,211,102,0.3); border-radius: var(--radius);
  padding: 48px; text-align: center; margin-top: 48px;
}
.cta-panel h2 { font-family: var(--font-head); font-weight: 800; font-size: 1.8rem; margin-bottom: 12px; }
.cta-panel p { color: var(--text-dim); max-width: 560px; margin: 0 auto 24px; }
.cta-panel .btn { font-size: 1.05rem; }

.contact-card {
  max-width: 680px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px; text-align: center;
}
.contact-card h1 { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.8rem, 3.6vw, 2.4rem); margin-bottom: 12px; }
.contact-card .lede { color: var(--text-dim); margin-bottom: 26px; }
.wa-big { font-size: 1.1rem; padding: 16px 30px; }
.steps { text-align: left; margin: 28px 0 6px; }
.steps li { color: var(--text-dim); margin-bottom: 10px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 90px; margin-top: 40px; background: var(--bg-soft); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { font-family: var(--font-head); font-weight: 800; font-size: 0.95rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--text-dim); font-size: 0.9rem; }
.site-footer a:hover { color: var(--accent); text-decoration: none; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 0.85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-family: var(--font-head); font-weight: 800; }

/* ---------- Floating WhatsApp button ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--accent); color: #04110a;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 26px rgba(37, 211, 102, 0.4);
  transition: transform 0.15s, background 0.15s;
}
.wa-float:hover { background: #2fe070; transform: translateY(-2px) scale(1.05); text-decoration: none; }

/* ---------- 404 ---------- */
.err-404 { text-align: center; padding: 110px 0 90px; }
.err-404 .code { font-family: var(--font-head); font-weight: 800; font-size: clamp(4rem, 10vw, 7rem); color: var(--accent); }
.err-404 h1 { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin: 10px 0 14px; }
.err-404 p { color: var(--text-dim); max-width: 480px; margin: 0 auto 28px; }

/* ---------- Table responsive ---------- */
.table-wrap { overflow-x: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-portrait { order: -1; }
  .portrait-frame img { width: 240px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(7, 11, 20, 0.98); border-bottom: 1px solid var(--border);
    padding: 14px 24px 20px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 10px; font-size: 1rem; }
  .nav-wa { display: none; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .cta-panel { padding: 32px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ============================================================
   SUPPLEMENT - component classes used by the multi-page build
   (added during UI/UX audit; kept after base design system)
   ============================================================ */

/* ---------- Header (multi-page markup) ---------- */
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.logo { display: inline-flex; align-items: center; gap: 2px; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: var(--text); }
.logo:hover { text-decoration: none; color: var(--text); }
.logo-dot { color: var(--accent); }
.nav-wa { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #04110a; font-weight: 800; font-size: 0.95rem; padding: 10px 18px; border-radius: 999px; box-shadow: 0 4px 16px rgba(37, 211, 102, 0.25); }
.nav-wa:hover { background: #2fe070; color: #04110a; text-decoration: none; }
.nav-links ul { display: contents; list-style: none; }
.nav-links li { list-style: none; }

/* ---------- Utility ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Gradient text (contrast-safe fallback) ---------- */
.gradient-text { background: linear-gradient(92deg, #25d366 0%, #6ee7a7 45%, #a5f3c9 100%); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; }
@supports not ((background-clip: text) or (-webkit-background-clip: text)) { .gradient-text { color: #6ee7a7; } }

/* ---------- Hero (multi-page markup) ---------- */
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center; }
.hero-text .hero-tag { font-size: clamp(1.15rem, 2.6vw, 1.6rem); font-weight: 800; margin-bottom: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 36px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.hero-media { text-align: center; }
.hero-media img { width: min(100%, 360px); height: auto; border-radius: 24px; border: 1px solid var(--border-strong); box-shadow: var(--shadow); margin: 0 auto; }
.hero-status { display: inline-block; margin-top: 18px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--accent-soft); color: var(--text-dim); font-size: 0.9rem; font-weight: 600; }

/* ---------- Page head ---------- */
.page-head { padding: 56px 0 36px; }
.page-head h1 { font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.15; margin-bottom: 14px; }
.page-head .lead { color: var(--text-dim); font-size: 1.12rem; max-width: 820px; }
.lead { color: var(--text-dim); font-size: 1.12rem; }
.section-note { color: var(--text-muted); font-size: 0.92rem; max-width: 760px; }

/* ---------- Pills ---------- */
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pill { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-dim); font-size: 0.85rem; font-weight: 600; }

/* ---------- Experience ---------- */
.exp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 24px; }
.exp-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: transform 0.15s, border-color 0.15s, background 0.15s; }
.exp-card:hover { transform: translateY(-3px); border-color: var(--border-strong); background: var(--surface-hover); }
.exp-card h3 { font-family: var(--font-head); font-weight: 800; font-size: 1.12rem; margin-bottom: 4px; }
.exp-org { color: var(--text-dim); font-size: 0.92rem; margin-bottom: 4px; }
.exp-period { display: inline-block; color: var(--accent); font-size: 0.8rem; font-weight: 700; margin-bottom: 10px; }
.exp-card p:last-of-type { color: var(--text-dim); font-size: 0.95rem; }

/* ---------- Certifications ---------- */
.cert-list { list-style: none; display: grid; gap: 10px; }
.cert-list li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 18px; }
.cert-list a { color: var(--text-dim); font-weight: 600; }
.cert-list a:hover { color: var(--accent); text-decoration: none; }

/* ---------- Check list ---------- */
.check-list { list-style: none; display: grid; gap: 8px; }
.check-list li { position: relative; padding-left: 26px; color: var(--text-dim); font-size: 0.95rem; }
.check-list li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 800; }

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: transform 0.15s, border-color 0.15s, background 0.15s; }
.service-card:hover { transform: translateY(-3px); border-color: var(--border-strong); background: var(--surface-hover); text-decoration: none; }
.service-card h3 { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; }
.service-card p { color: var(--text-dim); font-size: 0.95rem; flex: 1; }
.service-link { color: var(--accent); font-weight: 700; font-size: 0.92rem; }

/* ---------- Skills ---------- */
.skill-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.skill-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.skill-card h2 { font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; margin-bottom: 14px; }

/* ---------- Projects directory toolbar ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 30px; }
.search-input { flex: 1 1 260px; max-width: 420px; background: var(--surface); border: 1px solid var(--border-strong); color: var(--text); border-radius: 999px; padding: 12px 20px; font-size: 0.95rem; font-family: var(--font-body); }
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Project cards: featured badge / category ---------- */
.project-card { position: relative; }
.pc-media { position: relative; }
.pc-featured { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--accent); color: #04110a; font-size: 0.72rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); }
.pc-cat { color: var(--accent); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.pc-body h3 { margin-bottom: 6px; }

/* ---------- Project detail ---------- */
.project-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 24px; }
.project-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.shot-figure { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; margin: 18px 0; background: var(--bg-soft); }
.shot-figure img { width: 100%; height: auto; }
.shot-figure figcaption { padding: 10px 14px; font-size: 0.82rem; color: var(--text-muted); }
.install-block { background: #0a101d; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; overflow-x: auto; margin: 12px 0 20px; }
.install-block code { background: none; border: 0; padding: 0; font-size: 0.9em; color: var(--text); }
.tech-item { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-dim); font-size: 0.82rem; font-weight: 600; margin: 0 8px 8px 0; }
.no-demo-note { border: 1px dashed rgba(245, 182, 66, 0.45); background: rgba(245, 182, 66, 0.07); color: var(--gold); border-radius: var(--radius-sm); padding: 12px 16px; font-size: 0.9rem; margin: 0; }

/* ---------- Buttons ---------- */
.btn-wa { background: var(--accent); color: #04110a; }
.btn-wa:hover { background: #2fe070; text-decoration: none; }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }

/* ---------- CTA band / center CTA ---------- */
.cta-band { background: linear-gradient(135deg, rgba(37, 211, 102, 0.14), rgba(37, 211, 102, 0.03) 60%); border: 1px solid rgba(37, 211, 102, 0.3); border-radius: var(--radius); padding: 48px; text-align: center; margin-top: 48px; }
.cta-band h2 { font-family: var(--font-head); font-weight: 800; font-size: 1.8rem; margin-bottom: 12px; }
.cta-band p { color: var(--text-dim); max-width: 560px; margin: 0 auto 24px; }
.center-cta { text-align: center; }

/* ---------- Contact ---------- */
.contact-panel { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; }
.contact-main h2 { font-family: var(--font-head); font-weight: 800; font-size: 1.8rem; margin-bottom: 14px; }
.contact-main > p { color: var(--text-dim); margin-bottom: 18px; }
.contact-phone { margin-top: 18px; font-size: 1.05rem; }
.wa-link { color: var(--accent); font-weight: 700; }
.wa-link:hover { text-decoration: underline; }
.contact-notes { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 24px; }
.contact-notes h3 { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; margin-bottom: 14px; }

/* ---------- Footer ---------- */
.footer-tag { color: var(--text-dim); font-size: 0.9rem; max-width: 340px; margin-top: 12px; }
.footer-contact p { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 6px; }
.footer-contact strong { color: var(--text); }

/* ---------- 404 ---------- */
.err-wrap { text-align: center; padding: 110px 0 90px; }
.err-code { font-family: var(--font-head); font-weight: 800; font-size: clamp(4rem, 10vw, 7rem); color: var(--accent); }

/* ---------- FAQ details/summary ---------- */
details.faq-item summary { cursor: pointer; font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; color: var(--text); }
details.faq-item summary::-webkit-details-marker { color: var(--accent); }
details.faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
details.faq-item[open] summary { margin-bottom: 10px; }
details.faq-item p { color: var(--text-dim); font-size: 0.97rem; }

/* ---------- Focus visible ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Reduced motion ---------- */
@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; }
}

/* ---------- Responsive supplement ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-media { order: -1; }
  .exp-grid, .service-grid, .skill-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-panel { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .project-grid { grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
  .hero { padding: 64px 0 48px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-media img { width: min(100%, 280px); }
  .exp-grid, .service-grid, .skill-grid { grid-template-columns: 1fr; }
  .page-head { padding: 44px 0 28px; }
  .cta-band { padding: 32px 22px; }
  .contact-panel { padding: 26px 20px; gap: 24px; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .search-input { max-width: none; }
  .wa-float { right: 14px; bottom: 14px; width: 56px; height: 56px; }
  .nav-links a { padding: 14px 10px; }
  .nav-wa { margin-top: 6px; justify-content: center; }
  .nav-links { max-height: calc(100vh - var(--nav-h)); overflow-y: auto; }
}
