:root {
  --primary-color: #f8e7d4; /* 크림 톤 */
  --secondary-color: #f4f4f4;
  --accent-color: #f0c38e; /* 골드/아이보리 톤 */
  --text-color: #333;
  --shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--accent-color)
  );
  color: var(--text-color);
  text-align: center;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.header-logo {
  font-size: 1.5rem;
  color: var(--text-color);
}

.header-title {
  font-size: 2.2rem;
  font-weight: 700;
  animation: fadeIn 1s ease-in-out;
}

.nav {
  background: #2c3e50;
  padding: 0.75rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-list {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
}

.nav-link:hover {
  background: var(--accent-color);
  color: #2c3e50;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  transform: scale(1.05);
}

.team-image-button {
  display: block;
}

.team-image-button img {
  width: 100%;
  max-width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.team-image-button img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.card-button {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: transform 0.3s, box-shadow 0.3s;
  flex: 1;
}

.card-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.card-image {
  width: 50px;
  height: 50px;
  border-radius: 8px;
}

.card {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.main-container {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.hero {
  text-align: center;
  padding: 3rem 1rem;
  background-color: var(--secondary-color);
  border-radius: 8px;
  margin-bottom: 2rem;
}

.hero-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 2rem;
}

.card-section,
.related-topics {
  padding: 2rem 0;
}

.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.card-container-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.card-container-horizontal {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  justify-content: center;
}

.content-container {
  padding: 2rem;
  text-align: center;
}

.subtitle {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 0.5rem;
}

.title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.content-image {
  margin: 1rem auto;
}

.content-img {
  max-width: 400px;
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  margin: 1rem auto;
}

.content-basic {
  background-color: var(--secondary-color);
  border: 1px solid #999;
  padding: 2rem;
  border-radius: 8px;
  margin: 1rem 0;
}

.content-counter {
  padding: 2rem;
}

.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.card {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #555;
}

.description {
  font-size: 1rem;
  color: #666;
  line-height: 1.5;
}

.team-member-details {
  font-size: 1rem;
  color: #666;
  line-height: 1.5;
}

.team-member-details dt {
  font-weight: bold;
  display: inline-block;
  width: 100px;
}

.team-member-details dd {
  display: inline-block;
  margin-bottom: 0.5rem;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}

.close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

.github-button {
  display: block;
  width: 24px;
  height: 24px;
  margin-top: 0.5rem;
}

.github-button img {
  width: 100%;
  height: 100%;
  transition: transform 0.3s;
}

.github-button img:hover {
  transform: scale(1.1);
}

.footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 1rem;
  margin-top: auto;
}

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

@media (max-width: 768px) {
  .nav-list {
    flex-direction: column;
    align-items: center;
  }

  .card-container,
  .card-container-split {
    grid-template-columns: 1fr;
  }

  .card-container-horizontal {
    flex-direction: column;
    align-items: center;
  }

  .card-button {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding: 2rem 1rem;
  }

  .content-img {
    max-width: 100%;
  }
}
