/* ==========================================================================
   Base & Resets
   ========================================================================== */
html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

/* ==========================================================================
   Main Banner Layout
   ========================================================================== */
.main-banner {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-content {
  position: relative;
  width: min(100vw, 177.78vh);
  height: min(56.25vw, 100vh);
  z-index: 2;
  pointer-events: none;
}

.item {
  position: absolute;
  display: block;
}

.advertising-text {
  position: absolute;
  right: 2%;
  bottom: 2%;
  font-size: clamp(10px, 1.5vw, 24px);
  color: #000;
  z-index: 10;
  font-weight: 500;
  letter-spacing: 1px;
}

/* ==========================================================================
   Banner Components Positioning
   ========================================================================== */

.banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.halo {
  width: 50%;
  height: auto;
  pointer-events: none;
  z-index: 2;
}

.halo-1 {
  bottom: -60%;
  left: -20%;
}

.halo-2 {
  bottom: -10%;
  right: -30%;
  width: 60%;
}

.text-wrapper {
  position: absolute;
  left: 5%;
  top: 40%;
  transform: translateY(-50%);
  width: 40%;
  z-index: 3;
  display: flex;
  align-items: center;
}

.banner-text {
  position: relative;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.logo-wrapper {
  position: absolute;
  right: 5%;
  bottom: 20%;
  height: 85%;
  width: 50%;
  z-index: 4;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.banner-logo {
  position: relative;
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom right;
}

/* ==========================================================================
   Animations (Controlled by GSAP in main.js)
   ========================================================================== */

.main-banner .banner-bg {
  opacity: 0;
}
.main-banner .halo-1 {
  opacity: 0;
}
.main-banner .halo-2 {
  opacity: 0;
}
.banner-content .text-wrapper {
  opacity: 0;
}
.banner-content .logo-wrapper {
  opacity: 0;
}

.about-section .about-halo-left {
  opacity: 0;
}
.about-section .about-halo-right {
  opacity: 0;
}
.about-section .about-text-wrapper {
  opacity: 0;
}
.about-section .about-title-wrapper {
  opacity: 0;
}

/* ==========================================================================
   Cultural Center Block
   ========================================================================== */

.cultural-center-section {
  position: relative;
  width: 100vw;
  height: auto;
  overflow: hidden;
  background-color: #fff;
  display: flex;
}

.cultural-center-bg {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   About Section Layout
   ========================================================================== */
.about-section {
  position: relative;
  width: 100vw;
  height: 55vh;
  overflow: hidden;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-section .banner-content {
  position: relative;
  width: min(100vw, 250vh);
  height: min(50vw, 50vh);
  z-index: 2;
  pointer-events: none;
}

.about-halo-left {
  bottom: -60%;
  left: -5%;
  width: 25%;
  transform: translateY(-50%) scale(0.95);
}

.about-halo-right {
  top: 50%;
  right: -10%;
  width: 25%;
  transform: translateY(-50%) scale(0.95);
}

.about-text-wrapper {
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  max-width: 900px;
  z-index: 3;
  display: flex;
  justify-content: center;
}

.about-text {
  position: relative;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.about-title-wrapper {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  max-width: 500px;
  z-index: 4;
  display: flex;
  justify-content: center;
}

.about-title {
  position: relative;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ==========================================================================
   Map Block (Scrollable on mobile)
   ========================================================================== */
.map-section {
  position: relative;
  width: 100vw;
  background-color: #fff;
}

.map-scroll-container {
  width: 100%;
  overflow: hidden;
}

.map-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ==========================================================================
   Feature Section (Left Image, Right Text)
   ========================================================================== */
.feature-section {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1800px;
  width: 90vw;
  margin: 3vw auto 0;
  padding: 0;
  gap: 60px;
  overflow: hidden;
}

.feature-reverse {
  flex-direction: row-reverse;
}

.feature-text-wrapper {
  flex: 1;
  opacity: 0;
}

.feature-image-wrapper {
  flex: 1;
}

.feature-image,
.feature-text {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* ==========================================================================
   Metro Feature Section (Absolute Positioning)
   ========================================================================== */
.metro-feature-section {
  position: relative;
  max-width: 1800px;
  width: 90vw;
  margin: 2vw auto 0;
}

.metro-bg-image {
  width: 100%;
  height: auto;
  display: block;
}

.metro-text-wrapper {
  position: absolute;
  width: 38%;
  opacity: 0;
  z-index: 2;
}

.metro-text-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.metro-text-top-left {
  top: 10%;
  left: 0%;
}

.metro-text-bottom-right {
  bottom: 10%;
  right: 0%;
}

/* ==========================================================================
   Construction Feature Section (Asymmetrical Layout)
   ========================================================================== */
.construction-section {
  align-items: stretch;
  flex-wrap: wrap;
  overflow: visible;
}

.construction-left {
  flex: 0 0 35%;
  margin-top: -10%;
  position: relative;
  z-index: 2;
}

.construction-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 30px;
}

.construction-right img {
  width: 100%;
  height: auto;
  display: block;
}

.content-anim-wrapper {
  opacity: 0;
}

.construction-bottom {
  flex: 0 0 100%;
}

.section-footer-text {
  margin-top: 20px;
}

.swipe-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  z-index: 9;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.swipe-overlay.hidden {
  opacity: 0;
}

.swipe-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 15px 25px;
  border-radius: 30px;
  pointer-events: none;
  opacity: 0.9;
  transition: opacity 0.5s ease;
}

.swipe-hint.hidden {
  opacity: 0;
}

.swipe-hint span {
  font-size: 14px;
  letter-spacing: 1px;
  margin-top: 8px;
}

.swipe-icon {
  width: 30px;
  height: 20px;
  position: relative;
  animation: swipeMotion 1.5s ease-in-out infinite alternate;
}

.swipe-icon::before,
.swipe-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-top: 2px solid white;
  border-right: 2px solid white;
}

.swipe-icon::before {
  left: 0;
  transform: translateY(-50%) rotate(-135deg);
}

.swipe-icon::after {
  right: 0;
  transform: translateY(-50%) rotate(45deg);
}

@keyframes swipeMotion {
  from {
    transform: translateX(-10px);
  }
  to {
    transform: translateX(10px);
  }
}

@keyframes fadeOutHint {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.d-md-none {
  display: none !important;
}

@media (min-width: 768px) {
  .d-md-none {
    display: none !important;
  }
}

/* ==========================================================================
   Responsive (Mobile)
   ========================================================================== */
@media (max-width: 768px) {
  .main-banner {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .about-section {
    height: auto;
    aspect-ratio: 21 / 9;
  }

  .feature-section {
    margin: 3vw auto;
    gap: 15px;
  }

  .d-md-none {
    display: flex !important;
  }

  .map-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .map-scroll-container::-webkit-scrollbar {
    display: none;
  }

  .map-scroll-container .map-image {
    width: 250%;
    max-width: none;
    height: auto;
  }

  .about-halo-left {
    bottom: auto;
    top: 80%;
    left: -20%;
    width: 40%;
  }

  .about-halo-right {
    top: 50%;
    transform: translateY(-50%);
    right: -25%;
    width: 40%;
  }

  .about-text-wrapper {
    top: 25%;
    width: 80%;
  }

  .about-title-wrapper {
    bottom: 20%;
    width: 40%;
  }
}

/* ==========================================================================
   Content Footer Section
   ========================================================================== */
.content-footer-section {
  position: relative;
  width: 100vw;
  background-color: #fff;
  padding: 150px 5%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.content-footer-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
  max-width: 1800px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.content-footer-halo {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
}

.content-footer-halo-left {
  left: -10%;
  top: 60%;
  transform: translateY(-50%);
  width: 25%;
  max-width: 800px;
}

.content-footer-halo-right {
  right: -15%;
  top: 40%;
  transform: translateY(-50%);
  width: 35%;
  max-width: 800px;
}

@media (max-width: 768px) {
  .content-footer-halo-left {
    left: -15%;
    width: 35%;
  }
  .content-footer-halo-right {
    right: -20%;
    width: 45%;
  }
}

.content-footer-anim {
  opacity: 0;
  display: flex;
  justify-content: center;
  width: 100%;
}

.hidden-honeypot {
  display: none !important;
}

.content-footer-text {
  width: 100%;
  max-width: 1400px;
}

.content-footer-logo {
  width: 50%;
  max-width: 850px;
}

.content-footer-subtitle {
  width: 60%;
  max-width: 850px;
}

@media (max-width: 768px) {
  .content-footer-section {
    padding: 30px 5%;
  }

  .content-footer-wrapper {
    gap: 30px;
  }

  .content-footer-text {
    width: 95%;
  }

  .content-footer-logo {
    width: 80%;
  }

  .content-footer-subtitle {
    width: 90%;
  }
}

/* ==========================================================================
   Contact Form Section
   ========================================================================== */
.contact-section {
  width: 100vw;
  background-color: #fff;
  padding: 30px 5%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-container {
  width: 100%;
  max-width: 1800px;
}

.contact-title {
  text-align: center;
  color: #c8005b;
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 40px;
  letter-spacing: 3px;
  font-family: serif;
}

.contact-form {
  display: flex;
  flex-direction: column;
}

.form-row {
  display: flex;
  gap: 20px;
}

.input-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 25px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 15px 20px;
  border: 1px solid #c8005b;
  border-radius: 4px;
  font-size: 16px;
  color: #c8005b;
  background-color: #fff;
  outline: none;
  font-family: inherit;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.error-message {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  font-size: 13px;
  color: #c8005b;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.validation-icon {
  position: absolute;
  right: 15px;
  top: 17px;
  width: 18px;
  height: 18px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s ease;
}

.form-select + .validation-icon {
  right: 35px;
}

.input-wrapper.is-invalid .form-input,
.input-wrapper.is-invalid .form-select,
.input-wrapper.is-invalid .form-textarea {
  border-color: #c8005b;
  box-shadow: 0 0 5px rgba(200, 0, 91, 0.4);
}
.input-wrapper.is-invalid .error-message,
.input-wrapper.is-invalid .validation-icon {
  opacity: 1;
  visibility: visible;
}
.input-wrapper.is-invalid .validation-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8005b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E");
}

.input-wrapper.is-valid .form-input,
.input-wrapper.is-valid .form-select,
.input-wrapper.is-valid .form-textarea {
  border-color: #28a745;
  box-shadow: 0 0 5px rgba(40, 167, 69, 0.4);
  color: #28a745;
}
.input-wrapper.is-valid .form-input::placeholder,
.input-wrapper.is-valid .form-textarea::placeholder {
  color: #28a745;
}
.input-wrapper.is-valid .validation-icon {
  opacity: 1;
  visibility: visible;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2328a745' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'%3E%3C/path%3E%3Cpolyline points='22 4 12 14.01 9 11.01'%3E%3C/polyline%3E%3C/svg%3E");
}

.input-wrapper.form-agreement.is-invalid .checkmark {
  border-color: #c8005b;
  box-shadow: 0 0 5px rgba(200, 0, 91, 0.4);
}
.input-wrapper.form-agreement.is-valid .checkmark {
  border-color: #28a745;
  box-shadow: 0 0 5px rgba(40, 167, 69, 0.4);
}
.input-wrapper.form-agreement.is-invalid .error-message {
  opacity: 1;
  visibility: visible;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: #a6004b;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #c8005b;
  opacity: 0.8;
}

.form-select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M2 4l4 4 4-4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 14px;
  cursor: pointer;
}

.form-select:invalid,
.form-select option[value=""] {
  color: rgba(200, 0, 91, 0.8);
}

.form-select option {
  color: #333;
}

.form-textarea {
  resize: vertical;
}

.form-agreement {
  display: flex;
  align-items: center;
  margin-top: 10px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  position: relative;
  font-size: 14px;
  color: #333;
}

.form-checkbox {
  opacity: 0;
  position: absolute;
}

.checkmark {
  width: 18px;
  height: 18px;
  border: 1px solid #999;
  border-radius: 4px;
  margin-right: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-top: 2px;
}

.form-checkbox:checked ~ .checkmark {
  background-color: #c8005b;
  border-color: #c8005b;
}

.form-checkbox:checked ~ .checkmark::after {
  content: "";
  display: block;
  width: 4px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

.agreement-text {
  font-size: 16px;
  line-height: 1.5;
}

.privacy-link {
  color: #e6b800;
  text-decoration: underline;
}
.privacy-link:hover {
  filter: brightness(0.9);
}

.form-submit-btn {
  width: 100%;
  background-color: #c8005b;
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 16px;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 20px;
  transition: background-color 0.3s ease;
  letter-spacing: 2px;
}

.form-submit-btn:hover {
  background-color: #a6004b;
}

@media (max-width: 768px) {
  .contact-section {
    padding: 60px 5%;
  }

  .contact-title {
    font-size: 32px;
  }

  .form-row {
    flex-direction: column;
    gap: 20px;
  }
}

/* ==========================================================================
   Site Real Footer
   ========================================================================== */
.site-footer {
  width: 100vw;
  background-color: #c8005b;
  color: #fff;
  display: flex;
  flex-direction: column;
}

.footer-info {
  padding: 40px 5%;
  font-size: 14px;
  line-height: 2;
  letter-spacing: 1px;
}

.footer-info p {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-size: 16px;
}

.footer-info span {
  margin-right: 15px;
  opacity: 0.8;
  font-size: 16px;
  font-weight: 300;
}

.footer-copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding: 20px 0;
  text-align: center;
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.9;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .footer-info {
    padding: 30px 5%;
    font-size: 13px;
  }
}

/* ==========================================================================
   Fixed Bottom Menu
   ========================================================================== */
body {
  padding-bottom: 60px;
}

.fixed-bottom-menu {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 60px;
  background-color: #cc0065e6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
}

.menu-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-decoration: none;
  height: 100%;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  transition: background-color 0.3s ease;
}

.menu-item:last-child {
  border-right: none;
}

.menu-item:hover {
  background-color: #a6004b;
}

.menu-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 4px;
}

.menu-item span {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
}

@media (max-width: 480px) {
  .fixed-bottom-menu {
    height: 55px;
  }
  .menu-icon {
    width: 18px;
    height: 18px;
    margin-bottom: 2px;
  }
  .menu-item span {
    font-size: 11px;
    letter-spacing: 0;
  }
  body {
    padding-bottom: 55px;
  }
}

/* ==========================================================================
   Privacy Modal Styles
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: #fff;
  width: 90%;
  max-width: 800px;
  padding: 40px;
  border-radius: 20px;
  position: relative;
  transform: scale(0.85) translateY(20px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  color: #999;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: #c8005b;
}

.modal-title {
  color: #c8005b;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}

.modal-body {
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 10px;
  font-size: 18px;
  line-height: 1.8;
  color: #555;
  text-align: justify;
}

.modal-body::-webkit-scrollbar {
  width: 6px;
}
.modal-body::-webkit-scrollbar-thumb {
  background-color: #ddd;
  border-radius: 10px;
}

@media (max-width: 768px) {
  .modal-content {
    padding: 30px 20px;
  }
  .modal-title {
    font-size: 20px;
  }
  .modal-body {
    font-size: 14px;
  }
}

/* ==========================================================================
   10. 表單?�送�??��?�?(Submission Modal)
   ========================================================================== */
.submission-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 30px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  border-radius: 8px;
  gap: 30px;
}

.submission-logo {
  width: 100%;
  max-width: 250px;
  height: auto;
  display: block;
}

.submission-title {
  font-size: 28px;
  color: #333;
  font-weight: bold;
  letter-spacing: 2px;
  margin: 0;
}

.submission-btn {
  background-color: #f7b500;
  color: #333;
  font-size: 18px;
  font-weight: bold;
  padding: 12px 40px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
  letter-spacing: 2px;
}

.submission-btn:hover {
  background-color: #e5a700;
  transform: translateY(-2px);
}

.submission-btn:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .submission-content {
    padding: 30px 20px;
    gap: 20px;
  }
  .submission-title {
    font-size: 24px;
  }
  .submission-btn {
    font-size: 16px;
    padding: 10px 30px;
  }
}

body.modal-open {
  overflow: hidden;
}
