/* ============= RESET & BASE STYLES ============= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #fceabb, #f8b500);
  color: #222;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  position: relative;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.3s ease;
}

a:hover,
a:focus {
  color: #a855f7;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

h1, h2, h3 {
  font-weight: 700;
  color: #feffb6;
  letter-spacing: 0.03em;
}

/* ============= CONTAINER ============= */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 4rem 0;
}

/* ============= HEADER & NAVIGATION ============= */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 1);
  backdrop-filter: saturate(180%) blur(10px);
  z-index: 1000;
  padding: 0rem 2rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.logo {
  font-size: 2rem;
  font-weight: 900;
  font-family: 'Montserrat', sans-serif;
  color: #4b0082;
  letter-spacing: 1.5px;
  user-select: none;
  
}

/* 導覽列主結構（桌面） */
.navbar {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-weight: 600;
}

.navbar a {
  padding: 0.5rem 0;
  position: relative;
  color: #4b0082;
  transition: color 0.3s ease;
}

.navbar a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  border-radius: 2px;
  transition: background 0.3s ease;
}

.navbar a:hover::after,
.navbar a.active::after {
  background: #a855f7;
}

/* 下拉選單樣式 */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  background: none;
  border: none;
  font: inherit;
  color: rgb(73, 0, 128);
  cursor: pointer;
  padding: 0.5rem 0;
  position: relative;
}

.dropdown-toggle::after {
  content: '▼';
  font-size: 0.6em;
  margin-left: 6px;
  vertical-align: middle;
  color: #a855f7;
  transition: transform 0.3s ease;
}

/* 下拉選單內容 */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
  z-index: 100;
  border-radius: 4px;
  overflow: hidden;
}

.dropdown-menu a {
  color: #333;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: background 0.3s;
}

.dropdown-menu a:hover {
  background: #f0f0f0;
  color: #4b0082;
}

/* 桌面：懸停展開 */
@media (min-width: 769px) {
  .dropdown:hover .dropdown-menu {
    display: block;
  }
  /* 支援點擊切換（可選） */
  .dropdown.active .dropdown-menu {
    display: block;
  }
}

/* 行動版選單按鈕 */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #4b0082;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.3s ease;
}

.menu-toggle:hover,
.menu-toggle:focus {
  color: #a855f7;
  outline: 2px solid #a855f7;
  border-radius: 6px;
}

/* ============= RESPONSIVE DESIGN ============= */
@media (max-width: 768px) {
  .logo {
    font-size: 1rem;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    z-index: 1001;
  }

  /* Optional: Prevent logo from overlapping */
  .logo {
    margin: auto; 
    text-align: center;
    flex: 1;
    max-height: 125px;
  }
  
  /* Optional: Center the logo if you want */
  header {
    justify-content: center;
display: block;
  }
  

  .navbar {
    display: none;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #2e0854;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    padding: 1rem 2rem;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    z-index: 999;
    gap: 1rem;
  }

  .navbar.active {
    display: flex;
  }

  /* 統一所有導覽項目樣式 */
  .navbar a,
  .navbar .dropdown-toggle {
    color: #dab6ff;
    text-align: center;
    padding: 0.8rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
  }

  /* 確保 button 不破壞佈局 */
  .navbar .dropdown-toggle {
    background: none;
    border: none;
    font: inherit;
    color: rgb(224, 186, 243);
    padding: 0.8rem 0;
    text-align: center;
    width: 100%;
    cursor: pointer;
    outline: none;
  }

  /* 下拉選單樣式 */
  .navbar .dropdown-menu {
    position: static;
    display: none;
    box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.1);
    background: rgba(75, 0, 130, 0.3);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 4px;
  }

  .navbar .dropdown-menu a {
    color: #dab6ff;
    padding: 12px 16px;
    font-size: 0.95rem;
  }

  .navbar .dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
  }

  .navbar .dropdown.active > .dropdown-menu {
    display: block;
  }

  /* 箭頭翻轉 */
  .navbar .dropdown.active .dropdown-toggle::after {
    transform: rotate(180deg);
  }

  /* 其他行動版樣式 */
  .hero { padding-top: 120px; }
  .hero-content h1 { font-size: 2rem; }
  .hero-content p { font-size: 1.1rem; }
  .section-title { font-size: 2.2rem; margin-bottom: 2rem; }
  .container { width: 95%; padding: 3rem 0; }
  .contact-form { padding: 2rem 1rem; }
  .track, .tour-item { padding: 1rem; }
}


/* ============= EXTRA SMALL DEVICES ============= */
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 1rem;
  }

  .contact-form button {
    font-size: 1.1rem;
    padding: 1rem 0;
  }
}

/* ============= HERO SECTION ============= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  background: url('assets/home1.JPG') no-repeat center center/cover;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.112), rgba(75, 0, 130, 0.6));
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 660px;
  padding: 1.5rem 2rem;
  color: #f1e7ff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  border-radius: 16px;
  background: rgba(75, 0, 130, 0.3);
}

.hero-content h1 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  font-weight: 500;
  line-height: 1.4;
  color: #e0d5f8;
}

.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  background-color: #a855f7;
  color: white;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover,
.btn:focus {
  background-color: #7e22ce;
  box-shadow: 0 6px 24px rgba(126, 34, 206, 0.8);
  outline: none;
}

/* ============= SECTIONS ============= */
section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.75rem;
  margin-bottom: 3rem;
  color: #7e22ce;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============= ABOUT SECTION ============= */
.about-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about-img {
  border-radius: 20px;
  overflow: hidden;
}

/* ============= MUSIC SECTION ============= */
.track-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
}

.track {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background-color: #ddccf2;
  border-radius: 20px;
  max-width: 800px;
  width: 100%;
  box-shadow:
    0 6px 18px rgba(168, 85, 247, 0.15),
    0 8px 38px rgba(75, 0, 130, 0.1);
  transition: transform 0.25s ease, background-color 0.35s ease;
  color: #4b0082;
  font-weight: 600;
}

.track img {
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.track:hover {
  transform: scale(1.02);
  background-color: #a87ffe;
  color: white;
}

/* ============= TOUR DATES ============= */
.tour-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.tour-item {
  padding: 1.25rem 1.5rem;
  background-color: #9795a0;
  border-left: 6px solid #a855f7;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.15);
  font-weight: 600;
  color: #4b0082;
  transition: transform 0.3s ease;
  width: 100%;
  max-width: 700px;
}

.tour-item:hover {
  transform: translateX(8px);
  box-shadow: 0 15px 40px rgba(168, 85, 247, 0.3);
}

/* ============= CONTACT FORM ============= */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 2.5rem 1.5rem;
  border-radius: 24px;
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.15);
  color: #4b0082;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1.1rem 1.3rem;
  margin-bottom: 1.2rem;
  border: 2px solid #a87ffe;
  border-radius: 16px;
  background-color: #fafaff;
  color: #4b0082;
  font-size: 1rem;
  font-weight: 600;
  transition: border-color 0.3s ease;
  outline-offset: 2px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #7e22ce;
  box-shadow: 0 0 10px #a855f7aa;
  outline: none;
}

.contact-form button {
  width: 100%;
  background-color: #a855f7;
  color: white;
  padding: 1.1rem 0;
  border: none;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 18px rgba(168, 85, 247, 0.6);
}

.contact-form button:hover {
  background-color: #7e22ce;
  box-shadow: 0 6px 22px rgba(126, 34, 206, 0.8);
}

/* ============= FOOTER ============= */
footer {
  text-align: center;
  padding: 2.5rem 1rem;
  background-color: #2e0854;
  font-size: 0.95rem;
  color: #d9b8ff;
  letter-spacing: 0.04em;
  font-weight: 500;
}

