:root {
  --bg-color: #f4f7f6;
  --text-main: #2b2d42;
  --text-muted: #8d99ae;
  --card-bg: #ffffff;
  --primary: #3a86ff;
  --hover-shadow: rgba(58, 134, 255, 0.2);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  padding: 40px 20px;
}

header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px auto;
}

h1 {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -1.5px;
  margin-bottom: 15px;
  color: var(--primary);
}

.subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* The Grid Container */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* The Card Design */
.card {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 50px 30px;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.3s ease;
  text-decoration: none;
}

/* Add hover effects only to cards meant to be fully clickable */
.clickable-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px var(--hover-shadow);
}

/* HUGE Icons */
.card-icon {
  font-size: 6rem;
  line-height: 1;
  margin-bottom: 25px;
  transition: transform 0.3s ease;
}

.clickable-card:hover .card-icon,
.card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-main);
}

.card-desc {
  font-size: 1rem;
  color: var(--text-muted);
}

/* Tag Styling */
.tags {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

/* Modifier for tags section with interactive buttons */
.interactive-tags {
  margin-top: 25px;
  gap: 15px;
}

.tag {
  background: var(--bg-color);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
}

/* Styling for tags that act as clickable buttons */
.tag-link {
  text-decoration: none;
  padding: 10px 20px;
  font-size: 1rem;
  transition: transform 0.2s, background-color 0.2s, color 0.2s;
}

.tag-link:hover {
  transform: scale(1.05);
  background-color: var(--primary);
  color: #ffffff;
}

/* Footer Styling */
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 60px;
}

.github-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 15px 30px;
  background: var(--card-bg);
  border-radius: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: inherit;
}

.github-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.github-icon {
  font-size: 1.8rem;
}

.footer-text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}

@media (max-width: 600px) {
  h1 {
    font-size: 2.5rem;
  }
  .card-icon {
    font-size: 5rem;
  }
}
