/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.no-scroll { overflow: hidden; }

html[lang="fa"] body {
  font-family: 'Vazirmatn', 'Inter', system-ui, sans-serif;
  line-height: 1.8;
}

img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ---------- Theme tokens ---------- */
:root,
[data-theme="dark"] {
  --bg: #0a0a0c;
  --bg-elev: #111114;
  --bg-card: #14141a;
  --border: #1f1f28;
  --border-strong: #2a2a36;
  --text: #e5e7eb;
  --text-dim: #9ca3af;
  --text-muted: #6b7280;
  --accent: #00d4ff;
  --accent-ink: #001a22;
  --accent-dim: rgba(0, 212, 255, 0.12);
  --accent-glow: rgba(0, 212, 255, 0.35);
  --header-bg: rgba(10, 10, 12, 0.72);
  --logo-tile: #ffffff;
  --logo-tile-border: transparent;
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
}

[data-theme="light"] {
  --bg: #f8f8fa;
  --bg-elev: #ffffff;
  --bg-card: #ffffff;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --text: #0a0a0c;
  --text-dim: #4b5563;
  --text-muted: #9ca3af;
  --accent: #0085a3;
  --accent-ink: #ffffff;
  --accent-dim: rgba(0, 133, 163, 0.10);
  --accent-glow: rgba(0, 133, 163, 0.25);
  --header-bg: rgba(248, 248, 250, 0.78);
  --logo-tile: #ffffff;
  --logo-tile-border: var(--border);
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.12);
}

:root {
  --container: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
}

body { transition: background-color .25s ease, color .25s ease; }

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

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #001a22; padding: .5rem .75rem;
  border-radius: var(--radius-sm); z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Flag banner (TR / FA only) ---------- */
.flag-banner {
  display: none;
  width: 100%;
  height: 36px;
  align-items: center;
  justify-content: center;
}
.flag-mark { display: none; height: 100%; width: auto; }

html[lang="tr"] .flag-banner {
  display: flex;
  background: #E30A17;
}
html[lang="tr"] .flag-mark-tr { display: block; }

html[lang="fa"] .flag-banner {
  display: flex;
  background: linear-gradient(
    to bottom,
    #239F40 0 33.333%,
    #fff 33.333% 66.666%,
    #DA0000 66.666% 100%
  );
}

@media (max-width: 720px) {
  .flag-banner { height: 28px; }
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background-color .25s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); }

.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 1.1rem;
  gap: 1rem;
}
.logo {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700; font-size: 1.15rem;
  letter-spacing: -.02em;
}
.logo-mark { color: var(--text); }
.logo-dot, .logo-ext { color: var(--accent); }

.nav-menu { display: flex; align-items: center; gap: 2rem; }
.nav-links {
  display: flex; gap: 1.6rem;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  color: var(--text-dim);
  font-size: .92rem;
  font-weight: 500;
  transition: color .15s ease;
  position: relative;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--accent); }

.lang-switcher {
  display: inline-flex;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}
.lang-switcher button {
  background: transparent; border: 0; color: var(--text-dim);
  font-size: .78rem; font-weight: 600;
  padding: .35rem .7rem; border-radius: 999px;
  letter-spacing: .05em;
  transition: color .15s ease, background .15s ease;
}
.lang-switcher button.active {
  background: var(--accent); color: var(--accent-ink);
}

.nav-controls { display: flex; align-items: center; gap: .6rem; }

.theme-toggle {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text-dim);
  display: inline-flex; align-items: center; justify-content: center;
  transition: color .15s ease, border-color .15s ease, transform .2s ease;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle:active { transform: scale(0.95); }
.theme-toggle .ico { width: 18px; height: 18px; }
[data-theme="dark"]  .ico-sun { display: none; }
[data-theme="light"] .ico-moon { display: none; }
.lang-switcher button:hover:not(.active) { color: var(--text); }

.nav-toggle {
  display: none;
  background: transparent; border: 0; padding: .5rem;
  flex-direction: column; gap: 5px;
  position: relative; z-index: 60;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--text);
  border-radius: 2px;
  transform-origin: center;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(3rem, 9vw, 7rem) clamp(3rem, 7vw, 5rem);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.eyebrow {
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: .85rem;
  letter-spacing: .02em;
  margin: 0 0 .8rem;
}
html[lang="fa"] .eyebrow { font-family: 'Vazirmatn', monospace; }

.hero-name {
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -.025em;
  margin: 0 0 .5rem;
  font-weight: 800;
  color: var(--text);
}
[data-theme="dark"] .hero-name {
  background: linear-gradient(180deg, #fff 0%, #b8b8c0 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-title {
  color: var(--text-dim);
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  font-weight: 500;
  margin: 0 0 1.2rem;
  letter-spacing: -.01em;
}
.hero-intro {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 56ch;
  margin: 0 0 2rem;
}
.hero-cta {
  display: flex; gap: .85rem; flex-wrap: wrap;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: .92rem;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -8px var(--accent-glow); }
.btn-ghost {
  background: transparent; color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-large { padding: 1rem 1.8rem; font-size: 1rem; }

.hero-socials {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 1rem;
}
.hero-socials a {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--text-dim);
  transition: color .15s ease, border-color .15s ease, transform .15s ease;
}
.hero-socials a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

.hero-photo {
  position: relative;
  justify-self: center;
}
.photo-frame {
  width: clamp(220px, 28vw, 340px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border-strong);
  box-shadow: var(--shadow), 0 0 0 6px rgba(0, 212, 255, 0.06);
  position: relative; z-index: 1;
  background: var(--bg-elev);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-glow {
  position: absolute; inset: -20%;
  background: radial-gradient(circle at center, var(--accent-glow), transparent 60%);
  filter: blur(40px);
  z-index: 0;
  opacity: .35;
}

/* ---------- Section common ---------- */
.section { padding-block: clamp(3rem, 7vw, 6rem); }
.section-title {
  display: flex; align-items: center; gap: .8rem;
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  letter-spacing: -.02em;
  margin: 0 0 2.5rem;
  font-weight: 700;
}
.section-title .num {
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent);
  font-size: .9em;
  font-weight: 500;
}
html[lang="fa"] .section-title .num { font-family: 'Vazirmatn', monospace; }
.section-title.centered { justify-content: center; text-align: center; }
.section-lead {
  color: var(--text-dim);
  font-size: 1rem;
  margin: -1.5rem 0 2.2rem;
  max-width: 60ch;
}
.section-foot { margin-top: 2rem; }
.link-arrow {
  color: var(--accent); font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease;
}
.link-arrow:hover { border-bottom-color: var(--accent); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.about-text p { margin: 0 0 1rem; color: var(--text-dim); }
.about-text p:first-child { color: var(--text); font-size: 1.05rem; }

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.about-card h3 {
  margin: 0 0 1rem;
  font-size: .85rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--accent);
}
.fact-list { list-style: none; margin: 0; padding: 0; }
.fact-list li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding-block: .55rem;
  border-bottom: 1px solid var(--border);
  font-size: .92rem;
  flex-wrap: wrap;
}
.fact-list li:last-child { border-bottom: 0; }
.fact-key { color: var(--text-muted); white-space: nowrap; }
.fact-val { color: var(--text); font-weight: 500; text-align: end; min-width: 0; }

/* ---------- Experience (logo-card grid) ---------- */
.experience-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}
.exp-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1rem 1.3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  transition: transform .2s ease, border-color .2s ease;
}
.exp-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.exp-logo-frame {
  width: 76px;
  height: 76px;
  border-radius: 16px;
  background: var(--logo-tile);
  border: 1px solid var(--logo-tile-border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}
.exp-logo-frame.is-fallback {
  background: linear-gradient(135deg, var(--accent), #0066ff);
  padding: 0;
}
.exp-logo-frame.is-bleed {
  background: transparent;
  padding: 0;
}
.exp-logo-frame.is-bleed .exp-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.exp-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.exp-logo-text {
  color: var(--accent-ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -.02em;
}
html[lang="fa"] .exp-logo-text { font-family: 'Vazirmatn', monospace; }
.exp-company {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.005em;
}

/* ---------- Skills ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.skill-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
}
.skill-group h3 {
  margin: 0 0 .8rem;
  font-size: .85rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--accent);
}
.skill-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.skill-tags span {
  font-family: 'JetBrains Mono', monospace;
  font-size: .78rem;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 999px;
  padding: .3rem .65rem;
}
html[lang="fa"] .skill-tags span { font-family: 'Vazirmatn', monospace; }

/* ---------- Projects ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.1rem;
}
.proj-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: .7rem;
  transition: transform .2s ease, border-color .2s ease;
  position: relative;
}
.proj-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.proj-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: .5rem;
}
.proj-icon { color: var(--accent); }
.proj-stars {
  display: inline-flex; align-items: center; gap: .25rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: .82rem;
}
html[lang="fa"] .proj-stars { font-family: 'Vazirmatn', monospace; }
.proj-name {
  margin: 0;
  font-size: 1.05rem; font-weight: 700;
}
.proj-name a { color: var(--text); transition: color .15s ease; }
.proj-name a:hover { color: var(--accent); }
.proj-desc {
  color: var(--text-dim);
  font-size: .9rem;
  margin: 0;
  flex: 1;
}
.proj-lang {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--text-muted);
  font-size: .8rem;
  margin-top: auto;
}
.lang-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }

/* ---------- Mobile Apps ---------- */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.1rem;
}
.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: .8rem;
  position: relative;
  transition: transform .2s ease, border-color .2s ease;
}
.app-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.app-platform {
  position: absolute; top: 1rem; inset-inline-end: 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem; font-weight: 600;
  padding: .2rem .55rem;
  border-radius: 999px;
  letter-spacing: .05em;
}
html[lang="fa"] .app-platform { font-family: 'Vazirmatn', monospace; }
.app-platform.android { background: rgba(52, 211, 153, 0.12); color: #34d399; }
.app-platform.ios { background: rgba(168, 162, 158, 0.15); color: #d6d3d1; }
.app-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #0066ff);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-ink);
  overflow: hidden;
  flex-shrink: 0;
}
.app-icon.has-image { background: transparent; padding: 0; }
.app-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }

.app-shots {
  display: flex;
  gap: .55rem;
  overflow-x: auto;
  padding-bottom: .25rem;
  margin-block: .25rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.app-shots::-webkit-scrollbar { height: 6px; }
.app-shots::-webkit-scrollbar-track { background: transparent; }
.app-shots::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
.app-shot {
  height: 150px;
  width: auto;
  border-radius: 10px;
  flex-shrink: 0;
  cursor: zoom-in;
  border: 1px solid var(--border);
  transition: transform .15s ease, border-color .15s ease;
}
.app-shot:hover { transform: translateY(-2px); border-color: var(--accent); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 2.5rem);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox .lb-img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}
.lb-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 42px; height: 42px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  font-size: 1.5rem; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.lb-close:hover { background: rgba(0, 0, 0, 0.8); }
.app-name { margin: 0; font-size: 1.1rem; font-weight: 700; }
.app-desc { color: var(--text-dim); font-size: .9rem; margin: 0; flex: 1; }
.app-cta {
  margin-top: .4rem;
  display: inline-flex; align-items: center; gap: .35rem;
  color: var(--accent);
  font-weight: 600; font-size: .9rem;
}
.app-cta::after { content: "→"; transition: transform .15s ease; }
.app-card:hover .app-cta::after { transform: translateX(4px); }
html[dir="rtl"] .app-cta::after { content: "←"; }
html[dir="rtl"] .app-card:hover .app-cta::after { transform: translateX(-4px); }
.app-cta.disabled { color: var(--text-muted); pointer-events: none; }

/* ---------- Contact ---------- */
.section-contact { text-align: center; padding-block: clamp(4rem, 9vw, 8rem); }
.contact-inner { max-width: 720px; }
.contact-lead {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin: 0 auto 2rem;
  max-width: 56ch;
}
.contact-links {
  list-style: none; margin: 2rem 0 0; padding: 0;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 1.5rem;
  color: var(--text-muted); font-size: .9rem;
}
.contact-links a {
  color: var(--text-dim);
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.contact-links a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 2rem 2.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: .85rem;
}
.site-footer p { margin: .25rem 0; }
.footer-tag { color: var(--text-muted); }

/* ---------- RTL adjustments ---------- */
html[dir="rtl"] .exp-bullets li::before { content: "◃"; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-photo { order: -1; }
  .hero-intro { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-socials { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  /* backdrop-filter creates a containing block for fixed descendants,
     which would clamp .nav-menu to the header. Drop it at mobile. */
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
  }

  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; inset: 64px 0 0 0;
    flex-direction: column; align-items: stretch; gap: 1.5rem;
    background: var(--bg-elev);
    padding: 1.5rem 1.5rem 2rem;
    transform: translateX(100%);
    transition: transform .25s ease;
    border-top: 1px solid var(--border);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  html[dir="rtl"] .nav-menu { transform: translateX(-100%); }
  .nav-menu.open { transform: translateX(0); }
  .nav-links { flex-direction: column; gap: 1rem; font-size: 1.05rem; align-items: flex-start; }
  .nav-links a { font-size: 1.05rem; padding-block: .25rem; }
  .nav-controls {
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .container { padding-inline: 1.1rem; }
  .section { padding-block: clamp(2.5rem, 10vw, 4rem); }
  .section-title { font-size: 1.45rem; margin-bottom: 1.75rem; }
  .section-lead { margin-top: -1rem; font-size: .95rem; }

  .hero { padding-block: 2.5rem 2.5rem; }
  .photo-frame { width: 200px; }
  .hero-cta { width: 100%; flex-direction: column; gap: .65rem; }
  .hero-cta .btn { width: 100%; }
  .hero-socials a { width: 44px; height: 44px; }

  .exp-logo-frame { width: 64px; height: 64px; padding: 10px; border-radius: 14px; }
  .exp-card { padding: 1.25rem .75rem 1rem; gap: .75rem; }
  .exp-company { font-size: .9rem; }

  .lang-switcher button { padding: .4rem .75rem; font-size: .8rem; }
  .theme-toggle { width: 40px; height: 40px; }

  .about-card { padding: 1.25rem; }
  .about-text p:first-child { font-size: 1rem; }

  .proj-card, .app-card, .skill-group { padding: 1.25rem; }
  .contact-links { gap: 1rem; }
}

@media (max-width: 360px) {
  .experience-list { grid-template-columns: repeat(2, 1fr); }
  .hero-name { font-size: 2rem; }
}

@media (hover: none) {
  .exp-card:hover, .proj-card:hover, .app-card:hover { transform: none; }
}
