/* ========================================
   NEXHUB — Design System
   Based on Hexa Design — Vercel/Linear inspired
   ======================================== */

/* Inter Font — self-hosted */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300; font-display: swap; src: url('assets/fonts/inter-300.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('assets/fonts/inter-700.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url('assets/fonts/inter-800.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 900; font-display: swap; src: url('assets/fonts/inter-900.woff2') format('woff2'); }

:root {
  color-scheme: dark only;
  --bg: #0a0a0f;
  --bg-2: #0d0d14;
  --bg-3: #12121c;
  --bg-card: rgba(124,58,237,0.04);
  --bg-card-hover: rgba(124,58,237,0.1);
  --bg-glass: rgba(10,10,15,0.82);

  --purple: #7c3aed;
  --purple-dim: rgba(124,58,237,0.15);
  --purple-glow: rgba(124,58,237,0.3);
  --purple-glow-lg: rgba(124,58,237,0.2);
  --accent: #a855f7;
  --violet: #a855f7;
  --indigo: #6d28d9;
  --cyan: #a855f7;
  --cyan-dim: rgba(168,85,247,0.12);

  --text: #f0eef6;
  --text-2: #a09bb8;
  --text-3: #5b5673;

  --border: rgba(124,58,237,0.1);
  --border-hover: rgba(124,58,237,0.25);

  --radius: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg) !important;
  color: var(--text) !important;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > section, body > .cta { flex: 1; }
body > footer { margin-top: auto; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; }

/* ========================================
   BACKGROUND
   ======================================== */
.bg-effects {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 15% 5%, rgba(124,58,237,0.14), transparent),
    radial-gradient(ellipse 50% 45% at 85% 80%, rgba(168,85,247,0.08), transparent),
    radial-gradient(ellipse 40% 35% at 50% 50%, rgba(124,58,237,0.05), transparent);
  animation: bgShift 20s ease-in-out infinite alternate;
}

@keyframes bgShift {
  0% { background-position: 0% 0%; }
  50% { background-position: 2% 1%; }
  100% { background-position: -1% -1%; }
}

.bg-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(124,58,237,0.12) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, black, transparent);
  animation: gridFade 8s ease-in-out infinite alternate;
}

@keyframes gridFade {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%;
  z-index: 1000;
  padding: 0;
  transition: background 0.3s var(--ease), border 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(10,10,15,0.75);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border-bottom-color: rgba(124,58,237,0.1);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.nav-brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 1.15rem;
}

.brand-icon {
  width: 30px; height: 30px;
  background: linear-gradient(135deg, var(--purple), var(--accent));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  box-shadow: 0 0 20px rgba(124,58,237,0.3);
  color: #fff;
  font-weight: 800;
}

.nav-brand span {
  background: linear-gradient(135deg, #fff 30%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 32px;
}

.nav-links a {
  font-size: 0.82rem; font-weight: 500; color: var(--text-2);
  transition: color 0.2s var(--ease);
  position: relative;
}

.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--accent));
  border-radius: 2px;
  transition: width 0.3s var(--ease);
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 12px; }

.btn-nav-login {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px;
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: var(--radius-full);
  font-size: 0.8rem; font-weight: 600; color: var(--text);
  transition: all 0.25s var(--ease);
}

.btn-nav-login svg { flex-shrink: 0; }
.btn-nav-login:hover {
  background: rgba(124,58,237,0.2);
  border-color: var(--purple);
  box-shadow: 0 0 20px rgba(124,58,237,0.15);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none; flex-direction: column; gap: 4px;
  background: none; padding: 4px;
}

.nav-toggle span {
  display: block; width: 20px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all 0.25s var(--ease);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-weight: 600; white-space: nowrap;
  transition: all 0.2s var(--ease); cursor: pointer; border: none;
}

.btn svg { flex-shrink: 0; }

.btn-primary {
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--indigo), var(--accent));
  color: #fff; border-radius: var(--radius-full);
  font-size: 0.88rem;
  box-shadow: 0 0 24px rgba(124,58,237,0.2), 0 0 48px rgba(168,85,247,0.1);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s var(--ease);
}

.btn-primary:hover::before { left: 100%; }

.btn-primary:hover {
  box-shadow: 0 0 50px rgba(124,58,237,0.4), 0 0 100px rgba(124,58,237,0.15);
  transform: translateY(-2px);
}

.btn-ghost {
  padding: 12px 24px;
  background: transparent; color: var(--text-2);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.03);
}

.btn-discord {
  padding: 12px 28px;
  background: #5865F2; color: #fff;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  box-shadow: 0 0 30px rgba(88,101,242,0.25);
}

.btn-discord:hover {
  background: #4752C4;
  box-shadow: 0 0 50px rgba(88,101,242,0.35);
  transform: translateY(-1px);
}

.btn-lg { padding: 14px 32px; font-size: 0.92rem; }

.btn-glow { position: relative; }

.btn-glow::after {
  content: '';
  position: absolute; inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--indigo), var(--accent));
  z-index: -1;
  filter: blur(14px);
  opacity: 0.4;
  animation: btnGlowPulse 3s ease-in-out infinite;
  transition: opacity 0.3s;
}

.btn-glow:hover::after { opacity: 0.7; }

@keyframes btnGlowPulse {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.04); }
}

/* ========================================
   HERO
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 120px 24px 60px;
  overflow: hidden;
  z-index: 1;
}

.hero-glow {
  position: absolute;
  top: -30%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px;
  background:
    radial-gradient(ellipse 60% 70% at 50% 30%, rgba(124,58,237,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 35% 60%, rgba(168,85,247,0.08) 0%, transparent 50%),
    radial-gradient(ellipse 40% 50% at 65% 50%, rgba(168,85,247,0.1) 0%, transparent 50%);
  pointer-events: none;
  animation: heroGlow 10s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.06); }
  100% { opacity: 0.75; transform: translateX(-50%) scale(1.03); }
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 16px;
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 500;
  color: var(--accent);
  margin-bottom: 32px;
  animation: fadeIn 0.6s var(--ease), pillGlow 4s ease-in-out infinite;
  background: rgba(124,58,237,0.06);
}

@keyframes pillGlow {
  0%, 100% { box-shadow: 0 0 16px rgba(124,58,237,0.06); }
  50% { box-shadow: 0 0 28px rgba(124,58,237,0.15); }
}

.pill-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #fbbf24;
  animation: pulse 2s ease-in-out infinite;
  transition: background 0.3s;
}

.pill-dot.online { background: #34d399; }

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

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -2px;
  margin-bottom: 24px;
  color: var(--text);
}

.title-line {
  display: block;
  animation: titleReveal 0.8s var(--ease) both;
}

.title-line:nth-child(1) { animation-delay: 0.1s; }
.title-line:nth-child(2) { animation-delay: 0.25s; }
.title-line:nth-child(3) { animation-delay: 0.4s; }

@keyframes titleReveal {
  from { opacity: 0; transform: translateY(28px) skewY(1.5deg); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0) skewY(0deg); filter: blur(0); }
}

.grad {
  background: linear-gradient(135deg, var(--indigo), var(--purple), var(--accent), var(--indigo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 300% 300%;
  animation: gradShift 12s ease-in-out infinite;
}

@keyframes gradShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-sub {
  font-size: 1.08rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 40px;
  animation: fadeUp 0.7s var(--ease) 0.35s both;
}

.hero-btns {
  display: flex; align-items: center; justify-content: center;
  gap: 14px;
  animation: fadeUp 0.7s var(--ease) 0.45s both;
}

/* Stats Bar */
.stats-bar {
  position: relative; z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 72px;
  padding: 24px 48px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  animation: fadeUp 0.7s var(--ease) 0.55s both;
  overflow: hidden;
}

.stats-bar::before {
  content: '';
  position: absolute; top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--indigo), var(--accent), transparent);
  animation: statBarShine 4s ease-in-out infinite;
}

@keyframes statBarShine {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.stats-bar::after {
  content: '';
  position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,0.04), transparent);
  animation: statSweep 6s ease-in-out infinite;
}

@keyframes statSweep {
  0% { left: -50%; }
  100% { left: 150%; }
}

.stat-item {
  display: flex; flex-direction: column;
  align-items: center;
  padding: 0 34px;
  min-width: 100px;
}

.stat-val {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--indigo), var(--purple), var(--accent), var(--indigo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 300% 300%;
  animation: gradShift 12s ease-in-out infinite;
}

.stat-item:hover .stat-val {
  transform: scale(1.08);
  transition: transform 0.3s var(--ease);
}

.stat-lbl {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 4px;
}

.stat-sep {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, transparent, rgba(124,58,237,0.2), rgba(168,85,247,0.15), transparent);
  flex-shrink: 0;
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
  position: relative;
  padding: 120px 0;
  z-index: 1;
}

.section::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,0.2), rgba(168,85,247,0.15), transparent);
}

.section-alt {
  background: rgba(10,10,15,0.4);
}

.section-alt::before { display: none; }

.sec-head {
  text-align: center;
  margin-bottom: 60px;
}

.sec-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--accent);
  margin-bottom: 14px;
  padding: 5px 16px;
  background: var(--cyan-dim);
  border: 1px solid rgba(168,85,247,0.2);
  border-radius: var(--radius-full);
  position: relative;
  overflow: hidden;
}

.sec-tag::after {
  content: '';
  position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(168,85,247,0.12), transparent);
  animation: tagShimmer 3s ease-in-out infinite;
}

@keyframes tagShimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}

.sec-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text);
}

.sec-sub {
  font-size: 1rem;
  color: var(--text-2);
  margin-top: 12px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   ABOUT GRID
   ======================================== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.about-card {
  position: relative;
  padding: 32px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  overflow: hidden;
  text-align: center;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--indigo), var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.about-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 16px 50px rgba(124,58,237,0.1), 0 4px 20px rgba(0,0,0,0.3);
}

.about-card:hover::before { opacity: 0.6; }

.about-card .bento-icon {
  margin: 0 auto 18px;
}

.about-card h3 {
  font-size: 1.02rem; font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.about-card p {
  font-size: 0.85rem; color: var(--text-2);
  line-height: 1.6;
}

/* ========================================
   PROJECT FILTER
   ======================================== */
.project-filter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 7px 18px;
  background: rgba(124,58,237,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.filter-btn:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: rgba(124,58,237,0.12);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--indigo), var(--accent));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 16px rgba(124,58,237,0.2);
}

/* ========================================
   PROJECT GRID (BENTO)
   ======================================== */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.bento-card {
  position: relative;
  padding: 28px 28px 28px 32px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), opacity 0.4s var(--ease);
  overflow: hidden;
  --mouse-x: 50%;
  --mouse-y: 50%;
}

.bento-card.hidden {
  display: none;
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--purple), var(--accent));
  opacity: 0.5;
  transition: opacity 0.3s var(--ease);
}

.bento-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--purple), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.bento-card .card-spotlight {
  position: absolute; inset: 0;
  background: radial-gradient(350px circle at var(--mouse-x) var(--mouse-y),
    rgba(124,58,237,0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none; z-index: 0;
}

.bento-card:hover .card-spotlight { opacity: 1; }

.bento-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow:
    0 16px 50px rgba(124,58,237,0.1),
    0 4px 20px rgba(0,0,0,0.3);
}

.bento-card:hover::before { opacity: 1; }
.bento-card:hover::after { opacity: 0.6; }

.bento-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(168,85,247,0.06));
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin-bottom: 18px;
  transition: all 0.3s var(--ease);
  position: relative;
  z-index: 1;
}

.bento-card:hover .bento-icon {
  background: linear-gradient(135deg, rgba(124,58,237,0.25), rgba(168,85,247,0.15));
  color: var(--accent);
  box-shadow: 0 0 24px rgba(168,85,247,0.15);
  transform: scale(1.08) rotate(-3deg);
}

.bento-card h3 {
  font-size: 1.02rem; font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
  position: relative; z-index: 1;
}

.bento-card p {
  font-size: 0.85rem; color: var(--text-2) !important;
  line-height: 1.6;
  position: relative; z-index: 1;
}

.bento-badge {
  position: absolute; top: 18px; right: 18px;
  padding: 4px 12px; border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--indigo), var(--accent));
  font-size: 0.6rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: #fff;
  z-index: 1;
  animation: badgePulse 3s ease-in-out infinite;
}

.bento-badge-new {
  background: linear-gradient(135deg, #10b981, #34d399);
  animation: badgePulseNew 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 10px rgba(124,58,237,0.2); }
  50% { box-shadow: 0 0 22px rgba(168,85,247,0.35); }
}

@keyframes badgePulseNew {
  0%, 100% { box-shadow: 0 0 10px rgba(16,185,129,0.2); }
  50% { box-shadow: 0 0 22px rgba(52,211,153,0.4); }
}

.bento-badge-dev {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  animation: badgePulseDev 3s ease-in-out infinite;
}

@keyframes badgePulseDev {
  0%, 100% { box-shadow: 0 0 10px rgba(245,158,11,0.2); }
  50% { box-shadow: 0 0 22px rgba(251,191,36,0.4); }
}

.bento-badge-planned {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  animation: badgePulsePlanned 3s ease-in-out infinite;
}

@keyframes badgePulsePlanned {
  0%, 100% { box-shadow: 0 0 10px rgba(59,130,246,0.2); }
  50% { box-shadow: 0 0 22px rgba(96,165,250,0.4); }
}

.bento-badge-paused {
  background: linear-gradient(135deg, #6b7280, #9ca3af);
  animation: badgePulsePaused 3s ease-in-out infinite;
}

@keyframes badgePulsePaused {
  0%, 100% { box-shadow: 0 0 10px rgba(107,114,128,0.2); }
  50% { box-shadow: 0 0 22px rgba(156,163,175,0.3); }
}

.bento-badge-client {
  background: linear-gradient(135deg, #8b5cf6, #c084fc);
  animation: badgePulseClient 3s ease-in-out infinite;
}

@keyframes badgePulseClient {
  0%, 100% { box-shadow: 0 0 10px rgba(139,92,246,0.2); }
  50% { box-shadow: 0 0 22px rgba(192,132,252,0.4); }
}

.card-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  position: relative;
  z-index: 1;
  transition: all 0.2s var(--ease);
}

.card-link:hover {
  color: #fff;
  text-shadow: 0 0 12px rgba(168,85,247,0.4);
}

/* ========================================
   TEAM
   ======================================== */
.team-grid {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.team-card {
  text-align: center;
  padding: 44px 40px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 380px;
  width: 100%;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.team-card::before {
  content: '';
  position: absolute; top: 0; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--indigo), var(--accent), transparent);
  background-size: 200% 100%;
  animation: statusLine 3s linear infinite;
}

@keyframes statusLine {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.team-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 16px 50px rgba(124,58,237,0.1), 0 4px 20px rgba(0,0,0,0.3);
}

.team-avatar {
  margin-bottom: 20px;
}

.team-avatar-placeholder {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--indigo), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 800; color: #fff;
  margin: 0 auto;
  box-shadow: 0 0 32px rgba(124,58,237,0.3), 0 0 60px rgba(168,85,247,0.15);
  transition: transform 0.3s var(--ease);
}

.team-card:hover .team-avatar-placeholder {
  transform: scale(1.08);
}

.team-card h3 {
  font-size: 1.2rem; font-weight: 800;
  margin-bottom: 4px;
  color: var(--text);
}

.team-role {
  display: block;
  font-size: 0.78rem; font-weight: 600;
  color: var(--accent);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.team-handle {
  font-size: 0.82rem;
  color: var(--text-3);
  margin-bottom: 16px;
}

.team-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}

.team-links a, .team-links span {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(124,58,237,0.08);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
  transition: all 0.25s var(--ease);
}

.team-links a:hover {
  background: rgba(124,58,237,0.2);
  border-color: var(--border-hover);
  color: var(--accent);
  transform: translateY(-2px);
}

.team-card-link {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.team-card-arrow {
  display: block;
  margin-top: 16px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-3);
  transition: color 0.25s var(--ease);
}

.team-card-link:hover .team-card-arrow {
  color: var(--accent);
}

.team-skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.skill-tag {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(124,58,237,0.06);
  border: 1px solid var(--border);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-2);
}

/* ========================================
   CTA
   ======================================== */
.cta { padding: 80px 0 120px; }

.cta-box {
  text-align: center;
  padding: 80px 52px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(124,58,237,0.06), rgba(168,85,247,0.04));
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 60px rgba(0,0,0,0.25), 0 0 80px rgba(124,58,237,0.05);
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--indigo), var(--accent), transparent);
}

.cta-box::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 20% 0%, rgba(124,58,237,0.08), transparent 50%),
    radial-gradient(ellipse 50% 40% at 80% 100%, rgba(168,85,247,0.06), transparent 50%);
  pointer-events: none;
  animation: ctaAmbient 8s ease-in-out infinite alternate;
}

@keyframes ctaAmbient {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

.cta-box h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900; letter-spacing: -1.5px;
  margin-bottom: 14px;
  color: var(--text);
}

.cta-box p {
  font-size: 1.05rem; color: var(--text-2);
  margin-bottom: 36px;
}

.cta-btns {
  display: flex; align-items: center; justify-content: center;
  gap: 14px;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  position: relative; z-index: 1;
  background: var(--bg-2);
}

.footer-inner {
  display: flex; flex-direction: column;
  align-items: center; gap: 20px;
}

.footer-left {
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
}

.footer-left p {
  font-size: 0.82rem; color: var(--text-3);
}

.footer-links {
  display: flex; gap: 24px; flex-wrap: wrap; justify-content: center;
}

.footer-links a {
  font-size: 0.8rem; color: var(--text-2);
  transition: color 0.2s var(--ease);
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; width: 0; height: 1px;
  background: linear-gradient(90deg, var(--indigo), var(--accent));
  transition: width 0.3s var(--ease);
}

.footer-links a:hover { color: var(--text); }
.footer-links a:hover::after { width: 100%; }

.footer-copy {
  font-size: 0.72rem; color: var(--text-3);
}

/* ========================================
   SCROLL REVEAL
   ======================================== */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1; transform: translateY(0);
}

.bento.visible .bento-card:not(.hidden) {
  opacity: 0;
  animation: cardReveal 0.6s var(--ease) forwards;
}

.bento.visible .bento-card:nth-child(1) { animation-delay: 0s; }
.bento.visible .bento-card:nth-child(2) { animation-delay: 0.06s; }
.bento.visible .bento-card:nth-child(3) { animation-delay: 0.12s; }
.bento.visible .bento-card:nth-child(4) { animation-delay: 0.18s; }
.bento.visible .bento-card:nth-child(5) { animation-delay: 0.24s; }
.bento.visible .bento-card:nth-child(6) { animation-delay: 0.30s; }
.bento.visible .bento-card:nth-child(7) { animation-delay: 0.36s; }
.bento.visible .bento-card:nth-child(8) { animation-delay: 0.42s; }
.bento.visible .bento-card:nth-child(9) { animation-delay: 0.48s; }
.bento.visible .bento-card:nth-child(10) { animation-delay: 0.54s; }
.bento.visible .bento-card:nth-child(11) { animation-delay: 0.60s; }
.bento.visible .bento-card:nth-child(12) { animation-delay: 0.66s; }
.bento.visible .bento-card:nth-child(13) { animation-delay: 0.72s; }
.bento.visible .bento-card:nth-child(14) { animation-delay: 0.78s; }
.bento.visible .bento-card:nth-child(15) { animation-delay: 0.84s; }

@keyframes cardReveal {
  from { opacity: 0; transform: translateY(24px) scale(0.96); filter: blur(3px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: 56px; left: 0; right: 0;
    background: rgba(10,10,15,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column; gap: 0;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    transform: translateX(-50%) translateY(-10px);
    opacity: 0; visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
    left: 50%;
    width: 100%;
  }

  .nav-links.open {
    opacity: 1; visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  .nav-links a {
    display: block;
    padding: 14px 24px;
    font-size: 0.95rem;
  }

  .nav-links a::after { display: none; }

  .nav-toggle { display: flex; }

  .nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .btn-nav-login { display: none; }

  .hero { padding: 100px 16px 40px; min-height: auto; }
  .hero-title { letter-spacing: -1px; }

  .stats-bar {
    flex-wrap: wrap;
    padding: 20px 24px;
    gap: 16px;
  }

  .stat-sep { display: none; }

  .stat-item {
    min-width: 70px;
    padding: 0 16px;
  }

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

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

  .cta-box {
    padding: 48px 24px;
  }

  .cta-btns {
    flex-direction: column;
  }

  .team-card {
    max-width: 100%;
  }

  .project-filter {
    gap: 6px;
  }

  .filter-btn {
    padding: 6px 14px;
    font-size: 0.72rem;
  }
}

@media (max-width: 480px) {
  .hero-sub { font-size: 0.95rem; }
  .hero-btns { flex-direction: column; width: 100%; }
  .hero-btns .btn { width: 100%; }
}
