:root {
  --primary-color: #ff3366;
  --secondary-color: #6a0dad;
  --background-color: #0a0a0a;
  --text-color: #ffffff;
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: "Roboto", Arial, sans-serif;
}

.navbar {
  background-color: #5604d8;
  backdrop-filter: blur(10px);
  padding: 0.5rem 0;
  transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
  color: var(--primary-color);
}

.navbar-dark .navbar-nav .active > .nav-link {
  color: var(--primary-color);
  font-weight: bold;
}

.navbar-brand {
  padding: 0;
}

.navbar-brand img {
  height: 40px;
  width: auto;
  transition: transform 0.3s ease;
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .navbar-brand img {
    height: 30px;
  }
}

header {
  background-color: #000;
  padding: 2rem 0;
}

main {
  padding: 4rem 0;
}

.card {
  background-color: rgba(255, 255, 255, 0.05);
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(5px);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(255, 51, 102, 0.2);
}

.product-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.product-item:hover {
  transform: scale(1.05);
}

.product-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(106, 13, 173, 0.8);
  padding: 1rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.product-item:hover .product-info {
  transform: translateY(0);
}

footer {
  background-color: rgba(10, 10, 10, 0.9);
  padding: 2rem 0;
}

.jumbotron {
  background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)),
    url("../image/5.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  color: var(--text-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  padding: 12rem 0;
  min-height: 600px;
  overflow: hidden;
}

.jumbotron::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0.3;
  animation: gradientBG 15s ease infinite;
  background-size: 400% 400%;
}

.jumbotron .container {
  position: relative;
  z-index: 1;
}

.jumbotron h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.jumbotron p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

h2 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 50%;
  height: 2px;
  background-color: var(--secondary-color);
}

@media (max-width: 768px) {
  .jumbotron {
    background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)),
      url("../image/4.png");
    padding: 6rem 0;
    min-height: 400px;
    background-size: cover;
    background-position: center;
  }
  .jumbotron h1 {
    font-size: 2.5rem;
  }
  .jumbotron p {
    font-size: 1.2rem;
  }
}

/* Add this for a cool hover effect on navigation links */
.navbar-nav .nav-link::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  visibility: hidden;
  transform: scaleX(0);
  transition: all 0.3s ease-in-out;
}

.navbar-nav .nav-link:hover::before {
  visibility: visible;
  transform: scaleX(1);
}

/* Add a subtle animation to the jumbotron */
@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.products-showcase {
  background-color: #111;
  overflow: hidden;
}

.cards-scroll {
  position: relative;
  overflow: hidden;
}

.cards-scroll .row {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.product-card {
  background: #222;
  padding: 20px;
  margin: 10px;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-10px);
}

.product-image {
  position: relative;
  padding: 20px;
  border-radius: 8px;
}

.product-image .badge {
  position: absolute;
  top: 10px;
  right: 10px;
}

.product-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.product-card .price {
  font-size: 1.1rem;
  font-weight: bold;
  color: #00ff00;
}

.modal-content {
  background-color: #222;
  color: #fff;
}

.modal-header {
  border-bottom: 1px solid #444;
}

.modal-footer {
  border-top: 1px solid #444;
}

.modal-body h6.fw-bold {
  color: var(--primary-color);
  margin-bottom: 10px;
}

.btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

.modal-body ul li {
  color: #ddd;
  margin-bottom: 8px;
}

.modal-body p {
  color: #ddd;
}

.modal-body .price {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

.modal-product-image {
  background-color: #fff;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.modal-product-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.modal-body img {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.carousel-control-prev,
.carousel-control-next {
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  position: absolute;
  border: none;
  z-index: 10;
}

.carousel-control-prev {
  left: -20px;
}

.carousel-control-next {
  right: -20px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(21%) sepia(100%) saturate(7414%) hue-rotate(357deg) brightness(94%) contrast(117%);
}

.products-showcase .container {
  padding: 0 30px;  /* 為箭頭留出空間 */
}

.bg-success {
  --bs-bg-opacity: 1;
  background-color: rgb(var(--bs-success-rgb), var(--bs-bg-opacity)) !important;
}

.badge {
  --bs-badge-padding-x: 0.65em;
  --bs-badge-padding-y: 0.35em;
  --bs-badge-font-size: 0.75em;
  --bs-badge-font-weight: 700;
}

/* 產品卡片中的圖片樣式 */
.card-img-top {
  background-image: url("../image/backgr.png");
  background-size: cover;
  background-position: center;
  padding: 20px;
  border-radius: 8px 8px 0 0;
  object-fit: contain;
  height: 250px;
  transition: transform 0.3s ease;
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

.card-body {
  background-color: rgba(34, 34, 34, 0.9);
  border-radius: 0 0 8px 8px;
}

/* Modal 中的圖片樣式 */
.carousel-item img {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  width: 100%;
  height: 400px; /* 可以根據需要調整 */
  object-fit: contain;
}

/* 單張圖片的樣式 */
.modal-body .img-fluid {
  background-image: url("../image/backgr.png");
  padding: 20px;
  border-radius: 8px;
  width: 100%;
  height: 400px;
  object-fit: contain;
}

/* 調整輪播控制按鈕位置，避免被白色背景影響 */
.carousel-control-prev {
  left: -10px;
}

.carousel-control-next {
  right: -10px;
}

/* 價格樣式 */
.pricing .text-muted {
  color: #ffffff !important;  /* 將建議零售價改為白色 */
  opacity: 0.8;  /* 稍微降低不透明度以區分 */
}

.pricing .text-danger {
  color: var(--primary-color) !important;  /* 使用主題色作為優惠價格顏色 */
  font-size: 1.2em;  /* 稍微放大優惠價格 */
}

/* Add page-specific jumbotron backgrounds */
.products-page .jumbotron {
  background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)),
    url("../image/products_banner.png");
}

.news-page .jumbotron {
  background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)),
    url("../image/news_banner.png");
}

.contact-page .jumbotron {
  background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)),
    url("../image/contact_banner.png");
}

/* Mobile versions for page-specific backgrounds */
@media (max-width: 768px) {
  .products-page .jumbotron {
    background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)),
      url("../image/products_banner_mobile.png");
  }

  .news-page .jumbotron {
    background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)),
      url("../image/news_banner_mobile.png");
  }

  .contact-page .jumbotron {
    background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)),
      url("../image/contact_banner_mobile.png");
  }
}
  
  
  
  
  
  