/* ═══════════════════════════════════════════════════════════════
   ProjectHub — Design System
   Palette: Indigo Ink + Electric Cyan
   Fonts: Bricolage Grotesque + Plus Jakarta Sans
═══════════════════════════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
  --bg-deep:       #0D0720;
  --bg-dark:       #1B0A3C;
  --bg-card:       #231052;
  --bg-card-hover: #2A1460;
  --bg-surface:    #160836;
  --purple-mid:    #3D1E7C;
  --purple-light:  #7B68EE;
  --purple-pale:   #E8E0F0;
  --cyan:          #00D4FF;
  --cyan-dim:      #00A8CC;
  --cyan-glow:     rgba(0, 212, 255, 0.15);
  --cyan-glow-md:  rgba(0, 212, 255, 0.25);
  --text-primary:  #F0ECFF;
  --text-secondary:#B8A8D8;
  --text-muted:    #7A6A9A;
  --border:        rgba(123, 104, 238, 0.2);
  --border-cyan:   rgba(0, 212, 255, 0.3);
  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     20px;
  --radius-xl:     28px;
  --shadow-card:   0 4px 24px rgba(0,0,0,0.4), 0 1px 4px rgba(0,0,0,0.3);
  --shadow-glow:   0 0 30px rgba(0, 212, 255, 0.2);
  --transition:    0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display:  'Bricolage Grotesque', sans-serif;
  --font-body:     'Plus Jakarta Sans', sans-serif;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
img { max-width: 100%; display: block; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--purple-mid); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--purple-light); }

/* ── Utility ── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }
.page { display: none; }
.page.active { display: block; }

/* ═══════════════════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(13, 7, 32, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(13, 7, 32, 0.97);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-icon { width: 32px; height: 32px; }

.logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.nav-link svg { width: 16px; height: 16px; }

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(123, 104, 238, 0.12);
}

.nav-link.active {
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.08);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ═══════════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(61, 30, 124, 0.5) 0%, transparent 70%),
              radial-gradient(ellipse 40% 40% at 80% 50%, rgba(0, 212, 255, 0.06) 0%, transparent 60%),
              var(--bg-deep);
}

.circuit-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.35;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  flex: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid var(--border-cyan);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--cyan);
  margin-bottom: 24px;
  animation: fadeInDown 0.6s ease both;
}

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

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

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 20px;
  animation: fadeInUp 0.7s 0.1s ease both;
}

.hero-accent {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
  animation: fadeInUp 0.7s 0.2s ease both;
}

.hero-search { animation: fadeInUp 0.7s 0.3s ease both; margin-bottom: 40px; }

.hero-search-wrapper { max-width: 520px; }

.search-wrapper {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(35, 16, 82, 0.8);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-md);
  padding: 4px 4px 4px 16px;
  transition: var(--transition);
}

.search-wrapper:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12);
}

.search-icon {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  padding: 10px 12px;
}

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

.search-btn {
  background: var(--cyan);
  color: var(--bg-deep);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 20px;
  border-radius: 10px;
  transition: var(--transition);
  white-space: nowrap;
}

.search-btn:hover {
  background: #33DDFF;
  transform: translateY(-1px);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  animation: fadeInUp 0.7s 0.4s ease both;
}

.stat-item { text-align: center; }

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--cyan);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.hero-card-float {
  position: relative;
  width: 320px;
  height: 320px;
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(35, 16, 82, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
  min-width: 180px;
}

.float-card:hover { border-color: var(--border-cyan); }

.fc-icon { font-size: 1.5rem; }

.fc-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.fc-text span {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
}

.fc1 { top: 20px; left: 0; animation: float1 4s ease-in-out infinite; }
.fc2 { top: 50%; left: 50%; transform: translate(-50%, -50%); animation: float2 4s 1s ease-in-out infinite; border-color: var(--border-cyan); }
.fc3 { bottom: 20px; right: 0; animation: float3 4s 2s ease-in-out infinite; }

@keyframes float1 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
@keyframes float2 { 0%,100%{transform:translate(-50%,-50%) translateY(0)} 50%{transform:translate(-50%,-50%) translateY(-10px)} }
@keyframes float3 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-14px)} }

/* ═══════════════════════════════════════════════════════════════
   SECTIONS
═══════════════════════════════════════════════════════════════ */
.section {
  padding: 80px 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 16px;
}

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

.section-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.view-all-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cyan);
  white-space: nowrap;
  transition: var(--transition);
}

.view-all-link:hover { color: #33DDFF; }

/* ── Categories Grid ── */
.categories-section { background: var(--bg-surface); }

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.category-card:hover {
  border-color: var(--border-cyan);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.cat-icon { font-size: 2rem; }

.cat-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.cat-count {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Projects Grid ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.projects-grid.list-view {
  grid-template-columns: 1fr;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  animation: fadeInUp 0.4s ease both;
}

.project-card:hover {
  border-color: var(--border-cyan);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.card-thumb {
  height: 160px;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--purple-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(13,7,32,0.6) 100%);
}

.card-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-difficulty {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.diff-beginner { background: rgba(0, 212, 100, 0.2); color: #00D464; border: 1px solid rgba(0,212,100,0.3); }
.diff-intermediate { background: rgba(255, 180, 0, 0.2); color: #FFB400; border: 1px solid rgba(255,180,0,0.3); }
.diff-advanced { background: rgba(255, 80, 80, 0.2); color: #FF5050; border: 1px solid rgba(255,80,80,0.3); }

.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 10px; }

.card-category {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  padding: 3px 10px;
  background: rgba(123, 104, 238, 0.15);
  border: 1px solid rgba(123, 104, 238, 0.25);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--purple-light);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  gap: 8px;
}

.card-files {
  display: flex;
  gap: 8px;
}

.file-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
}

.file-badge svg { width: 13px; height: 13px; }

.card-download-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--cyan);
  color: var(--bg-deep);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  transition: var(--transition);
}

.card-download-btn:hover {
  background: #33DDFF;
  transform: translateY(-1px);
}

.card-download-btn svg { width: 13px; height: 13px; }

/* List view card */
.list-view .project-card {
  flex-direction: row;
  max-height: 140px;
}

.list-view .card-thumb {
  width: 140px;
  height: 140px;
  flex-shrink: 0;
  font-size: 2.5rem;
}

.list-view .card-body { padding: 16px; }
.list-view .card-desc { -webkit-line-clamp: 1; }
.list-view .card-footer { border-top: none; border-left: 1px solid var(--border); padding: 16px; flex-direction: column; justify-content: center; min-width: 120px; }

/* ── How It Works ── */
.how-section { background: var(--bg-surface); }

.steps-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.step-card {
  flex: 1;
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition);
}

.step-card:hover {
  border-color: var(--border-cyan);
  transform: translateY(-4px);
}

.step-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.step-icon { font-size: 2.2rem; margin-bottom: 14px; }

.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-arrow {
  font-size: 1.5rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   PROJECTS PAGE
═══════════════════════════════════════════════════════════════ */
.page-header-bar {
  padding: 100px 0 40px;
  background: linear-gradient(to bottom, var(--bg-dark), var(--bg-deep));
  border-bottom: 1px solid var(--border);
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.page-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 8px;
}

.projects-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  padding-top: 40px;
  padding-bottom: 80px;
  align-items: start;
}

/* Sidebar */
.filters-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: 88px;
}

.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.filter-header h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.clear-filters-btn {
  font-size: 0.78rem;
  color: var(--cyan);
  font-weight: 500;
  transition: var(--transition);
}

.clear-filters-btn:hover { color: #33DDFF; }

.filter-group { margin-bottom: 24px; }

.filter-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.filter-options { display: flex; flex-direction: column; gap: 8px; }

.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.filter-option:hover { color: var(--text-primary); }

.filter-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--cyan);
  cursor: pointer;
}

/* Toolbar */
.projects-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.projects-toolbar .search-wrapper { flex: 1; min-width: 200px; }

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.results-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.view-toggle {
  display: flex;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px;
}

.view-btn {
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--text-muted);
  transition: var(--transition);
}

.view-btn svg { width: 16px; height: 16px; display: block; }

.view-btn.active, .view-btn:hover {
  background: var(--purple-mid);
  color: var(--text-primary);
}

/* Active Tags */
.active-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.active-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid var(--border-cyan);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--cyan);
}

.active-tag button {
  color: var(--cyan);
  font-size: 1rem;
  line-height: 1;
  opacity: 0.7;
  transition: var(--transition);
}

.active-tag button:hover { opacity: 1; }

/* No Results */
.no-results {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-secondary);
}

.no-results-icon { font-size: 3rem; margin-bottom: 16px; }
.no-results h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 8px; }
.no-results p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 24px; }

/* ═══════════════════════════════════════════════════════════════
   SUGGESTIONS PAGE
═══════════════════════════════════════════════════════════════ */
.suggestions-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 80px;
  align-items: start;
}

.suggestion-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
}

.form-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.form-header-icon { font-size: 2.5rem; flex-shrink: 0; }

.form-header h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.form-header p { font-size: 0.9rem; color: var(--text-secondary); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.required { color: var(--cyan); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%237A6A9A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
}

.form-group select option { background: var(--bg-dark); }

.form-group textarea { resize: vertical; min-height: 120px; }

/* Priority */
.priority-options { display: flex; gap: 12px; }

.priority-opt { cursor: pointer; }
.priority-opt input { display: none; }

.priority-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: var(--transition);
  cursor: pointer;
}

.priority-badge.low { background: rgba(0,212,100,0.1); color: #00D464; border-color: rgba(0,212,100,0.2); }
.priority-badge.medium { background: rgba(255,180,0,0.1); color: #FFB400; border-color: rgba(255,180,0,0.2); }
.priority-badge.high { background: rgba(255,80,80,0.1); color: #FF5050; border-color: rgba(255,80,80,0.2); }

.priority-opt input:checked + .priority-badge.low { background: rgba(0,212,100,0.25); box-shadow: 0 0 12px rgba(0,212,100,0.2); }
.priority-opt input:checked + .priority-badge.medium { background: rgba(255,180,0,0.25); box-shadow: 0 0 12px rgba(255,180,0,0.2); }
.priority-opt input:checked + .priority-badge.high { background: rgba(255,80,80,0.25); box-shadow: 0 0 12px rgba(255,80,80,0.2); }

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple-light) 100%);
  color: var(--bg-deep);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 700;
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.3);
}

.btn-primary svg { width: 16px; height: 16px; }

.btn-submit { width: 100%; justify-content: center; padding: 14px; font-size: 1rem; }

/* Success */
.success-message {
  text-align: center;
  padding: 40px 20px;
}

.success-icon { font-size: 3rem; margin-bottom: 16px; }

.success-message h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.success-message p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.7;
}

/* Suggestions Feed */
.suggestions-feed {
  position: sticky;
  top: 88px;
}

.feed-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.feed-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.feed-filter-btn {
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: var(--transition);
}

.feed-filter-btn:hover, .feed-filter-btn.active {
  color: var(--cyan);
  border-color: var(--border-cyan);
  background: rgba(0, 212, 255, 0.06);
}

.suggestion-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 12px;
  transition: var(--transition);
  animation: fadeInUp 0.3s ease both;
}

.suggestion-item:hover { border-color: var(--border-cyan); }

.sug-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.sug-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.sug-type-badge {
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.type-new-project { background: rgba(0,212,255,0.1); color: var(--cyan); }
.type-improvement { background: rgba(123,104,238,0.15); color: var(--purple-light); }
.type-bug { background: rgba(255,80,80,0.1); color: #FF5050; }
.type-feature { background: rgba(255,180,0,0.1); color: #FFB400; }
.type-other { background: rgba(122,106,154,0.15); color: var(--text-muted); }

.sug-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sug-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sug-author { font-weight: 500; }

.sug-priority {
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 600;
}

.pri-low { background: rgba(0,212,100,0.1); color: #00D464; }
.pri-medium { background: rgba(255,180,0,0.1); color: #FFB400; }
.pri-high { background: rgba(255,80,80,0.1); color: #FF5050; }

/* ═══════════════════════════════════════════════════════════════
   MODAL
═══════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s ease;
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  color: var(--text-secondary);
  transition: var(--transition);
}

.modal-close:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); }
.modal-close svg { width: 18px; height: 18px; }

.modal-content { padding: 32px; }

.modal-thumb {
  height: 200px;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--purple-mid) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  margin-bottom: 24px;
}

.modal-category {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.modal-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.modal-meta-item svg { width: 14px; height: 14px; color: var(--text-muted); }

.modal-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.modal-section-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.modal-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }

.modal-files {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}

.modal-file-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.modal-file-icon { font-size: 1.5rem; }

.modal-file-info { flex: 1; }

.modal-file-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-file-size {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-download-all {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple-light) 100%);
  color: var(--bg-deep);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  transition: var(--transition);
}

.btn-download-all:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.3);
}

.btn-download-all svg { width: 18px; height: 18px; }

.btn-download-single {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-download-single:hover {
  border-color: var(--border-cyan);
  color: var(--cyan);
}

.btn-download-single svg { width: 15px; height: 15px; }

/* ═══════════════════════════════════════════════════════════════
   TOAST
═══════════════════════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 3000;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
  box-shadow: var(--shadow-card);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  max-width: 320px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  padding-bottom: 40px;
}

.footer-brand .logo-text {
  font-size: 1.2rem;
  display: block;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 300px;
}

.footer-links { display: flex; gap: 60px; }

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  transition: var(--transition);
}

.footer-col a:hover { color: var(--cyan); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .projects-layout { grid-template-columns: 220px 1fr; }
  .suggestions-layout { grid-template-columns: 1fr; }
  .suggestions-feed { position: static; }
  .hero { flex-direction: column; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-subtitle { margin: 0 auto 36px; }
  .hero-search { display: flex; justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(13, 7, 32, 0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .projects-layout { grid-template-columns: 1fr; }
  .filters-sidebar { position: static; }
  .steps-row { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }
  .modal-files { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-links { flex-wrap: wrap; gap: 32px; }
  .list-view .project-card { flex-direction: column; max-height: none; }
  .list-view .card-thumb { width: 100%; height: 140px; }
  .list-view .card-footer { border-left: none; border-top: 1px solid var(--border); flex-direction: row; }
}

@media (max-width: 480px) {
  .hero { padding: 100px 16px 60px; }
  .section { padding: 60px 0; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: 1fr; }
  .modal-actions { flex-direction: column; }
  .btn-download-all { flex: none; width: 100%; }
}