/* University of Guelph Robotics Institute - Custom Design System */
@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@500;600;700;800&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

:root {
  --primary-crimson: #960022;
  --primary-bright: #c20430;
  --primary-dark: #700019;
  --sensor-cyan: #0EA5E9;
  --academic-gold: #FFC72C;
  --obsidian-dark: #0B1120;
  --canvas-base: #F8FAFC;
  --surface-card: #FFFFFF;
  --border-hairline: #E2E8F0;
  --border-subtle: #CBD5E1;
  --text-muted: #64748B;
  --telemetry-live: #10B981;
}

html {
  scroll-behavior: smooth;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #131b2e;
  background-color: var(--canvas-base);
  overflow-x: hidden;
}

/* Typography styles */
.font-headline {
  font-family: 'Hanken Grotesk', sans-serif;
}

.font-mono,
.font-label-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Laboratory Precision Grid Background */
.lab-grid-pattern {
  background-image: radial-gradient(rgba(150, 0, 34, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

.lab-grid-dark {
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Subtle Technical Card Hover Effect per DESIGN.md */
.tech-card {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--border-hairline);
}

.tech-card:hover {
  border-color: rgba(14, 165, 233, 0.5);
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.2), 0 8px 20px -4px rgba(15, 23, 42, 0.06);
  transform: translateY(-2px);
}

.tech-card-crimson:hover {
  border-color: rgba(194, 4, 48, 0.5);
  box-shadow: 0 0 0 1px rgba(194, 4, 48, 0.2), 0 8px 20px -4px rgba(194, 4, 48, 0.08);
  transform: translateY(-2px);
}

/* Telemetry Pulsing Beacon */
.telemetry-beacon {
  position: relative;
}

.telemetry-beacon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: inherit;
  transform: translate(-50%, -50%);
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.9;
  }
  80%, 100% {
    transform: translate(-50%, -50%) scale(2.4);
    opacity: 0;
  }
}

/* Glassmorphism Header */
.glass-header {
  background: rgba(250, 248, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

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

::-webkit-scrollbar-track {
  background: #F1F5F9;
}

::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* Navigation active class */
.nav-link-active {
  background-color: #e2e7ff !important;
  color: #960022 !important;
  font-weight: 600 !important;
}

/* Line clamps */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Modal Animations */
.modal-backdrop {
  opacity: 0;
  transition: opacity 0.25s ease-out;
}

.modal-backdrop.show {
  opacity: 1;
}

.modal-dialog {
  transform: scale(0.95) translateY(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.show .modal-dialog {
  transform: scale(1) translateY(0);
}
