:root {
  color-scheme: dark;
  /* Dark Theme (Default) */
  --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.06);
  --input-bg: rgba(0, 0, 0, 0.2);
  --input-border: rgba(255, 255, 255, 0.1);
  --nav-link: #94a3b8;
  --nav-link-hover: #fff;
  --accent-color: #38bdf8;
  --header-border: rgba(255, 255, 255, 0.05);
  --table-header-bg: rgba(255, 255, 255, 0.02);
  --drawer-bg: #0f172a;
  --tag-bg: rgba(56, 189, 248, 0.1);
  --tag-text: #38bdf8;
}

.light-theme {
  color-scheme: light;
  --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  --text-main: #0f172a;
  --text-muted: #64748b;
  --card-bg: #ffffff;
  --card-border: rgba(0, 0, 0, 0.08);
  --input-bg: #f1f5f9;
  --input-border: rgba(0, 0, 0, 0.1);
  --nav-link: #64748b;
  --nav-link-hover: #0f172a;
  --accent-color: #0284c7;
  --header-border: rgba(0, 0, 0, 0.05);
  --table-header-bg: #f8fafc;
  --drawer-bg: #ffffff;
  --tag-bg: rgba(2, 132, 199, 0.1);
  --tag-text: #0284c7;
}

html, body {
  padding: 0;
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,
    Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
  transition: background 0.3s ease, color 0.3s ease;
  background: var(--bg-gradient);
  color: var(--text-main);
  min-height: 100vh;
}

* {
  box-sizing: border-box;
}

a {
  color: inherit;
  text-decoration: none;
}

select option {
  background: var(--drawer-bg);
  color: var(--text-main);
}

/* Custom Static Site Styles */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
  padding: 16px 24px;
  box-sizing: border-box;
}

#site-header.scrolled {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
  cursor: pointer;
}
.nav-link:hover, .nav-link.active {
  color: #38bdf8;
}

.btn-secondary {
  background: none;
  border: none;
  color: #38bdf8;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 8px 16px;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  border: none;
  color: #0f172a;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 10px 20px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.3);
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-primary:hover {
  transform: translateY(-1px);
}

.mobile-burger-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
  .mobile-burger-btn {
    display: block !important;
  }
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.3) !important;
}

/* Mobile Responsive Utility Classes */
@media (max-width: 768px) {
  .m-h1 { font-size: 2.5rem !important; }
  .m-h2 { font-size: 2rem !important; }
  .m-h3 { font-size: 1.5rem !important; }
  .m-p { font-size: 1rem !important; }
  .m-px-4 { padding-left: 16px !important; padding-right: 16px !important; }
  .m-py-8 { padding-top: 32px !important; padding-bottom: 32px !important; }
  .m-w-full { width: 100% !important; }
  .m-flex-col { flex-direction: column !important; }
  .m-gap-4 { gap: 16px !important; }
  .m-stack { display: flex !important; flex-direction: column !important; width: 100% !important; }
  .m-text-center { text-align: center !important; }
  .m-grid-1 { grid-template-columns: 1fr !important; }
  .m-mb-8 { margin-bottom: 32px !important; }
  .m-mt-4 { margin-top: 16px !important; }
}
