/* ==========================================================================
   RedGalaxyBot — Premium Sci-Fi Dark Space Theme Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --bg-deep: #06080f;
  --bg-card: rgba(11, 17, 30, 0.75);
  --bg-card-hover: rgba(16, 24, 43, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow-red: rgba(255, 51, 102, 0.35);
  --border-glow-cyan: rgba(0, 240, 255, 0.35);
  
  --neon-red: #ff3366;
  --neon-red-glow: rgba(255, 51, 102, 0.4);
  --neon-cyan: #00f0ff;
  --neon-cyan-glow: rgba(0, 240, 255, 0.3);
  --neon-emerald: #10b981;
  --neon-gold: #f59e0b;
  
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

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

/* Background Space Atmosphere */
.space-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  background: 
    radial-gradient(circle at 15% 20%, rgba(255, 51, 102, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 85% 30%, rgba(0, 240, 255, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(225, 29, 72, 0.05) 0%, transparent 55%),
    radial-gradient(circle at 70% 90%, rgba(56, 189, 248, 0.04) 0%, transparent 40%),
    #06080f;
  pointer-events: none;
}

#starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.85;
}

/* Typography Helpers */
.font-display { font-family: var(--font-display); }
.font-mono { font-family: var(--font-mono); }

/* Glowing Text */
.text-glow-red {
  text-shadow: 0 0 20px rgba(255, 51, 102, 0.6);
}
.text-glow-cyan {
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
}

.gradient-text-red {
  background: linear-gradient(135deg, #ffffff 10%, #ff6b8b 50%, #ff3366 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-cyan {
  background: linear-gradient(135deg, #ffffff 20%, #67e8f9 60%, #00f0ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphism Containers */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.16);
}

.glass-panel-glow {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glow-red);
  box-shadow: 0 0 35px rgba(255, 51, 102, 0.15), inset 0 0 20px rgba(255, 51, 102, 0.05);
}

/* Buttons & CTAs */
.btn-primary-glow {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffffff;
  background: linear-gradient(135deg, #ff3366 0%, #d91b4c 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 4px 25px rgba(255, 51, 102, 0.45);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-primary-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 35px rgba(255, 51, 102, 0.65);
  filter: brightness(1.1);
}

.btn-primary-glow::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-20deg);
  transition: 0.6s ease;
}

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

.btn-secondary-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.75rem;
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-secondary-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Pulsing Badge */
.pulse-dot {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--neon-emerald);
  border-radius: 50%;
}

.pulse-dot::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  width: 16px;
  height: 16px;
  background-color: var(--neon-emerald);
  border-radius: 50%;
  opacity: 0.4;
  animation: pulse-ring 2s infinite ease-out;
}

@keyframes pulse-ring {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Radar Animation in Hero Preview */
.radar-screen {
  position: relative;
  width: 100%;
  height: 240px;
  background: radial-gradient(circle at center, rgba(0, 240, 255, 0.08) 0%, rgba(6, 8, 15, 0.9) 75%);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 0.75rem;
  overflow: hidden;
}

.radar-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px dashed rgba(0, 240, 255, 0.2);
  border-radius: 50%;
  pointer-events: none;
}

.radar-ring-1 { width: 70px; height: 70px; }
.radar-ring-2 { width: 140px; height: 140px; }
.radar-ring-3 { width: 210px; height: 210px; }

.radar-axis-x {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(0, 240, 255, 0.15);
}

.radar-axis-y {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  background: rgba(0, 240, 255, 0.15);
}

.radar-sweep {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 120px;
  transform-origin: top left;
  background: conic-gradient(from 0deg, rgba(0, 240, 255, 0.4) 0deg, transparent 65deg);
  animation: radar-rotate 4s linear infinite;
  pointer-events: none;
}

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

/* Orbiting Animation for Player Ship */
.orbit-path-demo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 110px;
  height: 110px;
  margin-top: -55px;
  margin-left: -55px;
  border: 1px dashed rgba(255, 51, 102, 0.45);
  border-radius: 50%;
  animation: spin-orbit 8s linear infinite;
}

.orbit-ship {
  position: absolute;
  top: -7px;
  left: 50%;
  margin-left: -7px;
  width: 14px;
  height: 14px;
  background: #00f0ff;
  border-radius: 50%;
  box-shadow: 0 0 12px #00f0ff;
}

.target-alien {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  background: #ff3366;
  border-radius: 50%;
  box-shadow: 0 0 15px #ff3366;
  animation: alien-pulse 2s infinite ease-in-out;
}

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

@keyframes alien-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); filter: drop-shadow(0 0 8px #ff3366); }
  50% { transform: translate(-50%, -50%) scale(1.15); filter: drop-shadow(0 0 16px #ff3366); }
}

/* Flip / Box Countdown Styling */
.countdown-box {
  background: linear-gradient(180deg, rgba(20, 29, 50, 0.9) 0%, rgba(10, 15, 27, 0.95) 100%);
  border: 1px solid rgba(255, 51, 102, 0.35);
  border-radius: 0.85rem;
  padding: 1.1rem 0.8rem;
  min-width: 80px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.countdown-box::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(0, 0, 0, 0.4);
}

.countdown-num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  text-shadow: 0 0 18px rgba(255, 51, 102, 0.45);
}

.countdown-lbl {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--neon-cyan);
  margin-top: 0.45rem;
  text-transform: uppercase;
}

/* Testimonial Cards */
.testimonial-card {
  position: relative;
  background: rgba(14, 21, 37, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 1.1rem;
  padding: 1.75rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 51, 102, 0.3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 25px rgba(255, 51, 102, 0.15);
}

/* Testimonials Translation Feature */
.testimonial-quote {
  transition: opacity 0.22s ease;
}

.testimonial-quote.fading {
  opacity: 0.15;
}

.testimonial-translate-box {
  margin-top: 0.75rem;
  padding-top: 0.6rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  font-family: var(--font-mono, monospace);
  min-height: 24px;
  display: flex;
  align-items: center;
}

.testimonial-translate-box.hidden {
  display: none !important;
}

.testimonial-translate-btn {
  background: transparent;
  border: none;
  color: #38bdf8;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  transition: all 0.2s ease;
  font-size: 0.75rem;
  font-family: inherit;
}

.testimonial-translate-btn:hover {
  color: #00f0ff;
  text-decoration: underline;
}

.testimonial-translated-info {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #94a3b8;
  font-size: 0.72rem;
}

.testimonial-translated-info .show-original-btn {
  background: transparent;
  border: none;
  color: #ff3366;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  font-family: inherit;
  font-size: inherit;
  transition: color 0.2s ease;
}

.testimonial-translated-info .show-original-btn:hover {
  color: #f43f5e;
}

/* FAQ Accordion Styling */
.faq-item {
  background: rgba(13, 20, 35, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.85rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active {
  border-color: rgba(0, 240, 255, 0.3);
  background: rgba(15, 24, 43, 0.85);
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.08);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.35rem 1.6rem;
  background: transparent;
  border: none;
  color: #f1f5f9;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  width: 22px;
  height: 22px;
  transition: transform 0.3s ease;
  color: var(--neon-cyan);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--neon-red);
}

.faq-answer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.3s ease;
  padding: 0 1.6rem;
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  max-height: 240px;
  opacity: 1;
  padding-bottom: 1.35rem;
}

/* Modal Overlay & Box */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 12, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #0e1526;
  border: 1px solid rgba(255, 51, 102, 0.4);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 51, 102, 0.2);
  border-radius: 1.25rem;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 2rem;
  position: relative;
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #10b981;
  color: #ffffff;
  padding: 0.85rem 1.4rem;
  border-radius: 0.65rem;
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #06080f;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #ff3366;
}
