/* ===== 全局樣式 ===== */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #f0f8ff;
}

/* ===== 導航欄樣式 ===== */
/* 導覽列背景（外層 navbar-custom） */
.navbar-custom {
  background: radial-gradient(circle at left bottom,
                              #0dcaf0 15%,
                              rgba(255,255,255,0.9) 55%,
                              rgba(255,255,255,0.6) 15%,
                              rgba(255,255,255,0.3) 30%,
                              transparent 85%) !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* ★★★ 新增：漢堡按鈕三條槓改為黑色 + 邊框色 ★★★ */
.navbar-custom .navbar-toggler-icon {
  /* stroke='%23000' 即黑色，可改其他顏色 */
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%23000' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22' /%3E%3C/svg%3E");
}
.navbar-custom .navbar-toggler {
  border-color: #000; /* 漢堡按鈕外框改黑色 */
}

/* 導覽列按鈕（custom-nav-link） */
.custom-nav-link {
  /* 保留你想要的新漸層： */
  background: linear-gradient(145deg, #66d3fa, #339af0) !important;
  color: #ffffff !important;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
  
  border-radius: 25px !important;
  padding: 8px 25px !important;
  margin: 0 8px !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 6px rgba(51,154,240,0.2) !important;
}

.custom-nav-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(51,154,240,0.3) !important;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}
/* ===== 導覽欄公司名稱 - 黑色字體，無閃爍效果 ===== */
.navbar-brand span {
  font-size: 2.0rem; /* 字體變大 */
  font-weight: bold;
  color: black; /* 保持黑色 */
  letter-spacing: 1.5px;
}


/* ===== 首頁Banner樣式 ===== */
.banner {
  position: relative;
  color: #fff;  /* 文字顏色 */
  text-align: center;
  padding: 100px 20px;
  background: url('images/index/combg.jpg') no-repeat center center / cover; /* 請自行確認路徑 */
}

.banner::before {
  content: '';
  position: absolute;
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0;
  background: rgba(0, 0, 0, 0.5); 
  z-index: 1;
}

.banner::after {
  content: '';
  position: absolute;
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    rgba(255,255,255,0.4) 0%,
    rgba(255,255,255,0)   30%,
    rgba(255,255,255,0.4) 60%,
    rgba(255,255,255,0)   100%
  );
  opacity: 0.7;
  z-index: 2;
  background-size: 250% 250%;
  animation: lightmove 3.5s ease-in-out infinite alternate;
}

.banner .container {
  position: relative;
  z-index: 3;
}

@keyframes lightmove {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

/* ===== 首頁公司名稱 - 亮色字體動態變化 ===== */
.banner h1 {
  font-size: 3rem; /* 字體變大 */
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  background-image: linear-gradient(90deg, 
    #ff9a8b, #ffdde1, #ffcc70, #fcff7b, #7bffb2, #70d6ff, #b0c7ff, #e0aaff
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: lightColorChange 4s infinite linear;
  text-shadow: 2px 2px 10px rgba(255, 255, 255, 0.5);
}

/* 亮色顏色變化動畫 */
@keyframes lightColorChange {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


/* ===== 產品區塊 ===== */
#products {
  background: radial-gradient(
    circle at 30% 50%,
    rgba(255,255,255,0.95) 0%,
    rgba(230,245,255,0.9) 100%
  );
  border: 2px solid rgba(13,202,240,0.15);
  border-radius: 25px;
  margin: 60px 15px;
  padding: 50px 0;
  box-shadow: 0 12px 40px rgba(13,202,240,0.15);
}

#products .btn-primary {
  background: linear-gradient(45deg, #0dcaf0, #007bff) !important;
  border: none !important;
  border-radius: 30px !important;
  padding: 12px 25px;
  margin: 5px 3px;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 4px 15px rgba(0,123,255,0.3);
}
#products .btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0,123,255,0.4);
}

/* ===== 關於我們區塊 ===== */
#about {
  margin: 50px 15px;
  padding: 40px 20px;
}
#about h2 {
  color: #2c3e50;
  font-size: 2.2rem;
  border-bottom: 2px solid #0dcaf0;
  padding-bottom: 10px;
  display: inline-block;
}
#about p {
  color: #4a5568;
  font-size: 1.05rem;
  line-height: 1.8;
  letter-spacing: 0.5px;
  margin-bottom: 1.2em;
}

/* ===== 圖片區塊 ===== */
.image-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem;
}
.image-card {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  aspect-ratio: 1;
}
.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.image-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(13, 202, 240, 0.2);
}

/* ===== 主要卡片大標題美化 ===== */
.card-body > .card-title {
  font-size: 1.6rem;
  font-weight: bold;
  color: #007bff;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 2px 2px 4px rgba(0, 123, 255, 0.2);
  padding: 12px 0;
  position: relative;
  letter-spacing: 1.5px;
  transition: color 0.3s ease-in-out, text-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.card-body > .card-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 100%;
  height: 2px;
  background-color: #007bff;
  transform: translateX(-50%);
}

.card-body > .card-title:hover {
  color: #0056b3;
  text-shadow: 3px 3px 6px rgba(0, 86, 179, 0.3);
  transform: scale(1.05);
}

/* ===== 聯絡表單 ===== */
#contact {
  background: linear-gradient(135deg,
    rgba(240,248,255,0.9) 0%,
    rgba(224,240,255,0.95) 100%
  );
  border-radius: 15px;
  margin: 40px 20px;
  padding: 20px;
  box-shadow: 0 8px 32px rgba(13,202,240,0.1);
}
form {
  max-width: 600px;
  margin: 0 auto;
}

/* ===== 通用按鈕 ===== */
.btn-primary {
  background-color: #007bff;
  border-color: #007bff;
  border-radius: 30px;
  padding: 12px 25px;
  transition: all 0.3s ease;
}
.btn-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

/* ===== 卡片樣式 ===== */
.card {
  margin-bottom: 20px;
  border: 1px solid #007bff;
}
.card img {
  height: 200px;
  object-fit: cover;
}

/* ===== 響應式 LOGO 與公司名稱 ===== */
.navbar-brand {
  padding: 10px 0;
}
.company-title {
  font-size: 28px;
  color: black;
  transition: all 0.3s;
}

/* 中屏幕適配 (Bootstrap md 斷點) */
@media (max-width: 991.98px) {
  .navbar-brand img {
    max-width: 130px !important;
  }
  .company-title {
    font-size: 24px;
  }
}

/* 小屏幕適配 (Bootstrap sm 斷點) */
@media (max-width: 767.98px) {
  .navbar-brand {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .navbar-brand img {
    max-width: 110px !important;
  }
  .company-title {
    font-size: 20px;
    margin-left: 0 !important;
    margin-top: 8px;
  }
}

/* 超小屏幕適配 */
@media (max-width: 575.98px) {
  .navbar-brand img {
    max-width: 100px !important;
  }
  .company-title {
    font-size: 18px;
  }
}
/* ===== 關於我們區塊設計 ===== */
#about {
  margin: 50px 15px;
  padding: 50px 30px;
  background: radial-gradient(circle at center, rgba(240, 248, 255, 1) 0%, rgba(230, 245, 255, 0.9) 100%);
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 123, 255, 0.15);
}
#about h1 {
  color: #007bff;
  font-size: 2.8rem;
  font-weight: bold;
  text-transform: uppercase;
  text-shadow: 2px 2px 4px rgba(0, 123, 255, 0.1);
  margin-bottom: 20px;
}
#about hr {
  border: 0;
  height: 3px;
  background: linear-gradient(90deg, #007bff, #66d3fa);
  width: 50px;
  margin: 0 auto;
}
#about p {
  color: #4a5568;
  font-size: 1.1rem;
  line-height: 1.8;
  letter-spacing: 0.5px;
  text-align: justify;
  margin-bottom: 1.5rem;
}
#about .list-group-item {
  background: transparent;
  border: none;
  font-size: 1.05rem;
  color: #333;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease-in-out;
}
#about .list-group-item:hover {
  background: rgba(230, 245, 255, 0.5);
  border-radius: 10px;
  transform: translateX(5px);
}
#about .list-group-item::before {
  font-size: 1.2rem;
  color: #007bff;
  margin-right: 15px;
}

/* ===== 響應式調整 ===== */
@media (max-width: 991.98px) {
  #about h1 {
    font-size: 2.4rem;
  }
  #about p {
    font-size: 1rem;
  }
}
@media (max-width: 575.98px) {
  #about h1 {
    font-size: 2rem;
  }
  #about p {
    font-size: 0.95rem;
  }
}
