/* ===========================
   Magical Preloader
   =========================== */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0a0a1a 0%, #1a0a2e 50%, #0a0a1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  overflow: hidden;
}

#loader::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.2); opacity: 0.6; }
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

/* Magic Wand Animation */
.pixel-snitch-container {
  position: relative;
  width: 200px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pixel-snitch-container svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.6));
}

.cls-1 {
  opacity: 0.15;
}

.cls-2 {
  fill: #636363;
}

.cls-3 {
  fill: #f2f2f2;
}

.cls-4 {
  fill: #e2e2e2;
}

.cls-5 {
  opacity: 0.1;
}

.cls-6 {
  fill: #ffe131;
}

.cls-7 {
  opacity: 0.05;
}

#wand {
  animation: magic 4s ease infinite;
  transform-origin: 50% 50%;
}

@keyframes magic {
  0% {transform: rotate(0deg) translateX(0px) rotate(0deg) scale(1);}
  15% {transform: rotate(0deg) translateX(50px) rotate(0deg) scale(1);}
  70% {transform: rotate(360deg) translateX(0px) rotate(-360deg) scale(1);}
  77% {transform: rotate(360deg) translateX(0px) rotate(-360deg) scale(0.9);}
  80% {transform: rotate(360deg) translateX(0px) rotate(-360deg) scale(1);}
  100% {transform: rotate(360deg) translateX(0px) rotate(-360deg) scale(1);}
}

#star1 {
  animation: twinkle 2s ease infinite;
}

@keyframes twinkle {
  0% {transform: scale(0); opacity: 0; transform-origin: 60% 40%;}
  77% {transform: scale(0); opacity: 0; transform-origin: 60% 40%;}
  82% {transform: scale(1.2); opacity: 1; transform-origin: 60% 40%;}
  87% {transform: scale(1); opacity: 1; transform-origin: 60% 40%;}
  100% {transform: scale(1); opacity: 1; transform-origin: 60% 40%;}
}

#star2 {
  animation: twinkle2 2s ease infinite;
}

@keyframes twinkle2 {
  0% {transform: scale(0); opacity: 0; transform-origin: 60% 40%;}
  82% {transform: scale(0); opacity: 0; transform-origin: 60% 40%;}
  87% {transform: scale(1.2); opacity: 1; transform-origin: 60% 40%;}
  92% {transform: scale(1); opacity: 1; transform-origin: 60% 40%;}
  100% {transform: scale(1); opacity: 1; transform-origin: 60% 40%;}
}

#star3 {
  animation: twinkle3 2s ease infinite;
}

@keyframes twinkle3 {
  0% {transform: scale(0); opacity: 0; transform-origin: 60% 60%;}
  87% {transform: scale(0); opacity: 0; transform-origin: 60% 60%;}
  92% {transform: scale(1.2); opacity: 1; transform-origin: 60% 60%;}
  97% {transform: scale(1); opacity: 1; transform-origin: 60% 60%;}
  100% {transform: scale(1); opacity: 1; transform-origin: 60% 60%;}
}

#star4 {
  animation: twinkle4 2s ease infinite;
}

@keyframes twinkle4 {
  0% {transform: scale(0); opacity: 0; transform-origin: 60% 60%;}
  92% {transform: scale(0); opacity: 0; transform-origin: 60% 60%;}
  97% {transform: scale(1.2); opacity: 1; transform-origin: 60% 60%;}
  100% {transform: scale(1); opacity: 1; transform-origin: 60% 60%;}
}

/* Loading Text */
.loader-text {
  font-family: myFont, 'Courier New', monospace;
  font-size: 2rem;
  color: #d4af37;
  text-shadow: 
    0 0 10px rgba(212, 175, 55, 0.8),
    0 0 20px rgba(212, 175, 55, 0.5),
    0 0 30px rgba(212, 175, 55, 0.3);
  animation: text-glow 2s ease-in-out infinite alternate;
  letter-spacing: 2px;
}

@keyframes text-glow {
  0% { opacity: 0.8; }
  100% { opacity: 1; text-shadow: 0 0 15px rgba(212, 175, 55, 1), 0 0 30px rgba(212, 175, 55, 0.7); }
}

/* Magic Progress Bar */
.magic-progress-bar {
  width: 300px;
  height: 8px;
  background: rgba(20, 20, 40, 0.8);
  border: 2px solid rgba(212, 175, 55, 0.5);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: 
    0 0 10px rgba(212, 175, 55, 0.3),
    inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.magic-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, 
    #d4af37 0%, 
    #f4d06f 50%, 
    #d4af37 100%);
  width: 0;
  animation: fill-progress 3s ease-out forwards,
             shimmer 1.5s linear infinite;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.8);
  position: relative;
}

@keyframes fill-progress {
  0% { width: 0; }
  100% { width: 100%; }
}

@keyframes shimmer {
  0% { filter: brightness(1); }
  50% { filter: brightness(1.3); }
  100% { filter: brightness(1); }
}

/* Hint Text */
.loader-hint {
  font-family: myFont, 'Courier New', monospace;
  font-size: 2rem;
  color: rgba(212, 175, 55, 0.7);
  text-align: center;
  margin-top: 1rem;
  letter-spacing: 1px;
  animation: fade-hint 2s ease-in-out infinite alternate;
}

@keyframes fade-hint {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* Fade out animation */
.loader-fade-out {
  animation: fade-out 1s ease-out forwards;
}

@keyframes fade-out {
  0% { opacity: 1; }
  100% { opacity: 0; pointer-events: none; }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .loader-text {
    font-size: 1.5rem;
  }
  
  .magic-progress-bar {
    width: 250px;
  }
  
  .pixel-snitch-container {
    width: 80px;
    height: 80px;
  }
  
  .loader-hint {
    font-size: 0.85rem;
    padding: 0 1rem;
  }
}

/* ===========================
   Original Styles
   =========================== */

/* variables - Updated for Valentine's Theme */
:root {
  --bg-color: #FFFFFF; /* Lavender Blush / Sakura Pink */
  --primary-color: #D4AF37; /* Metallic Gold */
  --secondary-color: #FF69B4; /* Hot Pink */
  --text-color: #4A4A4A; /* Dark Grey for readability */
  --heading-font: "Cinzel", serif; /* Magical/Elegant font */
}

/* global properties */
*{
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body{
  /* 完整頁面背景漸變 - 覆蓋所有sections */
  background: linear-gradient(180deg,
    /* Section 1 區域 - Dark candles */
    #1a1a1a 0vh,
    #050505 50vh,
    #1a1a1a 100vh,
    
    /* Section 2 區域 - Hong Kong Night */
    #0a0a1a 110vh,
    #1a1a2e 150vh,
    #16213e 180vh,
    #0f1419 200vh,
    
    /* Section 2->3 過渡區 */
    #1a2a3a 215vh,
    #2a4060 225vh,
    
    /* Section 3 區域 - Road 公路 */
    #4a483d 230vh,
    #4c4f48 280vh,
    #4a483d 330vh,
    
    /* Section 3->4 過渡區 - 公路色漸變到海水藍 */
    #3d5168 340vh,
    #2e5c88 348vh,
    #1968a8 356vh,
    
    /* Section 4 區域 - 海水 */
    #0575e6 360vh,
    #0575e6 410vh,
    #0575e6 460vh,
    
    /* Section 4->5 過渡 - 海水藍去返 Sakura Pink */
    #4a89c8 468vh,
    #8fa9d5 475vh,
    #c5cfe5 482vh,
    #e8ecf5 487vh,
    #FFF0F5 490vh,
    
    /* Section 5 */
    #FFFFFF 500vh,
    #FFFFFF 540vh
  );
  
  color: var(--text-color);
  font-family: "DM Sans", sans-serif;
  font-size: 18px;
  line-height: 1.5;
}

.btn{
  color: #fff;
  padding: 8px 20px;
  font-weight: 500;
  background-color: var(--secondary-color);
  border-radius: 20px;
  transition: transform 0.2s;
}

@font-face {
  font-family: myFont; /* set name */
  src: url(./font/HarryPotter-ov4z.ttf); /* url of the font */
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px var(--secondary-color);
}

.radius{
  border-radius: 15px;
}

a{
  text-decoration: none;
  display: inline-block;
}

img{
  width: 100%;
  border-radius: 10px;
}

.w-full{
  width: calc(100vw - 10rem) !important;
  max-width: 1440px;
  margin: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  position: relative; /* 允許子元素absolute positioning突破 */
}

/* 確保section2和section3能突破容器限制 */
#main {
  position: relative;
  overflow-x: visible !important; /* 允許水平突破 */
  min-height: 700vh; /* 確保容器高度足夠容納所有 absolute section */
}

#smooth-wrapper,
#smooth-content {
  overflow-x: visible !important; /* 允許Section2和Section3全寬度顯示 */
  overflow-y: visible !important; /* 確保垂直空間充足 */
}

/* for all headings (加入硬件加速) */
.heading{
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 6.5vw;
  color: var(--primary-color);
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: 1.4rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
  /* 性能優化 */
  will-change: transform, opacity, filter;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

/* local properties */

/* header */
header{
  padding: 1rem 0;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  z-index: 100;
  width: 90%;
}

header nav{
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  padding: 10px 20px;
  border-radius: 50px;
  border: 1px solid var(--primary-color);
}

header .logo-text {
  font-family: var(--heading-font);
  font-weight: 700;
  color: var(--secondary-color);
  font-size: 1.2rem;
}

.bounce {
  animation: bounce 5s ease infinite;
}
@keyframes bounce {
    0% { transform:translateY(0%); }
    25% { transform:translateY(-2%); }
    50% { transform:translateY(0%); }
    75% { transform:translateY(-2%); }
    100% { transform:translateY(0); }
}

/* The Magic Item (Snitch Wrapper) - 確保正常飛行 */
#snitch-wrapper{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 5%; /* Lower slightly for better centering */
  width: 25vw; /* Start smaller */
  max-width: 800px;
  filter: drop-shadow(0px 0px 30px rgba(255, 215, 0, 0.6)); /* Stronger Gold Glow */
  will-change: transform, filter;
  z-index: 100; /* 提高z-index確保在所有section之上 */
  pointer-events: none; /* 避免阻擋其他元素交互 */
}


@keyframes float-snitch {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-20px); }
}

/* section 1 - Hero */
#section1{
  height: 100vh;
  width: 100%; /* 放開闊度 */
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 5vh; /* 增加底部空間 */
}

/* 暴力爆框黑科技 */
#candle-universe {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 100vw; /* 強制全屏闊度 */
  height: 100%;
  background: radial-gradient(circle at center, #1a1a1a 0%, #050505 100%);
  z-index: 1;
  overflow: hidden;
}

/* 蠟燭樣式 (優化版) */
.candle {
  position: absolute;
  width: 12px;
  height: 60px;
  background: linear-gradient(to bottom, #e0e0e0, #888);
  border-radius: 2px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  will-change: transform; /* 硬件加速優化 */
  backface-visibility: hidden; /* 防止閃爍 */
}

.flame {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translate3d(-50%, 0, 0); /* 啟用硬件加速 */
  width: 10px;
  height: 18px;
  background: radial-gradient(ellipse at bottom, #ff9d00 0%, #ff5e00 50%, transparent 100%);
  border-radius: 50% 50% 20% 20%;
  filter: drop-shadow(0 0 6px #ff9d00); /* 減少模糊半徑 */
  will-change: transform, opacity; /* 性能優化 */
  backface-visibility: hidden;
}

#section1 h1, #section1 p {
  position: relative;
  z-index: 10; /* 確保喺蠟燭上面 */
}

#section1 h1{
  font-size: 10vw;
  line-height: 1;
  margin-bottom: 2rem;
  background: -webkit-linear-gradient(45deg, #D4AF37, #FF69B4, #D4AF37);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* 魔法發光特效 */
  filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.5));
  animation: shine 4s linear infinite;
  position: relative;
  z-index: 10;
  /* 性能優化 */
  will-change: transform, filter;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

#section1 p {
  color: #fff;
  font-family: var(--heading-font);
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  position: relative;
  z-index: 10;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

/* section 2 - Hong Kong Night Theme - Full Width Breakout */
#section2{
  min-height: 100vh;
  padding: 0; /* 移除 padding 避免留白 */
  /* BREAKOUT: 突破main容器限制 */
  position: absolute;
  left: 50%;
  transform: translate3d(-50%, 0, 0); /* 硬件加速 */
  width: 100vw;
  overflow: hidden;
  
  /* 性能優化 */
  will-change: transform;
  contain: layout style paint;
  backface-visibility: hidden;
  
  /* Hong Kong Night Background - Seamless transition from Section 1 */
  background: linear-gradient(180deg, 
    #1a1a1a 0%,        /* Connect to Section 1's dark candle background */
    #0a0a1a 20%,       /* Deep night blue */
    #1a1a2e 50%,       /* Midnight blue */
    #16213e 80%,       /* City glow */
    #0f1419 100%       /* Harbor darkness */
  );
  
}

/* Hong Kong Parallax Pixel Stars */
#hk-stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  background: transparent;
  box-shadow: 1024px 1566px #FFF, 1345px 852px #FFF, 694px 1432px #FFF, 1678px 1865px #FFF, 512px 965px #FFF, 
              1289px 445px #FFF, 834px 1723px #FFF, 1456px 321px #FFF, 923px 1134px #FFF, 1789px 677px #FFF,
              567px 1876px #FFF, 1345px 234px #FFF, 789px 1345px #FFF, 1567px 876px #FFF, 234px 1765px #FFF,
              1876px 456px #FFF, 678px 1234px #FFF, 1234px 987px #FFF, 890px 1678px #FFF, 1456px 543px #FFF,
              123px 1890px #FFF, 1678px 234px #FFF, 567px 1456px #FFF, 1234px 789px #FFF, 890px 1567px #FFF,
              1567px 321px #FFF, 234px 1678px #FFF, 1345px 876px #FFF, 789px 1234px #FFF, 1876px 567px #FFF;
  animation: hk-animStar 50s linear infinite;
  z-index: 1;
}

#hk-stars:after {
  content: " ";
  position: absolute;
  top: 2000px;
  width: 1px;
  height: 1px;
  background: transparent;
  box-shadow: 1024px 1566px #FFF, 1345px 852px #FFF, 694px 1432px #FFF, 1678px 1865px #FFF, 512px 965px #FFF, 
              1289px 445px #FFF, 834px 1723px #FFF, 1456px 321px #FFF, 923px 1134px #FFF, 1789px 677px #FFF,
              567px 1876px #FFF, 1345px 234px #FFF, 789px 1345px #FFF, 1567px 876px #FFF, 234px 1765px #FFF,
              1876px 456px #FFF, 678px 1234px #FFF, 1234px 987px #FFF, 890px 1678px #FFF, 1456px 543px #FFF,
              123px 1890px #FFF, 1678px 234px #FFF, 567px 1456px #FFF, 1234px 789px #FFF, 890px 1567px #FFF,
              1567px 321px #FFF, 234px 1678px #FFF, 1345px 876px #FFF, 789px 1234px #FFF, 1876px 567px #FFF;
}

#hk-stars2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 2px;
  background: transparent;
  box-shadow: 876px 1234px #FFF, 1456px 789px #FFF, 234px 1567px #FFF, 1789px 345px #FFF, 567px 1876px #FFF,
              1234px 678px #FFF, 890px 1345px #FFF, 1567px 234px #FFF, 345px 1678px #FFF, 1876px 567px #FFF,
              123px 1234px #FFF, 1345px 889px #FFF, 678px 1567px #FFF, 1567px 234px #FFF, 234px 1789px #FFF,
              1678px 345px #FFF, 567px 1456px #FFF, 1234px 678px #FFF, 890px 1345px #FFF, 1456px 789px #FFF;
  animation: hk-animStar 100s linear infinite;
  z-index: 1;
}

#hk-stars2:after {
  content: " ";
  position: absolute;
  top: 2000px;
  width: 2px;
  height: 2px;
  background: transparent;
  box-shadow: 876px 1234px #FFF, 1456px 789px #FFF, 234px 1567px #FFF, 1789px 345px #FFF, 567px 1876px #FFF,
              1234px 678px #FFF, 890px 1345px #FFF, 1567px 234px #FFF, 345px 1678px #FFF, 1876px 567px #FFF,
              123px 1234px #FFF, 1345px 889px #FFF, 678px 1567px #FFF, 1567px 234px #FFF, 234px 1789px #FFF,
              1678px 345px #FFF, 567px 1456px #FFF, 1234px 678px #FFF, 890px 1345px #FFF, 1456px 789px #FFF;
}

#hk-stars3 {
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 3px;
  background: transparent;
  box-shadow: 1234px 567px #FFF, 678px 1345px #FFF, 1456px 789px #FFF, 234px 1678px #FFF, 1789px 345px #FFF,
              567px 1234px #FFF, 1345px 876px #FFF, 890px 1456px #FFF, 1567px 234px #FFF, 345px 1789px #FFF,
              1678px 567px #FFF, 234px 1345px #FFF, 1456px 678px #FFF, 789px 1567px #FFF, 1234px 345px #FFF;
  animation: hk-animStar 150s linear infinite;
  z-index: 1;
}

#hk-stars3:after {
  content: " ";
  position: absolute;
  top: 2000px;
  width: 3px;
  height: 3px;
  background: transparent;
  box-shadow: 1234px 567px #FFF, 678px 1345px #FFF, 1456px 789px #FFF, 234px 1678px #FFF, 1789px 345px #FFF,
              567px 1234px #FFF, 1345px 876px #FFF, 890px 1456px #FFF, 1567px 234px #FFF, 345px 1789px #FFF,
              1678px 567px #FFF, 234px 1345px #FFF, 1456px 678px #FFF, 789px 1567px #FFF, 1234px 345px #FFF;
}

@keyframes hk-animStar {
  from {
    transform: translateY(0px);
  }
  to {
    transform: translateY(-2000px);
  }
}

/* Hong Kong Stars Performance Optimization */
#hk-stars, #hk-stars2, #hk-stars3 {
  will-change: transform;
  backface-visibility: hidden;
}

/* Hong Kong Stars Mobile Responsiveness */
@media (max-width: 991px) {
  #hk-stars, #hk-stars2, #hk-stars3 {
    opacity: 0.8;
  }
}

@media (max-width: 576px) {
  #hk-stars, #hk-stars2, #hk-stars3 {
    opacity: 0.6;
  }
}

/* 流星雨效果 - 左上到右下 
.meteor {
  position: absolute;
  width: 2px;
  height: 80px;
  background: linear-gradient(45deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.8) 20%, transparent 100%);
  opacity: 0;
  animation: meteor-fall 5s linear infinite;
}

.meteor:nth-child(1) { top: -20%; left: -10%; animation-delay: 0s; }
.meteor:nth-child(2) { top: -30%; left: -20%; animation-delay: 0.5s; }
.meteor:nth-child(3) { top: -40%; left: -30%; animation-delay: 1s; }
.meteor:nth-child(4) { top: -50%; left: -40%; animation-delay: 1.5s; }


@keyframes meteor-fall {
  0% {
    opacity: 0;
    transform: translateX(-50px) translateY(-50px) rotate(300deg);
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(50vw) translateY(50vh) rotate(300deg);
  }
}
*/
/* Hong Kong City Skyline Silhouettes - 性能優化 */
.hk-night-silhouettes {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 180px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  /* 性能優化 */
  will-change: transform;
  contain: layout;
  /* Creating Hong Kong Modern City Skyline */
  clip-path: polygon(
    0% 100%,
    0% 75%, 8% 75%, 8% 45%, 12% 45%, 12% 60%, /* IFC Tower */
    16% 60%, 16% 35%, 22% 35%, 22% 70%, /* Central Plaza */
    26% 70%, 26% 25%, 30% 25%, 30% 55%, /* Bank of China */
    34% 55%, 34% 40%, 38% 40%, 38% 65%, /* Two IFC */
    42% 65%, 42% 30%, 46% 30%, 46% 50%, /* Cheung Kong */
    50% 50%, 50% 20%, 54% 20%, 54% 45%, /* ICC Tower */
    58% 45%, 58% 35%, 62% 35%, 62% 60%, /* Nina Tower */
    66% 60%, 66% 15%, 70% 15%, 70% 55%, /* Sky100 */
    74% 55%, 74% 40%, 78% 40%, 78% 50%, /* Hysan Place */
    82% 50%, 82% 25%, 86% 25%, 86% 65%, /* The Center */
    90% 65%, 90% 45%, 94% 45%, 94% 70%, /* Times Square */
    98% 70%, 98% 55%, 100% 55%, /* Causeway Bay */
    100% 100%
  );
  z-index: 2;
}

/* 月亮 */
.moon {
  position: absolute;
  top: 60%;
  right: 30%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, 
    #fff 0%, 
    #f8f8ff 25%, 
    #e6e6fa 50%, 
    #ddd 75%, 
    #bbb 100%);
  box-shadow: 
    0 0 30px rgba(255, 255, 255, 0.6),
    0 0 60px rgba(255, 255, 255, 0.4),
    0 0 100px rgba(255, 255, 255, 0.2),
    inset 5px 5px 15px rgba(0, 0, 0, 0.1),
    inset -5px -5px 15px rgba(255, 255, 255, 0.3);
  z-index: 8;
  animation: moon-glow 6s ease-in-out infinite alternate;
  /* 性能優化 */
  will-change: transform, box-shadow;
  backface-visibility: hidden;
}

/* 月亮陰影紋理效果 */
.moon::before {
  content: '';
  position: absolute;
  top: 25%;
  left: 40%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(150, 150, 150, 0.3);
  box-shadow: 
    -15px 8px 0 -2px rgba(150, 150, 150, 0.2),
    10px -5px 0 -1px rgba(150, 150, 150, 0.25),
    -8px -12px 0 -3px rgba(150, 150, 150, 0.15),
    20px 15px 0 -4px rgba(150, 150, 150, 0.2);
}

/* 月亮發光動畫 */
@keyframes moon-glow {
  0%, 100% {
    box-shadow: 
      0 0 30px rgba(255, 255, 255, 0.6),
      0 0 60px rgba(255, 255, 255, 0.4),
      0 0 100px rgba(255, 255, 255, 0.2),
      inset 5px 5px 15px rgba(0, 0, 0, 0.1),
      inset -5px -5px 15px rgba(255, 255, 255, 0.3);
    transform: scale(1);
  }
  50% {
    box-shadow: 
      0 0 40px rgba(255, 255, 255, 0.8),
      0 0 80px rgba(255, 255, 255, 0.5),
      0 0 130px rgba(255, 255, 255, 0.3),
      inset 5px 5px 15px rgba(0, 0, 0, 0.1),
      inset -5px -5px 15px rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
  }
}

/* Floating Neon Signs - 性能優化 */
.floating-neon {
  position: absolute;
  font-family: serif, 'Microsoft JhengHei', sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  writing-mode: vertical-rl;
  text-orientation: upright;
  padding: 1rem 0.5rem;
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid currentColor;
  border-radius: 8px;
  backdrop-filter: blur(5px);
  z-index: 10;
  opacity: 0; /* Start hidden for GSAP animation */
  /* 性能優化 */
  will-change: transform, opacity;
  backface-visibility: hidden;
  perspective: 1000px;
}

.neon-cyan {
  top: 12%;
  left: 8%;
  color: #00ffff;
  box-shadow: 
    0 0 20px rgba(0, 255, 255, 0.6),
    inset 0 0 20px rgba(0, 255, 255, 0.1);
  text-shadow: 
    0 0 10px #00ffff,
    0 0 20px #00ffff,
    0 0 30px #00ffff;
}

.neon-magenta {
  top: 25%;
  right: 12%;
  color: #ff1493;
  box-shadow: 
    0 0 20px rgba(255, 20, 147, 0.6),
    inset 0 0 20px rgba(255, 20, 147, 0.1);
  text-shadow: 
    0 0 10px #ff1493,
    0 0 20px #ff1493,
    0 0 30px #ff1493;
}

.neon-amber {
  top: 60%;
  left: 15%;
  color: #ffa500;
  box-shadow: 
    0 0 20px rgba(255, 165, 0, 0.6),
    inset 0 0 20px rgba(255, 165, 0, 0.1);
  text-shadow: 
    0 0 10px #ffa500,
    0 0 20px #ffa500,
    0 0 30px #ffa500;
}

.neon-green {
  top: 70%;
  right: 18%;
  color: #00ff88;
  box-shadow: 
    0 0 20px rgba(0, 255, 136, 0.6),
    inset 0 0 20px rgba(0, 255, 136, 0.1);
  text-shadow: 
    0 0 10px #00ff88,
    0 0 20px #00ff88,
    0 0 30px #00ff88;
}

/* Neon Flicker Animation - 优化性能 */
@keyframes neon-flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% {
    opacity: 1;
  }
  20%, 24%, 55% {
    opacity: 0.7;
    filter: brightness(0.8);
  }
}

.floating-neon {
  animation: neon-flicker 3s infinite linear;
  /* 减少重绘 */
  animation-fill-mode: forwards;
}

/* Floating Animation - 使用transform优化 */
@keyframes neon-float {
  0%, 100% { transform: translate3d(0, 0px, 0); }
  50% { transform: translate3d(0, -12px, 0); }
}

/* Hong Kong Themed Content */
.hk-theme-heading {
  color: #fff;
  text-shadow: 
    0 0 20px rgba(212, 175, 55, 0.8),
    0 0 40px rgba(212, 175, 55, 0.4);
}

.hk-theme-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
  margin-bottom: 2rem;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.hk-neon-btn {
  background: linear-gradient(45deg, #00ffff, #ff1493);
  color: #fff;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 0 20px rgba(0, 255, 255, 0.3),
    inset 0 0 10px rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.hk-neon-btn:hover {
  transform: scale(1.05);
  box-shadow: 
    0 0 30px rgba(0, 255, 255, 0.5),
    0 0 40px rgba(255, 20, 147, 0.3),
    inset 0 0 15px rgba(255, 255, 255, 0.2);
}

/* Hong Kong styled feature boxes */
.hk-feature-box {
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(212, 175, 55, 0.8);
  backdrop-filter: blur(10px);
  box-shadow: 
    0 0 20px rgba(212, 175, 55, 0.2),
    inset 0 0 20px rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.hk-feature-box:hover {
  transform: translateY(-10px);
  box-shadow: 
    0 10px 30px rgba(212, 175, 55, 0.4),
    inset 0 0 30px rgba(255, 255, 255, 0.1);
  border-color: rgba(212, 175, 55, 1);
}

.hk-feature-box .feature-name {
  color: #D4AF37;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.hk-feature-box .feature-detail {
  color: rgba(255, 255, 255, 0.9);
}

#section2 .content-wrapper{
  max-width: 1050px;
  position: relative;
  z-index: 15;
  margin: 0 auto;
  padding: 4rem 2rem 2rem 2rem; /* 加返內容上下間距 */
  /* 性能優化 */
  will-change: transform;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

.feature-wrapper{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  margin-top: 8vw;
  position: relative;
  z-index: 15;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem;
}

.feature-box{
  padding: 1.5vw;
  transition: transform 0.3s;
}

.feature-name{
  font-family: var(--heading-font);
  text-transform: uppercase;
  font-size: 1.2rem;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

/* --- CAT CHASE ANIMATION --- */
/* Cat Runner Container */
.cat-runner {
  position: absolute;
  bottom: 15%; /* 預設位置 */
  width: 128px; 
  height: 128px;
  z-index: 50;
  transform: translate3d(-600px, 0, 0); /* 硬件加速，初始在畫面外左側 */
  animation: run-cycle 0.6s steps(4) infinite; /* Loop through 4 frames horizontally */
  background-size: 400% 400%; /* Image is 4x bigger than container */
  /* 性能優化 */
  will-change: transform;
  backface-visibility: hidden;
}

/* Section 5 中的貓咪位置調整 */
#section5-office-container .cat-runner {
  bottom: 3%; /* 向下多3% (15% - 3% = 12%) */
}

@keyframes run-cycle {
  from { background-position-x: 0; }
  to { background-position-x: -400%; } /* Move 4 frames to the right */
}

/* Hot Dog (Slim Grey) */
.hotdog-cat {
  background-image: url('./images/hotdog_run.png');
  background-position-y: 33.33%; /* Lock to 2nd Row (approx) */
  left: -450px; /* 從畫面外左側更遠處開始 */
}

/* Chi Cha (Fat Orange) - 追逐者，更遠的起始位置 */
.chicha-cat {
  background-image: url('./images/chicha_run.png');
  background-position-y: 100%; /* Lock to 4nd Row (approx) */
  left: -650px; /* 比hotdog更遠的起始位置 */
}
/* --- END CAT ANIMATION --- */

/* section 3 - Video/Memory - 修正Section 2 absolute positioning影響 */
/* section 4 - Beach Animation with Photo Grid - 暴力爆框技術 */
#section4{
  min-height: 100vh;
  padding-top: 6vh; /* 增加頂部空間 */
  padding-bottom: 0;
  margin-top: 260vh; /* 推低section 4，為section 2 + section 3 + 轉場空間 */
  
  /* 暴力爆框技術 - 突破main容器限制 */
  position: absolute;
  left: 50%;
  transform: translate3d(-50%, 0, 0); /* 硬件加速 */
  width: 100vw;
  overflow: hidden;
  
  /* Beach Background - 海水色 */
  background: #0575e6;
  
  /* 性能優化 */
  will-change: transform;
  contain: layout style paint;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

/* Beach Animation Container */
#beach-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto;
}

#beach-container canvas {
  cursor: crosshair;
}

#section4 img{
  border: 8px solid white;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  position: absolute;
  z-index: 20; /* Above beach animation */
  transition: all 0.3s ease;
}

#section4 img:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

#section4 .img1{
  max-width: 280px;
  top: 10%;
  left: 5%;
  transform: rotate(10deg);
}

#section4 .img2{
  max-width: 400px;
  right: 5%;
  top: 25%;
  transform: rotate(-8deg);
}

#section4 .img3{
  max-width: 320px;
  left: 15%;
  bottom: 15%;
  transform: rotate(12deg);
}

/* section 5 - Coupons - 修正位置以適應所有absolute sections */
#section5{
   text-align: center;
   padding-top: 0;
   padding-bottom: 8vh;
   min-height: 94vh;
   margin-top: 360vh; /* 緊接section 4 (260vh + 100vh) */
   position: relative; /* 重要：讓 Polaroid Rain 容器相對於 Section 5 定位 */
}

#section5 .product-section{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.product{
  background: white;
  padding: 1rem;
  border-radius: 15px;
  border: 1px solid var(--bg-color);
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.product .name{
  font-size: 1.2rem;
  font-family: var(--heading-font);
  color: var(--primary-color);
  margin-top: 1rem;
}

.product .price{
  font-size: 1rem;
  color: var(--secondary-color);
  font-weight: 700;
}

/* Section 5 Mobile Message - Hidden on Desktop */
.section5-mobile-message {
  display: none;
}

/* section 6 - Lisbon Section */
#section6{
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5vw;
  padding-bottom: 8vw;
  padding-top: 4vw;
  
  /* 改用 relative，跟住 Section 5 */
  position: relative;
  
  /* Lisbon Blue Background */
  background: linear-gradient(135deg, #4A90E2 0%, #5B9BD5 50%, #87CEEB 100%);
  
  /* 全屏 Breakout 技術 - 用 negative margin */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
  overflow: visible; /* 改成 visible 讓飛機可以飛出去 */
}

#section6 .section6-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 80vh;
  padding: 4vw 2vw;
  margin: 0 auto;
}

/* Lisbon Jello Text Effect */
#section6 .lisbon-jello-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 200px;
  visibility: visible; /* 改做 visible 確保顯示 */
  margin-bottom: 2vw;
}

#section6 .lisbon-jello-content {
  text-align: center;
}

#section6 .lisbon-jello-txt {
  margin: 0;
  font-size: 7vw;
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: -0.5vw;
  user-select: none;
  color: #ffffff;
  text-shadow: 0 0.05em 0 rgba(255, 176, 192, 0.8),
               0 0.1em 0.1em rgba(70, 0, 35, 0.3),
               0 0.4em 0.3em rgba(70, 0, 35, 0.1);
}

#section6 .lisbon-jello-char {
  display: inline-block;
  padding-top: 1.08vw;
  text-align: center;
  will-change: font-weight, transform;
}

body.lisbon-grab {
  cursor: url("data:image/svg+xml,%3Csvg width='64px' height='64px' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 700 700'%3E%3Cpath d='M419.9949,560.0013a179.4167,179.4167,0,0,1-127.73-52.898l-46.691-46.668a81.2138,81.2138,0,0,1-23.914-57.77v-35.352a81.1643,81.1643,0,0,1,23.918-57.75l22.75-22.723v-53.504a46.6566,46.6566,0,0,1,72.613-38.7813,46.691,46.691,0,0,1,88.106,0,46.6714,46.6714,0,0,1,70,23.3323,46.6566,46.6566,0,0,1,72.613,38.7813v151.67c0,83.625-68.039,151.66-151.67,151.66Zm-151.66-240.17-6.2539,6.2539a57.9448,57.9448,0,0,0-17.082,41.254v35.352a58.0537,58.0537,0,0,0,17.078,41.254l46.691,46.668a156.1776,156.1776,0,0,0,111.21,46.059c70.77,0,128.36-57.562,128.36-128.33l.0039-151.67a23.332,23.332,0,1,0-46.664,0l-.0039,11.668a11.666,11.666,0,1,1-23.332,0v-35a23.332,23.332,0,1,0-46.664,0l-.0039,35a11.666,11.666,0,1,1-23.332,0v-58.336a23.332,23.332,0,1,0-46.664,0l-.0039,58.336a11.666,11.666,0,1,1-23.332,0v-35a23.332,23.332,0,1,0-46.664,0v58.309a.19.19,0,0,0-.0039.0469v46.645a11.666,11.666,0,1,1-23.332,0Z'/%3E%3C/svg%3E") 32 32, pointer !important;
}

#section6 img{
  box-shadow: 0 0 30px rgba(255, 105, 180, 0.3);
}

#section6 .heading,
#section6 p {
  color: #000;
  text-align: left;
}

#section6 .content-wrapper {
  text-align: center;
}

/* Lisbon Subtitle */
#section6 .lisbon-subtitle {
  font-size: 1.5rem;
  color: #ffffff;
  margin: 1.5rem 0 3rem;
  opacity: 0;
  transform: translateY(20px);
}

/* Lisbon Carousel Styles */
#section6 .lisbon-carousel-container {
  width: 100%;
  max-width: 500px;
  height: 70vh;
  margin: 0 auto;
  position: relative;
  perspective: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
}

#section6 .lisbon-carousel-container .carousel-track {
  width: 450px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#section6 .lisbon-carousel-container .card {
  position: absolute;
  width: 400px;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
}

#section6 .lisbon-carousel-container .card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#section6 .lisbon-carousel-container .card.center {
  z-index: 10;
  transform: scale(1.1) translateZ(0);
}

#section6 .lisbon-carousel-container .card.center img {
  filter: none;
}

#section6 .lisbon-carousel-container .card.up-2 {
  z-index: 1;
  transform: translateY(-300px) scale(0.8) translateZ(-300px);
  opacity: 0.7;
}

#section6 .lisbon-carousel-container .card.up-2 img {
  filter: grayscale(100%);
}

#section6 .lisbon-carousel-container .card.up-1 {
  z-index: 5;
  transform: translateY(-150px) scale(0.9) translateZ(-100px);
  opacity: 0.9;
}

#section6 .lisbon-carousel-container .card.up-1 img {
  filter: grayscale(100%);
}

#section6 .lisbon-carousel-container .card.down-1 {
  z-index: 5;
  transform: translateY(150px) scale(0.9) translateZ(-100px);
  opacity: 0.9;
}

#section6 .lisbon-carousel-container .card.down-1 img {
  filter: grayscale(100%);
}

#section6 .lisbon-carousel-container .card.down-2 {
  z-index: 1;
  transform: translateY(300px) scale(0.8) translateZ(-300px);
  opacity: 0.7;
}

#section6 .lisbon-carousel-container .card.down-2 img {
  filter: grayscale(100%);
}

#section6 .lisbon-carousel-container .card.hidden {
  opacity: 0;
  pointer-events: none;
}

#section6 .lisbon-carousel-container .member-info {
  text-align: center;
  margin-top: 30px;
  transition: all 0.5s ease-out;
}

#section6 .lisbon-carousel-container .member-name {
  color: rgb(255, 176, 192);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  position: relative;
  display: inline-block;
  transition: opacity 0.3s ease;
}

#section6 .lisbon-carousel-container .member-name::before,
#section6 .lisbon-carousel-container .member-name::after {
  content: "";
  position: absolute;
  top: 100%;
  width: 60px;
  height: 2px;
  background: rgb(255, 176, 192);
}

#section6 .lisbon-carousel-container .member-name::before {
  left: -80px;
}

#section6 .lisbon-carousel-container .member-name::after {
  right: -80px;
}

#section6 .lisbon-carousel-container .member-role {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.2rem;
  font-weight: 500;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 0;
  margin-top: -10px;
  position: relative;
  transition: opacity 0.3s ease;
}

#section6 .lisbon-carousel-container .nav-arrow {
  position: absolute;
  background: transparent;
  color: rgba(255, 176, 192, 0.9);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s ease;
  font-size: 2rem;
  border: none;
  outline: none;
  box-shadow: none;
  left: 50%;
  transform: translateX(-50%);
  display:none;
}

#section6 .lisbon-carousel-container .nav-arrow:hover {
  background: transparent;
  transform: translateX(-50%) scale(1.2);
  box-shadow: none;
}

#section6 .lisbon-carousel-container .nav-arrow span {
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

#section6 .lisbon-carousel-container .nav-arrow:hover span {
  filter: drop-shadow(0 4px 8px rgba(255, 176, 192, 0.6));
  transform: scale(1.1);
}

#section6 .lisbon-carousel-container .nav-arrow.up {
  top: 0;
}

#section6 .lisbon-carousel-container .nav-arrow.down {
  bottom: 0;
}

#section6 .lisbon-carousel-container .dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  display: none;
}

#section6 .lisbon-carousel-container .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 176, 192, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

#section6 .lisbon-carousel-container .dot.active {
  background: rgb(255, 176, 192);
  transform: scale(1.2);
}

#section6 .lisbon-carousel-container .dot:hover {
  background: rgba(255, 176, 192, 0.6);
}

/* Lightbox Styles */
.lisbon-lightbox {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
  animation: lisbonFadeIn 0.3s ease;
}

@keyframes lisbonFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lisbon-lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  animation: lisbonZoomIn 0.3s ease;
}

@keyframes lisbonZoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lisbon-lightbox-img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lisbon-lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #ffffff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10001;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lisbon-lightbox-close:hover {
  color: #ff6b6b;
  transform: rotate(90deg);
}

.lisbon-lightbox-caption {
  text-align: center;
  color: #ffffff;
  padding: 20px;
  font-size: 1.2rem;
  margin-top: 10px;
}

/* Two Column Layout for Section 6 */
#section6 .lisbon-main-container {
  display: flex;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  gap: 60px;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
}

#section6 .lisbon-left-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 400px;
}

#section6 .lisbon-right-section {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-width: 400px;
}

/* Ticket System Styles */
#section6 .ticket-system {
  max-width: 385px;
  width: 100%;
}

#section6 .ticket-system .top {
  display: flex;
  align-items: center;
  flex-direction: column;
}

#section6 .ticket-system .title {
  font-weight: normal;
  font-size: 1.4em;
  text-align: center;
  margin: 0 0 40px 0;
  color: #fff;
  line-height: 1.4;
}

#section6 .ticket-system .printer {
  width: 90%;
  height: 20px;
  border: 5px solid #fff;
  border-radius: 10px;
  box-shadow: 1px 3px 3px 0px rgba(0, 0, 0, 0.2);
}

#section6 .ticket-system .receipts-wrapper {
  overflow: hidden;
  margin-top: -10px;
  padding-bottom: 10px;
}

#section6 .ticket-system .receipts {
  width: 100%;
  display: flex;
  align-items: center;
  flex-direction: column;
  transform: translateY(-510px);
}

#section6 .ticket-system .receipts.print-active {
  animation-duration: 5s;
  animation-delay: 1000ms;
  animation-name: ticketPrint;
  animation-fill-mode: forwards;
}

@keyframes ticketPrint {
  0% {
    transform: translateY(-510px);
  }
  50% {
    transform: translateY(-395px);
  }
  70% {
    transform: translateY(-140px);
  }
  100% {
    transform: translateY(0);
  }
}

#section6 .ticket-system .receipt {
  padding: 25px 30px;
  text-align: left;
  min-height: 200px;
  width: 88%;
  background-color: #fff;
  border-radius: 10px 10px 20px 20px;
  box-shadow: 1px 3px 8px 3px rgba(0, 0, 0, 0.2);
}

#section6 .ticket-system .airliner-logo {
  max-width: 120px;
  height: auto;
}

#section6 .ticket-system .route {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 30px 0;
}

#section6 .ticket-system .plane-icon {
  width: 30px;
  height: 30px;
  transform: rotate(90deg);
}

#section6 .ticket-system .route h2 {
  font-weight: 300;
  font-size: 2.2em;
  margin: 0;
  color: #1c1c1c;
}

#section6 .ticket-system .details {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

#section6 .ticket-system .details .item {
  display: flex;
  flex-direction: column;
  min-width: 70px;
}

#section6 .ticket-system .details .item span {
  font-size: 0.8em;
  color: rgba(28, 28, 28, 0.7);
  font-weight: 500;
}

#section6 .ticket-system .details .item h3 {
  margin-top: 10px;
  margin-bottom: 25px;
  color: #1c1c1c;
  font-weight: 500;
}

#section6 .ticket-system .receipt.qr-code {
  height: 110px;
  min-height: unset;
  position: relative;
  border-radius: 20px 20px 10px 10px;
  display: flex;
  align-items: center;
  margin-top: 10px;
}

#section6 .ticket-system .receipt.qr-code::before {
  content: '';
  background: linear-gradient(to right, #fff 50%, transparent 50%);
  background-size: 22px 4px, 100% 4px;
  height: 4px;
  width: 90%;
  display: block;
  left: 0;
  right: 0;
  top: -1px;
  position: absolute;
  margin: auto;
}

#section6 .ticket-system .qr {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
}

#section6 .ticket-system .description {
  margin-left: 20px;
}

#section6 .ticket-system .description h2 {
  margin: 0 0 5px 0;
  font-weight: 500;
  color: #1c1c1c;
  font-size: 1.3rem;
}

#section6 .ticket-system .description p {
  margin: 0;
  font-weight: 400;
  color: rgba(28, 28, 28, 0.7);
  text-align: left;
}

/* Plane Animation Container */
#section6 .plane-animation-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  overflow: visible;
  pointer-events: none;
  z-index: 10;
}

#section6 .plane-animation-container lottie-player {
  width: 500px;
  height: 500px;
  position: absolute;
  bottom: -100px;
  animation: planeFlyAway 10s ease-in-out infinite;
  transform-origin: center center;
}

/* Plane Flying Out and Back Animation */
@keyframes planeFlyAway {
  0% {
    left: -500px;
    transform: translateY(0px) rotate(-5deg) scale(1);
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  25% {
    left: 25%;
    transform: translateY(-30px) rotate(5deg) scale(1.1);
  }
  50% {
    left: 50%;
    transform: translateY(-60px) rotate(0deg) scale(1.2);
  }
  75% {
    left: 75%;
    transform: translateY(-30px) rotate(-5deg) scale(1.1);
  }
  95% {
    opacity: 1;
  }
  100% {
    left: calc(100% + 500px);
    transform: translateY(0px) rotate(-10deg) scale(1);
    opacity: 0;
  }
}

/* Lisbon Slider Styles */
#section6 .lisbon-slider-section {
  --lisbon-gap: 1.25rem;
  --lisbon-speed: 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --lisbon-closed: 5rem;
  --lisbon-open: 30rem;
  --lisbon-accent: #ff6b35;
  
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

#section6 .lisbon-controls {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 20px;
}

#section6 .lisbon-nav-btn {
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s;
}

#section6 .lisbon-nav-btn:hover {
  background: var(--lisbon-accent);
}

#section6 .lisbon-nav-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

#section6 .lisbon-slider {
  overflow: hidden;
}

#section6 .lisbon-track {
  display: flex;
  gap: var(--lisbon-gap);
  align-items: flex-start;
  justify-content: center;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 40px;
}

#section6 .lisbon-track::-webkit-scrollbar {
  display: none;
}

#section6 .lisbon-card {
  position: relative;
  flex: 0 0 var(--lisbon-closed);
  height: 30rem;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  transition: flex-basis var(--lisbon-speed);
}

#section6 .lisbon-card[active] {
  flex-basis: var(--lisbon-open);
}

#section6 .lisbon-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--lisbon-speed);
}

#section6 .lisbon-card:hover .lisbon-card__bg {
  transform: scale(1.02);
}

#section6 .lisbon-card__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.7rem;
  padding: 0;
  background: linear-gradient(transparent 60%, rgba(0, 0, 0, 0.7) 100%);
  z-index: 2;
}

#section6 .lisbon-card__title {
  color: #fff;
  font-weight: 700;
  font-size: 1.35rem;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

#section6 .lisbon-card[active] .lisbon-card__content {
  flex-direction: row;
  align-items: flex-end;
  justify-content: center;
  padding: 1.5rem;
  gap: 1.1rem;
  background: linear-gradient(transparent 70%, rgba(0, 0, 0, 0.6) 100%);
}

#section6 .lisbon-card[active] .lisbon-card__title {
  writing-mode: horizontal-tb;
  transform: none;
  font-size: 2.4rem;
}

#section6 .lisbon-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  padding: 20px 0;
}

#section6 .lisbon-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: 0.3s;
  border: none;
  padding: 0;
}

#section6 .lisbon-dot.active {
  background: var(--lisbon-accent);
  transform: scale(1.2);
}

/* section 7 - Another section with shapes */
#section7{
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5vw;
  padding-bottom: 8vw;
  padding-top: 4vw;
  
  /* 改用 relative，跟住 Section 6 */
  position: relative;
  
  
  /* 全屏 Breakout 技術 - 用 negative margin */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
  overflow: visible;
}

#section7 .section7-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5vw;
  width: 100%;
  min-height: 80vh;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

#section7 .postcard-container {
  flex: 0 0 55%;
  max-width: 700px;
}

#section7 .phone-interaction-area {
  flex: 0 0 40%;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: blur(10px);
  border: 3px dashed rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

#section7 .phone-area-title {
  font-family: myFont;
  font-size: 2rem;
  color: #000000;
  text-align: center;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

#section7 .phone-area-subtitle {
  font-family: myFont;
  font-size: 1.3rem;
 color: #000000;
  text-align: center;
  margin: 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Owl Styles */
.owl-container {
  position: relative;
  width: 200px;
  height: 250px;
  margin: 2rem auto 0;
  cursor: grab;
  transition: none;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.owl-container:active {
  cursor: grabbing;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.4));
}

.owl-head {
  width: 160px;
  height: 100px;
  margin: auto;
  background: #74b9ff;
  border-radius: 100%;
  position: relative;
}

.owl-head:before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  border-right: 15px solid transparent;
  border-bottom: 15px solid #74b9ff;
  border-left: 15px solid transparent;
  transform: rotate(-24deg);
}

.owl-head:after {
  content: "";
  position: absolute;
  right: 20px;
  top: 0;
  border-right: 15px solid transparent;
  border-bottom: 15px solid #74b9ff;
  border-left: 15px solid transparent;
  transform: rotate(24deg);
}

.owl-eye {
  width: 100%;
  position: relative;
  top: 10px;
  z-index: 10;
}

.owl-eye:before {
  content: "";
  position: absolute;
  z-index: 5;
  left: -10px;
  top: 0;
  height: 95px;
  width: 95px;
  border-radius: 100%;
  background: #98e0f8;
}

.owl-eye:after {
  content: "";
  position: absolute;
  z-index: 1;
  right: -10px;
  top: 0;
  height: 95px;
  width: 95px;
  border-radius: 100%;
  background: #98e0f8;
}

.owl-eye-ball {
  width: 80px;
  height: 80px;
  background: #fff;
  position: absolute;
  z-index: 5;
  left: -3px;
  top: 8px;
  border-radius: 100%;
  padding: 10px;
  transition: transform 0.1s ease;
}

.owl-eye-ball:before {
  content: "";
  position: absolute;
  left: 10px;
  top: 10px;
  right: 10px;
  bottom: 10px;
  background: #000;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  border-radius: 100%;
}

.owl-eye-ball:after {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  height: 28px;
  width: 28px;
  border-radius: 100%;
  z-index: 5;
  background: #fff;
}

.owl-eye-ball.right-eye {
  right: -3px;
  left: inherit;
}

.beak {
  position: absolute;
  width: 0;
  height: 0;
  left: 29px;
  top: 50px;
  border-top: 60px solid #ef8e1b;
  border-right: 60px solid transparent;
  border-left: 50px solid transparent;
  z-index: 1;
}

.owl-body {
  height: 120px;
  width: 160px;
  background: #98e0f8;
  border-radius: 100%;
  position: relative;
  top: -10px;
  margin: auto;
}

.wings {
  position: absolute;
  left: -20px;
  top: 0;
  width: 50px;
  height: 100px;
  background: #74b9ff;
  border-radius: 50px 0;
  transform: rotate(-20deg);
  transform-origin: 30px 10px;
  animation: flapWings 1s ease-in-out infinite;
}

.wings:nth-child(2) {
  left: inherit;
  right: -20px;
  border-radius: 0 50px;
  transform: rotate(20deg);
  animation: flapWingsRight 1s ease-in-out infinite;
}

.owl-container.dragging .wings {
  animation-play-state: paused;
}

@keyframes flapWings {
  0%, 100% { transform: rotate(-20deg); }
  50% { transform: rotate(-50deg); }
}

@keyframes flapWingsRight {
  0%, 100% { transform: rotate(20deg); }
  50% { transform: rotate(50deg); }
}

.feets {
  position: absolute;
  left: 108px;
  bottom: -7px;
  width: 6px;
  height: 18px;
  background: #ef8e1b;
  border-radius: 100%;
  transform: rotate(7deg);
}

.feets:before {
  content: "";
  position: absolute;
  left: -8px;
  width: 6px;
  height: 18px;
  background: #ef8e1b;
  border-radius: 100%;
}

.feets:after {
  content: "";
  position: absolute;
  right: -8px;
  width: 6px;
  height: 18px;
  background: #ef8e1b;
  border-radius: 100%;
}

.feets.right {
  left: inherit;
  right: 55px;
  transform: rotate(-7deg);
}

.toni {
  position: absolute;
  left: 65px;
  top: 50%;
  height: 6px;
  width: 12px;
  background: #74b9ff;
  border-radius: 100%;
}

.toni:before {
  content: "";
  position: absolute;
  right: -20px;
  top: 0;
  height: 6px;
  width: 12px;
  background: #74b9ff;
  border-radius: 100%;
}

.toni:after {
  content: "";
  position: absolute;
  right: -10px;
  top: 12px;
  height: 6px;
  width: 12px;
  background: #74b9ff;
  border-radius: 100%;
}

#section7 .forever-message {
  flex: 1;
  min-width: 300px;
  color: white;
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

#section7 .forever-message .heading {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

#section7 .forever-message p {
  font-size: 1.5rem;
  line-height: 1.8;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.95);
}

/* Postcard Contact Form Styles */
.postcard-container {
  flex: 1;
  min-width: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.form-container {
  background-image: url("https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRfMVx65iXtOiBCF778euOnZ3eCE48yJzwYXA&usqp=CAU");
  background-size: 30%;
  border: solid white 5px;
  width: 100%;
  max-width: 700px;
  padding: 1.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2.3rem 3.7rem rgba(0, 0, 0, 0.19);
}

.form-container.form-submitted {
  background-image: none;
  box-shadow: none;
  border: none;
}

#section7 form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto 1fr auto;
  row-gap: 1.4rem;
  width: 100%;
  height: auto;
  min-height: 500px;
  padding: 2rem;
  background-color: white;
}

#section7 .form-heading {
  grid-column: 1/-1;
  grid-row: 1;
  align-self: center;
  text-align: center;
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-items: center;
  align-items: center;
  padding: 3.7rem 3.7rem 0;
}

#section7 .form-heading h1 {
  font-family: myFont, "Raleway", sans-serif;
  font-size: 5.1rem;
  font-weight: 300;
  justify-self: start;
  align-self: center;
  color: #000000;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.3),
               0 0 20px rgba(212, 175, 55, 0.2);
}

#section7 .stamp {
  justify-self: end;
  align-self: start;
  width: 9.6rem;
  height: 9.6rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  margin-top: -1rem;
  margin-right: -1rem;
}

#section7 input,
#section7 textarea {
  font-family: inherit;
  color: #252525;
  font-size: 1.8rem;
  border: none;
  transition: all 0.3s;
}

#section7 .form-input:hover,
#section7 textarea:hover {
  outline: solid #809bce 3px;
}

#section7 .form-input:focus,
#section7 textarea:focus {
  outline: solid #809bce 3px;
}

#section7 .message-box {
  grid-column: 1;
  grid-row: 2;
  padding: 2.3rem;
  border-right: solid #cecece 1px;
  min-height: 250px;
  align-self: stretch;
  margin: 0 0 0 3.7rem;
  resize: none;
}

#section7 .right {
  grid-column: 2;
  margin-right: 3.7rem;
}

#section7 #input-name {
  grid-row: 2;
  align-self: start;
}

#section7 #input-email {
  grid-row: 2;
  align-self: end;
}

#section7 .form-input {
  justify-self: center;
  align-self: end;
  padding: 2.3rem;
  width: 90%;
  border-bottom: solid #cecece 1px;
}

/* Postcard Style Submit Button */
.postcard-button {
  grid-column: 1 / -1;
  grid-row: 3;
  position: relative;
  cursor: pointer;
  padding: 1.5rem 3rem;
  background: linear-gradient(135deg, #74b9ff 0%, #98e0f8 100%);
  border: 3px solid #5da9e8;
  border-radius: 10px;
  color: #FFFFFF;
  font-family: myFont, 'Courier New', monospace;
  font-size: 1.3rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
 
  box-shadow: 0 4px 15px rgba(116, 185, 255, 0.4),
              inset 0 -3px 0 rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0;
  overflow: hidden;
}

.postcard-button::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: rotate(45deg);
  transition: all 0.5s ease;
}

.postcard-button:hover::before {
  left: 100%;
}


.postcard-button .button-text {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.5));
  transition: all 0.3s ease;
}

.postcard-button .postcard-stamp-icon {
  font-size: 1.8rem;
  animation: bounce 2s infinite, glow 2s ease-in-out infinite alternate;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(10deg); }
}

@keyframes glow {
  from { filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5)); }
  to { filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.9)); }
}

.postcard-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(116, 185, 255, 0.6),
              inset 0 -3px 0 rgba(0, 0, 0, 0.2),
              0 0 30px rgba(116, 185, 255, 0.4);
  background: linear-gradient(135deg, #84c9ff 0%, #a8f0ff 100%);
  border-color: #4da3e8;
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.6),
               0 0 20px rgba(212, 175, 55, 0.4),
               0 2px 4px rgba(0, 0, 0, 0.3);
}

.postcard-button:hover .button-text {
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.8));
}

.postcard-button:active {
  transform: translateY(0) scale(1);
  box-shadow: 0 2px 10px rgba(116, 185, 255, 0.4),
              inset 0 3px 5px rgba(0, 0, 0, 0.2);
}

/* Responsive layout */
@media (max-width: 1024px) {
  #section7 .section7-content {
    flex-direction: column;
    align-items: center;
  }
  
  #section7 .postcard-container,
  #section7 .phone-interaction-area {
    flex: 1 1 100%;
    max-width: 90%;
  }
  
  .owl-container {
    width: 160px;
    height: 200px;
  }
  
  .owl-head {
    width: 130px;
    height: 80px;
  }
  
  .owl-body {
    width: 130px;
    height: 100px;
  }
}

#section7 img{
  box-shadow: 0 0 30px rgba(147, 112, 219, 0.3);
}

/* section 3 - Road Animation Scene with Full Screen Effect */
#section3{
  min-height: 100vh;
  padding: 5vh 0; /* 增加上下空間 */
  margin-top: 130vh; /* 推低 section3，為 section2 留空間 + 轉場空間 */
  
  /* BREAKOUT: 突破main容器限制 */
  position: absolute;
  left: 50%;
  transform: translate3d(-50%, 0, 0); /* 硬件加速 */
  width: 100vw;
  overflow: hidden;
  
  /* 性能優化 */
  will-change: transform;
  contain: layout style paint;
  backface-visibility: hidden;
  
  /* Road background color */
  background: #4a483d;
}

/* Road Container - Full Screen */
.road-container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
}

.road-container > div {
  position: absolute;
}

/* Sky Background */
.road-sky {
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #416ba7 0%, #90bce3 50%);
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 1;
}

/* Japanese Movie Style Title */
.road-title {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 10;
  opacity: 0;
  animation: fadeInTitle 2s ease-out 0.5s forwards;
}

@keyframes fadeInTitle {
  to {
    opacity: 1;
  }
}

.road-title-japanese {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  color: #2c1810;
  letter-spacing: 0.3em;
  margin: 0;
  padding: 0 1rem;
  text-shadow: 
    0 2px 4px rgba(255, 255, 255, 0.8),
    0 4px 8px rgba(255, 255, 255, 0.6),
    0 0 20px rgba(255, 255, 255, 0.4);
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.15));
  line-height: 1.4;
}

.road-title-english {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1rem, 2.5vw, 1.8rem);
  font-weight: 400;
  color: #3d2817;
  letter-spacing: 0.15em;
  margin: 0.8rem 0 0 0;
  padding: 0 1rem;
  text-shadow: 
    0 1px 3px rgba(255, 255, 255, 0.8),
    0 2px 6px rgba(255, 255, 255, 0.5);
  filter: drop-shadow(0 1px 8px rgba(0, 0, 0, 0.1));
  font-style: italic;
  opacity: 0.95;
}


.road-sun {
  position: absolute;
  top: 4em;
  left: 4em;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-image: radial-gradient(circle at 50%, #ffffff 50%, #f5de19);
  box-shadow: 0px 0px 40px #f5de19, inset 0px 0px 100px #f5de19;
  z-index: 2;
  will-change: opacity;
  animation: sunPulse 8s ease-in-out infinite;
}

@keyframes sunPulse {
  50% {
    opacity: 0.85;
  }
}

/* Clouds */
.road-clouds {
  width: 100px;
  height: 50px;
  border-radius: 50%;
  box-shadow: 400px 60px 10px 0px #fff, 
              350px 60px 10px 0px #fff,
              385px 40px 10px 0px #fff,
              1200px 60px 10px 0px #fff, 
              1150px 60px 10px 0px #fff,
              1185px 40px 10px 0px #fff,
              850px 150px 12px 0px #fff,
              900px 130px 12px 0px #fff,  
              1750px 150px 12px 0px #fff,
              1800px 130px 12px 0px #fff;
  opacity: 0.3;
  animation: animcloud linear 80s infinite;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  z-index: 2;
}

/* Mountains - Mount Fuji Style */
.darkColor {
  background: #265D88;
}

.lighterColor {
  background: white;
}

.road-mountains.mountain {
  position: absolute;
  height: 50%;
  aspect-ratio: 3.5/1;
  width: auto;
  bottom: 40%;
  left: 50%;
  transform: translateX(-50%) scaleX(1.1) translateZ(0);
  transform-origin: 50% 100%;
  clip-path: polygon(7% 94%, 14% 84%, 20% 72%, 30% 50%, 34.8% 38%, 40.5% 20%, 44.5% 3%, 45% 2%, 49% 2.5%, 52% 2%, 55% 0%, 55.3% 0.5%, 58.2% 15%, 62% 30%, 65% 39.5%, 70% 53%, 75% 63%, 82% 75%, 90% 88%, 100% 100%, 0% 100%);
  animation: anim50 linear 60s infinite;
  will-change: transform;
  backface-visibility: hidden;
  z-index: 3;
}

.patch0 {
  width: 100%;
  aspect-ratio: 3.6/1;
  border-radius: 50%;
  position: absolute;
  top: -42%;
}

.patch1 {
  width: 59%;
  aspect-ratio: 5/1;
  border-radius: 50%;
  position: absolute;
  transform: rotate(-40deg);
  top: -15.6%;
  left: 12%;
}

.patch2 {
  width: 60%;
  aspect-ratio: 5/1;
  border-radius: 50%;
  position: absolute;
  transform: rotate(-70deg);
  top: -58%;
  left: 19%;
}

.patch3 {
  width: 10%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  position: absolute;
  top: 46%;
  left: 45%;
}

.patch4 {
  width: 10%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  position: absolute;
  top: 42%;
  left: 49%;
}

.patch5 {
  width: 12%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  position: absolute;
  top: 40%;
  left: 51%;
}

.patch6 {
  width: 60%;
  aspect-ratio: 4/1;
  border-radius: 50%;
  position: absolute;
  transform: rotate(36deg);
  top: -24%;
  left: 25%;
}

.patch7 {
  width: 13%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  position: absolute;
  top: 55%;
  left: 43%;
}

.patch8 {
  width: 13%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  position: absolute;
  top: 52%;
  left: 48%;
}

.patch9 {
  width: 13%;
  aspect-ratio: 1/1;
  border-radius: 30% 20%;
  position: absolute;
  transform: scaleY(0.6) skew(20deg) rotate(-40deg);
  top: 49%;
  left: 51%;
}

.patch10 {
  width: 21%;
  aspect-ratio: 2/1;
  border-radius: 50%;
  position: absolute;
  transform: rotate(320deg);
  top: 60%;
  left: 20%;
}

@keyframes brightPatch {
  0% {
    filter: brightness(0.6);
  }
  100% {
    filter: brightness(1);
  }
}

/* Distant Trees - Layer 1 */
.road-distant-trees {
  width: 0;
  height: 0;
  border-bottom: 20px solid #45667f;
  border-left: 600px solid transparent;
  border-right: 600px solid transparent;
  display: block;
  bottom: 40%;
  margin-bottom: 30px;
  animation: anim100 linear 45s infinite;
  will-change: transform;
  transform: translateZ(0);
  z-index: 4;
}

.road-distant-trees:after {
  content: "";
  width: 0;
  height: 0;
  border-bottom: 20px solid #45667f;
  border-left: 600px solid transparent;
  border-right: 600px solid transparent;
  display: block;
  position: absolute;
  bottom: -20px;
  left: 600px;
}

.road-distant-trees:before {
  content: "";
  position: absolute;
  bottom: -40px;
  left: -600px;
  width: 3000px;
  height: 20px;
  background: #45667f;
}

/* Distant Trees - Layer 2 */
.road-distant-trees2 {
  width: 0;
  height: 0;
  border-bottom: 20px solid #355a60;
  border-left: 300px solid transparent;
  border-right: 600px solid transparent;
  display: block;
  bottom: 40%;
  margin-bottom: 18px;
  animation: anim100 linear 20s infinite;
  will-change: transform;
  transform: translateZ(0);
  z-index: 5;
}

.road-distant-trees2:after {
  content: "";
  width: 0;
  height: 0;
  border-bottom: 20px solid #355a60;
  border-left: 300px solid transparent;
  border-right: 600px solid transparent;
  display: block;
  position: absolute;
  bottom: -20px;
  left: 600px;
}

.road-distant-trees2:before {
  content: "";
  position: absolute;
  bottom: -32px;
  left: -300px;
  width: 1800px;
  height: 18px;
  background: #355a60;
}

/* Distant Trees - Layer 3 */
.road-distant-trees3 {
  width: 200%;
  height: 5%;
  bottom: 40%;
  background: #45694d;
  background: radial-gradient(circle at 50% 100%, #45694d 30%, transparent 31%);
  background-size: 30px 100%;
  animation: anim40 linear 10s infinite;
  will-change: transform;
  transform: translateZ(0);
  z-index: 6;
}

/* Field */
.road-field {
  width: 100%;
  height: 20%;
  background: linear-gradient(#808c5e, #576b3c);
  bottom: 20%;
  z-index: 7;
}

/* Road Signs */
.road-signs {
  position: absolute;
  width: 300%;
  height: 100%;
  bottom: 0;
  left: 0;
  animation: animRoadSign linear 40s infinite;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  z-index: 9;
}

.road-sign {
  position: absolute;
  bottom: 22%;
  width: 480px;
  height: 640px;
  will-change: auto;
  contain: layout style;
}

.sign-pole {
  position: absolute;
  width: 32px;
  height: 360px;
  background: linear-gradient(to right, #4a4a4a, #6a6a6a);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 8px;
  box-shadow: 8px 0 20px rgba(0, 0, 0, 0.3);
}

.sign-board {
  position: absolute;
  width: 480px;
  height: 380px;
  background: #006db8;
  border: 5px solid white;
  border-radius: 10px;
  top: 180px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3), inset 0 -8px 24px rgba(255, 255, 255, 0.4);
  position: relative;
}

.sign-board::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  height: 15px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), rgba(240, 248, 255, 0.6));
  border-radius: 8px 8px 0 0;
  filter: blur(2px);
  pointer-events: none;
}

.sign-board::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 10%;
  right: 10%;
  height: 10px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.95), transparent);
  border-radius: 50%;
  filter: blur(3px);
}

.sign-text {
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  line-height: 1;
  letter-spacing: 0.5px;
  z-index: 1;
}

.sign-text-en {
  color: white;
  font-size: 0.9rem;
  font-weight: 300;
  text-align: center;
  line-height: 1;
  letter-spacing: 1px;
  z-index: 1;
}

.sign-image {
  width: 90%;
  height: 300px;
  overflow: hidden;
  border-radius: 8px;
  border: 4px solid white;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
  
}

.sign-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  will-change: auto;
  transform: translateZ(0);
  image-rendering: -webkit-optimize-contrast;
}

@keyframes animRoadSign {
  0% { transform: translate3d(0%, 0px, 0); }
  100% { transform: translate3d(-100%, 0px, 0); }
}

.road-field-lines {
  width: 5px;
  height: 100px;
  background: #4c5f27;
  bottom: 0%;
  animation: animfield linear 10s infinite;
  border-left: 3px solid #808c5e;
  border-right: 3px solid #576b3c;
  will-change: transform;
  transform: translateZ(0);
  z-index: 8;
}

.road-field-lines2 {
  width: 5px;
  height: 100px;
  background: #4c5f27;
  bottom: 0%;
  animation: animfield linear 10s infinite;
  animation-delay: -5s;
  border-left: 3px solid #808c5e;
  border-right: 3px solid #576b3c;
  will-change: transform;
  transform: translateZ(0);
  z-index: 8;
}

/* Grass */
.road-grass-wrap {
  width: 200%;
  height: 50px;
  background-color: #4c5f27;
  background: linear-gradient(to top, #4c5f27 10px, transparent 10px);
  bottom: 20%;
  display: block;
  z-index: 9;
}

.road-grass {
  width: 0;
  height: 0;
  border-bottom: 20px solid #4c5f27;
  border-left: 300px solid transparent;
  border-right: 600px solid transparent;
  display: block;
  bottom: 10px;
  animation: anim100 linear 6s infinite;
  position: absolute;
  will-change: transform;
  transform: translateZ(0);
}

.road-grass:after {
  content: "";
  width: 0;
  height: 0;
  border-bottom: 20px solid #4c5f27;
  border-left: 300px solid transparent;
  border-right: 600px solid transparent;
  display: block;
  position: absolute;
  bottom: -20px;
  left: 600px;
}

/* Road Surface */
.road-surface {
  bottom: 0;
  width: 100%;
  height: 20%;
  background: linear-gradient(to bottom, #4a483d 0%, #4c4f48 30%);
  z-index: 10;
}

/* Road Lines */
.road-lines {
  bottom: 0;
  margin-bottom: 1%;
  width: 200%;
  height: 10%;
  background: repeating-linear-gradient(90deg, white 0%, white 10%, transparent 10%, transparent 20%);
  animation: anim40 linear 4s infinite;
  will-change: transform;
  transform: translateZ(0);
  z-index: 11;
}

/* Road Car */
.road-car {
  position: absolute;
  left: 15%;
  bottom: 80px;
  transform: translateX(-20%) translateZ(0);
  width: 400px;
  height: 165px;
  z-index: 12;
  will-change: transform;
  animation: carBounce 1s ease-in-out infinite;
}

.road-car img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.road-wheels {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.road-wheel {
  position: absolute;
  bottom: 0;
  width: 80px;
  height: 80px;
  background-image: url('./images/wheel.png');
  background-position: center;
  background-size: cover;
  will-change: transform;
  transform: translateZ(0);
  animation: wheelRotate 0.4s linear infinite;
}

.front-wheel {
  left: 278px;
}

.back-wheel {
  left: 32px;
}

@keyframes carBounce {
  0%, 100% {
    transform: translateX(-20%) translateY(0px) translateZ(0);
  }
  50% {
    transform: translateX(-20%) translateY(2px) translateZ(0);
  }
}

@keyframes wheelRotate {
  from {
    transform: rotate(0deg) translateZ(0);
  }
  to {
    transform: rotate(360deg) translateZ(0);
  }
}

/* Content Wrapper */
.road-content-wrapper {
  position: absolute;
  z-index: 100;
  text-align: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 800px;
}

/* Animations */
@keyframes anim40 {
  0% { transform: translate3d(0px, 0px, 0); }
  100% { transform: translate3d(-40%, 0px, 0); }
}

@keyframes anim100 {
  0% { transform: translate3d(0px, 0px, 0); }
  100% { transform: translate3d(-100%, 0px, 0); }
}

@keyframes anim50 {
  0% { transform: translate3d(0px, 0px, 0); }
  100% { transform: translate3d(-50%, 0px, 0); }
}

@keyframes animcloud {
  0% { transform: translate3d(0px, 0px, 0); }
  100% { transform: translate3d(-900px, 0px, 0); }
}

@keyframes animfield {
  0% { transform: translate3d(1000px, 0px, 0) skewX(61deg); }
  100% { transform: translate3d(-100px, 0px, 0) skewX(-61deg); }
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
  #section3 {
    margin-top: 130vh;
  }

  .road-sun {
    width: 80px;
    height: 80px;
    top: 3em;
    left: 3em;
  }

  .road-mountains.mountain {
    height: 180px;
  }
  
  .road-distant-trees {
    border-bottom: 15px solid #45667f;
    border-left: 450px solid transparent;
    border-right: 450px solid transparent;
  }

  .road-distant-trees:after {
    border-bottom: 15px solid #45667f;
    border-left: 450px solid transparent;
    border-right: 450px solid transparent;
    left: 450px;
  }

  .road-distant-trees:before {
    left: -450px;
    width: 2000px;
    height: 15px;
  }

  .road-sign {
    width: 360px;
    height: 480px;
  }
  
  .sign-pole {
    width: 24px;
    height: 280px;
  }
  
  .sign-board {
    width: 360px;
    height: 270px;
    border: 4px solid white;
    border-radius: 8px;
  }
  
  .sign-text {
    font-size: 1.5rem;
    margin-top: 12px;
    margin-bottom: 4px;
  }
  
  .sign-text-en {
    font-size: 0.75rem;
    margin-bottom: 8px;
  }
  
  .sign-image {
    height: 180px;
    border: 3px solid white;
    
  }
  
  .road-content-wrapper {
    width: 90%;
  }
  
  .road-content-wrapper h2 {
    font-size: 4vw;
  }
  
  .road-content-wrapper p {
    font-size: 1rem;
  }
  
  .road-car {
    width: 300px;
    height: 300px;
    left: 15%;
  }
  
  .road-wheel {
    width: 60px;
    height: 60px;
    bottom: 0;
  }
  
  .front-wheel {
    left: 208px;
  }
  
  .back-wheel {
    left: 24px;
  }
}

@media (max-width: 576px) {
  #section3 {
    margin-top: 130vh;
  }

  .road-sun {
    width: 60px;
    height: 60px;
    top: 2em;
    left: 2em;
  }

  .road-title {
    top: 10%;
    padding: 0 1rem;
  }

  .road-title-japanese {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
    letter-spacing: 0.2em;
  }

  .road-title-english {
    font-size: clamp(0.8rem, 3vw, 1.2rem);
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
  }

  .road-clouds {
    width: 60px;
    height: 30px;
    box-shadow: 250px 40px 8px 0px #fff, 
                220px 40px 8px 0px #fff,
                240px 30px 8px 0px #fff,
                800px 40px 8px 0px #fff, 
                770px 40px 8px 0px #fff,
                790px 30px 8px 0px #fff;
  }

  .road-mountains.mountain {
    height: 100px;
    bottom: 35%;
  }

  .road-distant-trees {
    border-bottom: 12px solid #45667f;
    border-left: 300px solid transparent;
    border-right: 300px solid transparent;
    bottom: 35%;
    margin-bottom: 20px;
  }

  .road-distant-trees:after {
    border-bottom: 12px solid #45667f;
    border-left: 300px solid transparent;
    border-right: 300px solid transparent;
    left: 300px;
    bottom: -12px;
  }

  .road-distant-trees:before {
    left: -300px;
    width: 1500px;
    height: 12px;
    bottom: -24px;
  }

  .road-distant-trees2,
  .road-distant-trees3 {
    display: none;
  }

  .road-sign {
    width: 220px;
    height: 340px;
    bottom: 20%;
  }
  
  .sign-pole {
    width: 16px;
    height: 180px;
  }
  
  .sign-board {
    width: 220px;
    height: 170px;
    border: 2px solid white;
    border-radius: 5px;
    top: 140px;
  }
  
  .sign-text {
    font-size: 1rem;
    margin-top: 8px;
    margin-bottom: 2px;
  }
  
  .sign-text-en {
    font-size: 0.55rem;
    margin-bottom: 4px;
  }
  
  .sign-image {
    height: 110px;
    border: 2px solid white;
    max-width: 90%;
  }
  
  .road-field {
    height: 18%;
    bottom: 18%;
  }
  
  .road-surface {
    height: 18%;
  }

  .road-lines {
    background-size: 80px 10px;
  }
  
  .road-content-wrapper h2 {
    font-size: 6vw;
  }
  
  .road-content-wrapper p {
    font-size: 0.85rem;
  }
  
  .road-car {
    width: 180px;
    height: 180px;
    left: 8%;
    bottom: 40px;
  }
  
  .road-wheel {
    width: 36px;
    height: 36px;
    top: 40px;
  }
  
  .front-wheel {
    left: 125px;
  }
  
  .back-wheel {
    left: 14px;
  }
}

footer{
  text-align: center;
  padding: 2rem;
  color: var(--primary-color);
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  font-family: var(--heading-font);
}

/* Side Navigation Menu - Harry Potter Theme */
.side-nav-menu {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9998;
  pointer-events: none;
}

.side-nav-container {
  background: rgba(20, 20, 40, 0.6);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(212, 175, 55, 0.3);
  border-radius: 15px;
  padding: 1.5rem 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  pointer-events: auto;
  transition: all 0.3s ease;
}

.side-nav-container:hover {
  background: rgba(20, 20, 40, 0.8);
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: 0 12px 48px rgba(212, 175, 55, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.side-nav-title {
  font-family: myFont, serif;
  font-size: 0.9rem;
  color: #d4af37;
  text-align: center;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.side-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.side-nav-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.side-nav-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, #d4af37 0%, #ffd700 100%);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.side-nav-item:hover::before {
  transform: scaleY(1);
}

.side-nav-item:hover {
  background: rgba(212, 175, 55, 0.1);
  transform: translateX(-5px);
}

.side-nav-item.active {
  background: rgba(212, 175, 55, 0.2);
  border-left: 3px solid #d4af37;
}

.side-nav-item.active::before {
  transform: scaleY(1);
}

.nav-wand {
  font-size: 1rem;
  opacity: 0.6;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.5));
}

.side-nav-item:hover .nav-wand,
.side-nav-item.active .nav-wand {
  opacity: 1;
  transform: scale(1.2) rotate(15deg);
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.8));
}

.nav-text {
  font-family: myFont, serif;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.side-nav-item:hover .nav-text,
.side-nav-item.active .nav-text {
  color: #d4af37;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Responsive - Hide on mobile */
@media (max-width: 768px) {
  .side-nav-menu {
    display: none;
  }
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-text {
  font-family: myFont;
  font-size: 1.5rem;
  color: #000000;
  
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  background: linear-gradient(135deg, #74b9ff 0%, #98e0f8 100%);
  border: 2px solid #5da9e8;
  border-radius: 8px;
  color: #FFFFFF;
  text-decoration: none;
  font-family: myFont, 'Courier New', monospace;
  font-size: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;

  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(116, 185, 255, 0.4),
              inset 0 -2px 0 rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.footer-link::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: rotate(45deg);
  transition: all 0.5s ease;
}

.footer-link:hover::before {
  left: 100%;
}

.footer-link:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(116, 185, 255, 0.6),
              inset 0 -2px 0 rgba(0, 0, 0, 0.2),
              0 0 25px rgba(116, 185, 255, 0.4);
  background: linear-gradient(135deg, #84c9ff 0%, #a8f0ff 100%);
  border-color: #4da3e8;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.6),
               0 0 18px rgba(212, 175, 55, 0.4),
               0 2px 3px rgba(0, 0, 0, 0.3);
}

.footer-icon {
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.footer-link:hover .footer-icon {
  transform: scale(1.2) rotate(10deg);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}

/* Polaroid Rain: Matter.js canvas inside #section2, full section (no popup) */
.polaroid-rain-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 55;
  pointer-events: none;
}
.polaroid-rain-overlay canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  cursor: grab;
  pointer-events: auto;
}
.polaroid-rain-overlay canvas:active {
  cursor: grabbing;
}
.polaroid-rain-overlay .polaroid-rain-close {
  pointer-events: auto;
}

.polaroid-rain-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 56;
  width: 44px;
  height: 44px;
  border: 2px solid var(--primary-color);
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-color);
  font-size: 1.5rem;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 0.2s, background 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.polaroid-rain-close:hover {
  background: var(--secondary-color);
  color: #fff;
  transform: scale(1.08);
}

.polaroid-rain-close:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

/* ========== RESPONSIVE ========== */

/* Tablet and below */
@media (max-width: 991px) {
  .w-full {
    width: calc(100vw - 2rem) !important;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  body {
    font-size: 16px;
  }

  .heading {
    font-size: clamp(2rem, 8vw, 4rem);
  }

  header {
    width: 95%;
  }

  header nav {
    padding: 8px 14px;
  }

  #section1 {
    width: 90vw;
    padding: 0 1rem;
  }

  #section1 h1 {
    font-size: clamp(2.5rem, 12vw, 6rem);
  }

  #section1 p {
    font-size: 1.2rem !important;
  }

  #snitch-wrapper {
    width: 35vw;
    max-width: 280px;
  }

  .feature-wrapper {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    margin-top: 4rem;
  }

  .feature-box {
    padding: 1.2rem;
  }

  /* Section2 響應式全寬度 */
  #section2 {
    width: 100vw;
    padding: 4vw 1rem;
  }

  #section2 .content-wrapper {
    max-width: 100%;
    padding: 0 1rem;
  }

  .feature-wrapper {
    padding: 0 1rem;
    gap: 1.2rem;
    margin-top: 4rem;
  }

  /* Hong Kong Theme Responsive */
  .floating-neon {
    font-size: 2rem;
    padding: 0.8rem 0.4rem;
  }
  
  .neon-cyan {
    top: 10%;
    left: 6%;
  }
  
  .neon-magenta {
    top: 20%;
    right: 8%;
  }
  
  .neon-amber {
    top: 65%;
    left: 12%;
  }
  
  .neon-green {
    top: 75%;
    right: 15%;
  }

  .hk-night-silhouettes {
    height: 140px;
  }

  /* 月亮響應式 */
  .moon {
    width: 80px;
    height: 80px;
    top: 12%;
    right: 8%;
  }

  .cat-runner {
    width: 80px;
    height: 80px;
    background-size: 400% 400%;
    bottom: 8%;
  }

  /* Section2 手機響應式全寬度 */
  #section2 {
    width: 100vw;
    padding: 3vw 0.5rem;
  }
  
  #section2 .content-wrapper {
    padding: 0 0.5rem;
  }
  
  .feature-wrapper {
    grid-template-columns: 1fr;
    padding: 0 0.5rem;
    gap: 1rem;
    margin-top: 2rem;
  }

  /* Hong Kong Theme Mobile */
  .floating-neon {
    font-size: 1.5rem;
    padding: 0.6rem 0.3rem;
  }
  
  .neon-cyan {
    top: 8%;
    left: 4%;
  }
  
  .neon-magenta {
    top: 18%;
    right: 6%;
  }
  
  .neon-amber {
    top: 70%;
    left: 8%;
  }
  
  .neon-green {
    top: 78%;
    right: 10%;
  }

  /* 月亮手機響應式 */
  .moon {
    width: 60px;
    height: 60px;
    top: 10%;
    right: 5%;
  }

  .hk-night-silhouettes {
    height: 120px;
  }

  .cat-runner {
    width: 64px;
    height: 64px;
    bottom: 5%;
    background-size: 350% 350%;
  }

  #section5-office-container .cat-runner {
    width: 64px;
    height: 64px;
  }

  #section3 .content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* 改為左對齊 */
    gap: 1.5rem;
    position: relative;
    z-index: 15; /* 確保在櫻花之上 */
    margin: 0 40px; /* 手機版左邊距 - 調整為中間一些 */
    max-width: 300px; /* 手機版避開富士山 */
  }

  #section3 .content {
    text-align: left;
  }
  
  /* Mobile sakura scene */
  #sakura-scene {
    height: 100vh; /* 手機版確保全高 */
  }
  
  /* Mobile Lottie flowers */
  #flower-lottie {
    width: 120px !important;
    height: 120px !important;
    left: 5% !important;
    top: 65% !important;
  }
  
  #flower-lottie-2 {
    width: 100px !important;
    height: 100px !important;
    right: 15% !important;
    top: 75% !important;
  }
  
  /* Mobile video adjustment */
  #section3 video,
  .tv-frame {
    width: 280px !important;
    height: 200px !important;
  }
  
  .under-tv {
    max-width: 280px;
  }
  
  .connector {
    margin-left: 50px;
  }
  
  /* Mobile diving sprite adjustment */
  .diving-sprite {
    width: 80px;
    height: 80px;
    right: 10%;
    top: 15%;
  }
  
  .water-bubble {
    width: 6px;
    height: 6px;
  }
  
  .sakura-petal {
    width: 8px; /* 手機版較小花瓣 */
    height: 8px;
  }

  /* Section 4 平板響應式 */
  #section4 {
    min-height: 100vh;
    padding-top: 5vh;
    padding-bottom: 0;
    margin-top: 260vh;
  }

  #section4 img {
    border: 6px solid white;
  }

  #section4 .img1 {
    max-width: 240px;
    top: 10%;
    left: 6%;
    transform: rotate(10deg);
  }

  #section4 .img2 {
    max-width: 320px;
    right: 6%;
    top: 28%;
    transform: rotate(-8deg);
  }

  #section4 .img3 {
    max-width: 280px;
    left: 12%;
    bottom: 15%;
    transform: rotate(12deg);
  }

  /* Section 5 平板響應式 */
  #section5 {
    min-height: 100vh;
    padding-top: 2rem;
    padding-bottom: 4rem;
  }

  #section5-main-container {
    flex-direction: column;
    gap: 3rem;
    padding: 2rem 1rem;
  }

  #section5-window-container {
    width: 80%;
    height: 50vh;
    margin-left: 0;
  }

  #section5-office-container {
    width: 90%;
    height: 60vh;
    margin-right: 0;
    transform: scale(1);
  }

  #section5-full-elements-group {
    height: 45vh;
    width: 30vh;
  }

  .desk-container {
    transform: translateY(-120px);
  }

  .desk {
    width: 500px;
  }

  .desk::before,
  .desk::after {
    width: 16px;
    height: 130px;
  }

  .board {
    width: 160px;
    height: 160px;
    font-size: 0.7rem;
  }

  .board strong {
    font-size: 0.85rem;
  }

  .clock {
    width: 85px;
    height: 85px;
  }

  .imac {
    width: 200px;
    height: 135px;
  }

  .valentine-scroller-container {
    font-size: 0.8rem;
  }

  .photo-frames-container {
    width: 90%;
  }

  .photo-frame {
    width: 60px !important;
    height: 75px !important;
  }

  .photo-frame.frame1 {
    width: 70px !important;
    height: 85px !important;
  }

  .photo-frame.frame2 {
    width: 60px !important;
    height: 75px !important;
  }

  .photo-frame.frame3 {
    width: 70px !important;
    height: 55px !important;
  }

  .photo-frame.frame4 {
    width: 65px !important;
    height: 65px !important;
  }

  .vintage-frame-container {
    width: 180px;
    height: 180px;
  }

  .vintage-frame img {
    max-width: 150px;
    max-height: 150px;
  }


  #section5 .product-section {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  #section5 {
    padding-top: 3rem;
    padding-bottom: 4rem;
    min-height: auto;
  }

  #section6 {
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 1rem 4rem;
    min-height: auto;
    text-align: center;
  }

  #section6 img {
    max-width: 100% !important;
    width: 100%;
  }

  #section6 .content-wrapper {
    order: 2;
  }

  footer {
    padding: 1.5rem;
    font-size: 0.9rem;
  }
  
  .footer-text {
    font-size: 1rem;
  }
  
  .footer-links {
    gap: 1rem;
  }
  
  .footer-link {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
  
  .footer-icon {
    font-size: 1rem;
  }

  /* Sushi Responsive */
  .sushi-maker-container img {
    width: 120px !important;
    height: 120px !important;
  }
  
  .sushi-maker-container {
    top: 40% !important;
  }

  /* Hello Kitty Responsive */
  .hellokitty-container img {
    width: 100px !important;
    height: 100px !important;
  }

  /* Inviting and Mask Responsive */
  .inviting-img {
    width: 80px !important;
  }
  
  .mask-img {
    width: 70px !important;
  }
  
  /* Lisbon Slider Tablet Responsive */
  #section6 .lisbon-slider-section {
    --lisbon-closed: 4.5rem;
    --lisbon-open: 28rem;
    padding: 30px 15px;
  }
  
  #section6 .lisbon-nav-btn {
    width: 2.2rem;
    height: 2.2rem;
    font-size: 1.3rem;
  }
  
  #section6 .lisbon-card {
    height: 28rem;
  }
  
  #section6 .lisbon-card[active] .lisbon-card__title {
    font-size: 2.2rem;
  }
  
  /* Jello Text Responsive */
  #section6 .lisbon-jello-txt {
    font-size: 12vw;
    letter-spacing: -0.3vw;
  }
  
  #section6 .lisbon-subtitle {
    font-size: 1.2rem;
  }
  
  /* Lisbon Carousel Tablet Responsive */
  #section6 .lisbon-carousel-container {
    max-width: 400px;
    height: 60vh;
  }
  
  #section6 .lisbon-carousel-container .carousel-track {
    width: 350px;
  }
  
  #section6 .lisbon-carousel-container .card {
    width: 320px;
    height: 180px;
  }
  
  #section6 .lisbon-carousel-container .nav-arrow {
    width: 55px;
    height: 55px;
    font-size: 1.8rem;
  }
  
  #section6 .lisbon-carousel-container .member-name {
    font-size: 1.8rem;
  }
  
  #section6 .lisbon-carousel-container .member-role {
    font-size: 1rem;
  }
  
  #section6 .lisbon-carousel-container .member-name::before,
  #section6 .lisbon-carousel-container .member-name::after {
    width: 50px;
  }
  
  #section6 .lisbon-carousel-container .member-name::before {
    left: -70px;
  }
  
  #section6 .lisbon-carousel-container .member-name::after {
    right: -70px;
  }
}

/* Mobile */
@media (max-width: 576px) {
  .w-full {
    width: calc(100vw - 1rem) !important;
  }

  .heading {
    font-size: clamp(1.75rem, 7vw, 3rem);
    margin-bottom: 1rem;
  }

  header nav {
    padding: 6px 10px;
    border-radius: 30px;
  }

  .btn {
    padding: 6px 14px;
    font-size: 0.9rem;
  }

  #section1 {
    width: 95vw;
  }

  #section1 h1 {
    font-size: clamp(2rem, 10vw, 4rem);
  }

  #section1 p {
    font-size: 1rem !important;
  }

  #snitch-wrapper {
    width: 45vw;
    max-width: 200px;
  }



  #section4 {
    min-height: 100vh;
    padding-top: 3vh;
    padding-bottom: 0;
  }

  #section4 img {
    border: 4px solid white;
  }

  #section4 .img1 {
    max-width: 180px !important;
    width: 180px;
    top: 10% !important;
    left: 3% !important;
    transform: rotate(6deg) !important;
  }

  #section4 .img2 {
    max-width: 220px !important;
    width: 220px;
    right: 3% !important;
    top: 35% !important;
    transform: rotate(-5deg) !important;
  }

  #section4 .img3 {
    max-width: 190px !important;
    width: 190px;
    left: 5% !important;
    bottom: 15% !important;
    transform: rotate(8deg) !important;
  }

  /* Section 5 手機版隱藏 */
  #section5 {
    visibility: hidden !important;
  }

  .section5-mobile-message {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 3rem 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
  }

  .section5-mobile-message h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
  }

  .section5-mobile-message p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
    opacity: 0.95;
  }

  .section5-mobile-message .desktop-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
  }

  #section6 img {
    max-width: 320px !important;
  }

  .product {
    padding: 1.2rem;
  }

  .product .name {
    font-size: 1.1rem;
  }

  /* Sushi Mobile */
  .sushi-maker-container img {
    width: 100px !important;
    height: 100px !important;
  }
  
  .sushi-maker-container {
    top: 35% !important;
  }

  /* Hello Kitty Mobile */
  .hellokitty-container img {
    width: 80px !important;
    height: 80px !important;
  }
  
  .hellokitty-container {
    left: 55% !important;
    top: 40% !important;
  }

  /* Inviting and Mask Mobile */
  .inviting-img {
    width: 60px !important;
  }
  
  .inviting-container {
    left: 25% !important;
    top: 20% !important;
  }
  
  .mask-img {
    width: 50px !important;
  }
  
  .mask-container {
    right: 10% !important;
    top: 60% !important;
  }
  
  /* Lisbon Slider Mobile Responsive */
  #section6 .lisbon-slider-section {
    --lisbon-closed: 100%;
    --lisbon-open: 100%;
    --lisbon-gap: 0.8rem;
    padding: 20px 10px;
  }

  #section6 .lisbon-track {
    flex-direction: column;
    scroll-snap-type: y mandatory;
    gap: 0.8rem;
    padding-bottom: 20px;
  }

  #section6 .lisbon-card {
    height: auto;
    min-height: 80px;
    flex: 0 0 auto;
    width: 100%;
    scroll-snap-align: start;
  }

  #section6 .lisbon-card[active] {
    min-height: 350px;
  }

  #section6 .lisbon-card__bg {
    object-fit: contain;
  }

  #section6 .lisbon-card__content {
    flex-direction: row;
    justify-content: center;
    padding: 1rem;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(transparent 65%, rgba(0, 0, 0, 0.7) 100%);
  }

  #section6 .lisbon-card__title {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 1.2rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
  }

  #section6 .lisbon-card[active] .lisbon-card__content {
    align-items: flex-end;
    padding: 1.5rem;
    background: linear-gradient(transparent 70%, rgba(0, 0, 0, 0.6) 100%);
  }

  #section6 .lisbon-card[active] .lisbon-card__title {
    font-size: 1.8rem;
  }

  #section6 .lisbon-dots {
    display: none;
  }

  #section6 .lisbon-controls {
    width: 100%;
    justify-content: space-between;
    padding: 0 15px 20px;
  }

  #section6 .lisbon-nav-btn {
    width: 2rem;
    height: 2rem;
    font-size: 1.2rem;
  }
  
  /* Jello Text Mobile Responsive */
  #section6 .lisbon-jello-txt {
    font-size: 18vw;
    letter-spacing: -1vw;
  }
  
  #section6 .lisbon-subtitle {
    font-size: 1rem;
    margin: 1rem 0 2rem;
  }
  
  /* Lisbon Carousel Mobile Responsive */
  #section6 .lisbon-carousel-container {
    max-width: 350px;
    height: 60vh;
  }
  
  #section6 .lisbon-carousel-container .carousel-track {
    width: 300px;
  }
  
  #section6 .lisbon-carousel-container .card {
    width: 280px;
    height: 158px;
  }
  
  #section6 .lisbon-carousel-container .card.up-2 {
    transform: translateY(-200px) scale(0.75) translateZ(-300px);
  }

  #section6 .lisbon-carousel-container .card.up-1 {
    transform: translateY(-100px) scale(0.85) translateZ(-100px);
  }

  #section6 .lisbon-carousel-container .card.down-1 {
    transform: translateY(100px) scale(0.85) translateZ(-100px);
  }

  #section6 .lisbon-carousel-container .card.down-2 {
    transform: translateY(200px) scale(0.75) translateZ(-300px);
  }
  
  #section6 .lisbon-carousel-container .nav-arrow {
    width: 50px;
    height: 50px;
    font-size: 1.6rem;
  }
  
  #section6 .lisbon-carousel-container .member-name {
    font-size: 1.5rem;
  }
  
  #section6 .lisbon-carousel-container .member-role {
    font-size: 0.9rem;
  }
  
  #section6 .lisbon-carousel-container .member-name::before,
  #section6 .lisbon-carousel-container .member-name::after {
    width: 40px;
  }
  
  #section6 .lisbon-carousel-container .member-name::before {
    left: -60px;
  }
  
  #section6 .lisbon-carousel-container .member-name::after {
    right: -60px;
  }
  
  #section6 .lisbon-carousel-container .dots {
    gap: 8px;
    margin-top: 15px;
  }
  
  #section6 .lisbon-carousel-container .dot {
    width: 10px;
    height: 10px;
  }
}

/* Very small screens - prevent overflow */
@media (max-width: 380px) {
  #section1 h1 {
    font-size: 1.75rem;
  }

  .heading {
    font-size: 1.5rem;
  }

  #snitch-wrapper {
    width: 50vw;
    max-width: 160px;
  }

  /* 極小屏幕道路场景优化 */
  #section3 {
    margin-top: 130vh;
  }

  .road-sun {
    width: 50px;
    height: 50px;
    top: 1.5em;
    left: 1.5em;
  }

  .road-title {
    top: 8%;
  }

  .road-title-japanese {
    font-size: clamp(1.2rem, 5vw, 2rem);
  }

  .road-title-english {
    font-size: clamp(0.7rem, 2.5vw, 1rem);
  }

  .road-mountains.mountain {
    height: 80px;
    bottom: 30%;
  }

  .road-sign {
    width: 180px;
    height: 280px;
    bottom: 22%;
  }

  .sign-pole {
    width: 14px;
    height: 150px;
  }

  .sign-board {
    width: 180px;
    height: 140px;
    top: 120px;
  }

  .sign-text {
    font-size: 0.85rem;
    margin-top: 6px;
  }

  .sign-text-en {
    font-size: 0.5rem;
  }

  .sign-image {
    height: 90px;
  }

  .road-field {
    height: 20%;
    bottom: 20%;
  }

  .road-surface {
    height: 20%;
  }

  .road-car {
    width: 150px;
    height: 150px;
    left: 5%;
    bottom: 45px;
  }

  .road-wheel {
    width: 30px;
    height: 30px;
  }

  .front-wheel {
    left: 104px;
  }

  .back-wheel {
    left: 12px;
  }

  /* 極小屏幕的富士山避讓 */
  #section3 .content-wrapper {
    max-width: 200px !important;
    margin-left: 30px !important; /* 小屏幕也調整為中間一些 */
  }

  #section3 video,
  .tv-frame {
    width: 220px !important;
    height: 160px !important;
  }
  
  .under-tv {
    max-width: 220px;
  }
  
  .connector {
    margin-left: 35px;
  }
  
  .brand-text {
    font-size: 8px;
  }
  
  /* Very small screen diving sprite */
  .diving-sprite {
    width: 60px !important;
    height: 60px !important;
    right: 5% !important;
  }
  
  /* Very small screen Lottie flowers */
  #flower-lottie {
    width: 80px !important;
    height: 80px !important;
    left: 2% !important;
    top: 70% !important;
  }
  
  #flower-lottie-2 {
    width: 60px !important;
    height: 60px !important;
    right: 8% !important;
    top: 78% !important;
  }

  /* Sushi Very Small */
  .sushi-maker-container img {
    width: 80px !important;
    height: 80px !important;
  }
  
  .sushi-maker-container {
    top: 30% !important;
    left: 45% !important;
  }

  /* Section 4 極小屏幕優化 */
  #section4 img {
    border: 3px solid white;
  }

  #section4 .img1 {
    max-width: 150px !important;
    width: 150px;
    top: 12% !important;
    left: 2% !important;
    transform: rotate(5deg) !important;
  }

  #section4 .img2 {
    max-width: 180px !important;
    width: 180px;
    right: 2% !important;
    top: 38% !important;
    transform: rotate(-4deg) !important;
  }

  #section4 .img3 {
    max-width: 160px !important;
    width: 160px;
    left: 3% !important;
    bottom: 18% !important;
    transform: rotate(6deg) !important;
  }

  /* Section 5 極小屏幕隱藏 */
  #section5 {
    display: none !important;
  }

  .section5-mobile-message h2 {
    font-size: 1.5rem;
  }

  .section5-mobile-message p {
    font-size: 1rem;
  }

  .section5-mobile-message .desktop-icon {
    font-size: 2.5rem;
  }

  /* Hello Kitty Very Small */
  .hellokitty-container img {
    width: 60px !important;
    height: 60px !important;
  }
  
  .hellokitty-container {
    left: 50% !important;
    top: 35% !important;
  }

  /* Inviting and Mask Very Small */
  .inviting-img {
    width: 45px !important;
  }
  
  .inviting-container {
    left: 20% !important;
    top: 15% !important;
  }
  
  .mask-img {
    width: 40px !important;
  }
  
  .mask-container {
    right: 8% !important;
    top: 55% !important;
  }
}

/* Section 5 - Fullscreen Home Scene */
#section5 {
  position: relative;
  height: 100vh;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  background: linear-gradient(135deg, #F2F3EB 25%, transparent 25%) -50px 0, linear-gradient(225deg, #F2F3EB 25%, transparent 25%) -50px 0, linear-gradient(315deg, #F2F3EB 25%, transparent 25%), linear-gradient(45deg, #F2F3EB 25%, transparent 25%);
  background-size: 100px 100px;
  background-color: #FFFFFF;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  box-sizing: border-box;
}

/* Valentine's Text Scroller Styles - Inside iMac */
.valentine-master {
    font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
    font-size: 1.2rem;
    line-height: 1;
    font-weight: bold;
    letter-spacing: 0;
    -webkit-font-smoothing: inherit;
    text-rendering: optimizeLegibility;
    color: #d47787;
    margin: 0;
    transform: scale(1.3);
}

.valentine-scroller-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.2);
    text-align: center;
    z-index: 5;
    pointer-events: none;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.valentine-scroller {
    height: 30px;
    margin-bottom: -3px;
    overflow: hidden;
    position: relative;
    display: inline-block;
}

.valentine-scroller .valentine-scroller-item {
    display: block;
    padding-bottom: 3px;
    animation: valentine-scroll 12s cubic-bezier(0.645, 0.045, 0.355, 1) infinite;
    font-size: 1rem;
}

.valentine-scroller .valentine-scroller-item:nth-child(1) { color: #E65F48; }
.valentine-scroller .valentine-scroller-item:nth-child(2) { color: #d47787; }
.valentine-scroller .valentine-scroller-item:nth-child(3) { color: #76BCAD; }
.valentine-scroller .valentine-scroller-item:nth-child(4) { color: #84719f; }
.valentine-scroller .valentine-scroller-item:nth-child(5) { color: #F09551; }
.valentine-scroller .valentine-scroller-item:nth-child(6) { color: #349AB5; }
.valentine-scroller .valentine-scroller-item:nth-child(7) { color: #e86042; }

@keyframes valentine-scroll {
    0.0% { transform: translateY(0px); }
    14.28% { transform: translateY(0px); }
    28.56% { transform: translateY(-30px); }
    42.84% { transform: translateY(-60px); }
    57.12% { transform: translateY(-90px); }
    71.4% { transform: translateY(-120px); }
    85.68% { transform: translateY(-150px); }
    100.0% { transform: translateY(-180px); }
}

#section5-main-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

#section5-window-container {
  width: 30%;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
  margin-left: 5%;

}

#section5-office-container {
  width: 65%;
  height: 80vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 5;
  margin-right: 5%;
  transform: scale(1.3);
}

#section5-full-elements-group {
  position: relative;
  height: 70vh;
  width: 35vh;
}

#section5-window-title {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 15;
  pointer-events: none;
}

#section5-content-overlay {
  position: absolute;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 20;
  pointer-events: none;
  width: 100%;
}

/* Window Effect Styles */
#section5-curtain-pull {
  position: absolute;
  top: -5%;
  height: 100%;
  width: 100%;
  z-index: 10;
  overflow: hidden;
  pointer-events: none;
}

#section5-curtain-pull-line {
  transform: translateX(30px);
  transition: transform 0.5s;
}

#section5-curtain-group {
  position: absolute;
  height: 100%;
  width: 100%;
  z-index: 2;
}

#section5-curtain-rod {
  position: relative;
  top: -5%;
  left: -3.5%;
  height: 2.5%;
  width: 107%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#section5-curtain {
  position: relative;
  top: -5%;
  height: 100%;
  width: 100%;
  z-index: 2;
  display: flex;
  flex-direction: row;
  justify-content: center;
  pointer-events: none;
}

.section5-curtain-panel {
  position: absolute;
  height: 7%;
  width: 105%;
  opacity: 95%;
  background: #3d324c;
  border: 2px outset #504163;
  transform: translateY(calc(var(--i) * 70%));
  transition: transform 0.5s;
}

#section5-window-group {
  position: absolute;
  top: 0px;
  left: 0px;
  height: 100%;
  width: 100%;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

#section5-window-frame {
  position: absolute;
  height: 90%;
  width: 100%;
  z-index: 2;
  border: 10px solid #110f2a;
  box-sizing: border-box;
  overflow: hidden;
}

#section5-window-pane {
  width: 100%;
  height: 100%;
  background: rgba(224, 224, 224, 0.3);
  border: 5px groove #666;
  box-sizing: border-box;
}

#section5-window-pane svg {
  position: absolute;
  top: 0;
  left: 0;
}

#section5-window-scenery {
  position: relative;
  height: 85%;
  width: 95%;
  z-index: 1;
  left: 2.5%;
}

#section5-raindrops-group {
  position: absolute;
  height: 100%;
  width: 100%;
  z-index: 5;
  overflow: hidden;
  filter: blur(2px);
  top: 0;
  left: 0;
}

#section5-trail-container {
  position: absolute;
  height: 100%;
  width: 100%;
  z-index: 2;
  overflow: hidden;
  top: 0;
  left: 0;
}

#section5-window-background {
  position: absolute;
  height: 100%;
  width: 100%;
  z-index: 1;
  overflow: hidden;
  top: 0;
  left: 0;
}

#section5-window-background img {
  position: absolute;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

#section5-window-background-image-blurred {
  position: absolute;
  filter: blur(4px) contrast(50%) grayscale(5%);
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
}

.section5-raindrop {
  position: absolute;
  width: 1px;
  height: 15px;
  background: rgba(255, 255, 255, 0.7);
  bottom: 100%;
  animation: section5-fall 3s infinite;
}

@keyframes section5-fall {
  to {
    bottom: -150px;
  }
}

.section5-fade-out {
  animation: section5-fadeOut 6s forwards;
}

@keyframes section5-fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* Home Office Styles */
.desk-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transform: translateY(-170px);
}

.desk {
  width: 680px;
  height: 30px;
  background: #77756a;
  margin: 0 auto;
  border-top: 10px solid #5b574e;
  position: relative;
  bottom: 0;
  margin-top: -180px;
}

.desk::before {
  width: 18px;
  height: 150px;
  background: #5b574e;
  content: "";
  position: absolute;
  top: 20px;
  left: 40px;
}

.desk::after {
  width: 18px;
  height: 150px;
  background: #5b574e;
  content: "";
  position: absolute;
  top: 20px;
  right: 40px;
}

.slide {
  width: 150px;
  height: 140px;
  background: #a68b60;
  position: absolute;
  bottom: -150px;
  left: 80px;
  box-shadow: 0px 60px 0px #a68b60 inset, 0px 65px 0px #83653c inset;
}

.slide::before {
  content: "";
  width: 7px;
  height: 8px;
  background: #57524f;
  border-radius: 50%;
  position: absolute;
  top: 5px;
  right: 5px;
}

.slide-one {
  width: 45px;
  height: 8px;
  background: #5b574e;
  margin: 0 auto;
  margin-top: 27px;
  position: relative;
}

.slide-one::after {
  content: "";
  width: 12px;
  height: 12px;
  background: #5b574e;
  border-radius: 50%;
  right: -9px;
  position: absolute;
  top: -2px;
}

.slide-one::before {
  content: "";
  width: 12px;
  height: 12px;
  background: #5b574e;
  border-radius: 50%;
  left: -9px;
  position: absolute;
  top: -2px;
}

.slide-two {
  width: 45px;
  height: 8px;
  background: #5b574e;
  margin: 0 auto;
  margin-top: 57px;
  position: relative;
}

.slide-two::after {
  content: "";
  width: 12px;
  height: 12px;
  background: #5b574e;
  border-radius: 50%;
  right: -9px;
  position: absolute;
  top: -2px;
}

.slide-two::before {
  content: "";
  width: 12px;
  height: 12px;
  background: #5b574e;
  border-radius: 50%;
  left: -9px;
  position: absolute;
  top: -2px;
}

.magazines {
  width: 66px;
  height: 92px;
  background: #383838;
  position: relative;
  top: -102px;
  margin-left: 57px;
  border: aliceblue;
}

.magazines::after {
  content: "";
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: inline-block;
  background: rgb(236, 236, 236);
  margin-left: 6px;
  border: 8px solid rgb(90, 90, 90);
  margin-top: 30px;
}

.magazines::before {
  width: 19px;
  height: 19px;
  background: #5a5a5a;
  content: "";
  display: inline-block;
  border-radius: 50%;
  position: absolute;
  top: 48px;
  left: 24px;
}

.flower {
  position: absolute;
  top: -122px;
  left: 160px;
}

.bud {
  width: 23px;
  height: 48px;
  background: #ee4c55;
  border-radius: 20px;
  position: relative;
  right: -2px;
  top: 2px;
}

.bud::after {
  background: #ee4c55;
  border-radius: 20px;
  width: 48px;
  height: 23px;
  content: "";
  display: inline-block;
  margin-top: 13px;
  margin-left: -12px;
}

.bud-inside {
  width: 23px;
  height: 48px;
  background: #c13c42;
  border-radius: 20px;
  position: absolute;
  transform: scale(0.55) rotate(45deg);
}

.bud-inside::after {
  background: #c13c42;
  border-radius: 20px;
  width: 48px;
  height: 23px;
  content: "";
  display: inline-block;
  margin-top: 13px;
  margin-left: -12px;
}

.bud-inside::before {
  background: #fcb739;
  width: 18px;
  height: 19px;
  border-radius: 50%;
  content: "";
  display: inline-block;
  position: absolute;
  top: 15px;
  right: 2px;
}

.stem {
  width: 4px;
  height: 35px;
  background: #80af4c;
  margin-left: 12px;
}

.leaf-row-one {
  background: #82b351;
  width: 15px;
  height: 5px;
  transform: rotate(10deg);
  border-radius: 50%;
  margin-top: 8px;
  position: absolute;
  margin-left: 2px;
}

.leaf-row-one::after {
  content: "";
  display: inline-block;
  background: #82b351;
  width: 15px;
  height: 5px;
  border-radius: 50%;
  margin-top: 10px;
  position: absolute;
  margin-left: -4px;
}

.leaf-row-two {
  background: #82b351;
  width: 15px;
  height: 5px;
  transform: rotate(20deg);
  border-radius: 50%;
  margin-top: 7px;
  position: absolute;
  margin-left: -13px;
}

.leaf-row-two::after {
  content: "";
  display: inline-block;
  background: #82b351;
  width: 15px;
  height: 5px;
  border-radius: 50%;
  margin-top: 10px;
  position: absolute;
  margin-left: 3px;
}

.pot {
  border-top: 31px solid #4c4942;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  height: 0;
  width: 29px;
  position: relative;
}

.pot::after {
  position: absolute;
  top: -36px;
  background: #777369;
  width: 36px;
  height: 5px;
  content: "";
  left: -6px;
}

.chair {
  background: #F06363;
  width: 130px;
  height: 65px;
  border-radius: 20px;
  position: absolute;
  bottom: -90px;
  left: 340px;
  z-index: 2;
}

.chair::before {
  width: 50px;
  background: #F06363;
  height: 20px;
  content: "";
  display: inline-block;
  margin-left: 40px;
  box-shadow: 0px 5px 0px rgba(0, 0, 0, 0.3), 0px 9px 0px #F06363, 0px 13px 0px rgba(0, 0, 0, 0.3), 0px 17px #F06363, 0px 21px rgba(0, 0, 0, 0.3);
}

.chair::after {
  content: "";
  display: inline-block;
  border-bottom: 85px solid #a74545;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  height: 0;
  width: 33px;
  position: absolute;
  bottom: -60px;
  left: 46px;
}

.chair-holder {
  width: 150px;
  height: 14px;
  background: #F06363;
  position: absolute;
  z-index: 1;
  left: 330px;
  border-radius: 30px 30px 0px 0px;
  bottom: -150px;
}

.imac {
  width: 250px;
  position: absolute;
  top: -210px;
  left: 230px;
}

.black-side {
  width: 250px;
  height: 140px;
  border-radius: 8px 8px 0 0;
  border: 10px solid #212528;
  background: #1a1a1a;
  position: relative;
  overflow: hidden;
}

.butt {
  width: 250px;
  border-radius: 0 0 8px 8px;
  height: 35px;
  background: #b8b8b8;
}

.holder {
  border-bottom: 25px solid #b8b8b8;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  height: 0;
  width: 80px;
  margin: 0 auto;
}

.note {
  background: #f8e13b;
  width: 45px;
  height: 40px;
  transform: rotate(10deg);
  margin-top: -52px;
  margin-left: 27px;
  border-bottom: 5px solid #e9d01b;
}

.kettle {
  position: absolute;
  top: -38px;
  left: 520px;
}

.kettle .top {
  border-top: 29px solid #E2E2E2;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  height: 0;
  width: 47px;
  position: absolute;
  top: -34px;
  left: 2px;
}

.kettle .top::before {
  content: "";
  display: inline-block;
  width: 0px;
  height: 0px;
  border-style: solid;
  border-width: 0 11px 13px 0;
  border-color: transparent #CECECE transparent transparent;
  transform: rotate(-19deg);
  position: absolute;
  top: -20px;
  left: -15px;
}

.kettle .top::after {
  border-bottom: 6px solid #E2E2E2;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  height: 0;
  width: 9px;
  content: "";
  position: absolute;
  top: -33px;
  left: -11px;
}

.kettle .bottom {
  border-bottom: 29px solid #dadada;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  height: 0;
  width: 51px;
}

.kettle .bottom::before {
  background: #5e5a5b;
  width: 21px;
  content: "";
  display: inline-block;
  position: absolute;
  height: 6px;
  top: -6px;
  left: 15px;
}

.kettle .bottom::after {
  height: 28px;
  width: 10px;
  background: #e4e4e4;
  display: inline-block;
  margin: 0 auto;
  content: "";
  left: 20px;
  position: absolute;
}

.other-stuff {
  background: #4d3933;
  border-radius: 3px 3px 0 0;
  height: 5px;
  width: 6px;
  position: absolute;
  top: -43px;
  left: 22px;
}

.kettle .handle {
  position: absolute;
  border-bottom: 7px solid #6f5a56;
  border-right: 0px solid transparent;
  border-left: 3px solid transparent;
  height: 0;
  width: 12px;
  top: -33px;
  left: 46px;
}

.kettle .handle::before {
  content: "";
  height: 25px;
  display: inline-block;
  background: #6f5a56;
  width: 5px;
  transform: rotate(29deg);
  position: absolute;
  right: -3px;
  top: 10px;
}

.kettle .handle::after {
  content: "";
  height: 15px;
  display: inline-block;
  background: #6f5a56;
  width: 6px;
  transform: rotate(-35deg);
  position: absolute;
  right: -5px;
  top: 1px;
}

.cup {
  width: 27px;
  height: 18px;
  border: 3px solid #cecece;
  border-radius: 0 0 100% 100%;
  top: -31px;
  position: absolute;
  left: 600px;
  box-shadow: 0 6px #F8F8F8 inset, 0px 14px #4f3c37 inset;
}

.cup::after {
  width: 5px;
  height: 4px;
  content: "";
  display: inline-block;
  position: absolute;
  background: transparent;
  border-radius: 0 50% 50% 0;
  right: -9px;
  border: 3px solid #cecece;
  border-left: none;
}

.cup::before {
  content: "";
  display: inline-block;
  background: #cecece;
  width: 27px;
  height: 3px;
  position: absolute;
  bottom: -6px;
  border-radius: 4px;
  left: -2px;
}

.board {
  border: 10px solid #15A8CC;
  height: 180px;
  width: 280px;
  position: absolute;
  bottom: 410px;
  background: white;
  left: 300px;
  text-align: left;
  box-sizing: border-box;
  font-family: 'Architects Daughter', cursive;
  padding: 12px 20px;
  font-size: 0.85rem;
}

.board::after {
  content: "";
  background: #f8e13b;
  width: 40px;
  height: 34px;
  transform: rotate(8deg);
  border-bottom: 3px solid #e9d01b;
  display: inline-block;
  position: absolute;
  bottom: -26px;
  left: 14px;
}

.board::before {
  content: "";
  background: #f8e13b;
  width: 40px;
  height: 34px;
  transform: rotate(-5deg);
  border-bottom: 3px solid #e9d01b;
  display: inline-block;
  position: absolute;
  bottom: -26px;
  left: 80px;
}

.board ul {
  margin-top: 10px;
}

.board ul li {
  list-style: none;
}

.board ul li::before {
  content: "-";
  margin-right: 5px;
}

.longer {
  width: 700px;
  height: 11px;
  background: #5b574e;
  position: absolute;
  top: -11px;
  left: -10px;
  z-index: 99999;
}

.window {
  width: 205px;
  height: 225px;
  background: #ebf6fa;
  border: 10px solid white;
  display: inline-block;
  position: absolute;
  bottom: 464px;
  left: -120px;
}

.window::after {
  background: white;
  height: 240px;
  width: 14px;
  position: absolute;
  top: 0;
  content: "";
  left: 120px;
}

.window::before {
  background: white;
  height: 240px;
  width: 14px;
  position: absolute;
  top: 0;
  content: "";
  left: 50px;
}

.row {
  width: 185px;
  height: 14px;
  background: white;
  position: absolute;
  top: 60px;
  left: 0px;
}

.row::after {
  content: "";
  position: absolute;
  display: inline-block;
  width: 185px;
  height: 14px;
  background: white;
  top: 71px;
  left: 0px;
}

.clock {
  position: absolute;
  height: 200px;
  width: 200px;
  background: white;
  box-sizing: border-box;
  border-radius: 100%;
  border: 10px solid #535555;
  bottom: 425px;
  right: 300px;
  margin: auto;
  transform: scale(0.5);
}

.clock .top {
  position: absolute;
  width: 3px;
  height: 8px;
  background: #262626;
  left: 0;
  right: 0;
  margin: 0 auto;
}

.clock .right {
  position: absolute;
  width: 8px;
  height: 3px;
  background: #262626;
  top: 0;
  bottom: 0;
  right: 0;
  margin: auto 0;
}

.clock .bottom {
  position: absolute;
  width: 3px;
  height: 8px;
  background: #262626;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0 auto;
}

.clock .left {
  position: absolute;
  width: 8px;
  height: 3px;
  background: #262626;
  top: 0;
  bottom: 0;
  left: 0;
  margin: auto 0;
}

.clock .center {
  height: 6px;
  width: 6px;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  background: #262626;
  border-radius: 100%;
}

.clock .hour {
  width: 3px;
  height: 100%;
  position: absolute;
  left: 0;
  right: 0;
  margin: 0 auto;
  animation: time 86400s infinite linear;
}

.clock .hour::before {
  position: absolute;
  content: "";
  background: #262626;
  height: 60px;
  width: 3px;
  top: 30px;
}

.clock .minute {
  width: 1px;
  height: 100%;
  position: absolute;
  left: 0;
  right: 0;
  margin: 0 auto;
  animation: time 3600s infinite linear;
}

.clock .minute::before {
  position: absolute;
  content: "";
  background: #262626;
  height: 40px;
  width: 1px;
  top: 50px;
}

.clock .second {
  width: 2px;
  height: 100%;
  position: absolute;
  left: 0;
  right: 0;
  margin: 0 auto;
  animation: time 60s infinite linear;
}

.clock .second::before {
  position: absolute;
  content: "";
  background: #fd1111;
  height: 45px;
  width: 2px;
  top: 45px;
}

@keyframes time {
  to {
    transform: rotate(360deg);
  }
}

/* Vintage Kraft Paper Photo Frame */
.vintage-frame-container {
  position: absolute;
  top: 63%;
  left: 40%;
  transform: translate(-50%, -50%);
  z-index: 10;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.vintage-frame {
  position: relative;
  width: 120px;
  height: 140px;
  background: linear-gradient(135deg, 
    #d4a574 0%, 
    #c99a6e 25%, 
    #b08968 50%, 
    #9d7a5f 75%, 
    #8b6f56 100%);
  padding: 20px;
  box-shadow: 
    inset 0 0 30px rgba(0, 0, 0, 0.3),
    inset 0 0 60px rgba(0, 0, 0, 0.15),
    0 5px 15px rgba(0, 0, 0, 0.4);
  
  transition: transform 0.3s ease;
}

.vintage-frame:hover {
  transform: rotate(0deg) scale(1.05);
}

/* Fireplace Animation */
.fireplace-container {
  position: absolute;
  top: 94%;
  left: 37%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.fireplace-container lottie-player {
  filter: drop-shadow(0 5px 15px rgba(255, 100, 30, 0.5));
}

.vintage-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 10% 10%, transparent 0%, transparent 8%, rgba(60, 40, 20, 0.4) 8.5%, transparent 9%),
    radial-gradient(circle at 90% 15%, transparent 0%, transparent 6%, rgba(50, 30, 15, 0.5) 6.5%, transparent 7%),
    radial-gradient(circle at 85% 85%, transparent 0%, transparent 10%, rgba(40, 25, 10, 0.6) 10.5%, transparent 11%),
    radial-gradient(circle at 15% 90%, transparent 0%, transparent 7%, rgba(55, 35, 18, 0.45) 7.5%, transparent 8%);
  pointer-events: none;
}

.vintage-frame::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  border: 2px solid rgba(139, 111, 86, 0.4);
  box-shadow: 
    0 0 0 1px rgba(180, 137, 104, 0.3),
    inset 0 0 20px rgba(0, 0, 0, 0.1);
  pointer-events: none;
}

.burnt-edge {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 50% 0%, transparent 0%, transparent 92%, rgba(60, 35, 15, 0.6) 94%, rgba(40, 20, 8, 0.8) 96%, transparent 100%),
    radial-gradient(ellipse at 50% 100%, transparent 0%, transparent 92%, rgba(60, 35, 15, 0.6) 94%, rgba(40, 20, 8, 0.8) 96%, transparent 100%),
    radial-gradient(ellipse at 0% 50%, transparent 0%, transparent 92%, rgba(60, 35, 15, 0.6) 94%, rgba(40, 20, 8, 0.8) 96%, transparent 100%),
    radial-gradient(ellipse at 100% 50%, transparent 0%, transparent 92%, rgba(60, 35, 15, 0.6) 94%, rgba(40, 20, 8, 0.8) 96%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

.vintage-frame img {
  position: relative;
  width: 80px;
  height: 100px;
  object-fit: cover;
  filter: sepia(0.2) contrast(1.1) brightness(0.95);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

/* Photo Frames in Section 5 */
.photo-frames-container {
  position: absolute;
  top: 0;
  right: 0;
  width: 65%; /* Match office container width */
  height: 100%;
  pointer-events: all; /* 允許物理互動 */
  z-index: 15; /* Above office elements */
}

/* Pin for photo frames */
.photo-frame .pin {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: radial-gradient(circle at 30% 30%, #e74c3c, #c0392b);
  border-radius: 50%;
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.3),
    inset -2px -2px 4px rgba(0, 0, 0, 0.2),
    inset 2px 2px 4px rgba(255, 255, 255, 0.3);
  z-index: 100;
}

.photo-frame .pin::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 8px;
  background: linear-gradient(to bottom, #95a5a6, #7f8c8d);
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.photo-frame .pin::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: radial-gradient(circle at 30% 30%, #e74c3c, #c0392b);
  border-radius: 50%;
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.3),
    inset -1px -1px 2px rgba(0, 0, 0, 0.2);
}

.photo-frame {
  position: absolute;
  border: 8px solid #8B4513;
  border-radius: 4px;
  background: #FFF;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3), inset 0 0 0 4px #D2B48C;
  overflow: hidden;
  transform-origin: center;
  cursor: grab;
  user-select: none;
  pointer-events: all;
  touch-action: none;
}

/* Pin (圖釘) at the anchor point */
.physics-pin {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ff6b6b, #c92a2a);
  box-shadow: 
    0 2px 4px rgba(0,0,0,0.3),
    inset 0 -2px 4px rgba(0,0,0,0.2),
    inset 0 2px 2px rgba(255,255,255,0.3);
  transform: translate(-50%, -50%);
  z-index: 14;
  pointer-events: none;
}

.physics-pin::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* String (繩子) connecting pin to frame */
.physics-string {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, 
    rgba(139, 69, 19, 0.8), 
    rgba(139, 69, 19, 0.6),
    rgba(139, 69, 19, 0.8)
  );
  transform-origin: 0 0;
  pointer-events: none;
  z-index: 13;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-frame.frame1 {
  width: 80px;
  height: 60px;
  /* Physics will control position */
  transform: rotate(-5deg);
  z-index: 15;
 
}

.photo-frame.frame2 {
  width: 70px;
  height: 90px;
  /* Physics will control position */
  transform: rotate(8deg);
  z-index: 15;
}

.photo-frame.frame3 {
  width: 85px;
  height: 65px;
  /* Physics will control position */
  transform: rotate(-3deg);
  z-index: 15;
}

.photo-frame.frame4 {
  width: 75px;
  height: 75px;
  /* Physics will control position */
  transform: rotate(6deg);
  z-index: 15;
}

.photo-frame.frame1 {
  --rotation: -5deg;
}

.photo-frame.frame2 {
  --rotation: 8deg;
}

.photo-frame.frame3 {
  --rotation: -3deg;
}

.photo-frame.frame4 {
  --rotation: 6deg;
}

/* Responsive Styles for Two-Column Layout */
@media (max-width: 991px) {
  #section6 .lisbon-main-container {
    gap: 40px;
    padding: 30px 15px;
  }
  
  #section6 .lisbon-left-section,
  #section6 .lisbon-right-section {
    min-width: 300px;
  }
  
  #section6 .lisbon-carousel-container {
    width: 90%;
  }
}

@media (max-width: 768px) {
  #section6 .lisbon-main-container {
    flex-direction: column;
    align-items: center;
    gap: 60px;
    padding: 30px 15px;
  }
  
  #section6 .lisbon-left-section,
  #section6 .lisbon-right-section {
    width: 100%;
    min-width: unset;
    max-width: 500px;
  }
  
  #section6 .ticket-system {
    max-width: 100%;
  }

  #section6 .ticket-system .title {
    font-size: 1.1em;
  }

  #section6 .ticket-system .receipt {
    padding: 18px 22px;
    width: 92%;
  }

  #section6 .ticket-system .route h2 {
    font-size: 2em;
  }

  #section6 .ticket-system .details .item h3 {
    font-size: 1em;
  }
  
  #section6 .lisbon-carousel-container {
    width: 100%;
    max-width: 400px;
  }
}

@media (max-width: 576px) {
  #section6 .lisbon-main-container {
    gap: 40px;
    padding: 20px 10px;
  }
  
  #section6 .ticket-system {
    max-width: 100%;
  }

  #section6 .ticket-system .top {
    width: 100%;
  }
  
  #section6 .ticket-system .title {
    font-size: 1em;
    margin-bottom: 20px;
    padding: 0 10px;
  }

  #section6 .ticket-system .printer {
    width: 85%;
  }

  #section6 .ticket-system .receipts-wrapper {
    overflow: hidden;
    margin-top: -10px;
  }

  #section6 .ticket-system .receipts {
    transform: translateY(-510px);
  }

  #section6 .ticket-system .receipts.print-active {
    animation-duration: 2.5s;
    animation-delay: 300ms;
  }
  
  #section6 .ticket-system .receipt {
    padding: 15px 20px;
    width: 90%;
  }

  #section6 .ticket-system .airliner-logo {
    max-width: 100px;
  }

  #section6 .ticket-system .route {
    margin: 20px 0;
  }
  
  #section6 .ticket-system .route h2 {
    font-size: 1.5em;
  }

  #section6 .ticket-system .plane-icon {
    width: 25px;
    height: 25px;
  }

  #section6 .ticket-system .details .item {
    min-width: 60px;
  }

  #section6 .ticket-system .details .item span {
    font-size: 0.7em;
  }

  #section6 .ticket-system .details .item h3 {
    font-size: 0.9em;
    margin-top: 8px;
    margin-bottom: 20px;
  }

  #section6 .ticket-system .receipt.qr-code {
    height: 100px;
    padding: 12px 20px;
  }

  #section6 .ticket-system .qr {
    width: 60px;
    height: 60px;
  }

  #section6 .ticket-system .description h2 {
    font-size: 1.1rem;
  }

  #section6 .ticket-system .description p {
    font-size: 0.85rem;
  }
  
  #section6 .lisbon-carousel-container {
    max-width: 320px;
  }
  
  .lisbon-carousel-card {
    width: 280px;
    height: 350px;
  }
  
  .lisbon-member-info {
    width: 280px;
  }
}

/* Section 7 Postcard Form Responsive Styles */
@media (max-width: 1050px) {
  #section7 .form-heading h1 {
    font-size: 4rem;
  }

  #section7 input,
  #section7 textarea {
    font-size: 1.6rem;
  }

  #section7 .message-box {
    margin: 0 0 2.3rem 2.3rem;
  }

  #section7 .btn_contact,
  #section7 .btn_contact:link,
  #section7 .btn_contact:visited {
    margin-bottom: 2.3rem;
    height: auto;
    padding: 1.8rem;
  }

  #section7 .forever-message .heading {
    font-size: 3rem;
  }

  #section7 .forever-message p {
    font-size: 1.3rem;
  }
}

@media (max-width: 780px) {
  #section7 .section7-content {
    flex-direction: column;
    padding: 2rem;
  }

  .form-container {
    width: 90vw;
    height: 150vw;
    max-width: none;
    max-height: none;
  }

  #section7 form {
    width: 85vw;
    height: 145vw;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(9, 1fr);
    justify-content: center;
    align-items: center;
  }

  #section7 .form-heading {
    display: block;
    padding: 3.5rem 2rem 0;
  }

  #section7 .form-heading h1 {
    padding: 0;
    font-size: 3rem;
  }

  #section7 .stamp {
    display: none;
  }

  #section7 .message-box {
    grid-row: 5/9;
    grid-column: 1;
    border: solid #cecece 1px;
    border-right: solid #cecece 1px;
    width: 90%;
    height: 90%;
    justify-self: center;
    align-self: start;
    margin: 0;
  }

  #section7 .right {
    grid-column: 1;
    margin: 0;
  }

  #section7 .form-input {
    border: solid #cecece 1px;
    border-bottom: solid #cecece 1px;
    width: 90%;
    height: 100%;
    justify-self: center;
  }

  #section7 input,
  #section7 textarea {
    height: 100%;
    font-size: 1.6rem;
  }

  #section7 .btn_contact,
  #section7 .btn_contact:hover,
  #section7 .btn_contact:visited {
    justify-self: center;
    width: 90%;
    margin-bottom: 3.7rem;
  }

  #section7 .forever-message {
    order: -1;
    width: 100%;
    margin-bottom: 2rem;
  }

  .postcard-container {
    min-width: unset;
    width: 100%;
  }
}

@media (max-width: 576px) {
  .form-container {
    width: 95vw;
    height: 160vw;
  }

  #section7 form {
    width: 90vw;
    height: 155vw;
  }

  #section7 .form-heading h1 {
    font-size: 2.5rem;
  }

  #section7 .forever-message .heading {
    font-size: 2.5rem;
  }

  #section7 .forever-message p {
    font-size: 1.1rem;
  }

  #section7 input,
  #section7 textarea {
    font-size: 1.4rem;
  }
}

/* Flying Owls Animation */
.flying-owl {
  position: absolute;
  font-size: 3rem;
  animation: flyAway 3s ease-out forwards;
  pointer-events: none;
  z-index: 100;
}

@keyframes flyAway {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(calc(var(--random-x, 200px) * 1px), calc(var(--random-y, -300px) * 1px)) rotate(360deg) scale(1.5);
    opacity: 0.8;
  }
  100% {
    transform: translate(calc(var(--random-x, 400px) * 1px), calc(var(--random-y, -600px) * 1px)) rotate(720deg) scale(0.5);
    opacity: 0;
  }
}

.flying-owl:nth-child(odd) {
  --random-x: 300;
  --random-y: -500;
}

.flying-owl:nth-child(even) {
  --random-x: -300;
  --random-y: -500;
}

/* Thank You Message */
.thank-you-message {
  position: relative;
  text-align: center;
  color: white;
  z-index: 50;
  animation: fadeIn 1s ease-in forwards;
  background: linear-gradient(135deg, rgba(116, 185, 255, 0.9) 0%, rgba(152, 224, 248, 0.9) 100%);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.thank-you-message h2 {
  font-family: myFont;
  font-size: 3rem;
  margin: 0 0 1rem 0;
  color: #fff;
}

.thank-you-message p {
  font-family: myFont;
  font-size: 1.5rem;
  margin: 0.5rem 0;
  color: #fff;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

