@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap");

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

:root {
  --bg-primary: #0b0f19;
  --bg-secondary: #111827;
  --bg-card: #161b22;
  --bg-card-hover: #1c2333;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #2563eb;
  --accent-light: #3b82f6;
  --accent-glow: rgba(37, 99, 235, 0.15);
  --success: #10b981;
  --success-dim: rgba(16, 185, 129, 0.1);
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.14);
  --nav-bg: rgba(11, 15, 25, 0.85);
  --font-mono: "JetBrains Mono", monospace;
}

/* ── LIGHT THEME ── */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --accent: #2563eb;
  --accent-light: #1d4ed8;
  --accent-glow: rgba(37, 99, 235, 0.08);
  --success: #059669;
  --success-dim: rgba(5, 150, 105, 0.08);
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.12);
  --nav-bg: rgba(248, 250, 252, 0.95);
}

/* ── THEME TRANSITION ── */
*,
*::before,
*::after {
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.2s ease;
}

/* ── THEME TOGGLE ── */
.theme-toggle {
  display: flex;
  align-items: center;
}

.theme-toggle-switch {
  position: relative;
  width: 64px;
  height: 32px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-hover);
  border-radius: 100px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition:
    background 0.3s,
    border-color 0.3s,
    box-shadow 0.3s;
  display: flex;
  align-items: center;
  padding: 3px;
  outline: none;
}

.theme-toggle-switch:hover {
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.25);
}

.theme-toggle-switch:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.theme-toggle-icon {
  position: absolute;
  font-size: 14px;
  line-height: 1;
  pointer-events: none;
  transition: opacity 0.3s;
  top: 50%;
  transform: translateY(-50%);
}

.theme-toggle-icon.moon {
  left: 7px;
  opacity: 1;
}

.theme-toggle-icon.sun {
  right: 7px;
  opacity: 0.4;
}

.theme-toggle-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

/* Light mode state */
[data-theme="light"] .theme-toggle-switch {
  background: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .theme-toggle-thumb {
  transform: translateX(32px);
  background: #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

[data-theme="light"] .theme-toggle-icon.moon {
  opacity: 0.4;
}

[data-theme="light"] .theme-toggle-icon.sun {
  opacity: 1;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Inter",
    -apple-system,
    sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(37, 99, 235, 0.4);
  border-radius: 3px;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
}

.nav-logo {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-cta {
  padding: 0.4rem 1rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 6px;
  transition:
    background 0.2s,
    opacity 0.2s;
  letter-spacing: 0.01em;
}

.nav-cta:hover {
  opacity: 0.88;
}

/* HERO */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(37, 99, 235, 0.12) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--success-dim);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--success);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  width: fit-content;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.3);
  }
}

.hero-name {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.hero-name {
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 16px;
  animation: fadeUp 0.7s ease 0.1s both;
}

.hero-name span {
  background: linear-gradient(135deg, #f8fafc 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  animation: fadeUp 0.7s ease 0.2s both;
}

.hero-role-badge {
  padding: 4px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 400;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 500px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 0 24px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 0 32px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
}

.hero-avatar {
  position: relative;
  flex-shrink: 0;
}

.avatar-ring {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #7c3aed 100%);
  padding: 2px;
  position: relative;
}

.avatar-ring::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(37, 99, 235, 0.2);
  animation: spin 12s linear infinite;
}

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

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  overflow: hidden;
}

.avatar-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-hover);
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--success);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* SECTION BASE */
section {
  padding: 5rem 2rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 560px;
  line-height: 1.7;
}

.section-header {
  margin-bottom: 3rem;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* STATS GRID */
#stats {
  background: var(--bg-secondary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.stat-card {
  background: var(--bg-card);
  padding: 2rem 1.5rem;
  position: relative;
  transition: background 0.2s;
}

.stat-card:hover {
  background: var(--bg-card-hover);
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: background 0.2s;
}

.stat-card:hover::before {
  background: var(--accent);
}

.stat-icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.4rem;
  font-family: var(--font-mono);
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-change {
  margin-top: 0.5rem;
  font-size: 0.7rem;
  color: var(--success);
  font-weight: 500;
}

/* PROJECTS */
#projects {
  background: var(--bg-primary);

  border-top: 1px solid var(--border);

  padding-top: 80px;

  margin-top: 40px;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.25s;
  cursor: pointer;
  position: relative;
}

.project-card:hover {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 0 40px rgba(37, 99, 235, 0.08);
  transform: translateY(-3px);
}

.project-thumb {
  height: 180px;
  background: linear-gradient(
    135deg,
    var(--bg-secondary) 0%,
    var(--accent-glow) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.project-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 40%,
    rgba(22, 27, 34, 0.9) 100%
  );
}

.project-thumb-tech {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.project-body {
  padding: 1.5rem;
}

.project-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.project-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.project-metrics {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.metric {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.metric strong {
  color: var(--text-secondary);
  font-weight: 600;
}

.project-footer {
  display: flex;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.02em;
}

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

.link-btn svg {
  width: 14px;
  height: 14px;
}

/* TAGS */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: var(--accent-light);
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  white-space: nowrap;
}

.tag.green {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
  color: var(--success);
}

.tag.purple {
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.2);
  color: #a78bfa;
}

.tag.orange {
  background: rgba(249, 115, 22, 0.1);
  border-color: rgba(249, 115, 22, 0.2);
  color: #fb923c;
}

/* ========= ARCHITECTURE – EXACT SCREENSHOT STYLE ========= */
#architecture {
  background: var(--bg-secondary);
}

.arch-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.arch-tab {
  padding: 0.6rem 1.2rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.arch-tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
}

.arch-diagram {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
}

.arch-diagram.active {
  display: block;
}

/* Vertical flow container */
.arch-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 360px;
  margin: 0 auto;
}

/* Node styles – matching screenshot exactly */
.arch-node {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 280px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.2s;
}

.arch-node.user {
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.25);
  color: #93b9ff;
}

.arch-node.process {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

.arch-node.core {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: #fcd34d;
}

.arch-node.output {
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.2);
  color: #c4b5fd;
}

/* Arrow with triangle ▼ */
.arch-arrow {
  width: 1px;
  height: 24px;
  background: linear-gradient(to bottom, var(--border-hover), var(--border));
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin: 2px 0;
}

.arch-arrow::after {
  content: "▼";
  font-size: 8px;
  color: var(--text-muted);
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
}

/* ── EXPERIENCE ── */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -36px;
  top: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.timeline-role {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.timeline-company {
  font-size: 14px;
  color: var(--accent);
}

.timeline-period {
  font-size: 12px;
  color: var(--text-muted);
  padding: 2px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.timeline-type {
  font-size: 11px;
  color: var(--success);
  padding: 2px 8px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 999px;
}

.timeline-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 10px;
}

.timeline-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.timeline-bullets li {
  font-size: 13px;
  color: var(--text-secondary);
  padding-left: 16px;
  position: relative;
}

.timeline-bullets li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 11px;
}

/* SKILLS */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.2s;
}

.skill-category:hover {
  border-color: var(--border-hover);
}

.skill-cat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.skill-cat-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: var(--accent-glow);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.skill-cat-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  padding: 0.3rem 0.7rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-hover);
  color: var(--text-secondary);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s;
  cursor: default;
}

.skill-tag:hover {
  border-color: rgba(37, 99, 235, 0.3);
  color: var(--text-primary);
}

/* CERTIFICATIONS */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: all 0.2s;
}

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

.cert-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
}

.cert-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.cert-issuer {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--success);
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* BUILDING */
.building-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.building-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.building-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
}

.building-card.active::before {
  background: linear-gradient(90deg, var(--accent), #7c3aed);
}

.building-card.progress::before {
  background: linear-gradient(90deg, var(--success), var(--accent));
}

.building-card.planned::before {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
}

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

.building-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-active {
  color: var(--success);
}

.status-active .status-dot {
  background: var(--success);
  animation: pulse 2s infinite;
}

.status-progress {
  color: #60a5fa;
}

.status-progress .status-dot {
  background: #60a5fa;
}

.status-planned {
  color: #f59e0b;
}

.status-planned .status-dot {
  background: #f59e0b;
}

.building-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.building-desc {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.building-progress {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--accent);
}

.progress-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* GITHUB */
#github {
  background: var(--bg-secondary);
}

.github-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.repo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.2s;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

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

.repo-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-light);
  margin-bottom: 0.5rem;
}

.repo-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}

.repo-meta {
  display: flex;
  gap: 1rem;
}

.repo-lang {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.73rem;
  color: var(--text-muted);
}

.lang-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* AI ASSISTANT */
#ai-assistant {
}

.chat-container {
  max-width: 680px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.chat-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-secondary);
}

.chat-header-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-glow);
  border: 1px solid rgba(37, 99, 235, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.chat-header-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
}

.chat-header-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.chat-messages {
  padding: 1.5rem;
  max-height: 420px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-msg {
  display: flex;
  gap: 0.75rem;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-msg.user {
  flex-direction: row-reverse;
}

.msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.msg-avatar.ai {
  background: var(--accent-glow);
  border: 1px solid rgba(37, 99, 235, 0.3);
  color: var(--accent-light);
}

.msg-avatar.user-av {
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: #a78bfa;
}

.msg-bubble {
  padding: 0.7rem 1rem;
  border-radius: 12px;
  font-size: 0.83rem;
  line-height: 1.65;
  max-width: 85%;
}

.msg-bubble.ai {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border-top-left-radius: 4px;
}

.msg-bubble.user-msg {
  background: var(--accent);
  color: #fff;
  border-top-right-radius: 4px;
}

.chat-suggestions {
  padding: 0 1.5rem 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.suggestion-btn {
  padding: 0.35rem 0.75rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-hover);
  color: var(--text-muted);
  border-radius: 6px;
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.2s;
}

.suggestion-btn:hover {
  border-color: rgba(37, 99, 235, 0.3);
  color: var(--accent-light);
}

.chat-input-row {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.75rem;
  background: var(--bg-secondary);
}

.chat-input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  color: var(--text-primary);
  font-size: 0.83rem;
  outline: none;
  font-family: "Inter", sans-serif;
  transition: border-color 0.2s;
}

.chat-input:focus {
  border-color: rgba(37, 99, 235, 0.4);
}

.chat-input::placeholder {
  color: var(--text-muted);
}

.chat-send {
  padding: 0.6rem 1.1rem;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.2s;
}

.chat-send:hover {
  background: var(--accent-light);
}

.typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 4px 0;
}

.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: bounce 1.2s infinite;
}

.typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }

  30% {
    transform: translateY(-5px);
    opacity: 1;
  }
}

/* CONTACT */
#contact {
  background: var(--bg-secondary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-grid > * {
  min-width: 0;
  width: 100%;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.2s;
}

.contact-link:hover {
  border-color: rgba(37, 99, 235, 0.3);
  transform: translateX(4px);
}

.contact-link-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-link-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}

.contact-link-value {
  font-size: 0.875rem;
  font-weight: 600;
}

.contact-cta-card {
  background: var(--bg-card);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 16px;
  padding: 2.5rem;
  background-image: radial-gradient(
    ellipse at top right,
    rgba(37, 99, 235, 0.07) 0%,
    transparent 60%
  );
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

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

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 28px;
}

.contact-cta-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.contact-cta-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.contact-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.form-input,
.form-textarea {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-primary);
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

/* FOOTER */
footer {
  padding: 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
}

footer a {
  color: var(--text-muted);
  text-decoration: none;
}

footer a:hover {
  color: var(--text-secondary);
}

/* MODAL */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(7, 10, 18, 0.9);
  backdrop-filter: blur(8px);
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
  overflow-y: auto;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 760px;
  animation: modalIn 0.25s ease;
  margin: auto;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.97) translateY(10px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.modal-close {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 1rem;
  transition: all 0.2s;
}

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

.modal-body {
  padding: 2rem;
}

.modal-section {
  margin-bottom: 2rem;
}

.modal-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
}

.modal-section p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.modal-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.modal-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.modal-features li {
  font-size: 0.83rem;
  color: var(--text-secondary);
  padding-left: 1.2rem;
  position: relative;
}

.modal-features li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.6rem;
  top: 3px;
}

.modal-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* ── LIGHT THEME OVERRIDES ── */
[data-theme="light"] .hero-grid {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.06) 1px, transparent 1px);
  opacity: 1;
}

[data-theme="light"] .hero-glow {
  background: radial-gradient(
    circle,
    rgba(37, 99, 235, 0.07) 0%,
    transparent 70%
  );
}

[data-theme="light"] .modal-overlay {
  background: rgba(15, 23, 42, 0.6);
}

[data-theme="light"] ::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

[data-theme="light"] .btn-secondary {
  color: var(--text-primary);
}

[data-theme="light"] .tag {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.18);
}

[data-theme="light"] .arch-diagram {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .arch-node.user {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.2);
  color: #1d4ed8;
}
[data-theme="light"] .arch-node.process {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.2);
  color: #059669;
}
[data-theme="light"] .arch-node.core {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.2);
  color: #d97706;
}
[data-theme="light"] .arch-node.output {
  background: rgba(168, 85, 247, 0.08);
  border-color: rgba(168, 85, 247, 0.2);
  color: #7c3aed;
}

[data-theme="light"] .msg-bubble.ai {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
[data-theme="light"] .msg-bubble.user-msg {
  background: var(--accent);
  color: white;
}
[data-theme="light"] .suggestion-btn {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text-secondary);
}
[data-theme="light"] .suggestion-btn:hover {
  background: var(--bg-secondary);
  border-color: var(--accent);
  color: var(--accent);
}
[data-theme="light"] .chat-input {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text-primary);
}

[data-theme="light"] .timeline-dot {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}
[data-theme="light"] .stat-card::before {
  background: var(--accent);
}
[data-theme="light"] .contact-link {
  background: var(--bg-card);
  border-color: var(--border);
}
[data-theme="light"] .contact-link:hover {
  background: var(--bg-secondary);
  border-color: var(--accent);
}
[data-theme="light"] .back-to-top {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}
[data-theme="light"] .back-to-top:hover {
  background: var(--accent-light);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

[data-theme="light"] body {
  color: var(--text-primary);
}
[data-theme="light"] .hero-desc,
[data-theme="light"] .project-desc,
[data-theme="light"] .timeline-desc,
[data-theme="light"] .timeline-bullets li {
  color: var(--text-secondary);
}
[data-theme="light"] .section-label {
  color: var(--accent);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 99;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  border: none;
  color: white;
  font-size: 1.5rem;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--accent-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}
/* ── RESPONSIVE ── */
/* ── GLOBAL OVERFLOW FIX ── */
html,
body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero-inner {
    gap: 2.5rem;
  }

  .contact-grid {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 0 1rem;
    gap: 0.5rem;
  }

  .nav-logo {
    font-size: 0.8rem;
    flex-shrink: 0;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .theme-toggle {
    display: flex;
  }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-size: 20px;
    color: var(--accent);
    flex-shrink: 0;
  }

  /* HERO */
  #hero {
    padding: 5rem 1rem 3rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-badge {
    margin: 0 auto 1.25rem;
  }

  .hero-roles {
    justify-content: center;
  }

  .hero-desc {
    margin: 0 auto 1.75rem;
    font-size: 0.95rem;
  }

  .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    font-size: 0.82rem;
    padding: 0.6rem 1.1rem;
  }

  .hero-avatar {
    order: -1;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }

  .avatar-ring {
    width: 180px;
    height: 180px;
  }

  /* SECTION */
  section {
    padding: 3rem 1rem;
  }

  /* PROJECTS */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .project-body {
    padding: 1rem;
  }

  .project-thumb {
    height: 150px;
  }

  /* SKILLS */
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .skill-tags {
    flex-wrap: wrap;
  }

  /* CERTS */
  .certs-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* BUILDING */
  .building-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* GITHUB */
  .github-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* TIMELINE */
  .timeline {
    padding-left: 1.75rem;
  }

  .timeline-dot {
    left: -1.75rem;
  }

  .timeline-body {
    padding: 1rem;
  }

  /* CONTACT */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-cta-card {
    padding: 1.5rem;
  }

  /* ARCH */
  .arch-diagram {
    padding: 1.25rem;
    overflow-x: auto;
  }

  .arch-split {
    flex-direction: column;
  }

  /* STATS */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* MODAL */
  .modal-body {
    padding: 1.25rem;
  }

  .modal-header {
    padding: 1rem 1.25rem;
  }

  /* MOBILE MENU */
  .mobile-menu {
    padding: 12px 16px;
    gap: 14px;
  }
}

@media (max-width: 425px) {
  nav {
    padding: 0 0.75rem;
  }

  .hero-name {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .hero-title {
    font-size: 0.82rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .avatar-ring {
    width: 160px;
    height: 160px;
  }

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

  .stat-card {
    padding: 1.25rem 1rem;
  }

  .stat-value {
    font-size: 1.6rem;
  }

  .theme-toggle-switch {
    width: 56px;
    height: 28px;
  }

  .theme-toggle-thumb {
    width: 20px;
    height: 20px;
  }

  [data-theme="light"] .theme-toggle-thumb {
    transform: translateX(28px);
  }

  .section-title {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
  }
}

@media (max-width: 375px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-cta-card {
    padding: 1.25rem;
  }

  .arch-flow {
    max-width: 100%;
  }
}

@media (max-width: 320px) {
  nav {
    padding: 0 0.5rem;
  }

  .hero-name {
    font-size: 1.8rem;
  }

  .stat-value {
    font-size: 1.4rem;
  }

  .btn-primary,
  .btn-secondary {
    padding: 0.55rem 0.9rem;
    font-size: 0.78rem;
  }
}

#contact .send-btn,
#contact .btn-primary {
  display: flex !important;

  justify-content: center !important;

  align-items: center !important;

  gap: 10px !important;

  text-align: center !important;
}

/* ANIMATIONS */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: none;
}

/* NUMBER COUNTER */
.counter {
  display: inline-block;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 28px;
  cursor: pointer;
  padding: 4px 8px;
  transition: 0.3s;
}

.mobile-menu-btn:hover {
  color: var(--accent);
}

.mobile-menu {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  padding: 15px 20px;
  gap: 18px;
  border-bottom: 1px solid var(--border);
  transform: translateY(-120%);
  transition: 0.35s ease;
  z-index: 99;
}

.mobile-menu.active {
  transform: translateY(0);
}

.mobile-menu a {
  text-decoration: none;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  transition: 0.2s;
}

.mobile-menu a:hover {
  color: var(--accent);
  padding-left: 8px;
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  /* KEEP THEME VISIBLE */
  .theme-picker {
    display: block;
  }

  .nav-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-size: 24px;
    color: var(--accent);
  }

  /* Clean text links inside contact left column */
  .contact-links .contact-link {
    padding: 0 !important;
    background: none !important;
    border: none !important;
    transition: color 0.2s;
  }

  .contact-links .contact-link span:first-child {
    font-weight: 600;
    color: var(--text-primary);
  }

  .contact-links .contact-link span:last-child {
    color: var(--text-secondary);
  }

  .contact-links .contact-link:hover span:last-child {
    color: var(--accent);
  }
}

/* ===========================
        ABOUT SECTION
=========================== */

#about {
  padding: 80px 0;

  background: var(--bg-primary);
}

.about-grid {
  display: grid;

  grid-template-columns: 380px 1fr;

  gap: 40px;

  align-items: center;
}

.about-image {
  display: flex;

  justify-content: center;
}

.about-image-wrapper {
  width: 340px;

  height: 420px;

  border-radius: 28px;

  overflow: hidden;

  border: 1px solid var(--border);

  background: var(--bg-card);

  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.about-image-wrapper img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  display: block;
}

.about-text {
  font-size: 17px;

  line-height: 1.9;

  color: var(--text-secondary);

  margin-top: 18px;
}

.about-highlights {
  display: flex;

  flex-wrap: wrap;

  gap: 12px;

  margin-top: 28px;
}

.about-highlights span {
  padding: 10px 18px;

  border-radius: 999px;

  background: rgba(37, 99, 235, 0.08);

  border: 1px solid rgba(37, 99, 235, 0.18);

  font-size: 14px;

  font-weight: 500;
}

.about-buttons {
  display: flex;

  gap: 16px;

  flex-wrap: wrap;

  margin-top: 40px;
}

@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;

    text-align: center;

    gap: 40px;
  }

  .about-image-wrapper {
    width: 280px;

    height: 340px;

    margin: auto;
  }

  .about-highlights {
    justify-content: center;
  }

  .about-buttons {
    justify-content: center;
  }
  .about-intro {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
  }

  .about-intro strong {
    color: var(--text-primary);
    font-weight: 600;
  }

  .about-values {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* ===================================
   ABOUT SECTION - MOBILE FIX
=================================== */

@media (max-width: 768px) {
  #about {
    padding: 70px 0;

    overflow: hidden;
  }

  .about-grid {
    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 30px;

    padding: 0 20px;
  }

  .about-image {
    width: 100%;

    display: flex;

    justify-content: center;
  }

  .about-image-wrapper {
    width: 220px;

    height: 280px;

    max-width: 100%;

    border-radius: 20px;

    overflow: hidden;
  }

  .about-image-wrapper img {
    width: 100%;

    height: 100%;

    object-fit: cover;
  }

  .about-content {
    width: 100%;

    text-align: center;
  }

  .about-content .section-label {
    font-size: 11px;

    letter-spacing: 2px;

    margin-bottom: 10px;
  }

  .about-content .section-title {
    font-size: 2rem;

    line-height: 1.2;

    max-width: 300px;

    margin: 0 auto 18px;
  }

  .about-text {
    font-size: 15px;

    line-height: 1.9;

    max-width: 100%;

    margin: 0 auto 18px;

    color: var(--text-secondary);
  }

  .about-highlights {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10px;

    margin-top: 24px;
  }

  .about-highlights span {
    display: flex;

    align-items: center;

    justify-content: center;

    padding: 10px 8px;

    font-size: 12px;

    font-weight: 500;

    border-radius: 999px;

    white-space: nowrap;
  }

  .about-buttons {
    display: flex;

    flex-direction: column;

    gap: 12px;

    margin-top: 28px;

    width: 100%;
  }

  .about-buttons a {
    width: 100%;

    height: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 15px;

    border-radius: 12px;
  }
}

/* ==========================
        TOAST
========================== */

.toast {
  position: fixed;

  top: 30px;

  right: 30px;

  background: #111827;

  border: 1px solid rgba(37, 99, 235, 0.35);

  padding: 16px 22px;

  border-radius: 14px;

  display: flex;

  align-items: center;

  gap: 12px;

  color: #fff;

  font-weight: 500;

  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);

  transform: translateX(400px);

  opacity: 0;

  transition: 0.35s ease;

  z-index: 99999;
}

.toast.show {
  transform: translateX(0);

  opacity: 1;
}

.toast.success {
  border-color: #10b981;
}

.toast.error {
  border-color: #ef4444;
}

#toastIcon {
  font-size: 18px;
}

.hero-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 2px;
    
    margin: 12px 0 20px;
    opacity: 0.9;
}
