/* =========================================================================
   BUS & COACH BENCHMARKING - PREMIUM ENGINEERING STYLES
   ========================================================================= */

/* General Setup */
body {
    background-color: var(--dark-bg);
    color: var(--text-light);
}

.light-theme {
    background-color: #ffffff;
    color: #0f172a;
}
.light-theme .title-accent {
    color: var(--accent-cyan);
}
.dark-theme {
    background-color: var(--dark-bg);
    color: var(--text-light);
}
.dark-text { color: #0f172a !important; }

/* =========================================================================
   SECTION 1: HERO (X-Ray Coach Architecture)
   ========================================================================= */
.coach-hero {
    position: relative;
    padding-top: calc(var(--site-header-height, 80px) + 60px);
    padding-bottom: 80px;
    background: radial-gradient(circle at 70% 50%, rgba(11, 24, 43, 1) 0%, var(--dark-bg) 100%);
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.highway-grid-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(31,168,223,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(31,168,223,0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    pointer-events: none;
}

.coach-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
}

.coach-xray-container {
    position: relative;
    width: 100%;
    height: 500px;
    perspective: 1500px;
}

.xray-visual {
    width: 100%;
    height: 100%;
    background: rgba(31, 168, 223, 0.05);
    border: 1px solid rgba(31, 168, 223, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: monospace;
    color: var(--accent-cyan);
    position: relative;
    overflow: hidden;
}

.xray-visual::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(rgba(31, 168, 223, 0.1) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(31, 168, 223, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

.xray-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1.5s ease;
}

.xray-tag {
    position: absolute;
    background: rgba(11, 15, 25, 0.9);
    border-left: 3px solid var(--accent-cyan);
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    animation: floatTag 3s ease-in-out infinite alternate;
}

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

/* =========================================================================
   SECTION 2: OPERATOR DECISION DASHBOARD (Light Theme)
   ========================================================================= */
.operator-dashboard {
    padding: 100px 0;
    background: #ffffff;
}

.dashboard-container {
    display: grid;
    grid-template-columns: 1fr 100px 1fr;
    gap: 20px;
    align-items: center;
    margin-top: 50px;
}

.dash-panel {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.dash-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    border-left: 4px solid var(--accent-cyan);
    font-weight: 600;
    position: relative;
    cursor: default;
    transition: transform 0.3s;
}

.dash-item:hover {
    transform: translateX(5px);
    border-color: #0b5fb4;
}

.dash-connector {
    display: flex;
    justify-content: center;
    align-items: center;
}

.connector-svg {
    width: 100%;
    height: 300px;
    stroke: var(--accent-cyan);
    stroke-width: 2;
    fill: none;
    stroke-dasharray: 10;
    animation: dashScroll 20s linear infinite;
}

@keyframes dashScroll {
    to { stroke-dashoffset: -1000; }
}

/* =========================================================================
   SECTION 3: INTERACTIVE COACH SKELETON (Light Theme)
   ========================================================================= */
.skeleton-section {
    padding: 100px 0;
    background: #f1f5f9;
    overflow: hidden;
}

.skeleton-stage {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 600px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hotspot {
    position: absolute;
    width: 24px;
    height: 24px;
    background: var(--accent-cyan);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 0 0 0 rgba(31, 168, 223, 0.7);
    animation: pulseHotspot 2s infinite;
}

@keyframes pulseHotspot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(31, 168, 223, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(31, 168, 223, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(31, 168, 223, 0); }
}

.hotspot-panel {
    position: absolute;
    background: #0f172a;
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 280px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(10px);
    z-index: 20;
    pointer-events: none;
}

.hotspot:hover .hotspot-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50px);
}

/* =========================================================================
   SECTION 4: ENGINEERING CROSS SECTION CORRIDOR (Dark Theme)
   ========================================================================= */
.corridor-section {
    background: var(--dark-bg);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.corridor-wrapper {
    display: flex;
    width: 500vw; /* 5 panels */
    height: 70vh;
    min-height: 500px;
}

.corridor-panel {
    width: 100vw;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.corridor-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    width: 90%;
    align-items: center;
}

.cross-section-visual {
    width: 100%;
    height: 400px;
    border: 1px solid rgba(31, 168, 223, 0.3);
    border-radius: 12px;
    background: rgba(255,255,255,0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* =========================================================================
   SECTION 5: PASSENGER SYSTEMS ECOSYSTEM (Light Theme)
   ========================================================================= */
.ecosystem-section {
    padding: 120px 0;
    background: #ffffff;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.ecosystem-stage {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 800px;
    margin: 50px auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eco-center {
    width: 250px;
    height: 250px;
    background: var(--dark-bg);
    border-radius: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    border: 4px solid var(--accent-cyan);
}

.eco-orbit {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px dashed rgba(15, 23, 42, 0.1);
    animation: spinOrbit 40s linear infinite;
}

.eco-card {
    position: absolute;
    width: 200px;
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    text-align: center;
    transform-origin: center;
    /* Reverse spin to keep text upright */
    animation: reverseSpin 40s linear infinite;
}

/* Placement of orbiting cards */
.eco-card:nth-child(1) { top: 0%; left: 50%; margin-left: -100px; margin-top: -50px; }
.eco-card:nth-child(2) { top: 25%; left: 93%; margin-left: -100px; margin-top: -50px; }
.eco-card:nth-child(3) { top: 75%; left: 93%; margin-left: -100px; margin-top: -50px; }
.eco-card:nth-child(4) { top: 100%; left: 50%; margin-left: -100px; margin-top: -50px; }
.eco-card:nth-child(5) { top: 75%; left: 7%; margin-left: -100px; margin-top: -50px; }
.eco-card:nth-child(6) { top: 25%; left: 7%; margin-left: -100px; margin-top: -50px; }

@keyframes spinOrbit { 100% { transform: rotate(360deg); } }
@keyframes reverseSpin { 100% { transform: rotate(-360deg); } }

/* =========================================================================
   SECTION 6: ENGINEERING EVIDENCE BOARD (Light Theme)
   ========================================================================= */
.evidence-section {
    padding: 100px 0;
    background: #f8fafc;
}

.evidence-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.evidence-pin {
    background: #fff;
    padding: 30px;
    border-radius: 4px;
    box-shadow: 2px 5px 15px rgba(0,0,0,0.05);
    position: relative;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s;
    border-top: 15px solid var(--accent-cyan);
}

.evidence-pin:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 10px 20px 30px rgba(0,0,0,0.1);
    z-index: 5;
}

/* =========================================================================
   SECTION 7: MOBILE ENGINEERING MISSION MAP (Light Theme)
   ========================================================================= */
.mission-map {
    padding: 100px 0;
    background: #ffffff;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .coach-hero-grid { grid-template-columns: 1fr; }
    .dashboard-container { grid-template-columns: 1fr; }
    .dash-connector { display: none; }
    .corridor-wrapper { flex-direction: column; width: 100%; height: auto; }
    .corridor-panel { width: 100%; height: auto; padding: 60px 0; }
    .corridor-content { grid-template-columns: 1fr; }
    .ecosystem-stage { transform: scale(0.6); margin: -100px auto; }
}
