:root {
  --bg-primary: #080808;
  --bg-secondary: #0f0f0f;
  --bg-card: #111111;
  --bg-card-hover: #161616;
  --border: #1e1e1e;
  --border-bright: #2a2a2a;
  --text-primary: #f0f0f0;
  --text-secondary: #888;
  --text-muted: #444;
  --accent: #e8ff47;
  --accent-dim: rgba(232,255,71,0.08);
  --accent-glow: rgba(232,255,71,0.15);
  --violet: #9d6fff;
  --violet-dim: rgba(157,111,255,0.1);
  --cyan: #00d4ff;
  --cyan-dim: rgba(0,212,255,0.08);
  --red: #ff4747;
  --green: #39ff84;
  --font-display: 'Syne', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --font-arabic: 'IBM Plex Sans Arabic', sans-serif;
  --radius: 4px;
  --radius-lg: 8px;
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}
[data-theme="light"] {
  --bg-primary: #f5f5f0; --bg-secondary: #ebebeb; --bg-card: #ffffff;
  --bg-card-hover: #f9f9f9; --border: #e0e0e0; --border-bright: #cccccc;
  --text-primary: #0a0a0a; --text-secondary: #555; --text-muted: #aaa;
  --accent: #1a1a00; --accent-dim: rgba(26,26,0,0.06); --accent-glow: rgba(26,26,0,0.1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; cursor: none; }
body {
  background: var(--bg-primary); color: var(--text-primary);
  font-family: var(--font-display); line-height: 1.6;
  overflow-x: hidden; transition: background var(--transition), color var(--transition);
}
body[dir="rtl"] { font-family: var(--font-arabic); }
.cursor {
  width: 8px; height: 8px; background: var(--accent); border-radius: 50%;
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%); transition: width 0.2s, height 0.2s, background 0.2s;
  mix-blend-mode: difference;
}
.cursor-ring {
  width: 32px; height: 32px; border: 1px solid rgba(232,255,71,0.4);
  border-radius: 50%; position: fixed; top: 0; left: 0; pointer-events: none;
  z-index: 9998; transform: translate(-50%, -50%); transition: all 0.12s ease;
}
@media (hover: none) and (pointer: coarse) {
  html { cursor: auto; }
  .cursor, .cursor-ring { display: none; }
}
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-bright); }
body::before {
  content: ''; position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0; opacity: 0.4;
}
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 40px; height: 64px; display: flex; align-items: center;
  justify-content: space-between; border-bottom: 1px solid transparent;
  transition: all var(--transition); backdrop-filter: blur(0px);
}
.navbar.scrolled { background: rgba(8,8,8,0.92); border-bottom-color: var(--border); backdrop-filter: blur(20px); }
[data-theme="light"] .navbar.scrolled { background: rgba(245,245,240,0.92); }
.nav-logo { font-family: var(--font-mono); font-size: 13px; color: var(--text-primary); text-decoration: none; letter-spacing: 0.1em; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { font-family: var(--font-mono); font-size: 11px; color: var(--text-secondary); text-decoration: none; letter-spacing: 0.12em; text-transform: uppercase; transition: color var(--transition); }
.nav-links a:hover { color: var(--text-primary); }
.nav-links a.active { color: var(--accent); }
.nav-controls { display: flex; align-items: center; gap: 8px; }
.btn-control { background: transparent; border: 1px solid var(--border); color: var(--text-secondary); font-family: var(--font-mono); font-size: 10px; padding: 6px 12px; border-radius: var(--radius); cursor: none; letter-spacing: 0.1em; transition: all var(--transition); }
.btn-control:hover { border-color: var(--accent); color: var(--accent); }
.lang-switcher { display: flex; align-items: center; gap: 4px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 4px; }
.lang-btn { background: transparent; border: none; color: var(--text-muted); font-family: var(--font-mono); font-size: 10px; padding: 4px 8px; border-radius: 2px; cursor: none; transition: all var(--transition); letter-spacing: 0.05em; }
.lang-btn.active { background: var(--accent); color: #000; }
.lang-btn:hover:not(.active) { color: var(--text-primary); }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: none; padding: 8px; background: transparent; border: none; }
.nav-hamburger span { display: block; width: 20px; height: 1px; background: var(--text-primary); transition: all var(--transition); }
.nav-mobile { display: none; position: fixed; inset: 64px 0 0 0; background: var(--bg-primary); z-index: 999; padding: 40px; flex-direction: column; gap: 24px; border-top: 1px solid var(--border); overflow-y: auto; }
.nav-mobile.open { display: flex; }
.nav-mobile a { font-family: var(--font-mono); font-size: 14px; color: var(--text-secondary); text-decoration: none; letter-spacing: 0.1em; text-transform: uppercase; padding: 12px 0; border-bottom: 1px solid var(--border); transition: color var(--transition); }
.nav-mobile a:hover { color: var(--accent); }
main { position: relative; z-index: 1; }
section { padding: 100px 40px; max-width: 1200px; margin: 0 auto; }
.section-label { font-family: var(--font-mono); font-size: 10px; color: var(--accent); letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.section-label::before { content: ''; display: inline-block; width: 24px; height: 1px; background: var(--accent); }
[dir="rtl"] .section-label::before { order: 1; }
.section-title { font-size: clamp(36px, 6vw, 72px); font-weight: 800; line-height: 0.95; letter-spacing: -0.03em; }
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-end; padding: 200px 40px 80px; position: relative; overflow: hidden; }
.hero-grid-overlay { position: absolute; inset: 0; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 60px 60px; opacity: 0.3; pointer-events: none; }
.hero-glow { position: absolute; width: 600px; height: 600px; background: radial-gradient(circle, rgba(232,255,71,0.06) 0%, transparent 70%); top: -100px; right: -100px; pointer-events: none; animation: pulse-glow 6s ease-in-out infinite; }
@keyframes pulse-glow { 0%, 100% { opacity: 0.6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.1); } }
.hero-content { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; width: 100%; }
.hero-layout { display: flex; align-items: flex-start; gap: 60px; width: 100%; }
.hero-text-col { flex: 1; min-width: 0; }
.hero-eyebrow { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 24px; display: flex; align-items: center; gap: 12px; }
.hero-eyebrow::before { content: ''; width: 40px; height: 1px; background: var(--accent); }
[dir="rtl"] .hero-eyebrow { flex-direction: row-reverse; }
.hero-headline { font-size: clamp(48px, 8vw, 110px); font-weight: 800; line-height: 0.92; letter-spacing: -0.04em; margin-bottom: 32px; }
.hero-headline .line-accent { color: var(--accent); }
.hero-headline .line-outline { -webkit-text-stroke: 1px var(--border-bright); color: transparent; }
.hero-sub { font-size: 16px; color: var(--text-secondary); max-width: 560px; line-height: 1.7; margin-bottom: 48px; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.btn-primary { background: var(--accent); color: #000; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; padding: 14px 28px; border: none; border-radius: var(--radius); cursor: none; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; transition: all var(--transition); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px var(--accent-glow); }
.btn-secondary { background: transparent; color: var(--text-primary); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; padding: 13px 28px; border: 1px solid var(--border-bright); border-radius: var(--radius); cursor: none; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: all var(--transition); }
.btn-secondary:hover { border-color: var(--text-primary); transform: translateY(-2px); }
.hero-bottom { margin-top: 80px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 24px; flex-wrap: wrap; gap: 24px; }
.hero-stats { display: flex; gap: 48px; flex-wrap: wrap; }
.hero-stat-num { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; color: var(--text-primary); }
.hero-stat-label { font-family: var(--font-mono); font-size: 9px; color: var(--text-muted); letter-spacing: 0.15em; text-transform: uppercase; margin-top: 4px; }
.status-badge { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10px; color: var(--text-secondary); letter-spacing: 0.1em; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: status-pulse 2s ease-in-out infinite; }
@keyframes status-pulse { 0%, 100% { box-shadow: 0 0 4px var(--green); } 50% { box-shadow: 0 0 12px var(--green); } }
.bento-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; max-width: 1200px; margin: 0 auto; padding: 0 40px 100px; }
.bento-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; position: relative; overflow: hidden; transition: all var(--transition); cursor: none; }
.bento-card:hover { background: var(--bg-card-hover); border-color: var(--border-bright); transform: translateY(-2px); }
.bento-card::before { content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity var(--transition); background: linear-gradient(135deg, var(--accent-dim), transparent); pointer-events: none; }
.bento-card:hover::before { opacity: 1; }
.span-4 { grid-column: span 4; } .span-6 { grid-column: span 6; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; } .span-3 { grid-column: span 3; }
.card-tag { font-family: var(--font-mono); font-size: 9px; color: var(--text-muted); letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 16px; }
.card-title { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; line-height: 1.2; }
.card-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.card-link { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10px; color: var(--accent); letter-spacing: 0.12em; text-decoration: none; text-transform: uppercase; margin-top: 20px; transition: gap var(--transition); }
.card-link:hover { gap: 10px; }
.card-mindpilot { border-color: rgba(157,111,255,0.3); background: linear-gradient(135deg, var(--bg-card), rgba(157,111,255,0.04)); }
.card-mindpilot:hover { border-color: rgba(157,111,255,0.5); }
.card-mindpilot::before { background: linear-gradient(135deg, var(--violet-dim), transparent); }
.live-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,71,71,0.1); border: 1px solid rgba(255,71,71,0.25); color: var(--red); font-family: var(--font-mono); font-size: 9px; padding: 4px 10px; border-radius: 20px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px; }
.live-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--red); animation: status-pulse 1.5s ease-in-out infinite; }
.progress-bar-wrap { margin-top: 20px; }
.progress-label { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 9px; color: var(--text-muted); letter-spacing: 0.1em; margin-bottom: 6px; }
.progress-bar { height: 2px; background: var(--border); border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--violet); border-radius: 2px; box-shadow: 0 0 8px var(--violet); transition: width 1s ease; }
.card-future { border-color: rgba(0,212,255,0.2); background: linear-gradient(135deg, var(--bg-card), rgba(0,212,255,0.03)); }
.card-future:hover { border-color: rgba(0,212,255,0.4); }
.future-tag { font-family: var(--font-mono); font-size: 9px; color: var(--cyan); letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 16px; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tech-tag { font-family: var(--font-mono); font-size: 9px; padding: 4px 10px; border: 1px solid var(--border); border-radius: 3px; color: var(--text-muted); letter-spacing: 0.08em; }
footer { border-top: 1px solid var(--border); padding: 40px; max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-mono { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); letter-spacing: 0.1em; }
.footer-mono span { color: var(--accent); }
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up { opacity: 1; transform: none; transition: none; }
  .hero-photo-col { opacity: 1 !important; transform: none !important; transition: none !important; }
  .scan-line, .status-dot, .live-dot, .hero-glow, .frame-glow { animation: none !important; }
}
@media (max-width: 1024px) {
  .span-4 { grid-column: span 6; } .span-8 { grid-column: span 12; } .span-3 { grid-column: span 6; }
}
@media (max-width: 768px) {
  .navbar { padding: 0 20px; } .nav-links { display: none; } .nav-hamburger { display: flex; }
  section { padding: 60px 20px; } .hero { padding: 100px 20px 60px; }
  .bento-grid { padding: 0 20px 60px; gap: 8px; }
  .span-4, .span-6, .span-8, .span-12, .span-3 { grid-column: span 12; }
  .hero-stats { gap: 24px; }
  footer { padding: 24px 20px; flex-direction: column; align-items: flex-start; }
}
[dir="rtl"] .card-link { flex-direction: row-reverse; }
[dir="rtl"] .status-badge { flex-direction: row-reverse; }
[dir="rtl"] .hero-bottom { flex-direction: row-reverse; }
[dir="rtl"] .hero-stats { flex-direction: row-reverse; }
[dir="rtl"] .progress-label { flex-direction: row-reverse; }

/* HERO PHOTO */
.hero-photo-col {
  flex-shrink: 0;
  width: 300px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  transition: opacity 0.9s ease 0.3s, transform 0.9s cubic-bezier(0.34,1.56,0.64,1) 0.3s;
}
.hero-photo-col.visible { opacity: 1; transform: translateY(0) scale(1); }
[dir="rtl"] .hero-layout { flex-direction: row-reverse; }

.hero-photo-frame { position: relative; width: 260px; height: 340px; }
.hero-photo-frame::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), transparent 60%, var(--violet));
  opacity: 0.4;
  z-index: 0;
  animation: frame-glow 4s ease-in-out infinite;
}
@keyframes frame-glow { 0%, 100% { opacity: 0.3; } 50% { opacity: 0.7; } }
.hero-photo-frame::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 40px;
  background: radial-gradient(ellipse, rgba(232,255,71,0.15) 0%, transparent 70%);
  filter: blur(8px);
  z-index: 0;
}
.hero-photo-img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  border-radius: 10px; position: relative; z-index: 1; display: block;
  filter: grayscale(15%); transition: filter 0.4s ease;
}
.hero-photo-frame:hover .hero-photo-img { filter: grayscale(0%); }
.hero-photo-frame .scan-line {
  position: absolute; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5; z-index: 2; animation: scan 3s ease-in-out infinite; pointer-events: none;
}
@keyframes scan { 0% { top: 0%; opacity: 0; } 10% { opacity: 0.5; } 90% { opacity: 0.5; } 100% { top: 100%; opacity: 0; } }
.hero-photo-frame .corner { position: absolute; width: 16px; height: 16px; z-index: 3; border-color: var(--accent); border-style: solid; border-width: 0; }
.corner.tl { top: 6px; left: 6px; border-top-width: 2px; border-left-width: 2px; }
.corner.tr { top: 6px; right: 6px; border-top-width: 2px; border-right-width: 2px; }
.corner.bl { bottom: 6px; left: 6px; border-bottom-width: 2px; border-left-width: 2px; }
.corner.br { bottom: 6px; right: 6px; border-bottom-width: 2px; border-right-width: 2px; }
.hero-photo-placeholder {
  width: 100%; height: 100%; border-radius: 10px; background: var(--bg-card);
  border: 1px solid var(--border); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px; position: relative; z-index: 1;
}
.hero-photo-placeholder span { font-size: 48px; opacity: 0.3; }
.hero-photo-placeholder p { font-family: var(--font-mono); font-size: 9px; color: var(--text-muted); letter-spacing: 0.12em; text-align: center; padding: 0 16px; }

@media (max-width: 900px) {
  .hero-layout { flex-direction: column-reverse !important; gap: 24px; }
  .hero-photo-col { width: 100%; justify-content: flex-start; padding-bottom: 0; }
  .hero-photo-frame { width: 120px; height: 160px; }
}
@media (max-width: 768px) {
  .hero-photo-col { display: flex; }
  .hero-photo-frame { width: 100px; height: 140px; }
}

/* Focus visibility for keyboard users */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ===== Inner page header (About / Projects / Skills / etc.) ===== */
.page-hero { padding: 160px 40px 40px; max-width: 1200px; margin: 0 auto; position: relative; }
.page-hero-title { font-size: clamp(32px, 5vw, 64px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 24px; max-width: 900px; }
.page-hero-sub { font-size: 15px; color: var(--text-secondary); max-width: 680px; line-height: 1.8; }

/* ===== Timeline ===== */
.timeline { position: relative; margin-top: 28px; padding-left: 28px; border-left: 1px solid var(--border); display: flex; flex-direction: column; gap: 32px; }
[dir="rtl"] .timeline { padding-left: 0; padding-right: 28px; border-left: none; border-right: 1px solid var(--border); }
.timeline-item { position: relative; }
.timeline-item::before {
  content: ''; position: absolute; left: -33px; top: 4px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--bg-card), 0 0 8px var(--accent-glow);
}
[dir="rtl"] .timeline-item::before { left: auto; right: -33px; }
.timeline-year { font-family: var(--font-mono); font-size: 10px; color: var(--accent); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 6px; }
.timeline-title { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 6px; }
.timeline-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; max-width: 560px; }

/* ===== Checklist (e.g. "Right Now" panel) ===== */
.check-list { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.check-item { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
[dir="rtl"] .check-item { flex-direction: row-reverse; text-align: right; }
.check-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 6px; }

/* ===== Language proficiency rows ===== */
.lang-rows { display: flex; flex-direction: column; gap: 18px; margin-top: 16px; }
.lang-row-label { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; color: var(--text-primary); margin-bottom: 6px; }
[dir="rtl"] .lang-row-label { flex-direction: row-reverse; }
.lang-row-level { color: var(--text-muted); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; }

/* ================================================================
   ADDITIONS — append this block to the end of css/style.css
   Covers: Font Awesome icon sizing, theme button, social links,
   metrics rows, testimonials.
   ================================================================ */

/* ----- Font Awesome inside existing components ----- */
.btn-theme { display: inline-flex; align-items: center; gap: 6px; }
.btn-primary i, .btn-secondary i, .card-link i { font-size: 10px; transition: transform var(--transition); }
.btn-primary:hover i, .card-link:hover i { transform: translateX(3px); }
[dir="rtl"] .btn-primary:hover i, [dir="rtl"] .card-link:hover i { transform: translateX(-3px); }
.tech-tag { display: inline-flex; align-items: center; gap: 6px; }
.tech-tag i { font-size: 10px; color: var(--text-muted); }

.hero-photo-placeholder i { font-size: 40px; opacity: 0.3; }

.future-icon {
  width: 32px; height: 32px; flex-shrink: 0; display: flex; align-items: center;
  justify-content: center; font-size: 14px; color: var(--cyan);
  border: 1px solid rgba(0,212,255,0.25); border-radius: 6px; background: var(--cyan-dim);
}

/* ----- Social links (hero + footer) ----- */
.hero-socials { display: flex; gap: 14px; margin-top: 28px; }
.hero-socials a {
  width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--text-secondary);
  text-decoration: none; transition: all var(--transition); font-size: 14px;
}
.hero-socials a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.footer-socials { display: flex; gap: 16px; order: 1; }
.footer-socials a { color: var(--text-muted); font-size: 14px; text-decoration: none; transition: color var(--transition); }
.footer-socials a:hover { color: var(--accent); }

/* ----- Mini metrics (SmartTap / Freelance cards) ----- */
.mini-metrics { display: flex; gap: 20px; margin-top: 20px; flex-wrap: wrap; }
.mini-metrics-compact { margin-top: 16px; margin-bottom: 4px; }
.mini-metric { display: flex; align-items: center; gap: 10px; }
.mini-metric i { font-size: 14px; color: var(--violet); width: 20px; text-align: center; }
.mini-metric div { display: flex; flex-direction: column; }
.mini-metric span { font-size: 15px; font-weight: 700; color: var(--text-primary); line-height: 1.1; }
.mini-metric small { font-family: var(--font-mono); font-size: 9px; color: var(--text-muted); letter-spacing: 0.06em; margin-top: 2px; }

/* ----- Testimonials ----- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.testimonial-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px; display: flex; flex-direction: column; gap: 16px; transition: all var(--transition);
}
.testimonial-card:hover { border-color: var(--border-bright); transform: translateY(-2px); }
.testimonial-quote-icon { color: var(--accent); font-size: 16px; opacity: 0.6; }
.testimonial-text { font-size: 13px; color: var(--text-secondary); line-height: 1.7; flex: 1; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--bg-secondary);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 13px; flex-shrink: 0;
}
.testimonial-name { font-size: 12px; font-weight: 700; color: var(--text-primary); }
.testimonial-role { font-family: var(--font-mono); font-size: 9px; color: var(--text-muted); letter-spacing: 0.06em; margin-top: 2px; }

@media (max-width: 900px) {
  .testimonial-grid { grid-template-columns: 1fr; }
  .mini-metrics { gap: 16px; }
}

[dir="rtl"] .hero-socials { flex-direction: row-reverse; }
[dir="rtl"] .footer-socials { flex-direction: row-reverse; }
[dir="rtl"] .mini-metric { flex-direction: row-reverse; text-align: right; }


/* ================================================================
   INSIGHTS PAGE ADDITIONS — append to css/style.css
   (on top of the style-additions.css block already added for index.html)
   ================================================================ */

/* ----- Page-hero meta row (essay count + RSS) ----- */
.insights-meta-row {
  display: flex; align-items: center; gap: 24px; margin-top: 24px;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); letter-spacing: 0.06em;
}
.insights-meta-row i { color: var(--accent); margin-right: 4px; }
.insights-rss-link { color: var(--text-muted); text-decoration: none; transition: color var(--transition); }
.insights-rss-link:hover { color: var(--accent); }
[dir="rtl"] .insights-meta-row { flex-direction: row-reverse; }

/* ----- Topic filter chips ----- */
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 8px 14px; border: 1px solid var(--border); border-radius: 20px;
  background: transparent; color: var(--text-secondary); cursor: none; transition: all var(--transition);
}
.filter-chip i { font-size: 10px; }
.filter-chip:hover { border-color: var(--border-bright); color: var(--text-primary); }
.filter-chip.active { background: var(--accent); border-color: var(--accent); color: #000; font-weight: 700; }

/* ----- Essay cards ----- */
.essay-top-row { display: flex; align-items: flex-start; gap: 20px; }
.essay-icon {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(232,255,71,0.2);
}
.essay-icon-violet { background: var(--violet-dim); color: var(--violet); border-color: rgba(157,111,255,0.2); }
.essay-icon-cyan { background: var(--cyan-dim); color: var(--cyan); border-color: rgba(0,212,255,0.2); }
[dir="rtl"] .essay-top-row { flex-direction: row-reverse; }

.featured-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); border: 1px solid rgba(232,255,71,0.3); background: var(--accent-dim);
  padding: 3px 9px; border-radius: 20px;
}
.essay-meta { display: inline-flex; align-items: center; gap: 6px; }
.dot-sep { opacity: 0.5; }

.empty-state { transition: opacity var(--transition); }

/* ----- Newsletter box ----- */
.newsletter-card { border-color: rgba(0,212,255,0.2); background: linear-gradient(135deg, var(--bg-card), rgba(0,212,255,0.03)); }
.newsletter-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.newsletter-btn { white-space: nowrap; }

@media (max-width: 768px) {
  .essay-top-row { flex-direction: column; }
  .essay-icon { width: 36px; height: 36px; font-size: 14px; }
  .newsletter-inner { flex-direction: column; align-items: flex-start; }
}

/* ================================================================
   CONTACT PAGE ADDITIONS — append to css/style.css
   (on top of the two style-additions blocks already added)
   ================================================================ */

/* ----- Response-time badge under the page-hero intro ----- */
.contact-response-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px;
  font-family: var(--font-mono); font-size: 10px; color: var(--text-secondary); letter-spacing: 0.08em;
  border: 1px solid var(--border); border-radius: 20px; padding: 8px 14px; background: var(--bg-card);
}
.contact-response-badge i { color: var(--text-muted); }

/* ----- Contact method cards ----- */
.contact-method-card { position: relative; transition: all var(--transition); }
.contact-method-icon {
  width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--accent); background: var(--accent-dim); border: 1px solid rgba(232,255,71,0.2);
  margin-bottom: 14px;
}
.contact-method-primary { border-color: rgba(232,255,71,0.35); background: linear-gradient(135deg, var(--bg-card), var(--accent-dim)); }
.preferred-badge {
  position: absolute; top: 16px; right: 16px;
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); border: 1px solid rgba(232,255,71,0.3); background: var(--accent-dim);
  padding: 3px 8px; border-radius: 20px;
}
[dir="rtl"] .preferred-badge { right: auto; left: 16px; }
.contact-value { margin-top: 2px; }
.contact-method-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.contact-action-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-secondary); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 6px 10px; background: transparent; cursor: none; text-decoration: none; transition: all var(--transition);
}
.contact-action-link:hover { border-color: var(--accent); color: var(--accent); }
.contact-copy-btn.copied { border-color: var(--green); color: var(--green); }

/* ----- Timezone line inside availability card ----- */
.contact-timezone {
  display: flex; align-items: center; gap: 8px; margin-top: 16px;
  font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); letter-spacing: 0.05em;
}
.contact-timezone i { color: var(--cyan); }

/* ----- Check-list icons (replacing plain dots on this page) ----- */
.check-item { align-items: center; }
.check-icon { width: 16px; text-align: center; color: var(--accent); font-size: 12px; flex-shrink: 0; margin-top: 0; }
[dir="rtl"] .check-icon { margin-top: 0; }

@media (max-width: 480px) {
  .preferred-badge { position: static; display: inline-flex; margin-bottom: 10px; }
}

/* ================================================================
   SKILLS PAGE ADDITIONS — append to css/style.css
   (on top of the three style-additions blocks already added)
   ================================================================ */

/* ----- "I BUILD" / "I'M LEARNING" zone labels ----- */
.zone-label {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; margin-bottom: 18px;
}
.zone-label-accent { color: var(--accent); }
.zone-label-cyan { color: var(--cyan); }

/* ----- Skill row icons inside proficiency bars ----- */
.skill-row-icon { width: 16px; margin-right: 8px; color: var(--text-muted); font-size: 12px; }
[dir="rtl"] .skill-row-icon { margin-right: 0; margin-left: 8px; }
.lang-row-label { align-items: center; }
.lang-row-label > span:first-child { display: inline-flex; align-items: center; }

/* ----- Category icons on the 4 skill-category cards ----- */
.category-icon {
  width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--text-secondary); background: var(--bg-secondary); border: 1px solid var(--border);
  margin-bottom: 14px;
}
.category-icon-accent { color: var(--accent); background: var(--accent-dim); border-color: rgba(232,255,71,0.2); }
.category-icon-cyan { color: var(--cyan); background: var(--cyan-dim); border-color: rgba(0,212,255,0.2); }

/* Progress bar transition for the scroll-in animation */
.progress-fill { transition: width 1s cubic-bezier(0.4,0,0.2,1); }


/* ================================================================
   ABOUT PAGE ADDITIONS — append to css/style.css
   (on top of the four style-additions blocks already added)
   ================================================================ */

/* ----- About hero: text + photo side by side (reuses .hero-photo-frame from index) ----- */
.about-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 48px; flex-wrap: wrap;
}
.about-hero-text { flex: 1; min-width: 280px; }
.about-hero-photo { flex-shrink: 0; }
.about-hero-photo .hero-photo-frame { width: 220px; height: 280px; }
[dir="rtl"] .about-hero { flex-direction: row-reverse; }

@media (max-width: 900px) {
  .about-hero { flex-direction: column-reverse; gap: 28px; }
  .about-hero-photo .hero-photo-frame { width: 160px; height: 200px; }
}

/* ----- Timeline icons (replacing plain year text) ----- */
.timeline-year { display: flex; align-items: center; gap: 8px; }
.timeline-icon { font-size: 11px; color: var(--accent); }
[dir="rtl"] .timeline-year { flex-direction: row-reverse; }

/* ----- Timeline milestone thumbnails (hidden automatically if the image is missing) ----- */
.timeline-thumb {
  margin-top: 14px; max-width: 360px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); background: var(--bg-card);
}
.timeline-thumb img { display: block; width: 100%; height: auto; }


/* ================================================================
   ECOCITY CASE STUDY PAGE ADDITIONS — append to css/style.css
   (on top of the style-additions blocks already added for the
   other pages)
   ================================================================ */

/* ----- Completed / status badge (used instead of the red "live" badge) ----- */
.completed-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--green); border: 1px solid rgba(57,255,132,0.25); background: rgba(57,255,132,0.08);
  padding: 6px 12px; border-radius: 20px;
}

/* ----- Screenshot gallery ----- */
.screenshot-gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  max-width: 1200px; margin: 0 auto; padding: 0 40px;
}
.screenshot-frame {
  position: relative; aspect-ratio: 9 / 16; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--border); background: var(--bg-card);
}
.screenshot-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.screenshot-placeholder {
  display: none; position: absolute; inset: 0; align-items: center; justify-content: center;
  font-size: 28px; color: var(--text-muted); background: var(--bg-card);
}
.screenshot-frame.screenshot-empty img { display: none; }
.screenshot-frame.screenshot-empty .screenshot-placeholder { display: flex; }

@media (max-width: 768px) {
  .screenshot-gallery { grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 20px; }
}

/* ----- Step icons (How It Works cards) ----- */
.step-icon {
  width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--accent); background: var(--accent-dim); border: 1px solid rgba(232,255,71,0.2);
  margin-bottom: 14px;
}

/* ================================================================
   PDF CHATBOT CASE STUDY PAGE ADDITIONS — append to css/style.css
   (reuses .completed-badge, .step-icon, .category-icon, and
   .screenshot-frame already added for the EcoCity page — make sure
   ecocity-style-additions.css is included before this one)
   ================================================================ */

/* ----- Wide 16:9 screenshot variant (desktop app UI, not mobile) ----- */
.screenshot-gallery-wide { grid-template-columns: repeat(2, 1fr); }
.screenshot-frame-wide { aspect-ratio: 16 / 10; }

@media (max-width: 768px) {
  .screenshot-gallery-wide { grid-template-columns: 1fr; }
}

/* ----- "What I Learned" lessons card ----- */
.lessons-card { border-color: rgba(157,111,255,0.25); background: linear-gradient(135deg, var(--bg-card), rgba(157,111,255,0.04)); }
.lessons-card .card-tag { display: flex; align-items: center; gap: 8px; color: var(--violet); }