/* =============================================================================
   ZR Nordic Group - Main Stylesheet
   Unified styles for all pages
   ============================================================================= */

/* CSS Variables */
:root {
  /* Core Colors */
  --midnight: #0a0f1c;
  --deep: #0f1829;
  --ink: #eaf2ff;
  --text: #eaf2ff;
  --muted: #9fb0c6;
  --line: #233147;
  
  /* Brand Colors */
  --gold: #e7b75f;
  --emerald: #25d48f;
  --opal: #5bb7c5;
  --saffron: #E7B75F;
  
  /* Backgrounds */
  --bg-primary: #070b15;
  --bg-secondary: #0f1626;
  --bg-card: rgba(255,255,255,.05);
  --bg-card-hover: rgba(255,255,255,.08);
  
  /* Effects */
  --ring: rgba(255,255,255,.12);
  --shadow: 0 20px 60px rgba(0,0,0,.45);
  --shadow-lg: 0 25px 50px rgba(0,0,0,.6);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--emerald), var(--opal));
  --gradient-secondary: linear-gradient(135deg, var(--gold), var(--emerald));
  --gradient-text: linear-gradient(135deg, var(--gold), var(--emerald));
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  font-weight: 400;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

.display {
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 900;
}

.super {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  opacity: 0.9;
  font-weight: 600;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  opacity: 0.8;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Background Utilities */
.bg-parallax {
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,15,28,.75), rgba(10,15,28,.6));
  pointer-events: none;
  z-index: 1;
}

.content {
  position: relative;
  z-index: 2;
}

/* Grid Systems */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

/* Card Components */
.card {
  background: var(--bg-card);
  border: 1px solid var(--ring);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  color: var(--emerald);
  font-weight: 600;
  text-decoration: none;
}

.card-link:hover {
  gap: 0.75rem;
}

.card-link::after {
  content: '→';
  transition: transform 0.3s ease;
}

.card-link:hover::after {
  transform: translateX(4px);
}

/* Button Components */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}

.btn:before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn:hover:before {
  opacity: 1;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--midnight);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--ring);
}

.btn-secondary:hover {
  border-color: var(--emerald);
  color: var(--emerald);
}

/* Badge & Chip Components */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  background: rgba(74,153,96,.12);
  border: 1px solid rgba(74,153,96,.35);
  color: #95e0b0;
  font-weight: 700;
  font-size: 0.9rem;
}

.badge-chip {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--ring);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0.2rem;
}

.location-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  background: var(--bg-secondary);
  border: 1px solid var(--ring);
  color: var(--text);
  font-weight: 700;
  margin-top: 1rem;
}

/* Progress Bar */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-secondary);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 1000;
  transition: transform 0.1s ease;
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,15,28,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ring);
  transition: all 0.3s ease;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
}

.logo img {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
  font-size: 0.9rem;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: rgba(255,255,255,.06);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: var(--emerald);
  border-radius: 50%;
}

.cta {
  margin-left: 0.5rem;
  white-space: nowrap;
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

/* KPI Grid */
.kpi {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.kpi .card {
  text-align: center;
  padding: 1.5rem;
}

.kpi strong {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--emerald);
  display: block;
  margin-bottom: 0.5rem;
}

.kpi .small {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Timeline */
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--ring);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--gradient-primary);
  color: var(--midnight);
  border-radius: 50%;
  font-weight: 900;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.step h4 {
  margin-bottom: 0.5rem;
  color: var(--text);
}

.step p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Infographic */
.infographic {
  background: var(--bg-card);
  border: 1px solid var(--ring);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 2rem;
}

/* Sector Cards */
.sector-card {
  position: relative;
  overflow: hidden;
}

.sector-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.sector-card:hover::before {
  transform: scaleX(1);
}

/* Marquee */
.marquee-section {
  padding: 2rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--ring);
  border-bottom: 1px solid var(--ring);
}

.marquee {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.marquee span {
  display: inline-block;
  padding: 0 2rem;
  color: var(--muted);
  font-weight: 600;
  animation: scroll 20s linear infinite;
}

@keyframes scroll {
  from { transform: translateX(100%); }
  to { transform: translateX(-100%); }
}

/* Metric Cards */
.metric-card {
  text-align: center;
}

.metric-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--emerald);
  margin: 1rem 0;
}

/* Slider Component */
.slider {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--ring);
  border-radius: var(--radius);
  padding: 2rem;
  overflow: hidden;
}

.slides {
  position: relative;
  min-height: 200px;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.5s ease;
}

.slide.active {
  opacity: 1;
  transform: translateX(0);
}

.slide.prev {
  transform: translateX(-100%);
}

.testimonial {
  text-align: center;
  max-width: 600px;
}

.testimonial blockquote {
  font-size: 1.5rem;
  font-style: italic;
  margin-bottom: 1rem;
  color: var(--text);
}

.testimonial cite {
  color: var(--muted);
  font-size: 1rem;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  pointer-events: none;
}

.slider-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--ring);
  color: var(--text);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  pointer-events: all;
}

.slider-btn:hover {
  background: var(--emerald);
  color: var(--midnight);
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ring);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--emerald);
}

/* FAQ Component */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--ring);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  padding: 1.5rem;
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  position: relative;
  transition: all 0.3s ease;
}

.faq-item summary:hover {
  background: rgba(255,255,255,.02);
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 1.5rem;
  font-size: 1.5rem;
  color: var(--emerald);
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-content {
  padding: 0 1.5rem 1.5rem;
  color: var(--muted);
  line-height: 1.7;
}

/* CTA Section */
.cta-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--ring);
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--ring);
  border-radius: var(--radius);
  padding: 3rem;
}

.cta-content h3 {
  margin-bottom: 1rem;
  color: var(--text);
}

.cta-content p {
  color: var(--muted);
  font-size: 1.1rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

/* Footer */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--ring);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand {
  max-width: 400px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.brand img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
}

.brand span {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--gold);
}

.footer h4 {
  color: var(--gold);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.newsletter {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.newsletter .input {
  flex: 1;
  padding: 0.8rem 1rem;
  border: 1px solid var(--ring);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  color: var(--text);
  font-family: inherit;
}

.newsletter .input::placeholder {
  color: var(--muted);
}

.newsletter .btn {
  padding: 0.8rem 1.5rem;
}

.socials {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--bg-secondary);
  border: 1px solid var(--ring);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social:hover {
  background: var(--emerald);
  color: var(--midnight);
  transform: translateY(-2px);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--ring);
  color: var(--muted);
  font-size: 0.9rem;
}

.legal {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.legal a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.legal a:hover {
  color: var(--text);
}

/* Form Components */
.input,
.textarea,
.select {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--ring);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  color: var(--text);
  font-family: inherit;
  transition: all 0.3s ease;
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(37,212,143,0.1);
}

.textarea {
  min-height: 120px;
  resize: vertical;
}

/* Animation Classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  .cta-card {
    flex-direction: column;
    text-align: center;
  }
  
  .cta-actions {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--bg-primary);
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem;
    gap: 1.5rem;
    transition: left 0.3s ease;
    border-top: 1px solid var(--ring);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .timeline {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  
  .kpi {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .slider-nav {
    display: none;
  }
  
  .section {
    padding: 4rem 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .kpi {
    grid-template-columns: 1fr;
  }
  
  .hero-section {
    padding: 6rem 0;
  }
  
  .card {
    padding: 1.5rem;
  }
}

/* Page-specific Styles */
.page-content {
  margin-top: 70px;
  min-height: 100vh;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.hidden { display: none; }
.visible { display: block; }

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .progress,
  .btn,
  .slider-nav,
  .slider-dots {
    display: none;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .card {
    border: 1px solid #ccc;
    break-inside: avoid;
  }
}
/* Enhanced Interactive Safety Pyramid Styles */

.pyramid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.infographic {
    position: relative;
}

/* SVG Pyramid Enhancements */
.pyramid-level {
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.pyramid-level:hover .pyramid-shape,
.pyramid-level:focus .pyramid-shape {
    filter: url(#glow);
    opacity: 0.8;
    stroke-width: 3;
    stroke: rgba(0, 255, 136, 0.8);
}

.pyramid-level.active .pyramid-shape {
    fill: url(#pyramid-gradient-active);
    opacity: 0.9;
    stroke: rgba(0, 255, 136, 1);
    stroke-width: 3;
    filter: url(#glow);
}

.pyramid-level:focus {
    outline: 3px solid #00ff88;
    outline-offset: 2px;
}

/* Enhanced text visibility */
.pyramid-text {
    font-size: 16px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.pyramid-level:hover .pyramid-text,
.pyramid-level:focus .pyramid-text,
.pyramid-level.active .pyramid-text {
    font-size: 18px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
    fill: #ffffff;
}

/* Click areas for better accessibility */
.click-area {
    cursor: pointer;
}

/* Information Panel Styles */
.pyramid-info-panel {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #333;
    min-height: 400px;
}

.info-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.info-header p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Safety Metrics Grid */
.safety-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.metric:hover {
    border-color: rgba(0, 255, 136, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.metric-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #00ff88;
    margin-bottom: 0.5rem;
    font-family: 'Courier New', monospace;
}

.metric-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* Level Details */
.level-details {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid #00ff88;
}

.level-details h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 1rem;
}

.level-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.level-details li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #555;
    line-height: 1.5;
}

.level-details li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #00ff88;
    font-weight: bold;
}

/* Hidden content for screen readers */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.level-data {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pyramid-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .pyramid-info-panel {
        padding: 1.5rem;
        min-height: auto;
    }
    
    .safety-metrics {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .metric {
        padding: 1rem;
    }
    
    .metric-number {
        font-size: 1.5rem;
    }
    
    .pyramid-text {
        font-size: 14px;
    }
    
    .pyramid-level:hover .pyramid-text,
    .pyramid-level:focus .pyramid-text,
    .pyramid-level.active .pyramid-text {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .pyramid-text {
        font-size: 12px;
    }
    
    .pyramid-level:hover .pyramid-text,
    .pyramid-level:focus .pyramid-text,
    .pyramid-level.active .pyramid-text {
        font-size: 14px;
    }
    
    .info-header h3 {
        font-size: 1.5rem;
    }
    
    .info-header p {
        font-size: 1rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .pyramid-level:focus {
        outline: 4px solid #00ff88 !important;
        outline-offset: 2px !important;
    }
    
    .pyramid-info-panel {
        border: 2px solid #333;
    }
    
    .metric {
        border: 2px solid #333;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .pyramid-level,
    .pyramid-shape,
    .pyramid-text,
    .metric {
        transition: none !important;
    }
    
    .pyramid-level:hover,
    .pyramid-level:focus {
        transform: none !important;
    }
    
    .metric:hover {
        transform: none !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .pyramid-info-panel {
        background: rgba(26, 26, 46, 0.95);
        color: #fff;
    }
    
    .info-header h3 {
        color: #fff;
    }
    
    .info-header p {
        color: rgba(255, 255, 255, 0.8);
    }
    
    .level-details {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
    }
    
    .level-details h4 {
        color: #fff;
    }
    
    .level-details li {
        color: rgba(255, 255, 255, 0.9);
    }
    
    .metric {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
    }
    
    .metric-label {
        color: rgba(255, 255, 255, 0.8);
    }
}