:root {
  --primary-bg: #f0f4f8;
  --secondary-bg: #ffffff;
  --accent: #007bff;
  --text: #333333;
  --muted: #666666;
  --card-bg: #ffffff;
  --button-bg: var(--accent);
  --button-hover: #0056b3;
  --border-color: #dee2e6;
}

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

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background: var(--primary-bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

html {
  height: 100%;
}

main {
  flex-grow: 1;
}


header {
  background: var(--secondary-bg);
  backdrop-filter: none;
  padding: 1.2rem 0;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 36px;
  vertical-align: middle;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  font-size: 1.05rem;
}

.nav-links a:hover {
  color: var(--accent);
}

.page-title {
  text-align: center;
  padding: 4rem 0 2rem 0;
}

.page-title h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text);
}

footer {
  background: var(--secondary-bg);
  color: var(--muted);
  text-align: center;
  padding: 1.5rem 0;
  margin-top: 4rem;
  font-size: 0.9rem;
  border-top: 1px solid var(--border-color);
}

footer a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .nav-links {
    display: none; /* Or implement a hamburger menu */
  }
  .page-title h1 {
    font-size: 2.5rem;
  }
}

/*.card-grid-small {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 4rem 0;
}*/
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}
.card {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 2rem;
  border: 1px solid var(--border-color);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeIn 0.5s ease-out forwards;
  opacity: 0;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}
.card h3 {
  color: var(--accent);
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 700;
}
.card p.desc-compact {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}
.card p.desc {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }
.card:nth-child(7) { animation-delay: 0.7s; }
.card:nth-child(8) { animation-delay: 0.8s; }
