/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html, body, div, span, applet, object, iframe,
  h1, h2, h3, h4, h5, h6, p, blockquote, pre,
  a, abbr, acronym, address, big, cite, code,
  del, dfn, em, img, ins, kbd, q, s, samp,
  small, strike, strong, sub, sup, tt, var,
  b, u, i, center,
  dl, dt, dd, ol, ul, li,
  fieldset, form, label, legend,
  table, caption, tbody, tfoot, thead, tr, th, td,
  article, aside, canvas, details, embed,
  figure, figcaption, footer, header, hgroup,
  menu, nav, output, ruby, section, summary,
  time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
  
}

body{
  height:100vh;
  font-family:'noto sans' 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  background: rgb(241,241,225);
  background: linear-gradient(121deg, rgba(241,241,225,1) 0%, rgba(246,202,212,1) 47%, rgba(231,210,227,1) 88%, rgba(220,215,235,1) 100%); 
}
.nav_bar_container {
    display: flex;
    justify-content: space-between; /* 로고와 메뉴 항목을 양쪽 끝에 배치 */
    align-items: center;
    background-color: #252525c8;
    padding: 10px 20px;
    height: 60px;
    
}

.nav_menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav_item {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    position: relative;
    transition: color 0.3s ease;
}

.nav_item:hover {
    color: #f6cad4;
}

.dropdown {
    position: relative;
    cursor: pointer;
}

.dropdown_content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #252525;
    min-width: 120px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 4px;
    padding: 8px 0;
}

.dropdown_content a {
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    display: block;
    font-size: 12px;
    transition: background-color 0.3s ease;
}

.dropdown_content a:hover {
    background-color: #f6cad4;
    color: #252525;
}

.dropdown:hover .dropdown_content {
    display: block;
}
.nav_bar_logo{
    color:white;
}
.korean_title{
    color:white;
}
.nav_bar_logo img {
    height: 20px; /* 로고 크기 조절 */
}


.logo_container{
    width:50vw;
    height:50vh;
    margin:auto;
    background-image: url(/contents/logobw.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    background-attachment: fixed;
    /* filter: drop-shadow(10px 10px 20px rgba(0, 0, 0, 0.5)); */
    /* 3D 회전 효과 */
    transform-style: preserve-3d;
    animation: rotate3D 10s infinite linear; /* 5초 동안 회전 */
}
.contact{
    color:white;
    text-align: center;
}

.page_content {
    min-height: calc(100vh - 60px);
    padding: 20px;
}

/* Modern page styling */
.modern_container {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 900px;
}

.page_title {
    color: #2c2c2c;
    text-align: center;
    margin: 50px 0 30px 0;
    font-size: 3em;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
    letter-spacing: 2px;
}

.page_subtitle {
    color: #ffffff;
    font-size: 1.8em;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.page_text {
    color: #e8e8e8;
    line-height: 1.6;
    font-size: 1.1em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.service_item {
    margin: 30px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border-left: 4px solid #f6cad4;
    transition: all 0.3s ease;
}

.service_item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
}

.service_title {
    color: #f6cad4;
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 10px;
}

.service_description {
    color: #d0d0d0;
    margin-left: 20px;
    line-height: 1.5;
}

.team_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.team_card {
    background: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(246, 202, 212, 0.2);
}

.team_card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.contact_info {
    background: rgba(246, 202, 212, 0.1);
    padding: 40px;
    border-radius: 20px;
    margin: 40px 0;
    border: 2px solid rgba(246, 202, 212, 0.3);
}

.contact_label {
    color: #f6cad4;
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact_value {
    color: #ffffff;
    font-size: 1.1em;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* 3D 회전 애니메이션 설정 */
@keyframes rotate3D {
    0% {
        transform: perspective(550px) rotateY(0deg); /* 초기 위치 */
    }
    100% {
        transform: perspective(550px) rotateY(360deg); /* 360도 회전 */
    }
}



/* ====== Responsive Hamburger Menu ====== */

/* 버튼 기본 숨김(데스크톱) */
.hamburger {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* 토글 시 X 아이콘 */
.hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 작은 화면 레이아웃 */
@media (max-width: 768px) {
  .nav_bar_container {
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  /* 버튼 보이기 */
  .hamburger {
    display: inline-block;
  }

  /* 기본 메뉴 숨기기 + 세로형 전환 준비 */
  .nav_menu {
    display: none;              /* 데스크톱의 가로 메뉴는 숨김 */
    position: absolute;
    top: 60px;                  /* .nav_bar_container 높이와 맞춤 */
    right: 0;
    left: 0;
    flex-direction: column;     /* 세로 정렬 */
    gap: 0;
    background-color: #252525;  /* 바 배경과 통일 */
    padding: 10px 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  /* 버튼으로 열렸을 때 */
  .nav_menu.is-open {
    display: flex;
  }

  /* 링크 스타일(터치 영역 키우기) */
  .nav_item {
    padding: 12px 4px;
    font-size: 15px;
  }

  /* 드롭다운: 호버 대신 '탭 열림'에 가깝게 보이도록 항상 아래로 배치 */
  .dropdown {
    position: static;
  }
  .dropdown_content {
    position: static;
    display: none;
    background-color: transparent;
    box-shadow: none;
    padding: 0;
  }
  /* 드롭다운 항목은 네비 아래에 들여쓰기 */
  .dropdown_content a {
    padding: 10px 14px;
    font-size: 14px;
    opacity: 0.9;
  }

  /* 모바일에서 드롭다운을 탭-열림처럼 보이게: 제목을 탭하면 한번 더 탭해 하위 링크로 이동 */
  .dropdown > span {
    display: block;
    padding: 12px 4px;
  }
  /* 간단 구현: 드롭다운 영역을 탭하면 펼쳐짐(첫 탭에 :focus-within으로 열림) */
  .dropdown:focus-within .dropdown_content,
  .dropdown:hover .dropdown_content {
    display: block;
  }
}