/* ==========================================================================
   T35 - THE IRON SHIELD (ELDER BROTHER) STYLESHEET
   ========================================================================== */
:root {
  --bg-main: #0b0f19;
  --bg-card: rgba(15, 23, 42, 0.85);
  --primary: #f59e0b;
  --primary-glow: rgba(245, 158, 11, 0.35);
  --accent: #3b82f6;
  --accent-glow: rgba(59, 130, 246, 0.3);
  --border-theme: rgba(245, 158, 11, 0.3);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --shield-steel: #1e293b;
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

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

/* Audio & Action Bar */
.top-action-bar {
  position: fixed;
  top: 1.25rem; right: 1.25rem;
  z-index: 90;
  display: flex;
  gap: 0.75rem;
}
.action-pill-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-theme);
  color: var(--primary);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px var(--primary-glow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.action-pill-btn:hover {
  background: rgba(245, 158, 11, 0.15);
  transform: translateY(-2px);
  border-color: var(--primary);
}

/* Passcode Gate Screen */
.passcode-modal {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #172554 0%, var(--bg-main) 100%);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  backdrop-filter: blur(8px);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.passcode-modal.unlocked {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.passcode-card {
  background: var(--bg-card);
  border: 1px solid var(--border-theme);
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 380px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 40px var(--primary-glow);
}
.passcode-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
  animation: floatShield 3s ease-in-out infinite;
}
@keyframes floatShield {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.passcode-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.passcode-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.passcode-sub strong { color: var(--text-main); }

.pin-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.pin-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: transparent;
  transition: all 0.25s ease;
}
.pin-dot.filled {
  background: var(--primary);
  box-shadow: 0 0 14px var(--primary);
  transform: scale(1.15);
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.key-btn {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  padding: 0.9rem 0;
  border-radius: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}
.key-btn:hover {
  background: var(--primary);
  color: #0b0f19;
  transform: scale(1.05);
  box-shadow: 0 0 15px var(--primary-glow);
}

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

/* Hero Section */
.hero {
  text-align: center;
  margin-bottom: 4rem;
}
.badge-tag {
  display: inline-block;
  background: rgba(245, 158, 11, 0.15);
  color: var(--primary);
  border: 1px solid var(--border-theme);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.hero-heading {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: #fff;
}
.hero-heading span {
  background: linear-gradient(135deg, #f59e0b, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0 auto 2.5rem;
}

/* Shield Interactive Stage */
.shield-stage {
  margin: 2rem auto;
  width: 180px;
  height: 200px;
  position: relative;
  cursor: pointer;
  user-select: none;
  transition: transform 0.3s ease;
}
.shield-stage:hover {
  transform: scale(1.06);
}
.shield-frame {
  width: 100%;
  height: 100%;
  clip-path: polygon(50% 0%, 100% 20%, 100% 70%, 50% 100%, 0% 70%, 0% 20%);
  background: linear-gradient(145deg, #1e3a8a, #0f172a);
  border: 2px solid var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 35px var(--accent-glow), 0 0 20px var(--primary-glow);
  position: relative;
}
.shield-emblem {
  font-size: 3.5rem;
  filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.8));
  animation: pulseEmblem 2s infinite ease-in-out;
}
@keyframes pulseEmblem {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}
.shield-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.1em;
  margin-top: 0.4rem;
}
.shield-hint {
  font-size: 0.85rem;
  color: var(--primary);
  margin-top: 1rem;
}

/* Apology Card */
.apology-banner {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid var(--border-theme);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 3.5rem;
}
.apology-banner h3 {
  font-family: 'Outfit', sans-serif;
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}
.apology-banner p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Memories Section */
.memories-section {
  margin-bottom: 4rem;
}
.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  color: #fff;
  text-align: center;
  margin-bottom: 2rem;
}
.section-title span { color: var(--primary); }
.memories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.memory-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 1.25rem;
  padding: 1.75rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.memory-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 4px; height: 100%;
  background: var(--primary);
  opacity: 0.7;
}
.memory-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--primary-glow);
}
.mem-icon { font-size: 2.2rem; margin-bottom: 0.75rem; }
.mem-era {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.mem-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.mem-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Letter Section */
.heartfelt-letter {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
  border: 1px solid var(--border-theme);
  border-radius: 1.5rem;
  padding: clamp(2rem, 5vw, 3.5rem);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  margin-bottom: 4rem;
}
.letter-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1.25rem;
  margin-bottom: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.letter-date {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
}
.letter-salutation {
  font-family: 'Outfit', sans-serif;
  font-size: 1.45rem;
  color: #fff;
  font-weight: 800;
  margin-bottom: 1.25rem;
}
.letter-body p {
  color: #cbd5e1;
  font-size: 1.02rem;
  margin-bottom: 1.25rem;
  line-height: 1.75;
}
.letter-postscript {
  background: rgba(245, 158, 11, 0.1);
  border-left: 3px solid var(--primary);
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
  color: #fef08a;
  font-size: 0.95rem;
}
.letter-signoff {
  margin-top: 2rem;
  font-size: 1.1rem;
  color: #fff;
}
.letter-author {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--primary);
}

/* Reply Connect Bar */
.reply-bar {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  padding: 2.25rem 1.5rem;
}
.reply-bar h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.5rem;
}
.reply-bar p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}
.reply-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn-connect {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s;
}
.btn-whatsapp {
  background: #25d366;
  color: #0b0f19;
}
.btn-whatsapp:hover {
  background: #1eb855;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}
.btn-instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
}
.btn-instagram:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(220, 39, 67, 0.4);
}

@media (max-width: 640px) {
  .hero-heading { font-size: 2.2rem; }
  .passcode-card { padding: 2rem 1.25rem; }
  .keypad { gap: 0.5rem; }
  .key-btn { padding: 0.75rem 0; font-size: 1.1rem; }
}
