/* Data Verity - Main Stylesheet */
/* Using Tailwind CDN inline, this file contains custom styles */

:root {
  /* Data Verity — Dark Navy + Electric Blue palette */
  --background: #070d1a;
  --foreground: #e8f0fe;
  --card: #0c1528;
  --card-foreground: #e8f0fe;
  --primary: #0ea5e9;
  --primary-foreground: #ffffff;
  --secondary: #112040;
  --secondary-foreground: #93c5fd;
  --muted: #0f1e38;
  --muted-foreground: #64748b;
  --accent: #38bdf8;
  --border: rgba(14, 165, 233, 0.15);
  --ring: #0ea5e9;
  --radius: 0.75rem;
  
  /* Custom brand tokens */
  --navy-deep: #070d1a;
  --navy-mid: #0c1528;
  --navy-light: #112040;
  --blue-electric: #0ea5e9;
  --blue-bright: #38bdf8;
  --blue-glow: rgba(14, 165, 233, 0.4);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--background);
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: 'Roboto', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: 'Roboto', system-ui, sans-serif;
  letter-spacing: -0.01em;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Utility animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px var(--blue-glow), 0 0 40px transparent; }
  50% { box-shadow: 0 0 30px var(--blue-glow), 0 0 60px rgba(14,165,233,0.15); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

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

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

.animate-spin-slow {
  animation: spin-slow 20s linear infinite;
}

/* Glass card effect */
.glass-card {
  background: rgba(12, 21, 40, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(14, 165, 233, 0.15);
}

/* Grid background pattern */
.grid-bg {
  background-image:
    linear-gradient(rgba(14, 165, 233, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Section divider */
.section-divider {
  background: linear-gradient(90deg, transparent, rgba(14,165,233,0.3), transparent);
  height: 1px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--navy-deep);
}

::-webkit-scrollbar-thumb {
  background: var(--navy-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--blue-electric);
}

/* Navbar scrolled state */
.navbar-scrolled {
  background: rgba(7, 13, 26, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(14, 165, 233, 0.15);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

/* Mobile menu transitions */
.mobile-menu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.mobile-menu.open {
  max-height: 52rem;
  opacity: 1;
}

/* Dropdown transitions */
.dropdown-menu {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.dropdown-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Hero carousel transitions */
.hero-slide {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: translateY(0);
}

/* Card hover effects */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  border-color: rgba(14, 165, 233, 0.5);
  background-color: #0f1e3a;
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.08);
}

/* Button styles */
.btn-primary {
  background-color: var(--blue-electric);
  color: white;
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
  background-color: var(--blue-bright);
  box-shadow: 0 0 30px rgba(14, 165, 233, 0.5);
}

.btn-secondary {
  border: 1px solid rgba(14, 165, 233, 0.4);
  color: #e8f0fe;
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  background: rgba(14, 165, 233, 0.08);
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  border-color: rgba(14, 165, 233, 0.7);
  background: rgba(14, 165, 233, 0.15);
  color: white;
}

/* Form styles */
input, textarea, select {
  background-color: var(--navy-light);
  border: 1px solid rgba(14, 165, 233, 0.3);
  color: var(--foreground);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--blue-electric);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

input::placeholder, textarea::placeholder {
  color: #4a6a8a;
}

/* Table of contents sticky sidebar */
.toc-sidebar {
  position: sticky;
  top: 6rem;
}

/* Active TOC link */
.toc-link {
  color: #94a3b8;
  transition: color 0.2s ease;
}

.toc-link:hover,
.toc-link.active {
  color: #0ea5e9;
}

/* Prose content styling for legal pages */
.prose-content h3 {
  color: #e8f0fe;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.prose-content p {
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.prose-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.prose-content li {
  color: #cbd5e1;
  margin-bottom: 0.5rem;
}

/* Icon container */
.icon-container {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 50%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Progress bar for hero */
.progress-bar {
  height: 2px;
  background: rgba(14, 165, 233, 0.2);
  border-radius: 1px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--blue-electric);
  transition: width 0.1s linear;
}
