/* ================================================= */
/* RESET & FOUNDATIONS                              */
/* ================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
  font-family: "Georgia", "Noto Sans SC", "Noto Sans JP", serif;
  background-color: #0b1324;
  color: #f5d27a;
  overflow: hidden;
  width: 100%;
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  margin: 0;
  padding: 0;
  touch-action: pan-y pinch-zoom;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Standalone doc/blog pages: allow scroll (no horizontal slides) */
body.doc-page {
  overflow-x: hidden;
  overflow-y: auto;
  height: auto;
  min-height: 100vh;
  min-height: calc(var(--vh, 1vh) * 100);
}
html:has(body.doc-page) {
  overflow: auto;
}

:root {
  --base-font: 16px;
  --scale-small: 0.9;
  --scale-large: 1.25;
}

/* ================================================= */
/* LAYOUT SYSTEM — HORIZONTAL SLIDES                */
/* ================================================= */

.horizontal-wrapper {
  display: flex;
  width: 100vw;
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  transition: transform 0.4s ease;
  will-change: transform;
  touch-action: pan-y;
}

.slide {
  width: 100vw;
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  flex-shrink: 0;
  position: relative;
  contain: layout style paint;
  touch-action: pan-y;
}

.slide.service-page {
  overflow-y: auto;
  padding-bottom: 120px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.slide.service-page::-webkit-scrollbar {
  width: 6px;
}

.slide.service-page::-webkit-scrollbar-thumb {
  background: rgba(245, 210, 122, 0.4);
  border-radius: 4px;
}

/* ================================================= */
/* COVER SECTION                                     */
/* ================================================= */

.slide.cover {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

/* Animated background particles */
.slide.cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(245, 210, 122, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(245, 210, 122, 0.02) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(245, 210, 122, 0.015) 0%, transparent 50%);
  animation: floatParticles 20s ease-in-out infinite;
  pointer-events: none;
}

@keyframes floatParticles {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(20px, -20px) scale(1.1);
    opacity: 0.8;
  }
}

.cover-frame {
  position: relative;
  padding: 56px 72px;
  border: 2px solid rgba(245, 210, 122, 0.6);
  background: 
    linear-gradient(135deg, rgba(245, 210, 122, 0.08) 0%, rgba(245, 210, 122, 0.02) 50%, rgba(245, 210, 122, 0.08) 100%),
    linear-gradient(rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.015)),
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.03), transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(0, 0, 0, 0.15), transparent 45%);
  background-color: #0b1324;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4), 
    inset 0 0 60px rgba(245, 210, 122, 0.04),
    inset 0 0 120px rgba(245, 210, 122, 0.02),
    0 0 80px rgba(245, 210, 122, 0.1);
  border-radius: 4px;
  animation: coverEntrance 1s ease-out;
}

@keyframes coverEntrance {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Decorative inner border */
.cover-frame::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(245, 210, 122, 0.3);
  border-radius: 2px;
  pointer-events: none;
  animation: innerBorderPulse 3s ease-in-out infinite;
}

@keyframes innerBorderPulse {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
}

/* Large decorative watermark */
.cover-frame::after {
  content: '✦';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 300px;
  opacity: 0.02;
  color: #f5d27a;
  pointer-events: none;
  animation: watermarkRotate 60s linear infinite;
}

@keyframes watermarkRotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.cover-frame:hover {
  border-color: rgba(245, 210, 122, 0.95);
  box-shadow: 
    0 12px 48px rgba(245, 210, 122, 0.25), 
    0 16px 64px rgba(0, 0, 0, 0.5), 
    inset 0 0 80px rgba(245, 210, 122, 0.08),
    0 0 120px rgba(245, 210, 122, 0.2);
  transform: translateY(-4px) scale(1.02);
}

/* Corner decorations */
.corner {
  position: absolute;
  width: 32px;
  height: 32px;
  border-color: rgba(245, 210, 122, 0.8);
  transition: all 0.3s ease;
  z-index: 10;
}

.cover-frame:hover .corner {
  border-color: rgba(245, 210, 122, 1);
  filter: drop-shadow(0 0 8px rgba(245, 210, 122, 0.6));
}

.corner.top-left {
  top: -2px;
  left: -2px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.corner.top-right {
  top: -2px;
  right: -2px;
  border-top: 2px solid;
  border-right: 2px solid;
}

.corner.bottom-left {
  bottom: -2px;
  left: -2px;
  border-bottom: 2px solid;
  border-left: 2px solid;
}

.corner.bottom-right {
  bottom: -2px;
  right: -2px;
  border-bottom: 2px solid;
  border-right: 2px solid;
}

.cover-label {
  position: absolute;
  top: -14px;
  left: 32px;
  background: linear-gradient(90deg, #0b1324 0%, #0b1324 100%);
  padding: 2px 16px;
  font-size: 13px;
  letter-spacing: 3px;
  opacity: 0.9;
  border: 1px solid rgba(245, 210, 122, 0.3);
  border-radius: 2px;
  text-transform: uppercase;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.cover-box {
  width: 300px;
  height: 300px;
  border: 2px solid rgba(245, 210, 122, 0.5);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, rgba(245, 210, 122, 0.03), rgba(245, 210, 122, 0.01));
  box-shadow: 
    inset 0 0 40px rgba(245, 210, 122, 0.05),
    0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
}

.cover-box::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(245, 210, 122, 0.2);
  pointer-events: none;
}

.cover-box:hover {
  border-color: rgba(245, 210, 122, 0.8);
  box-shadow: 
    inset 0 0 60px rgba(245, 210, 122, 0.08),
    0 8px 32px rgba(245, 210, 122, 0.2);
  transform: scale(1.02);
}

.cover-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.4));
  transition: transform 0.4s ease;
}

.cover-box:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 6px 24px rgba(245, 210, 122, 0.3));
}

.cover-caption {
  margin-top: 24px;
  text-align: center;
  font-size: 15px;
  letter-spacing: 2px;
  opacity: 0.9;
  font-weight: 500;
  text-transform: uppercase;
  color: rgba(245, 210, 122, 0.95);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  position: relative;
  padding: 0 20px;
}

.cover-caption::before,
.cover-caption::after {
  content: '—';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.5;
  font-size: 12px;
}

.cover-caption::before {
  left: 0;
}

.cover-caption::after {
  right: 0;
}

.cover-tagline {
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.5px;
  opacity: 0.75;
  font-weight: 400;
  font-style: italic;
  color: rgba(200, 180, 140, 0.9);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.cover-title {
  font-size: 52px;
  letter-spacing: 6px;
  text-align: center;
  margin-bottom: 0;
  font-weight: 700;
  background: linear-gradient(135deg, #f5d27a 0%, #ffeb9c 50%, #f5d27a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 4px 12px rgba(245, 210, 122, 0.4));
  animation: titleShimmer 4s ease-in-out infinite;
  position: relative;
}

@keyframes titleShimmer {
  0%, 100% {
    filter: drop-shadow(0 4px 12px rgba(245, 210, 122, 0.4)) brightness(1);
  }
  50% {
    filter: drop-shadow(0 4px 20px rgba(245, 210, 122, 0.6)) brightness(1.15);
  }
}

.cover-social {
  text-align: center;
  margin-top: 8px;
  padding: 20px;
  position: relative;
}

.cover-social-label {
  font-size: 13px;
  letter-spacing: 3px;
  opacity: 0.8;
  margin-bottom: 16px;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(245, 210, 122, 0.9);
  position: relative;
  display: inline-block;
}

.cover-social-label::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(245, 210, 122, 0.5), transparent);
}

.social-icons {
  position: static;
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: center;
}

.social-icons a {
  width: 44px;
  height: 44px;
  border: 2px solid rgba(245, 210, 122, 0.6);
  color: #f5d27a;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(245, 210, 122, 0.05), rgba(245, 210, 122, 0.02));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.social-icons a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(245, 210, 122, 0.2), transparent);
  transform: scale(0);
  transition: transform 0.3s ease;
}

.social-icons a:hover::before {
  transform: scale(1);
}

.social-icons a:hover {
  border-color: rgba(245, 210, 122, 1);
  background: linear-gradient(135deg, rgba(245, 210, 122, 0.15), rgba(245, 210, 122, 0.08));
  box-shadow: 
    0 4px 16px rgba(245, 210, 122, 0.3),
    0 0 20px rgba(245, 210, 122, 0.2);
  transform: translateY(-3px) scale(1.1);
  color: #ffeb9c;
}

.social-icons a svg,
.social-icons a img {
  width: 18px;
  height: 18px;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.social-icons a:hover svg,
.social-icons a:hover img {
  transform: scale(1.1) rotate(5deg);
}

/* ================================================= */
/* INDEX PAGE                                        */
/* ================================================= */

.index-page {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 8vh 0;
  min-height: 100vh;
}

/* Decorative background pattern */
.index-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(245, 210, 122, 0.04) 0%, transparent 30%),
    radial-gradient(circle at 85% 80%, rgba(245, 210, 122, 0.03) 0%, transparent 30%),
    radial-gradient(circle at 50% 50%, rgba(245, 210, 122, 0.02) 0%, transparent 40%);
  animation: backgroundShift 25s ease-in-out infinite;
  pointer-events: none;
}

@keyframes backgroundShift {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(-10px, 10px) scale(1.05);
    opacity: 0.8;
  }
}

/* Decorative corner accents */
.index-page::after {
  content: '✦';
  position: absolute;
  top: 10%;
  right: 10%;
  font-size: 120px;
  opacity: 0.02;
  color: #f5d27a;
  animation: floatSlow 15s ease-in-out infinite;
  pointer-events: none;
}

@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(15deg);
  }
}

.index-content {
  width: 75%;
  max-width: 1200px;
  max-height: 92vh;
  padding: 2vh 4vh;
  text-align: center;
  position: relative;
  background: 
    linear-gradient(135deg, rgba(245, 210, 122, 0.08) 0%, rgba(245, 210, 122, 0.02) 50%, rgba(245, 210, 122, 0.08) 100%),
    linear-gradient(rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.015)),
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.03), transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(0, 0, 0, 0.15), transparent 45%);
  background-color: #0b1324;
  border: 2px solid rgba(245, 210, 122, 0.5);
  border-radius: 6px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 0 60px rgba(245, 210, 122, 0.04),
    inset 0 0 120px rgba(245, 210, 122, 0.02),
    0 0 80px rgba(245, 210, 122, 0.1);
  backdrop-filter: blur(8px);
  overflow: hidden;
}

/* Subtle inner frame */
.index-content::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(245, 210, 122, 0.3);
  border-radius: 3px;
  pointer-events: none;
  opacity: 0.6;
}

/* Elegant corner ornaments */
.index-content::after {
  content: '🌾 ✦ · · · · · · · · · · · · · · · · · · · · · ✦ · · · · · · · · · · · · · · · · · · · · · ✦ 🌾';
  position: absolute;
  width: 100%;
  top: 8px;
  left: 0;
  text-align: center;
  font-size: 8px;
  letter-spacing: 3px;
  color: rgba(245, 210, 122, 0.5);
  pointer-events: none;
  opacity: 0.7;
  z-index: 10;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

@keyframes framePulse {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
}

.index-ornament {
  text-align: center;
  font-size: 18px;
  letter-spacing: 6px;
  margin-bottom: 8px;
  font-weight: 600;
  color: rgba(245, 210, 122, 0.8);
  text-shadow: 
    0 2px 6px rgba(0, 0, 0, 0.5),
    0 0 12px rgba(245, 210, 122, 0.2);
  position: relative;
  z-index: 1;
  opacity: 0.85;
  font-family: 'Georgia', serif;
  animation: ornamentGlow 6s ease-in-out infinite;
}

@keyframes ornamentGlow {
  0%, 100% {
    opacity: 0.8;
    text-shadow: 
      0 2px 6px rgba(0, 0, 0, 0.5),
      0 0 10px rgba(245, 210, 122, 0.15);
  }
  50% {
    opacity: 0.95;
    text-shadow: 
      0 2px 6px rgba(0, 0, 0, 0.5),
      0 0 18px rgba(245, 210, 122, 0.25);
  }
}

.latin-motto {
  text-align: center;
  font-size: 11px;
  letter-spacing: 2px;
  margin-bottom: 12px;
  font-style: italic;
  color: rgba(245, 210, 122, 0.65);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  opacity: 0.8;
  font-family: 'Georgia', serif;
  animation: mottoBreath 5s ease-in-out infinite;
  position: relative;
  padding: 0 20px;
}

.latin-motto::before,
.latin-motto::after {
  content: '🪶 ✦';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 9px;
  letter-spacing: 2px;
  opacity: 0.6;
  color: rgba(245, 210, 122, 0.5);
}

.latin-motto::before {
  left: -10px;
}

.latin-motto::after {
  right: -10px;
}

.latin-motto.bottom {
  margin-bottom: 0;
  margin-top: 8px;
}

@keyframes mottoBreath {
  0%, 100% {
    opacity: 0.75;
  }
  50% {
    opacity: 0.9;
  }
}

@keyframes ornamentGlow {
  0%, 100% {
    opacity: 0.75;
  }
  50% {
    opacity: 0.85;
  }
}

.index-ornament::after {
  content: "✦ · ◆ · 🌾 · ◆ · ✦";
  display: block;
  width: auto;
  height: auto;
  margin: 8px auto 0;
  font-size: 8px;
  letter-spacing: 4px;
  color: rgba(245, 210, 122, 0.5);
  opacity: 0.6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.index-ornament.bottom {
  margin-top: 22px;
  margin-bottom: 8px;
  font-size: 18px;
  letter-spacing: 8px;
}

.index-ornament.bottom::after {
  display: block;
  width: 120px;
  margin-top: 10px;
}

.index-subtitle {
  text-align: center;
  font-size: 14px;
  letter-spacing: 4px;
  margin-bottom: 14px;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(245, 210, 122, 0.7);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 1;
  opacity: 0.85;
  font-family: 'Georgia', serif;
}

.index-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 14px;
  text-align: center;
  background: linear-gradient(135deg, #f5d27a 0%, #ffeb9c 30%, #fff 50%, #ffeb9c 70%, #f5d27a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 3px 12px rgba(245, 210, 122, 0.5)) drop-shadow(0 0 20px rgba(245, 210, 122, 0.3));
  animation: titleShine 4s ease-in-out infinite;
  position: relative;
  z-index: 1;
  font-family: 'Georgia', serif;
  text-transform: uppercase;
}

@keyframes titleShine {
  0%, 100% {
    filter: drop-shadow(0 3px 10px rgba(245, 210, 122, 0.4)) brightness(1);
  }
  50% {
    filter: drop-shadow(0 3px 16px rgba(245, 210, 122, 0.6)) brightness(1.12);
  }
}

.book-divider {
  width: 160px;
  height: 2px;
  margin: 14px auto 20px;
  background: linear-gradient(to right, 
    transparent, 
    rgba(245, 210, 122, 0.4),
    rgba(245, 210, 122, 0.6),
    rgba(245, 210, 122, 0.4),
    transparent);
  position: relative;
  opacity: 0.7;
}

.book-divider::before,
.book-divider::after {
  content: '✦ · ◇ · 🌾';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 9px;
  letter-spacing: 2px;
  color: rgba(245, 210, 122, 0.6);
  opacity: 0.7;
}

.book-divider::before {
  left: -20px;
}

.book-divider::after {
  right: -20px;
  animation-delay: 1s;
}

@keyframes dividerSparkle {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.7;
  }
}

/* ================================================= */
/* SERVICE LIST (INDEX)                              */
/* ================================================= */

/* Two Column Layout Container */
.service-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.service-column-left,
.service-column-right {
  list-style: none;
  padding: 8px 0;
  margin: 0;
  position: relative;
}

/* Elegant column ornaments with breathing */
.service-column-left::before {
  content: '🌿 · ✦ · 🌾 · ✦ · ◆ · ✦ · 🌾 · ✦ · 🌿';
  display: block;
  text-align: center;
  font-size: 9px;
  letter-spacing: 3px;
  color: rgba(245, 210, 122, 0.55);
  margin-bottom: 8px;
  opacity: 0.8;
  text-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.4),
    0 0 8px rgba(245, 210, 122, 0.15);
  animation: wreathGlow 5s ease-in-out infinite;
}

.service-column-right::before {
  content: '🌿 · ✦ · 🌾 · ✦ · ◆ · ✦ · 🌾 · ✦ · 🌿';
  display: block;
  text-align: center;
  font-size: 9px;
  letter-spacing: 3px;
  color: rgba(245, 210, 122, 0.55);
  margin-bottom: 8px;
  opacity: 0.8;
  text-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.4),
    0 0 8px rgba(245, 210, 122, 0.15);
  animation: wreathGlow 5s ease-in-out infinite 2.5s;
}

@keyframes wreathGlow {
  0%, 100% {
    opacity: 0.75;
    text-shadow: 
      0 1px 2px rgba(0, 0, 0, 0.4),
      0 0 6px rgba(245, 210, 122, 0.12);
  }
  50% {
    opacity: 0.9;
    text-shadow: 
      0 1px 2px rgba(0, 0, 0, 0.4),
      0 0 12px rgba(245, 210, 122, 0.2);
  }
}

/* Vertical divider with classical column capital */
.service-columns::after {
  content: '⚜️';
  position: absolute;
  left: 50%;
  top: -6px;
  transform: translateX(-50%);
  font-size: 11px;
  color: rgba(245, 210, 122, 0.6);
  text-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.5),
    0 0 10px rgba(245, 210, 122, 0.2);
  opacity: 0.85;
  z-index: 1;
  animation: capitalGlow 4s ease-in-out infinite;
}

@keyframes capitalGlow {
  0%, 100% {
    opacity: 0.8;
    text-shadow: 
      0 1px 2px rgba(0, 0, 0, 0.5),
      0 0 8px rgba(245, 210, 122, 0.15);
  }
  50% {
    opacity: 1;
    text-shadow: 
      0 1px 2px rgba(0, 0, 0, 0.5),
      0 0 16px rgba(245, 210, 122, 0.3);
  }
}

.service-columns::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(245, 210, 122, 0.2) 10%,
    rgba(245, 210, 122, 0.35) 50%,
    rgba(245, 210, 122, 0.2) 90%,
    transparent
  );
  transform: translateX(-50%);
  pointer-events: none;
  opacity: 0.8;
}
}

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

.service-item {
  border-bottom: 1px solid rgba(245, 210, 122, 0.2);
  padding: 8px 10px;
  transition: all 0.3s ease;
  position: relative;
  margin: 0 -10px;
  border-radius: 4px;
}

.service-item.active {
  background: linear-gradient(to right,
    rgba(245, 210, 122, 0.06),
    rgba(245, 210, 122, 0.03),
    transparent);
  border-color: rgba(245, 210, 122, 0.3);
}

/* Decorative left accent */
.service-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(to right, rgba(245, 210, 122, 0.2), transparent);
  transition: width 0.3s ease;
  border-radius: 4px 0 0 4px;
}

.service-item:hover {
  background: linear-gradient(to right, 
    rgba(245, 210, 122, 0.08), 
    rgba(245, 210, 122, 0.04), 
    rgba(245, 210, 122, 0.02), 
    transparent);
  border-color: rgba(245, 210, 122, 0.5);
  box-shadow: 
    inset 4px 0 0 rgba(245, 210, 122, 0.6),
    0 3px 16px rgba(245, 210, 122, 0.15),
    inset 0 0 20px rgba(245, 210, 122, 0.05);
  transform: translateX(4px);
}

.service-item:hover::before {
  width: 3px;
}

.service-item:last-child {
  border-bottom: 1px solid rgba(245, 210, 122, 0.15);
}

.service-main {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  padding: 2px 24px 2px 0;
}

.service-main a,
.service-sub a {
  color: inherit;
  text-decoration: none;
}

.service-main a {
  display: inline-flex;
  align-items: center;
}

.service-sub a {
  display: inline-block;
  width: 100%;
}

.service-main::after {
  content: '▸';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: rgba(245, 210, 122, 0.5);
  transition: all 0.3s ease;
  opacity: 0.6;
}

.service-item.active .service-main::after {
  transform: translateY(-50%) rotate(90deg);
  color: rgba(245, 210, 122, 0.8);
  opacity: 1;
}

.service-main:hover {
  color: #f5e5b8;
  padding-left: 16px;
  text-shadow: 0 2px 6px rgba(245, 210, 122, 0.3);
  letter-spacing: 0.5px;
  background: rgba(245, 210, 122, 0.03);
}

.service-main::before {
  content: "✦";
  position: absolute;
  left: -12px;
  top: 50%;
  width: auto;
  height: auto;
  font-size: 6px;
  color: rgba(245, 210, 122, 0.4);
  transform: translateY(-50%);
  transition: all 0.3s ease;
  opacity: 0;
}

.service-main:hover::before {
  opacity: 1;
  left: -16px;
  color: rgba(245, 210, 122, 0.7);
}

.chapter {
  min-width: 36px;
  width: 36px;
  height: 36px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  opacity: 0.85;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: 
    linear-gradient(135deg, rgba(245, 210, 122, 0.15), rgba(245, 210, 122, 0.08)),
    repeating-linear-gradient(45deg, transparent, transparent 1px, rgba(255, 255, 255, 0.02) 1px, rgba(255, 255, 255, 0.02) 2px);
  border: 2px solid rgba(245, 210, 122, 0.4);
  border-radius: 50%;
  transition: all 0.3s ease;
  flex-shrink: 0;
  box-shadow: 
    0 2px 6px rgba(0, 0, 0, 0.4),
    inset 0 1px 2px rgba(255, 255, 255, 0.1),
    inset 0 -1px 2px rgba(0, 0, 0, 0.3);
  position: relative;
  font-family: 'Times New Roman', serif;
  text-shadow: 
    0 1px 0 rgba(0, 0, 0, 0.8),
    0 -1px 0 rgba(255, 255, 255, 0.1);
}

.chapter::before {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(245, 210, 122, 0.25);
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 
    0 0 4px rgba(245, 210, 122, 0.15),
    inset 0 1px 1px rgba(255, 255, 255, 0.08);
}

.chapter::after {
  content: '·';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 6px;
  color: rgba(245, 210, 122, 0.4);
  opacity: 0.6;
}

.service-item:hover .chapter {
  opacity: 1;
  background: rgba(245, 210, 122, 0.18);
  border-color: rgba(245, 210, 122, 0.6);
  box-shadow: 
    0 3px 10px rgba(245, 210, 122, 0.25),
    0 0 20px rgba(245, 210, 122, 0.15),
    inset 0 0 8px rgba(245, 210, 122, 0.1);
  transform: scale(1.05);
}

.service-item:hover .chapter::before {
  border-color: rgba(245, 210, 122, 0.35);
  box-shadow: 
    0 0 6px rgba(245, 210, 122, 0.2),
    inset 0 1px 2px rgba(255, 255, 255, 0.12);
}

.service-sub {
  list-style: none;
  margin-top: 6px;
  margin-left: 46px;
  display: none !important;
  flex-direction: column;
  gap: 4px;
  padding: 6px 0 4px;
  border-left: 2px solid rgba(245, 210, 122, 0.2);
  padding-left: 12px;
}


.service-item.active .service-sub {
  display: flex !important;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-sub li {
  font-size: 15px;
  letter-spacing: 0.5px;
  opacity: 0.75;
  cursor: pointer;
  padding-left: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.service-sub li::before {
  content: "–";
  position: absolute;
  left: 0;
  opacity: 0.6;
  transition: all 0.3s ease;
}

.service-sub li:hover {
  opacity: 1;
  padding-left: 12px;
  color: #f5e5b8;
  transform: translateX(1px);
}

.service-sub li:hover::before {
  opacity: 1;
  color: rgba(245, 210, 122, 0.8);
}

/* ================================================= */
/* RESPONSIVE / MOBILE ADJUSTMENTS                   */
/* ================================================= */

/* (Media queries moved to end of file) */

/* ================================================= */
/* DOCUMENT SECTION (CHAPTERS/BABS)                  */
/* ================================================= */

.doc-wrapper {
  width: 65%;
  margin: 100px auto 160px;
  line-height: 1.8;
}

.doc-header {
  text-align: center;
  margin: 0 auto 32px;
  padding: 24px 40px;
  border: 2px solid rgba(245, 210, 122, 0.4);
  background: 
    linear-gradient(135deg, rgba(245, 210, 122, 0.05), rgba(245, 210, 122, 0.02), rgba(245, 210, 122, 0.05)),
    linear-gradient(225deg, rgba(245, 210, 122, 0.03), transparent, rgba(245, 210, 122, 0.03));
  position: relative;
  border-radius: 6px;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.3), 
    inset 0 0 40px rgba(245, 210, 122, 0.03),
    inset 10px 10px 0 -8px rgba(245, 210, 122, 0.4),
    inset -10px 10px 0 -8px rgba(245, 210, 122, 0.4),
    inset 10px -10px 0 -8px rgba(245, 210, 122, 0.4),
    inset -10px -10px 0 -8px rgba(245, 210, 122, 0.4);
}

.doc-header::before {
  content: '� ✦ · · · · · · · · · · · ✦ · · · · · · · · · · · ✦ · · · · · · · · · · · ✦ 🌾';
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 9px;
  letter-spacing: 2px;
  color: rgba(245, 210, 122, 0.6);
  pointer-events: none;
  z-index: 10;
  text-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.5),
    0 0 8px rgba(245, 210, 122, 0.15);
  animation: headerBreath 6s ease-in-out infinite;
}

@keyframes headerBreath {
  0%, 100% {
    opacity: 0.75;
    text-shadow: 
      0 1px 2px rgba(0, 0, 0, 0.5),
      0 0 6px rgba(245, 210, 122, 0.12);
  }
  50% {
    opacity: 0.95;
    text-shadow: 
      0 1px 2px rgba(0, 0, 0, 0.5),
      0 0 14px rgba(245, 210, 122, 0.22);
  }
}

.doc-header::after {
  content: '⚜️';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 180px;
  opacity: 0.05;
  color: #f5d27a;
  z-index: 0;
  pointer-events: none;
  text-shadow: 0 0 40px rgba(245, 210, 122, 0.2);
  animation: watermarkPulse 6s ease-in-out infinite;
}

@keyframes watermarkPulse {
  0%, 100% {
    opacity: 0.04;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.08;
    transform: translate(-50%, -50%) scale(1.03);
  }
}

.doc-chapter {
  font-size: 26px;
  letter-spacing: 8px;
  font-weight: 800;
  margin: 0 0 14px 0;
  text-transform: uppercase;
  background: linear-gradient(135deg, #f5d27a 0%, #ffeb9c 50%, #f5d27a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 8px rgba(245, 210, 122, 0.4));
  position: relative;
  z-index: 1;
  animation: shimmer 3s ease-in-out infinite;
  text-align: center;
  padding: 0 50px;
  font-family: 'Georgia', serif;
}

.doc-chapter::before,
.doc-chapter::after {
  content: '✦ 🌿';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  letter-spacing: 2px;
  opacity: 0.8;
  text-shadow: 0 0 10px rgba(245, 210, 122, 0.3);
  animation: leafGlow 5s ease-in-out infinite;
}

@keyframes leafGlow {
  0%, 100% {
    opacity: 0.7;
    text-shadow: 0 0 8px rgba(245, 210, 122, 0.2);
  }
  50% {
    opacity: 0.95;
    text-shadow: 0 0 14px rgba(245, 210, 122, 0.35);
  }
}

.doc-chapter::before {
  left: 0;
}

.doc-chapter::after {
  right: 0;
}

@keyframes shimmer {
  0%, 100% {
    filter: drop-shadow(0 2px 8px rgba(245, 210, 122, 0.4)) brightness(1);
  }
  50% {
    filter: drop-shadow(0 2px 12px rgba(245, 210, 122, 0.6)) brightness(1.1);
  }
}

.doc-title {
  font-size: 36px;
  margin: 16px auto;
  font-weight: 600;
  color: #fff3c4;
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.5),
    0 4px 12px rgba(245, 210, 122, 0.3),
    0 0 20px rgba(245, 210, 122, 0.2);
  position: relative;
  z-index: 1;
  letter-spacing: 1.5px;
  text-align: center;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
  padding: 0 60px;
}

.doc-title::before,
.doc-title::after {
  content: '✦ ⚜️';
  position: absolute;
  top: 50%;
  font-size: 16px;
  letter-spacing: 2px;
  color: rgba(245, 210, 122, 0.7);
  animation: capitalSparkle 4s ease-in-out infinite;
  text-shadow: 0 0 12px rgba(245, 210, 122, 0.4);
  transform-origin: center center;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doc-title::before {
  left: 140px;
  transform: translateY(-50%);
}

.doc-title::after {
  right: 140px;
  transform: translateY(-50%);
  animation-delay: 2s;
}

@keyframes capitalSparkle {
  0%, 100% {
    opacity: 0.7;
    transform: translateY(-50%) scale(1);
    text-shadow: 0 0 10px rgba(245, 210, 122, 0.3);
  }
  50% {
    opacity: 1;
    transform: translateY(-50%) scale(1.15);
    text-shadow: 0 0 18px rgba(245, 210, 122, 0.5);
  }
}

.doc-subtitle {
  font-size: 12px;
  opacity: 0.8;
  color: rgba(245, 210, 122, 0.85);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
  z-index: 1;
  text-align: center;
  margin: 12px auto 0;
  padding: 0 45px;
  font-family: 'Georgia', serif;
  font-style: italic;
  animation: subtitleBreath 5s ease-in-out infinite;
}

.doc-subtitle::before,
.doc-subtitle::after {
  content: '✦ · 🌾';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  letter-spacing: 2px;
  opacity: 0.6;
  color: rgba(245, 210, 122, 0.6);
}

.doc-subtitle::before {
  left: 5px;
}

.doc-subtitle::after {
  right: 5px;
}

@keyframes subtitleBreath {
  0%, 100% {
    opacity: 0.75;
  }
  50% {
    opacity: 0.9;
  }
}

.doc-section {
  margin-bottom: 32px;
  background: linear-gradient(to right, rgba(245, 210, 122, 0.03), rgba(245, 210, 122, 0.01));
  border: 1px solid rgba(245, 210, 122, 0.15);
  border-left: 3px solid rgba(245, 210, 122, 0.4);
  padding: 24px 28px;
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.doc-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, rgba(245, 210, 122, 0.7), rgba(245, 210, 122, 0.2));
  transition: width 0.3s ease;
}

.doc-section:hover {
  background: linear-gradient(to right, rgba(245, 210, 122, 0.05), rgba(245, 210, 122, 0.02));
  border-color: rgba(245, 210, 122, 0.3);
  border-left-color: rgba(245, 210, 122, 0.6);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(245, 210, 122, 0.12);
}

.doc-section:hover::before {
  width: 5px;
}

.doc-section h3 {
  font-size: 20px;
  margin-bottom: 16px;
  letter-spacing: 1px;
  font-weight: 700;
  color: #ffeb9c;
  position: relative;
  padding-bottom: 10px;
}

.doc-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(to right, rgba(245, 210, 122, 0.5), transparent);
}

.doc-section ul {
  margin: 14px 0 14px 24px;
  background: rgba(0, 0, 0, 0.1);
  padding: 14px 18px;
  border-radius: 4px;
  border-left: 2px solid rgba(245, 210, 122, 0.25);
}

.doc-section ul li {
  margin-bottom: 8px;
  line-height: 1.6;
  position: relative;
  padding-left: 8px;
}

.doc-section ul li::before {
  content: '▸';
  position: absolute;
  left: -16px;
  color: rgba(245, 210, 122, 0.5);
  font-size: 13px;
}

.note {
  font-size: 13px;
  opacity: 0.75;
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(245, 210, 122, 0.05);
  border-left: 2px solid rgba(245, 210, 122, 0.3);
  border-radius: 2px;
}

.note.strong {
  font-weight: bold;
  opacity: 0.9;
  background: rgba(245, 210, 122, 0.08);
  border-left-color: rgba(245, 210, 122, 0.5);
}

.price-highlight {
  font-size: 16px;
  font-weight: bold;
  color: #F5D27A;
  margin: 12px 0;
  padding: 12px 16px;
  background: rgba(245, 210, 122, 0.08);
  border: 1px solid rgba(245, 210, 122, 0.2);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price-highlight strong {
  color: #F5D27A;
  font-size: 18px;
}

.save {
  font-size: 13px;
  color: #90EE90;
  font-weight: normal;
  opacity: 0.9;
}

.order-cta {
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: 10px;
  border: 1px solid rgba(245, 210, 122, 0.3);
  background: rgba(245, 210, 122, 0.08);
  text-align: center;
}

.order-cta h3 {
  margin-bottom: 8px;
  color: #f5d27a;
  font-size: 18px;
}

.order-cta p {
  margin: 0 0 12px 0;
  color: rgba(245, 210, 122, 0.85);
  font-size: 14px;
}

.order-btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 6px;
  border: 1px solid rgba(245, 210, 122, 0.5);
  color: #f5d27a;
  text-decoration: none;
  font-weight: 600;
  background: rgba(245, 210, 122, 0.12);
  transition: all 0.25s ease;
}

.order-btn:hover {
  background: rgba(245, 210, 122, 0.22);
  border-color: rgba(245, 210, 122, 0.8);
}

.doc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
}

.doc-col {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.doc-ornament {
  text-align: center;
  font-size: 36px;
  letter-spacing: 16px;
  margin: 48px auto;
  padding: 20px 0;
  opacity: 0.75;
  position: relative;
  text-shadow: 
    0 2px 8px rgba(245, 210, 122, 0.3),
    0 0 12px rgba(245, 210, 122, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: ornamentPulse 6s ease-in-out infinite;
}

@keyframes ornamentPulse {
  0%, 100% {
    opacity: 0.7;
    text-shadow: 
      0 2px 8px rgba(245, 210, 122, 0.25),
      0 0 10px rgba(245, 210, 122, 0.12);
  }
  50% {
    opacity: 0.9;
    text-shadow: 
      0 2px 8px rgba(245, 210, 122, 0.35),
      0 0 16px rgba(245, 210, 122, 0.2);
  }
}

.doc-ornament::before,
.doc-ornament::after {
  content: "✦ 🌾 🌿";
  position: absolute;
  top: 50%;
  font-size: 14px;
  color: rgba(245, 210, 122, 0.6);
  transform: translateY(-50%);
  letter-spacing: 3px;
  animation: ornamentLeaf 5s ease-in-out infinite;
}

@keyframes ornamentLeaf {
  0%, 100% {
    opacity: 0.7;
  }
  50% {
    opacity: 0.95;
  }
}

.doc-ornament::before {
  left: -50px;
}

.doc-ornament::after {
  right: -50px;
  animation-delay: 2.5s;
}

.doc-ornament.bottom {
  margin-top: 64px;
}

/* ================================================= */
/* TOS PAGE STYLING                                  */
/* ================================================= */

.tos-page {
  overflow-y: auto;
  padding: 60px 0 120px;
  background: linear-gradient(180deg, #0b1324 0%, #0d1628 100%);
}

.tos-page .doc-wrapper {
  width: 75%;
  max-width: 1400px;
  margin: 40px auto;
}

.tos-page .doc-header {
  border: 2px solid rgba(245, 210, 122, 0.4);
  padding: 40px 60px;
  margin: 0 auto 56px;
  background: 
    linear-gradient(135deg, rgba(245, 210, 122, 0.05), rgba(245, 210, 122, 0.02), rgba(245, 210, 122, 0.05)),
    linear-gradient(225deg, rgba(245, 210, 122, 0.03), transparent, rgba(245, 210, 122, 0.03));
  border-radius: 8px;
  position: relative;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.3),
    inset 0 0 40px rgba(245, 210, 122, 0.03),
    inset 12px 12px 0 -10px rgba(245, 210, 122, 0.4),
    inset -12px 12px 0 -10px rgba(245, 210, 122, 0.4),
    inset 12px -12px 0 -10px rgba(245, 210, 122, 0.4),
    inset -12px -12px 0 -10px rgba(245, 210, 122, 0.4);
}

.tos-page .doc-header::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(245, 210, 122, 0.2);
  border-radius: 4px;
  z-index: 0;
  pointer-events: none;
}

.tos-page .doc-header::after {
  content: '⚖';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 180px;
  opacity: 0.04;
  color: #f5d27a;
  z-index: 0;
  pointer-events: none;
  animation: watermarkPulse 4s ease-in-out infinite;
}

.tos-page .doc-title {
  font-size: 3rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin: 20px auto;
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.5),
    0 4px 12px rgba(245, 210, 122, 0.3),
    0 0 20px rgba(245, 210, 122, 0.2);
  position: relative;
  z-index: 1;
  text-align: center;
}

.tos-page .doc-grid {
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 0;
}

.tos-page .doc-section {
  background: linear-gradient(to right, rgba(245, 210, 122, 0.04), rgba(245, 210, 122, 0.01));
  border: 1px solid rgba(245, 210, 122, 0.2);
  border-left: 4px solid rgba(245, 210, 122, 0.5);
  padding: 28px 32px;
  margin-bottom: 0;
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.tos-page .doc-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, rgba(245, 210, 122, 0.8), rgba(245, 210, 122, 0.3));
  transition: width 0.3s ease;
}

.tos-page .doc-section:hover {
  background: linear-gradient(to right, rgba(245, 210, 122, 0.06), rgba(245, 210, 122, 0.02));
  border-color: rgba(245, 210, 122, 0.4);
  border-left-color: rgba(245, 210, 122, 0.8);
  transform: translateX(6px);
  box-shadow: 0 4px 16px rgba(245, 210, 122, 0.15);
}

.tos-page .doc-section:hover::before {
  width: 6px;
}

.tos-page .doc-section h3 {
  font-size: 1.35rem;
  color: #ffeb9c;
  margin-bottom: 18px;
  letter-spacing: 0.8px;
  font-weight: 700;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 12px;
}

.tos-page .doc-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(to right, rgba(245, 210, 122, 0.6), transparent);
}

.tos-page .doc-section p {
  margin-bottom: 14px;
  line-height: 1.75;
  font-size: 15.5px;
  opacity: 0.95;
}

.tos-page .doc-section p + p {
  margin-top: 10px;
}

.tos-page .doc-section strong {
  color: #ffeb9c;
  font-weight: 600;
  background: rgba(245, 210, 122, 0.08);
  padding: 2px 6px;
  border-radius: 2px;
}

.tos-page .doc-section ul {
  margin: 16px 0 16px 28px;
  background: rgba(0, 0, 0, 0.15);
  padding: 16px 20px;
  border-radius: 4px;
  border-left: 2px solid rgba(245, 210, 122, 0.3);
}

.tos-page .doc-section ul li {
  margin-bottom: 10px;
  line-height: 1.65;
  position: relative;
  padding-left: 8px;
}

.tos-page .doc-section ul li::before {
  content: '▸';
  position: absolute;
  left: -16px;
  color: rgba(245, 210, 122, 0.6);
  font-size: 14px;
}

/* Important Section Styling */
.tos-page .doc-section.important {
  background: linear-gradient(to right, rgba(245, 210, 122, 0.08), rgba(245, 210, 122, 0.03));
  border: 2px solid rgba(245, 210, 122, 0.4);
  border-left: 5px solid rgba(245, 210, 122, 0.8);
  box-shadow: 0 4px 16px rgba(245, 210, 122, 0.2);
}

.tos-page .doc-section.important:hover {
  border-color: rgba(245, 210, 122, 0.6);
  box-shadow: 0 6px 24px rgba(245, 210, 122, 0.3);
}

.section-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(245, 210, 122, 0.9), rgba(245, 210, 122, 0.7));
  color: #0b1324;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 12px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(245, 210, 122, 0.4);
}

.tos-page::-webkit-scrollbar {
  width: 8px;
}

.tos-page::-webkit-scrollbar-thumb {
  background: rgba(245, 210, 122, 0.5);
  border-radius: 4px;
}

.tos-page::-webkit-scrollbar-thumb:hover {
  background: rgba(245, 210, 122, 0.7);
}

.doc-ornament.small {
  font-size: 13px;
  letter-spacing: 5px;
  margin: 14px 0;
  opacity: 0.75;
  text-shadow: 
    0 2px 4px rgba(245, 210, 122, 0.3),
    0 0 8px rgba(245, 210, 122, 0.15);
  animation: smallOrnamentGlow 5s ease-in-out infinite;
  font-family: 'Georgia', serif;
}

@keyframes smallOrnamentGlow {
  0%, 100% {
    opacity: 0.7;
    text-shadow: 
      0 2px 4px rgba(245, 210, 122, 0.25),
      0 0 6px rgba(245, 210, 122, 0.12);
  }
  50% {
    opacity: 0.85;
    text-shadow: 
      0 2px 4px rgba(245, 210, 122, 0.35),
      0 0 12px rgba(245, 210, 122, 0.2);
  }
}

/* ================================================= */
/* SERVICE LAYOUT (Portfolio + Price)                */
/* ================================================= */

.service-layout {
  display: grid;
  grid-template-columns: 2.1fr 1fr;
  gap: 48px;
  align-items: start;
  width: 100%;
}

.service-portfolio {
  display: flex;
  flex-direction: column;
  max-width: 920px;
}

.service-heading {
  font-size: 20px;
  letter-spacing: 2px;
  margin-bottom: 24px;
  font-weight: bold;
}

.service-price {
  display: flex;
  flex-direction: column;
}

.service-price .doc-section {
  margin-bottom: 36px;
}

.service-price h3 {
  font-size: 18px;
  letter-spacing: 1px;
  margin-bottom: 12px;
  font-weight: bold;
}

/* ================================================= */
/* PORTFOLIO GRID                                    */
/* ================================================= */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  contain: layout;
}

.portfolio-item {
  border: 1px solid rgba(245, 210, 122, 0.4);
  padding: 4px;
  background: linear-gradient(135deg, rgba(245, 210, 122, 0.02), rgba(245, 210, 122, 0.01));
  cursor: pointer;
  transition: all 0.3s ease;
  contain: layout style paint;
  content-visibility: auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.portfolio-item::before {
  content: '';\n  position: absolute;
  inset: 0;
  border: 1px solid rgba(245, 210, 122, 0);
  transition: all 0.3s ease;
  pointer-events: none;
}

.portfolio-item:hover {
  border-color: rgba(245, 210, 122, 0.7);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 210, 122, 0.15);
}

.portfolio-item:hover::before {
  border-color: rgba(245, 210, 122, 0.3);
  inset: -2px;
}

/* Tight grid variant for compact portfolios (rapat) */
.portfolio-grid.rapat {
  gap: 6px;
}

.portfolio-grid.rapat .portfolio-item {
  padding: 2px;
  border-width: 1px;
}

/* ================================================= */
/* VIDEO FULLSCREEN & CONTROLS SUPPORT              */
/* ================================================= */

.portfolio-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Ensure video player controls are visible and accessible */
video::-webkit-media-controls {
  display: flex;
}

video::-webkit-media-controls-fullscreen-button {
  display: inline-block;
}

/* iOS video fixes */
video {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* ================================================= */
/* VIDEO FULLSCREEN POPUP MODAL                      */
/* ================================================= */

.video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 5000;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.video-modal.active {
  display: flex;
}

.video-modal-content {
  position: relative;
  width: 100%;
  max-width: 90vw;
  max-height: 90vh;
}

.video-modal video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-modal-close {
  position: absolute;
  top: 10px;
  right: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  color: #000;
  font-size: 28px;
  cursor: pointer;
  padding: 5px 12px;
  z-index: 5001;
  border-radius: 4px;
}

.video-modal-close:hover {
  background: #fff;
}

.portfolio-item:hover {
  border-color: rgba(245, 210, 122, 0.9);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  max-height: 180px;
  object-fit: contain;
  object-position: center;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  margin: auto;
}

.portfolio-item.hero {
  grid-column: span 2;
  min-height: 220px;
}

.portfolio-item.hero img {
  max-height: 220px;
}

/* ================================================= */
/* VIDEO PORTFOLIO ITEMS                             */
/* ================================================= */

.portfolio-item.video {
  position: relative;
  padding: 8px;
  background: #0b1324;
  border: 1px solid rgba(245, 210, 122, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-item.video.portrait {
  aspect-ratio: 9 / 16;
  min-height: 240px;
}

.portfolio-item.video.landscape {
  aspect-ratio: 16 / 9;
  min-height: 180px;
}

.portfolio-item.video.hero {
  grid-column: span 2;
}

.portfolio-item video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #0b1324;
  margin: auto;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* Fallback when video fails to load / unsupported format (e.g. .mov on Chrome Windows) */
.portfolio-item.video .video-fallback-msg {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
  background: #0b1324;
  color: rgba(245, 210, 122, 0.9);
  font-size: 13px;
  line-height: 1.4;
  border: 1px dashed rgba(245, 210, 122, 0.3);
}

.portfolio-item.video.video-error video {
  opacity: 0.3;
}

.portfolio-item.video.video-error .video-fallback-msg {
  display: flex;
}

/* ================================================= */
/* PORTFOLIO VIEWER (POPUP)                          */
/* ================================================= */

.portfolio-viewer {
  position: fixed;
  inset: 0;
  background: rgba(11, 19, 36, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.portfolio-viewer img {
  max-width: 90%;
  max-height: 90%;
  border: 1px solid rgba(245, 210, 122, 0.6);
}

/* ================================================= */
/* HEROES PAGE                                       */
/* ================================================= */

.slide.heroes-page {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #0b1324;
  padding: 60px 20px;
}

.heroes-wrapper {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

.heroes-header {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 30px;
  position: relative;
}

.heroes-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(245, 210, 122, 0.6), transparent);
  box-shadow: 0 0 10px rgba(245, 210, 122, 0.4);
}

.heroes-title {
  font-size: 48px;
  font-weight: 400;
  color: #f5d27a;
  margin-bottom: 16px;
  letter-spacing: 1px;
  text-shadow: 0 2px 12px rgba(245, 210, 122, 0.3);
}

.heroes-subtitle {
  font-size: 18px;
  color: rgba(245, 210, 122, 0.8);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* 3D CAROUSEL */
.carousel-container {
  width: 100%;
  height: 660px;
  perspective: 1600px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 60px 0 20px;
}

.carousel-3d {
  width: 300px;
  height: 560px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  backface-visibility: hidden;
  touch-action: pan-y;
}

.carousel-item {
  position: absolute;
  width: 300px;
  height: 480px;
  left: 0;
  top: 0;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 2px solid rgba(245, 210, 122, 0.3);
  border-radius: 8px;
  overflow: visible;
  background: linear-gradient(180deg, rgba(11, 19, 36, 0.8), rgba(11, 19, 36, 0.95));
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(245, 210, 122, 0.05);
  backface-visibility: hidden;
  transform: translateZ(0);
}

.carousel-item::before {
  content: '';
  position: absolute;
  inset: -2px;
  border: 2px solid rgba(245, 210, 122, 0);
  border-radius: 8px;
  transition: all 0.8s ease;
  pointer-events: none;
  z-index: 10;
}

.carousel-item .hero-image {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.carousel-item .hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  backface-visibility: hidden;
}

.carousel-item .hero-socials {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  margin-top: 10px;
  background: rgba(11, 19, 36, 0.85);
  border: 1px solid rgba(245, 210, 122, 0.35);
  border-radius: 999px;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.35s ease;
  pointer-events: none;
  z-index: 20;
}

.carousel-item .hero-socials.is-empty {
  display: none;
}

.carousel-item.active .hero-socials {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero-social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 12px;
  letter-spacing: 0.3px;
  color: #f5d27a;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid rgba(245, 210, 122, 0.45);
  background: rgba(11, 19, 36, 0.75);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  transition: all 0.25s ease;
}

.hero-social-link:hover {
  border-color: rgba(245, 210, 122, 0.9);
  background: rgba(245, 210, 122, 0.15);
}

.carousel-item:hover .hero-image img {
  transform: scale(1.05) translateZ(0);
}

/* Center item is largest and most prominent */
.carousel-item.active {
  border-color: rgba(245, 210, 122, 0.8);
  box-shadow: 0 20px 60px rgba(245, 210, 122, 0.3), 0 0 40px rgba(245, 210, 122, 0.2), inset 0 0 30px rgba(245, 210, 122, 0.08);
  z-index: 10;
}

.carousel-item.active::before {
  border-color: rgba(245, 210, 122, 0.4);
  inset: -4px;
}

/* CAROUSEL CONTROLS */
.carousel-controls {
  position: absolute;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  z-index: 20;
}

.carousel-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(11, 19, 36, 0.9), rgba(11, 19, 36, 0.7));
  border: 2px solid rgba(245, 210, 122, 0.6);
  color: #f5d27a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(245, 210, 122, 0.05);
}

.carousel-btn:hover {
  background: linear-gradient(135deg, rgba(245, 210, 122, 0.3), rgba(245, 210, 122, 0.15));
  border-color: #f5d27a;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(245, 210, 122, 0.3), inset 0 0 15px rgba(245, 210, 122, 0.1);
}

.carousel-btn:active {
  transform: scale(0.95);
}

/* CAROUSEL INDICATORS */
.carousel-indicators {
  position: absolute;
  bottom: -130px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 20;
}

.carousel-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(245, 210, 122, 0.3);
  border: 1px solid rgba(245, 210, 122, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-indicator.active {
  background: #f5d27a;
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(245, 210, 122, 0.6);
}

.carousel-indicator:hover {
  background: rgba(245, 210, 122, 0.6);
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .slide.heroes-page {
    padding: 40px 16px;
  }

  .heroes-title {
    font-size: 32px;
  }

  .heroes-subtitle {
    font-size: 15px;
  }

  .carousel-container {
    height: 420px;
    margin: 40px 0 10px;
  }

  .carousel-3d,
  .carousel-item {
    width: 220px;
    height: 360px;
  }

  .carousel-controls {
    bottom: -60px;
  }

  .carousel-btn {
    width: 44px;
    height: 44px;
  }

  .carousel-indicators {
    bottom: -100px;
  }
}

@media (max-width: 480px) {
  .heroes-title {
    font-size: 28px;
  }

  .carousel-3d,
  .carousel-item {
    width: 200px;
    height: 320px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-3d,
  .carousel-item {
    transition: none;
  }

  .carousel-item:hover .hero-image img {
    transform: none;
  }
}

/* ================================================= */
/* STATS COUNTER PAGE                                */
/* ================================================= */

.slide.stats-page {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #0b1324;
  padding: 80px 20px;
}

.stats-wrapper {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.stats-header {
  text-align: center;
  margin-bottom: 60px;
}

.stats-ornament {
  font-size: 24px;
  color: rgba(245, 210, 122, 0.6);
  margin-bottom: 20px;
}

.stats-ornament.bottom {
  text-align: center;
  margin-top: 60px;
  font-size: 20px;
}

.stats-title {
  font-size: 48px;
  font-weight: 400;
  color: #f5d27a;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.stats-subtitle {
  font-size: 18px;
  color: rgba(245, 210, 122, 0.7);
  max-width: 600px;
  margin: 0 auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
  padding: 40px 20px;
  border: 2px solid rgba(245, 210, 122, 0.2);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(245, 210, 122, 0.03), transparent);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(245, 210, 122, 0.1), transparent);
  transition: left 0.6s ease;
}

.stat-item:hover::before {
  left: 100%;
}

.stat-item:hover {
  border-color: rgba(245, 210, 122, 0.6);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(245, 210, 122, 0.15);
}

.stat-icon {
  font-size: 48px;
  margin-bottom: 20px;
  filter: grayscale(0.3);
}

.stat-number {
  font-size: 56px;
  font-weight: 700;
  color: #f5d27a;
  margin-bottom: 12px;
  font-family: 'Georgia', serif;
}

.stat-label {
  font-size: 16px;
  color: rgba(245, 210, 122, 0.8);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ================================================= */
/* TESTIMONIALS PAGE                                 */
/* ================================================= */

.slide.testimonials-page {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #0b1324;
  padding: 80px 20px;
}

.testimonials-wrapper {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 60px;
}

.testimonials-ornament {
  font-size: 24px;
  color: rgba(245, 210, 122, 0.6);
  margin-bottom: 20px;
}

.testimonials-ornament.bottom {
  text-align: center;
  margin-top: 60px;
  font-size: 20px;
}

.testimonials-title {
  font-size: 48px;
  font-weight: 400;
  color: #f5d27a;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.testimonials-subtitle {
  font-size: 18px;
  color: rgba(245, 210, 122, 0.7);
  max-width: 600px;
  margin: 0 auto;
}

.testimonials-container {
  position: relative;
  width: 100%;
  height: 350px;
  margin-bottom: 40px;
}

.testimonial-card {
  position: absolute;
  width: 100%;
  padding: 40px;
  background: linear-gradient(135deg, rgba(245, 210, 122, 0.05), rgba(245, 210, 122, 0.02));
  border: 2px solid rgba(245, 210, 122, 0.3);
  border-radius: 12px;
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.5s ease;
  pointer-events: none;
}

.testimonial-card.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.testimonial-quote {
  font-size: 80px;
  color: rgba(245, 210, 122, 0.2);
  line-height: 0.5;
  margin-bottom: 20px;
  font-family: Georgia, serif;
}

.testimonial-text {
  font-size: 18px;
  line-height: 1.8;
  color: rgba(245, 210, 122, 0.9);
  margin-bottom: 30px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 20px;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(245, 210, 122, 0.3), rgba(245, 210, 122, 0.1));
  border: 2px solid rgba(245, 210, 122, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #f5d27a;
  flex-shrink: 0;
}

.testimonial-info {
  flex: 1;
}

.testimonial-name {
  font-size: 18px;
  font-weight: 600;
  color: #f5d27a;
  margin-bottom: 4px;
}

.testimonial-role {
  font-size: 14px;
  color: rgba(245, 210, 122, 0.6);
  letter-spacing: 0.5px;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(245, 210, 122, 0.3);
  border: 1px solid rgba(245, 210, 122, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.testimonial-dot.active {
  background: #f5d27a;
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(245, 210, 122, 0.6);
}

.testimonial-dot:hover {
  background: rgba(245, 210, 122, 0.6);
  transform: scale(1.2);
}

/* ================================================= */
/* HERO MODAL (POPUP)                                */
/* ================================================= */

.hero-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-modal.active {
  display: flex;
  opacity: 1;
}

.hero-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 19, 36, 0.96);
  backdrop-filter: blur(8px);
}

.hero-modal-container {
  position: relative;
  width: 90%;
  max-width: 960px;
  max-height: 85vh;
  background: linear-gradient(135deg, #1a2332 0%, #0f1624 100%);
  border: 2px solid rgba(245, 210, 122, 0.4);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(30px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.hero-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  background: rgba(11, 19, 36, 0.8);
  border: 1px solid rgba(245, 210, 122, 0.4);
  border-radius: 50%;
  color: #f5d27a;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  transition: all 0.3s ease;
}

.hero-modal-close:hover {
  background: rgba(245, 210, 122, 0.2);
  border-color: #f5d27a;
  transform: rotate(90deg);
}

.hero-modal-content {
  display: flex;
  height: 85vh;
  max-height: 700px;
}

.hero-modal-image {
  flex: 0 0 40%;
  background: linear-gradient(180deg, rgba(245, 210, 122, 0.05), rgba(11, 19, 36, 0.3));
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 30px;
  border-right: 1px solid rgba(245, 210, 122, 0.2);
}

.hero-modal-frame {
  position: relative;
  width: 100%;
  max-width: 320px;
  border: 3px solid rgba(245, 210, 122, 0.6);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, rgba(245, 210, 122, 0.1), transparent);
}

.hero-modal-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to bottom, rgba(245, 210, 122, 0.15), transparent);
  z-index: 1;
  pointer-events: none;
}

.hero-modal-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-modal-info {
  flex: 1;
  padding: 40px 40px 40px 40px;
  overflow-y: auto;
  color: #f5d27a;
}

.hero-modal-info::-webkit-scrollbar {
  width: 6px;
}

.hero-modal-info::-webkit-scrollbar-thumb {
  background: rgba(245, 210, 122, 0.4);
  border-radius: 4px;
}

.hero-modal-info::-webkit-scrollbar-track {
  background: rgba(245, 210, 122, 0.05);
}

.hero-modal-title {
  font-size: 32px;
  font-weight: 400;
  color: #f5d27a;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.hero-modal-role {
  font-size: 16px;
  color: rgba(245, 210, 122, 0.7);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 30px;
  font-weight: 600;
}

.hero-modal-section {
  margin-bottom: 28px;
}

.hero-modal-section h3 {
  font-size: 18px;
  color: #f5d27a;
  margin-bottom: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(245, 210, 122, 0.2);
  padding-bottom: 8px;
}

.hero-modal-section p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(245, 210, 122, 0.85);
}

.hero-modal-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-modal-section ul li {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(245, 210, 122, 0.85);
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
}

.hero-modal-section ul li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: rgba(245, 210, 122, 0.6);
  font-size: 12px;
}

/* ================================================= */
/* ANIMATIONS                                        */
/* ================================================= */

/* FADE IN DOWN - Title */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-down {
  animation: fadeInDown 0.8s ease-out forwards;
}

/* FADE IN UP - Frame & Social */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* ICON ANIMATE - Social Icons */
@keyframes iconScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.icon-animate {
  animation: iconScale 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.enter {
  opacity: 0;
  transform: translateY(12px);
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.25s; }
.delay-3 { animation-delay: 0.4s; }
.delay-4 { animation-delay: 0.55s; }
.delay-5 { animation-delay: 0.7s; }

@keyframes textEnter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.enter.is-active {
  animation: textEnter 0.6s ease-out forwards;
}

@keyframes fadeInUpOld {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUpOld 0.8s ease-out forwards;
}

/* ================================================= */
/* FORCE SIMULTANEOUS TEXT ANIMATIONS                */
/* ================================================= */
/* Disable staggered delay classes (override) */
.delay-1, .delay-2, .delay-3, .delay-4, .delay-5 {
  animation-delay: 0s !important;
}

/* Apply animation only when triggered by JS via classes */
/* Elements prepared for animation: hidden until animated */
.will-animate {
  opacity: 0;
  transform: translateY(12px);
  will-change: opacity, transform;
}

/* When JS adds .is-animated, run the fadeInUp animation */
.is-animated {
  animation: fadeInUp 0.65s ease-out forwards;
  will-change: auto;
}

/* Icons: remove stagger delays and rely on JS control */
.icon-animate { animation-delay: 0s !important; }


/* ================================================= */
/* GLOBAL UI (Fixed Navigation & Buttons)            */
/* ================================================= */

.global-home {
  position: fixed;
  top: 32px;
  left: 48px;
  z-index: 3000;
  background: none;
  border: 1px solid rgba(245, 210, 122, 0.8);
  color: #f5d27a;
  padding: 8px 18px;
  font-size: 13px;
  letter-spacing: 1px;
  cursor: pointer;
  opacity: 0.85;
  transition: background 0.25s ease, opacity 0.25s ease;
  display: block;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(245, 210, 122, 0.3);
  user-select: none;
  -webkit-user-select: none;
}

.global-home:hover,
.global-home:active {
  background: rgba(245, 210, 122, 0.08);
  opacity: 1;
}

.slide.cover .global-home {
  display: none !important;
}

/* ========================= */
/* LANGUAGE TOGGLE */
/* ========================= */
.global-lang-toggle {
  position: fixed;
  top: 32px;
  right: 48px;
  z-index: 3000;
  background: none;
  border: 1px solid rgba(245, 210, 122, 0.8);
  color: #f5d27a;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  opacity: 0.85;
  transition: background 0.25s ease, opacity 0.25s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(245, 210, 122, 0.3);
  user-select: none;
  -webkit-user-select: none;
}

.global-lang-toggle:hover,
.global-lang-toggle:active {
  background: rgba(245, 210, 122, 0.08);
  opacity: 1;
}

.global-lang-toggle .lang-flag {
  font-size: 16px;
  line-height: 1;
}

.global-lang-toggle .lang-text {
  font-weight: 600;
  letter-spacing: 1px;
}

.slide.cover .global-lang-toggle {
  display: flex !important;
}

/* ========================= */
/* LANGUAGE AUTO-DETECT NOTIFICATION */
/* ========================= */
.lang-notification {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  z-index: 4000;
  background: linear-gradient(135deg, rgba(245, 210, 122, 0.18), rgba(245, 210, 122, 0.12));
  border: 1px solid rgba(245, 210, 122, 0.6);
  border-radius: 8px;
  padding: 14px 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 30px rgba(245, 210, 122, 0.2);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  max-width: 90%;
}

.lang-notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.lang-notification-content {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #f5d27a;
  font-size: 14px;
  line-height: 1.5;
}

.lang-notification-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.lang-notification-text {
  font-family: "Georgia", serif;
  letter-spacing: 0.3px;
}

.lang-notification-text strong {
  font-weight: 600;
  color: #fff3c4;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* ========================= */
/* LANGUAGE SWITCHER */
/* ========================= */
.language-switcher {
  font-family: "Georgia", "Noto Sans SC", "Noto Sans JP", serif;
}

.lang-btn {
  font-family: "Georgia", "Noto Sans SC", "Noto Sans JP", serif;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  transition: all 0.3s ease;
}

.lang-btn:hover {
  background: rgba(245, 210, 122, 0.15) !important;
}

.lang-btn:active {
  transform: scale(0.95);
}

.lang-btn.active {
  background: rgba(245, 210, 122, 0.3) !important;
  border-color: #f5d27a !important;
  font-weight: 700 !important;
}

/* Mobile responsive */
@media screen and (max-width: 768px) {
  .language-switcher {
    top: 10px !important;
    right: 10px !important;
    padding: 6px 10px !important;
    gap: 6px !important;
  }
  
  .lang-btn {
    padding: 5px 10px !important;
    font-size: 12px !important;
  }
}

@media screen and (max-width: 480px) {
  .language-switcher {
    top: 8px !important;
    right: 8px !important;
    padding: 5px 8px !important;
    gap: 5px !important;
  }
  
  .lang-btn {
    padding: 4px 8px !important;
    font-size: 11px !important;
  }
}

/* ========================= */
/* NAVIGATION */
/* ========================= */
.nav-button {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, rgba(11, 19, 36, 0.85), rgba(11, 19, 36, 0.7));
  border: 1px solid rgba(245, 210, 122, 0.6);
  color: #f5d27a;
  font-size: 20px;
  cursor: pointer;
  z-index: 9999;
  transition: all 0.3s ease;
  display: block;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 0 10px rgba(245, 210, 122, 0.03);
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(245, 210, 122, 0.3);
  pointer-events: auto;
}

.nav-button:hover,
.nav-button:active {
  opacity: 1;
  background: linear-gradient(135deg, rgba(245, 210, 122, 0.2), rgba(245, 210, 122, 0.1));
  border-color: rgba(245, 210, 122, 0.9);
  box-shadow: 0 4px 16px rgba(245, 210, 122, 0.3), inset 0 0 15px rgba(245, 210, 122, 0.08);
  transform: translateY(-50%) scale(1.05);
}

.nav-left { left: 16px; }
.nav-right { right: 16px; }

/* ================================================= */
/* GLOBAL SOCIAL MEDIA                               */
/* ================================================= */

.global-social {
  position: fixed;
  bottom: 36px;
  right: 48px;
  z-index: 3000;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slide.cover .global-social {
  display: none !important;
}

.global-social-title {
  font-size: 12px;
  letter-spacing: 2px;
  opacity: 0.7;
}

.global-social-icons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.global-social-icons a {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(245, 210, 122, 0.8);
  color: #f5d27a;
  text-decoration: none;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, opacity 0.25s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(245, 210, 122, 0.3);
  user-select: none;
  -webkit-user-select: none;
}

.global-social-icons a:hover,
.global-social-icons a:active {
  background: rgba(245, 210, 122, 0.12);
  opacity: 1;
}

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

@media (max-width: 1100px) {
  .doc-wrapper {
    width: 75%;
  }

  .service-layout {
    grid-template-columns: 1.8fr 1fr;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Keep horizontal slides on mobile; avoid position:fixed on html to reduce gesture/freeze issues */
  html { height: 100%; overflow: hidden; touch-action: pan-y; }
  body { 
    height: 100vh; 
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
    position: relative;
    touch-action: pan-y;
  }

  .horizontal-wrapper { 
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: row;
    touch-action: pan-y;
  }

  .slide { 
    width: 100vw;
    height: 100vh;
    flex-shrink: 0;
    /* Default: allow vertical scroll inside each slide on mobile */
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: none;
  }

  .slide.cover {
    align-items: flex-start;
    padding-top: 100px;
    padding-bottom: 80px;
    /* Cover juga tetap bisa di-scroll kalau konten lebih tinggi */
    overflow-y: auto;
  }

  .service-layout { grid-template-columns: 1fr; gap: 18px; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .portfolio-item { min-height: 160px; }

  .doc-wrapper { width: 92%; margin: 18px auto; padding: 12px 0; }
  .doc-grid { grid-template-columns: 1fr; gap: 28px; }
  .doc-col { gap: 20px; }
  .doc-chapter { font-size: 14px; }
  .doc-title { font-size: 20px; }
  .doc-subtitle { font-size: 13px; }
  .service-heading { font-size: 15px; }

  .doc-section p, .doc-section li { font-size: 14px; line-height: 1.5; }
  .price-highlight {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .price-highlight strong { font-size: 16px; }

  .nav-button { width: 44px; height: 44px; font-size: 18px; }
  .nav-left { left: 8px; }
  .nav-right { right: 8px; }

  .nav-button { display: none; }

  .global-social { bottom: 16px; right: 14px; }
  .global-social-icons a { width: 34px; height: 34px; }

  .global-home { top: 20px; left: 20px; padding: 6px 12px; font-size: 12px; }
  .global-lang-toggle { top: 20px; right: 20px; padding: 6px 10px; font-size: 12px; }

  /* Language Notification Mobile */
  .lang-notification {
    bottom: 20px;
    padding: 12px 18px;
    max-width: 85%;
  }
  .lang-notification-content {
    gap: 10px;
  }
  .lang-notification-icon {
    font-size: 18px;
  }
  .lang-notification-text {
    font-size: 13px;
  }

  /* Index Page Mobile - Back to Single Column */
  .service-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .service-columns::after {
    display: none; /* Hide vertical divider */
  }

  img, video { max-width: 100%; height: auto; display: block; }

  /* Cover Page Mobile */
  .cover-frame { width: 90%; padding: 30px 20px; }
  .cover-frame { margin-top: 16px; }
  .cover-frame::before { display: none; } /* Remove background particles */
  .cover-corners { display: none; } /* Remove corner decorations */
  .cover-title { font-size: 24px; letter-spacing: 2px; }
  .cover-label { font-size: 12px; padding: 4px 12px; }
  .cover-box { width: 100px; height: 100px; }
  .cover-box img { width: 60px; }

  /* Index Page Mobile */
  .index-page::before,
  .index-page::after { display: none; } /* Remove background animations */
  .index-page {
    align-items: flex-start;
    overflow-y: auto;
    padding-top: 24px;
    padding-bottom: 80px;
    -webkit-overflow-scrolling: touch;
  }
  .index-title,
  .cover-title,
  .doc-title,
  .heroes-title,
  .tos-page-title {
    line-height: 1.2;
    letter-spacing: 0.5px;
    word-break: break-word;
  }
  .index-content { 
    width: 90%; 
    padding: 4vh 3vh; 
    max-height: none;
    overflow: visible;
  }
  .index-content::before,
  .index-content::after { display: none; } /* Remove decorative frame */
  .index-ornament { font-size: 32px; letter-spacing: 12px; margin-bottom: 16px; }
  .index-ornament::after { width: 100px; }
  .index-subtitle { font-size: 13px; letter-spacing: 2px; margin-bottom: 18px; }
  .index-title { font-size: 26px; margin-bottom: 18px; }
  .book-divider { width: 120px; margin: 18px auto 28px; }
  .book-divider::before,
  .book-divider::after { font-size: 10px; }

  .service-item { padding: 12px 8px; }
  .service-main { font-size: 16px; gap: 14px; }
  .chapter { 
    min-width: 34px; 
    width: 34px; 
    height: 34px; 
    font-size: 13px;
  }
  .service-sub { margin-left: 48px; font-size: 14px; }
  .index-ornament.bottom { margin-top: 36px; font-size: 30px; letter-spacing: 12px; }

  /* BAB Headers & Titles Mobile */
  .doc-header {
    padding: 20px 16px;
  }
  .doc-header::before { display: none; } /* Remove watermark */
  .doc-header::after { display: none; }
  .doc-header-corners { display: none; } /* Remove corner highlights */
  .doc-chapter { font-size: 14px; letter-spacing: 3px; }
  .doc-title { 
    font-size: 22px; 
    padding: 0 40px;
    letter-spacing: 1px;
  }
  .doc-title::before,
  .doc-title::after { display: none; }
  .doc-title::before,
  .doc-title::after { 
    font-size: 18px;
    left: 10px;
  }
  .doc-title::after { right: 10px; left: auto; }
  .doc-subtitle { font-size: 12px; letter-spacing: 2px; }
  .doc-ornament { font-size: 28px; letter-spacing: 10px; }
  .doc-ornament::after { width: 80px; }

  /* TOS Page Mobile */
  .tos-page-title { font-size: 28px; }
  .tos-toc { column-count: 1; padding: 20px; }
  .tos-section-title { font-size: 17px; }
  .tos-important-badge { font-size: 10px; padding: 3px 8px; }

  /* Reduce animations for better mobile performance */
  * { 
    animation-duration: 0.8s !important;
  }
  .doc-header::before,
  .cover-frame::before,
  .index-page::before { 
    animation: none !important; 
  }

  /* Heroes Responsive */
  .heroes-title { font-size: 32px; }
  .heroes-subtitle { font-size: 16px; padding: 0 20px; }
  
  /* Carousel Responsive */
  .carousel-container { height: 500px; }
  .carousel-3d { width: 250px; height: 420px; }
  .carousel-item { width: 250px; height: 420px; }
  .carousel-controls { bottom: 60px; }
  .carousel-btn { width: 45px; height: 45px; }

  /* Stats Responsive */
  .stats-title { font-size: 36px; }
  .stats-subtitle { font-size: 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .stat-number { font-size: 48px; }

  /* Testimonials Responsive */
  .testimonials-title { font-size: 36px; }
  .testimonials-subtitle { font-size: 16px; }
  .testimonials-container { height: 380px; }
  .testimonial-card { padding: 30px; }
  .testimonial-text { font-size: 16px; }

  /* Hero Modal Responsive */
  .hero-modal-content { flex-direction: column; height: auto; max-height: 85vh; }
  .hero-modal-image { flex: 0 0 auto; padding: 30px 20px 20px; border-right: none; border-bottom: 1px solid rgba(245, 210, 122, 0.2); }
  .hero-modal-frame { max-width: 280px; }
  .hero-modal-info { padding: 30px 20px; }
  .hero-modal-title { font-size: 26px; }
  .hero-modal-role { font-size: 14px; }
  .hero-modal-section h3 { font-size: 16px; }
  .hero-modal-section p, .hero-modal-section ul li { font-size: 14px; }
}

@media (max-width: 480px) {
  .horizontal-wrapper { min-height: calc(var(--vh, 1vh) * 100); }
  .slide { min-height: calc(var(--vh, 1vh) * 100); }
  .cover-title { font-size: 20px; }
  .cover-frame { padding: 20px; width: 92%; }
  .cover-box img { width: 48px; }

  .doc-wrapper { width: 95%; margin: 12px auto; padding: 10px 0; }
  .doc-title { font-size: 18px; }
  .doc-chapter { font-size: 12px; }
  .service-heading { font-size: 13px; }
  .doc-section p, .doc-section li { font-size: 13px; }
  .doc-section h3 { font-size: 15px; }

  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-item { min-height: 140px; }

  .nav-button { width: 40px; height: 40px; display: none; }
  .global-social-icons a { width: 30px; height: 30px; }
  
  .global-home { top: 16px; left: 16px; padding: 5px 10px; font-size: 11px; }
  .global-lang-toggle { top: 16px; right: 16px; padding: 5px 8px; font-size: 11px; gap: 4px; }
  .global-lang-toggle .lang-flag { font-size: 14px; }

  /* Language Notification Extra Small Mobile */
  .lang-notification {
    bottom: 16px;
    padding: 10px 16px;
    max-width: 90%;
  }
  .lang-notification-text {
    font-size: 12px;
  }
  .lang-notification-icon {
    font-size: 16px;
  }

  /* Cover Page Extra Small Mobile */
  .slide.cover { padding-top: 90px; padding-bottom: 70px; }
  .cover-frame { padding: 20px 16px; }
  .cover-title { font-size: 18px; letter-spacing: 0.5px; }
  .cover-label { font-size: 10px; padding: 3px 10px; }
  .cover-box { width: 80px; height: 80px; }
  .cover-box img { width: 48px; }
  .social-icons a { width: 36px; height: 36px; font-size: 16px; }

  /* Index Page Extra Small Mobile */
  .index-page { padding-top: 20px; padding-bottom: 70px; }
  .index-content { width: 94%; padding: 3vh 2vh; max-height: none; overflow: visible; }
  .index-ornament { font-size: 28px; letter-spacing: 10px; margin-bottom: 12px; }
  .index-subtitle { font-size: 12px; letter-spacing: 2px; margin-bottom: 14px; }
  .index-title { font-size: 22px; margin-bottom: 14px; }
  .book-divider { width: 100px; margin: 14px auto 22px; }
  .service-main { font-size: 15px; gap: 12px; }
  .chapter { 
    min-width: 30px; 
    width: 30px; 
    height: 30px; 
    font-size: 12px;
  }
  .service-sub { margin-left: 42px; font-size: 13px; }
  .service-sub li { padding-left: 6px; }
  .index-ornament.bottom { margin-top: 28px; font-size: 26px; letter-spacing: 10px; }

  .index-title,
  .cover-title,
  .doc-title,
  .heroes-title,
  .tos-page-title {
    line-height: 1.15;
    letter-spacing: 0.4px;
  }

  /* BAB Headers Extra Small Mobile */
  .doc-header { padding: 16px 12px; }
  .doc-title { 
    font-size: 19px; 
    padding: 0 36px;
  }
  .doc-title::before,
  .doc-title::after { 
    font-size: 16px;
    left: 8px;
  }
  .doc-title::after { right: 8px; }
  .doc-subtitle { font-size: 11px; }
  .doc-ornament { font-size: 24px; letter-spacing: 8px; }

  /* TOS Page Extra Small Mobile */
  .tos-page-title { font-size: 24px; }
  .tos-section-title { font-size: 16px; }
  .tos-section-content { padding: 14px; }

  /* Heroes Responsive */
  .heroes-title { font-size: 24px; }
  .heroes-subtitle { font-size: 14px; }
  
  /* Carousel Responsive */
  .carousel-container { height: 450px; }
  .carousel-3d { width: 220px; height: 380px; }
  .carousel-item { width: 220px; height: 380px; }
  .carousel-controls { bottom: 40px; gap: 15px; }
  .carousel-btn { width: 40px; height: 40px; }

  /* Stats Responsive */
  .stats-title { font-size: 28px; }
  .stats-subtitle { font-size: 14px; }
  .stats-grid { grid-template-columns: 1fr; gap: 20px; max-width: 400px; margin: 0 auto; }
  .stat-item { padding: 30px 20px; }
  .stat-number { font-size: 42px; }
  .stat-icon { font-size: 40px; }

  /* Testimonials Responsive */
  .testimonials-title { font-size: 28px; }
  .testimonials-subtitle { font-size: 14px; }
  .testimonials-container { height: 420px; }
  .testimonial-card { padding: 25px; }
  .testimonial-text { font-size: 15px; }
  .testimonial-quote { font-size: 60px; }
  .testimonial-avatar { width: 50px; height: 50px; font-size: 18px; }

  /* Hero Modal Responsive */
  .hero-modal-container { width: 95%; }
  .hero-modal-content { max-height: 90vh; }
  .hero-modal-image { padding: 20px 15px 15px; }
  .hero-modal-frame { max-width: 240px; }
  .hero-modal-info { padding: 20px 15px; }
  .hero-modal-title { font-size: 22px; }
  .hero-modal-role { font-size: 12px; }
  .hero-modal-section { margin-bottom: 20px; }
  .hero-modal-section h3 { font-size: 15px; }
  .hero-modal-section p, .hero-modal-section ul li { font-size: 13px; }
  .hero-modal-close { width: 38px; height: 38px; top: 12px; right: 12px; }
}

/* ================================================= */
/* PERFORMANCE OPTIMIZATION                          */
/* ================================================= */

/* Add will-change for smooth animations */
.cover-frame::before,
.doc-header::before,
.index-page::before,
.index-page::after {
  will-change: transform, opacity;
}

.doc-title,
.index-title,
.cover-title {
  will-change: filter;
}

.chapter,
.service-item,
.portfolio-item {
  will-change: transform;
}

/* ================================================= */
/* PRICE CALCULATOR & INVOICE                        */
/* ================================================= */

.calculator-page {
  background: linear-gradient(135deg, #0b1324 0%, #1a2744 100%);
}

.calculator-container {
  margin: 24px 0;
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 24px;
}

.calculator-section {
  background: rgba(11, 19, 36, 0.6);
  padding: 24px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.service-selector-new {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.calc-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-input-label {
  font-size: 14px;
  color: #d4af37;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.calc-select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(26, 39, 68, 0.8);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 8px;
  color: #f5d27a;
  font-size: 15px;
  font-family: "Georgia", serif;
  cursor: pointer;
  transition: all 0.3s ease;
}

.calc-select:hover {
  border-color: #d4af37;
  background: rgba(26, 39, 68, 1);
}

.calc-select:focus {
  outline: none;
  border-color: #d4af37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.calc-select option {
  background: #1a2744;
  color: #f5d27a;
  padding: 8px;
}

.btn-add-service {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #d4af37 0%, #f5d27a 100%);
  color: #0b1324;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Georgia", serif;
}

.btn-add-service:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.btn-add-service:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.selected-services-list {
  margin-top: 8px;
  padding: 16px;
  background: rgba(11, 19, 36, 0.5);
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.selected-service-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: rgba(26, 39, 68, 0.6);
  border-radius: 6px;
  border-left: 3px solid #d4af37;
  transition: all 0.2s ease;
}

.selected-service-item:hover {
  background: rgba(26, 39, 68, 0.8);
}

.selected-service-info {
  flex: 1;
}

.selected-service-name {
  font-size: 14px;
  color: #f5d27a;
  font-weight: bold;
  display: block;
  margin-bottom: 2px;
}

.selected-service-price {
  font-size: 13px;
  color: #d4af37;
}

.btn-remove-service {
  background: rgba(255, 77, 77, 0.2);
  border: 1px solid rgba(255, 77, 77, 0.4);
  color: #ff6b6b;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "Georgia", serif;
}

.btn-remove-service:hover {
  background: rgba(255, 77, 77, 0.3);
  border-color: #ff6b6b;
}

.service-selector {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 8px;
}

.service-selector::-webkit-scrollbar {
  width: 6px;
}

.service-selector::-webkit-scrollbar-track {
  background: rgba(11, 19, 36, 0.5);
  border-radius: 3px;
}

.service-selector::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.4);
  border-radius: 3px;
}

.service-selector::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 175, 55, 0.6);
}

.calc-summary {
  background: rgba(11, 19, 36, 0.8);
  padding: 20px;
  border-radius: 8px;
  min-height: 300px;
  max-height: 420px;
  overflow-y: auto;
  border: 1px solid rgba(212, 175, 55, 0.15);
}

.summary-empty {
  text-align: center;
  color: rgba(245, 210, 122, 0.5);
  padding: 60px 20px;
}

.summary-item {
  padding: 10px 12px;
  margin-bottom: 6px;
  background: rgba(26, 39, 68, 0.5);
  border-radius: 6px;
  border-left: 3px solid #d4af37;
  transition: all 0.2s ease;
}

.summary-item:hover {
  background: rgba(26, 39, 68, 0.7);
  transform: translateX(2px);
}

.summary-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.summary-item-name {
  font-weight: bold;
  color: #f5d27a;
  font-size: 14px;
}

.summary-item-price {
  color: #d4af37;
  font-size: 13px;
  font-weight: bold;
}

.calc-total {
  margin-top: 24px;
  padding: 16px;
  background: rgba(11, 19, 36, 0.8);
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.total-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 15px;
}

.subtotal-row {
  color: rgba(245, 210, 122, 0.8);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.discount-row {
  color: #5fd36d;
}

.final-row {
  font-size: 20px;
  font-weight: bold;
  color: #d4af37;
  border-top: 2px solid #d4af37;
  padding-top: 12px;
  margin-top: 8px;
}

.calc-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.btn-reset {
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Georgia", serif;
  background: rgba(212, 175, 55, 0.2);
  color: #f5d27a;
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.btn-reset:hover {
  background: rgba(212, 175, 55, 0.3);
  border-color: #d4af37;
  transform: translateY(-2px);
}

.calc-notes {
  margin-top: 20px;
  padding: 16px;
  background: rgba(11, 19, 36, 0.6);
  border-radius: 8px;
  border-left: 3px solid rgba(212, 175, 55, 0.5);
}

.calc-notes .note {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(245, 210, 122, 0.85);
}

.calc-notes strong {
  color: #d4af37;
  display: block;
  margin-bottom: 8px;
}

.bundle-detector {
  margin-top: 16px;
  transition: all 0.3s ease;
}

/* ================================================= */
/* HALL OF FAME PAGE                                 */
/* ================================================= */

.hof-page {
  margin: 0;
  min-height: 100vh;
  background-color: #0b1324;
  color: #f5d27a;
  font-family: 'Marcellus', 'Cinzel', serif;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  height: auto;
}

html.hof-root {
  position: static;
  overflow-y: auto;
  touch-action: pan-y;
}

.hof-page::before {
  content: none;
}

.hof-atmosphere {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.hof-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.8;
  animation: hofFloat 12s ease-in-out infinite;
}

.hof-orb.orb-1 {
  width: 260px;
  height: 260px;
  left: -80px;
  top: 140px;
  background: radial-gradient(circle, rgba(245, 210, 122, 0.26), transparent 60%);
}

.hof-orb.orb-2 {
  width: 220px;
  height: 220px;
  right: -60px;
  top: 60px;
  background: radial-gradient(circle, rgba(245, 210, 122, 0.22), transparent 60%);
  animation-delay: -3s;
}

.hof-orb.orb-3 {
  width: 320px;
  height: 320px;
  right: 10%;
  bottom: -120px;
  background: radial-gradient(circle, rgba(245, 210, 122, 0.2), transparent 60%);
  animation-delay: -6s;
}

.hof-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px 120px;
  position: relative;
  z-index: 1;
}

.hof-hero {
  text-align: center;
  margin-bottom: 48px;
  position: relative;
}

.hof-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border: 1px solid rgba(245, 210, 122, 0.8);
  color: #f5d27a;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 24px;
  background: none;
  opacity: 0.85;
  transition: background 0.25s ease, opacity 0.25s ease;
}

.hof-home:hover {
  background: rgba(245, 210, 122, 0.08);
  opacity: 1;
}

.hof-eyebrow {
  text-transform: uppercase;
  letter-spacing: 5px;
  font-size: 18px;
  font-weight: 600;
  color: rgba(245, 210, 122, 0.75);
  margin-bottom: 14px;
  padding: 0 24px;
  position: relative;
  display: inline-block;
}

.hof-eyebrow::before,
.hof-eyebrow::after {
  content: '✦';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: rgba(245, 210, 122, 0.6);
}

.hof-eyebrow::before {
  left: 0;
}

.hof-eyebrow::after {
  right: 0;
}

.hof-hero h1 {
  font-size: 54px;
  font-weight: 600;
  font-family: 'Cinzel', 'Marcellus', serif;
  margin-bottom: 16px;
  text-shadow: 0 10px 30px rgba(245, 210, 122, 0.2);
}

.hof-divider {
  width: 160px;
  height: 2px;
  margin: 0 auto 18px;
  background: linear-gradient(90deg, transparent, rgba(245, 210, 122, 0.7), transparent);
  box-shadow: 0 0 12px rgba(245, 210, 122, 0.35);
}

.hof-lead {
  max-width: 680px;
  margin: 0 auto;
  color: rgba(245, 210, 122, 0.85);
  line-height: 1.7;
}

.hof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
}

.hof-card {
  background: linear-gradient(140deg, rgba(14, 18, 28, 0.92), rgba(10, 14, 24, 0.75));
  border: 1px solid rgba(245, 210, 122, 0.18);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.hof-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(245, 210, 122, 0.08), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.hof-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 210, 122, 0.45);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.hof-card:hover::before {
  opacity: 1;
}

.hof-avatar,
.hof-avatar img {
  display: none;
}

.hof-card-body h3 {
  font-size: 18px;
  margin: 0;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.hof-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hof-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hof-avatar-mini {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 210, 122, 0.35);
  background: rgba(9, 14, 28, 0.85);
  flex-shrink: 0;
}

.hof-avatar-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hof-avatar-mini .hof-avatar-fallback {
  font-size: 16px;
  letter-spacing: 1px;
  color: rgba(245, 210, 122, 0.9);
}

.hof-social-toggle {
  margin-left: auto;
  border: 1px solid rgba(245, 210, 122, 0.35);
  background: rgba(9, 14, 28, 0.8);
  color: #f5d27a;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hof-social-toggle:hover {
  border-color: rgba(245, 210, 122, 0.9);
  background: rgba(245, 210, 122, 0.15);
}

.hof-social-empty {
  margin-left: auto;
  font-size: 12px;
  color: rgba(245, 210, 122, 0.6);
}

.hof-socials-menu {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.hof-social {
  text-decoration: none;
  color: #f5d27a;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(245, 210, 122, 0.28);
  background: rgba(9, 14, 28, 0.8);
  transition: all 0.2s ease;
}

.hof-social:hover {
  border-color: rgba(245, 210, 122, 0.9);
  background: rgba(245, 210, 122, 0.15);
  transform: translateY(-1px);
}

.hof-empty {
  text-align: center;
  color: rgba(245, 210, 122, 0.7);
}

@keyframes hofFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-18px) scale(1.05);
  }
}

@media (max-width: 768px) {
  .hof-hero h1 {
    font-size: 40px;
  }

  .hof-card {
    flex-direction: column;
    text-align: center;
    align-items: flex-start;
  }

  .hof-card-header {
    width: 100%;
  }

  .hof-social-toggle,
  .hof-social-empty {
    margin-left: 0;
  }
}

/* Bundle Active - When bundle is detected */
.bundle-detector.bundle-active {
  animation: bundlePulse 2s ease-in-out infinite;
}

.bundle-detector.bundle-active .note {
  background: rgba(212, 175, 55, 0.15) !important;
  border-left-color: var(--gold) !important;
  border-left-width: 4px !important;
}

/* Bundle Hint - When minimum services not met */
.bundle-detector.bundle-hint {
  opacity: 0.75;
}

.bundle-detector.bundle-hint .note {
  background: rgba(212, 175, 55, 0.05) !important;
  border-left-color: rgba(212, 175, 55, 0.4) !important;
  border-left-style: dashed !important;
}

@keyframes bundlePulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.85;
  }
}

/* ================================================= */
/* REDUCED MOTION (Accessibility)                    */
/* ================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .cover-frame::before,
  .doc-header::before,
  .index-page::before,
  .index-page::after {
    animation: none !important;
  }
}

/* ================================================= */
/* MOBILE PERFORMANCE TWEAKS                         */
/* ================================================= */
@media (max-width: 768px) {
  .language-switcher,
  .global-social,
  .global-home,
  .nav-button {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    background: rgba(26, 26, 46, 0.95);
  }
}

