@charset "utf-8";

/* 부드러운 스크롤 이동 */
html {
  scroll-behavior: smooth;
}

/* 기본 초기화 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 헤더 고정에 따른 여백 */
body {
  font-family: 'Noto Sans KR', sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
  padding-top: 130px;
}

/* 섹션 스크롤 offset */
section {
  scroll-margin-top: 130px;
}

/* 공통 컨테이너 */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* 헤더 */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  padding: 1rem 0;
  height: 130px;
  z-index: 1000;
}

header h1 {
  font-size: 1.5rem;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.3rem;
}

nav a {
  text-decoration: none;
  color: #555;
  font-size: 1rem;
}

nav a:hover {
  color: #000;
}

/* 소개 섹션 중앙 정렬 */
#about h2 {
  margin-bottom: 1rem;
  text-align: center;
}

.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.profile-img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #fff;
  margin-bottom: 1rem;
}

/* Skills */
#skills {
  background-color: #fff;
  margin-top: 2rem;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

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

.skills-list li {
  background-color: #007bff;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.95rem;
  transition: background-color 0.3s;
}

.skills-list li:hover {
  background-color: #0056b3;
}

/* 작업 목록 */
#works h2 {
  margin-bottom: 2rem;
}
#design h2 {
  margin-bottom: 2rem;
}

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

.work-card {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.work-card:hover {
  transform: translateY(-4px);
}

.work-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.work-card h3 {
  margin-top: 0.5rem;
}

.btn-group {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.5rem 1rem;
  background-color: #007bff;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.2s ease, transform 0.1s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

.btn.secondary {
  background-color: #6c757d;
}

.btn.secondary:hover {
  background-color: #5a6268;
}

/* Contact */
#contact {
  margin-top: 4rem;
  text-align: center;
}

.contact-buttons {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* 푸터 */
footer {
  background-color: #f1f1f1;
  text-align: center;
  padding: 2rem 0;
  margin-top: 4rem;
  font-size: 0.9rem;
  color: #777;
}
