/* ====================================================================
   T133 BOTANICAL ZEN — STYLESHEET
   Theme: Bamboo Sanctuary, Serene Bonsai, & Floating Jade Leaves
   ==================================================================== */

:root {
  --bg-color: #022c22;
  --bg-card: rgba(6, 78, 59, 0.85);
  --border-color: rgba(34, 197, 94, 0.35);
  --primary: #16a34a;
  --primary-glow: rgba(22, 163, 74, 0.5);
  --accent: #eab308;
  --accent-glow: rgba(234, 179, 8, 0.4);
  --matcha: #84cc16;
  --text-main: #ecfdf5;
  --text-muted: #a7f3d0;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

#particles-canvas,
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 5;
}
#confetti-canvas {
  z-index: 100;
}

.ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(95px);
  opacity: 0.22;
  animation: pulseZen 9s ease-in-out infinite alternate;
}
.orb-1 { width: 380px; height: 380px; background: var(--primary); top: -80px; left: -80px; }
.orb-2 { width: 420px; height: 420px; background: var(--accent); bottom: -100px; right: -100px; animation-delay: 3s; }
.orb-3 { width: 300px; height: 300px; background: var(--matcha); top: 40%; left: 35%; animation-delay: 5s; }

@keyframes pulseZen {
  0% { transform: scale(1) translate(0, 0); opacity: 0.18; }
  100% { transform: scale(1.3) translate(30px, -20px); opacity: 0.3; }
}

/* PASSCODE & UNBOXING OVERLAYS */
.passcode-overlay,
.unboxing-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 44, 34, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.passcode-overlay.hidden,
.unboxing-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.passcode-card,
.vault-box-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: 0 0 35px var(--primary-glow);
  border-radius: 20px;
  padding: 2.2rem;
  width: 100%;
  max-width: 420px;
  text-align: center;
  position: relative;
  z-index: 10;
}

.passcode-icon {
  font-size: 3.5rem;
  margin-bottom: 0.8rem;
  display: inline-block;
  animation: floatZen 3.5s ease-in-out infinite;
}
@keyframes floatZen {
  0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 10px var(--matcha)); }
  50% { transform: translateY(-8px); filter: drop-shadow(0 0 20px var(--accent)); }
}

.passcode-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
}
.passcode-sub {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.2rem;
}
.passcode-prompt {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.passcode-dots-wrapper {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}
.passcode-dot-box {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: transparent;
  transition: all 0.25s ease;
}
.passcode-dot-box.filled {
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.passcode-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.keypad-btn {
  background: rgba(4, 120, 87, 0.45);
  border: 1px solid rgba(234, 179, 8, 0.25);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  padding: 0.8rem 0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.keypad-btn:hover {
  background: var(--primary);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 0 15px var(--primary-glow);
}
.keypad-btn:active { transform: translateY(1px); }
.keypad-btn.action-btn { font-size: 0.9rem; color: var(--accent); }

.passcode-error-msg {
  color: #f87171;
  font-size: 0.85rem;
  min-height: 1.2rem;
  margin-bottom: 0.5rem;
}
.btn-bypass {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-decoration: underline;
  cursor: pointer;
  margin-top: 0.4rem;
}
.btn-bypass:hover { color: var(--accent); }

/* UNBOXING BAMBOO CHEST */
.vault-chest {
  font-size: 4.5rem;
  margin: 1.2rem 0;
  cursor: pointer;
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 0 25px var(--matcha));
}
.vault-chest:hover { transform: scale(1.12); }

.btn-open-vault {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 0 25px var(--primary-glow);
  transition: all 0.25s ease;
  width: 100%;
}
.btn-open-vault:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 35px var(--accent-glow);
}

/* MAIN WRAPPER */
.main-wrapper {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}

/* HERO SECTION */
.hero-section {
  text-align: center;
  padding: 2rem 0 3rem;
}
.badge-pill {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  background: rgba(22, 163, 74, 0.2);
  border: 1px solid var(--primary);
  color: var(--matcha);
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 2px;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  box-shadow: 0 0 15px var(--primary-glow);
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.15;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 30%, var(--matcha) 70%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto 1.8rem;
}
.hero-meta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.95rem;
  color: var(--accent);
}

/* FLOATING CONTROLS */
.floating-controls {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 80;
}
.ctrl-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--matcha);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  transition: all 0.2s ease;
}
.ctrl-btn:hover {
  transform: scale(1.1);
  border-color: var(--accent);
  box-shadow: 0 0 18px var(--accent-glow);
}

/* CAKE SECTION */
.cake-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 3rem 2rem;
  text-align: center;
  margin-bottom: 3.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}
.cake-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}
.section-heading {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
}
.section-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

/* Zen Stone Cake Arrangement */
.cake-wrapper {
  margin: 2rem auto;
  width: 200px;
  position: relative;
}
.cake-candles {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: -5px;
  position: relative;
  z-index: 2;
}
.candle {
  width: 14px;
  height: 45px;
  background: repeating-linear-gradient(45deg, #15803d, #15803d 6px, #84cc16 6px, #84cc16 12px);
  border-radius: 4px 4px 0 0;
  position: relative;
}
.flame {
  width: 16px;
  height: 24px;
  background: radial-gradient(circle, #fff, #eab308 60%, #16a34a 100%);
  border-radius: 50% 50% 20% 20%;
  position: absolute;
  top: -26px;
  left: -1px;
  box-shadow: 0 0 18px #eab308, 0 0 30px #16a34a;
  animation: flickerZen 1.2s infinite alternate ease-in-out;
  transition: opacity 0.4s ease;
}
.flame.extinguished {
  opacity: 0;
  animation: none;
}
@keyframes flickerZen {
  0% { transform: scale(1) rotate(-2deg); }
  100% { transform: scale(1.15) rotate(2deg); }
}

.cake-body {
  width: 180px;
  height: 70px;
  background: linear-gradient(180deg, #064e3b, #022c22);
  border-radius: 12px 12px 8px 8px;
  margin: 0 auto;
  position: relative;
  border: 2px solid var(--primary);
  box-shadow: 0 8px 25px rgba(22, 163, 74, 0.4);
}
.cake-icing {
  position: absolute;
  top: 0; left: 0; right: 0; height: 22px;
  background: var(--matcha);
  border-radius: 10px 10px 14px 14px;
}

.btn-blow {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 0 20px var(--primary-glow);
  transition: all 0.25s ease;
  margin-top: 1.5rem;
}
.btn-blow:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--accent-glow);
}
.cake-wish-banner {
  margin-top: 1.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  display: none;
  animation: popIn 0.5s ease;
}

/* LETTER SECTION */
.letter-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  margin-bottom: 3.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.letter-date {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.2rem;
}
.letter-salutation {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  color: #fff;
  margin-bottom: 1.5rem;
}
.letter-body p {
  color: var(--text-main);
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
  line-height: 1.8;
}
.letter-postscript {
  margin-top: 1.8rem;
  padding: 1rem 1.2rem;
  background: rgba(22, 163, 74, 0.15);
  border-left: 4px solid var(--matcha);
  font-style: italic;
  color: var(--accent);
}
.letter-signoff {
  margin-top: 2rem;
  text-align: right;
}
.letter-signoff-line {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.letter-author {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}

/* SEASONS TIMELINE */
.timeline-section {
  margin-bottom: 3.5rem;
}
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.8rem;
}
.arc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 1.8rem;
  transition: all 0.25s ease;
}
.arc-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px var(--primary-glow);
}
.arc-badge {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--matcha);
  background: rgba(132, 204, 22, 0.15);
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  margin-bottom: 0.8rem;
}
.arc-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 0.6rem;
}
.arc-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* QUOTES */
.quotes-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}
.quote-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 2rem;
}
.quote-card p {
  font-size: 1rem;
  font-style: italic;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.7;
}
.quote-author {
  color: var(--accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}

/* FOOTER */
.site-footer {
  text-align: center;
  padding: 3rem 1rem 2rem;
  border-top: 1px solid rgba(22, 163, 74, 0.2);
}
.footer-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}
.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}
.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.copyright {
  color: #059669;
  font-size: 0.8rem;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 768px) {
  .main-wrapper { padding: 1.5rem 1rem 4rem; }
  .cake-section, .letter-section { padding: 2rem 1.2rem; }
  .hero-meta { flex-direction: column; gap: 0.4rem; }
  .timeline-grid, .quotes-section { grid-template-columns: 1fr; }
  .floating-controls { bottom: 1rem; right: 1rem; }
}

@media (max-width: 480px) {
  .passcode-card, .vault-box-container { padding: 1.5rem 1rem; }
  .keypad-btn { padding: 0.7rem 0; font-size: 1.1rem; }
}
