@import url("./common.css");

.intro-section {
  min-height: 30vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 7rem 0;
  margin-bottom: 2rem;
}

.intro-section h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

main {
  max-width: 900px;
  margin: 0 auto 60px auto;
  scroll-margin-top: 80px;
}

.desc a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  transition: border-color 0.2s ease;
}

.desc a:hover {
  border-color: transparent;
}

section h1 {
  font-size: 2rem;
  margin-bottom: 0.2rem;
  color: var(--text);
  text-align: center;
}

.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.card h2 {
  margin-top: 0;
  font-size: 1.25rem;
  color: var(--text);
  padding-bottom: 0.5rem;
}

.card p, .card ul {
  line-height: 1.6;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.card ul {
  padding-left: 1.2rem;
  margin-bottom: 0;
}

.card li {
  margin-bottom: 0.5rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.grid .card {
  margin-bottom: 0;
}

.other-projects {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 1rem;
}

.other-projects h2 {
  text-align: center;
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.project-links a {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.project-links a:hover {
  background-color: var(--border-subtle);
  border-color: var(--text);
}

@media (max-width: 768px) {
  main {
    width: 95%;
    margin: 120px auto 60px auto;
  }

  .intro-section {
    min-height: auto;
    padding: 1rem 0;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .main-title {
    font-size: 1.8rem;
  }

  .desc {
    font-size: 0.85rem;
  }

  .other-projects {
    margin: 30px auto;
  }

  .other-projects h2 {
    font-size: 1.25rem;
  }

  .project-links {
    flex-direction: column;
    align-items: stretch;
  }

  .project-links a {
    text-align: center;
  }
}

@media (max-width: 480px) {
  section h1 {
    font-size: 1.5rem;
  }
}

.other-projects {
  margin-top: 3rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.other-projects h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text);
  text-align: center;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.project-links a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

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