/* ==================== CSS Variables ==================== */
:root {
  --color-primary: #8B5A2B;
  --color-secondary: #2C1810;
  --color-accent: #B8960C;
  --color-accent-light: #D4AF37;
  --color-text: #DDC9A8;
  --color-text-muted: #C8AE88;
  --color-bg-dark: #1A1208;
  --color-bg-card: rgba(44, 24, 16, 0.85);
  --color-gradient-start: #1A1208;
  --color-gradient-end: #2C1A0E;
  --font-display: "Cinzel", "Noto Serif SC", serif;
  --font-body: "Cormorant Garamond", "Noto Serif SC", serif;
  --font-chinese: "Noto Serif SC", serif;
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== Reset & Base ==================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  background: linear-gradient(135deg, var(--color-gradient-start) 0%, var(--color-gradient-end) 50%, var(--color-gradient-start) 100%);
  color: var(--color-text);
  min-height: 100vh;
  line-height: 1.8;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

strong {
  color: var(--color-accent-light);
  font-weight: 600;
}

em {
  font-style: italic;
  color: var(--color-text);
}

/* ==================== Background Effects ==================== */
.bg-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(ellipse at 20% 30%, rgba(184, 150, 12, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(139, 90, 43, 0.08) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
}

.bg-bamboo {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background:
    linear-gradient(180deg, transparent 0%, rgba(44, 26, 14, 0.4) 50%, transparent 100%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 40px,
      rgba(139, 90, 43, 0.15) 40px,
      rgba(139, 90, 43, 0.15) 42px
    );
  pointer-events: none;
  z-index: -1;
  opacity: 0.4;
}

/* ==================== Container ==================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==================== Navbar ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.4s var(--transition-smooth);
}

.navbar.scrolled {
  background: rgba(26, 18, 8, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  padding: 12px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  font-size: 26px;
  color: var(--color-accent-light);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-accent-light);
  letter-spacing: 3px;
}

.nav-links {
  display: flex;
  gap: 48px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ==================== Language Bar ==================== */
.lang-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: rgba(184, 150, 12, 0.08);
  border: 1px solid rgba(184, 150, 12, 0.2);
  border-radius: 8px;
}

.lang-btn {
  padding: 5px 10px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--color-text-muted);
  background: transparent;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.25s ease;
  min-width: 32px;
  text-align: center;
}

.lang-btn:hover {
  color: var(--color-accent-light);
  background: rgba(184, 150, 12, 0.12);
}

.lang-btn.active {
  color: var(--color-bg-dark);
  background: linear-gradient(135deg, var(--color-accent-light), var(--color-accent));
  box-shadow: 0 2px 8px rgba(184, 150, 12, 0.3);
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--color-text-muted);
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent-light);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--color-accent-light);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  padding: 8px;
}

.nav-toggle span {
  width: 28px;
  height: 2px;
  background: var(--color-accent-light);
  transition: all 0.3s ease;
}

/* ==================== Mobile Menu ==================== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(26, 18, 8, 0.98);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--transition-smooth);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 32px;
  text-align: center;
}

.mobile-nav-links a {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--color-text);
  transition: color 0.3s ease;
}

.mobile-nav-links a:hover {
  color: var(--color-accent-light);
}

/* ==================== Hero Section ==================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg-decor {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(700px, 90vw);
  height: min(700px, 90vw);
  opacity: 0.25;
  pointer-events: none;
}

.bagua-grid {
  width: 100%;
  height: 100%;
  animation: bagua-rotate 120s linear infinite;
}

@keyframes bagua-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 9vw, 88px);
  font-weight: 700;
  color: var(--color-accent-light);
  letter-spacing: 8px;
  text-shadow:
    0 0 40px rgba(212, 175, 55, 0.2),
    0 0 80px rgba(212, 175, 55, 0.1);
  margin-bottom: 16px;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 400;
  color: var(--color-text);
  letter-spacing: 4px;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 20px;
  color: var(--color-text-muted);
  margin-bottom: 48px;
  letter-spacing: 1px;
  font-style: italic;
}

/* ==================== Buttons ==================== */
.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 44px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--color-bg-dark);
  background: linear-gradient(135deg, var(--color-accent-light) 0%, #9B7D0A 100%);
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.3s var(--transition-smooth);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.35);
}

.btn-primary:active {
  transform: scale(0.98);
}

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

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

.btn-secondary {
  padding: 12px 36px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--color-accent-light);
  background: transparent;
  border: 2px solid var(--color-accent);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(184, 150, 12, 0.1);
  border-color: var(--color-accent-light);
}

/* ==================== Section Titles ==================== */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  color: var(--color-accent-light);
  text-align: center;
  letter-spacing: 6px;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 20px;
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: 64px;
  letter-spacing: 1px;
  font-style: italic;
}

/* ==================== Tradition Section ==================== */
.tradition {
  padding: 100px 0;
}

.tradition-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}

.tradition-text p {
  font-size: 19px;
  color: var(--color-text);
  margin-bottom: 20px;
  line-height: 2;
}

.tradition-quote {
  padding: 40px 32px;
  background: var(--color-bg-card);
  border: 1px solid rgba(184, 150, 12, 0.3);
  border-radius: 12px;
  position: sticky;
  top: 120px;
}

.tradition-quote blockquote {
  text-align: center;
}

.tradition-quote p {
  font-family: var(--font-display);
  font-size: 20px;
  font-style: italic;
  color: var(--color-accent-light);
  line-height: 1.8;
  margin-bottom: 16px;
}

.tradition-quote cite {
  font-size: 16px;
  color: var(--color-text-muted);
  font-style: normal;
  letter-spacing: 2px;
}

/* ==================== Bagua Divider ==================== */
.bagua-divider {
  padding: 60px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(15, 10, 4, 0.4);
}

.bagua-divider-inner {
  width: min(380px, 75vw);
  aspect-ratio: 1 / 1;
}

.bagua-divider-svg {
  width: 100%;
  height: 100%;
  display: block;
  animation: bagua-pulse 6s ease-in-out infinite;
}

@keyframes bagua-pulse {
  0%, 100% { opacity: 0.7; filter: drop-shadow(0 0 20px rgba(184, 150, 12, 0.1)); }
  50% { opacity: 1; filter: drop-shadow(0 0 40px rgba(184, 150, 12, 0.25)); }
}

/* ==================== Symbols Section ==================== */
.symbols {
  padding: 100px 0;
  background: rgba(26, 18, 8, 0.5);
}

.symbols-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
}

.symbol-card {
  flex: 1 1 300px;
  max-width: 100%;
  min-width: 280px;
  padding: 40px 32px;
  background: var(--color-bg-card);
  border: 1px solid rgba(184, 150, 12, 0.2);
  border-radius: 16px;
  transition: all 0.4s var(--transition-smooth);
}

.symbol-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-accent);
  box-shadow:
    0 16px 50px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(184, 150, 12, 0.08);
}

.symbol-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
}

.symbol-num {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 2px;
}

.symbol-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-accent-light);
  letter-spacing: 2px;
}

.symbol-desc {
  font-size: 17px;
  color: var(--color-text);
  margin-bottom: 24px;
  line-height: 1.8;
}

.symbol-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.symbol-tag {
  padding: 6px 12px;
  font-family: var(--font-display);
  font-size: 13px;
  border-radius: 4px;
  letter-spacing: 1px;
}

.symbol-tag.yang {
  background: rgba(184, 150, 12, 0.15);
  color: var(--color-accent-light);
  border: 1px solid rgba(184, 150, 12, 0.3);
}

.symbol-tag.yin {
  background: rgba(139, 90, 43, 0.2);
  color: var(--color-text-muted);
  border: 1px solid rgba(139, 90, 43, 0.4);
}

.symbol-tag.wood {
  background: rgba(107, 142, 95, 0.15);
  color: #8BC37A;
  border: 1px solid rgba(107, 142, 95, 0.3);
}

.symbol-tag.fire {
  background: rgba(184, 70, 50, 0.15);
  color: #E07A5F;
  border: 1px solid rgba(184, 70, 50, 0.3);
}

.symbol-tag.earth {
  background: rgba(184, 150, 12, 0.12);
  color: var(--color-accent-light);
  border: 1px solid rgba(184, 150, 12, 0.3);
}

.symbol-tag.metal {
  background: rgba(192, 192, 192, 0.1);
  color: #C0C0C0;
  border: 1px solid rgba(192, 192, 192, 0.25);
}

.symbol-tag.water {
  background: rgba(70, 130, 180, 0.15);
  color: #6B9BC3;
  border: 1px solid rgba(70, 130, 180, 0.3);
}

/* Element Cycle */
.element-cycle {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.cycle-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cycle-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.cycle-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 14px;
}

.cycle-flow .el {
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 1px;
}

.cycle-flow .arrow {
  color: var(--color-text-muted);
  font-size: 14px;
}

.cycle-flow .el.wood { background: rgba(107, 142, 95, 0.2); color: #8BC37A; }
.cycle-flow .el.fire { background: rgba(184, 70, 50, 0.2); color: #E07A5F; }
.cycle-flow .el.earth { background: rgba(184, 150, 12, 0.15); color: var(--color-accent-light); }
.cycle-flow .el.metal { background: rgba(192, 192, 192, 0.15); color: #C0C0C0; }
.cycle-flow .el.water { background: rgba(70, 130, 180, 0.2); color: #6B9BC3; }

.symbol-note {
  font-size: 15px;
  color: var(--color-text-muted);
  font-style: italic;
  line-height: 1.7;
  padding-top: 16px;
  border-top: 1px solid rgba(184, 150, 12, 0.15);
}

/* ==================== Pillars Section ==================== */
.pillars {
  padding: 100px 0;
  margin-bottom: 48px;
}

.pillars-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.pillar-card {
  flex: 1 1 240px;
  max-width: 100%;
  min-width: 220px;
  padding: 36px 28px;
  background: var(--color-bg-card);
  border: 1px solid rgba(184, 150, 12, 0.2);
  border-radius: 16px;
  transition: all 0.4s var(--transition-smooth);
}

.pillar-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-accent);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.3);
}

.pillar-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(184, 150, 12, 0.2);
}

.pillar-char {
  font-family: var(--font-chinese);
  font-size: 40px;
  color: var(--color-accent-light);
  line-height: 1;
}

.pillar-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-accent-light);
  letter-spacing: 2px;
}

.pillar-card h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.pillar-card p {
  font-size: 16px;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.pillars-note {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px;
  background: rgba(184, 150, 12, 0.05);
  border: 1px solid rgba(184, 150, 12, 0.2);
  border-radius: 12px;
  text-align: center;
}

.pillars-note p {
  font-size: 17px;
  color: var(--color-text);
  line-height: 1.9;
}

/* ==================== Principles Section ==================== */
.principles {
  padding: 100px 0;
}

.principles-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
}

.principle-card {
  flex: 1 1 300px;
  max-width: 100%;
  min-width: 280px;
  padding: 40px 36px;
  background: var(--color-bg-card);
  border: 1px solid rgba(184, 150, 12, 0.2);
  border-radius: 16px;
  transition: all 0.4s var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.principle-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--color-accent-light), var(--color-accent));
  opacity: 0.6;
}

.principle-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-accent);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.3);
}

.principle-icon {
  font-size: 36px;
  color: var(--color-accent-light);
  margin-bottom: 20px;
  line-height: 1;
}

.principle-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-accent-light);
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.principle-card p {
  font-size: 17px;
  color: var(--color-text);
  line-height: 1.9;
}

/* ==================== Compliance Footer ==================== */
.compliance-footer {
  background: rgba(15, 10, 4, 0.9);
  border-top: 1px solid rgba(184, 150, 12, 0.3);
  padding: 60px 0 40px;
}

.compliance-content {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.compliance-section {
  flex: 1 1 400px;
  max-width: 100%;
  min-width: 280px;
  padding: 24px;
  background: rgba(44, 24, 16, 0.6);
  border: 1px solid rgba(184, 150, 12, 0.15);
  border-radius: 12px;
}

.compliance-section h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-accent-light);
  margin-bottom: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.compliance-section p {
  font-size: 14px;
  color: rgba(225, 205, 175, 0.95);
  line-height: 1.8;
}

.reflection {
  padding: 100px 0;
  background: rgba(26, 18, 8, 0.5);
}

.reflection-box {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reflection-intro {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.reflection-intro:hover {
  transform: translateY(-4px);
}

.jar-display {
  width: 200px;
  margin: 0 auto 32px;
}

.jar-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

.jar-svg.shaking {
  animation: jar-shake 0.4s ease-in-out infinite;
}

@keyframes jar-shake {
  0%, 100% { transform: rotate(-8deg); }
  25% { transform: rotate(8deg); }
  50% { transform: rotate(-6deg); }
  75% { transform: rotate(6deg); }
}

.reflection-hint {
  font-size: 18px;
  color: var(--color-text-muted);
  font-style: italic;
  letter-spacing: 1px;
}

.reflection-result {
  display: none;
  padding: 48px 40px;
  background: var(--color-bg-card);
  border: 2px solid var(--color-accent);
  border-radius: 16px;
  width: 100%;
  animation: fadeInUp 0.6s ease;
}

.reflection-result.active {
  display: block;
}

.result-type {
  display: inline-block;
  padding: 8px 24px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  border-radius: 4px;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.result-type.harmonious {
  background: rgba(212, 175, 55, 0.15);
  color: var(--color-accent-light);
  border: 1px solid var(--color-accent);
}

.result-type.balanced {
  background: rgba(139, 90, 43, 0.2);
  color: var(--color-text);
  border: 1px solid var(--color-text-muted);
}

.result-type.reflection {
  background: rgba(70, 130, 180, 0.1);
  color: #6B9BC3;
  border: 1px solid rgba(70, 130, 180, 0.3);
}

.result-name {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--color-accent-light);
  margin-bottom: 24px;
  letter-spacing: 4px;
}

.result-poem {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--color-text);
  line-height: 2;
  margin-bottom: 24px;
  font-style: italic;
  letter-spacing: 2px;
}

.result-meaning {
  font-size: 17px;
  color: var(--color-text);
  margin-bottom: 20px;
  line-height: 1.9;
}

.result-practice {
  padding: 20px;
  background: rgba(184, 150, 12, 0.08);
  border-left: 3px solid var(--color-accent);
  border-radius: 4px;
  text-align: left;
  margin-bottom: 32px;
}

.result-practice::before {
  content: "Reflection Practice · ";
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-accent-light);
  letter-spacing: 1px;
}

/* ==================== Contact Section ==================== */
.contact {
  padding: 100px 0;
}

.contact-cards {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px 48px;
  background: var(--color-bg-card);
  border: 1px solid rgba(184, 150, 12, 0.2);
  border-radius: 16px;
  transition: all 0.4s var(--transition-smooth);
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent-light);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.contact-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border-radius: 12px;
  color: white;
}

.contact-icon svg {
  width: 30px;
  height: 30px;
}

.contact-info h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
  letter-spacing: 2px;
}

.contact-info p {
  font-size: 15px;
  color: var(--color-text-muted);
}

.contact-arrow {
  font-size: 22px;
  color: var(--color-accent-light);
  transition: transform 0.3s ease;
}

.contact-card:hover .contact-arrow {
  transform: translateX(8px);
}

/* ==================== Footer ==================== */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid rgba(184, 150, 12, 0.15);
}

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

.footer-brand {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.footer-disclaimer {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;
  background: rgba(184, 150, 12, 0.05);
  border: 1px solid rgba(184, 150, 12, 0.15);
  border-radius: 10px;
}

.footer-disclaimer p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.9;
  text-align: left;
}

.footer-disclaimer strong {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 1px;
}

/* ==================== Animations ==================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }
.delay-5 { animation-delay: 0.75s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== Language Mode Fonts & Layout Fixes ==================== */
/* Chinese */
body.lang-zh {
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  --font-body: "Noto Serif SC", serif;
}

body.lang-zh .hero-title {
  font-family: "Ma Shan Zheng", "ZCOOL XiaoWei", "Noto Serif SC", serif;
  letter-spacing: 12px;
}

body.lang-zh .section-title {
  font-family: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  letter-spacing: 8px;
}

body.lang-zh .nav-links a,
body.lang-zh .mobile-nav-links a {
  font-family: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  letter-spacing: 4px;
}

body.lang-zh .logo-text {
  font-family: "Ma Shan Zheng", "ZCOOL XiaoWei", serif;
  letter-spacing: 6px;
}

body.lang-zh .symbol-tag,
body.lang-zh .cycle-label,
body.lang-zh .cycle-flow .el {
  font-family: "Noto Serif SC", serif;
  letter-spacing: 1px;
}

body.lang-zh .cycle-label {
  text-transform: none;
}

body.lang-zh .pillar-card h3,
body.lang-zh .symbol-card h3 {
  font-family: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  letter-spacing: 3px;
}

body.lang-zh .pillar-card h4 {
  font-family: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  letter-spacing: 2px;
}

body.lang-zh .btn-primary,
body.lang-zh .btn-secondary,
body.lang-zh .lang-current {
  font-family: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  letter-spacing: 3px;
}

body.lang-zh .result-type,
body.lang-zh .footer-disclaimer strong {
  font-family: "ZCOOL XiaoWei", "Noto Serif SC", serif;
}

body.lang-zh em {
  font-style: normal;
  color: var(--color-accent-light);
}

body.lang-zh .symbol-note {
  font-style: normal;
}

/* ===== Non-Chinese: reduce letter-spacing, allow word break ===== */
body:not(.lang-zh) .hero-title {
  letter-spacing: 2px;
}

body:not(.lang-zh) .section-title {
  letter-spacing: 2px;
}

body:not(.lang-zh) .nav-links a {
  letter-spacing: 1px;
}

body:not(.lang-zh) .hero-subtitle {
  letter-spacing: 1px;
}

body:not(.lang-zh) .hero-eyebrow {
  letter-spacing: 3px;
}

body:not(.lang-zh) .symbol-tag {
  font-size: 12px;
  letter-spacing: 0.5px;
}

body:not(.lang-zh) .cycle-label {
  letter-spacing: 1px;
  text-transform: none;
}

/* French, German, Spanish — use Cinzel for display */
body.lang-fr .section-title,
body.lang-de .section-title,
body.lang-es .section-title,
body.lang-fr .hero-title,
body.lang-de .hero-title,
body.lang-es .hero-title {
  font-family: "Cinzel", serif;
}

body.lang-fr em,
body.lang-de em,
body.lang-es em {
  font-style: normal;
  color: var(--color-accent-light);
}

/* ===== Word break safety for all text ===== */
.tradition-text p,
.symbol-desc,
.pillar-card p,
.principle-card p,
.compliance-section p,
.pillars-note p {
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

/* ===== Equal-height cards ===== */
.pillars-grid,
.principles-grid,
.symbols-grid {
  align-items: stretch;
}

.pillar-card,
.principle-card,
.symbol-card {
  display: flex;
  flex-direction: column;
}

.pillar-card p,
.principle-card p {
  flex-grow: 1;
}

/* ===== Responsive nav for longer text ===== */
.nav-links {
  gap: 32px;
}

body.lang-fr .nav-links,
body.lang-de .nav-links,
body.lang-es .nav-links {
  gap: 24px;
}

body.lang-fr .nav-links a,
body.lang-de .nav-links a,
body.lang-es .nav-links a {
  font-size: 13px;
}

/* ==================== Responsive ==================== */
@media (max-width: 1200px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 1024px) {
  .tradition-content {
    grid-template-columns: 1fr;
  }

  .tradition-quote {
    position: static;
    order: -1;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 100px 24px 60px;
  }

  .hero-title {
    letter-spacing: 4px;
  }

  .symbol-card,
  .pillar-card,
  .principle-card,
  .compliance-section {
    flex: 1 1 100%;
    min-width: 100%;
  }

  .contact-cards {
    flex-direction: column;
    align-items: center;
  }

  .contact-card {
    width: 100%;
    max-width: 420px;
  }

  .footer-disclaimer {
    padding: 20px;
  }

  .reflection-result {
    padding: 36px 28px;
  }

  .result-name {
    font-size: 26px;
  }

  .compliance-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .lang-bar {
    gap: 2px;
    padding: 3px;
  }

  .lang-btn {
    padding: 4px 7px;
    font-size: 11px;
    min-width: 26px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .btn-primary {
    padding: 14px 32px;
    font-size: 14px;
  }

  .symbol-card,
  .pillar-card,
  .service-card {
    padding: 28px 24px;
  }

  .contact-card {
    padding: 24px;
  }
}
