/* 기본 바디 */
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background-color: #f5f7fa;
  color: #333;
}

/* 링크 스타일 */
a {
  color: #0984e3;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* 헤더 */
header {
  background-color: #2d3436;
  color: white;
  padding: 1rem 0;
}

.nav-container {
  max-width: 900px;
  margin: auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
}

nav a {
  margin-left: 1rem;
  color: white;
  font-weight: 500;
}

/* 메인 컨테이너 */
.container {
  max-width: 900px;
  margin: auto;
  padding: 2rem 1rem;
}

/* 공통 섹션 스타일 */
section {
  background-color: #fff;
  border-left: 6px solid transparent;
  padding: 3rem 2rem;
  margin-bottom: 4rem;
  border-radius: 10px;
  box-sizing: border-box;
}

/* 소개 */
#about {
  border-left-color: #555555;
  color: #222222;
}
#about h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-weight: 700;
  font-size: 2rem;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.5rem;
}

/* 프로젝트 */
#projects {
  background-color: #f0f4ff;
  border-left-color: #0984e3;
  color: #222222;
}

#projects h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  font-weight: 700;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.5rem;
}

.year-heading {
  font-size: 1.4rem;
  margin: 3rem 0 1rem;
  color: #0c395a;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.5rem;
}

/* 카드 그리드 */
.cards-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
}

/* 카드 */
.card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 36px rgba(0,0,0,0.22);
}

.card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid #ddd;
  background-color: #fff;
}


.card-content {
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-content h3 {
  margin: 0 0 0.5rem;
}

.card-content p {
  flex-grow: 1;
  margin: 0.5rem 0 1rem;
  font-size: 0.95rem;
  color: #555;
}

.project-details {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: #777;
}

.project-details li {
  margin-bottom: 0.3rem;
}

.btn-group {
  margin-top: auto;
}

.btn {
  background-color: #0984e3;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-align: center;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #0652dd;
}

/* 연락처 */
#contact {
  border-left-color: #16a085;
  color: #0e3d33;
}

#contact h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-weight: 700;
  font-size: 2rem;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.5rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  font-size: 1.1rem;
  color: #0e3d33;
  font-weight: 600;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  line-height: 1.6;
}

.contact-list a {
  color: #0b5e4e;
  font-weight: 700;
  text-decoration: underline;
}

.contact-list a:hover {
  color: #074433;
  text-decoration: none;
}

/* 푸터 */
footer {
  text-align: center;
  padding: 1rem;
  background: #2d3436;
  color: white;
  font-size: 0.85rem;
}
