@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700;900&family=Poppins:wght@400;500;600;700;800;900&display=swap');

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', 'Noto Sans KR', sans-serif;
  color: #222;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

/* header */
.header {
  width: 100%;
  height: 100px;
  background: #fff;
  position: relative;
  z-index: 1000;
}

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

.logo img {
  width: 220px;
}

.nav {
  display: flex;
  gap: clamp(20px, 4vw, 60px);
}

.nav a {
  font-size: 16px;
  font-weight: 600;
  color: #222;
}

.nav a:hover {
  color: #14aeea;
}

/* hamburger */
.menu-toggle {
  display: none;
  width: 34px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  margin: 6px 0;
  background: #222;
  border-radius: 10px;
  transition: 0.3s;
}

/* hero */
.hero {
  position: relative;
  width: 100%;
  height: clamp(500px, 40vw, 760px);
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: 0.7s;
  background-size: cover;
  background-position: center;
}

.slide.active {
  opacity: 1;
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.hero-content {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  width: 90%;
}

.hero h1 {
  font-size: clamp(28px, 2.5vw, 48px);
  line-height: 1.5;
  font-weight: 800;
}

.hero-btn {
  display: inline-block;
  margin-top: 30px;
  padding: 12px 30px;
  border: 2px solid #fff;
  border-radius: 6px;
  color: #fff;
}

.hero-btn:hover {
  background: #fff;
  color: #222;
}

.slide-btn {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  font-size: 60px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}

.prev { left: 20px; }
.next { right: 20px; }

.dots {
  margin-top: 40px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  display: inline-block;
  margin: 0 5px;
}

.dot.active {
  background: #fff;
}

/* expertise */
.expertise {
  padding: 100px 20px;
  text-align: center;
  background: linear-gradient(#fff, #f5fbfd);
}

.expertise h2 {
  font-size: clamp(32px, 2.5vw, 48px);
  margin-bottom: 60px;
}

.expertise-list {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 5vw, 100px);
  flex-wrap: wrap;
}

.expertise-card {
  width: 320px;
  padding: 50px 20px;
  background: #fff;
  border-radius: 25px;
  box-shadow: 0 15px 40px rgba(0,120,160,0.1);
}

.expertise-card img {
  width: 120px;
  margin: 0 auto 30px;
}

.expertise-card h3 {
  font-size: 20px;
  margin-bottom: 20px;
}

.expertise-card p {
  font-size: 15px;
  line-height: 1.6;
}

/* about */
.about-banner {
  width: 100%;
  min-height: 320px;
  background: url("../images/img005.png") center/cover no-repeat;
  display: flex;
  align-items: center;
}

.about-inner {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 80px;
}

.about-logo {
  width: 300px;
}

.about-inner p {
  color: #fff;
  font-size: clamp(18px, 1.5vw, 26px);
  line-height: 1.4;
}

/* portfolio */
.portfolio {
  padding: 100px 20px;
  text-align: center;
}

.portfolio h2 {
  font-size: 42px;
  margin-bottom: 60px;
}

.portfolio-grid {
  max-width: 1050px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid #ccc;
  border-left: 1px solid #ccc;
}

/* 링크를 넣을 때는 a.portfolio-item 구조 권장 */
.portfolio-item {
  position: relative;
  height: 200px;
  border-right: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.portfolio-item > img:first-child {
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.portfolio-item .hover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .hover-img {
  opacity: 1;
}

.portfolio-item:hover > img:first-child {
  opacity: 0;
}

/* contact */
.contact-banner {
  width: 100%;
  min-height: 650px;
  background: url("../images/main03.png") center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.contact-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.58);
  z-index: 1;
}

.contact-inner {
  position: relative;
  z-index: 2;
  color: #fff;
  width: min(900px, calc(100% - 40px));
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.contact-inner h2 {
  margin: 0 0 18px;
  font-size: clamp(40px, 3.2vw, 58px);
  font-weight: 900;
  color: #fff;
  letter-spacing: 1px;
}

.contact-desc {
  margin: 0 0 34px;
  font-size: clamp(16px, 1.2vw, 20px);
  color: #fff;
  opacity: 1;
  font-weight: 400;
}

.contact-phone {
  display: block;
  margin: 0 0 36px;
  font-size: clamp(48px, 5vw, 82px);
  line-height: 1;
  font-weight: 500;
  color: #00aeef;
  text-shadow: none;
}

.contact-info {
  margin-bottom: 44px;
}

.contact-info p {
  margin: 8px 0;
  font-size: clamp(18px, 1.5vw, 26px);
  color: #fff;
  font-weight: 400;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 205px;
  height: 52px;
  border-radius: 8px;
  background: #fff;
  color: #222;
  font-size: 16px;
  font-weight: 700;
  text-shadow: none;
}

.contact-btn:hover {
  background: #00aeef;
  color: #fff;
}

/* footer */
.footer {
  background: #efefef;
  padding: 40px 0;
}

.footer-inner {
  max-width: 1200px;
  width: calc(100% - 40px);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left img {
  width: 180px;
  opacity: 0.6;
}

.footer-right {
  text-align: right;
  font-size: 14px;
  color: #666;
}

.footer-right .copyright {
  margin-top: 5px;
  font-size: 13px;
}

/* responsive */
@media (max-width: 768px) {
  .header {
    height: 80px;
    padding: 0;
  }

  .header-inner {
    width: calc(100% - 32px);
    height: 80px;
    flex-direction: row;
    gap: 0;
  }

  .logo img {
    width: 180px;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    display: none;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
  }

  .nav a {
    display: block;
    padding: 18px 24px;
    font-size: 15px;
    border-bottom: 1px solid #eee;
  }

  .header.open .nav {
    display: flex;
  }

  .header.open .menu-toggle span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .header.open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .header.open .menu-toggle span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .hero {
    height: 500px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .expertise-list {
    flex-direction: column;
    align-items: center;
  }

  .about-banner {
    padding: 70px 0;
  }

  .about-inner {
    flex-direction: column;
    text-align: center;
    gap: 36px;
  }

  .about-logo {
    width: 280px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-item {
    height: 170px;
  }

  .contact-banner {
    min-height: 560px;
    padding: 80px 0;
  }

  .contact-phone {
    font-size: 42px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer-right {
    text-align: center;
  }
}