/* =============================================================
   기업 소개 페이지 느낌의 포트폴리오 스타일
   - 색상은 아래 :root 변수에서 한 번에 변경할 수 있습니다.
   - 카드형 레이아웃, 넓은 여백, 깔끔한 타이포그래피를 중심으로 구성했습니다.
   ============================================================= */
:root {
  --primary: #1f3a5f;       /* 메인 컬러: 신뢰감 있는 네이비 */
  --primary-dark: #14263f;  /* 어두운 네이비 */
  --accent: #3b82f6;        /* 포인트 블루 */
  --bg: #f3f6fb;            /* 전체 배경색 */
  --surface: #ffffff;       /* 카드와 섹션 배경 */
  --text: #172033;          /* 본문 글자색 */
  --muted: #6b7280;         /* 보조 글자색 */
  --line: #dbe3ef;          /* 테두리 색 */
  --shadow: 0 18px 45px rgba(21, 38, 63, 0.10);
  --radius: 22px;
}

/* 모든 요소의 크기 계산 방식을 통일합니다. */
* {
  box-sizing: border-box;
}

/* 부드러운 페이지 이동 효과를 적용합니다. */
html {
  scroll-behavior: smooth;
}

/* body: 사이트 전체 기본 스타일입니다. */
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

/* 이미지가 추가될 경우 화면 밖으로 넘치지 않게 합니다. */
img {
  max-width: 100%;
  display: block;
}

/* a 태그 기본 밑줄을 제거합니다. */
a {
  color: inherit;
  text-decoration: none;
}

/* 페이지의 최대 너비를 통일하는 공통 컨테이너입니다. */
.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* 각 section의 위아래 여백입니다. */
.section-padding {
  padding: 86px 0;
}

/* 흰색 배경 섹션입니다. */
.white-section {
  background: var(--surface);
}

/* =============================================================
   Header / Navigation
   ============================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(1120px, calc(100% - 40px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* 브랜드 로고 영역입니다. */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--primary);
}

/* HY 이니셜을 로고처럼 보이게 만든 박스입니다. */
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.brand-text {
  letter-spacing: -0.02em;
}

/* 메뉴 영역입니다. */
.gnb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.gnb a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

/* 현재 페이지 메뉴와 hover 상태에 포인트 스타일을 줍니다. */
.gnb a:hover,
.gnb a.active {
  color: var(--primary);
  background: #edf4ff;
}

/* =============================================================
   Hero Section
   ============================================================= */
.hero {
  min-height: 640px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(59, 130, 246, 0.15), transparent 32%),
    linear-gradient(135deg, #f7fbff 0%, #eef4fb 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  color: var(--primary-dark);
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.hero-desc,
.page-hero p,
.section-heading p {
  color: var(--muted);
  font-size: 18px;
}

.hero-desc {
  max-width: 640px;
  margin: 24px 0 0;
}

.button-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
}

/* 버튼 공통 스타일입니다. */
.btn,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.btn.primary,
button {
  color: #fff;
  background: var(--primary);
}

.btn.secondary {
  color: var(--primary);
  background: #fff;
  border: 1px solid var(--line);
}

.btn:hover,
button:hover {
  transform: translateY(-2px);
  transition: 0.2s ease;
}

/* 히어로 오른쪽 카드입니다. */
.hero-card {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  padding: 38px;
  border-radius: 32px;
  color: #fff;
  background: linear-gradient(145deg, var(--primary-dark), var(--primary));
  box-shadow: var(--shadow);
}

/* 카드에 장식용 원을 넣어 기업 사이트 같은 느낌을 줍니다. */
.hero-card::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
}

.card-label {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  font-size: 13px;
  font-weight: 800;
}

.hero-card h2 {
  margin: 42px 0 18px;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.hero-card p {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.80);
}

/* =============================================================
   Section Title / Card Layout
   ============================================================= */
.section-heading {
  max-width: 680px;
  margin-bottom: 34px;
}

.section-heading h2,
.two-column h2,
.contact-info-card h2,
.form-card h2,
.cta-box h2 {
  margin: 0 0 14px;
  color: var(--primary-dark);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.card-grid,
.stats-grid,
.project-grid {
  display: grid;
  gap: 22px;
}

.card-grid.three,
.stats-grid,
.project-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* 공통 카드 스타일입니다. */
.info-card,
.stat-card,
.project-card,
.profile-card,
.contact-info-card,
.form-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.info-card {
  padding: 30px;
}

.info-card h3,
.project-card h3,
.timeline-item h3 {
  margin: 0 0 12px;
  color: var(--primary-dark);
  font-size: 22px;
}

.info-card p,
.project-card p,
.timeline-item p,
.two-column p,
.contact-info-card p,
.form-card p {
  color: var(--muted);
}

.icon-box {
  width: 54px;
  height: 54px;
  margin-bottom: 24px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--accent);
  background: #edf4ff;
  font-weight: 900;
}

.stat-card {
  padding: 28px;
}

.stat-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 42px;
  line-height: 1;
}

.stat-card span {
  color: var(--muted);
  font-weight: 700;
}

/* =============================================================
   Sub Page Hero / Two Column
   ============================================================= */
.page-hero {
  background: linear-gradient(135deg, #eef4fb, #ffffff);
}

.page-hero h1 {
  max-width: 850px;
  font-size: clamp(38px, 5vw, 58px);
}

.page-hero p {
  max-width: 720px;
  margin: 22px 0 0;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 42px;
}

.two-column.align-center {
  align-items: center;
}

.profile-card {
  padding: 28px;
}

.profile-card h3 {
  margin-top: 0;
  color: var(--primary-dark);
}

.clean-list,
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.clean-list li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.clean-list li:last-child {
  border-bottom: 0;
}

.clean-list span {
  color: var(--muted);
}

.clean-list strong {
  text-align: right;
}

/* =============================================================
   Timeline
   ============================================================= */
.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  padding: 26px 28px;
  border-left: 5px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: #fff;
  box-shadow: var(--shadow);
}

.timeline-item span {
  color: var(--accent);
  font-weight: 900;
}

/* =============================================================
   Portfolio Page
   ============================================================= */
.project-card {
  padding: 28px;
}

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.project-category {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--accent);
  background: #edf4ff;
  font-size: 13px;
  font-weight: 900;
}

.project-number {
  color: #c7d2e3;
  font-size: 34px;
  font-weight: 900;
}

.project-card ul {
  margin: 20px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

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

.skill-wrap span {
  padding: 12px 16px;
  border-radius: 999px;
  color: var(--primary);
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 800;
}

/* =============================================================
   Contact Page
   ============================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
}

.contact-info-card,
.form-card {
  padding: 32px;
}

.contact-list {
  margin-top: 26px;
}

.contact-list li {
  display: grid;
  gap: 4px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.contact-list li:last-child {
  border-bottom: 0;
}

.contact-list span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.contact-list a,
.contact-list strong {
  color: var(--primary-dark);
  font-size: 17px;
}

.contact-form {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.contact-form label {
  color: var(--primary-dark);
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f9fbfe;
  color: var(--text);
  font: inherit;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(59, 130, 246, 0.18);
  border-color: var(--accent);
}

textarea {
  resize: vertical;
}

/* =============================================================
   CTA / Footer
   ============================================================= */
.cta-section {
  padding: 70px 0;
  background: var(--primary-dark);
}

.cta-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 42px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.cta-box h2 {
  color: #fff;
}

.cta-box .btn.primary {
  background: #fff;
  color: var(--primary-dark);
}

.site-footer {
  padding: 28px 0;
  color: #dbe3ef;
  background: var(--primary-dark);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* =============================================================
   JavaScript와 함께 사용하는 간단한 애니메이션 클래스
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================================
   Responsive Design: 화면이 작아졌을 때의 스타일입니다.
   ============================================================= */
@media (max-width: 900px) {
  .header-inner {
    flex-direction: column;
    justify-content: center;
    padding: 16px 0;
  }

  .hero-grid,
  .two-column,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .card-grid.three,
  .stats-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .cta-box {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .container,
  .header-inner {
    width: min(100% - 28px, 1120px);
  }

  .section-padding {
    padding: 64px 0;
  }

  .brand-text {
    display: none;
  }

  .gnb {
    justify-content: center;
  }

  .gnb a {
    padding: 8px 10px;
    font-size: 14px;
  }

  .hero-card,
  .cta-box,
  .contact-info-card,
  .form-card,
  .profile-card {
    padding: 26px;
  }
}
