/* =========================================================
   KIRA BOT - CORE DESIGN SYSTEM & STYLES
   Aesthetic: Cyberpunk Dark Neon Violet & Electric Blue
   ========================================================= */

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

:root {
  /* Color Palette */
  --bg-darker: #05060b;
  --bg-dark: #090a12;
  --bg-card: rgba(13, 16, 32, 0.75);
  --bg-card-hover: rgba(22, 26, 52, 0.88);
  --bg-glass: rgba(18, 22, 44, 0.65);
  --bg-glass-heavy: rgba(10, 12, 26, 0.92);

  /* Neon Accents */
  --neon-purple: #9d4edd;
  --neon-purple-bright: #c084fc;
  --neon-violet: #7928ca;
  --neon-blue: #3a86ff;
  --neon-cyan: #00f0ff;
  --neon-cyan-bright: #38bdf8;
  --neon-gold: #f59e0b;
  --neon-green: #10b981;
  --neon-pink: #f43f5e;
  --neon-magenta: #d946ef;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #7928ca 0%, #4361ee 100%);
  --grad-purple-blue: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
  --grad-neon: linear-gradient(90deg, #9d4edd, #3a86ff, #00f0ff);
  --grad-glow: radial-gradient(circle, rgba(121, 40, 202, 0.25) 0%, rgba(58, 134, 255, 0.1) 45%, transparent 70%);
  --grad-card-border: linear-gradient(135deg, rgba(157, 78, 221, 0.4), rgba(58, 134, 255, 0.2), rgba(255, 255, 255, 0.08));
  --grad-shimmer: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);

  /* Text Colors */
  --text-white: #ffffff;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Border & Glow */
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-neon: rgba(157, 78, 221, 0.45);
  --border-glow: rgba(58, 134, 255, 0.45);
  --glow-purple: 0 0 25px rgba(157, 78, 221, 0.4);
  --glow-blue: 0 0 25px rgba(58, 134, 255, 0.4);
  --glow-cyan: 0 0 25px rgba(0, 240, 255, 0.45);
  --glow-strong: 0 0 45px rgba(121, 40, 202, 0.65);
  --glow-gold: 0 0 25px rgba(245, 158, 11, 0.4);
  --glow-green: 0 0 25px rgba(16, 185, 129, 0.4);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --max-width: 1240px;
  --nav-height: 80px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  /* Transitions */
  --trans-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --trans-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --trans-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =========================================================
   Reset & Base Styles
   ========================================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 20px);
  color-scheme: dark;
}

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

/* Cyber Ambient Background Layer */
.cyber-bg-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Tech Grid Pattern with Radial Vignette */
.cyber-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(157, 78, 221, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(58, 134, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 25%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 25%, #000 30%, transparent 85%);
}

/* Particle Starfield Canvas */
#cyberCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.65;
}

/* Dynamic Morphing Aurora Orbs */
.ambient-aurora-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.aurora-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(95px);
  opacity: 0.55;
  animation: auroraMorph 16s ease-in-out infinite alternate;
}

.orb-violet {
  top: -10%;
  left: 15%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(121, 40, 202, 0.35) 0%, rgba(157, 78, 221, 0.15) 50%, transparent 70%);
}

.orb-blue {
  top: 15%;
  right: -5%;
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, rgba(58, 134, 255, 0.3) 0%, rgba(0, 240, 255, 0.12) 50%, transparent 70%);
  animation-duration: 20s;
  animation-delay: -5s;
}

.orb-cyan {
  bottom: 10%;
  left: 30%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.22) 0%, rgba(67, 97, 238, 0.1) 50%, transparent 70%);
  animation-duration: 24s;
  animation-delay: -10s;
}

/* Interactive Cursor Spotlight Glow */
.cursor-glow {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(157, 78, 221, 0.16) 0%, rgba(58, 134, 255, 0.06) 40%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.3s ease;
  opacity: 0;
}

body.cursor-active .cursor-glow {
  opacity: 1;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
  background: #1f233d;
  border-radius: 5px;
  border: 2px solid var(--bg-darker);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--neon-purple);
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-white);
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--trans-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Section Header Styling */
.section-header {
  text-align: center;
  margin-bottom: 56px;
  position: relative;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  background: rgba(14, 18, 44, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.45);
  color: #38bdf8;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 18px;
  box-shadow: 
    0 0 22px rgba(0, 240, 255, 0.35),
    inset 0 1px 1px rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.section-title {
  font-size: clamp(2.4rem, 4.2vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 25%, #d8b4fe 60%, #00f0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 35px rgba(157, 78, 221, 0.4));
  line-height: 1.15;
}

.section-desc {
  font-size: 1.12rem;
  color: #94a3b8;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Text Gradient Highlights */
.text-gradient-neon {
  background: linear-gradient(135deg, #c084fc 0%, #60a5fa 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-purple {
  background: linear-gradient(135deg, #d8b4fe 0%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #fde047 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  user-select: none;
  z-index: 1;
}

.btn-primary {
  background: linear-gradient(135deg, #7928ca 0%, #4f46e5 50%, #2563eb 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 
    0 4px 20px rgba(121, 40, 202, 0.45),
    0 0 25px rgba(58, 134, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

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

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 8px 32px rgba(121, 40, 202, 0.65),
    0 0 35px rgba(58, 134, 255, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-primary:hover::before {
  transform: skewX(-20deg) translateX(240%);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-secondary {
  background: rgba(18, 22, 44, 0.6);
  color: var(--text-white);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background: rgba(28, 34, 68, 0.85);
  border-color: rgba(168, 85, 247, 0.6);
  transform: translateY(-2px);
  box-shadow: 
    0 6px 25px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(157, 78, 221, 0.25);
  color: #fff;
}

.btn-discord {
  background: #5865f2;
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(88, 101, 242, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-discord:hover {
  background: #4752c4;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(88, 101, 242, 0.65);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

/* Glassmorphism Card Container */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  position: relative;
  transition: var(--trans-smooth);
}

.glass-card:hover {
  border-color: var(--border-neon);
  box-shadow: 0 14px 35px -10px rgba(121, 40, 202, 0.35);
}

/* Status Indicator Dot with Radar Ping */
.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 12px var(--neon-green);
  display: inline-block;
  position: relative;
}

.status-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid var(--neon-green);
  animation: radarPing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
  opacity: 0.7;
}

/* =========================================================
   KEYFRAME ANIMATIONS
   ========================================================= */

/* Shimmer on Text Headings */
@keyframes textShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Organic Aurora Movement */
@keyframes auroraMorph {
  0% {
    transform: translate(0px, 0px) scale(1) rotate(0deg);
  }
  33% {
    transform: translate(40px, -50px) scale(1.08) rotate(4deg);
  }
  66% {
    transform: translate(-30px, 30px) scale(0.95) rotate(-3deg);
  }
  100% {
    transform: translate(20px, -20px) scale(1.04) rotate(2deg);
  }
}

/* Radar Ping */
@keyframes radarPing {
  0% {
    transform: scale(0.9);
    opacity: 0.9;
  }
  80%, 100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* Cyber Scanning Line */
@keyframes cyberScanline {
  0% {
    top: -10%;
    opacity: 0;
  }
  20% {
    opacity: 0.8;
  }
  80% {
    opacity: 0.8;
  }
  100% {
    top: 110%;
    opacity: 0;
  }
}

/* Pulse Animation */
@keyframes pulse-glow {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

@keyframes float-gentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1.5deg); }
}

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

@keyframes shineSweep {
  0% { transform: translateX(-100%); }
  50%, 100% { transform: translateX(200%); }
}

@keyframes conduitPulse {
  0% { background-position: 0% 0%; }
  100% { background-position: 0% 200%; }
}
