/* =========================================
   1. 核心變數與基礎設定 (Core Variables)
   配色：極致白 / 活力橘 / 深邃黑 / 質感灰
   ========================================= */
:root {
  /* 核心橘色 (Hermès Style / Vibrant Orange) */
  --primary: #FF5500;
  --primary-hover: #E04B00;
  --primary-gradient: linear-gradient(135deg, #FF5500 0%, #FF8800 100%);

  /* 背景色系 */
  --bg-dark: #0a0a0a;     /* 極深黑 (Hero, Header) */
  --bg-contact: #111111;  /* 接觸區塊背景 */
  --bg-light: #ffffff;    /* 純白 (Body, Cards) */
  --bg-gray: #f4f4f4;     /* 淺灰 (Services Section) */

  /* 文字色系 */
  --text-main: #1a1a1a;   /* 主要標題 */
  --text-body: #4a4a4a;   /* 內文 */
  --text-white: #ffffff;  /* 反白文字 */

  /* 介面尺寸與效果 */
  --nav-height: 80px;
  --border-radius: 16px;
  --card-shadow: 0 10px 30px rgba(0,0,0,0.06);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 基礎重置 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 19px; /* 設定大字體基數，提升閱讀性 */
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', 'Noto Sans TC', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden; /* 防止水平卷軸 */
}

/* 通用標題與連結設定 */
h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  transition: var(--transition);
}

img {
  width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px; /* 加寬容器 */
  margin: 0 auto;
  padding: 0 15px;
}

/* 橘色漸層文字效果 */
.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* =========================================
   2. Header & Navigation (導航列)
   ========================================= */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 15px 0;
  z-index: 1000;
  transition: var(--transition);
  background: var(--bg-dark); /* 預設黑色背景 */
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* 滾動後的樣式 (可選，目前維持黑色以保持風格一致) */
.site-header.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  padding: 10px 0;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 1px;
}
.logo span {
  color: var(--primary);
}

.nav {
  display: flex;
  gap: 15px;
  align-items: center;
}

/* 按鈕樣式 (膠囊狀) */
.btn {
  display: inline-block;
  padding: 10px 25px;
  font-weight: 700;
  border-radius: 50px;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  cursor: pointer;
  border: 2px solid transparent;
}

/* 幽靈按鈕 (白色邊框) */
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.3);
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* 實心橘色按鈕 */
.btn-primary {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 5px 15px rgba(255, 85, 0, 0.3);
  border: none;
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 85, 0, 0.4);
}

/* 白色輪廓按鈕 (Hero用) */
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}

/* 手機選單按鈕 */
.mobile-menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
}

/* =========================================
   3. Hero Section (主視覺)
   ========================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--bg-dark);
  overflow: hidden;
}

/* 背景圖動畫 */
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  /* 恢復您指定的演唱會圖片 */
  background-image: url('https://images.unsplash.com/photo-1470229722913-7c0e2dbbafd3?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
  animation: zoomBg 20s infinite alternate;
}
@keyframes zoomBg {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

/* 遮罩層 */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65); /* 黑色半透明，凸顯文字 */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
}

.hero-badge {
  display: inline-block;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 25px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(5px);
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 25px;
  color: #fff;
}

.hero-desc {
  font-size: 1.3rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================
   4. About Section (核心理念)
   ========================================= */
.section {
  padding: 100px 0;
}

.about {
  background: var(--bg-light);
  text-align: center;
}

.about-title {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.about-subtitle {
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 30px;
}

.about-desc {
  font-size: 1.25rem;
  color: var(--text-body);
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.9;
}

/* =========================================
   5. Services Section (專業服務 - 2x2 Grid)
   ========================================= */
.services {
  background: var(--bg-gray); /* 淺灰底區隔 */
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

/* 重點：2x2 排版設定 */
.services-grid {
  display: grid;
  grid-template-columns: 1fr; /* 手機預設 1 欄 */
  gap: 40px;
}

/* 平板與電腦：強制 2 欄 */
@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-card {
  background: var(--bg-light);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column; /* 確保內容垂直排列 */
  border-bottom: 4px solid transparent; /* 預留底部線條 */
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  border-bottom-color: var(--primary);
}

.card-img {
  height: 260px;
  overflow: hidden;
  position: relative;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover .card-img img {
  transform: scale(1.1);
}

.card-body {
  padding: 35px;
  flex-grow: 1; /* 讓卡片高度對齊 */
}

.card-icon {
  font-size: 2.2rem;
  margin-bottom: 15px;
  /* 漸層 Icon */
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.card-title {
  font-size: 1.6rem;
  margin-bottom: 15px;
}

.card-desc {
  font-size: 1.1rem;
  color: var(--text-body);
}

/* =========================================
   6. Contact Section (聯絡我們 - 文字版)
   ========================================= */
.contact {
  background: linear-gradient(180deg, #111111 0%, #1a1a1a 100%); /* 深黑漸層 */
  color: #fff;
  text-align: center;
}

.contact-container {
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  padding: 60px 30px;
  border-radius: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-title {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #fff;
}

.contact-details {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin: 40px 0;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.4rem;
  font-weight: 500;
}

.contact-item i {
  color: var(--primary);
  font-size: 1.8rem;
}

/* 特色標籤 (Tag) */
.feature-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.tag {
  background: rgba(255, 85, 0, 0.15);
  color: var(--primary);
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  border: 1px solid rgba(255, 85, 0, 0.3);
}

/* =========================================
   7. Footer
   ========================================= */
.site-footer {
  background: #000;
  color: #777;
  padding: 50px 0;
  text-align: center;
  border-top: 2px solid var(--primary);
}

/* =========================================
   8. Animations & Mobile
   ========================================= */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}
.reveal-on-scroll.active {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s 0.3s ease forwards;
}
@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* 手機版響應式設定 */
@media (max-width: 768px) {
  html { font-size: 16px; }
  
  .hero-title { font-size: 2.8rem; }
  
  .mobile-menu-toggle { display: block; }
  
  .nav {
    position: fixed;
    top: var(--nav-height); /* 接在 Header 下方 */
    left: 0;
    width: 100%;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 40px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 999;
  }
  
  .nav.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  
  .btn, .btn-ghost, .btn-primary {
    width: 100%;
    text-align: center;
    margin: 10px 0;
  }
  
  .contact-details { flex-direction: column; gap: 20px; }
}