 /* style.css */

/* 기본 세팅 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 맑은 고딕, malgun gothic, ApplegothicNeoSD, Apple SD 산돌고딕 Neo, Microsoft NeoGothic, Droid sans, sans-serif, Arial;
  background-color: white;
  color: #111;
  line-height: 1.6;
  padding-top: 80px;
  font-size: 1rem;
}
ul {
  list-style: none;
}
a {
  margin: 0;
  padding: 0;
  display: inline-block;
  text-decoration: none;
  color: inherit;
}
section {
  scroll-margin-top: 80px; /* 헤더 높이만큼 */
  padding: 2.5rem 2rem 3.5rem 2rem;
}
h2 {
  font-size: 2rem;
}
.section-area > h2 {
  background-color: #ecebeb;
  border-radius: 5px;
}



/* Header */

header {
  display: flex;
  padding: 0.7rem 2rem 0.8rem 2rem;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999; /* 다른 요소들 위에 나오도록 */
  background-color: white; /* 배경색 지정 (투명하면 아래 내용과 겹칠 수 있어요) */
  box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* 선택사항: 약간의 그림자 */
} 
header > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 1200px;
  margin: 0 auto;

}
header h1 {
  font-size: 2.5rem;
  width: 120px;
  height: 50px;
}
header h1 a {display: inline-block;
  width: 120px;
  height: 50px;
}
nav{
  padding: 1.2rem 2rem;
}
nav ul {
  display: flex;
  gap: 1.5rem;
}
.social-icons {
  padding: 1.2rem 0rem;
}
.social-icons button {
  margin-left: ;
  border: none;
  background: #e2317c;
  color: white;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 1rem;
}

.social-icons button:first-child {
  background: #5ac467;
}
.social-icons button:last-child {
  background: #ea333d;
}

/* 기본 상태에서는 토글 버튼 숨김  */
.menu-toggle {
  display: none;
}

/* Intro Section */
main {
  background: #f1e8e1;
}

main > div {
  max-width: 1200px;
  margin : 0 auto;
}
#intro {
}
.intro-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 0rem;
}
.intro-text {
  max-width: 50%;
}
.intro-text h2 {
  font-size: 3.5rem;
  margin-top: 1rem;
}
.intro-text h3 {
  font-size: 1.2rem;
}
.intro-text p {
  font-size: 1rem;
  margin: 0.8rem 0 1.2rem 0;
  line-height: 1.3rem;
}
.intro-text button {
  background: #444;
  color: white;

  border: none;
  border-radius: 30px;
}
.intro-text button a {
  padding: 0.65rem 4rem;
}
.portfolio-categories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.category {
  background: #ccc;
  margin-top: 1rem;
  text-align: center;
  font-weight: bold;
  font-size: 1.75rem;
  border-radius: 15px;
}
.category a {
  width: 100%;
  height: 100%;
  display: flex;
  text-align: center;
  margin: 0 auto;
  align-items: center;
  color:#fff;
  background-color: rgba(0,0,0,0.5);
  border-radius: 10px;
}
.category a:hover {
  color:#fff;
  background-color: rgba(0,0,0,0.7);
}
.category a span {
  width: 100%;
  text-align: center;
}
.web {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  min-height: 200px;
  padding: 5rem 4.5rem;
  background: url('./images/bg_web250825.jpg') no-repeat center;
  background-size: cover;
}
.print {
  min-height: 110px;
  padding: 3rem 4.5rem;
  background: url('./images/bg_print.jpg') no-repeat center;
  background-size: cover;
}
.ect {
  min-height: 70px;
  padding: 1rem 1.5rem;
  background: url('./images/bg_ect250823.jpg') no-repeat center;
  background-size: cover;
}

/* About Section */
#about > div {
max-width: 1200px;
margin : 0 auto;
}
#about h2{
  margin: 0 0 1.7rem 0;
}
.about-wrapper {
  display: flex;
  gap: 2rem;
}
.about-image {
  width: 300px;
  height: 200px;
  background: url('./images/kmrimg250823.png') no-repeat center #ededed;
  background-size: cover;
  border-radius: 15px;
}
.about-text h3 {
  font-size: 1.5rem;
  margin-bottom: 0.2rem;
}
.about-text p {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.about-text button {
  margin-top: 0.3rem;
  background: #444;
  color: white;
  padding: 0.5rem 3.5rem;
  border: none;
  border-radius: 30px;
}

/* Portfolio-web Section */
#portfolio-web {
  background: #f5f5f5;
}
#portfolio-web > div {
max-width: 1200px;
margin : 0 auto;
}
.portfolio-wrapper {
  display: flex;
  gap: 2rem;
}
.year-column {
  width: 50%;
}
.year-column h3 {
  margin-top: 1rem;
  font-size: 1.3rem;
}
.year-column ul li {
  font-size: 1rem;
  margin: 0.2rem 0;
}
.year-column ul li a:hover {
  font-weight: bold;
}

/* Portfolio-print Section */
#portfolio-print {
  background: #fff;
}
#portfolio-print > div {
max-width: 1200px;
margin : 0 auto;
}
.portfolio-wrapper {
  display: flex;
  gap: 2rem;
}

/* Portfolio-dmarketing Section */
#portfolio-dmarketing {
  background: #f5f5f5;
}
#portfolio-dmarketing > div {
  max-width: 1200px;
  margin : 0 auto;
}
.portfolio-wrapper {
  display: flex;
  gap: 2rem;
}

/* Contact Section */
#contact {
  background: #fff;
}
#contact > div {
max-width: 1200px;
margin : 0 auto;
}
form {
  max-width: 450px;
  padding: 1rem 0rem;
}
form input,
form textarea {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  border: 1px solid #aaa;
  border-radius: 4px;
}
form button {
  width: 100%;
  background: #aaa;
  border: none;
  padding: 0.8rem;
  border-radius: 4px;
}

/* Footer */
footer {
  background: #777;
  color: white;
  text-align: center;
  padding: 2rem;
}
.footer-icons span {
  margin: 0 0.5rem;
  background: #111;
  padding: 0.3rem 0.6rem;
  border-radius: 50%;
}


/* 모달 기본 스타일 */

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}
.modal ul {
  margin: 1.5% 0 2.5% 0;
}
.modal a  {
  color: #035fd1;
}
.modal a:hover	{
  font-weight: bold;
  color: #035fd1;
}
.modal-content {
  background-color: #fff;
  margin: 135px auto 10% auto;
  padding: 2%;
  border-radius: 10px;
  width: 80%;
  max-width: 700px;
}
.modal-content h4 {
  font-size: 1.3rem;
}
.modal-content img {
  width: 100%;
  max-width: 600px;
  border: 2px solid #ececec;
  margin-bottom: 3%;
  vertical-align: top;
}
.close {
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 0;
  padding: 10px 5px 15px 5px;
}




/* --------------------------
   반응형 처리 (768px 이하)
--------------------------- */
@media (max-width: 768px) {
  
  /* 메인, 섹션 내 가로 div → 세로 정렬 */
  .intro-wrapper,
  .about-wrapper,
  .portfolio-wrapper {
    flex-direction: column;
    align-items: center;
  }
  .portfolio-categories {
  display: block;
  }

  .intro-text,
  .portfolio-categories,
  .about-image,
  .about-text,
  .year-column {
    width: 100%;
    max-width: 100%;
  }

  header {
    padding: 1rem 2rem 1rem 2rem;
  }

  .intro-text {
	margin-bottom: 0.8rem;
  }
  .intro-text h2 {
	margin-top: 0rem;
  }


  /* 내비게이션 반응형 */
  nav ul {
    flex-direction: column;
    display: none; /* 기본 숨김 */
    background: #fff;
    position: absolute;
    top: 70px;
    right: 1rem;
    padding: 1rem;
    border: 1px solid #ccc;
    z-index: 100;
	gap: 0.5rem;
  }

  nav ul.active {
    display: flex;
  }

  /* social-icons 숨기기 */
  .social-icons {
    display: none;
  }

  /* 토글메뉴 */
  
  .menu-toggle {  

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
	}

	.menu-toggle .bar {	
	  width: 30px;
	  height: 4px;
	  background-color: #333;
	  border-radius: 2px;
	  transition: 0.3s;
	}

	/* 토글 - 메뉴가 열린 상태일 때 (X 모양) */
	.menu-toggle.open .bar:nth-child(1) {
	  transform: rotate(45deg) translate(5px, 5px);
	}

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

	.menu-toggle.open .bar:nth-child(3) {
	  transform: rotate(-45deg) translate(8px, -8px);
	}




}
