/* 폰트 설정 - 최상단에 위치 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* 색상 변수 정의 */
:root {
  --primary-color: #3a56e0;
  --primary-dark: #2a46d0;
  --primary-light: rgba(67, 97, 238, 0.08);
  --primary-accent: #4361ee;
  --text-dark: #1a1a1a;
  --text-medium: #444;
  --text-light: #777;
  --bg-light: #f9fafb;
  --border-light: #eaeaea;
  --shadow-sm: 0 5px 15px rgba(0,0,0,0.04);
  --shadow-md: 0 12px 30px rgba(67, 97, 238, 0.15);
  --shadow-lg: 0 15px 30px rgba(67, 97, 238, 0.2);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --font-primary: 'Montserrat', sans-serif;
  --font-secondary: 'Inter', sans-serif;
  --font-accent: 'Plus Jakarta Sans', sans-serif;
}

/* Project Layout Styles */

/* 프로젝트 페이지 레이아웃 개선 */
.projects-page {
  padding: 3rem 0;
  background-color: var(--bg-light);
  min-height: 100vh;
}

.projects-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.project-section {
  margin-bottom: 4rem;
}

.section-title {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
  position: relative;
  padding-bottom: 12px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--primary-accent);
  border-radius: 2px;
}

.section-description {
  font-family: var(--font-secondary);
  font-size: 1.1rem;
  color: var(--text-medium);
  margin-bottom: 2.5rem;
  max-width: 800px;
  line-height: 1.6;
}

.project-filters {
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.filter-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  margin-right: 1rem;
  color: #555;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

/* 반응형 디자인 개선 */
@media (max-width: 992px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.75rem;
  }
  
  .section-description {
    font-size: 1rem;
  }
  
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.25rem;
  }
}

@media (max-width: 576px) {
  .projects-page {
    padding: 2rem 0;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
}

/* 프로젝트 컨테이너 레이아웃 */
.projects {
  margin-top: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.page__content {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* 프로젝트 카드 그리드 레이아웃 */
.projects .row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
}

/* 애니메이션 효과 추가 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 프로젝트 카드 스타일 */
.project-card {
  position: relative;
  border: none;
  border-radius: 12px;
  background-color: #fff;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  height: 100%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.04);
  animation: fadeIn 0.6s ease-out forwards;
  animation-fill-mode: both;
}

.projects .row .project-card:nth-child(1) { animation-delay: 0.1s; }
.projects .row .project-card:nth-child(2) { animation-delay: 0.2s; }
.projects .row .project-card:nth-child(3) { animation-delay: 0.3s; }
.projects .row .project-card:nth-child(4) { animation-delay: 0.4s; }
.projects .row .project-card:nth-child(5) { animation-delay: 0.5s; }
.projects .row .project-card:nth-child(6) { animation-delay: 0.6s; }

.project-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 12px 30px rgba(67, 97, 238, 0.15);
}

.project-card:hover .card-title {
  color: #3a56e0;
}

.card-img-container {
  position: relative;
  overflow: hidden;
}

.card-img-top {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.project-card:hover .card-img-top {
  transform: scale(1.08);
}

.project-category {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(67, 97, 238, 0.9);
  color: white;
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 30px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: #1a1a1a;
  line-height: 1.3;
}

.card-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 1.2rem;
  flex-grow: 1;
  line-height: 1.6;
}

.card-footer {
  background-color: transparent;
  border-top: 1px solid rgba(0,0,0,0.05);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-date {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: #888;
  font-style: italic;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.tech-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  background-color: #f1f4fd;
  color: #4361ee;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 500;
}

/* 버튼 스타일 개선 */
.btn {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-transform: capitalize;
  letter-spacing: 0.3px;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-outline-primary {
  color: #4361ee;
  border-color: #4361ee;
  background-color: transparent;
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
  background-color: #4361ee;
  color: white;
  box-shadow: 0 5px 15px rgba(67, 97, 238, 0.2);
}

.filter-button {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  background-color: #f1f4fd;
  border: none;
  color: #555;
  padding: 0.4rem 1rem;
  border-radius: 30px;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  transition: all 0.2s ease;
}

.filter-button:hover, .filter-button:focus {
  background-color: #4361ee;
  color: white;
}

.filter-button.active {
  background-color: #4361ee;
  color: white;
}

/* 프로젝트 섹션 제목 스타일 업데이트 */
.projects-section h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
  border-bottom: 2px solid #eaeaea;
  padding-bottom: 0.5rem;
}

/* 프로젝트 섹션 설명 스타일 */
.projects-section .section-description {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 2rem;
  max-width: 800px;
  line-height: 1.7;
}

/* 깃허브 아이콘 스타일 개선 */
.github-icon .icon {
  display: inline-block;
  margin-right: 0.8rem;
}

.github-icon .gh-icon {
  font-size: 1.4rem;
  color: #444;
  transition: all 0.3s ease;
}

.github-icon .icon:hover .gh-icon {
  color: #4a6bff;
  transform: scale(1.1);
}

/* 페이지 전체 폰트 개선 */
.projects-container {
  font-family: 'Inter', sans-serif;
}

/* 프로젝트 설명 텍스트 개선 */
.projects .card-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
}

/* 카테고리 스타일 */
h2.category {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid #4a6bff;
  padding-bottom: 0.8rem;
  color: #222;
  display: inline-block;
  position: relative;
  letter-spacing: -0.5px;
}

h2.category:after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: #4a6bff;
}

/* 호버 효과 강화 */
.hoverable {
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  will-change: transform;
}

.hoverable:hover {
  transform: translateY(-7px);
  box-shadow: 0 15px 30px rgba(67, 97, 238, 0.2);
}

/* 태그 스타일 추가 */
.card .project-tags {
  margin-bottom: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.card .project-tag {
  display: inline-block;
  font-family: var(--font-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary-color);
  background-color: var(--primary-light);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
} 