/**
 * Enhanced Hexagon Animations CSS
 * Styles for all enhanced hexagon animations across Clear Enterprise pages
 */

/* ===== Common Enhanced Hexagon Styles ===== */
.enhanced-hexagon-about-container,
.enhanced-hexagon-dev-container,
.enhanced-hexagon-pm-container,
.enhanced-hexagon-hr-container {
  position: relative;
  width: 100%;
  min-height: 500px;
  padding: 30px 20px;
  margin: 40px 0;
  background: #ffffff;
  border: 1px solid #e1e5e9;
  border-radius: 12px;
  overflow: visible;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Compact Bottom Animation Styles */
.bottom-animation.compact {
  min-height: 300px;
  padding: 20px;
  margin: 20px 0;
  background: var(--off-white);
  border: 1px solid var(--swiss-silver);
  border-radius: 12px;
}

.animation-header {
  text-align: center;
  margin-bottom: 20px;
  padding: 15px;
  background: var(--pure-white);
  border-radius: 8px;
  border: 1px solid var(--swiss-silver);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.animation-header h4 {
  margin: 0 0 5px 0;
  color: var(--deep-charcoal);
  font-size: 1.1em;
  font-weight: 600;
}

.animation-subtitle {
  margin: 0;
  color: var(--earth-brown);
  font-size: 0.9em;
  font-style: italic;
}

/* Compact grid styles */
.compact .about-hexagon-grid,
.compact .dev-hexagon-grid,
.compact .pm-hexagon-grid,
.compact .hr-hexagon-grid {
  grid-template-columns: repeat(auto-fit, minmax(35px, 1fr));
  gap: 8px;
  padding: 15px;
  max-width: 600px;
}

.compact .about-hexagon,
.compact .dev-hexagon,
.compact .pm-hexagon,
.compact .hr-hexagon {
  width: 35px;
  height: 35px;
  font-size: 0.7em;
}

/* Ensure animations don't interfere with page layout */
.bottom-animation {
  clear: both;
  z-index: 1;
}

/* Stakeholder activity animations */
.stakeholder-active {
  animation: stakeholderPulse 2s ease-in-out;
  transform: scale(1.1);
  z-index: 5;
}

@keyframes stakeholderPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.8;
  }
}

/* Development build animations */
.build-active {
  animation: buildProgress 1.5s ease-in-out;
  transform: scale(1.1);
  z-index: 5;
}

@keyframes buildProgress {
  0% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: scale(1.2) rotate(180deg);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.1) rotate(360deg);
    opacity: 1;
  }
}

/* Team member activity */
.team-active {
  animation: teamWork 2.5s ease-in-out;
  transform: scale(1.05);
  z-index: 4;
}

@keyframes teamWork {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  25% {
    transform: scale(1.1);
    opacity: 0.9;
  }
  75% {
    transform: scale(1.05);
    opacity: 0.95;
  }
}

/* Build status panel */
.build-status-panel {
  background: var(--pure-white);
  border: 1px solid var(--swiss-silver);
  border-radius: 8px;
  padding: 15px;
  margin: 10px 0;
}

.build-info h5 {
  margin: 0 0 10px 0;
  color: var(--deep-charcoal);
  font-size: 1em;
  font-weight: 600;
}

.pipeline-stages {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.stage-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 8px;
  border-radius: 6px;
  background: var(--off-white);
  min-width: 80px;
}

.stage-item i {
  font-size: 1.2em;
  color: var(--trust-blue);
}

.stage-item span {
  font-size: 0.8em;
  font-weight: 500;
  color: var(--deep-charcoal);
}

.stage-status {
  font-size: 0.7em;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
  text-transform: uppercase;
}

.stage-status.ready {
  background: #e9ecef;
  color: #6c757d;
}

.stage-status.running {
  background: #fff3cd;
  color: #856404;
  animation: pulse 1s infinite;
}

.stage-status.success {
  background: #d4edda;
  color: #155724;
}

.build-metrics {
  display: flex;
  gap: 15px;
  font-size: 0.8em;
}

.metric {
  display: flex;
  gap: 5px;
}

.metric-label {
  color: var(--earth-brown);
}

.metric-value {
  color: var(--deep-charcoal);
  font-weight: 600;
}

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

/* Project Management Components */
.milestone-tracker, .risk-monitor, .communication-hub {
  background: var(--pure-white);
  border: 1px solid var(--swiss-silver);
  border-radius: 8px;
  padding: 12px;
  margin: 10px 0;
  font-size: 0.85em;
}

.milestone-info h5, .risk-info h5, .communication-info h5 {
  margin: 0 0 10px 0;
  color: var(--deep-charcoal);
  font-size: 0.9em;
  font-weight: 600;
}

/* Milestone Tracker */
.milestone-timeline {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 10px;
}

.milestone-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.7em;
}

.milestone-item.completed i {
  color: var(--trust-blue);
}

.milestone-item.active i {
  color: var(--swiss-gold);
  animation: pulse 2s infinite;
}

.milestone-item.pending i {
  color: var(--swiss-silver);
}

.milestone-progress {
  display: flex;
  align-items: center;
  gap: 10px;
}

.progress-bar {
  flex: 1;
  height: 6px;
  background: var(--swiss-silver);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--trust-blue);
  transition: width 0.5s ease;
}

.progress-text {
  font-size: 0.7em;
  color: var(--earth-brown);
  font-weight: 600;
}

/* Risk Monitor */
.risk-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.risk-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.7em;
}

.risk-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.risk-item.low {
  background: rgba(40, 167, 69, 0.1);
}

.risk-item.low .risk-indicator {
  background: #28a745;
}

.risk-item.medium {
  background: rgba(255, 193, 7, 0.1);
}

.risk-item.medium .risk-indicator {
  background: #ffc107;
}

.risk-item.high {
  background: rgba(220, 53, 69, 0.1);
}

.risk-item.high .risk-indicator {
  background: #dc3545;
}

.risk-level {
  margin-left: auto;
  font-weight: 600;
}

/* Communication Hub */
.communication-feed {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.comm-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: var(--off-white);
  border-radius: 4px;
  font-size: 0.7em;
  transition: all 0.3s ease;
}

.comm-item.new {
  background: rgba(63, 136, 197, 0.1);
  border-left: 3px solid var(--trust-blue);
  animation: slideIn 0.5s ease;
}

.comm-item i {
  color: var(--trust-blue);
  width: 14px;
}

.comm-time {
  margin-left: auto;
  color: var(--earth-brown);
  font-size: 0.9em;
}

@keyframes slideIn {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .bottom-animation.compact {
    padding: 15px;
    margin: 15px 0;
  }

  .animation-header h4 {
    font-size: 1em;
  }

  .animation-subtitle {
    font-size: 0.8em;
  }

  .compact .about-hexagon-grid,
  .compact .dev-hexagon-grid,
  .compact .pm-hexagon-grid,
  .compact .hr-hexagon-grid {
    grid-template-columns: repeat(auto-fit, minmax(28px, 1fr));
    gap: 6px;
    padding: 10px;
  }

  .compact .about-hexagon,
  .compact .dev-hexagon,
  .compact .pm-hexagon,
  .compact .hr-hexagon {
    width: 28px;
    height: 28px;
    font-size: 0.6em;
  }
}

/* Animation Headers */
.about-scenario-header,
.dev-scenario-header,
.pm-scenario-header,
.hr-scenario-header {
  background: #f8f9fa;
  padding: 20px 25px;
  border-radius: 8px;
  margin-bottom: 25px;
  border-left: 4px solid #007bff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.about-scenario-header h2,
.dev-scenario-header h2,
.pm-scenario-header h2,
.hr-scenario-header h2 {
  margin: 0 0 8px 0;
  color: #2c3e50;
  font-size: 1.4em;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-scenario-header p,
.dev-scenario-header p,
.pm-scenario-header p,
.hr-scenario-header p {
  margin: 0;
  color: #5a6c7d;
  font-size: 0.95em;
  line-height: 1.5;
}

.scenario-complexity {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 12px;
  background: rgba(0, 123, 255, 0.1);
  color: #007bff;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: 500;
}

/* Enhanced Hexagon Grid */
.about-hexagon-grid,
.dev-hexagon-grid,
.pm-hexagon-grid,
.hr-hexagon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(55px, 1fr));
  gap: 12px;
  padding: 25px;
  max-width: 900px;
  margin: 0 auto;
  background: rgba(248, 249, 250, 0.3);
  border-radius: 8px;
}

/* Base Hexagon Styling */
.about-hexagon,
.dev-hexagon,
.pm-hexagon,
.hr-hexagon {
  position: relative;
  width: 50px;
  height: 50px;
  background: var(--pure-white);
  border: 2px solid var(--swiss-silver);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.about-hexagon:hover,
.dev-hexagon:hover,
.pm-hexagon:hover,
.hr-hexagon:hover {
  transform: scale(1.05);
  border-color: var(--trust-blue);
  box-shadow: 0 5px 15px rgba(63, 136, 197, 0.25);
  z-index: 10;
}

/* Hexagon Layers */
.base-layer,
.career-layer,
.culture-layer,
.satisfaction-layer,
.stakeholder-layer,
.change-layer,
.complexity-layer,
.critical-layer,
.team-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.3s ease;
}

/* ===== About Us Animation Specific Styles ===== */
.enhanced-hexagon-about-container {
  background: linear-gradient(135deg, #8B4513 0%, #D2B48C 50%, #87CEEB 100%);
}

.swiss-landscape {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(180deg, transparent 0%, #2E8B57 100%);
  z-index: 1;
  transition: all 0.5s ease;
}

.swiss-landscape.foundation {
  background: linear-gradient(180deg, transparent 0%, #8B4513 100%);
}

.swiss-landscape.sustainability {
  background: linear-gradient(180deg, transparent 0%, #228B22 100%);
}

.stage-indicator {
  position: relative;
  top: auto;
  right: auto;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
  padding: 15px;
  background: #ffffff;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  z-index: 10;
}

.stage-indicator::before {
  content: "Progress Stages:";
  width: 100%;
  font-size: 0.9em;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
}

.stage-button {
  padding: 8px 14px;
  background: #ffffff;
  border: 1px solid #e1e5e9;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.8em;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: #495057;
}

.stage-button:hover {
  border-color: #007bff;
  background: #f8f9ff;
  transform: translateY(-1px);
}

.stage-button.active {
  background: #007bff;
  color: white;
  border-color: #0056b3;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.25);
}

.stage-button.completed {
  background: #28a745;
  color: white;
  border-color: #1e7e34;
}

.founder-characters {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  z-index: 10;
}

.founder {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  font-size: 12px;
  transition: all 0.5s ease;
}

.founder.placing-cornerstone {
  animation: placingCornerstone 2s ease-in-out;
}

@keyframes placingCornerstone {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* House Building Elements */
.about-hexagon.cornerstone {
  background: #8B4513;
  color: white;
  font-weight: bold;
  border-color: #654321;
  box-shadow: 0 0 20px rgba(139, 69, 19, 0.5);
}

.about-hexagon.foundation-block {
  background: #A0522D;
  border-color: #8B4513;
}

.about-hexagon.service-wing {
  border-width: 3px;
  background: linear-gradient(45deg, #ffffff, #f0f8ff);
}

.about-hexagon.interior-enhanced::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  border: 1px solid var(--accent-color);
  border-radius: 6px;
}

.interior-icon {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 16px;
  height: 16px;
  background: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: white;
}

.sustainability-meter {
  position: absolute;
  bottom: 120px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.meter-bar {
  width: 100px;
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  margin: 5px 0;
}

.meter-progress {
  height: 100%;
  background: #4CAF50;
  transition: width 0.5s ease;
}

/* ===== Development Animation Specific Styles ===== */
.enhanced-hexagon-dev-container {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: white;
}

/* Development Animation Compact Styling */
.enhanced-hexagon-dev-container.compact {
  background: var(--off-white, #f8f9fa);
  color: var(--deep-charcoal, #333);
}

/* Development Scenario Header Styling */
.dev-scenario-header.compact {
  background: var(--pure-white, #ffffff);
  color: var(--deep-charcoal, #333);
  border: 1px solid var(--swiss-silver, #dee2e6);
}

/* Development Metrics Styling */
.dev-metrics .dev-metric {
  display: flex;
  align-items: center;
  gap: 5px;
}

.dev-metrics .metric-label {
  color: var(--earth-brown, #666) !important;
  font-weight: 500;
}

.dev-metrics .metric-value {
  color: var(--deep-charcoal, #333) !important;
  font-weight: 600;
  background: rgba(248, 249, 250, 0.8);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--swiss-silver, #dee2e6);
}

.dev-scenario-header {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.control-panel,
.pm-control-panel,
.hr-control-panel {
  position: relative;
  top: auto;
  left: auto;
  background: #ffffff;
  border: 1px solid #e1e5e9;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  z-index: 10;
}

.control-panel h3,
.pm-control-panel h3,
.hr-control-panel h3 {
  margin: 0 0 15px 0;
  color: #2c3e50;
  font-size: 1.1em;
  font-weight: 600;
  border-bottom: 2px solid #f1f3f4;
  padding-bottom: 8px;
}

.scenario-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.scenario-btn,
.pm-scenario-btn,
.hr-scenario-btn {
  padding: 12px 16px;
  border: 1px solid #e1e5e9;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.85em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #495057;
  font-weight: 500;
  min-height: 70px;
  justify-content: center;
}

.scenario-btn:hover,
.pm-scenario-btn:hover,
.hr-scenario-btn:hover {
  border-color: #007bff;
  background: #f8f9ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.scenario-btn.active,
.pm-scenario-btn.active,
.hr-scenario-btn.active {
  background: #007bff;
  color: white;
  border-color: #0056b3;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.25);
}

.complexity-indicator {
  font-size: 10px;
  color: #FF9800;
}

.challenge-btn,
.complexity-btn {
  background: #FF9800;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-right: 10px;
}

.challenge-btn.active {
  background: #F44336;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Development Hexagon States */
.dev-hexagon.coding {
  background: #4CAF50;
  border-color: #388E3C;
}

.dev-hexagon.debugging {
  background: #FFC107;
  border-color: #FFA000;
}

.dev-hexagon.testing {
  background: #9C27B0;
  border-color: #7B1FA2;
}

.dev-hexagon.deploying {
  background: #2196F3;
  border-color: #1976D2;
}

.dev-hexagon.critical {
  background: #F44336;
  border-color: #D32F2F;
  animation: criticalPulse 1s infinite;
}

@keyframes criticalPulse {
  0%, 100% { box-shadow: 0 0 5px rgba(244, 67, 54, 0.5); }
  50% { box-shadow: 0 0 20px rgba(244, 67, 54, 0.8); }
}

.critical-alert,
.critical-situation-alert,
.talent-crisis-alert {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #dc3545;
  color: white;
  padding: 20px 25px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(220, 53, 69, 0.3);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  max-width: 320px;
  border-left: 4px solid #a02622;
}

.critical-alert.active,
.critical-situation-alert.active,
.talent-crisis-alert.active {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
}

.critical-alert:not(.active),
.critical-situation-alert:not(.active),
.talent-crisis-alert:not(.active) {
  transform: translateX(100%);
}

.timer-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 10px;
}

.timer-progress {
  height: 100%;
  background: white;
  animation: countdown linear;
}

@keyframes countdown {
  from { width: 100%; }
  to { width: 0%; }
}

/* ===== Project Management Animation Specific Styles ===== */
.enhanced-hexagon-pm-container {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

/* Project Management Animation Compact Styling */
.enhanced-hexagon-pm-container.compact {
  background: var(--off-white, #f8f9fa);
  color: var(--deep-charcoal, #333);
}

/* Project Management Scenario Header Styling */
.pm-scenario-header.compact {
  background: var(--pure-white, #ffffff);
  color: var(--deep-charcoal, #333);
  border: 1px solid var(--swiss-silver, #dee2e6);
}

/* Risk Monitor Text Styling */
.risk-monitor.compact,
.milestone-tracker.compact,
.communication-hub.compact {
  background: var(--pure-white, #ffffff);
  color: var(--deep-charcoal, #333);
}

.risk-monitor.compact .risk-item,
.milestone-tracker.compact .milestone-item,
.communication-hub.compact .comm-item {
  color: var(--deep-charcoal, #333);
}

.risk-monitor.compact .risk-item span,
.milestone-tracker.compact span,
.communication-hub.compact span {
  color: var(--deep-charcoal, #333) !important;
}

.risk-level {
  color: var(--earth-brown, #666) !important;
  font-weight: 600;
}

/* Stakeholder Map Compact Styling */
.stakeholder-map.compact {
  background: var(--pure-white, #ffffff);
  color: var(--deep-charcoal, #333);
  border: 1px solid var(--swiss-silver, #dee2e6);
}

.stakeholder-map.compact .legend-item,
.stakeholder-map.compact .legend-item span {
  color: var(--deep-charcoal, #333) !important;
}

/* Satisfaction Dashboard Compact Styling */
.satisfaction-dashboard.compact {
  background: var(--pure-white, #ffffff);
  color: var(--deep-charcoal, #333);
}

.satisfaction-dashboard.compact .meter-header span,
.satisfaction-dashboard.compact .meter-value {
  color: var(--deep-charcoal, #333) !important;
}

/* About Us Animation Client Showcase */
.client-showcase.compact {
  background: var(--pure-white, #ffffff);
  border: 1px solid var(--swiss-silver, #dee2e6);
  border-radius: 8px;
  padding: 15px;
  margin: 10px 0;
}

.client-showcase.compact h5 {
  margin: 0 0 10px 0;
  color: var(--deep-charcoal, #333);
  font-size: 0.9em;
  text-align: center;
}

.client-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.client-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px;
  background: var(--off-white, #f8f9fa);
  border: 1px solid var(--swiss-silver, #dee2e6);
  border-radius: 6px;
  min-width: 60px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.client-badge i {
  font-size: 1.2em;
  margin-bottom: 4px;
  color: var(--trust-blue, #3F88C5);
}

.client-badge span {
  font-size: 0.7em;
  color: var(--deep-charcoal, #333);
  font-weight: 500;
}

.client-badge.highlight {
  background: var(--trust-blue, #3F88C5);
  border-color: var(--trust-blue, #3F88C5);
  transform: scale(1.05);
}

.client-badge.highlight i,
.client-badge.highlight span {
  color: white;
}

/* About Us Scenario Header */
.about-scenario-header.compact {
  background: var(--pure-white, #ffffff);
  border: 1px solid var(--swiss-silver, #dee2e6);
  border-radius: 8px;
  padding: 12px;
  margin: 10px 0;
}

.about-scenario-header.compact .stage-info h4 {
  margin: 0 0 5px 0;
  font-size: 1em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-scenario-header.compact .stage-info p {
  margin: 0;
  color: var(--earth-brown, #666);
  font-size: 0.85em;
}

.stakeholder-map {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
  backdrop-filter: blur(10px);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 5px 0;
  font-size: 12px;
  color: #495057; /* Ensure text is visible */
  background: rgba(255, 255, 255, 0.9);
  padding: 5px 8px;
  border-radius: 4px;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

/* Fix any white text issues in control panels */
.control-panel,
.pm-control-panel,
.hr-control-panel {
  background: var(--pure-white);
  color: var(--deep-charcoal);
  border: 1px solid var(--swiss-silver);
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.control-panel.compact,
.pm-control-panel.compact,
.hr-control-panel.compact {
  padding: 10px;
  font-size: 0.9em;
}

.scenario-btn,
.pm-scenario-btn {
  background: var(--off-white);
  color: var(--deep-charcoal);
  border: 1px solid var(--swiss-silver);
  padding: 8px 12px;
  border-radius: 6px;
  margin: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.scenario-btn:hover,
.pm-scenario-btn:hover {
  background: var(--swiss-silver);
  color: var(--deep-charcoal);
}

.scenario-btn.active,
.pm-scenario-btn.active {
  background: var(--trust-blue);
  color: var(--pure-white);
  border-color: var(--trust-blue);
}

.satisfaction-dashboard,
.culture-dashboard {
  position: relative;
  bottom: auto;
  right: auto;
  background: #ffffff;
  border: 1px solid #e1e5e9;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  z-index: 10;
  color: #333;
}

.satisfaction-dashboard h3,
.culture-dashboard h3 {
  margin: 0 0 15px 0;
  color: #2c3e50;
  font-size: 1.1em;
  font-weight: 600;
  border-bottom: 2px solid #f1f3f4;
  padding-bottom: 8px;
}

.satisfaction-meter {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  font-size: 12px;
}

.satisfaction-meter .meter-bar {
  width: 80px;
}

.pm-hexagon.phase-active {
  animation: phaseActive 2s ease-in-out;
  z-index: 5;
}

@keyframes phaseActive {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.pm-hexagon.crisis-affected {
  background: #F44336;
  border-color: #D32F2F;
  animation: crisisShake 0.5s infinite;
}

@keyframes crisisShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}

.pm-hexagon.recovery-boost {
  background: #4CAF50;
  border-color: #388E3C;
  animation: recoveryGlow 2s ease-out;
}

@keyframes recoveryGlow {
  0% { box-shadow: 0 0 5px rgba(76, 175, 80, 0.3); }
  50% { box-shadow: 0 0 25px rgba(76, 175, 80, 0.8); }
  100% { box-shadow: 0 0 5px rgba(76, 175, 80, 0.3); }
}

/* ===== HR Processes Animation Specific Styles ===== */
.enhanced-hexagon-hr-container {
  background: linear-gradient(135deg, #3F88C5 0%, #67B0EF 50%, #F8F9FA 100%);
  color: #333;
}

/* HR Animation Compact Styling */
.enhanced-hexagon-hr-container.compact {
  background: var(--off-white, #f8f9fa);
  color: var(--deep-charcoal, #333);
  border: 1px solid var(--swiss-silver, #dee2e6);
}

/* HR Scenario Header Styling */
.hr-scenario-header.compact {
  background: var(--pure-white, #ffffff);
  color: var(--deep-charcoal, #333);
  border: 1px solid var(--swiss-silver, #dee2e6);
}

/* HR Components Professional Styling */
.talent-pipeline.compact,
.culture-dashboard.compact,
.team-performance.compact {
  background: var(--pure-white, #ffffff);
  color: var(--deep-charcoal, #333);
  border: 1px solid var(--swiss-silver, #dee2e6);
}

/* HR Animation Professional Color Scheme */
.hr-talent-acquisition { color: var(--modern-turquoise, #33C6B8); }
.hr-team-development { color: var(--trust-blue, #3F88C5); }
.hr-leadership { color: var(--swiss-gold, #D4B254); }
.hr-culture { color: var(--earth-brown, #9D7E5E); }
.hr-performance { color: var(--digital-coral, #F26D6D); }

/* HR Animation Text Visibility */
.enhanced-hexagon-hr-container.compact .talent-pipeline span,
.enhanced-hexagon-hr-container.compact .culture-dashboard span,
.enhanced-hexagon-hr-container.compact .team-performance span,
.enhanced-hexagon-hr-container.compact .hr-control-panel span {
  color: var(--deep-charcoal, #333) !important;
}

/* HR Metrics and Labels */
.hr-metrics .hr-metric {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hr-metrics .metric-label {
  color: var(--earth-brown, #666) !important;
  font-weight: 500;
}

.hr-metrics .metric-value {
  color: var(--deep-charcoal, #333) !important;
  font-weight: 600;
  background: rgba(248, 249, 250, 0.8);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--swiss-silver, #dee2e6);
}

.talent-pipeline,
.stakeholder-map {
  background: #ffffff;
  border: 1px solid #e1e5e9;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.talent-pipeline h3,
.stakeholder-map h3 {
  margin: 0 0 15px 0;
  color: #2c3e50;
  font-size: 1.1em;
  font-weight: 600;
  border-bottom: 2px solid #f1f3f4;
  padding-bottom: 8px;
}

.pipeline-stages {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 15px;
}

.pipeline-stage {
  flex: 1;
  text-align: center;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 10px;
  border: 2px solid #e0e0e0;
  transition: all 0.3s ease;
}

.pipeline-stage:hover {
  border-color: #4CAF50;
  background: #f0fff0;
}

.stage-count {
  font-size: 24px;
  font-weight: bold;
  color: #4CAF50;
  margin-top: 10px;
}

.culture-dashboard {
  background: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.value-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  padding: 8px;
  border-radius: 8px;
  background: #f8f9fa;
}

.value-strength {
  flex: 1;
  height: 6px;
  background: #4CAF50;
  border-radius: 3px;
  margin-left: auto;
}

/* HR Hexagon Career Levels */
.hr-hexagon[data-career="candidate"] {
  border-color: #9E9E9E;
}

.hr-hexagon[data-career="junior"] {
  border-color: #4CAF50;
}

.hr-hexagon[data-career="mid"] {
  border-color: #2196F3;
}

.hr-hexagon[data-career="senior"] {
  border-color: #FF9800;
}

.hr-hexagon[data-career="lead"] {
  border-color: #9C27B0;
}

.hr-hexagon[data-career="manager"] {
  border-color: #E91E63;
}

.hr-hexagon.stage-active {
  animation: stageActive 3s ease-in-out;
}

@keyframes stageActive {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.hr-hexagon.promotion-celebration {
  animation: promotionCelebration 3s ease-out;
}

@keyframes promotionCelebration {
  0% { transform: scale(1); }
  25% { transform: scale(1.2) rotate(5deg); }
  50% { transform: scale(1.1) rotate(-5deg); }
  75% { transform: scale(1.15) rotate(2deg); }
  100% { transform: scale(1); }
}

.hr-hexagon.career-development {
  background: linear-gradient(45deg, #4CAF50, #8BC34A);
  animation: careerGrowth 3s ease-in-out;
}

@keyframes careerGrowth {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); filter: brightness(1.2); }
}

/* ===== Common Interactive Elements ===== */
.hexagon-tooltip,
.dev-tooltip,
.pm-tooltip,
.hr-tooltip {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 100;
}

.hexagon-tooltip::after,
.dev-tooltip::after,
.pm-tooltip::after,
.hr-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.8);
}

/* Modal Styles */
.hexagon-detail-modal,
.stakeholder-detail-modal,
.employee-detail-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  width: 90%;
}

.modal-content h3 {
  margin-top: 0;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.stat-bar {
  width: 100px;
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  margin: 0 10px;
}

.stat-progress {
  height: 100%;
  background: #4CAF50;
  border-radius: 4px;
  transition: width 0.5s ease;
}

.modal-close {
  background: #2196F3;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  margin-top: 20px;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: #1976D2;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .enhanced-hexagon-about-container,
  .enhanced-hexagon-dev-container,
  .enhanced-hexagon-pm-container,
  .enhanced-hexagon-hr-container {
    padding: 15px;
    margin: 15px 0;
  }

  .about-hexagon-grid,
  .dev-hexagon-grid,
  .pm-hexagon-grid,
  .hr-hexagon-grid {
    grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
    gap: 6px;
    padding: 15px;
  }

  .about-hexagon,
  .dev-hexagon,
  .pm-hexagon,
  .hr-hexagon {
    width: 40px;
    height: 40px;
  }

  .control-panel,
  .satisfaction-dashboard {
    position: relative;
    max-width: 100%;
    margin: 15px 0;
  }

  .stage-indicator {
    position: relative;
    top: auto;
    right: auto;
    flex-direction: row;
    flex-wrap: wrap;
    margin: 15px 0;
  }

  .pipeline-stages {
    flex-direction: column;
    gap: 10px;
  }

  .modal-content {
    margin: 20px;
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .about-hexagon,
  .dev-hexagon,
  .pm-hexagon,
  .hr-hexagon {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }

  .hexagon-tooltip,
  .dev-tooltip,
  .pm-tooltip,
  .hr-tooltip {
    font-size: 10px;
    padding: 4px 8px;
  }
}

/* ===== Animation Performance Optimizations ===== */
.enhanced-hexagon-about-container *,
.enhanced-hexagon-dev-container *,
.enhanced-hexagon-pm-container *,
.enhanced-hexagon-hr-container * {
  will-change: auto;
}

.about-hexagon:hover,
.dev-hexagon:hover,
.pm-hexagon:hover,
.hr-hexagon:hover {
  will-change: transform, box-shadow;
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
  .about-hexagon,
  .dev-hexagon,
  .pm-hexagon,
  .hr-hexagon,
  .stage-button,
  .scenario-btn,
  .challenge-btn,
  .complexity-btn {
    animation: none !important;
    transition: none !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .about-hexagon,
  .dev-hexagon,
  .pm-hexagon,
  .hr-hexagon {
    border-width: 3px;
  }

  .hexagon-tooltip,
  .dev-tooltip,
  .pm-tooltip,
  .hr-tooltip {
    background: #000000;
    border: 1px solid #ffffff;
  }
}