/* === 全局樣式 === */
:root {
  overscroll-behavior: none;
}
body {
  font-family: Arial, sans-serif;
  user-select: none;
  /* 禁止選取文字 */
  margin: 0;
  padding: 0;
  background-color:  rgba(150, 150, 150, 0.2);
}

.bebas-neue-regular {
  font-family: "Bebas Neue, sans-serif";
  font-weight: 400;
  font-style: normal;
}

html {
  scroll-behavior: smooth;
  /* 平滑滾動 */
  overflow-x: hidden;
  background-color: rgb(16, 16, 16);
  /* 頁面背景色與 #home 一致 */
}

/* === 背景影片樣式 === */
.background-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
  /* 放置在最底層 */
}

/* === 主內容樣式 === */
#main-content {
  position: relative;
  z-index: 1;
  padding: 20px;
  color: white;
}

/* === 區塊樣式 === */
.section {
  width: 100%;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
}

/* === Header 樣式 === */
header#home-header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0);
  /* 默認透明背景 */
  color: white;
  padding: 10px 100px;
  z-index: 1000;
  opacity: 0;
  /* 初始完全不可見 */
  transform: translateY(-100%);
  /* 初始從屏幕頂部移出 */
  transition: transform 0.3s ease, opacity 0.3s ease;
  /* 平滑隱藏與顯示 */
}

header#home-header.visible {
  opacity: 1;
  /* 滾動後顯示 */
  transform: translateY(0);
  /* 回到可見位置 */
}

header#home-header.hidden {
  opacity: 0;
  transform: translateY(-100%);
  /* 滑出視窗上方 */
}

nav {
  display: inline-flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
}

.nav-title {
  font-weight: 600;
  font-size: 30px;
  color: #e6e6e6;
  transform: scaleY(1.2);
  padding-bottom: 15px;
  line-height: normal;
}

nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;

  font-weight: 600;
  flex-direction: column;
}

nav a:hover {
  text-decoration: none;
}

nav ul li a {
  color: white;
  text-decoration: none;
}

nav ul li a:hover {
  color: rgb(16, 16, 16);
  text-decoration: none;
  font-weight: 800;
}

/* === Footer 樣式 === */
#footer-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 250px;
  border: none;
}

#footer {
  background-color: #ffc802;
  height: 100vh;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 0px;
}

.copyright {
  font-weight: 600;
  font-size: 12px;
  color: #e6e6e6;
 
}

.footer-title {
  font-weight: 600;
  font-size: 120px;
  color: #e6e6e6;
  letter-spacing: -4px;
  transform: scaleY(1.3);
  margin-bottom: -18px;
}


/* 共用背景樣式 */
.fixed-background {
  position: fixed; /* 背景固定 */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* 覆蓋整個視窗 */
  background-image: url("../images/background.png"); /* 替換為你的背景圖片路徑 */
  background-size: cover; /* 背景圖片充滿容器 */
  background-position: center; /* 背景圖片居中 */
  background-repeat: no-repeat; /* 防止背景重複 */
   /* 保證背景位於內容下方 */
  opacity: 0; /* 預設透明，僅在非 home 區域顯示 */
  transition: opacity 0.5s ease; /* 平滑切換背景顯示 */
}

/* 當背景需要顯示時 */
.fixed-background.show {
  opacity: 1;
}
