.logo-text {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
}

.offcanvas.offcanvas-end {
    width: auto !important;
}

#header {
  background: transparent;
  transition: 0.3s ease-in-out;
}

.hero {
  overflow: hidden;
  position: relative;
  height: 85vh;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.5);
  z-index: 1;
}

.hero-txt {
  font-size: 3rem;
}

@media (max-width: 768px) {
  .hero-txt {
    font-size: 1.5rem;
  }
}

/* CSS Variables for Events Section */
:root {
  --primary-color: #8A7F78; /* 霧感可可棕 */
  --secondary-color: #9DA4AE; /* 冷霧灰 */
  --accent-color: #7B5D73; /* 玫瑰棕紫 */
  --bg-color: #F6F3EF; /* 奶茶米白 */
  --text-dark: #3D3D3D;
  --text-light: #8A7F78;
}

/* Events Section Styles */
#events {
  font-family: 'Noto Sans TC', sans-serif;
}

#events .section-title {
  font-family: 'Cormorant Garamond', serif;
  color: var(--primary-color);
  font-weight: 600;
}

/* Greeting Text */
.greeting-text {
  font-size: 1.2rem;
  color: var(--accent-color);
  font-weight: 500;
  background: rgba(255, 255, 255, 0.8);
  padding: 15px 25px;
  border-radius: 25px;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Price Cards */
.event-price-card {
  background: white;
  border-radius: 20px;
  padding: 30px 25px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  border: 1px solid #E8E5E1;
  transition: all 0.3s ease;
  height: auto;
  min-height: 200px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.event-price-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color) 0%, var(--secondary-color) 100%);
}

.event-price-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 45px rgba(0,0,0,0.12);
}

.price-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  display: block;
  line-height: 1;
}

.price-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-family: 'Noto Sans TC', sans-serif;
  line-height: 1.2;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-color);
  font-family: 'Cormorant Garamond', serif;
  margin-bottom: 8px;
  line-height: 1;
  display: inline-block;
}

.price-amount::before {
  content: '$';
  font-size: 1.2rem;
  position: relative;
  margin-right: 2px;
  top: -8px;
}

.price-note {
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
}

.service-includes {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-includes li {
  padding: 8px 0;
  color: var(--text-dark);
  font-size: 0.95rem;
  border-bottom: 1px solid #F0F0F0;
}

.service-includes li:last-child {
  border-bottom: none;
}

/* Hair Care Section */
.hair-care-section {
  margin-top: 30px;
}

.care-highlight-card {
  background: white;
  border-radius: 20px;
  padding: 35px 30px;
  box-shadow: 0 10px 40px rgba(123, 93, 115, 0.08);
  border: 2px solid var(--accent-color);
  position: relative;
  max-width: 100%;
  overflow: hidden;
}

.care-highlight-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
  border-radius: 22px;
  z-index: -1;
}

.care-header {
  margin-bottom: 25px;
}

.care-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
  display: block;
  line-height: 1;
}

.care-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent-color);
  font-family: 'Noto Sans TC', sans-serif;
  line-height: 1.3;
  margin: 0;
}

.care-content {
  text-align: center;
}

.care-description {
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.5;
  margin-bottom: 20px;
  text-align: center;
}

.care-special-offer {
  background: rgba(123, 93, 115, 0.05);
  border-radius: 15px;
  padding: 20px;
  margin: 15px auto;
  border-left: 4px solid var(--accent-color);
  text-align: left;
  display: inline-block;
  max-width: 100%;
  width: auto;
}

.offer-highlight {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.offer-arrow {
  color: var(--accent-color);
  font-size: 1.1rem;
  margin-right: 6px;
  flex-shrink: 0;
}

.offer-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-color);
  line-height: 1.3;
}

.price-comparison {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  justify-content: flex-start;
}

.original-price-text {
  color: #999;
  text-decoration: line-through;
  font-size: 0.9rem;
  white-space: nowrap;
}

.special-offer-text {
  color: var(--accent-color);
  font-weight: 700;
  font-size: 1.1rem;
  white-space: nowrap;
}

.length-note {
  color: var(--text-light);
  font-size: 0.85rem;
  white-space: nowrap;
}

.promise-text {
  font-size: 1rem;
  color: var(--accent-color);
  font-weight: 500;
  margin: 15px 0 0 0;
  padding: 12px 20px;
  background: rgba(246, 243, 239, 0.8);
  border-radius: 20px;
  display: inline-block;
  line-height: 1.3;
}

.care-option {
  background: #FAFAFA;
  border-radius: 15px;
  padding: 25px;
  height: 100%;
  border-left: 4px solid var(--secondary-color);
}

.care-option h6 {
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 15px;
}

.care-pricing {
  margin: 15px 0;
}

.original-price {
  text-decoration: line-through;
  color: #999;
  font-size: 0.9rem;
  margin-right: 10px;
}

.special-price {
  color: var(--accent-color);
  font-weight: 700;
  font-size: 1.2rem;
}

.normal-pricing {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.1rem;
}

.care-note {
  color: var(--text-dark);
  font-size: 0.9rem;
  margin-bottom: 0;
  line-height: 1.5;
}

.highlight-text {
  background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
  font-size: 1.1rem;
}

/* CTA Buttons */
.cta-button-group {
  margin-top: 30px;
}

.btn-primary-custom {
  background: linear-gradient(135deg, var(--accent-color) 0%, #8A6B7C 100%);
  border: none;
  color: white;
  padding: 15px 35px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 6px 25px rgba(123, 93, 115, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary-custom::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s;
}

.btn-primary-custom:hover::before {
  left: 100%;
}

.btn-primary-custom:hover {
  background: linear-gradient(135deg, #6A4C64 0%, #7A5C6C 100%);
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(123, 93, 115, 0.4);
  color: white;
}

.btn-outline-primary {
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  background: transparent;
  padding: 15px 35px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background: var(--accent-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(123, 93, 115, 0.3);
}

/* CTA Note */
.cta-note {
  color: var(--text-light);
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 992px) {
  .event-price-card {
    margin-bottom: 25px;
  }
  
  .care-highlight-card {
    padding: 30px 25px;
  }
}

@media (max-width: 768px) {
  .greeting-text {
    font-size: 1rem;
    padding: 12px 18px;
    margin: 0 15px;
  }
  
  .event-price-card {
    padding: 25px 20px;
    margin-bottom: 20px;
    min-height: 180px;
  }
  
  .price-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
  }
  
  .price-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }
  
  .price-amount {
    font-size: 2.2rem;
  }
  
  .price-amount::before {
    font-size: 1.1rem;
    top: -6px;
  }
  
  .price-note {
    font-size: 0.85rem;
  }
  
  .care-highlight-card {
    padding: 25px 20px;
    margin: 0 15px;
  }
  
  .care-icon {
    font-size: 2rem;
    margin-bottom: 10px;
  }
  
  .care-title {
    font-size: 1.1rem;
    line-height: 1.4;
  }
  
  .care-description {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 18px;
  }
  
  .care-special-offer {
    padding: 18px 15px;
    margin: 12px auto;
  }
  
  .offer-highlight {
    margin-bottom: 10px;
  }
  
  .offer-arrow {
    font-size: 1rem;
    margin-right: 5px;
  }
  
  .offer-text {
    font-size: 0.95rem;
    line-height: 1.4;
  }
  
  .price-comparison {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  .original-price-text {
    font-size: 0.85rem;
  }
  
  .special-offer-text {
    font-size: 1rem;
  }
  
  .length-note {
    font-size: 0.8rem;
  }
  
  .promise-text {
    font-size: 0.95rem;
    padding: 10px 16px;
    margin-top: 12px;
  }
  
  .btn-primary-custom, 
  .btn-outline-primary {
    padding: 14px 25px;
    font-size: 0.95rem;
    width: 100%;
    margin-bottom: 12px;
  }
  
  .cta-button-group {
    margin-top: 20px;
  }
}

@media (max-width: 480px) {
  .greeting-text {
    font-size: 0.9rem;
    padding: 10px 15px;
    line-height: 1.4;
  }
  
  .event-price-card {
    padding: 20px 15px;
    min-height: 160px;
  }
  
  .price-amount {
    font-size: 2rem;
  }
  
  .price-amount::before {
    font-size: 1rem;
    top: -5px;
  }
  
  .care-highlight-card {
    padding: 20px 15px;
  }
  
  .care-title {
    font-size: 1rem;
    line-height: 1.5;
  }
  
  .care-special-offer {
    padding: 15px 12px;
    margin: 10px auto;
  }
  
  .offer-text {
    font-size: 0.9rem;
  }
  
  .promise-text {
    font-size: 0.9rem;
    padding: 8px 14px;
  }
}

/* Trending Colors Section Styles */
#trending-colors {
  background: linear-gradient(135deg, #FAFAFA 0%, #F6F3EF 100%);
  font-family: 'Noto Sans TC', sans-serif;
}

#trending-colors .section-title {
  font-family: 'Cormorant Garamond', serif;
  color: var(--primary-color);
  font-weight: 600;
  line-height: 1.3;
}

#trending-colors .lead {
  color: var(--text-dark);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto;
}

/* Hair Color Cards - Minimalist Design */
.hair-color-card {
  background: linear-gradient(145deg, #ffffff 0%, #faf9f7 100%);
  border-radius: 20px;
  padding: 0;
  box-shadow: 0 4px 20px rgba(138, 127, 120, 0.1);
  border: 1px solid rgba(138, 127, 120, 0.06);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  overflow: hidden;
  position: relative;
  display: block;
}

.hair-color-card:hover {
  transform: translateY(-4px) rotate(0.5deg);
  box-shadow: 0 12px 35px rgba(123, 93, 115, 0.18);
  border-color: rgba(123, 93, 115, 0.12);
}

.color-number {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 24px;
  height: 24px;
  background: var(--accent-color);
  color: white;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  z-index: 2;
  font-family: 'Cormorant Garamond', serif;
  opacity: 0.9;
}

.color-sample {
  height: 8px;
  width: 100%;
  position: relative;
  margin: 20px 0 0 0;
  border-radius: 4px;
  margin-left: 20px;
  margin-right: 20px;
  width: calc(100% - 40px);
}

.color-content {
  padding: 20px 25px 25px;
  position: relative;
}

.color-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.2;
}

.color-description {
  color: #666;
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 18px;
  font-weight: 400;
}

.color-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.suitable-tag {
  background: rgba(123, 93, 115, 0.06);
  color: var(--primary-color);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-block;
  width: fit-content;
}

.whitening-rating {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rating-label {
  color: var(--primary-color);
  font-size: 0.8rem;
  font-weight: 500;
}

.stars {
  color: #F4A261;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

/* Why Misty Colors Section */
.why-misty-colors {
  background: linear-gradient(135deg, var(--accent-color) 0%, #8A6B7C 100%);
  color: white;
  border-radius: 24px;
  padding: 35px;
  height: 100%;
  box-shadow: 0 15px 50px rgba(123, 93, 115, 0.25);
  position: relative;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.1);
}

.why-misty-colors::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
}

.why-misty-colors::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
}

.why-icon {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.2));
}

.why-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: white;
  margin-bottom: 25px;
  text-align: center;
  position: relative;
  z-index: 2;
  font-family: 'Cormorant Garamond', serif;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  letter-spacing: 0.5px;
}

.why-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 1px;
}

.why-list {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 2;
}

.why-list li {
  padding: 12px 0;
  display: flex;
  align-items: flex-start;
  font-size: 0.98rem;
  line-height: 1.5;
  opacity: 0.95;
  transition: all 0.3s ease;
}

.why-list li:hover {
  opacity: 1;
  transform: translateX(3px);
}

.check-icon {
  color: #90EE90;
  font-size: 1.1rem;
  margin-right: 12px;
  flex-shrink: 0;
  margin-top: 3px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

/* CTA Highlight */
.cta-highlight {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 248, 246, 0.9) 100%);
  border-radius: 28px;
  padding: 45px;
  border: 3px solid transparent;
  background-clip: padding-box;
  position: relative;
  max-width: 850px;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(123, 93, 115, 0.15);
  overflow: hidden;
}

.cta-highlight::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
  border-radius: 31px;
  z-index: -1;
  animation: borderGlow 3s ease-in-out infinite alternate;
}

.cta-highlight::after {
  content: '';
  position: absolute;
  top: 20px;
  right: 20px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(123, 93, 115, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

@keyframes borderGlow {
  0% { opacity: 0.8; }
  100% { opacity: 1; }
}

.cta-text {
  font-size: 1.15rem;
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: 0;
  font-weight: 500;
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.cta-buttons {
  margin-top: 30px;
  position: relative;
  z-index: 2;
}

/* Responsive Design for Trending Colors */
@media (max-width: 992px) {
  .hair-color-card {
    margin-bottom: 25px;
  }
  
  .color-content {
    padding: 20px;
  }
  
  .why-misty-colors {
    padding: 25px;
  }
  
  .cta-highlight {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  #trending-colors .section-title {
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 20px;
  }
  
  #trending-colors .lead {
    font-size: 1rem;
    padding: 0 15px;
  }
  
  .hair-color-card {
    margin-bottom: 25px;
    position: relative;
    overflow: visible;
    padding: 0;
    border-radius: 16px;
  }
  
  .color-number {
    width: 34px;
    height: 34px;
    top: -12px;
    left: 16px;
    right: auto;
    font-size: 1.1rem;
    position: absolute;
    z-index: 15;
    background: var(--accent-color);
    box-shadow: 0 3px 12px rgba(0,0,0,0.2);
    border-radius: 8px;
    border: 2px solid white;
  }
  
  .color-sample {
    width: 100% !important;
    height: 80px;
    border-radius: 16px 16px 0 0;
    margin: 18px 0 0 0 !important;
    position: relative;
  }
  
  .color-sample::after {
    width: 100%;
    height: 15px;
    bottom: 0;
    background: linear-gradient(transparent, rgba(255,255,255,0.3));
  }
  
  .color-content {
    padding: 22px 20px;
    margin-top: 0;
    border-radius: 0 0 16px 16px;
  }
  
  .color-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }
  
  .color-description {
    font-size: 0.88rem;
    margin-bottom: 12px;
    -webkit-line-clamp: 2;
  }
  
  .suitable-tag {
    font-size: 0.75rem;
    padding: 5px 10px;
  }
  
  .rating-label {
    font-size: 0.8rem;
  }
  
  .stars {
    font-size: 0.95rem;
  }
  
  .why-misty-colors {
    padding: 28px;
    margin-top: 20px;
  }
  
  .why-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
  }
  
  .why-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
  }
  
  .why-list li {
    font-size: 0.92rem;
    padding: 10px 0;
  }
  
  .cta-highlight {
    padding: 35px 25px;
    margin: 0 15px;
    border-radius: 24px;
  }
  
  .cta-text {
    font-size: 1.05rem;
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  #trending-colors .section-title {
    font-size: 1.5rem;
    padding: 0 10px;
  }
  
  #trending-colors .lead {
    font-size: 0.95rem;
  }
  
  .color-number {
    width: 32px;
    height: 32px;
    font-size: 1rem;
    top: -10px;
    left: 14px;
    right: auto;
    position: absolute;
    z-index: 15;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border-radius: 8px;
    border: 2px solid white;
  }
  
  .color-sample {
    width: 100% !important;
    height: 20px;
    margin: 0px 0 0 0 !important;
    border-radius: 14px 14px 0 0;
    position: relative;
  }
  
  .color-content {
    padding: 20px 18px;
    border-radius: 0 0 14px 14px;
  }
  
  .suitable-tag {
    font-size: 0.75rem;
    line-height: 1.3;
  }
  
  .whitening-rating {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  .why-misty-colors {
    padding: 18px;
  }
  
  .why-title {
    font-size: 1rem;
  }
  
  .why-list li {
    font-size: 0.85rem;
  }
  
  .cta-highlight {
    padding: 20px 15px;
  }
  
  .cta-text {
    font-size: 0.95rem;
  }
}

/* Custom Color Section - Clean Block Style Layout */
#custom-color {
  background: linear-gradient(145deg, #ffffff 0%, #faf8f5 100%);
  position: relative;
}

#custom-color::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="60" height="60" opacity="0.03"><circle cx="50" cy="50" r="2" fill="%238A7F78"/></svg>');
  pointer-events: none;
}

.custom-color-wrapper {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.custom-color-title {
  font-family: 'Playfair Display', 'Noto Sans TC', serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.custom-color-process {
  display: grid;
  gap: 1.5rem;
  margin: 3rem 0;
}

.process-step {
  background: linear-gradient(145deg, #ffffff 0%, #fdfcfa 100%);
  border-radius: 16px;
  padding: 0;
  box-shadow: 
    0 2px 12px rgba(138, 127, 120, 0.08),
    0 1px 3px rgba(138, 127, 120, 0.12);
  border: 1px solid rgba(138, 127, 120, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.process-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-color) 0%, var(--secondary-color) 100%);
  transition: width 0.3s ease;
}

.process-step:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 25px rgba(138, 127, 120, 0.12),
    0 3px 8px rgba(138, 127, 120, 0.15);
}

.process-step:hover::before {
  width: 6px;
}

.step-content {
  padding: 1.8rem 2rem 1.8rem 2.5rem;
}

.step-content h4 {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.final-step {
  background: linear-gradient(145deg, #faf9f7 0%, #f6f3ef 100%);
  border: 1px solid rgba(123, 93, 115, 0.1);
}

.final-step::before {
  background: linear-gradient(180deg, var(--accent-color) 0%, #9b7a8f 100%);
}

.final-step .step-content h4 {
  color: var(--accent-color);
  font-weight: 600;
}

.custom-color-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-color) 0%, #8d6682 100%);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 4px 15px rgba(123, 93, 115, 0.3),
    0 1px 3px rgba(123, 93, 115, 0.2);
  position: relative;
  overflow: hidden;
}

.custom-color-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.custom-color-cta:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 6px 20px rgba(123, 93, 115, 0.4),
    0 2px 8px rgba(123, 93, 115, 0.25);
  color: white;
  text-decoration: none;
}

.custom-color-cta:hover::before {
  left: 100%;
}

/* Responsive Design for Custom Color Section */
@media (max-width: 768px) {
  .custom-color-title {
    font-size: 1.8rem;
    padding: 0 1rem;
  }
  
  .custom-color-process {
    margin: 2rem 0;
    gap: 1.2rem;
  }
  
  .step-content {
    padding: 1.5rem 1.5rem 1.5rem 2rem;
  }
  
  .step-content h4 {
    font-size: 1rem;
  }
  
  .custom-color-cta {
    padding: 0.9rem 2rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .custom-color-title {
    font-size: 1.5rem;
  }
  
  .step-content {
    padding: 1.2rem 1.2rem 1.2rem 1.8rem;
  }
  
  .process-step::before {
    width: 3px;
  }
  
  .process-step:hover::before {
    width: 4px;
  }
}

/* Portfolio Videos Hover Effects */
.room-item {
  position: relative;
  overflow: hidden;
}

.room-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(138, 127, 120, 0.3);
  backdrop-filter: blur(1px);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
  pointer-events: none;
}

.room-item:hover::before {
  opacity: 1;
}

.room-item .product-description {
  z-index: 3;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.room-item:hover .product-description {
  transform: translateY(-5px);
}

.room-item .post-video {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.room-item:hover .post-video {
  transform: scale(1.05);
}

/* Auto-play video controls */
.post-video {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.swiper-slide .post-video {
  transition: all 0.3s ease;
}

.swiper-slide:hover .post-video {
  filter: brightness(0.8);
}

/* Video Link and Play Overlay */
.video-link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.video-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 4;
  pointer-events: none;
}

.video-link:hover .video-play-overlay {
  opacity: 1;
}

.play-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
}

.play-button:hover {
  transform: scale(1.1);
}

.play-button svg {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

/* Prevent video from being clickable when wrapped in anchor */
.video-link video {
  pointer-events: none;
}

/* Ensure Fancybox videos maintain aspect ratio */
.fancybox-content video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Portfolio Section Styles - Magazine Layout */
#portfolio {
  background: #FEFEFE;
  position: relative;
  overflow: hidden;
}

#portfolio::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(90deg, transparent 0%, rgba(138, 127, 120, 0.02) 50%, transparent 100%),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" width="200" height="200" opacity="0.015"><line x1="0" y1="100" x2="200" y2="100" stroke="%238A7F78" stroke-width="0.5"/></svg>');
  pointer-events: none;
}

/* Magazine-style title */
.portfolio-magazine-header {
  position: relative;
  margin-bottom: 4rem;
}

.portfolio-magazine-header h2 {
  font-family: 'Playfair Display', 'Noto Sans TC', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--text-dark);
  margin: 0 0 1rem 0;
  line-height: 1.1;
}

.portfolio-magazine-header .lead {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--text-light);
  margin: 0;
  font-weight: 400;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.portfolio-filter {
  position: relative;
  z-index: 2;
  margin-bottom: 3rem;
  padding: 0 1rem;
}

.filter-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-light);
  padding: 0.5rem 1rem;
  margin: 0 0.8rem 0.8rem;
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 0;
  box-shadow: none;
}

.filter-btn:hover,
.filter-btn.active {
  background: transparent;
  color: var(--text-dark);
  border-bottom-color: var(--accent-color);
  transform: none;
  box-shadow: none;
}

.portfolio-grid {
  position: relative;
  z-index: 2;
  /* Bootstrap row + Isotope masonry */
}

/* Magazine-style masonry grid - 瀑布流雜誌排版 */
.portfolio-item {
  margin-bottom: 1.5rem;
  position: relative;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: none;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.portfolio-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(138, 127, 120, 0) 0%, rgba(123, 93, 115, 0.03) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.portfolio-card:hover::after {
  opacity: 1;
}

.portfolio-card a {
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none;
  height: 100%;
}

.portfolio-image-wrapper {
  position: relative;
  overflow: hidden;
  background: #f5f5f5;
}

.portfolio-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.portfolio-card:hover .portfolio-image {
  transform: scale(1.03);
}

/* Magazine-style number badge */
.portfolio-number {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1;
  z-index: 3;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

/* Text overlay - always visible for magazine style */
.portfolio-overlay {
  position: relative;
  bottom: auto;
  left: auto;
  right: auto;
  background: #fff;
  color: var(--text-dark);
  padding: 1.5rem;
  transform: none;
  transition: background 0.3s ease;
  border-top: 1px solid rgba(138, 127, 120, 0.08);
}

.portfolio-card:hover .portfolio-overlay {
  background: #FAFAFA;
  transform: none;
}

.portfolio-info h5 {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: var(--text-dark);
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.portfolio-info p {
  font-size: 0.75rem;
  margin: 0;
  opacity: 0.7;
  color: var(--text-light);
  line-height: 1.6;
  letter-spacing: 0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Category tag */
.portfolio-category {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

/* Isotope Transitions */
.portfolio-item.isotope-hidden {
  opacity: 0;
  transform: scale(0.9);
}

/* Responsive Design - Magazine Masonry Layout */
@media (max-width: 1200px) {
  .portfolio-magazine-header {
    margin-bottom: 3rem;
  }
}

@media (max-width: 768px) {
  .portfolio-magazine-header {
    margin-bottom: 2.5rem;
  }

  .portfolio-magazine-header h2 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .portfolio-magazine-header .lead {
    font-size: 0.9rem;
  }

  .filter-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    margin: 0 0.5rem 0.6rem;
  }

  .portfolio-filter {
    padding: 0;
    margin-bottom: 2rem;
  }

  .portfolio-overlay {
    padding: 1rem;
  }

  .portfolio-number {
    font-size: 2.2rem;
    top: 1rem;
    left: 1rem;
  }

  .portfolio-info h5 {
    font-size: 0.85rem;
  }

  .portfolio-info p {
    font-size: 0.7rem;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
}

@media (max-width: 480px) {
  .portfolio-item {
    margin-bottom: 1rem;
  }

  .portfolio-card {
    border-radius: 0;
  }

  .portfolio-overlay {
    padding: 0.8rem;
  }

  .portfolio-number {
    font-size: 1.8rem;
    top: 0.8rem;
    left: 0.8rem;
  }

  .filter-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.7rem;
    margin: 0 0.3rem 0.5rem;
    letter-spacing: 0.08em;
  }

  .portfolio-magazine-header {
    padding: 0 0.5rem;
    margin-bottom: 2rem;
  }

  .portfolio-magazine-header h2 {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }

  .portfolio-magazine-header .lead {
    font-size: 0.85rem;
  }

  .portfolio-info h5 {
    font-size: 0.8rem;
  }

  .portfolio-info p {
    font-size: 0.65rem;
  }
}

/* Contact Section Styles */
#contact {
  background: linear-gradient(135deg, var(--bg-color) 0%, #f8f5f1 100%);
  position: relative;
}

#contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="120" height="120" opacity="0.03"><path d="M50 25L60 40H40L50 25ZM25 50L40 60V40L25 50ZM50 75L40 60H60L50 75ZM75 50L60 40V60L75 50Z" fill="%238A7F78"/></svg>');
  pointer-events: none;
}

.contact-content {
  position: relative;
  z-index: 2;
}

.contact-title {
  font-family: 'Playfair Display', 'Noto Sans TC', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.contact-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 0;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: linear-gradient(145deg, #ffffff 0%, #fdfcfa 100%);
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(138, 127, 120, 0.08);
  border: 1px solid rgba(138, 127, 120, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(138, 127, 120, 0.12);
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent-color) 0%, #9b7a8f 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.5rem;
  flex-shrink: 0;
  color: white;
}

.contact-details h5 {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 0.5rem 0;
}

.contact-link {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.contact-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0.5rem 0 0 0;
  line-height: 1.4;
}

.social-links {
  display: flex;
  gap: 0.8rem;
  margin: 0.8rem 0;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: linear-gradient(145deg, #ffffff 0%, #f8f6f3 100%);
  border: 1px solid rgba(138, 127, 120, 0.1);
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(138, 127, 120, 0.05);
}

.social-link.facebook:hover {
  background: linear-gradient(135deg, #1877F2 0%, #166FE5 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.social-link.instagram:hover {
  background: linear-gradient(135deg, #E4405F 0%, #833AB4 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(228, 64, 95, 0.3);
}

.social-link.line:hover {
  background: linear-gradient(135deg, #00C300 0%, #00B900 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 195, 0, 0.3);
}

.contact-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-contact-primary,
.btn-contact-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-contact-primary {
  background: linear-gradient(135deg, var(--accent-color) 0%, #9b7a8f 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(123, 93, 115, 0.3);
}

.btn-contact-primary:hover {
  background: linear-gradient(135deg, #9b7a8f 0%, var(--accent-color) 100%);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(123, 93, 115, 0.4);
  text-decoration: none;
}

.btn-contact-secondary {
  background: linear-gradient(135deg, #00C300 0%, #00B900 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 195, 0, 0.3);
}

.btn-contact-secondary:hover {
  background: linear-gradient(135deg, #00B900 0%, #00A800 100%);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 195, 0, 0.4);
  text-decoration: none;
}

/* Contact Visual Section */
.contact-visual {
  position: relative;
  padding: 2rem 0;
}

.contact-image-wrapper {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-decoration {
  position: absolute;
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, rgba(138, 127, 120, 0.1) 0%, rgba(123, 93, 115, 0.1) 100%);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(40px);
}

.contact-info-card {
  position: relative;
  z-index: 2;
  background: linear-gradient(145deg, #ffffff 0%, #fdfcfa 100%);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 8px 30px rgba(138, 127, 120, 0.15);
  border: 1px solid rgba(138, 127, 120, 0.08);
  max-width: 350px;
  width: 100%;
}

.info-card-content h4 {
  font-family: 'Playfair Display', 'Noto Sans TC', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0 0 0.5rem 0;
  text-align: center;
}

.studio-tagline {
  font-size: 1rem;
  color: var(--accent-color);
  text-align: center;
  margin: 0 0 2rem 0;
  font-weight: 500;
}

.business-hours h6 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 0.8rem 0;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 0.5rem;
}

.business-hours p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin: 0.3rem 0;
  line-height: 1.4;
}

.business-hours .note {
  font-size: 0.85rem;
  color: var(--accent-color);
  font-style: italic;
  margin-top: 0.8rem;
}

.contact-highlight {
  background: linear-gradient(135deg, rgba(123, 93, 115, 0.1) 0%, rgba(138, 127, 120, 0.1) 100%);
  padding: 1rem;
  border-radius: 12px;
  margin-top: 1.5rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.highlight-icon {
  font-size: 1.2rem;
}

.contact-highlight span:last-child {
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
  .contact-title {
    font-size: 2rem;
  }
  
  .contact-item {
    flex-direction: column;
    text-align: center;
    padding: 1.2rem;
  }
  
  .contact-icon {
    margin: 0 0 1rem 0;
    align-self: center;
  }
  
  .contact-cta {
    flex-direction: column;
  }
  
  .btn-contact-primary,
  .btn-contact-secondary {
    padding: 0.9rem 1.5rem;
    justify-content: center;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .contact-info-card {
    padding: 1.8rem;
    margin: 1rem;
  }
  
  .info-card-content h4 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .contact-title {
    font-size: 1.8rem;
  }
  
  .contact-item {
    margin-bottom: 1.5rem;
  }
  
  .social-link {
    font-size: 0.8rem;
    padding: 0.5rem 0.8rem;
  }
  
  .btn-contact-primary,
  .btn-contact-secondary {
    font-size: 0.9rem;
    padding: 0.8rem 1.3rem;
  }
}

/* Footer Styling */
#footer {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-top: 1px solid rgba(138, 127, 120, 0.1);
  /* margin-top: 3rem; */
}

#footer .footer-content {
  max-width: 600px;
  margin: 0 auto;
}

#footer .footer-brand h5 {
  color: var(--bs-primary);
  font-family: 'Playfair Display', serif;
  letter-spacing: 1px;
}

#footer .footer-divider hr {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--bs-primary), transparent);
  border: none;
}

#footer a {
  transition: all 0.3s ease;
  font-weight: 500;
}

#footer a:hover {
  color: var(--bs-primary) !important;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  #footer .footer-brand h5 {
    font-size: 1.1rem;
  }
  
  #footer .footer-brand p {
    font-size: 0.85rem;
  }
}

/* Performance Optimizations */
.lazy {
  opacity: 0;
  transition: opacity 0.3s;
}

.lazy.loaded {
  opacity: 1;
}

/* Preloader improvements - Override default styles */
.preloader {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100vh !important;
  background: linear-gradient(135deg, #8A7F78 0%, #D4C5B5 100%) !important;
  z-index: 9999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

/* Preloader site class for body */
.preloader-site {
  overflow: hidden;
}

.preloader-site .preloader {
  display: flex !important;
}

.loader {
  width: 120px !important;
  height: 120px !important;
  margin: 0 !important;
  position: relative !important;
  left: 0 !important;
  top: 0 !important;
  transform: none !important;
  border: 4px solid rgba(255, 255, 255, 0.3) !important;
  border-top-color: #fff !important;
  border-radius: 50% !important;
  animation: preloader-spin 1.5s linear infinite !important;
  display: block !important;
}

.loader:before {
  content: "" !important;
  position: absolute !important;
  top: 8px !important;
  left: 8px !important;
  right: 8px !important;
  bottom: 8px !important;
  border-radius: 50% !important;
  border: 4px solid rgba(255, 255, 255, 0.2) !important;
  border-top-color: rgba(255, 255, 255, 0.8) !important;
  animation: preloader-spin 2s linear infinite reverse !important;
}

.loader:after {
  content: "" !important;
  position: absolute !important;
  top: 16px !important;
  left: 16px !important;
  right: 16px !important;
  bottom: 16px !important;
  border-radius: 50% !important;
  border: 4px solid rgba(255, 255, 255, 0.1) !important;
  border-top-color: rgba(255, 255, 255, 0.6) !important;
  animation: preloader-spin 1s linear infinite !important;
}

@keyframes preloader-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Mobile responsive preloader fixes */
@media (max-width: 768px) {
  .preloader {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: linear-gradient(135deg, #8A7F78 0%, #D4C5B5 100%) !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .loader {
    width: 100px !important;
    height: 100px !important;
    margin: 0 !important;
    position: relative !important;
    left: 0 !important;
    top: 0 !important;
    transform: none !important;
    border: 3px solid rgba(255, 255, 255, 0.3) !important;
    border-top-color: #fff !important;
    border-radius: 50% !important;
    animation: preloader-spin 1.5s linear infinite !important;
    display: block !important;
  }

  .loader:before {
    top: 6px !important;
    left: 6px !important;
    right: 6px !important;
    bottom: 6px !important;
    border: 3px solid rgba(255, 255, 255, 0.2) !important;
    border-top-color: rgba(255, 255, 255, 0.8) !important;
  }

  .loader:after {
    top: 12px !important;
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    border: 3px solid rgba(255, 255, 255, 0.1) !important;
    border-top-color: rgba(255, 255, 255, 0.6) !important;
  }
}

@media (max-width: 576px) {
  .loader {
    width: 80px !important;
    height: 80px !important;
  }

  .loader:before {
    top: 5px !important;
    left: 5px !important;
    right: 5px !important;
    bottom: 5px !important;
    border-width: 2px !important;
  }

  .loader:after {
    top: 10px !important;
    left: 10px !important;
    right: 10px !important;
    bottom: 10px !important;
    border-width: 2px !important;
  }
}

/* Critical CSS for above-the-fold content */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(138, 127, 120, 0.1) 0%, rgba(212, 197, 181, 0.1) 100%);
}

/* Reduce layout shift */
img, video {
  max-width: 100%;
  height: auto;
}

/* Optimize font loading with font-display swap */
* {
  font-display: swap;
}

/* Minimize repaints */
.animate__animated {
  animation-fill-mode: both;
}

/* Standard responsive breakpoints */
@media (max-width: 1199.98px) {
  .padding-medium {
    padding-bottom: 2.5rem;
  }
}

@media (max-width: 991.98px) {
  .padding-medium {
    padding-bottom: 2.2rem;
  }
}

@media (max-width: 767.98px) {
  .padding-medium {
    padding-bottom: 2rem;
  }
}

@media (max-width: 575.98px) {
  .padding-medium {
    padding-bottom: 1.5rem;
  }
  
  /* Ensure proper spacing on very small screens */
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  
  h1, .h1 {
    font-size: 1.8rem;
  }
  
  h2, .h2 {
    font-size: 1.5rem;
  }
}

section {
  overflow-x: hidden !important;
}

/* Activity Image Styling */
.activity-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.activity-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 8px 32px rgba(138, 127, 120, 0.15),
    0 4px 16px rgba(138, 127, 120, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(145deg, #ffffff 0%, #fdfcfa 100%);
  border: 3px solid rgba(123, 93, 115, 0.08);
}

.activity-image-wrapper:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 16px 48px rgba(138, 127, 120, 0.2),
    0 8px 24px rgba(138, 127, 120, 0.15);
  border-color: rgba(123, 93, 115, 0.15);
}

.activity-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 17px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(123, 93, 115, 0.1) 0%,
    rgba(138, 127, 120, 0.05) 50%,
    rgba(123, 93, 115, 0.1) 100%
  );
  border-radius: 17px;
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 15px;
  z-index: 2;
}

.activity-image-wrapper:hover .image-overlay {
  opacity: 1;
}

.overlay-content {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.overlay-badge {
  background: linear-gradient(135deg, var(--accent-color) 0%, #9b7a8f 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 3px 12px rgba(123, 93, 115, 0.4);
  animation: pulse 2s infinite;
  font-family: 'Noto Sans TC', sans-serif;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

/* Activity Image Responsive Design */
@media (max-width: 768px) {
  .activity-image-container {
    margin: 1.5rem 0;
  }

  .activity-image-wrapper {
    max-width: 350px;
    border-radius: 16px;
    border-width: 2px;
  }

  .activity-image {
    border-radius: 14px;
  }

  .image-overlay {
    border-radius: 14px;
    padding: 12px;
  }

  .overlay-badge {
    font-size: 0.7rem;
    padding: 5px 10px;
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .activity-image-wrapper {
    max-width: 300px;
    border-radius: 14px;
  }

  .activity-image {
    border-radius: 12px;
  }

  .image-overlay {
    border-radius: 12px;
    padding: 10px;
  }

  .overlay-badge {
    font-size: 0.65rem;
    padding: 4px 8px;
    border-radius: 10px;
  }
}

