:root {
  --background: 215 52% 8%;
  --foreground: 195 40% 95%;
  --primary: 191 92% 58%;
  --secondary: 274 85% 72%;
  --muted: 215 31% 16%;
  --destructive: 2 82% 63%;
  --border: 214 23% 24%;
  --card: 214 39% 11%;
  --shadow-sm: 0 10px 24px rgba(0, 0, 0, 0.22);
  --shadow-md: 0 18px 50px rgba(0, 0, 0, 0.32);
  --shadow-lg: 0 34px 90px rgba(0, 0, 0, 0.44);
  --transition-fast: 180ms ease;
  --transition-smooth: 360ms cubic-bezier(0.22, 1, 0.36, 1);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
}

.light {
  --background: 197 63% 97%;
  --foreground: 211 43% 13%;
  --primary: 194 87% 38%;
  --secondary: 274 64% 57%;
  --muted: 194 24% 90%;
  --destructive: 2 75% 56%;
  --border: 196 29% 82%;
  --card: 0 0% 100%;
  --shadow-sm: 0 6px 18px rgba(6, 34, 51, 0.08);
  --shadow-md: 0 16px 40px rgba(6, 34, 51, 0.14);
  --shadow-lg: 0 30px 80px rgba(6, 34, 51, 0.2);
}

* {
  box-sizing: border-box;
}

html, body, #root {
  min-height: 100%;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
}

h1, h2, h3, .font-display {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}

a, button, input, select {
  transition: all var(--transition-fast);
}

::selection {
  background: hsla(var(--primary), 0.24);
}

.glass {
  background: linear-gradient(180deg, hsla(var(--card), 0.4), hsla(var(--card), 0.2));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid hsla(var(--border), 0.3);
}

.hero-gradient {
  background: linear-gradient(180deg, #0a192f 0%, #001f3f 50%, #003366 100%);
  position: relative;
}

.hero-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.light-rays {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 100px,
    rgba(255, 255, 255, 0.03) 100px,
    rgba(255, 255, 255, 0.03) 200px
  );
  mask-image: linear-gradient(to bottom, black, transparent);
  pointer-events: none;
}

.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.skeleton {
  background: linear-gradient(90deg, hsla(var(--muted), 0.7) 25%, hsla(var(--card), 0.9) 40%, hsla(var(--muted), 0.7) 60%);
  background-size: 300% 100%;
  animation: shimmer 1.4s infinite;
}

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

.float-slow {
  animation: float 10s ease-in-out infinite;
}

.float-medium {
  animation: float 7s ease-in-out infinite;
}

.float-fast {
  animation: float 5s ease-in-out infinite;
}

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

.reveal {
  animation: reveal 1000ms var(--transition-smooth);
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0px); }
}

.focus-ring:focus-visible {
  outline: 3px solid hsla(var(--primary), 0.28);
  outline-offset: 2px;
}

.text-shadow {
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: hsl(var(--primary));
  transition: width 0.3s ease;
}

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

.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: hsla(var(--primary), 0.3);
  border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: hsla(var(--primary), 0.5);
}
