:root {
  --blue: #002D72;
  --cyan: #00D4FF;
  --text: #e9ecef;
  --bg: #121212;
  --card-bg: #1e1e1e;
  --border: #333;
  --text-muted: #bbb;
}

[data-theme="light"] {
  --text: #212529;
  --bg: #f8f9fa;
  --card-bg: #ffffff;
  --border: #e0e0e0;
  --text-muted: #666;
}

body {
  background: var(--bg);
  color: var(--text);
  transition: all 0.3s;
  font-family: system-ui,-apple-system,sans-serif;
}

.hero {
  background: linear-gradient(135deg, #001f3f 0%, #00a8e8 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero .container {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.hero-logo {
  width: 180px;
  height: 180px;
  filter: drop-shadow(0 15px 35px rgba(0,0,0,0.6));
}

@media (min-width: 992px) {
  .hero-logo {
    width: 240px;
    height: 240px;
  }
}

.hero h1 {
  font-size: 7rem;
  font-weight: 900;
  letter-spacing: -4px;
  line-height: 0.9;
  margin-top: -20px;
}

.hero h1 .fw-light {
  font-weight: 300;
}

.hero .lead {
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.4;
}

.hero .fs-4 {
  font-size: 1.5rem !important;
  font-weight: 400;
}

.hero .btn {
  border-radius: 50px;
  padding: 0.9rem 2.2rem;
  font-weight: 600;
  font-size: 1.1rem;
}

/* CARDS */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all .3s;
  height: 100%;
  overflow: hidden;
  padding: 1.8rem;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,.15);
}

/* LOGO PERFECT FIX – ALWAYS WHITE BG, CRISP IN BOTH THEMES */
.card img.logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 12px;
  background: white !important;
  padding: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  border: 1px solid #ddd;
}

.logo-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: var(--blue);
  color: white;
  font-size: 1.8rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.metrics {
  font-size: 0.9rem;
  font-weight: 500;
  color: #00cfff;
  margin: 0.6rem 0;
  line-height: 1.5;
}

.proof-link {
  font-size: 0.85rem;
  color: var(--cyan);
}

.nav-tabs .nav-link {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  border: none;
  padding: 1rem 1.5rem;
}

.nav-tabs .nav-link.active {
  background: var(--blue);
  color: white;
  border-radius: 0;
}

/* NAV PILLS (CATEGORY TABS) – PERFECT LOOK */
.nav-pills .nav-link {
  border-radius: 50px;
  font-weight: 600;
  color: var(--text);
  padding: 0.5rem 1.2rem;
  background: rgba(255,255,255,0.08);
  transition: all 0.2s;
}

.nav-pills .nav-link:hover {
  background: rgba(255,255,255,0.15);
}

.nav-pills .nav-link.active {
  background: var(--blue) !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(0,45,114,0.4);
}

#loadingSkeleton {
  min-height: 600px;
}

.badge {
  font-weight: 600;
  font-size: 0.8rem;
}

/* Dark mode fixes */
[data-theme="dark"] .text-muted {
  color: #bbb !important;
}

[data-theme="dark"] .metrics {
  color: #00cfff;
}

[data-theme="dark"] .card {
  background: #1e1e1e;
  border-color: #333;
}

/* FORM LABELS – BOLD + PURE WHITE IN DARK */
.form-label {
  font-weight: 700 !important;
  color: #ffffff !important;
}

[data-theme="light"] .form-label {
  color: #212529 !important;
}

/* SEARCH/SORT INPUTS – BETTER DARK MODE CONTRAST */
.form-control, .form-select {
  background-color: #2c2c2c !important;
  border-color: #444 !important;
  color: white !important;
}

.form-control:focus, .form-select:focus {
  background-color: #333 !important;
  border-color: var(--blue) !important;
  box-shadow: 0 0 0 0.25rem rgba(0, 45, 114, 0.25);
}

[data-theme="light"] .form-control,
[data-theme="light"] .form-select {
  background-color: white !important;
  color: #212529 !important;
}

/* BADGE STYLES */
.badge-purple {
  background-color: #6f42c1 !important;
}

.badge-physical {
  background-color: #fd7e14 !important;
  color: white !important;
}

.badge-digital {
  background-color: #0dcaf0 !important;
  color: black !important;
}

.project-card .badge {
  font-size: 0.75rem !important;
  padding: 0.35em 0.65em;
}

.project-card .badge:hover {
  transform: scale(1.1);
}

/* Mobile */
@media (max-width: 576px) {
  .hero h1 {
    font-size: 5rem;
  }
  .hero .lead {
    font-size: 1.4rem;
  }
  .hero-logo {
    width: 160px;
    height: 160px;
    
  }
  .btn-xs {
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
}
}
