@charset "UTF-8";

/* Reset & 기본 폰트 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Pretendard', sans-serif;
  line-height: 1.6;
  color: #222;
  background: #fff;
}

/* 공통 영역 */
.section {
  padding: 100px 20px;
}

.section-title {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

/* 색상 구역 */
.section.light {
  background: #fff;
}
.section.gray {
  background: #f8f9fb;
}
.section.blue {
  background: #0030ff;
  color: #fff;
}

/* 버튼 */
.btn {
  display: inline-block;
  padding: 14px 28px;
  background: #0030ff;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.3s;
}
.btn:hover {
  background: #001f99;
}

/* Header */
#header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 70px;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  z-index: 1000;
  border-bottom: 1px solid #eee;
  transition: transform 0.3s ease; /* top 대신 transform */
}

#header.hidden {
  transform: translateY(-100%); /* 위로 숨기기 */
}

#header nav ul {
  display: flex;
  list-style: none;
}
#header nav ul li {
  margin-left: 30px;
}
#header nav ul li a {
  text-decoration: none;
  color: #222;
  font-weight: 500;
  transition: color 0.3s;
}
#header nav ul li a:hover {
  color: #0030ff;
}


/* Hero */
#hero {
  height: 100vh;
  background: url('../assets/img/main-image.jpg') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  position: relative;
}
#hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
}
#hero .hero-content {
  position: relative;
  z-index: 2;
}
#hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
}
#hero h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
#hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

/* Grid 레이아웃 */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.card {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}
.card:hover {
  transform: translateY(-5px);
}

/* Timeline (History) */
.timeline {
  position: relative;
  margin: 2rem auto;
  padding: 2rem 0;
  width: 100%;
}

/* 중앙 세로선 */
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: #0030ff;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  box-sizing: border-box;
}

.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
}

/* 점 */
.timeline-dot {
  position: absolute;
  top: 30px; /* 각 아이템 내에서 점 위치 */
  left: 100%; /* 기본값: 왼쪽 아이템용 */
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  background: #0030ff;
  border-radius: 50%;
}

/* 오른쪽 아이템 점 위치 */
.timeline-item.right .timeline-dot {
  left: 0%;
  transform: translate(-50%, -50%);
}

/* 가로선 */
.timeline-item.left .timeline-dot::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  width: 30px;
  height: 2px;
  background: #0030ff;
}

.timeline-item.right .timeline-dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: 30px;
  height: 2px;
  background: #0030ff;
}

/* 텍스트 */
.timeline-content .year {
  font-weight: bold;
  color: #0030ff;
  display: block;
  margin-bottom: 5px;
  font-size: 0.95rem;   /* 년도 폰트 크기 줄임 */
}
.timeline-content h3 {
  margin: 2px 0;
  font-weight: 600;
  font-size: 1rem;      /* 타이틀 폰트 크기 줄임 */
}
.timeline-content p {
  margin: 0;
  color: #555;
  font-size: 0.85rem;   /* 세부내역 폰트 크기 줄임 */
  line-height: 1.4;
}

/* Team */
.team-section {
  background: #f9f9f9;
  padding: 80px 20px;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 16px;
  margin-top: 48px;
  color: #222;
}

.section-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  font-size: 1.1rem;
  color: #555;
  line-height: 1.6;
}

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

.team-orgchart img {
  max-width: 90%;   /* 화면 기준 크기 제한 */
  max-height: 600px; /* 너무 길지 않게 제한 */
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* Footer */
.footer {
  background: #222;
  color: #ddd;
  padding: 40px 20px;
  font-size: 0.95rem;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-left h4 {
  margin-bottom: 10px;
  color: #fff;
  font-size: 1.2rem;
}

.footer-left p {
  margin: 3px 0;
  line-height: 1.5;
}

.footer-right {
  text-align: right;
  font-size: 0.9rem;
  color: #aaa;
  white-space: nowrap; /* 한 줄 유지 */
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-left p {
    text-align: center;
  }
  .footer-right {
    margin-top: 15px;
    text-align: center;
    white-space: normal;
  }
}

/* 반응형 */
@media (max-width: 992px) {
  .service-row,
  .service-row.reverse {
    flex-direction: column;
    text-align: center;
  }

  .service-text {
    max-width: 100%;
  }
}


/* 서비스 */
.services-alt {
  padding: 120px 0; /* 위아래 여백 크게 */
}

.services-alt .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px; /* 양쪽 여백 조금 더 */
}

/* 개별 서비스 행 */
.service-row {
  display: flex;
  align-items: center; /* 텍스트를 이미지 높이에 맞춤 */
  justify-content: space-between;
  margin-bottom: 120px; /* 서비스 간격 더 크게 */
  gap: 80px;
}

.service-row.reverse {
  flex-direction: row-reverse;
}

/* 이미지 영역 */
.service-img {
  flex: 1;
  display: flex;
  justify-content: center;
}

.service-img img {
  width: 100%;
  max-width: 500px; /* 조금 더 크게 */
  height: 320px;   /* 일정한 높이 강제 */
  object-fit: cover;  /* 비율 유지 + 잘라내기 */
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  transition: transform 0.3s ease;
}

.service-img img:hover {
  transform: scale(1.03); /* 살짝 확대 효과 */
}

/* 텍스트 영역 */
.service-text {
  flex: 1;
  max-width: 550px; /* 조금 더 넓혀서 가독성 확보 */
}

.service-text h3 {
  font-size: 1.9rem;
  font-weight: 700; /* 굵은 볼드체 */
  margin-bottom: 15px;
  color: #222; /* 깔끔한 블랙 */
}

.service-text .subtitle {
  font-size: 1rem;
  color: #777;
  margin-bottom: 20px;
}

.service-text p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #444;
  word-break: keep-all;
}

/* 제목 (주요 서비스) */
.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 80px; /* 제목과 서비스 간격 */
  color: #111;
}

.portfolio-item {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.portfolio-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.portfolio-caption {
  padding: 20px;
  text-align: center;
}

.portfolio-caption-heading {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.portfolio-caption-subheading {
  font-size: 0.95rem;
  color: #666;
}


/* 비즈니스 섹션 */
.section.gray {
  background: #f9f9f9;
  padding: 100px 20px; /* 위아래 여백 넉넉하게 */
}

.section-title {
  text-align: center;
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #222;
}

.section-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 70px; /* 제목과 카드 사이 여백 확장 */
  font-size: 1.1rem;
  color: #555;
  line-height: 1.7;
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3열 고정 */
  gap: 40px;
}

@media (max-width: 1024px) {
  .business-grid {
    grid-template-columns: repeat(2, 1fr); /* 태블릿에서는 2열 */
  }
}
@media (max-width: 768px) {
  .business-grid {
    grid-template-columns: 1fr; /* 모바일에서는 1열 */
  }
}

.business-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.business-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.business-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.business-content {
  flex: 1;
  padding: 25px;
  display: flex;
  flex-direction: column;
}

.business-content h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #0056b3; /* 포인트 컬러 */
}

.business-content .subtitle {
  font-size: 1rem;
  color: #666;
  margin-bottom: 20px;
}

.business-content p {
  font-size: 1rem;
  color: #444;
  line-height: 1.7;
  margin-bottom: 15px;
  flex-grow: 1;
}

.business-content ul {
  padding-left: 0;
  margin: 0;
  list-style: none;
}

.business-content ul li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 20px;
  line-height: 1.6;
  font-size: 0.95rem;
  color: #444;
}

.business-content ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #0056b3;
  font-weight: bold;
}

.section.light {
  background: linear-gradient(135deg, #f5f8ff, #ffffff);
  padding: 80px 20px;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #222;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #0030ff;
  margin: 12px auto 0;
  border-radius: 2px;
}

.form-card {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0030ff;
  margin-bottom: 6px;
}

form input,
form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.2s;
  background: #fafafa;
}

form input:focus,
form textarea:focus {
  outline: none;
  border-color: #0030ff;
  background: #fff;
  box-shadow: 0 0 8px rgba(0,48,255,0.15);
}

form button {
  width: 100%;
  padding: 14px;
  background: #0030ff;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.1s ease;
}

form button:hover {
  background: #001f99;
  transform: translateY(-2px);
}

.form-note {
  margin-top: 15px;
  font-size: 0.85rem;
  text-align: center;
  color: #666;
}

/* ===== 햄버거 메뉴 ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #222;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* 오버레이 */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 999;
}
.nav-overlay.active {
  display: block;
}

/* ===== 모바일 반응형 ===== */
@media (max-width: 768px) {

  /* 헤더 */
  #header {
    padding: 0 20px;
  }

  .hamburger {
    display: flex;
  }

  /* 슬라이드 사이드 메뉴 */
  #mainNav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 280px;
    height: 100vh;
    background: #fff;
    z-index: 1000;
    transition: right 0.3s ease;
    padding-top: 80px;
    box-shadow: -4px 0 20px rgba(0,0,0,0.12);
  }

  #mainNav.open {
    right: 0;
  }

  #header nav ul {
    flex-direction: column;
    padding: 0 30px;
  }

  #header nav ul li {
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
  }

  #header nav ul li a {
    display: block;
    padding: 16px 0;
    font-size: 1.1rem;
    color: #222;
  }

  /* 히어로 폰트 크기 */
  #hero h1 {
    font-size: 2rem;
  }
  #hero h3 {
    font-size: 1.1rem;
  }
  #hero p {
    font-size: 1rem;
  }

  /* 서비스 섹션 */
  .services-alt {
    padding: 60px 0;
  }
  .services-alt .container {
    padding: 0 20px;
  }
  .service-row,
  .service-row.reverse {
    flex-direction: column;
    margin-bottom: 50px;
    gap: 30px;
  }
  .service-text h3 {
    font-size: 1.5rem;
  }

  /* 타임라인 모바일 (단일 컬럼) */
  .timeline::before {
    left: 18px;
    transform: none;
  }

  .timeline-item {
    width: 100% !important;
    left: 0 !important;
    text-align: left !important;
    padding: 10px 15px 10px 50px;
  }

  .timeline-dot {
    left: 18px !important;
    transform: translate(-50%, -50%);
  }

  .timeline-item.left .timeline-dot::after,
  .timeline-item.right .timeline-dot::after {
    display: none;
  }

  /* 섹션 타이틀 */
  .section-title {
    font-size: 1.7rem;
  }

  /* 폼 카드 */
  .form-card {
    padding: 25px 20px;
  }
}
