/**
 * CHAPTER 6: DIGITAL COMMAND CENTER
 * Redesigned as a 3D Cinematic Showcase of WE360 Enterprise Software
 */

.chapter-6 {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 2000px;
  background-color: var(--bg-dark);
}

.c6-control-room {
  position: relative;
  width: 100vw;
  height: 100vh;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Individual Module Scenes (positioned absolutely in the center) */
.c6-module-scene {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Centered initially */
  width: 80vw;
  max-width: 1200px;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0; /* Hidden by default, animated by GSAP */
  transform-style: preserve-3d;
  pointer-events: none; /* Let clicks pass through if invisible */
}

.c6-module-scene.is-active {
  pointer-events: auto;
}

/* Base Mockup Styling */
.c6-device-mockup {
  position: relative;
  background: rgba(15, 15, 20, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 60px rgba(0,0,0,0.6), inset 0 0 20px rgba(255,255,255,0.02);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Specific Device Shapes */
.c6-mockup-laptop {
  width: 900px;
  height: 550px;
  border-radius: 12px;
  border-top-width: 8px; /* thicker top bezel for camera */
}

.c6-mockup-laptop.c6-large {
  width: 1100px;
  height: 650px;
}

.c6-mockup-tablet {
  width: 700px;
  height: 500px;
  border-radius: 20px;
  border-width: 16px;
}

.c6-mockup-phone {
  width: 350px;
  height: 700px;
  border-radius: 30px;
  border-width: 12px;
}

.c6-mockup-terminal {
  width: 600px;
  height: 600px;
  border-radius: 8px;
  border-bottom-width: 40px;
}

.c6-mockup-hud {
  width: 800px;
  height: 500px;
  border-radius: 0;
  border: 2px solid;
  background: rgba(0, 0, 0, 0.4);
  box-shadow: none;
  /* Glowing borders defined by accent color */
}

.c6-mockup-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: inherit; /* Inherit border radius from the parent device frame */
  display: block;
}

/* Specific Module Accents (Keep for glowing borders if needed) */
.c6-mod-erp { --mod-accent: #00D4FF; } /* Teal */
.c6-mod-hrms { --mod-accent: #4A90E2; } /* Blue */
.c6-mod-pos { --mod-accent: #F5A623; } /* Orange */
.c6-mod-mfg { --mod-accent: #FF3B30; } /* Red */
.c6-mod-crm { --mod-accent: #B83B5E; } /* Purple/Pink */
.c6-mod-inv { --mod-accent: #50E3C2; } /* Mint */
.c6-mod-ai { --mod-accent: #9013FE; } /* Deep Purple */
.c6-mod-exec { --mod-accent: #D4AF37; } /* Gold */
.c6-mod-pm { --mod-accent: #7ED321; } /* Green */
.c6-mod-marketing { --mod-accent: #FF2A85; } /* Hot Pink */

/* Apply accents to HUD borders */
.c6-module-scene[data-module] .c6-mockup-hud { 
  border-color: var(--mod-accent); 
  box-shadow: inset 0 0 30px rgba(255,255,255,0.05), 0 0 30px rgba(var(--mod-accent), 0.2); 
}

.c6-dual-1 { position: absolute; left: 20%; transform: rotate(-5deg); z-index: 2; }
.c6-dual-2 { position: absolute; right: 20%; transform: rotate(5deg); top: 10%; z-index: 1;}

/* Ecosystem Overlay */
.c6-ecosystem-overlay {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
}
.c6-eco-title {
  font-family: var(--font-display);
  font-size: 4rem;
  text-transform: uppercase;
  background: linear-gradient(to right, #fff, #888);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  letter-spacing: 5px;
  filter: drop-shadow(0 0 20px rgba(255,255,255,0.3));
}
