/* index.css */

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

main h1 {
  font-size: 32px;
  color: #1e293b;
  margin-bottom: 10px;
}

main > p {
  color: #94a3b8;
  font-size: 16px;
  margin-bottom: 52px;
}

.cards {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.card {
  background-color: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  width: 260px;
  padding: 44px 28px;
  text-decoration: none;
  color: inherit;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.09);
}

.card--web:hover {
  border-color: #3b82f6;
}
.card--pwn:hover {
  border-color: #ef4444;
}
.card--cloud:hover {
  border-color: #10b981;
}
.card--about:hover {
  border-color: #a3a3a3;
}

.card-icon {
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon svg {
  width: 36px;
  height: 36px;
  stroke: #94a3b8; /* 기본 색 – 연한 회색 */
  stroke-width: 1.5;
  transition: stroke 0.2s;
}

/* 호버 시 각 카드 색상으로 아이콘도 변경 */
.card--web:hover .card-icon svg {
  stroke: #3b82f6;
}
.card--pwn:hover .card-icon svg {
  stroke: #ef4444;
}
.card--cloud:hover .card-icon svg {
  stroke: #10b981;
}
.card--about:hover .card-icon svg {
  stroke: #a3a3a3;
}

.card h2 {
  font-size: 19px;
  color: #1e293b;
  margin-bottom: 14px;
}

.card ul {
  list-style: none;
}

.card li {
  font-size: 14px;
  color: #94a3b8;
  line-height: 2;
}

@media (max-width: 660px) {
  .cards {
    flex-direction: column;
    align-items: center;
  }
  .card {
    width: 270px;
  }
}

