/* =========================================================
   SoulSpider Portfolio — Design Tokens
   ========================================================= */
:root {
  --bg-base: #0d0d12;
  --bg-elevated: #14141c;
  --bg-card: rgba(255, 255, 255, 0.04);
  --border-glass: rgba(255, 255, 255, 0.08);

  --violet: #8b3dff;
  --violet-bright: #a45bff;
  --violet-deep: #5b1fb8;
  --cyan: #33e8ff;
  --cyan-deep: #10b8cf;

  --text-primary: #f5f5fa;
  --text-secondary: #a3a3b8;
  --text-muted: #6b6b80;

  --success: #37e08a;
  --danger: #ff5c7a;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;

  --shadow-glow-violet: 0 0 40px rgba(139, 61, 255, 0.35);
  --shadow-glow-cyan: 0 0 40px rgba(51, 232, 255, 0.25);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-heading: 'Outfit', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

h1, h2, h3, h4, h5 { font-family: var(--font-heading); margin: 0; }
p { margin: 0; }
a { text-decoration: none; color: inherit; }
button { font-family: var(--font-body); cursor: pointer; }
ul { margin: 0; padding: 0; }

img { max-width: 100%; display: block; }

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

.section { padding: 110px 0; position: relative; z-index: 2; }
@media (max-width: 768px) { .section { padding: 80px 0; } }

.text-gradient {
  background: linear-gradient(120deg, var(--violet-bright), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-kicker {
  color: var(--cyan);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
}

.section-text {
  color: var(--text-secondary);
  font-size: 1.02rem;
  max-width: 640px;
}

.section-header { text-align: center; margin-bottom: 56px; }
.section-header .section-text { margin: 0 auto; }

/* =========================================================
   Background: particles + grid
   ========================================================= */
#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(139, 61, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 61, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 0%, rgba(0,0,0,0.9) 0%, transparent 70%);
  opacity: 0.6;
}

/* =========================================================
   Glass Cards
   ========================================================= */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  position: relative;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.92rem;
  border: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  white-space: nowrap;
}
.btn-lg { padding: 15px 30px; font-size: 1rem; }

.btn-primary {
  background: linear-gradient(120deg, var(--violet), var(--violet-bright));
  color: #fff;
  box-shadow: 0 4px 20px rgba(139, 61, 255, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 61, 255, 0.6), 0 0 0 1px rgba(51,232,255,0.3);
}
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-ghost {
  background: rgba(255,255,255,0.03);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}
.btn-ghost:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(51,232,255,0.25);
  transform: translateY(-2px);
}
.btn-ghost:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

/* =========================================================
   Header / Navigation
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.3s var(--ease), padding 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.scrolled {
  background: rgba(13, 13, 18, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 10px 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.35);
  border-bottom: 1px solid var(--border-glass);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--violet-bright);
  box-shadow: 0 0 16px rgba(139,61,255,0.5);
  object-fit: cover;
}
.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text-primary);
}
.accent-text { color: var(--cyan); }

.nav-desktop { display: flex; gap: 32px; }
.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s var(--ease);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--violet-bright), var(--cyan));
  transition: width 0.3s var(--ease);
}
.nav-link:hover { color: var(--text-primary); }
.nav-link:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 16px; }
.btn-cta { display: inline-flex; }

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--border-glass);
  border-radius: 10px;
}
.mobile-menu-btn span {
  width: 20px; height: 2px;
  background: var(--text-primary);
  margin: 0 auto;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.mobile-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-desktop, .btn-cta { display: none; }
  .mobile-menu-btn { display: flex; }
}

/* Mobile Drawer */
.mobile-drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.mobile-drawer-overlay.active { opacity: 1; pointer-events: auto; }

.mobile-drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: min(340px, 85vw);
  background: linear-gradient(160deg, #14141c, #0d0d12);
  border-left: 1px solid var(--border-glass);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.mobile-drawer.active { transform: translateX(0); }

.mobile-drawer-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-glass);
}
.mobile-drawer-header .brand-name { flex: 1; }
.mobile-drawer-header button {
  background: transparent; border: none; color: var(--text-secondary);
  font-size: 1.2rem;
}

.mobile-nav { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.mobile-nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 500;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.mobile-nav-link i { width: 20px; color: var(--violet-bright); }
.mobile-nav-link:hover { background: rgba(139,61,255,0.1); color: var(--text-primary); }
.mobile-cta { justify-content: center; margin-top: 20px; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
  padding-top: 100px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.55;
}
.hero-glow-1 {
  width: 500px; height: 500px;
  background: var(--violet);
  top: -100px; left: -150px;
  animation: floatSlow 12s ease-in-out infinite;
}
.hero-glow-2 {
  width: 450px; height: 450px;
  background: var(--cyan);
  bottom: -150px; right: -120px;
  opacity: 0.3;
  animation: floatSlow 14s ease-in-out infinite reverse;
}
@keyframes floatSlow {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.08); }
}

.hero-inner { position: relative; z-index: 2; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--cyan);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  padding: 8px 16px;
  border: 1px solid rgba(51,232,255,0.3);
  border-radius: var(--radius-full);
  background: rgba(51,232,255,0.06);
}
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 900;
  line-height: 1.08;
  max-width: 800px;
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}
.hero-bio {
  color: var(--text-secondary);
  font-size: 1.08rem;
  max-width: 620px;
  margin-bottom: 34px;
}

.hero-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}
.social-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  font-weight: 600;
  font-size: 0.88rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.social-badge i { font-size: 1.05rem; }
.social-badge:hover { transform: translateY(-4px) scale(1.03); }
.social-youtube:hover { border-color: #ff3b3b; box-shadow: 0 8px 24px rgba(255,59,59,0.35); }
.social-youtube i { color: #ff3b3b; }
.social-instagram:hover { border-color: #e1306c; box-shadow: 0 8px 24px rgba(225,48,108,0.35); }
.social-instagram i { color: #e1306c; }
.social-email:hover { border-color: var(--cyan); box-shadow: 0 8px 24px rgba(51,232,255,0.3); }
.social-email i { color: var(--cyan); }
.social-discord:hover { border-color: #5865f2; box-shadow: 0 8px 24px rgba(88,101,242,0.35); }
.social-discord i { color: #5865f2; }

.hero-cta-row { display: flex; flex-wrap: wrap; gap: 16px; }

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 1.2rem;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* =========================================================
   Scroll Reveal
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* =========================================================
   About
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .about-media { justify-self: center; }
  .about-stats { justify-content: center; }
}

.about-frame {
  position: relative;
  padding: 12px;
  border-radius: 28px;
  overflow: hidden;
}
.about-avatar { border-radius: 20px; width: 100%; }
.about-frame-glow {
  position: absolute; inset: -2px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--violet), transparent 40%, var(--cyan));
  z-index: -1;
  opacity: 0.6;
  filter: blur(20px);
}

.about-stats { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.stat-card {
  padding: 18px 24px;
  text-align: center;
  min-width: 130px;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow-violet); border-color: rgba(139,61,255,0.4); }
.stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--cyan);
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); }

/* =========================================================
   Portfolio / Tabs / Video Grid
   ========================================================= */
.tab-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 48px;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  padding: 8px;
  max-width: fit-content;
  margin-inline: auto;
}
.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
  transition: color 0.3s var(--ease);
  position: relative;
  z-index: 2;
  white-space: nowrap;
}
.tab-btn.active { color: #fff; }
.tab-btn:hover:not(.active) { color: var(--text-primary); }

.tab-indicator {
  position: absolute;
  top: 8px; left: 8px;
  height: calc(100% - 16px);
  border-radius: var(--radius-full);
  background: linear-gradient(120deg, var(--violet), var(--violet-bright));
  box-shadow: 0 0 18px rgba(139,61,255,0.5);
  transition: left 0.35s var(--ease), width 0.35s var(--ease);
  z-index: 1;
}

@media (max-width: 700px) {
  .tab-filter { max-width: 100%; overflow-x: auto; justify-content: flex-start; }
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 980px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .video-grid { grid-template-columns: 1fr; } }

.video-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  opacity: 0;
  transform: translateY(24px);
  animation: cardIn 0.6s var(--ease) forwards;
}
@keyframes cardIn { to { opacity: 1; transform: translateY(0); } }

.video-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 16px 40px rgba(139,61,255,0.35);
  border-color: rgba(51,232,255,0.4);
}

.video-thumb-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #1a1a24;
}
.video-thumb-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.video-card:hover .video-thumb-wrap img { transform: scale(1.1); }

.video-play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13,13,18,0.25);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.video-card:hover .video-play-icon { opacity: 1; }
.video-play-icon i {
  font-size: 1.8rem;
  color: #fff;
  background: linear-gradient(120deg, var(--violet), var(--cyan));
  width: 62px; height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.7);
  transition: transform 0.35s var(--ease);
  box-shadow: 0 0 30px rgba(139,61,255,0.6);
}
.video-card:hover .video-play-icon i { transform: scale(1); }

.video-category-tag {
  position: absolute;
  top: 10px; left: 10px;
  background: rgba(13,13,18,0.7);
  border: 1px solid rgba(51,232,255,0.35);
  color: var(--cyan);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(6px);
}

.video-info { padding: 16px 18px; }
.video-title {
  font-weight: 600;
  font-size: 0.98rem;
  margin-bottom: 6px;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-meta { font-size: 0.78rem; color: var(--text-muted); }

.no-videos-msg {
  text-align: center;
  color: var(--text-muted);
  padding: 60px 0;
  grid-column: 1/-1;
}

/* Lightbox */
.lightbox-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
  padding: 20px;
}
.lightbox-overlay.active { opacity: 1; pointer-events: auto; }

.lightbox-content {
  width: 100%;
  max-width: 960px;
  position: relative;
  transform: scale(0.92);
  transition: transform 0.35s var(--ease);
}
.lightbox-overlay.active .lightbox-content { transform: scale(1); }

.lightbox-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 0 60px rgba(139,61,255,0.4);
}
.lightbox-video-wrap iframe { width: 100%; height: 100%; border: none; }

.lightbox-close {
  position: absolute;
  top: -50px; right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: #fff;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 1.1rem;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.lightbox-close:hover { background: var(--danger); transform: rotate(90deg); }

/* =========================================================
   Discord Hub
   ========================================================= */
.discord-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
@media (max-width: 780px) { .discord-grid { grid-template-columns: 1fr; } }

.discord-card {
  padding: 40px 32px;
  text-align: center;
}
.discord-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(139,61,255,0.25);
  border-color: rgba(139,61,255,0.4);
}
.discord-card-icon {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--violet), var(--violet-bright));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  margin: 0 auto 20px;
  box-shadow: 0 0 30px rgba(139,61,255,0.5);
}
.discord-card-icon-cyan {
  background: linear-gradient(120deg, var(--cyan-deep), var(--cyan));
  box-shadow: 0 0 30px rgba(51,232,255,0.4);
}
.discord-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; }
.discord-card p { color: var(--text-secondary); font-size: 0.92rem; margin-bottom: 20px; }

.discord-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.75rem; font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.discord-badge-soon { background: rgba(255,255,255,0.06); color: var(--text-muted); border: 1px solid var(--border-glass); }
.discord-badge-live { background: rgba(55,224,138,0.12); color: var(--success); border: 1px solid rgba(55,224,138,0.3); }
.discord-badge-live i { font-size: 0.5rem; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

.discord-btn { width: 100%; justify-content: center; }

/* =========================================================
   Sponsorship
   ========================================================= */
.sponsorship-card {
  text-align: center;
  padding: 60px 40px;
  max-width: 800px;
  margin: 0 auto;
}
.sponsorship-icon {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--violet), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: #fff;
  margin: 0 auto 24px;
  box-shadow: 0 0 40px rgba(139,61,255,0.5);
}
.sponsorship-card .section-title, .sponsorship-card .section-text { margin-left: auto; margin-right: auto; }
.sponsorship-card .section-text { margin-bottom: 32px; }

.email-copy-box {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  padding: 10px 10px 10px 22px;
  flex-wrap: wrap;
  justify-content: center;
}
.email-copy-box i { color: var(--cyan); }
.email-copy-box span { font-weight: 600; font-size: 0.95rem; }
.copy-btn {
  background: linear-gradient(120deg, var(--violet), var(--violet-bright));
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.copy-btn:hover { transform: scale(1.05); }
.copy-btn.copied { background: linear-gradient(120deg, var(--success), #2bd67f); }

/* =========================================================
   Work-With-Us & Team Roles
   ========================================================= */
.role-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
@media (max-width: 980px) { .role-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .role-grid { grid-template-columns: 1fr; } }

.role-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.role-card:hover {
  transform: translateY(-6px);
  border-color: var(--cyan);
  box-shadow: 0 16px 36px rgba(51,232,255,0.2);
}
.role-card-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--violet), var(--violet-bright));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: #fff;
  margin: 0 auto 16px;
}
.role-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.role-card p { font-size: 0.8rem; color: var(--text-muted); }

.team-categories { display: flex; flex-direction: column; gap: 36px; margin-bottom: 40px; }
.team-category-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
  color: var(--text-primary);
}
.team-category-title i { color: var(--cyan); }
.team-role-chips { display: flex; flex-wrap: wrap; gap: 12px; }

.role-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.role-chip:hover {
  transform: translateY(-3px);
  border-color: var(--violet-bright);
  box-shadow: 0 8px 24px rgba(139,61,255,0.3);
  background: rgba(139,61,255,0.1);
}
.role-chip i { color: var(--violet-bright); }

.role-form-wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: 36px;
  display: none;
}
.role-form-wrap.active { display: block; animation: formIn 0.4s var(--ease); }
@keyframes formIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

.role-form-back {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: color 0.25s var(--ease);
}
.role-form-back:hover { color: var(--cyan); }
.role-form-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 24px; }
.role-form-title::before {
  content: '';
}

/* =========================================================
   Forms (shared)
   ========================================================= */
.app-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 0.92rem;
  font-family: var(--font-body);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  outline: none;
  width: 100%;
}
.form-group textarea { resize: vertical; min-height: 90px; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(51,232,255,0.15);
}
.form-group select { cursor: pointer; }
.form-group select option { background: var(--bg-elevated); color: var(--text-primary); }

.submit-btn {
  position: relative;
  justify-content: center;
  padding: 14px 24px;
  overflow: hidden;
}
.submit-btn-loading, .submit-btn-success { display: none; }
.submit-btn.loading .submit-btn-label { display: none; }
.submit-btn.loading .submit-btn-loading { display: inline-flex; align-items: center; gap: 8px; }
.submit-btn.success .submit-btn-label { display: none; }
.submit-btn.success .submit-btn-success { display: inline-flex; align-items: center; gap: 8px; }
.submit-btn.success { background: linear-gradient(120deg, var(--success), #2bd67f); }

.form-status {
  font-size: 0.85rem;
  min-height: 20px;
  color: var(--text-muted);
}
.form-status.error { color: var(--danger); }
.form-status.success { color: var(--success); }

/* =========================================================
   Collaborate / Contact
   ========================================================= */
.collab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
@media (max-width: 900px) { .collab-grid { grid-template-columns: 1fr; } }

.collab-list { display: flex; flex-direction: column; gap: 12px; margin: 24px 0; }
.collab-list li {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.collab-list i {
  color: var(--success);
  background: rgba(55,224,138,0.12);
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem;
}

.collab-contact-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  background: rgba(51,232,255,0.06);
  border: 1px solid rgba(51,232,255,0.25);
  border-radius: var(--radius-full);
  font-weight: 600;
  color: var(--cyan);
}

.collab-form-card { padding: 36px; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-glass);
  padding: 40px 0;
  position: relative;
  z-index: 2;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-socials { display: flex; gap: 16px; }
.footer-socials a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-glass);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.footer-socials a:hover { transform: translateY(-4px); color: var(--cyan); border-color: var(--cyan); }
.footer-copy { color: var(--text-muted); font-size: 0.85rem; }

.back-to-top {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--violet), var(--violet-bright));
  border: none;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 20px rgba(139,61,255,0.5);
  transition: transform 0.3s var(--ease);
}
.back-to-top:hover { transform: translateY(-4px) scale(1.05); }

/* =========================================================
   Toast
   ========================================================= */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-elevated);
  border: 1px solid var(--border-glass);
  padding: 14px 24px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast i { color: var(--success); }
