:root {
  --bg: #0b101b;
  --bg-elev: #111827;
  --card: #121926;
  --card-hover: #161f30;
  --border: rgba(148, 163, 184, 0.14);
  --border-hover: rgba(59, 130, 246, 0.45);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-soft: #64748b;
  --primary: #2563eb;
  --primary-hover: #3b82f6;
  --primary-soft: rgba(37, 99, 235, 0.14);
  --emerald: #34d399;
  --emerald-soft: rgba(16, 185, 129, 0.14);
  --amber: #f59e0b;
  --cyan: #38bdf8;
  --violet: #a78bfa;
  --violet-soft: rgba(139, 92, 246, 0.14);
  --grid-line: rgba(148, 163, 184, 0.045);
  --nav-bg: rgba(11, 16, 27, 0.82);
  --input-bg: #121a29;
  --tag-bg: rgba(148, 163, 184, 0.1);
  --tag-text: #cbd5e1;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

[data-theme="light"] {
  --bg: #f4f7fb;
  --bg-elev: #ffffff;
  --card: #ffffff;
  --card-hover: #f8fbff;
  --border: rgba(15, 23, 42, 0.1);
  --border-hover: rgba(37, 99, 235, 0.45);
  --text: #0f172a;
  --text-muted: #475569;
  --text-soft: #64748b;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: rgba(37, 99, 235, 0.1);
  --emerald: #059669;
  --emerald-soft: rgba(16, 185, 129, 0.12);
  --amber: #d97706;
  --cyan: #0284c7;
  --violet: #7c3aed;
  --violet-soft: rgba(124, 58, 237, 0.1);
  --grid-line: rgba(15, 23, 42, 0.04);
  --nav-bg: rgba(244, 247, 251, 0.86);
  --input-bg: #ffffff;
  --tag-bg: rgba(15, 23, 42, 0.06);
  --tag-text: #334155;
  --shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

code {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

a {
  color: inherit;
  text-decoration: none;
}

.hidden {
  display: none !important;
}

/* Ambient Background */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
  z-index: -2;
}

.bg-glow {
  position: fixed;
  border-radius: 999px;
  filter: blur(110px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.22;
}

.bg-glow-1 {
  width: 520px;
  height: 520px;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
}

.bg-glow-2 {
  width: 420px;
  height: 420px;
  bottom: -140px;
  right: -120px;
  background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
}

.container {
  width: 100%;
  max-width: max(85vw, 1180px);
  margin: 0 auto;
  padding: 0 24px;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
}

.brand-domain {
  color: var(--text-muted);
  font-weight: 500;
  margin-left: -8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.18s ease;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link-accent {
  color: var(--cyan);
  font-weight: 600;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.15s ease;
}

.theme-toggle:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }

/* Hero */
.hero {
  padding: 58px 22px 32px;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--primary-soft);
  border: 1px solid rgba(59, 130, 246, 0.28);
  color: #60a5fa;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

[data-theme="light"] .hero-pill {
  color: #1d4ed8;
}

.hero-title {
  margin: 0 auto 18px;
  max-width: 820px;
  font-size: clamp(2.1rem, 4.6vw, 3.55rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 55%, #34d399 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

[data-theme="light"] .gradient-text {
  background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 60%, #059669 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin: 0 auto 26px;
  max-width: 720px;
  font-size: 1.02rem;
  color: var(--text-muted);
}

.hero-subtitle strong {
  color: var(--text);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: var(--card);
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--border-hover);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-hover);
}

/* Stat Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  max-width: 100%;
  margin: 0 auto;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 14px;
  text-align: center;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.stat-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.stat-value {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.stat-label {
  margin-top: 5px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.text-blue { color: #60a5fa; }
.text-emerald { color: var(--emerald); }
.text-amber { color: var(--amber); }
.text-cyan { color: var(--cyan); }
.text-violet { color: var(--violet); }

[data-theme="light"] .text-blue { color: #2563eb; }

/* Controls */
.projects-section {
  padding-top: 18px;
  padding-bottom: 64px;
}

.controls-wrap {
  max-width: min(100%, max(64vw, 860px));
  margin: 0 auto 30px;
}

.search-box {
  position: relative;
  margin-bottom: 14px;
}

.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-soft);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  height: 44px;
  padding: 0 16px 0 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.search-box input::placeholder {
  color: var(--text-soft);
}

.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.filter-pill {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.filter-pill:hover {
  color: var(--text);
  border-color: var(--border-hover);
}

.filter-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  border-color: var(--border-hover);
  background: var(--card-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.card-ident {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.project-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.project-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  line-height: 1.2;
}

.project-title {
  margin: 3px 0 0;
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-green {
  background: var(--emerald-soft);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.28);
}

.badge-blue {
  background: var(--primary-soft);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.28);
}

[data-theme="light"] .badge-blue {
  color: #1d4ed8;
}

.badge-violet {
  background: var(--violet-soft);
  color: var(--violet);
  border: 1px solid rgba(139, 92, 246, 0.28);
}

.badge-neutral {
  background: var(--tag-bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* Mini Visual Preview inside Card */
.card-preview {
  position: relative;
  height: 92px;
  border-radius: 11px;
  border: 1px solid var(--border);
  margin-bottom: 14px;
  overflow: hidden;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.preview-dots {
  display: flex;
  gap: 5px;
}

.preview-dots span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  opacity: 0.75;
}

.preview-dots span:nth-child(1) { background: #ef4444; }
.preview-dots span:nth-child(2) { background: #f59e0b; }
.preview-dots span:nth-child(3) { background: #10b981; }

.preview-url {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: rgba(241, 245, 249, 0.85);
  background: rgba(15, 23, 42, 0.45);
  padding: 2px 8px;
  border-radius: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-metrics {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.preview-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(15, 23, 42, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 3px 8px;
  border-radius: 6px;
}

.card-desc {
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: var(--text-muted);
  flex: 1;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 7px;
  background: var(--tag-bg);
  color: var(--tag-text);
  font-size: 0.74rem;
  font-weight: 500;
}

.tag-highlight {
  background: var(--emerald-soft);
  color: var(--emerald);
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.card-actions .btn-detail {
  flex: 1;
  padding: 9px 14px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.16s ease;
}

.card-actions .btn-detail:hover {
  background: var(--primary-hover);
}

.card-actions .btn-open {
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--tag-bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: border-color 0.16s ease, color 0.16s ease;
}

.card-actions .btn-open:hover {
  border-color: var(--border-hover);
  color: var(--cyan);
}

.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}

/* Section Headers */
.section-head {
  margin-bottom: 22px;
}

.section-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 6px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

/* About Section */
.about-section {
  padding-bottom: 64px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
}

.surface-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.exp-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.exp-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 800;
  flex-shrink: 0;
}

.exp-role {
  font-size: 1.08rem;
  font-weight: 700;
}

.exp-company {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.exp-company a {
  color: var(--cyan);
  font-weight: 600;
}

.exp-period {
  font-size: 0.8rem;
  color: var(--emerald);
  font-weight: 600;
  margin-top: 2px;
}

.surface-text {
  margin: 0 0 18px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.surface-text strong {
  color: var(--text);
}

.quick-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mini-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 9px;
  background: var(--tag-bg);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  transition: border-color 0.16s ease, color 0.16s ease;
}

.mini-link:hover {
  border-color: var(--border-hover);
  color: var(--cyan);
}

.surface-title {
  margin: 0 0 16px;
  font-size: 1.06rem;
  font-weight: 700;
}

.stack-groups {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stack-group-label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  margin-bottom: 7px;
}

.stack-group .tag-list {
  margin-bottom: 0;
}

/* Infrastructure Map */
.infra-section {
  padding-bottom: 72px;
}

.infra-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.infra-row {
  display: grid;
  grid-template-columns: 260px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 13px;
  background: var(--card);
  border: 1px solid var(--border);
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.infra-row:hover {
  border-color: var(--border-hover);
  transform: translateX(3px);
}

.infra-path code {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cyan);
}

.infra-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links a:hover {
  color: var(--cyan);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 9, 17, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-dialog {
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px 14px;
  border-bottom: 1px solid var(--border);
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-title {
  margin: 2px 0 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.modal-close {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
}

.modal-close:hover {
  color: var(--text);
  border-color: var(--border-hover);
}

.modal-preview {
  margin: 16px 22px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  padding: 14px 16px;
}

.modal-body {
  padding: 18px 22px;
}

.modal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.modal-desc {
  margin: 0 0 18px;
  font-size: 0.94rem;
  color: var(--text-muted);
}

.modal-section {
  margin-bottom: 16px;
}

.modal-section h4 {
  margin: 0 0 8px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-soft);
}

.modal-features {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.modal-features li {
  margin-bottom: 6px;
}

.modal-note {
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--primary-soft);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: var(--text);
  font-size: 0.83rem;
}

.modal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 22px 20px;
  border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 980px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .container {
    max-width: 100%;
    padding: 0 16px;
  }
  .nav-links {
    gap: 12px;
  }
  .nav-links .nav-link:not(.nav-link-accent) {
    display: none;
  }
  .hero {
    padding: 36px 16px 26px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stats-grid .stat-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .infra-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .infra-path code {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 420px) {
  body {
    overflow-x: clip;
  }
  .container {
    padding: 0 12px;
  }
  .nav-inner {
    height: 56px;
    gap: 10px;
  }
  .brand {
    font-size: 0.96rem;
    gap: 8px;
  }
  .brand-badge {
    width: 28px;
    height: 28px;
    font-size: 0.72rem;
  }
  .nav-link-accent {
    font-size: 0.84rem;
  }
  .theme-toggle {
    width: 34px;
    height: 34px;
  }
  .hero {
    padding: 26px 12px 20px;
  }
  .hero-pill {
    font-size: 0.64rem;
    letter-spacing: 0.05em;
    padding: 6px 12px;
    line-height: 1.35;
    max-width: 100%;
    text-align: center;
  }
  .hero-title {
    font-size: 1.72rem;
    line-height: 1.15;
    margin-bottom: 14px;
  }
  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 24px;
  }
  .hero-actions .btn {
    width: 100%;
    min-height: 44px;
    font-size: 0.88rem;
  }
  .stats-grid {
    gap: 10px;
  }
  .stat-card {
    padding: 13px 10px;
    border-radius: 12px;
  }
  .stat-value {
    font-size: 1.12rem;
  }
  .stat-label {
    font-size: 0.72rem;
  }
  .projects-section {
    padding-top: 10px;
    padding-bottom: 44px;
  }
  .controls-wrap {
    margin-bottom: 20px;
  }
  .search-box input {
    height: 42px;
    font-size: 0.84rem;
    padding-left: 40px;
  }
  .filter-pills {
    gap: 6px;
  }
  .filter-pill {
    padding: 6px 11px;
    font-size: 0.75rem;
  }
  .projects-grid {
    gap: 14px;
  }
  .project-card {
    padding: 15px;
    border-radius: 14px;
  }
  .card-top {
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
  }
  .project-icon {
    width: 38px;
    height: 38px;
    font-size: 0.92rem;
    border-radius: 10px;
  }
  .project-title {
    font-size: 0.98rem;
  }
  .badge {
    font-size: 0.68rem;
    padding: 3px 8px;
  }
  .card-preview {
    height: 84px;
    padding: 8px 10px;
  }
  .preview-url {
    font-size: 0.63rem;
    max-width: 72%;
  }
  .preview-pill {
    font-size: 0.62rem;
    padding: 2px 6px;
  }
  .card-desc {
    font-size: 0.84rem;
  }
  .tag {
    font-size: 0.7rem;
    padding: 3px 8px;
  }
  .card-actions {
    flex-wrap: wrap;
  }
  .card-actions .btn-detail,
  .card-actions .btn-open {
    min-height: 42px;
    font-size: 0.82rem;
  }
  .section-head h2 {
    font-size: 1.35rem;
  }
  .about-section,
  .infra-section {
    padding-bottom: 44px;
  }
  .surface-card {
    padding: 16px;
    border-radius: 14px;
  }
  .exp-header {
    align-items: flex-start;
  }
  .exp-logo {
    width: 40px;
    height: 40px;
    font-size: 1.15rem;
  }
  .exp-role {
    font-size: 1rem;
  }
  .exp-company,
  .surface-text {
    font-size: 0.86rem;
  }
  .infra-row {
    padding: 12px 14px;
  }
  .infra-path code {
    font-size: 0.78rem;
  }
  .infra-desc {
    font-size: 0.82rem;
  }
  .footer {
    padding: 20px 0;
    font-size: 0.78rem;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .modal-backdrop {
    padding: 10px;
  }
  .modal-dialog {
    max-height: 92vh;
    border-radius: 14px;
  }
  .modal-top {
    padding: 14px 16px 12px;
  }
  .modal-title {
    font-size: 1.05rem;
  }
  .modal-preview {
    margin: 12px 16px 0;
    padding: 12px;
  }
  .modal-body {
    padding: 14px 16px;
  }
  .modal-desc,
  .modal-features {
    font-size: 0.85rem;
  }
  .modal-footer {
    padding: 12px 16px 16px;
    flex-direction: column;
    align-items: stretch;
  }
  .modal-footer .btn {
    width: 100%;
    min-height: 42px;
  }
}
