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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.bg-light {
  background-color: #f8f9fa;
}

.text-center {
  text-align: center;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
  text-align: center;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 3px;
  background-color: #2563eb;
}

/* 네비게이션 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  box-shadow: 0 1px 10px rgba(0,0,0,0.05);
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1e293b;
}

.logo span {
  color: #2563eb;
}

.nav ul {
  display: flex;
  gap: 20px;
}

.nav a {
  font-weight: 500;
  color: #475569;
  transition: color 0.2s;
}

.nav a:hover {
  color: #2563eb;
}

/* 히어로 섹션 */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 100%);
  text-align: center;
  padding-top: 70px;
  padding-bottom: 40px;
}

.hero-title {
  font-size: 2.8rem;
  margin-bottom: 20px;
  color: #0f172a;
}

.hero-title span {
  color: #2563eb;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #475569;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  text-align: center;
}

.primary-btn {
  background-color: #2563eb;
  color: #fff;
}

.primary-btn:hover {
  background-color: #1d4ed8;
}

.secondary-btn {
  background-color: #ffffff;
  color: #1e293b;
  border: 1px solid #cbd5e1;
}

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

/* About 섹션 */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.about-card {
  padding: 30px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background-color: #fff;
}

.about-card h3 {
  margin-bottom: 15px;
  color: #1e293b;
}

.about-card i {
  color: #2563eb;
  margin-right: 8px;
}

/* 스킬셋 섹션 */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.skill-category {
  background-color: #fff;
  padding: 25px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.skill-category h3 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: #1e293b;
}

.skill-category i {
  color: #2563eb;
  margin-right: 8px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tags li {
  background-color: #f1f5f9;
  color: #334155;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* 프로젝트 섹션 */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
}

.project-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.project-info {
  padding: 25px;
}

.project-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: #2563eb;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.project-info h3 {
  margin-bottom: 12px;
  color: #0f172a;
}

.project-info p {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tech-stack span {
  background-color: #eff6ff;
  color: #1d4ed8;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Contact & Footer */
.contact-links {
  margin-top: 25px;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background-color: #0f172a;
  color: #fff;
  border-radius: 8px;
  font-weight: 500;
  transition: background-color 0.2s;
}

.contact-item:hover {
  background-color: #1e293b;
}

.footer {
  padding: 30px 0;
  border-top: 1px solid #e2e8f0;
  color: #94a3b8;
  font-size: 0.9rem;
}

/* 프로필 카드 및 증명사진 스타일 */
.profile-img {
  width: 130px !important;
  height: 160px !important;
  object-fit: cover !important;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  margin-bottom: 15px;
  display: block;
}

.about-card-profile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.profile-content-wrapper {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 15px;
}

/* 반응형 미디어 쿼리 */
@media (max-width: 768px) {
  .section {
    padding: 50px 0;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

  .nav ul {
    gap: 12px;
  }

  .nav a {
    font-size: 0.9rem;
  }

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

@media (max-width: 600px) {
  .profile-content-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }
}