:root {
  --bg-dark: #070e17;
  --bg-gradient: radial-gradient(circle at 10% 20%, #081119 0%, #15202b 100%);
  --glass-bg: rgba(16, 25, 36, 0.45);
  --glass-border: rgba(90, 180, 255, 0.15);
  --glass-glow: rgba(0, 204, 255, 0.3);
  --text-main: #e2f1ff;
  --text-muted: #85a3c2;
  --accent-cyan: #00ccff;
  --accent-orange: #ff9d00;
  --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg-dark);
  background-image: var(--bg-gradient);
  color: var(--text-main);
  font-family: var(--font-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}

/* Background HUD Elements */
.hud-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: -1;
  background-image: 
    linear-gradient(rgba(0, 204, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 204, 255, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
}

.hud-bg::after {
  content: '';
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at center, transparent 40%, #070e17 80%);
}

/* HEADER */
/* ------------------------------------- */
header {
  width: 100%;
  max-width: 1200px;
  padding: 3rem 2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  animation: fadeInDown 0.8s ease forwards;
}

.logo-container img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid var(--glass-border);
  box-shadow: 0 0 20px rgba(0, 204, 255, 0.1);
  transition: transform 0.5s ease;
}

.logo-container:hover img {
  transform: rotate(-10deg) scale(1.05);
}

.header-text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.header-text h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: transparent;
  background: linear-gradient(to right, #ffffff, var(--accent-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.header-text h2 {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--accent-orange);
  letter-spacing: 1px;
}

.header-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

/* FILTERS & SEARCH */
/* ------------------------------------- */
.filters-section {
  width: 100%;
  max-width: 1200px;
  padding: 0 2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: fadeInDown 0.8s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

.search-bar {
  display: flex;
  align-items: center;
  background: rgba(16, 25, 36, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.8rem 1.2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.search-bar:focus-within {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 204, 255, 0.2);
}

.search-icon {
  color: var(--text-muted);
  margin-right: 1rem;
}

.search-bar input {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-primary);
  font-size: 1rem;
  width: 100%;
  outline: none;
}

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

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.filter-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.filter-btn svg {
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--text-main);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: rgba(0, 204, 255, 0.15);
  border-color: var(--accent-cyan);
  color: #fff;
  box-shadow: 0 0 15px rgba(0, 204, 255, 0.2);
}

.filter-btn.active svg {
  color: var(--accent-cyan);
}

/* Add a global hidden class for the JS filtering */
.hidden-card {
  display: none !important;
}

/* HUB GRID */
/* ------------------------------------- */
main {
  width: 100%;
  max-width: 1200px;
  padding: 1rem 2rem 2rem; /* Adjusted top padding */
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  perspective: 1000px;
}

/* Glassmorphism Buttons */
.nav-card {
  text-decoration: none;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

/* Adding staggered animation delays */
.nav-card:nth-child(1) { animation-delay: 0.1s; }
.nav-card:nth-child(2) { animation-delay: 0.15s; }
.nav-card:nth-child(3) { animation-delay: 0.2s; }
.nav-card:nth-child(4) { animation-delay: 0.25s; }
.nav-card:nth-child(5) { animation-delay: 0.3s; }
.nav-card:nth-child(6) { animation-delay: 0.35s; }
.nav-card:nth-child(7) { animation-delay: 0.4s; }
.nav-card:nth-child(8) { animation-delay: 0.45s; }
.nav-card:nth-child(9) { animation-delay: 0.5s; }
.nav-card:nth-child(10) { animation-delay: 0.55s; }
.nav-card:nth-child(11) { animation-delay: 0.6s; }
.nav-card:nth-child(12) { animation-delay: 0.65s; }
.nav-card:nth-child(13) { animation-delay: 0.7s; }
.nav-card:nth-child(14) { animation-delay: 0.75s; }

.nav-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.05), transparent);
  transform: skewX(-20deg);
  transition: 0.6s;
}

.nav-card:hover {
  transform: translateY(-5px) scale(1.02);
  background: rgba(20, 35, 55, 0.6);
  border-color: var(--glass-glow);
  box-shadow: 0 10px 30px rgba(0, 204, 255, 0.15), 
              inset 0 0 15px rgba(0, 204, 255, 0.05);
}

.nav-card:hover::before {
  left: 150%;
}

.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 204, 255, 0.1);
  border: 1px solid rgba(0, 204, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.nav-card:hover .card-icon {
  background: var(--accent-cyan);
  color: #000;
  box-shadow: 0 0 15px var(--accent-cyan);
}

.card-content {
  flex: 1;
}

.card-title {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
}

.card-subtitle {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Special Highight Cards */
.nav-card.external .card-icon {
  background: rgba(255, 157, 0, 0.1);
  border-color: rgba(255, 157, 0, 0.2);
  color: var(--accent-orange);
}

.nav-card.external:hover {
  border-color: rgba(255, 157, 0, 0.3);
  box-shadow: 0 10px 30px rgba(255, 157, 0, 0.15), 
              inset 0 0 15px rgba(255, 157, 0, 0.05);
}

.nav-card.external:hover .card-icon {
  background: var(--accent-orange);
  color: #000;
  box-shadow: 0 0 15px var(--accent-orange);
}

/* FOOTER */
/* ------------------------------------- */
footer {
  margin-top: auto;
  padding: 3rem 1rem 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  animation: fadeIn 1s ease 1s forwards;
  opacity: 0;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.social-link {
  color: var(--text-muted);
  font-size: 1.5rem;
  transition: color 0.3s, transform 0.3s;
}

.social-link:hover {
  color: var(--accent-cyan);
  transform: translateY(-3px);
}

/* ANIMATIONS */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* RESPONSIVE */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1rem;
  }
  
  .header-text h1 {
    font-size: 2.2rem;
  }
  
  main {
    padding: 1rem;
  }
}
