/* IONORR - Defence-Grade Design System */

/* Light mode (default for CSS vars when no dark class) */
:root {
  --color-primary: #ffffff;
  --color-primary-light: #f8fafc;
  --color-secondary: #f1f5f9;
  --color-accent: #2563eb;
  --color-accent-muted: #3b82f6;
  --color-text: #0f172a;
  --color-text-muted: #475569;
  --color-border: #e2e8f0;
  --color-border-light: #cbd5e1;
}

/* Dark mode */
.dark {
  --color-primary: #0a1628;
  --color-primary-light: #121f33;
  --color-secondary: #1a2d47;
  --color-accent: #3b82f6;
  --color-accent-muted: #60a5fa;
  --color-text: #f8fafc;
  --color-text-muted: #94a3b8;
  --color-border: #1e3a5f;
  --color-border-light: #2d4a6f;
}

* {
  box-sizing: border-box;
}

body {
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Navigation bar */
.nav-bar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.dark .nav-bar {
  background: rgba(10, 22, 40, 0.95);
}

/* Hero section */
.hero-section {
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../public/hero_bg_light.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.15;
  pointer-events: none;
}

.dark .hero-section::after {
  background-image: url('../public/hero_bg_dark.png');
  opacity: 0.25;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(37, 99, 235, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(37, 99, 235, 0.03) 0%, transparent 40%);
  pointer-events: none;
}

.dark .hero-section::before {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 40%);
}

/* Grid pattern overlay */
.grid-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Section styling */
.section-dark {
  background: var(--color-primary-light);
}

.section-darker {
  background: var(--color-primary);
}

/* Divider */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.section-divider-accent {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0.5;
}

/* Cards */
.card {
  background: var(--color-primary-light);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.dark .card:hover {
  box-shadow: 0 10px 40px rgba(59, 130, 246, 0.1);
}

/* Domain cards */
.domain-card {
  background: var(--color-primary-light);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.dark .domain-card {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-secondary) 100%);
}

.domain-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--color-accent);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.domain-card:hover::before {
  transform: scaleY(1);
}

.domain-card:hover {
  border-color: var(--color-border-light);
}

/* Project cards */
.project-card {
  background: var(--color-primary-light);
  border: 1px solid var(--color-border);
  position: relative;
  transition: all 0.3s ease;
}

.project-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover::after {
  opacity: 1;
}

/* Status badges */
.status-badge {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.75rem;
  border-radius: 2px;
}

.status-concept {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fcd34d;
}

.status-prototype {
  background: #dbeafe;
  color: #1d4ed8;
  border: 1px solid #93c5fd;
}

.status-deployable {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.dark .status-concept {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.3);
}

.dark .status-prototype {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.3);
}

.dark .status-deployable {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.3);
}

/* Links */
.link-accent {
  color: var(--color-accent);
  text-decoration: none;
  position: relative;
}

.link-accent::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

.link-accent:hover::after {
  width: 100%;
}

/* Button styles */
.btn-primary {
  background: var(--color-accent);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.btn-primary:hover {
  background: var(--color-accent-muted);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* Number indicators */
.number-indicator {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent);
  font-family: 'Michroma', monospace;
}

/* Geometric accents */
.geo-line {
  width: 60px;
  height: 2px;
  background: var(--color-accent);
}

/* Text gradient */
.text-gradient {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dark .text-gradient {
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* Mobile menu */
.mobile-menu {
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  background: var(--color-primary);
  border-right: 1px solid var(--color-border);
}

.mobile-menu.open {
  transform: translateX(0);
}

/* Footer */
.footer {
  background: var(--color-primary);
  border-top: 1px solid var(--color-border);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-border-light);
}

/* Print styles */
@media print {
  nav, footer, .no-print { display: none; }
  body { background: white; color: black; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-section::before {
    background: radial-gradient(ellipse at 50% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
  }
}

/* Accent color for light mode text */
.text-accent {
  color: var(--color-accent);
}
