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

:root {
  --color-slate-950: #050811;
  --color-slate-900: #0b1120;
  --color-slate-850: #10192e;
  --color-slate-800: #1e293b;
  --color-slate-700: #334155;
  --color-cyan-glow: #00f0ff;
  --color-blue-accent: #0284c7;
  --color-blue-bright: #38bdf8;
  --color-metal-sheen: #e2e8f0;
}

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

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--color-slate-950);
  color: #f1f5f9;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Headings font */
h1, h2, h3, .font-heading {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.025em;
}

/* Code & Telemetry Font */
.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #070c18;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #0284c7;
}

/* Anti-Gravity Canvas Layer */
#antigravity-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
}

/* Atmospheric Glow Spotlights */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.22;
  transition: all 1s ease-in-out;
}

.glow-blue {
  background: radial-gradient(circle, #0284c7 0%, rgba(56, 189, 248, 0) 70%);
}

.glow-cyan {
  background: radial-gradient(circle, #00f0ff 0%, rgba(14, 165, 233, 0) 70%);
}

/* Glassmorphism Surface Base */
.glass-panel {
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.14);
  box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.65);
}

.glass-panel-hover {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel-hover:hover {
  background: rgba(17, 28, 54, 0.85);
  border-color: rgba(56, 189, 248, 0.45);
  transform: translateY(-6px);
  box-shadow: 0 25px 50px -10px rgba(2, 132, 199, 0.22);
}

/* Metallic Edge Border */
.metallic-border {
  position: relative;
}

.metallic-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(226, 232, 240, 0.28), rgba(56, 189, 248, 0.05) 50%, rgba(2, 132, 199, 0.35));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Neon Text Glow */
.text-glow {
  text-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
}

.text-cyan-glow {
  text-shadow: 0 0 25px rgba(0, 240, 255, 0.6);
}

/* Anti-Gravity Floating Animation */
@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(0.5deg);
  }
}

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

.animate-float-delayed {
  animation: floatSlow 7s ease-in-out 2.5s infinite;
}

/* Pulse Glow Animation */
@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.05);
  }
}

.animate-pulse-glow {
  animation: pulseGlow 4s ease-in-out infinite;
}

/* Metallic Shimmer Sweep */
.shimmer-sweep {
  position: relative;
  overflow: hidden;
}

.shimmer-sweep::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 100%
  );
  transform: rotate(25deg);
  pointer-events: none;
  animation: shimmerAnim 5s infinite cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes shimmerAnim {
  0% {
    left: -70%;
  }
  30%, 100% {
    left: 170%;
  }
}

/* Interactive Card Tilt Helper */
.tilt-card {
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.2s ease-out;
}

/* Lightbox Modal */
.modal-backdrop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-content-box {
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Range Slider Styling */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: #1e293b;
  border-radius: 9999px;
  height: 8px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #38bdf8;
  cursor: pointer;
  box-shadow: 0 0 12px #38bdf8;
  border: 2px solid #ffffff;
  transition: transform 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Badge Pulse Dot */
.badge-ping {
  position: relative;
}

.badge-ping::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
}

/* Industrial Grid Pattern */
.bg-tech-grid {
  background-size: 36px 36px;
  background-image: 
    linear-gradient(to right, rgba(56, 189, 248, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
}

/* Print/Clean Reset */
@media (max-width: 768px) {
  .glow-orb {
    display: none;
  }
}
