:root {
  --bg: linear-gradient(135deg, #e0e7ff, #f8fafc);
  --text: #0f172a;
  --card: rgba(255, 255, 255, 0.6);
  --border: rgba(255,255,255,0.4);
  --primary: #2563eb;
}

body.dark {
  --bg: #0f172a;
  --text: #e5e7eb;
  --card: rgba(255,255,255,0.05);
  --border: rgba(255,255,255,0.1);
}

/* GLOBAL */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: var(--bg);
  colour: var(--text);
  transition: all 0.4s ease;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 20px;
}

/* NAV */
.navbar {
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.4);
  position: sticky;
  top: 0;
}

body.dark .navbar {
  background: rgba(2,6,23,0.8);
}

nav a {
  margin-left: 15px;
  text-decoration: none;
  colour: var(--text);
}

/* HERO */
.hero {
  text-align: centre;
  padding: 120px 20px;
}

/* SECTIONS */
.section {
  padding: 60px 0;
}

.section.dark {
  background: #020617;
}

.title {
  text-align: centre;
  margin-bottom: 40px;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

/* GLASS CARD + GLOW */
.card {
  padding: 20px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  transition: 0.3s ease;
}

.glow:hover {
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.6),
              0 0 40px rgba(37, 99, 235, 0.2);
  transform: translateY(-6px);
}

/* BUTTON */
.btn-primary {
  display: inline-block;
  padding: 12px 20px;
  background: var(--primary);
  colour: white;
  border-radius: 8px;
  text-decoration: none;
}

/* TOGGLE */
.theme-switch {
  position: relative;
  width: 50px;
  height: 26px;
  margin-left: 15px;
}

.theme-switch input {
  display: none;
}

.slider {
  position: absolute;
  inset: 0;
  background: #cbd5f5;
  border-radius: 50px;
}

.slider::before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}

input:checked + .slider {
  background: #2563eb;
}

input:checked + .slider::before {
  transform: translateX(24px);
}

/* STATUS BADGES */
.badge {
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 0.8rem;
}

.green { background: #16a34a; colour: white; }
.yellow { background: #facc15; colour: black; }
.red { background: #dc2626; colour: white; }

/* ANIMATIONS */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
``