/* ============================================================
   DEFEND.THEFAITH() — TechDisciple.net
   Full redesign — dark theme, gold accents, modern & bold
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Poppins:wght@300;400;500;600;700&display=swap');

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

:root {
  --gold: #ffd700;
  --gold-light: #ffe85c;
  --gold-dark: #c9a800;
  --dark-bg: #05040f;
  --dark-1: #0a0820;
  --dark-2: #100e28;
  --dark-3: #181535;
  --text-light: #f0eeff;
  --text-muted: #a09abf;
  --accent-purple: #6c5ce7;
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-gold: 0 0 30px rgba(255, 215, 0, 0.2);
  --shadow-deep: 0 20px 60px rgba(0, 0, 0, 0.7);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--dark-bg);
  color: var(--text-light);
  overflow-x: hidden;
  line-height: 1.6;
}

/* === PARTICLE CANVAS === */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

/* === HERO SECTION === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  z-index: 1;
  background: radial-gradient(ellipse at center top, rgba(108, 92, 231, 0.3) 0%, transparent 60%),
              radial-gradient(ellipse at center, rgba(255, 215, 0, 0.05) 0%, transparent 70%),
              linear-gradient(180deg, #0a0820 0%, #05040f 100%);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(transparent, var(--dark-bg));
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: heroGlowPulse 4s ease-in-out infinite;
}

@keyframes heroGlowPulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

.cross-icon {
  font-size: 5rem;
  color: var(--gold);
  margin-bottom: 20px;
  text-shadow: 0 0 40px rgba(255, 215, 0, 0.6), 0 0 80px rgba(255, 215, 0, 0.3);
  animation: crossFloat 3s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

@keyframes crossFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: 2px;
  line-height: 1.1;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  text-shadow: 0 0 60px rgba(255, 215, 0, 0.2);
}

.hero-title .dot {
  color: var(--gold);
  text-shadow: 0 0 20px var(--gold);
}

.hero-title .paren {
  color: var(--accent-purple);
  font-weight: 400;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.8;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.hero-subtitle strong {
  color: var(--gold);
}

.hero-scroll-hint {
  position: relative;
  z-index: 1;
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.7;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* === MAIN CONTENT === */
.main-content {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

/* === SECTIONS === */
.section {
  background: linear-gradient(145deg, rgba(16, 14, 40, 0.95), rgba(24, 21, 53, 0.9));
  border: 1px solid rgba(255, 215, 0, 0.1);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 40px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-deep), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-label {
  display: inline-block;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.05));
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.section-desc {
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 1rem;
}

/* === VIDEO SECTION === */
.video-section-wrap {}

.video-container {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 215, 0, 0.15);
}

video {
  display: block;
  width: 100%;
  height: auto;
}

.unmute-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(5, 4, 15, 0.85);
  border: 1px solid rgba(255, 215, 0, 0.4);
  color: var(--gold);
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(10px);
  z-index: 10;
}

.unmute-overlay:hover {
  background: rgba(255, 215, 0, 0.15);
  transform: translate(-50%, -50%) scale(1.05);
}

.unmute-icon {
  font-size: 1.3rem;
}

.video-controls {
  margin-top: 16px;
  text-align: center;
}

/* === BUTTONS === */
.btn-secondary {
  background: transparent;
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: var(--gold);
  padding: 10px 24px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(255, 215, 0, 0.1);
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* === QUICK QUESTIONS === */
.quick-questions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.quick-btn {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 215, 0, 0.03));
  border: 1px solid rgba(255, 215, 0, 0.2);
  color: var(--text-light);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
}

.quick-btn:hover {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.18), rgba(255, 215, 0, 0.08));
  border-color: rgba(255, 215, 0, 0.5);
  transform: translateY(-2px);
  color: var(--gold);
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.1);
}

.q-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* === CHAT BOX === */
.chat-box {
  background: rgba(5, 4, 15, 0.8);
  border: 1px solid rgba(255, 215, 0, 0.1);
  border-radius: var(--radius-md);
  padding: 20px;
  min-height: 320px;
  max-height: 520px;
  overflow-y: auto;
  margin-bottom: 20px;
  scroll-behavior: smooth;
}

.chat-box::-webkit-scrollbar {
  width: 4px;
}
.chat-box::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
}
.chat-box::-webkit-scrollbar-thumb {
  background: rgba(255, 215, 0, 0.3);
  border-radius: 4px;
}

/* === AI MESSAGES === */
.ai-message {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
  animation: fadeInUp 0.4s ease;
}

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

.ai-avatar {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #2a2060, #1a1545);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--gold);
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.1);
}

.ai-bubble {
  background: linear-gradient(135deg, rgba(24, 21, 60, 0.9), rgba(20, 18, 50, 0.9));
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-md) var(--radius-md) var(--radius-md);
  padding: 18px 22px;
  color: var(--text-light);
  font-size: 0.98rem;
  line-height: 1.85;
  max-width: 100%;
}

.ai-bubble p {
  margin-bottom: 14px;
}
.ai-bubble p:last-child {
  margin-bottom: 0;
}

.ai-bubble strong {
  color: var(--gold);
}

.welcome-msg .ai-bubble {
  border-left-color: var(--accent-purple);
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.15), rgba(20, 18, 50, 0.9));
}

/* === THINKING ANIMATION === */
.thinking-bubble {
  display: flex;
  align-items: center;
  gap: 12px;
  font-style: italic;
  color: var(--text-muted);
  padding: 14px 22px;
}

.thinking-dots {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.thinking-dot {
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
  animation: bounce 1.2s infinite ease-in-out;
}
.thinking-dot:nth-child(2) { animation-delay: 0.2s; }
.thinking-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0.8); opacity: 0.4; }
  40% { transform: scale(1.3); opacity: 1; }
}

/* === USER MESSAGES === */
.user-message {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
  animation: fadeInUp 0.3s ease;
}

.user-bubble {
  background: linear-gradient(135deg, #2d2060, #1e1850);
  border: 1px solid rgba(108, 92, 231, 0.4);
  border-radius: var(--radius-md) 0 var(--radius-md) var(--radius-md);
  padding: 14px 18px;
  color: var(--text-light);
  font-size: 0.97rem;
  max-width: 75%;
  line-height: 1.6;
}

/* === INPUT AREA === */
.input-area {
  display: flex;
  gap: 12px;
}

.input-area input[type="text"] {
  flex: 1;
  background: rgba(5, 4, 15, 0.8);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.97rem;
  color: var(--text-light);
  transition: var(--transition);
  outline: none;
}

.input-area input[type="text"]::placeholder {
  color: var(--text-muted);
}

.input-area input[type="text"]:focus {
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.06);
}

.btn-ask {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 24px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0a0820;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-ask:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.35);
}

.btn-ask:active {
  transform: translateY(0);
}

/* === FOLLOW JESUS SECTION === */
.follow-section {
  background: linear-gradient(145deg, rgba(255, 215, 0, 0.06), rgba(16, 14, 40, 0.98));
  border-color: rgba(255, 215, 0, 0.25);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.follow-section::before {
  content: '✝';
  position: absolute;
  font-size: 20rem;
  color: rgba(255, 215, 0, 0.025);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  font-family: serif;
}

.follow-inner {
  position: relative;
  z-index: 1;
}

.follow-cross {
  font-size: 3.5rem;
  color: var(--gold);
  text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
  margin-bottom: 20px;
  display: block;
  animation: crossFloat 3s ease-in-out infinite;
}

.follow-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.3;
}

.follow-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

.btn-follow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #ffd700, #c9a800);
  border: none;
  border-radius: 50px;
  padding: 20px 48px;
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #050410;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.5px;
  box-shadow: 0 8px 40px rgba(255, 215, 0, 0.4), 0 0 0 0 rgba(255, 215, 0, 0.4);
  animation: followPulse 2.5s ease-in-out infinite;
  margin-bottom: 30px;
}

@keyframes followPulse {
  0%, 100% { box-shadow: 0 8px 40px rgba(255, 215, 0, 0.4), 0 0 0 0 rgba(255, 215, 0, 0.2); }
  50% { box-shadow: 0 8px 40px rgba(255, 215, 0, 0.5), 0 0 0 15px rgba(255, 215, 0, 0); }
}

.btn-follow:hover {
  transform: translateY(-4px) scale(1.02);
  background: linear-gradient(135deg, #ffe85c, #ffd700);
  box-shadow: 0 16px 50px rgba(255, 215, 0, 0.5);
  animation: none;
}

.follow-btn-icon {
  font-size: 1.3rem;
}

.follow-verse {
  color: rgba(255, 215, 0, 0.6);
  font-style: italic;
  font-size: 0.9rem;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

/* === LINKS SECTION === */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.link-card {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.06), rgba(24, 21, 53, 0.8));
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  transition: var(--transition);
}

.link-card:hover {
  border-color: rgba(255, 215, 0, 0.4);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.12), rgba(24, 21, 53, 0.9));
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(255, 215, 0, 0.12);
}

.link-icon {
  font-size: 2rem;
  display: block;
}

.link-name {
  color: var(--gold);
  font-weight: 700;
  font-size: 1rem;
  display: block;
}

.link-desc {
  color: var(--text-muted);
  font-size: 0.82rem;
  display: block;
}

.powered-by {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.powered-by a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}

.powered-by a:hover {
  text-decoration: underline;
}

/* ============================================================
   MODAL
   ============================================================ */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.modal.active {
  display: flex;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 4, 15, 0.92);
  backdrop-filter: blur(8px);
  z-index: 0;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  position: relative;
  z-index: 1;
  background: linear-gradient(160deg, #100e2a 0%, #0a0820 100%);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  width: 100%;
  max-width: 680px;
  margin: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), var(--shadow-gold);
  animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  background: rgba(255, 80, 80, 0.15);
  border-color: rgba(255, 80, 80, 0.3);
  color: #ff6b6b;
}

.modal-cross {
  font-size: 4rem;
  color: var(--gold);
  text-align: center;
  display: block;
  margin-bottom: 12px;
  text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
  animation: crossFloat 3s ease-in-out infinite;
}

.modal-title {
  font-family: 'Cinzel', serif;
  font-size: 1.9rem;
  font-weight: 800;
  color: #fff;
  text-align: center;
  margin-bottom: 30px;
  text-shadow: 0 0 30px rgba(255, 215, 0, 0.15);
}

.modal-gospel {
  background: rgba(108, 92, 231, 0.08);
  border: 1px solid rgba(108, 92, 231, 0.2);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 28px;
}

.modal-gospel h3 {
  color: var(--gold);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.modal-gospel p {
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.85;
  margin-bottom: 12px;
}

.modal-gospel p:last-child { margin-bottom: 0; }

.modal-gospel strong {
  color: var(--text-light);
}

.modal-prayer-box {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 215, 0, 0.03));
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 30px;
}

.modal-prayer-box h3 {
  color: var(--gold);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.prayer-text {
  color: var(--text-light);
  font-size: 1.02rem;
  line-height: 1.9;
  font-style: italic;
}

.modal-next {
  margin-bottom: 28px;
}

.modal-next h3 {
  color: var(--gold);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.next-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.next-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  transition: var(--transition);
}

.next-step:hover {
  background: rgba(255, 215, 0, 0.05);
  border-color: rgba(255, 215, 0, 0.15);
}

.step-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.next-step strong {
  display: block;
  color: var(--text-light);
  font-size: 0.97rem;
  margin-bottom: 4px;
}

.next-step p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
}

.next-step a {
  color: var(--gold);
  text-decoration: none;
}

.next-step a:hover {
  text-decoration: underline;
}

.modal-verse {
  background: rgba(5, 4, 15, 0.6);
  border: 1px solid rgba(255, 215, 0, 0.1);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  color: rgba(255, 215, 0, 0.7);
  font-style: italic;
  font-size: 0.92rem;
  line-height: 1.7;
  text-align: center;
}

/* === RESPONSIVE === */
@media (max-width: 640px) {
  .section {
    padding: 28px 20px;
  }

  .quick-questions {
    grid-template-columns: 1fr;
  }

  .modal-content {
    padding: 36px 24px;
  }

  .modal-title {
    font-size: 1.5rem;
  }

  .btn-follow {
    padding: 18px 32px;
    font-size: 1rem;
  }

  .input-area {
    flex-direction: column;
  }

  .btn-ask {
    justify-content: center;
  }

  .links-grid {
    grid-template-columns: 1fr;
  }
}
