@charset "utf-8";
/* CSS Document */

body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

/* 🔴 修复：导航必须加 z-index 才能让 dropdown 显示在最上层 */
/* 导航默认状态 —— 刚进页面、回到顶部时：纯色、无模糊 */
/* 初始状态：顶部纯色，无模糊 */
.navbar {
  background-color: #112143;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 50px;
  position: sticky;
  top: 0;
  z-index: 9999;
  transition: all 0.4s ease;
}

/* 滚动后：变小 + 毛玻璃（这个一定生效！） */
.navbar.scrolled {
  background: rgba(17, 33, 67, 0.55) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  padding: 14px 50px !important;
  box-shadow: none;
  border-bottom: none;
}

/* LEFT LOGO */
.logo img {
  width: 140px;
  display: block;
}

/* CENTER NAV */
.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  position: relative;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  color: #CDAA80;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

/* hover 文字颜色 */
.nav-links a:hover {
  color: #FFF7E6;
}

/* 底线（隐藏状态） */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 0;
  height: 1.5px;
  background-color: #FFF7E6;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

/* hover 时展开 */
.nav-links a:hover::after {
  width: 100%;
}

/* dropdown container */
.dropdown {
  position: relative;
}

/* 🔴 关键修复：dropdown menu 必须加 z-index 才看得见 */
.dropdown-menu {
  position: absolute;
  top: 120%;
  left: 0;
  background-color: #112143;
  border-radius: 10px;
  padding: 10px 0;
  min-width: 160px;

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.3s ease;
  backdrop-filter: blur(10px);
  
  z-index: 9999; /* 🔴 修复：层级拉满 */
}

/* dropdown items */
.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: #CDAA80;
  font-family: "Poppins", sans-serif;
  text-decoration: none;
  font-size: 14px;
}

.dropdown-menu a:hover {
  color: #FFF7E6;
  background-color: rgba(255,255,255,0.05);
}

/* show dropdown on hover */
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 让 Services 和箭头对齐 */
.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 小箭头 */
.arrow {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid #CDAA80;
  border-bottom: 1.5px solid #CDAA80;
  transform: rotate(45deg);
  transition: 0.3s ease;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* hover 时箭头转 */
.dropdown:hover .arrow {
  transform: rotate(225deg);
}

/* hover 时箭头颜色一起变 */
.dropdown:hover .arrow {
  border-color: #FFF7E6;
}

/* RIGHT LANGUAGE BOX */
.lang-box {
  font-family: "Poppins", sans-serif;
  color: #CDAA80;
  border: 1px solid #CFBB99;
  padding: 6px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.3s;
}

.lang-box:hover {
  background-color: rgba(205, 170, 128, 0.3);
}

/* -------------------------------- */

.footer {
  background: #112143;
  padding: 80px 60px 30px;
  color: #FFF7E6;
}

/* TOP SECTION */
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end; /* ⭐关键：统一底部对齐 */
}

/* LEFT */
.footer-left {
  width: 40%;
  display: flex;
  flex-direction: column;
}

.footer-logo {
  width: 150px;
  margin-bottom: 30px;
}

.footer-tagline {
  font-family: "Poppins", sans-serif;
  font-weight: 200;
  font-size: 16px;
  color: #CDAA80;
  line-height: 1.4;
}

.footer-tagline span {
  display: block;
}

/* RIGHT */
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 25px;
  margin-bottom: 30px;
}

.footer-links a {
  font-family: "Poppins", sans-serif;
  font-weight: 200;
  font-size: 16px;
  color: #FFF7E6;
  text-decoration: none;
  transition: 0.3s;
}

.footer-links a:hover {
  opacity: 0.6;
}

.footer-email {
  font-family: "Poppins", sans-serif;
  font-weight: 200;
  font-size: 16px;
  margin-bottom: 35px;
}

/* ICONS */
.footer-icons {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: auto;
}

.footer-icons img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
  transition: 0.3s;
}

.footer-icons img:hover {
  transform: translateY(-3px);
}

/* LINE */
.footer-line {
  width: 100%;
  height: 1px;
  background: #FFF7E6;
  margin: 40px 0 20px;
  opacity: 0.6;
}

/* BOTTOM */
.footer-bottom {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-size: 12px;
}

/* -------------------------------- */

.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;

  background: #25D366;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  z-index: 999;

  transition: all 0.3s ease;
}

.whatsapp-float img {
  width: 35px;
  height: 35px;
  object-fit: contain;
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 14px 30px rgba(0,0,0,0.35);
}

/* Desktop: enforce minimum width */
@media (min-width: 769px) {
  body {
    min-width: 960px;
  }
}

/* ================================
   HAMBURGER + MOBILE MENU
   ================================ */

/* Hide hamburger and mobile menu on desktop */
.hamburger {
  display: none;
}

.mobile-menu {
  display: none;
}

@media (max-width: 768px) {

  /* Hide desktop nav elements */
  .nav-links,
  .lang-switch {
    display: none;
  }

  /* Show hamburger button */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 10001;
  }

  .hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #CDAA80;
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
  }

  /* Animate to X when open */
  .hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* ---- Mobile full-screen overlay menu ---- */
  .mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(17, 33, 67, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 10000;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;

    opacity: 0;
    pointer-events: none;
    transform: translateY(-16px);
    transition: opacity 0.35s ease, transform 0.35s ease;
  }

  .mobile-menu.open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
  }

  /* Mobile nav links */
  .mobile-link {
    font-family: "Poppins", sans-serif;
    font-size: 22px;
    font-weight: 400;
    color: #CDAA80;
    text-decoration: none;
    padding: 10px 20px;
    letter-spacing: 0.04em;
    transition: color 0.25s ease;
  }

  .mobile-link:hover,
  .mobile-link.active {
    color: #FFF7E6;
  }

  /* Projects sub-links */
  .mobile-dropdown {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .mobile-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
  }

  .mobile-arrow {
    font-size: 14px;
    display: inline-block;
    transition: transform 0.3s ease;
  }

  .mobile-dropdown-toggle.expanded .mobile-arrow {
    transform: rotate(180deg);
  }

  .mobile-sub {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease;
  }

  .mobile-sub.open {
    max-height: 200px;
  }

  .mobile-sublink {
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    font-weight: 300;
    color: #CDAA80;
    text-decoration: none;
    padding: 6px 16px;
    opacity: 0.8;
    transition: opacity 0.2s;
  }

  .mobile-sublink:hover {
    opacity: 1;
    color: #FFF7E6;
  }

  /* Language toggle inside mobile menu */
  .mobile-lang {
    font-family: "Poppins", sans-serif;
    color: #CDAA80;
    border: 1px solid #CFBB99;
    padding: 8px 28px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 16px;
    transition: background 0.3s;
    letter-spacing: 0.08em;
  }

  .mobile-lang:hover {
    background-color: rgba(205, 170, 128, 0.3);
  }
}

/* 初始状态：隐藏且下移 */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

/* 激活状态：显示并复位 */
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
