
/* ===== THEME VARS ===== */
[data-theme="dark"] {
  --bg:           #0a0a0f;
  --surface:      #111118;
  --card:         #16161f;
  --card-hover:   #1c1c28;
  --purple:       #a78bfa;
  --purple-dim:   #7c5cbf;
  --purple-glow:  rgba(167,139,250,0.12);
  --purple-glow2: rgba(167,139,250,0.06);
  --text:         #e8e8f0;
  --muted:        #8888aa;
  --border:       rgba(167,139,250,0.15);
  --name-color:   #ffffff;
  --toggle-bg:    #1e1e2e;
  --toggle-border:rgba(167,139,250,0.3);
  --footer-bg:    #0a0a0f;
  --tag-bg:       rgba(167,139,250,0.08);
}

[data-theme="light"] {
  --bg:           #f5f4f0;
  --surface:      #eceae4;
  --card:         #ffffff;
  --card-hover:   #f8f7ff;
  --purple:       #7c3aed;
  --purple-dim:   #5b21b6;
  --purple-glow:  rgba(124,58,237,0.1);
  --purple-glow2: rgba(124,58,237,0.05);
  --text:         #1a1a2e;
  --muted:        #5a5a7a;
  --border:       rgba(124,58,237,0.15);
  --name-color:   #0f0f1a;
  --toggle-bg:    #e0ddd6;
  --toggle-border:rgba(124,58,237,0.2);
  --footer-bg:    #eceae4;
  --tag-bg:       rgba(124,58,237,0.07);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Mono', monospace;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}

[data-theme="dark"] body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
  position: fixed; top: 72px; right: 16px; z-index: 1000;
  background: var(--toggle-bg);
  border: 1px solid var(--toggle-border);
  border-radius: 100px; padding: 3px;
  display: flex; align-items: center; gap: 2px;
  transition: background 0.3s, border-color 0.3s;
}
.toggle-btn {
  width: 24px; height: 24px; border-radius: 100px; border: none;
  background: transparent; display: flex; align-items: center;
  justify-content: center; cursor: pointer; transition: background 0.2s;
  font-size: 12px; line-height: 1; padding: 0;
}
.toggle-btn.active { background: var(--purple); }
.toggle-btn:not(.active):hover { background: var(--purple-glow); }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  padding: 0 60px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
  background: rgba(10,10,15,0.7);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  transition: background 0.3s, border-color 0.3s;
}
[data-theme="light"] .nav { background: rgba(245,244,240,0.8); }

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 15px;
  color: var(--name-color); text-decoration: none;
  letter-spacing: -0.5px;
  transition: color 0.3s;
}
.nav-logo span { color: var(--purple); }

.nav-links {
  display: flex; align-items: center; gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--purple); }

/* ===== PAGE HEADER ===== */
.page-header {
  padding: 120px 60px 64px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  text-align: center;
}

.hero-glow {
  position: absolute; width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, var(--purple-glow) 0%, transparent 70%);
  top: -150px; left: -150px; pointer-events: none;
  transition: background 0.3s;
}
.hero-glow-2 {
  position: absolute; width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, var(--purple-glow2) 0%, transparent 70%);
  bottom: -100px; right: 0; pointer-events: none;
}

.status-chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 100px;
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--purple); margin-bottom: 28px; width: fit-content;
  animation: fadeUp 0.8s ease both;
  transition: border-color 0.3s, color 0.3s;
}
.status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--purple); animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-label {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--purple); margin-bottom: 16px;
  animation: fadeUp 0.8s 0.05s ease both;
}

.hero-name {
  font-family: 'Syne', sans-serif;
  font-size: clamp(52px, 7vw, 96px);
  font-weight: 800; line-height: 0.93;
  letter-spacing: -3px; color: var(--name-color);
  animation: fadeUp 0.8s 0.1s ease both;
  transition: color 0.3s;
  max-width: 800px;
}
.hero-name span { color: var(--purple); }

.hero-sub {
  font-family: 'DM Mono', monospace;
  font-size: 13px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--muted); margin-top: 20px; margin-bottom: 24px;
  animation: fadeUp 0.8s 0.2s ease both;
  transition: color 0.3s;
}

.hero-bio {
  font-size: 14px; line-height: 1.85; color: var(--muted);
  max-width: 560px;
  animation: fadeUp 0.8s 0.3s ease both;
  transition: color 0.3s;
}
.hero-bio strong { color: var(--text); font-weight: 500; transition: color 0.3s; }

.hero-cta {
  display: flex; gap: 12px; margin-top: 36px;
  animation: fadeUp 0.8s 0.4s ease both; flex-wrap: wrap;
}

.btn-primary {
  background: var(--purple); color: #fff; border: none;
  padding: 12px 28px; border-radius: 6px;
  font-family: 'DM Mono', monospace; font-size: 12px;
  font-weight: 500; letter-spacing: 1px; cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s, background 0.3s;
}
.btn-primary:hover { opacity: 0.85; transform: translateY(-1px); }

.btn-ghost {
  background: transparent; color: var(--purple);
  border: 1px solid var(--border); padding: 12px 28px; border-radius: 6px;
  font-family: 'DM Mono', monospace; font-size: 12px; letter-spacing: 1px;
  cursor: pointer; text-decoration: none;
  transition: background 0.2s, transform 0.2s, color 0.3s, border-color 0.3s;
}
.btn-ghost:hover { background: var(--purple-glow); transform: translateY(-1px); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== STATS ===== */
.stats-bar {
  display: flex; justify-content: center; flex-wrap: wrap;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--surface); position: relative; z-index: 1;
  transition: background 0.3s, border-color 0.3s;
}
.stat { padding: 28px 52px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat-num {
  font-family: 'Syne', sans-serif; font-size: 38px;
  font-weight: 800; color: var(--purple); line-height: 1;
  transition: color 0.3s;
}
.stat-label {
  font-size: 10px; color: var(--muted); letter-spacing: 2px;
  text-transform: uppercase; margin-top: 6px; transition: color 0.3s;
}

/* ===== SECTIONS ===== */
section {
  padding: 100px 60px;
  max-width: 1280px; margin: 0 auto;
  position: relative; z-index: 1;
}
.section-eyebrow {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--purple); margin-bottom: 12px; transition: color 0.3s;
}
.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(30px, 4vw, 52px); font-weight: 800;
  color: var(--name-color); letter-spacing: -1px; line-height: 1.05;
  margin-bottom: 56px; transition: color 0.3s;
}
.section-divider {
  border: none; border-top: 1px solid var(--border);
  max-width: 1280px; margin: 0 auto;
  position: relative; z-index: 1; transition: border-color 0.3s;
}

/* ===== CATEGORY GROUPS ===== */
.cat-group { margin-bottom: 64px; }
.cat-group:last-child { margin-bottom: 0; }

.cat-label {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 24px;
}
.cat-label-text {
  font-family: 'Syne', sans-serif;
  font-size: 13px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--name-color);
  transition: color 0.3s;
}
.cat-label-line {
  flex: 1; height: 1px; background: var(--border);
  transition: background 0.3s;
}
.cat-count {
  font-size: 10px; letter-spacing: 1px; color: var(--muted);
  border: 1px solid var(--border); padding: 2px 10px; border-radius: 100px;
}

/* ===== SHOWCASE GRID ===== */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.showcase-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.showcase-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.showcase-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  transition: border-color 0.25s, transform 0.25s, background 0.3s;
}
.showcase-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), transparent);
  opacity: 0; transition: opacity 0.25s;
}
.showcase-card:hover {
  border-color: rgba(167,139,250,0.4);
  transform: translateY(-4px);
  background: var(--card-hover);
}
.showcase-card:hover::before { opacity: 1; }

.showcase-card.featured {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 1fr 1fr;
}

/* ===== SHOWCASE IMAGE ===== */
.showcase-visual {
  background: var(--surface);
  min-height: 220px;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, border-color 0.3s;
}
.showcase-card.featured .showcase-visual {
  border-bottom: none;
  border-right: 1px solid var(--border);
  min-height: 320px;
}
.showcase-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.4s ease;
}
.showcase-card:hover .showcase-visual img {
  transform: scale(1.03);
}
.showcase-grid-3 .showcase-visual {
  min-height: 180px;
}

.showcase-body { padding: 24px; }
.showcase-card.featured .showcase-body {
  padding: 36px; display: flex; flex-direction: column; justify-content: center;
}

.showcase-meta {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.showcase-type {
  font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--purple);
  border: 1px solid var(--border);
  padding: 3px 10px; border-radius: 100px;
}

.showcase-title {
  font-family: 'Syne', sans-serif;
  font-size: 17px; font-weight: 700; color: var(--name-color);
  letter-spacing: -0.3px; margin-bottom: 8px;
  transition: color 0.3s; line-height: 1.3;
}
.showcase-card.featured .showcase-title { font-size: 24px; letter-spacing: -0.5px; }

.showcase-desc {
  font-size: 11px; line-height: 1.8; color: var(--muted);
  margin-bottom: 16px; transition: color 0.3s;
}
.showcase-desc strong { color: var(--text); font-weight: 500; }

.showcase-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.showcase-tag {
  font-size: 9px; letter-spacing: 0.5px;
  color: var(--muted); background: var(--tag-bg);
  border: 1px solid var(--border);
  padding: 3px 10px; border-radius: 100px;
  transition: background 0.3s, color 0.3s;
}

.showcase-result {
  display: flex; align-items: center; gap: 8px;
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--border);
}
.result-badge {
  font-size: 10px; letter-spacing: 1px;
  color: #4ade80; border: 1px solid rgba(74,222,128,0.2);
  background: rgba(74,222,128,0.06);
  padding: 4px 12px; border-radius: 100px;
}
.result-text { font-size: 11px; color: var(--muted); }

/* ===== SKILLS GRID ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.skill-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 22px;
  transition: border-color 0.2s, transform 0.2s, background 0.3s;
  position: relative; overflow: hidden;
}
.skill-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: linear-gradient(90deg, var(--purple), transparent);
  opacity: 0; transition: opacity 0.2s;
}
.skill-card:hover { border-color: rgba(167,139,250,0.35); transform: translateY(-3px); }
.skill-card:hover::before { opacity: 1; }
.skill-card-icon { font-size: 20px; margin-bottom: 12px; }
.skill-card-title {
  font-family: 'Syne', sans-serif; font-size: 13px; font-weight: 700;
  color: var(--purple); letter-spacing: 0.5px;
  text-transform: uppercase; margin-bottom: 12px;
  transition: color 0.3s;
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 10px; color: var(--muted); background: var(--tag-bg);
  border: 1px solid var(--border); padding: 3px 9px;
  border-radius: 100px; letter-spacing: 0.3px;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

/* ===== PROFICIENCY ===== */
.prof-list { display: flex; flex-direction: column; gap: 20px; }
.prof-header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.prof-name { font-size: 12px; color: var(--text); letter-spacing: 0.5px; transition: color 0.3s; }
.prof-pct  { font-size: 12px; color: var(--purple); transition: color 0.3s; }
.prof-bar-bg {
  height: 2px; background: var(--border); border-radius: 2px;
  overflow: hidden; transition: background 0.3s;
}
.prof-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--purple-dim), var(--purple));
  border-radius: 2px;
  transform-origin: left;
  animation: growBar 1.4s cubic-bezier(0.4,0,0.2,1) both;
}
@keyframes growBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ===== TWO COL ===== */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }

/* ===== PROCESS STEPS ===== */
.process-steps { display: flex; flex-direction: column; gap: 0; }
.process-step {
  display: flex; gap: 24px; padding: 24px 0;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.3s;
}
.process-step:last-child { border-bottom: none; }
.step-num {
  font-family: 'Syne', sans-serif; font-size: 32px; font-weight: 800;
  color: var(--purple); opacity: 0.3; line-height: 1; flex-shrink: 0;
  width: 40px; transition: color 0.3s;
}
.step-title {
  font-family: 'Syne', sans-serif; font-size: 15px; font-weight: 700;
  color: var(--name-color); margin-bottom: 6px; transition: color 0.3s;
}
.step-desc { font-size: 12px; color: var(--muted); line-height: 1.8; transition: color 0.3s; }

/* ===== CONTACT ===== */
.contact-list { display: flex; flex-direction: column; gap: 14px; }
.contact-item {
  display: flex; align-items: center; gap: 14px;
  font-size: 13px; color: var(--muted);
  text-decoration: none; transition: color 0.2s;
}
.contact-item:hover { color: var(--purple); }
.contact-icon-wrap {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background 0.3s, border-color 0.3s;
}
.contact-icon-wrap svg { width: 14px; height: 14px; }

/* ===== AVAILABILITY CARD ===== */
.avail-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 28px; margin-top: 28px;
  transition: background 0.3s, border-color 0.3s;
}
.avail-header { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.avail-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80; animation: pulse 2s infinite;
}
.avail-title {
  font-family: 'Syne', sans-serif; font-size: 14px; font-weight: 700;
  color: var(--name-color); transition: color 0.3s;
}
.avail-desc { font-size: 11px; color: var(--muted); line-height: 1.8; }
.avail-services { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.avail-service {
  font-size: 10px; color: var(--purple);
  border: 1px solid var(--border); background: var(--tag-bg);
  padding: 4px 12px; border-radius: 100px; letter-spacing: 0.5px;
}

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 60px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: var(--muted); letter-spacing: 1px;
  background: var(--footer-bg); position: relative; z-index: 1;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.footer-name {
  font-family: 'Syne', sans-serif; font-weight: 700;
  color: var(--purple); font-size: 13px; transition: color 0.3s;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 11px; color: var(--muted); text-decoration: none;
  letter-spacing: 1px; text-transform: uppercase; transition: color 0.2s;
}
.footer-links a:hover { color: var(--purple); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav { padding: 0 24px; }
  .nav-links { display: none; }
  .hero { padding: 100px 24px 60px; }
  section { padding: 60px 24px; }
  .showcase-grid { grid-template-columns: 1fr; }
  .showcase-grid-3 { grid-template-columns: 1fr; }
  .showcase-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .showcase-card.featured { grid-column: auto; display: block; }
  .showcase-card.featured .showcase-visual { border-right: none; border-bottom: 1px solid var(--border); }
  .two-col { grid-template-columns: 1fr; gap: 48px; }
  footer { flex-direction: column; gap: 12px; text-align: center; padding: 24px; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .stat + .stat { border-left: none; border-top: 1px solid var(--border); }
}

/* ===== LIGHTBOX ===== */
.lightbox-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(8px);
  align-items: center; justify-content: center;
  cursor: zoom-out;
  padding: 24px;
}
.lightbox-overlay.open { display: flex; }
.lightbox-img {
  max-width: 95vw; max-height: 92vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.8);
  cursor: default;
  animation: lbFade 0.2s ease;
}
@keyframes lbFade {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}
.lightbox-close {
  position: fixed; top: 20px; right: 24px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%; width: 40px; height: 40px;
  color: #fff; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  z-index: 10000;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-caption {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 1px;
  color: rgba(255,255,255,0.6); background: rgba(0,0,0,0.5);
  padding: 6px 16px; border-radius: 100px;
  white-space: nowrap;
}
.showcase-visual { cursor: zoom-in; }
