@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --primary: #00e5ff;
  --primary-glow: rgba(0, 229, 255, 0.5);
  --primary-container: #0077ff;
  --on-primary: #001a1a;
  --surface: #05070a;
  --surface-low: #0c0e14;
  --on-surface: #f0f4ff;
  --on-surface-variant: #94a3b8;
  --outline: rgba(148, 163, 184, 0.1);
  --tertiary: #a782ff;
}

body {
  background-color: var(--surface);
  background-image: 
    radial-gradient(circle at 0% 0%, rgba(0, 229, 255, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(167, 130, 255, 0.03) 0%, transparent 50%);
  color: var(--on-surface);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}

/* Premium Glass & Cards */
.vault-glass {
  background: rgba(12, 14, 20, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 229, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
}

.glass-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  background: rgba(0, 229, 255, 0.03);
  border-color: rgba(0, 229, 255, 0.3);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 229, 255, 0.05);
}

/* Section Glows */
.section-glow {
  position: relative;
}

.section-glow::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  width: 60%;
  height: 140%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.05) 0%, transparent 70%);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
}

/* Typography & Effects */
.nav-link {
  @apply text-sm font-medium tracking-tight text-on-surface/60 hover:text-primary transition-all duration-300;
  position: relative;
}

.nav-link-active {
  @apply text-primary font-bold;
  position: relative;
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.4);
}
.nav-link-active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
  border-radius: 2px;
}

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

.text-glow {
  text-shadow: 0 0 20px rgba(0, 225, 255, 0.3);
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #00e5ff, #0077ff);
  color: #001a1a;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.4);
  transform: scale(1.02);
}

/* Animations */
@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.reveal {
  opacity: 0;
}

.animate-reveal {
  animation: reveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }

/* Scroll Progress */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: #00e5ff;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
  z-index: 1000;
}
