/* --- 1. 기본 설정 (variables, reset, common) --- */
:root {
  --bg-color: #f5f5f5;
  --text-color: #333;
  --gray-text-color: #777;
  --border-color: #ddd;
  --accent-color: #1abc9c;
  --accent-color-light: #007bff;
}

body {
  margin: 0;
  font-family: 'Noto Sans KR', sans-serif;
  line-height: 1.6;
  background-color: var(--bg-color);
  color: var(--text-color);
  -webkit-font-smoothing: antialiased;
}

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

/* --- 2. 헤더 및 내비게이션 --- */
.header {
  background-color: #fff;
  border-bottom: 1px solid var(--border-color);
  position: fixed;
  width: 100%;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.header .logo-group {
  display: flex;
  align-items: center;
}

.header img {
  height: 40px;
  margin-right: 10px;
}

.logo {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--text-color);
  margin: 0;
}

.nav {
  display: flex;
}

.nav a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 20px;
    font-size: 14px;
    transition: color 0.3s;
}

.nav a:hover {
  color: var(--accent-color);
}

/* --- 3. 메인 콘텐츠 --- */

/* index.html (메인 페이지) */
.main-content {
  padding-top: 100px;
}

.hero-section {
  height: 60vh;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-overlay {
  background-color: rgba(0, 0, 0, 0.2);
  position: absolute;
  inset: 0;
}

.text-section {
  text-align: center;
  padding: 80px 0;
  background-color: #fff;
  border-bottom: 1px solid var(--border-color);
}

.section-heading {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0 auto 20px;
  line-height: 1.4;
  max-width: 900px;
}

.company-name {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--gray-text-color);
  margin-bottom: 10px;
}

.company-intro {
  font-size: 1rem;
  font-weight: 300;
  color: var(--gray-text-color);
  max-width: 800px;
  margin: 0 auto 30px;
}

.web-info {
  font-size: 0.9rem;
  color: var(--gray-text-color);
}

.web-info .web-link {
  display: inline-block;
  color: #fff;
  background-color: var(--accent-color);
  padding: 5px 10px;
  text-decoration: none;
  border-radius: 3px;
  margin-left: 10px;
  font-size: 0.8rem;
  transition: background-color 0.3s;
}

.web-info .web-link:hover {
  background-color: #16a085;
}

.info-section {
  padding: 50px 0 100px;
  background-color: var(--bg-color);
}

.info-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--gray-text-color);
  margin-bottom: 40px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr; /* 모바일 우선 */
    gap: 10px 0;
}

@media (min-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
}

.info-item {
    display: flex;
    align-items: baseline; /* flex-start 또는 center 대신 baseline 사용 */
    align-self: flex-start;
    padding: 5px 0;
}

.info-label {
    flex-shrink: 0;
    font-weight: 500;
    min-width: 100px; /* 라벨 너비 고정 */
    margin-right: 15px; /* 라벨과 값 사이 간격 */
}

.info-value {
    flex-grow: 1;
    font-weight: 300;
}

/* 팀원 소개 페이지 */
.members-section,
.projects-section {
  padding-top: 100px;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-color);
}

.section-description {
  font-size: 1rem;
  color: var(--gray-text-color);
  margin-bottom: 60px;
  text-align: center;
}

.ceo-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 600px;
  margin: 0 auto 60px;
  padding: 40px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.ceo-member .member-photo {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 20px;
  border: 3px solid var(--accent-color);
}

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

.ceo-member .member-name {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--text-color);
}

.ceo-member .member-position {
  font-size: 1.1rem;
  color: var(--accent-color);
  margin-bottom: 15px;
}

.ceo-member .member-bio {
  font-size: 1rem;
  color: var(--gray-text-color);
  line-height: 1.6;
}

.separator {
  width: 80px;
  height: 2px;
  background-color: var(--border-color);
  margin: 0 auto 60px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}

.team-member {
  padding: 20px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  text-align: center;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.team-member .member-photo {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 20px;
  border: 2px solid var(--border-color);
}

.team-member .member-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--text-color);
}

.team-member .member-position {
  font-size: 0.9rem;
  color: var(--accent-color);
  margin-bottom: 15px;
}

.team-member .member-bio {
  font-size: 0.8rem;
  color: var(--gray-text-color);
  line-height: 1.5;
}

/* 프로젝트 페이지 */
.project-section {
  margin-bottom: 50px;
}

.project-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 30px;
  margin-bottom: 30px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.project-item:hover {
  transform: translateY(-5px);
}

.project-item img {
  width: 30%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.project-item:nth-child(even) {
  flex-direction: row-reverse;
}

.project-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.project-content h3 {
  font-weight: 700;
  font-size: 1.5em;
  color: #222;
  margin-top: 0;
}

.project-content p {
  font-weight: 400;
  color: #555;
}

.project-footer {
  text-align: right;
  margin-top: 20px;
}

.project-footer small {
  background-color: #e9e9e9;
  color: #777;
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: 500;
}

/* --- 4. 푸터 --- */
.footer {
  text-align: left;
  padding: 30px 0;
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--gray-text-color);
  background-color: #fff;
  margin-top: 80px;
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.copyright {
  margin: 0;
  font-size: 0.7rem;
  color: #999;
}

/* --- 5. 반응형 --- */
@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    padding: 10px 20px;
  }
  .nav {
    margin-top: 10px;
  }
  .nav a {
    margin: 0 10px;
  }
  .section-title {
    font-size: 2rem;
  }
  .ceo-member {
    padding: 20px;
  }
  .ceo-member .member-photo {
    width: 150px;
    height: 150px;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .project-item {
    flex-direction: column;
  }
  .project-item img {
    width: 100%;
    margin-bottom: 15px;
  }
}
