/* Navbar styles */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: space-between; /* 左右對齊 */
    padding: 0 20px;
    z-index: 9;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    
}

#navbar img {
    width: 100px;
    height: 30px;
    cursor: pointer;
    margin-right: 20px; /* 與其他選項的間距 */
    transition: transform 0.3s ease;
}

#navbar img:hover {
    transform: scale(1.1);
}

.nav-links {
    display: flex;
    gap: 20px; /* 選項之間的間距 */
    justify-content: space-between;
  align-items: center;
  width: 400px;
  margin: 0 auto;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 20px;
    /* font-weight: bold; */
    transition: color 0.3s ease;
    flex: 1 1 0;
    text-align: center;
}

.nav-links a:hover {
    color: #ff664b;
}
.nav-links a {
    position: relative;
  }
  
  .nav-links a::after {
    content: "Coming Soon!";
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0,0,0,0.8);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    font-size: 12px;
  }
  
  .nav-links a:hover::after {
    opacity: 1;
  }
  

#logo-btn {

    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    cursor: pointer;

    transition: transform 0.3s ease;
}
/* Specific styles for D-logo on the right */
#d-logo-btn {
    margin-left: 20px; /* 確保右側的 D-logo 與其他項目有間距 */
}

#logo-btn:hover {
    transform: scale(1.1);
}


/* Adjust page content to avoid overlapping with navbar */
body {
    margin: 0;
    padding-top: 60px; /* Navbar height */
}

.parallax-container {
    position: relative;
    width: 100vw;
    height: calc(100vh - 60px); /* Adjust for navbar */
    overflow: hidden;
}

/* 隱藏 navbar 的 sections 在 <1025px 時 */
@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
    }
}

#menu-toggle-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    position: fixed; /* 建議用 fixed */
    left: 50%;
    transform: translateX(-50%);
    top: 15px;
    z-index: 20;
    transition: transform 0.1s ease;
  }
  
  #menu-toggle-btn .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 4px 0;
    border-radius: 2px;
  }
  
  /* 點擊動畫效果 */
  #menu-toggle-btn:active {
    transform: translateX(-50%) scale(0.9);
  }
  
  
  @media (max-width: 768px) {
    #menu-toggle-btn {
      display: flex;
    }
  }
  

  #page-fade {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    z-index: 9;
    animation: fadeOut 3s ease-out forwards;
    pointer-events: none;
  }
  
  /* 動畫：從不透明→透明 */
  @keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
  }
  