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

:root {
  --bg-primary: #06070B;
  --bg-secondary: #0A0D14;
  --bg-surface: #101522;
  --bg-surface-elevated: #161D30;
  --bg-surface-glass: rgba(16, 21, 34, 0.75);
  
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(99, 102, 241, 0.4);
  
  --text-primary: #FFFFFF;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  
  /* Vibrant & Rich Color System */
  --color-electric-blue: #2563EB;
  --color-sky-blue: #0EA5E9;
  --color-cyan-glow: #06B6D4;
  --color-indigo-vibrant: #6366F1;
  --color-violet-vibrant: #8B5CF6;
  --color-purple-deep: #A855F7;
  --color-rose-coral: #F43F5E;
  --color-amber-gold: #F59E0B;
  --color-emerald-trust: #10B981;
}

/* Base Styles */
html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background-color: var(--bg-primary);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.025em;
}

code, pre {
  font-family: 'JetBrains Mono', monospace;
}

/* Vibrant Aurora & Mesh Backgrounds */
.bg-mesh-aurora {
  background-image: 
    radial-gradient(at 15% 15%, rgba(99, 102, 241, 0.22) 0px, transparent 50%),
    radial-gradient(at 85% 20%, rgba(6, 182, 212, 0.2) 0px, transparent 50%),
    radial-gradient(at 50% 60%, rgba(139, 92, 246, 0.18) 0px, transparent 50%),
    radial-gradient(at 80% 85%, rgba(244, 63, 94, 0.14) 0px, transparent 50%),
    radial-gradient(at 20% 85%, rgba(16, 185, 129, 0.14) 0px, transparent 50%);
}

.bg-tech-grid {
  background-size: 36px 36px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
}

/* Vibrant Glow Orbs */
.orb-blue {
  background: radial-gradient(circle, rgba(14, 165, 233, 0.3) 0%, transparent 70%);
  filter: blur(80px);
}

.orb-violet {
  background: radial-gradient(circle, rgba(139, 92, 246, 0.28) 0%, transparent 70%);
  filter: blur(90px);
}

.orb-emerald {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.22) 0%, transparent 70%);
  filter: blur(80px);
}

/* Radiant Aurora Beam & Hero Lighting */
.hero-spotlight {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  max-width: 100vw;
  height: 480px;
  background: radial-gradient(ellipse 65% 55% at 50% 0%, rgba(99, 102, 241, 0.28) 0%, rgba(14, 165, 233, 0.18) 35%, rgba(139, 92, 246, 0.12) 65%, transparent 100%);
  filter: blur(50px);
  pointer-events-none;
  z-index: 1;
}

.hero-glow-card {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.9) 0%, rgba(10, 14, 26, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 40px -10px rgba(99, 102, 241, 0.25);
  position: relative;
}

.hero-glow-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.5), rgba(99, 102, 241, 0.4), rgba(139, 92, 246, 0.2), transparent 70%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events-none;
}

/* Shimmer Button */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}

.btn-shimmer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: all 0.6s ease;
}

.btn-shimmer:hover::before {
  left: 100%;
}

/* Glassmorphism & Colorful Surface Cards */
.glass-nav {
  background: rgba(8, 11, 18, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.card-colorful {
  background: linear-gradient(180deg, rgba(22, 29, 48, 0.8) 0%, rgba(13, 17, 28, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.card-colorful::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-sky-blue), var(--color-indigo-vibrant), var(--color-violet-vibrant), transparent);
  opacity: 0.35;
  transition: opacity 0.35s ease;
}

.card-colorful:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 16px 36px -12px rgba(99, 102, 241, 0.25), 0 0 20px -5px rgba(14, 165, 233, 0.2);
}

.card-colorful:hover::before {
  opacity: 1;
}

/* Color Themed Cards */
.card-theme-cyan:hover {
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 16px 36px -12px rgba(6, 182, 212, 0.25);
}

.card-theme-violet:hover {
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 16px 36px -12px rgba(139, 92, 246, 0.25);
}

.card-theme-emerald:hover {
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 16px 36px -12px rgba(16, 185, 129, 0.25);
}

.card-theme-amber:hover {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 16px 36px -12px rgba(245, 158, 11, 0.25);
}

/* Gradient Texts */
.text-gradient-vibrant {
  background: linear-gradient(135deg, #38BDF8 0%, #818CF8 40%, #C084FC 80%, #FB7185 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Live Operational Pulse */
@keyframes pulseLive {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  animation: pulseLive 2s infinite;
  display: inline-block;
  flex-shrink: 0;
}

/* Syntax Highlighting */
.code-editor {
  background: #080B12;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #06070B;
}

::-webkit-scrollbar-thumb {
  background: #1E293B;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Mobile Utilities */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ========================================================================== */
/* SCROLL TRANSITIONS & ANIMATIONS                                            */
/* ========================================================================== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered Delay Helpers */
.delay-100 { transition-delay: 0.1s; }
.delay-150 { transition-delay: 0.15s; }
.delay-200 { transition-delay: 0.2s; }
.delay-250 { transition-delay: 0.25s; }
.delay-300 { transition-delay: 0.3s; }
.delay-350 { transition-delay: 0.35s; }
.delay-400 { transition-delay: 0.4s; }

/* Subtle floating micro-animation */
@keyframes floatSubtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.animate-float-subtle {
  animation: floatSubtle 4.5s ease-in-out infinite;
}

/* Subtle continuous pulse */
@keyframes pulseSubtle {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.animate-pulse-subtle {
  animation: pulseSubtle 3s ease-in-out infinite;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ========================================================================== */
/* DARK THEME CYBER HONEYCOMB PRELOADER (MATCHING AROHATECH PALETTE)          */
/* ========================================================================== */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background-color: #06070B;
  background-image: 
    radial-gradient(circle at 50% 45%, rgba(37, 99, 235, 0.18) 0%, rgba(99, 102, 241, 0.1) 40%, rgba(6, 7, 11, 0.98) 75%),
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 100% 100%, 36px 36px, 36px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

#preloader.preloader-hidden {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

.honeycomb-svg {
  width: 320px;
  height: 250px;
  overflow: visible;
}

.hex-ghost {
  fill: #0A0E1A;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 1px;
  opacity: 0.55;
}

.hex-neighbor {
  fill: #0E1526;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1px;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.6));
  transition: all 0.35s ease;
}

.hex-center {
  fill: url(#hex-blue-gradient);
  stroke: rgba(147, 197, 253, 0.65);
  stroke-width: 1.2px;
  filter: drop-shadow(0 0 24px rgba(59, 130, 246, 0.6)) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.8));
  transition: all 0.35s ease;
}

.preloader-honeycomb-track {
  width: 180px;
  height: 3.5px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}

.preloader-honeycomb-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #2563EB, #06B6D4, #8B5CF6);
  border-radius: 9999px;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.8);
  transition: width 0.15s ease-out;
}
