/* Header */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-color: #fff;
  z-index: 100;
  display: flex;
  justify-content: center;
}

.header-content {
  width: 100%;
  max-width: 1850px;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 50px;
  box-sizing: border-box;
}

/* Logo */
.main-header .logo {
  font-size: 24px;
  font-weight: bold;
  scale: 1.2;

  position: relative;
}

/* Navigation */
.main-header .main-nav {
  display: flex;
  gap: 50px;
  position: relative;
  align-items: center;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 50px;
}

.hamburger-menu {
  display: none;
}

.mobile-menu-overlay {
  display: none;
}

.main-header .main-nav a {
  text-decoration: none;
  color: #050505;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0em;
  position: relative;
}

/* Underline for all main-nav links */
.main-header .main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  background-color: #000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.main-header .main-nav a:hover::after,
.main-header .main-nav a:focus::after,
.main-header .main-nav a:active::after {
  opacity: 1;
}

/* Remove old underline styles for BUSINESS only */

/* Language Switch */
.main-header .lang-switch {
  display: flex;
  gap: 15px;
}

.main-header .lang-switch .lang {
  width: 33px;
  height: 33px;
  border-radius: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  font-size: 16px;
  color: #050505;
  cursor: pointer; /* Add this line */
  transition: background-color 0.3s, color 0.3s; /* Add transition */
}

.main-header .lang-switch .lang.kr.active {
  background-color: #050505;
  color: #fff;
}

.main-header .lang-switch .lang.en.active {
  background-color: #050505;
  color: #fff;
}

.main-header .lang-switch .lang:not(.active) {
  background-color: transparent;
  color: #888;
}

.main-header .lang-switch .lang:not(.active):hover {
  background-color: #f0f0f0;
  color: #050505;
}


/* menu_over */
.menu_container { /* Add a container */
  position: relative;
  padding: 2px 0; /* Adjust padding as needed */
}


.menu_over {
  position: fixed;
  top: 80px; /* height of header */
  left: 0;
  width: 100vw;
  background: #ffffff; /* Match the image background */
  padding: 40px 0 40px 0;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 101;
}



/* 헤더 전체에 마우스를 올리면 menu_over가 보이도록 */
.main-header:hover .menu_over,
.main-header:focus-within .menu_over {
  display: block;
  height: 50px;
}

.menu_over ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-18%) translateY(-10px); /* BUSINESS 메뉴 아래로 60px 이동 */
  align-items: flex-start;
  min-width: 320px;
  max-width: 400px;
  background: none;
}

.main-header .main-nav .menu_container .menu_over ul li a,
.menu_over ul li a {
  display: block;
  padding: 0px;
  text-decoration: none;
  color: #888888;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s, font-weight 0.2s;
}

.main-header .main-nav .menu_container .menu_over ul li a:hover,
.menu_over ul li a:hover {
  color: #222;
  font-weight: 700;
}

#contact-section {
  scroll-margin-top: 120px; /* 헤더 높이만큼 여백 추가 */
}

/* Responsive Styles */
@media (max-width: 768px) {
  .main-header {
    height: 80px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    z-index: 1000;
  }
  .header-content {
    padding: 0 20px;
    width: 100%;
    justify-content: space-between;
  }
  .main-header .logo {
    scale: 1;
  }
  .main-header .main-nav {
    display: none;
  }
  .header-right .lang-switch {
    display: none;
  }
  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    gap: 6px;
    z-index: 1100;
  }
  .hamburger-menu span {
    display: block;
    width: 30px;
    height: 4px;
    background: #222;
    border-radius: 2px;
    transition: all 0.3s;
  }
  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255,255,255,0.98);
    z-index: 2000;
    justify-content: center;
    align-items: flex-start;
    animation: fadeIn 0.3s;
  }
  .mobile-menu-overlay.active {
    display: flex;
  }
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  .mobile-menu-content {
    margin-top: 100px;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
  .mobile-menu-link {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #050505;
    text-decoration: none;
    padding: 10px 0;
    width: 80vw;
    text-align: center;
    border-bottom: 1px solid #eee;
    background: none;
  }
  .mobile-menu-business {
    width: 80vw;
    text-align: center;
  }
  .mobile-business-list {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    padding-left: 0;
    background: none;
  }
  .mobile-business-list.active {
    display: flex;
  }
  .mobile-business-list li a {
    font-size: 18px;
    color: #888;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.2s, font-weight 0.2s;
    border-bottom: 1px solid #f0f0f0;
    background: none;
  }
  .mobile-business-list li a:hover {
    color: #222;
    font-weight: 700;
  }
  .mobile-lang-switch {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
  }
  .mobile-lang-switch .lang {
    width: 33px;
    height: 33px;
    border-radius: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    font-size: 16px;
    color: #050505;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    background: #f0f0f0;
  }
  .mobile-lang-switch .lang.active {
    background-color: #050505;
    color: #fff;
  }
}