/* ==========================================================================
   T-FATHER-SILENT-PILLAR: THE SILENT PILLAR — BEDROCK OF STRENGTH
   ========================================================================== */
:root {
  --bg-dark: #0f1117;
  --bg-card: rgba(24, 27, 36, 0.85);
  --bg-card-hover: rgba(32, 36, 48, 0.95);
  --amber-hearth: #f59e0b;
  --amber-light: #fbbf24;
  --amber-glow: rgba(245, 158, 11, 0.35);
  --slate-silver: #94a3b8;
  --silver-light: #e2e8f0;
  --border-slate: rgba(148, 163, 184, 0.22);
  --border-amber: rgba(245, 158, 11, 0.3);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --font-serif: 'Cinzel', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
}

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

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

/* Background Mountain Canvas */
#mountain-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

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

/* Audio Control */
.audio-ctrl {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 50;
}

.audio-btn {
  background: rgba(24, 27, 36, 0.88);
  color: var(--amber-light);
  border: 1px solid var(--border-amber);
  padding: 0.6rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.audio-btn:hover {
  background: rgba(245, 158, 11, 0.16);
  border-color: var(--amber-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--amber-glow);
}

/* Passcode Modal */
.passcode-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 17, 0.95);
  backdrop-filter: blur(16px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.passcode-modal.unlocked {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.passcode-card {
  background: linear-gradient(145deg, rgba(28, 32, 44, 0.94), rgba(15, 17, 23, 0.98));
  border: 1.5px solid var(--border-amber);
  border-radius: 1.5rem;
  padding: 2.25rem 1.75rem;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.7), 0 0 30px var(--amber-glow);
}

.passcode-icon {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 0 10px var(--amber-hearth));
}

.passcode-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--amber-light);
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.passcode-sub {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
}

.pin-row {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.pin-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--amber-light);
  background: transparent;
  transition: all 0.2s ease;
}

.pin-dot.filled {
  background: var(--amber-light);
  box-shadow: 0 0 12px var(--amber-light);
  transform: scale(1.15);
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  max-width: 260px;
  margin: 0 auto;
}

.key-btn {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 0.85rem;
  font-size: 1.25rem;
  font-weight: 600;
  padding: 0.8rem 0;
  cursor: pointer;
  transition: all 0.18s ease;
}

.key-btn:hover, .key-btn:active {
  background: rgba(245, 158, 11, 0.22);
  border-color: var(--amber-light);
  color: var(--amber-light);
  transform: scale(1.05);
}

.key-hint {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: var(--silver-light);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Main Container */
.main-wrapper {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 5rem;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 2rem 0 3rem;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid var(--border-amber);
  color: var(--amber-light);
  font-family: var(--font-serif);
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  padding: 0.45rem 1.15rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
}

.hero-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.3rem, 6.2vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: #fff;
}

.hero-heading span {
  display: block;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 40%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 16px var(--amber-glow));
}

.hero-desc {
  max-width: 650px;
  margin: 0 auto 2.5rem;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--text-muted);
}

/* Interactive Monolith Pillar Stage */
.pillar-stage {
  position: relative;
  width: 170px;
  height: 170px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  background: radial-gradient(circle, #252b3b 0%, #11141c 75%);
  border: 3px solid var(--border-amber);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7), 0 0 25px var(--amber-glow);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pillar-stage:hover {
  transform: scale(1.06);
}

.stage-icon {
  font-size: 3rem;
  filter: drop-shadow(0 0 12px var(--amber-hearth));
  transition: transform 0.3s ease;
}

.stage-caption {
  font-size: 0.85rem;
  color: var(--silver-light);
  letter-spacing: 0.05em;
  margin-bottom: 3.5rem;
}

/* Quotes Section */
.quotes-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 640px) {
  .quotes-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

.quote-box {
  background: var(--bg-card);
  border: 1px solid var(--border-slate);
  border-radius: 1.25rem;
  padding: 1.75rem;
  position: relative;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
}

.quote-box::before {
  content: "“";
  position: absolute;
  top: 0.5rem;
  left: 1.2rem;
  font-size: 3.5rem;
  color: rgba(245, 158, 11, 0.18);
  font-family: var(--font-serif);
  line-height: 1;
}

.quote-text {
  font-size: 0.96rem;
  font-style: italic;
  color: #e2e8f0;
  margin-bottom: 0.85rem;
  position: relative;
  z-index: 1;
}

.quote-author {
  font-family: var(--font-serif);
  font-size: 0.82rem;
  color: var(--amber-light);
}

/* Memories Timeline Grid */
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 700;
  text-align: center;
  color: var(--amber-light);
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2.25rem;
}

.memories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 4rem;
}

@media (min-width: 640px) {
  .memories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.memory-card {
  background: var(--bg-card);
  border: 1px solid var(--border-slate);
  border-radius: 1.25rem;
  padding: 1.6rem;
  backdrop-filter: blur(10px);
  transition: all 0.28s ease;
  position: relative;
}

.memory-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  border-color: var(--amber-hearth);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px var(--amber-glow);
}

.mem-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.mem-icon {
  font-size: 1.8rem;
  filter: drop-shadow(0 0 8px var(--amber-glow));
}

.mem-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: rgba(148, 163, 184, 0.15);
  color: var(--silver-light);
  border: 1px solid var(--border-slate);
}

.mem-era {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  color: var(--amber-light);
  margin-bottom: 0.35rem;
}

.mem-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
}

.mem-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Heartfelt Letter Article */
.letter-article {
  background: linear-gradient(170deg, rgba(26, 30, 42, 0.94) 0%, rgba(14, 16, 22, 0.98) 100%);
  border: 1.5px solid var(--border-amber);
  border-radius: 1.5rem;
  padding: clamp(1.75rem, 5vw, 3rem);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.7), 0 0 35px rgba(245, 158, 11, 0.15);
  backdrop-filter: blur(14px);
  margin-bottom: 3.5rem;
}

.letter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-slate);
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.letter-date {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  color: var(--amber-light);
}

.letter-badge {
  font-size: 0.75rem;
  color: var(--slate-silver);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.letter-salutation {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3.5vw, 1.85rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
}

.letter-body p {
  font-size: clamp(0.96rem, 2.2vw, 1.05rem);
  color: #cbd5e1;
  margin-bottom: 1.25rem;
  line-height: 1.75;
}

.letter-ps {
  margin-top: 2rem;
  padding: 1.25rem;
  background: rgba(245, 158, 11, 0.1);
  border-left: 3px solid var(--amber-light);
  border-radius: 0 0.75rem 0.75rem 0;
  font-size: 0.95rem;
  color: #fef08a;
  font-style: italic;
}

.letter-sig {
  margin-top: 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.sig-title {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.sig-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--amber-light);
}

/* Apology / Late Banner */
.apology-box {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(148, 163, 184, 0.12));
  border: 1px solid var(--border-amber);
  border-radius: 1.25rem;
  padding: 1.85rem 1.5rem;
  text-align: center;
  margin-bottom: 3.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.apology-badge {
  display: inline-block;
  background: var(--amber-hearth);
  color: #0f1117;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.9rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.apology-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 3.2vw, 1.7rem);
  font-weight: 700;
  color: #fef08a;
  margin-bottom: 0.6rem;
}

.apology-subtext {
  color: #e2e8f0;
  font-size: 0.95rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Cake Blowout Section */
.cake-section {
  background: var(--bg-card);
  border: 1px solid var(--border-amber);
  border-radius: 1.5rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
  margin-bottom: 3.5rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
}

.cake-stage {
  margin: 2.5rem auto 2rem;
  display: inline-block;
  cursor: pointer;
  position: relative;
}

.candles-row {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: -4px;
}

.candle {
  width: 14px;
  height: 48px;
  background: linear-gradient(to bottom, #cbd5e1, #94a3b8);
  border-radius: 6px 6px 0 0;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.flame {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 24px;
  background: radial-gradient(ellipse at bottom, #ffffff 0%, #fef08a 35%, #f59e0b 75%, transparent 100%);
  border-radius: 50% 50% 20% 20%;
  animation: flicker 1s infinite alternate ease-in-out;
  box-shadow: 0 0 16px #fbbf24, 0 0 28px #f59e0b;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.flame.blown-out {
  opacity: 0;
  transform: translateX(-50%) scale(0.2) translateY(-10px);
}

.cake-tier {
  background: linear-gradient(135deg, #2b3244, #151822);
  border: 2px solid var(--amber-light);
  border-radius: 1rem 1rem 0.5rem 0.5rem;
  padding: 1.1rem 2.5rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--silver-light);
  letter-spacing: 0.1em;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 20px var(--amber-glow);
}

.blow-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0f1117;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  padding: 0.9rem 2rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 6px 25px var(--amber-glow);
}

.blow-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.6);
}

.blow-btn.blown {
  background: #2d3345;
  color: #94a3b8;
  box-shadow: none;
  cursor: default;
}

/* Connect / CTA Section */
.cta-section {
  text-align: center;
  padding: 2rem 0;
}

.cta-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3.5vw, 1.85rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.cta-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}

.cta-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.btn-wa {
  background: #25d366;
  color: #052310;
}

.btn-wa:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-ig {
  background: linear-gradient(135deg, #e1306c, #f77737);
  color: #fff;
}

.btn-ig:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(225, 48, 108, 0.4);
}

@keyframes flicker {
  0% { transform: translateX(-50%) rotate(-1deg) scale(1); }
  50% { transform: translateX(-50%) rotate(2deg) scale(1.08); }
  100% { transform: translateX(-50%) rotate(-2deg) scale(0.96); }
}
