/* 변수 설정: 보라색 테마 */
:root {
  --primary-purple: #6c5ce7;
  --dark-purple: #4834d4;
  --light-purple: #efeeff;
  --bg-color: #f9f9ff;
  --card-bg: #ffffff;
  --text-main: #2d3436;
  --text-sub: #636e72;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family:
    'Pretendard',
    -apple-system,
    sans-serif;
  line-height: 1.6;
}

/* =========================================
   상단 네비게이션 바 스타일
========================================= */
.top-nav {
  background-color: var(--card-bg);
  box-shadow: 0 2px 10px rgba(108, 92, 231, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-purple);
  text-decoration: none;
  transition: color 0.3s;
}

.logo:hover {
  color: var(--dark-purple);
}

.nav-right {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-right a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.nav-right a:hover {
  color: var(--primary-purple);
}

/* =========================================
   메인 콘텐츠 스타일
========================================= */
.wrapper {
  max-width: 1000px;
  margin: 40px auto;
  padding: 20px;
}

/* 프로필 카드 섹션 (수정됨: 이미지 찌그러짐 방지) */
.profile-card {
  background: linear-gradient(
    135deg,
    var(--primary-purple),
    var(--dark-purple)
  );
  border-radius: 24px;
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 40px;
  color: var(--white);
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(108, 92, 231, 0.2);
}

.profile-img {
  flex-shrink: 0;
  width: 150px;
  height: 150px;
}

.profile-img img {
  width: 100%;
  height: 100%;
  border-radius: 50%; /* 완벽한 동그라미 */
  border: 4px solid rgba(255, 255, 255, 0.3);
  object-fit: cover;
  background-color: var(--white);
  display: block;
}

.profile-details h1 {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 20px;
}

.contact-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-link {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-link:hover {
  background: var(--white);
  color: var(--primary-purple);
  transform: translateY(-2px);
}

/* 그리드 레이아웃 */
.content-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.grid-item {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-block {
  background: var(--card-bg);
  padding: 32px;
  border-radius: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.info-block.full-width {
  grid-column: 1 / -1;
}

.info-block h2 {
  font-size: 1.4rem;
  color: var(--primary-purple);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.list {
  list-style: none;
}

.list li {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
}

.list .date {
  font-weight: bold;
  color: var(--dark-purple);
  font-size: 0.95rem;
}

.list .text {
  color: var(--text-main);
  font-size: 1rem;
}

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

.tag {
  background-color: var(--light-purple);
  color: var(--primary-purple);
  padding: 8px 16px;
  border-radius: 12px;
  font-weight: bold;
  font-size: 0.9rem;
}

/* 프로젝트 및 카드 컴포넌트 */
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.item-card {
  background-color: var(--bg-color);
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--light-purple);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.item-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-purple);
  box-shadow: 0 8px 15px rgba(108, 92, 231, 0.1);
}

.item-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--dark-purple);
}

.item-card p {
  font-size: 0.95rem;
  color: var(--text-sub);
  flex-grow: 1;
}

/* 팀원 카드 전용 스타일 */
.team-card {
  align-items: center;
  text-align: center;
}

.team-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 15px;
  object-fit: cover;
  border: 3px solid var(--light-purple);
}

/* 버튼 스타일 */
.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary-purple);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  text-align: center;
  margin-top: 15px;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: var(--dark-purple);
}

/* =========================================
   모바일 & 태블릿 반응형 처리
========================================= */
@media screen and (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
  }

  .nav-right {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .wrapper {
    margin: 20px auto;
  }

  .profile-card {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
  }

  .contact-tags {
    justify-content: center;
  }

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

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

  .list li {
    align-items: center;
  }

  .skill-tags {
    justify-content: center;
  }
}
.contact-link-team {
  background: lightblue;
  color: var(--white);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: black;
  text-decoration: none;
}
.contact-link-team:hover {
  color: #1a237e;
}

.links-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 15px;
  margin-top: 10px !important;
  width: 100%;
}
