/* ==========================================================================
   QUANTIFYZ TECHNOLOGIES - PREMIUM FUTURE STACK DESIGN SYSTEM
   ========================================================================== */

/* 1. CORE VARIABLES & THEMING */
:root {
  /* HSL Color Palette */
  --bg-space: 240, 30%, 2%;          /* #010103 */
  --bg-card: 232, 28%, 6%;           /* #07080f */
  --color-cyan: 188, 100%, 46%;      /* #00dbe9 - Neon Cyan */
  --color-purple: 264, 100%, 54%;    /* #7213ff - Electric Purple */
  --color-violet: 282, 76%, 57%;     /* #b624ff - Accent Magenta/Violet */
  --text-primary: 220, 14%, 96%;     /* #f1f1f3 */
  --text-secondary: 220, 10%, 65%;   /* #a1a3ab */
  --border-glass: rgba(255, 255, 255, 0.07);
  --bg-glass-frosted: rgba(10, 11, 18, 0.5);
  
  /* Fonts */
  --font-headers: 'Rajdhani', sans-serif;
  --font-body: 'Outfit', sans-serif;
}

/* 2. BASE RESET & BODY STYLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: rgb(var(--bg-space));
  color: rgb(var(--text-primary));
  font-family: var(--font-body);
  overflow-x: hidden;
}

/* 3. PREMIUM TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headers);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.glow-text {
  text-shadow: 0 0 30px rgba(0, 219, 233, 0.15), 0 0 60px rgba(114, 19, 255, 0.1);
}

/* 4. PREMIUM GLASSMORPHISM & CARD EFFECTS */
.glass-card {
  background: rgba(10, 12, 22, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  border-color: rgba(0, 219, 233, 0.25);
  box-shadow: 0 12px 40px 0 rgba(0, 219, 233, 0.08);
  transform: translateY(-5px);
}

.glass-card-purple:hover {
  border-color: rgba(114, 19, 255, 0.25);
  box-shadow: 0 12px 40px 0 rgba(114, 19, 255, 0.08);
}

/* 5. GLOWING BUTTONS & HOVER STATES */
.btn-neon-cyan {
  position: relative;
  background: linear-gradient(135deg, hsl(var(--color-cyan)), hsl(var(--color-purple)));
  color: #000;
  font-family: var(--font-headers);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 219, 233, 0.25);
}

.btn-neon-cyan:hover {
  box-shadow: 0 6px 30px rgba(0, 219, 233, 0.45), 0 0 10px rgba(114, 19, 255, 0.2);
  transform: translateY(-2px);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: #fff;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* 6. GLOWING EFFECTS & GLOW-DOTS */
.navbar-glow {
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.8), 0 0 1px 1px rgba(255, 255, 255, 0.05);
}

.chatbot-glow {
  box-shadow: 0 10px 50px rgba(0, 219, 233, 0.12), 0 0 1px 1px rgba(0, 219, 233, 0.15);
}

/* 7. CUSTOM TIMELINE CONNECTORS */
.timeline-dot {
  position: relative;
}

.timeline-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 1px solid rgba(0, 219, 233, 0.4);
  animation: pulse-ring 2s infinite;
}

/* 8. DYNAMIC PAGE ROUTER TRANSITIONS */
.view-section {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 9. SCROLLBAR SYSTEM */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgb(var(--bg-space));
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  border: 2px solid rgb(var(--bg-space));
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 219, 233, 0.3);
}

.scrollbar-none::-webkit-scrollbar {
  display: none;
}
.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* 10. KEYFRAME ANIMATIONS */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float-delayed 4s ease-in-out infinite;
  animation-delay: 2s;
}

.animate-slideDown {
  animation: slideDown 0.3s ease forwards;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    opacity: 1;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

/* 11. DYNAMIC NAVIGATION ACTIVE LINK */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, hsl(var(--color-cyan)), hsl(var(--color-purple)));
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link.active {
  color: #fff !important;
}

.nav-link.active::after {
  width: 100%;
}

.mobile-nav-link.active {
  color: #00dbe9 !important;
}

/* 12. CHATBOT AND FORM STYLING INTEGRATIONS */
.chatbot-chip {
  flex-shrink: 0;
}

/* Typing indicator simulator */
.typing-dot {
  width: 6px;
  height: 6px;
  background-color: rgb(var(--text-secondary));
  border-radius: 50%;
  animation: typing-bounce 1.2s infinite ease-in-out;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
