/* ======================================
   Global Reset & 기본 설정
====================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    font-family: 'Montserrat','SUIT','Apple SD Gothic Neo','Malgun Gothic','Nanum Gothic','Noto Sans', sans-serif !important;
    position: relative;
    overflow-x: hidden;
  }
  
  /* ======================================
     배경 인터랙티브 도형
     - 전체 화면에 자연스럽게 분포, 블러 처리로 배경에 어우러짐
  ====================================== */
  .background-shape {
    position: fixed;
    z-index: -1;
    opacity: 0.04;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(4px);
    animation: drift 15s ease-in-out infinite;
  }
  
  /* 도형 분포 (화면 전체) */
  .shape-1 {
    width: 250px;
    height: 250px;
    background: #1abc9c;
    top: 5%;
    left: 15%;
    animation-delay: 0s;
  }
  
  .shape-2 {
    width: 300px;
    height: 300px;
    background: #16a085;
    top: 20%;
    right: 10%;
    animation-delay: 3s;
  }
  
  .shape-3 {
    width: 220px;
    height: 220px;
    background: #1abc9c;
    top: 50%;
    left: 5%;
    animation-delay: 5s;
  }
  
  .shape-4 {
    width: 280px;
    height: 280px;
    background: #16a085;
    bottom: 30%;
    right: 20%;
    animation-delay: 7s;
  }
  
  .shape-5 {
    width: 200px;
    height: 200px;
    background: #1abc9c;
    bottom: 10%;
    left: 40%;
    animation-delay: 9s;
  }
  
  @keyframes drift {
    0% {
      transform: translate(0, 0) rotate(0deg);
    }
    50% {
      transform: translate(40px, -40px) rotate(20deg);
    }
    100% {
      transform: translate(0, 0) rotate(0deg);
    }
  }
  
  /* ======================================
     Global 링크 & 버튼 스타일
  ====================================== */
  /* 링크 기본 스타일 */
  a {
    text-decoration: none;
    color: inherit;
  }
  
  /* 버튼 기본 스타일 (border-radius 제거) */
  .btn {
    display: inline-block;
    padding: 0.75rem 1.2rem;
    border: 2px solid transparent;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    color: #fff;
    border-radius: 0;
  }
  
  /* 단색 버튼 (solid) */
  .btn--solid {
    background-color: #1abc9c;
    border-color: #1abc9c;
  }
  
  .btn--solid:hover {
    background-color: #16a085;
    border-color: #16a085;
    transform: scale(1.05);
  }
  
  /* 아웃라인 버튼 (outline) */
  .btn--outline {
    background: transparent;
    color: #1abc9c;
    border-color: #1abc9c;
  }
  
  .btn--outline:hover {
    background-color: #1abc9c;
    color: #fff;
    transform: scale(1.05);
  }
  
  /* ======================================
     헤더 및 네비게이션
  ====================================== */
  .header {
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 1rem;
  }
  
  .header__logo {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .header__logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-right: 0.5rem;
  }
  
  .header__logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
    font-family: 'Gowun Dodum', cursive;
  }
  
  .header__nav {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
  }
  
  .nav__links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
  }
  
  .nav__links li a {
    font-weight: 500;
    color: #333;
    transition: color 0.3s;
  }
  
  .nav__links li a:hover {
    color: #1abc9c;
  }
  
  /* 모바일 메뉴 토글 */
  .nav__toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    margin-top: 0.5rem;
  }
  
  .nav__toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 4px 0;
    transition: all 0.4s;
  }
  
  /* ======================================
     히어로 섹션
  ====================================== */
  .hero {
    position: relative;
    width: 100%;
    height: 80vh;
    background: url("res/hero.png") center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  
  .hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
  }
  
  .hero__content {
    position: relative;
    text-align: center;
    z-index: 1;
    max-width: 90%;
  }
  
  .hero__content h2 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #fff;
    font-family: 'Gowun Dodum', cursive;
  }
  
  .hero__content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #e0e0e0;
    font-family: 'Gowun Dodum', cursive;
  }
  
  /* ======================================
     섹션 공통 스타일
  ====================================== */
  .section {
    padding: 4rem 1rem;
    max-width: 1200px;
    margin: 2rem auto;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
  }
  
  /* About 섹션 - 고급스럽게 가시성 강화 */
  .about-content {
    font-size: 1rem;
    color: #555;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(26,188,156,0.06) 0%, rgba(26,188,156,0.02) 100%);
    border-left: 4px solid #1abc9c;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }
  .about-content p,
  .about-content ol {
    margin-bottom: 1rem;
  }
  .about-content ol {
    list-style: decimal inside;
    padding-left: 1rem;
  }
  .easter-egg {
    font-style: italic;
    color: #1abc9c;
  }
  
  /* Services 섹션 */
  .services__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
  }
  
  .service__item {
    background-color: #fafafa;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #eee;
    transition: transform 0.3s, box-shadow 0.3s;
  }
  
  .service__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  }
  
  /* ======================================
     Contact 섹션 (중앙 정렬)
  ====================================== */
  .contact {
    text-align: center;
    padding: 2rem 1rem;
  }
  
  .contact p {
    margin-bottom: 1.5rem;
  }
  
  .contact-buttons {
    display: inline-flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  /* ======================================
     포트폴리오 섹션
  ====================================== */
  .portfolio {
    padding: 2rem 1rem;
  }
  
  .portfolio-grid {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
  }
  
  .portfolio-col {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .portfolio-category {
    font-size: 1.3rem;
    font-weight: bold;
    color: #1abc9c;
    text-align: center;
    margin-bottom: 0.5rem;
  }
  
  .portfolio-item {
    background-color: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
  }
  
  .portfolio-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  }
  
  .portfolio-item img {
    max-width: 100%;
    border-radius: 4px;
    margin-bottom: 0.5rem;
  }
  
  .portfolio-item p {
    font-size: 0.95rem;
    color: #555;
  }
  
  .portfolio-description {
    text-align: center;
    color: #555;
    line-height: 1.6;
    padding: 0 1rem 2rem;
  }
  
  .portfolio-description p {
    margin-bottom: 1rem;
  }
  
  /* ======================================
     푸터 (다크 그레이, 흰 텍스트, line-height 감소)
  ====================================== */
  .footer {
    background-color: #333;
    color: #fff;
    padding: 2rem 1rem;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.2;
  }
  
  .footer-top p,
  .footer-bottom p {
    margin-bottom: 0.5rem;
  }
  
  /* ======================================
     인터랙티브 애니메이션
     - 스크롤 시 나타나는 애니메이션을 slideInUp 효과 (0.4s)로 적용
  ====================================== */
  @keyframes slideInUp {
    0% {
      opacity: 0;
      transform: translateY(20px) scale(0.95);
    }
    100% {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
  
  .animate {
    opacity: 0;
  }
  
  .animate.active {
    animation: slideInUp 0.4s ease-out forwards;
  }
  
  /* ======================================
     미디어 쿼리 (반응형 디자인)
  ====================================== */
  @media (max-width: 768px) {
    /* 모바일: 헤더 네비게이션은 우측 상단에 햄버거 메뉴 */
    .header {
      position: relative;
    }
  
    .header__nav {
      margin-top: 0;
      width: 100%;
    }
  
    .nav__toggle {
      display: flex;
      position: absolute;
      top: 0.5rem;
      right: 1rem;
    }
  
    .nav__links {
      display: none;
      flex-direction: column;
      background: #fff;
      box-shadow: 0 2px 5px rgba(0,0,0,0.2);
      position: absolute;
      top: 100%;
      right: 0;
      width: 200px;
      padding: 1rem;
      gap: 1rem;
      z-index: 99;
    }
  
    .nav__links.active {
      display: flex;
    }
  
    .portfolio-grid {
      flex-direction: column;
    }
  }
  