body {
  margin: 0;
  font-family: 'Rubik', sans-serif;
  background: #f9f9f9;
  color: #333;
}

.hero h1 {
  font-size: 4rem;
  color: white;
}

.animated-text {
  font-size: 2rem;
  background: linear-gradient(90deg, #00d2ff, #3a47d5);
  background-clip: text;                  /* ✅ standard version */
  -webkit-background-clip: text;          /* ✅ for Safari/Chrome */
  -webkit-text-fill-color: transparent;   /* ✅ required for gradient text effect */
  color: transparent;                     /* ✅ fallback for other browsers */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* optional readability */
  animation: flicker 3s infinite;
}


@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.container {
  max-width: 960px;
  margin: auto;
  padding: 2rem;
}
.containerhead {
  max-width: 1960px;
  margin: auto;
  padding: 4rem;
}


.profile-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  aspect-ratio: 1 / 1; /* 可加強穩定性 */
}



.services .bar {
  background: #ddd;
  height: 20px;
  margin: 0.5rem 0;
  border-radius: 10px;
  overflow: hidden;
  position: relative; /* 這很重要 */
}

.services .fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: #007bff;
  border-radius: 10px;
}


.profile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}
/* .profile-grid .item {
  flex: 1 1 33%;
  background: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  text-align: center;
} */

.profile-grid .item img {
  width: 100%;
  height: auto;
}

footer {
  text-align: center;
  padding: 1rem;
  background: #222;
  color: #fff;
}

footer .social a {
  margin: 0 0.5rem;
  color: white;
  font-size: 1.5rem;
}

html {
  scroll-padding-top: 80px; /* 導覽列高度 + 一點緩衝 */
  scroll-behavior: smooth;
}


.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: transparent;
  color: black;
  z-index: 1000;
  transition: background 0.3s ease, color 0.3s ease;
}

.navbar.solid {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  color: white;
}

.navbar .logo,
.navbar .nav-link {
  color: white;
  transition: color 0.3s ease;
}

.nav-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* ✅ 避免項目溢出電腦版 */
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  color: inherit;
  cursor: pointer;
  z-index: 1001;
}

/* 導覽列連結 */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
}

/* .nav-links li a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: #007bff;
} */

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .service-card {
    flex-direction: column !important;  /* 強制全部直排 */
    text-align: left;
    align-items: flex-start;
  }
  .service-image,
  .service-content {
    width: 100%;
  }
  /* 避免某些自訂反向導致錯位 */
  .service-card .service-image {
    order: 0;
  }
  .service-card .service-content {
    order: 1;
  }
  .nav-links { display: none; flex-direction: column; width: 100%; background: inherit; padding: 1rem; }
  .nav-links.show { display: flex; }
  .nav-links li { margin: 0.5rem 0; }
}



@media (max-width: 1000px) {
  .profile-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .profile-grid { grid-template-columns: 1fr; }
  .hero-section { padding: 10vmin 4vw; }
  .hero-section span { font-size: 7vw !important; }
}

.profile-card {
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(60,90,150,0.10);
  border-radius: 1.5rem;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform .18s, box-shadow .18s;
}
.profile-card:hover {
  transform: translateY(-4px) scale(1.025);
  box-shadow: 0 12px 28px rgba(60,90,150,0.14);
}

.navbar.transparent {
  background: rgba(0, 0, 0, 0.4); /* 半透明黑 */
  backdrop-filter: blur(8px); /* 模糊背景可讀性更好 */
  transition: background 0.3s ease;
}

/* —— 基本排版 —— */
#services .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}
#services h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}
#about h2,
#profile h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: 700;
  color: #222;
}

/* 1. 卡片列表：採 Flexbox，直排，每張卡片之間留空 */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* 2. 單張卡片：左右兩欄 */
.service-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform .3s;
}
/* 滑鼠移入微浮起 */
.service-card:hover {
  transform: translateY(-5px);
}

/* 3. 圖文交錯：偶數反向 */
.service-card:nth-child(even) {
  flex-direction: row-reverse;
  background-color: #fff8f0;
}

/* 4. 交替背景色：用 CSS 變數或直接指定 */
.service-card:nth-child(odd) {
  background-color: #f9f9ff;
}

/* 5. 圖片欄位 */
.service-image {
  flex: 0 0 40%;
}
.service-image img {
  display: block;
  width: 100%;
  border-radius: .75rem;
  object-fit: cover;
}

/* 6. 文字欄位 */
.service-content {
  flex: 1;
}
/* 1. 標題獨立成一行，並放大字級、增加下方間距 */
.service-content h3 {
  display: block;
  font-size: 1.8rem;      /* 比內文大一些 */
  margin: 0 0 0.75rem;     /* 下方空間，讓內文不會緊貼 */
  font-weight: 600;
  color: #222;
}

/* 2. 內文往右縮排、字級略小 */
.service-content p {
  margin: 0;
  padding-left: 1.25rem;   /* 整段往右縮排 */
  font-size: 1rem;         /* 比標題小 */
  line-height: 1.6;
  color: #555;
}

/* （可選）如果你還想每行都再獨立段落，可以讓 <br> 產生間距 */
.service-content p br {
  content: "";
  margin-bottom: 0.5rem;
  display: block;
}


/* 7. 進度條 */
.bar {
  background: #eee;
  border-radius: .5rem;
  overflow: hidden;
  height: .8rem;
}
.fill {
  width: var(--fill-width);
  height: 100%;
  background: linear-gradient(90deg, #6aace8, #3b78e7);
  transition: width .8s ease;
}
#summary {
  background: linear-gradient(90deg, #f7fafc 60%, #eaf2fb 100%);
  padding: 3rem 0;
}

.summary-container {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
}

.summary-card {
  background: #fff;
  box-shadow: 0 8px 24px rgba(60,90,150,0.08);
  border-radius: 1.25rem;
  padding: 2rem 2rem 1.5rem 2rem;
  min-width: 280px;
  max-width: 420px;
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform .2s, box-shadow .2s;
}

.summary-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 32px rgba(60,90,150,0.13);
}

.summary-card h2 {
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
  font-weight: 700;
  color: #3b78e7;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.summary-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.summary-card li {
  font-size: 1.08rem;
  color: #444;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8em;
  line-height: 1.5;
}

.summary-card li i {
  color: #3b78e7;
  min-width: 1.3em;
  font-size: 1.1em;
}

@media (max-width: 900px) {
  .summary-container {
    flex-direction: column;
    gap: 2rem;
    align-items: stretch;
  }
  .summary-card {
    max-width: 100%;
    min-width: 0;
  }
}


.avatar {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
  box-shadow: 0 2px 12px rgba(100, 120, 180, 0.09);
}

.member-info h3 {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 700;
  color: #334;
}
.member-info .title {
  font-size: 1rem;
  color: #3b78e7;
  font-weight: 500;
  margin-bottom: 0.7em;
}
.member-info .desc {
  font-size: 0.96rem;
  color: #555;
  margin-bottom: 1em;
  text-align: center;
}
.member-links {
  margin-top: 0.4em;
}
.member-links a {
  margin-right: 0.7em;
  color: #3b78e7;
  font-size: 1.25rem;
  transition: color .18s;
}
.member-links a:hover { color: #234098; }

/* 英文字體有現代感，可選Poppins/Inter，你已經有Noto Sans TC就不用改 */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;700&display=swap');

.app-hero, .hero-background, .hero-scrollable {
  width: 100vw;
  height: 100vh;
  position: relative;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-background-shape {
  width: calc( 100vw - var(--width, 0) );
  height: calc(100vh - var(--height, 0));
  border-radius: var(--pt, 0);
  background: linear-gradient(120deg, #0044F4 60%, #5aa7ff 100%);
  transition: all 0.6s cubic-bezier(.65,.08,.34,1);
  filter: blur(0.5vw);
}

.hero-scrollable {
  position: absolute;
  inset: 0;
  z-index: 1;
  color: white;
  font-family: 'Poppins', 'Noto Sans TC', sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-section {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 3vmin;
  padding: 12vmin 2vw;
  box-sizing: border-box;
  text-align: center;
}

.arrow-down {
  font-size: 8vmin;
  opacity: 0.7;
  display: inline-block;
  margin-top: 5vh;
  animation: jumpy-arrow 1.2s infinite alternate cubic-bezier(.41,.76,.62,.21);
}
@keyframes jumpy-arrow {
  from { transform: translateY(0);}
  to { transform: translateY(16px);}
}


