*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #03060d;
  --surface: #0a0f1a;
  --surface2: #0f1525;
  --border: #152040;
  --border-hover: #1e3060;
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --accent-dim: rgba(59, 130, 246, 0.08);
  --accent-glow: rgba(59, 130, 246, 0.25);
  --green: #34d399;
  --green-dim: rgba(52, 211, 153, 0.12);
  --yellow: #fbbf24;
  --red: #f87171;
  --cyan: #38bdf8;
  --cyan-dim: rgba(56, 189, 248, 0.1);
  --pink: #818cf8;
  --orange: #fb923c;
  --text: #e2eaf5;
  --text-secondary: #8da4c2;
  --muted: #4a6080;
  --font-mono: 'Courier New', Consolas, monospace;
  --font-sans: system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0, 6, 20, 0.5);
  --shadow-lg: 0 12px 48px rgba(0, 6, 20, 0.6);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ===== AMBIENT BG ===== */
.ambient-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.08;
  animation: float 20s ease-in-out infinite;
}

.orb-1 {
  width: 600px; height: 600px;
  background: #2563eb;
  top: -200px; right: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 500px; height: 500px;
  background: #0ea5e9;
  bottom: -200px; left: -100px;
  animation-delay: -7s;
}

.orb-3 {
  width: 400px; height: 400px;
  background: #6366f1;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -14s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -40px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(40px, 30px) scale(1.02); }
}

/* ===== GRID PATTERN ===== */
.grid-pattern {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.5) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ===== PARTICLE CANVAS ===== */
#particle-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

/* ===== LAYOUT ===== */
.page-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===== TOP BAR ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(3, 6, 13, 0.75);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid rgba(59, 130, 246, 0.06);
  padding: 0 2rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 700;
}

.logo-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.logo span {
  color: var(--accent-light);
}

.topbar-nav {
  display: flex;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px;
}

.topbar-nav button {
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.topbar-nav button:hover {
  color: var(--text-secondary);
  background: rgba(59, 130, 246, 0.05);
}

.topbar-nav button.active {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: white;
  box-shadow: 0 2px 16px rgba(59, 130, 246, 0.3);
}

/* ===== MAIN ===== */
main {
  flex: 1;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

section {
  display: none;
  animation: fadeUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

section.active { display: block; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== GLASS CARD ===== */
.glass {
  background: rgba(10, 15, 26, 0.6);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(59, 130, 246, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.glass:hover {
  border-color: rgba(59, 130, 246, 0.15);
  box-shadow: var(--shadow-lg);
}

/* ===== TERMINAL BLOCK ===== */
.terminal-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.terminal-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(59, 130, 246, 0.03);
  border-bottom: 1px solid var(--border);
}

.terminal-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}

.td-red { background: #ff5f57; }
.td-yellow { background: #febc2e; }
.td-green { background: #28c840; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  margin-left: 0.5rem;
}

.terminal-body {
  padding: 1.25rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.75;
}

.prompt-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.prompt-arrow { color: var(--green); font-weight: bold; }
.prompt-path { color: var(--cyan); font-size: 0.78rem; }
.prompt-branch { color: var(--pink); font-size: 0.75rem; }
.prompt-cmd { color: var(--text); }
.code-keyword { color: var(--accent-light); }
.code-string { color: var(--green); }
.code-number { color: var(--orange); }
.code-comment { color: var(--muted); font-style: italic; }
.code-prop { color: var(--cyan); }

.cursor-blink {
  display: inline-block;
  width: 8px; height: 1.15em;
  background: var(--accent-light);
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
  border-radius: 1px;
}

@keyframes blink { 50% { opacity: 0; } }

.output-block {
  padding: 0.5rem 0 0.5rem 1.5rem;
  color: var(--text-secondary);
  line-height: 1.9;
}

/* ===== HERO ===== */
.hero { text-align: center; margin-bottom: 3rem; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 99px;
  background: var(--green-dim);
  border: 1px solid rgba(52, 211, 153, 0.15);
  font-size: 0.75rem;
  color: var(--green);
  margin-bottom: 1.75rem;
  font-weight: 500;
}

.hero-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(52,211,153,0.4); }
  50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(52,211,153,0); }
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #e2eaf5 0%, #60a5fa 45%, #38bdf8 65%, #818cf8 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero h1 .wave {
  -webkit-text-fill-color: initial;
  display: inline-block;
  animation: wave 2.5s ease-in-out infinite;
  transform-origin: 70% 70%;
}

@keyframes wave {
  0%, 60%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(14deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-weight: 400;
  line-height: 1.6;
}

.hero-typed {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent-light);
  height: 1.5em;
  margin-top: 0.75rem;
}

.hero-typed .typed-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent-light);
  animation: blink 0.8s step-end infinite;
  vertical-align: text-bottom;
  margin-left: 1px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat .num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero-stat .lbl {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ===== SECTION DIVIDER ===== */
.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  margin-top: 1rem;
}

.section-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-light);
  font-weight: 700;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

/* ===== SKILLS ===== */
.skill-categories {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.skill-category {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all var(--transition);
}

.skill-category:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.04);
}

.skill-cat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.skill-cat-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.skill-cat-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.skill-cat-desc {
  font-size: 0.72rem;
  color: var(--muted);
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.03);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-secondary);
  transition: all var(--transition);
  cursor: default;
}

.skill-pill:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.12);
}

.skill-pill .skill-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.skill-bar-mini {
  width: 40px; height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-left: auto;
}

.skill-bar-mini-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
  width: 0;
}

/* ===== PROJECTS ===== */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  cursor: default;
  display: flex;
  flex-direction: column;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(ellipse at top left, rgba(59, 130, 246, 0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}

.project-card:hover::before { opacity: 1; }

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 6, 30, 0.4);
}

.project-card-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-icon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.project-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.project-links {
  display: flex;
  gap: 0.5rem;
}

.project-link-btn {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.85rem;
}

.project-link-btn:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: var(--accent-dim);
}

.project-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.project-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1rem;
  flex: 1;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  padding: 0.2rem 0.55rem;
  border-radius: 5px;
  background: rgba(59, 130, 246, 0.08);
  color: var(--accent-light);
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.project-stars {
  font-size: 0.72rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}

/* ===== FEATURED PROJECT ===== */
.featured-project {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.featured-project::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, #2563eb, #38bdf8, #818cf8);
}

.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  border-radius: 5px;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.15);
  font-size: 0.65rem;
  color: var(--yellow);
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.featured-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.featured-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
  max-width: 600px;
}

.featured-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 1rem;
}

.feat-stat {
  display: flex;
  flex-direction: column;
}

.feat-stat .val {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
}

.feat-stat .lbl {
  font-size: 0.65rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  padding-left: 2.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--accent), var(--border) 80%, transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  padding-left: 0.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 6px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--accent);
  z-index: 1;
  transition: all var(--transition);
}

.timeline-item:hover::before {
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}

.timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: all var(--transition);
}

.timeline-card:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.06);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-light);
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.timeline-role {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.timeline-company {
  font-size: 0.82rem;
  color: var(--cyan);
  margin-bottom: 0.6rem;
}

.timeline-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.timeline-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

/* ===== CONTACT ===== */
.contact-hero {
  text-align: center;
  margin-bottom: 2rem;
}

.contact-hero h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.contact-hero p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.contact-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.12);
}

.contact-card .c-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  display: block;
}

.contact-card .c-label {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

.contact-card .c-value {
  font-size: 0.82rem;
  color: var(--text);
  font-weight: 600;
}

/* ===== FOOTER / STATUS ===== */
.statusbar {
  position: fixed;
  bottom: 0; left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(3, 6, 13, 0.88);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(59, 130, 246, 0.06);
  padding: 0 1rem;
  height: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--muted);
}

.statusbar-left, .statusbar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.status-dot-live {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(52,211,153,0.5);
  animation: pulse 2s infinite;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
  .topbar {
    padding: 0 1rem;
    height: auto;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
  }

  .topbar-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .topbar-nav button {
    padding: 0.35rem 0.7rem;
    font-size: 0.72rem;
  }

  main {
    padding: 2rem 1rem 4rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .project-grid, .contact-grid {
    grid-template-columns: 1fr;
  }

  .featured-stats {
    gap: 1.25rem;
  }

  .section-title {
    font-size: 1.2rem;
  }
}

@media (max-width: 400px) {
  .hero h1 { font-size: 1.6rem; }
  .hero-stat .num { font-size: 1.5rem; }
}

/* ===== PROJECT THUMBNAIL ===== */
.project-thumbnail {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1rem;
  cursor: pointer;
  aspect-ratio: 16 / 9;
  background: var(--surface2);
  border: 1px solid var(--border);
}

.project-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s;
}

.project-thumbnail-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 13, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  font-size: 0.82rem;
  color: var(--accent-light);
  font-weight: 600;
}

.project-thumbnail:hover img {
  transform: scale(1.05);
  filter: brightness(0.7);
}

.project-thumbnail:hover .project-thumbnail-overlay {
  opacity: 1;
}

/* ===== PROJECT IMG BUTTON ===== */
.project-img-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.project-img-btn:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: scale(1.1);
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 13, 0.92);
  backdrop-filter: blur(20px);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  animation: lightboxIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox.active .lightbox-content {
  animation: lightboxIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes lightboxIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.lightbox-img {
  max-width: 90vw;
  max-height: 75vh;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
  object-fit: contain;
  background: var(--surface);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 2;
}

.lightbox-close:hover {
  background: var(--red);
  border-color: var(--red);
  color: white;
  transform: rotate(90deg);
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(10, 15, 26, 0.8);
  backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 2;
}

.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }

.lightbox-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: 0 0 20px var(--accent-glow);
}

.lightbox-caption {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}

.lightbox-counter {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}

/* ===== LIGHTBOX RESPONSIVE ===== */
@media (max-width: 700px) {
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }

  .lightbox-arrow {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .lightbox-close {
    top: -36px;
    right: 4px;
  }

  .lightbox-img {
    max-width: 95vw;
    max-height: 70vh;
  }
}