/* =============================== */
/* =============================== */
/* ![Modified Styles for specific sections]! */
/* =============================== */
/* .section { */
body {
  /* background: #a1ff7e; */
  background: url("../general/fullscreen-bg-1.avif") center center / cover no-repeat fixed;
  /* max-width: 900px; */
}

.opacity-0 {
  opacity: 0;
}

.section {
  background: linear-gradient(180deg, #00575a 0%, #003430 70%, #003430 99.8%);
}

.section .layer img {
  pointer-events: none;
  user-select: none;
}

/* .slider-layer.s7-g1-1 {
  top: -11%;
  width: 100%;
  padding: 0 10%;
} */

#section-contact {
  /* background: linear-gradient(135deg, #a1ff7e 0%, #7ee83f 20%, #5fd38d 40%, #3ecbb1 60%, #4facfe 80%, #a1ff7e 100%); */
  background: linear-gradient(180deg, #00575a 0%, #003430 70%, #003430 99.8%);
  background-size: 400% 400%;
  animation: modern-gradient 15s ease infinite;
}

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

.cta-menu-box {
  border: none;
  box-shadow: none;
}

/* Remove white border on hover and keep position fixed */
.cta-menu-box:hover {
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15), 0 12px 35px rgba(0, 0, 0, 0.1) !important;
  /* Removed: inset 0 1px 0 rgba(255, 255, 255, 0.9) */
  transform: translateY(-50%) !important; /* Keep original position */
}

@media (max-width: 1100px) {
  .cta-menu-box:hover {
    transform: none !important; /* Keep original position for mobile */
  }
}

/* Remove all transforms on CTA element hover */
.cta-menu-box .div-cta-element:hover {
  transform: none !important;
}

/* Remove all transforms on icon hover */
.cta-menu-box .div-cta-element:hover .cta-icon {
  transform: none !important;
}

/* Remove translateY on icon box hover */
.cta-menu-box .div-cta-element:hover .div-cta-icon-box.cta-v2 {
  transform: none !important;
}

/* CTA element background color */
.cta-menu-box .div-cta-icon-box.cta-v2 {
  background: linear-gradient(135deg, #0f403f 0%, #182648 100%) !important;
  box-shadow: 0 8px 25px rgba(15, 64, 63, 0.25), 0 3px 10px rgba(15, 64, 63, 0.15) !important;
  /* Removed: inset 0 1px 0 rgba(255, 255, 255, 0.3) */
}

.cta-menu-box .div-cta-element:hover .div-cta-icon-box.cta-v2 {
  background: linear-gradient(135deg, #182648 0%, #0f403f 100%) !important;
  box-shadow: 0 12px 35px rgba(24, 38, 72, 0.35), 0 5px 15px rgba(24, 38, 72, 0.2) !important;
  /* Removed: inset 0 1px 0 rgba(255, 255, 255, 0.4) */
}

#section-contact {
  padding: 0;
}

#section8 .edm-container {
  background: #182648;
}

#contact-form{
  padding:0 5%;
}

.footer img {
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* ---> */
.custom-slider {
  border-radius: 0 !important;
}

/* Contact form container background */
.contact-form-container {
  background-image: url("../s-contact/s-contact-bg-1.svg");
  background-size: cover;
  background-position: 0% 0%;
  background-repeat: no-repeat;
}

/* Contact form container text color */
.contact-form-container,
.contact-form-container * {
  /* color: #0f403f !important; */
  color: #ffffff !important;
}

.contact-form-container .error-message {
  color: red !important;
}

/* Contact form input placeholder color */
.contact-form-container input::placeholder,
.contact-form-container textarea::placeholder {
  /* color: #0f403f !important; */
  color: #ffffff !important;
  opacity: 0.5 !important;
}

/* For better cross-browser support */
.contact-form-container input::-webkit-input-placeholder,
.contact-form-container textarea::-webkit-input-placeholder {
  /* color: #0f403f !important; */
  color: #ffffff !important;
  opacity: 0.5 !important;
}

.contact-form-container input::-moz-placeholder,
.contact-form-container textarea::-moz-placeholder {
  /* color: #0f403f3c !important; */
  color: #ffffff !important;
  opacity: 0.5 !important;
}

.contact-form-container input:-ms-input-placeholder,
.contact-form-container textarea:-ms-input-placeholder {
  /* color: #0f403fb8 !important; */
  color: #ffffff !important;
  opacity: 0.5 !important;
}

/* Section Card 清新大地風格增強 - 不干擾原有尺寸和位置設定 */
.section-card {
  /* 動畫性能優化 */
  transform: translateZ(0); /* 啟用硬體加速 */
  backface-visibility: hidden; /* 避免背面閃爍 */
  perspective: 1000px; /* 改善 3D 渲染 */

  /* 清新大地風格基礎 - 不覆蓋原有樣式 */
  transition: all 0.2s ease;
}

/* 清新綠色大地邊框效果 */
.section-card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #4ade80, #22c55e, #16a34a, #15803d, #166534, #14532d, #86efac, #bbf7d0);
  background-size: 300% 300%;
  border-radius: 10px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.2s ease;
  animation: nature-glow 2s linear infinite;
}

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

/* Hover 時顯示霓虹邊框 */
.section-card:hover::before {
  opacity: 0.8;
}

/* 清新大地發光效果 */
.section-card:hover {
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.6), 0 0 40px rgba(22, 163, 74, 0.4), 0 0 60px rgba(74, 222, 128, 0.3), inset 0 0 20px rgba(187, 247, 208, 0.2);
  border-color: #22c55e;
}

/* 自然清新圖片濾鏡效果 */
.section-card:hover .section-card-thumbnail img {
  filter: contrast(1.1) brightness(1.15) saturate(1.2) hue-rotate(-5deg) sepia(0.1);
  transition: filter 0.2s ease;
}

.section-card-thumbnail img {
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  /* 圖片動畫優化 */
  transform: translateZ(0); /* 啟用硬體加速 */
  backface-visibility: hidden;
  transition: filter 0.2s ease;
}

/* 自然能量流動畫效果 */
.section-card:hover .section-card-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #22c55e, transparent);
  animation: nature-stream 1.5s linear infinite;
  z-index: 3;
}

@keyframes nature-stream {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* 自然葉脈紋路效果 */
.section-card:hover .section-card-content::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(90deg, rgba(34, 197, 94, 0.08) 1px, transparent 1px), linear-gradient(180deg, rgba(74, 222, 128, 0.08) 1px, transparent 1px);
  background-size: 12px 12px;
  opacity: 0.4;
  z-index: 1;
  animation: leaf-pulse 3s ease-in-out infinite alternate;
}

@keyframes leaf-pulse {
  0% {
    opacity: 0.2;
    background-size: 12px 12px;
  }
  100% {
    opacity: 0.5;
    background-size: 14px 14px;
  }
}

/* Card highlight 狀態 - 當對應 section 在視野中時 */
.section-card.current {
  border-color: #16a34a !important;
  box-shadow: 0 0 25px rgba(22, 163, 74, 0.8), 0 0 45px rgba(16, 185, 129, 0.5), 0 0 65px rgba(74, 222, 128, 0.4), inset 0 0 25px rgba(187, 247, 208, 0.3) !important;
  transform: scale(1.05);
}

/* Current card 的霓虹邊框常駐顯示 */
.section-card.current::before {
  opacity: 1 !important;
  background: linear-gradient(45deg, #22c55e, #16a34a, #15803d, #166534, #4ade80, #86efac, #bbf7d0, #dcfce7);
  animation: nature-glow-highlight 1.5s linear infinite;
}

@keyframes nature-glow-highlight {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Current card 的圖片增強效果 */
.section-card.current .section-card-thumbnail img {
  filter: contrast(1.15) brightness(1.2) saturate(1.4) hue-rotate(-8deg) sepia(0.15) !important;
}

/* Card Parallax 縮放效果支援 */
.section-card-thumbnail {
  background: #004644;
  overflow: hidden; /* 確保圖片縮放時不會超出邊界 */
}

.section-card-thumbnail img {
  transition: transform 0.2s ease-out; /* 平滑的 parallax 縮放 */
  transform-origin: center center;
  transform: scale(1.15); /* 預設縮放比例 */
}

.section-card {
  background: #004644 !important; /* 確保背景透明 */
  border: 0px solid transparent;
  padding: 1px;
}

/* Section2 Skymap 樣式 */
#section2 .skymap {
  width: 100%;
  /* margin: 30px 0; */
  position: relative;
  z-index: 3;
}

#section2 .skymap-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  height: 90vh; /* 固定高度為 90vh */
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(135deg, rgba(0, 52, 48, 0.03) 0%, rgba(24, 38, 72, 0.03) 100%);
  border-radius: 0;
  padding: 10px 0; /* 適度內邊距 */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  contain: layout style;
  border: 2px solid rgba(0, 52, 48, 0.1);
  display: flex;
  align-items: center; /* 垂直居中圖片 */
}

#section2 .skymap-viewport:active {
  cursor: grabbing;
}

#section2 .skymap-viewport img {
  height: calc(90vh - 20px); /* 高度適應容器，扣除 padding */
  width: auto; /* 寬度自動適應高度比例 */
  min-width: auto; /* 讓寬度根據高度和圖片比例自動計算 */
  max-width: none;
  display: block;
  object-fit: contain; /* 保持完整圖片不裁切 */
  object-position: left center; /* 從左側開始顯示 */
}

/* 自定義滾動條 */
#section2 .skymap-viewport::-webkit-scrollbar {
  height: 10px;
}

#section2 .skymap-viewport::-webkit-scrollbar-track {
  background: rgba(0, 52, 48, 0.2);
  border-radius: 5px;
}

#section2 .skymap-viewport::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #0f403f 0%, #182648 100%);
  border-radius: 5px;
}

#section2 .skymap-viewport::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #182648 0%, #0f403f 100%);
}

#section9 .layer.bg-layer.s9-bg-layer {
  mix-blend-mode: screen;
}

