/* ============================================================
   AN.ENERGY — Industrial SCADA Dashboard Stylesheet
   Aesthetic: Tesla × Bloomberg Terminal × Offshore Control Room
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&family=Share+Tech+Mono&family=Orbitron:wght@400;600;700;900&family=Inter:wght@300;400;500&display=swap');

:root {
  --bg-void:        #020508;
  --bg-deep:        #050d14;
  --bg-panel:       rgba(6, 20, 35, 0.85);
  --bg-panel-hover: rgba(8, 28, 50, 0.95);
  --bg-glass:       rgba(0, 180, 255, 0.04);
  --bg-glass-strong:rgba(0, 180, 255, 0.08);

  --cyan:           #00e5ff;
  --cyan-dim:       #00b8cc;
  --cyan-glow:      rgba(0,229,255,0.25);
  --green:          #00ff88;
  --green-dim:      #00cc6a;
  --green-glow:     rgba(0,255,136,0.2);
  --amber:          #ffaa00;
  --amber-glow:     rgba(255,170,0,0.25);
  --red:            #ff3355;
  --red-glow:       rgba(255,51,85,0.25);
  --blue:           #0066ff;
  --blue-bright:    #44aaff;
  --purple:         #9b59ff;

  --text-primary:   #e8f4ff;
  --text-secondary: #7ab3d0;
  --text-muted:     #3a6080;
  --text-mono:      #00e5ff;

  --border:         rgba(0,229,255,0.12);
  --border-bright:  rgba(0,229,255,0.35);
  --border-glow:    rgba(0,229,255,0.6);

  --font-display:   'Orbitron', sans-serif;
  --font-ui:        'Rajdhani', sans-serif;
  --font-mono:      'Share Tech Mono', monospace;
  --font-body:      'Inter', sans-serif;

  --radius-panel:   2px;
  --transition:     all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-panel:   0 0 40px rgba(0,0,0,0.8), inset 0 0 0 1px var(--border);
  --shadow-glow:    0 0 20px var(--cyan-glow), 0 0 40px rgba(0,229,255,0.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: crosshair;
}

/* Scanline overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,229,255,0.015) 2px,
    rgba(0,229,255,0.015) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* ==============================
   SCROLLBAR
============================== */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--cyan-dim); border-radius: 2px; }

/* ==============================
   NAVBAR
============================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  background: rgba(2,5,8,0.95);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 1000;
  backdrop-filter: blur(20px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  border: 1px solid var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 12px var(--cyan-glow);
}

.nav-logo-icon::before {
  content: '⚡';
  font-size: 16px;
  color: var(--cyan);
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--cyan);
  text-shadow: 0 0 20px var(--cyan-glow);
}

.nav-logo-text span {
  color: var(--text-secondary);
  font-weight: 400;
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.nav-status-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green-glow);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan-dim);
}

.btn-scottishpower {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: transparent;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.btn-scottishpower::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cyan);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.btn-scottishpower:hover::before { transform: translateX(0); }
.btn-scottishpower:hover { color: var(--bg-void); }
.btn-scottishpower span { position: relative; z-index: 1; }

/* ==============================
   MAIN LAYOUT
============================== */
.main-wrapper {
  display: flex;
  margin-top: 56px;
  min-height: calc(100vh - 56px);
}

/* ==============================
   SIMULATION SIDEBAR
============================== */
.sim-sidebar {
  width: 240px;
  min-width: 240px;
  background: rgba(3, 10, 18, 0.98);
  border-right: 1px solid var(--border);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  position: sticky;
  top: 56px;
  height: calc(100vh - 56px);
}

.sidebar-title {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--cyan);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-title::before {
  content: '◈';
  font-size: 12px;
}

.sim-control {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sim-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sim-value {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
  font-weight: 600;
}

.sim-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  background: var(--bg-glass-strong);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.sim-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: var(--cyan);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px var(--cyan-glow);
  transition: transform 0.2s;
}

.sim-slider::-webkit-slider-thumb:hover { transform: scale(1.3); }

.sim-slider::-webkit-slider-runnable-track {
  background: linear-gradient(to right, var(--cyan) var(--pct, 50%), var(--bg-glass-strong) var(--pct, 50%));
  height: 3px;
  border-radius: 2px;
}

.sim-divider {
  height: 1px;
  background: var(--border);
}

.turbine-status-mini {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.turbine-mini-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-secondary);
}

.turbine-mini-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-green { background: var(--green); box-shadow: 0 0 6px var(--green-glow); }
.status-amber { background: var(--amber); box-shadow: 0 0 6px var(--amber-glow); }
.status-red   { background: var(--red);   box-shadow: 0 0 6px var(--red-glow); }

.sidebar-metric {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
}

.sidebar-metric-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.sidebar-metric-value {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--green);
  font-weight: 600;
  text-shadow: 0 0 12px var(--green-glow);
}

.sidebar-metric-unit {
  font-size: 10px;
  color: var(--text-muted);
}

/* ==============================
   DASHBOARD MAIN CONTENT
============================== */
.dashboard-content {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  background: var(--bg-void);
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(0,100,180,0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(0,229,255,0.03) 0%, transparent 50%);
}

/* ==============================
   PANEL BASE
============================== */
.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  padding: 16px;
  position: relative;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 40px; height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan-glow);
}

.panel:hover {
  border-color: var(--border-bright);
  box-shadow: var(--shadow-glow);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.panel-title {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-title .icon {
  font-size: 12px;
  opacity: 0.8;
}

.panel-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  padding: 2px 8px;
  border: 1px solid var(--green);
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.panel-badge.warning {
  border-color: var(--amber);
  color: var(--amber);
}

.panel-badge.alert {
  border-color: var(--red);
  color: var(--red);
  animation: flash-badge 1.5s infinite;
}

@keyframes flash-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ==============================
   DASHBOARD GRID ROWS
============================== */
.dash-row {
  display: grid;
  gap: 16px;
}

.dash-row-3 { grid-template-columns: repeat(3, 1fr); }
.dash-row-2 { grid-template-columns: repeat(2, 1fr); }
.dash-row-4 { grid-template-columns: repeat(4, 1fr); }
.dash-row-1-2 { grid-template-columns: 1fr 2fr; }
.dash-row-2-1 { grid-template-columns: 2fr 1fr; }
.dash-row-1-1-2 { grid-template-columns: 1fr 1fr 2fr; }

/* ==============================
   FLEET MAP
============================== */
.fleet-map {
  position: relative;
  height: 260px;
  background: radial-gradient(ellipse at 50% 60%, rgba(0,40,80,0.6) 0%, rgba(2,5,8,0.8) 100%);
  border: 1px solid var(--border);
  overflow: hidden;
}

.fleet-map-canvas {
  width: 100%;
  height: 100%;
}

.fleet-map-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.map-grid-line {
  position: absolute;
  background: rgba(0,229,255,0.04);
}

/* ==============================
   GAUGE
============================== */
.gauge-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.gauge-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
}

/* ==============================
   METRIC CARDS
============================== */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.metric-card {
  padding: 10px 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: var(--transition);
}

.metric-card:hover {
  border-color: var(--border-bright);
  background: var(--bg-glass-strong);
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
}

.metric-value.cyan  { color: var(--cyan);  text-shadow: 0 0 15px var(--cyan-glow); }
.metric-value.green { color: var(--green); text-shadow: 0 0 15px var(--green-glow); }
.metric-value.amber { color: var(--amber); text-shadow: 0 0 15px var(--amber-glow); }
.metric-value.red   { color: var(--red);   text-shadow: 0 0 15px var(--red-glow); }

.metric-unit {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}

.metric-delta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--green);
}

.metric-delta.neg { color: var(--red); }

/* ==============================
   CHART WRAPPERS
============================== */
.chart-wrap {
  position: relative;
  width: 100%;
}

.chart-wrap canvas {
  display: block;
}

.chart-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

/* ==============================
   DIGITAL TWIN SECTION
============================== */
.digital-twin-section {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 16px;
  min-height: 500px;
}

#twin-canvas {
  width: 100%;
  height: 480px;
  background: radial-gradient(ellipse at 50% 50%, rgba(0,30,60,0.8) 0%, var(--bg-void) 100%);
  cursor: grab;
  display: block;
}

#twin-canvas:active { cursor: grabbing; }

.twin-info-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.component-health {
  padding: 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.component-health:hover {
  border-color: var(--cyan);
  background: var(--bg-glass-strong);
}

.component-health.active {
  border-color: var(--cyan);
  box-shadow: 0 0 15px var(--cyan-glow);
}

.ch-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.ch-name {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  text-transform: uppercase;
}

.ch-score {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
}

.ch-bar-track {
  height: 4px;
  background: rgba(0,229,255,0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 6px;
}

.ch-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 1s ease;
  box-shadow: 0 0 6px currentColor;
}

.ch-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.ch-detail {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
}

.ch-detail span {
  color: var(--text-secondary);
  display: block;
}

.twin-tooltip {
  position: absolute;
  background: rgba(3,10,18,0.96);
  border: 1px solid var(--cyan);
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-primary);
  pointer-events: none;
  z-index: 100;
  box-shadow: 0 0 20px var(--cyan-glow);
  display: none;
  min-width: 180px;
}

.twin-tooltip.visible { display: block; }
.twin-tooltip-title {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
}

/* ==============================
   FAULT DETECTION
============================== */
.fault-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 200px;
  overflow-y: auto;
}

.fault-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-secondary);
  animation: fault-enter 0.3s ease;
}

@keyframes fault-enter {
  from { transform: translateX(-10px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.fault-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.fault-code {
  color: var(--cyan);
  font-weight: 600;
  min-width: 60px;
}

.fault-time {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 9px;
}

/* ==============================
   MAINTENANCE TIMELINE
============================== */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 24px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
}

.timeline-item {
  display: flex;
  gap: 16px;
  padding: 10px 0;
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: -20px;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan-glow);
}

.timeline-dot.amber { background: var(--amber); box-shadow: 0 0 8px var(--amber-glow); }
.timeline-dot.green { background: var(--green); box-shadow: 0 0 8px var(--green-glow); }

.timeline-content {
  flex: 1;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.timeline-event {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text-primary);
  font-weight: 600;
}

.timeline-detail {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}

/* ==============================
   FUNDING SECTION
============================== */
.funding-section {
  padding: 80px 40px;
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.funding-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(0,100,180,0.08) 0%, transparent 70%);
}

.funding-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--cyan);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 8px;
}

.funding-subtitle {
  font-family: var(--font-ui);
  font-size: 36px;
  font-weight: 600;
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 48px;
}

.funding-amount {
  color: var(--cyan);
  text-shadow: 0 0 30px var(--cyan-glow);
}

.funding-bar-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.funding-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.funding-raised {
  color: var(--green);
  font-size: 18px;
  font-weight: 700;
}

.funding-goal {
  color: var(--text-muted);
}

.funding-bar-track {
  height: 24px;
  background: var(--bg-glass-strong);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.funding-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--green));
  width: 1%;
  transition: width 1s cubic-bezier(0.2, 0, 0.1, 1);
  position: relative;
  box-shadow: 0 0 20px var(--cyan-glow);
}

.funding-bar-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 20px,
    rgba(255,255,255,0.08) 20px,
    rgba(255,255,255,0.08) 22px
  );
  animation: flow-stripes 1s linear infinite;
}

@keyframes flow-stripes {
  from { background-position: 0 0; }
  to { background-position: 22px 0; }
}

.funding-wave {
  position: absolute;
  top: 0; right: -8px;
  height: 100%;
  width: 16px;
  overflow: hidden;
}

.funding-pct {
  text-align: center;
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 900;
  color: var(--cyan);
  text-shadow: 0 0 40px var(--cyan-glow);
  margin-top: 20px;
  opacity: 0;
  animation: fade-up 1s 1s forwards;
}

@keyframes fade-up {
  to { opacity: 1; transform: translateY(0); }
  from { opacity: 0; transform: translateY(20px); }
}

.funding-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 40px;
}

.funding-stat {
  text-align: center;
}

.funding-stat-value {
  font-family: var(--font-mono);
  font-size: 28px;
  color: var(--green);
  font-weight: 700;
  text-shadow: 0 0 15px var(--green-glow);
}

.funding-stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* ==============================
   TEAM SECTION
============================== */
.team-section {
  padding: 80px 40px;
  text-align: center;
}

.section-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-heading {
  font-family: var(--font-ui);
  font-size: 32px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 48px;
}

.team-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 160px;
  transition: var(--transition);
}

.team-card:hover { transform: translateY(-8px); }

.team-avatar {
  width: 80px;
  height: 80px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  color: var(--cyan);
  background: var(--bg-glass);
  box-shadow: 0 0 20px var(--cyan-glow), inset 0 0 20px rgba(0,229,255,0.05);
  position: relative;
  overflow: hidden;
}

.team-avatar::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 270deg, var(--cyan) 360deg);
  animation: spin-border 3s linear infinite;
  opacity: 0.3;
}

@keyframes spin-border {
  to { transform: rotate(360deg); }
}

.team-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-primary);
}

.team-role {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ==============================
   CONTACT SECTION
============================== */
.contact-section {
  padding: 80px 40px;
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
}

.contact-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-email {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid var(--border-bright);
  padding-bottom: 4px;
  margin: 20px 0;
  transition: var(--transition);
}

.contact-email:hover {
  color: var(--green);
  border-color: var(--green);
  text-shadow: 0 0 20px var(--green-glow);
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.contact-link {
  padding: 10px 24px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: var(--transition);
}

.contact-link:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ==============================
   FOOTER
============================== */
.footer {
  padding: 20px 40px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}

/* ==============================
   SECTION HEADER BANNER
============================== */
.section-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--border);
}

.section-banner-title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-banner-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--border-bright), transparent);
}

.section-banner-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  padding: 3px 10px;
  border: 1px solid var(--border);
}

/* ==============================
   WIND ROSE CHART PLACEHOLDER
============================== */
.wind-rose {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* ==============================
   RESPONSIVE
============================== */
@media (max-width: 1400px) {
  .dash-row-4 { grid-template-columns: repeat(2, 1fr); }
  .dash-row-1-1-2 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1100px) {
  .sim-sidebar { width: 200px; min-width: 200px; }
  .dash-row-3 { grid-template-columns: repeat(2, 1fr); }
  .digital-twin-section { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .sim-sidebar { display: none; }
  .dash-row-2, .dash-row-3, .dash-row-4 { grid-template-columns: 1fr; }
  .dash-row-1-2, .dash-row-2-1, .dash-row-1-1-2 { grid-template-columns: 1fr; }
}

/* ==============================
   SCOTTISHPOWER PAGE
============================== */
.sp-body {
  font-family: var(--font-body);
  background: var(--bg-void);
}

.sp-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  background: rgba(2,5,8,0.98);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 1000;
  backdrop-filter: blur(20px);
}

.sp-slide {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 60px 60px;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.sp-slide-inner {
  max-width: 1100px;
  width: 100%;
}

.sp-slide-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}

.sp-slide-tag {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.sp-slide-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.sp-slide-title em {
  color: var(--cyan);
  font-style: normal;
  text-shadow: 0 0 30px var(--cyan-glow);
}

.sp-slide-body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 700px;
}

.sp-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.sp-card {
  padding: 24px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.sp-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.sp-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.sp-card-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.sp-card-title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.sp-card-text {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  font-weight: 300;
}

.sp-stat-big {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 80px);
  font-weight: 900;
  color: var(--cyan);
  text-shadow: 0 0 40px var(--cyan-glow);
  line-height: 1;
  display: block;
}

.sp-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.sp-stat-row {
  display: flex;
  gap: 40px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.sp-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sp-stat-val {
  font-family: var(--font-mono);
  font-size: 32px;
  color: var(--green);
  font-weight: 700;
  text-shadow: 0 0 15px var(--green-glow);
}

.sp-stat-lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.sp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.sp-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.6;
}

.sp-list li::before {
  content: '▸';
  color: var(--cyan);
  font-size: 12px;
  margin-top: 3px;
  flex-shrink: 0;
}

.sp-hero {
  text-align: center;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(0,100,200,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(0,229,255,0.05) 0%, transparent 50%);
}

.sp-hero-logo {
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 900;
  color: var(--cyan);
  text-shadow: 0 0 60px var(--cyan-glow), 0 0 100px rgba(0,229,255,0.2);
  margin-bottom: 8px;
  animation: hero-glow 4s ease-in-out infinite;
}

@keyframes hero-glow {
  0%, 100% { text-shadow: 0 0 60px var(--cyan-glow), 0 0 100px rgba(0,229,255,0.2); }
  50% { text-shadow: 0 0 80px rgba(0,229,255,0.6), 0 0 140px rgba(0,229,255,0.3); }
}

.sp-hero-tagline {
  font-family: var(--font-ui);
  font-size: 20px;
  font-weight: 300;
  color: var(--text-secondary);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 40px;
}

.sp-hero-sub {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 48px;
  font-weight: 300;
  line-height: 1.8;
}

.sp-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  background: transparent;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-decoration: none;
  text-transform: uppercase;
  transition: var(--transition);
  cursor: pointer;
}

.sp-cta:hover {
  background: var(--cyan);
  color: var(--bg-void);
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

.scroll-indicator::after {
  content: '↓';
  font-size: 16px;
  color: var(--cyan);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

.sp-progress {
  position: fixed;
  top: 56px; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--green));
  width: 0%;
  transition: width 0.1s linear;
  z-index: 999;
  box-shadow: 0 0 8px var(--cyan-glow);
}

.sp-nav-dots {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.sp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.sp-dot.active {
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 8px var(--cyan-glow);
}

/* ==============================
   ANIMATIONS
============================== */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==============================
   BLINK EFFECT
============================== */
.blink {
  animation: blink 1s step-end infinite;
}

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

/* ==============================
   SECTION HEADER
============================== */
.dash-section-header {
  padding: 8px 0 0;
  margin: 4px 0;
}

.dash-section-label {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ==============================
   ALERT TICKER
============================== */
.alert-ticker {
  background: rgba(255,51,85,0.08);
  border: 1px solid rgba(255,51,85,0.25);
  padding: 6px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.ticker-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-content {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-secondary);
  white-space: nowrap;
  animation: ticker-scroll 30s linear infinite;
}

@keyframes ticker-scroll {
  from { transform: translateX(100%); }
  to { transform: translateX(-200%); }
}

/* Energy flow animation */
@keyframes energy-pulse {
  0% { opacity: 0.3; transform: scaleX(0.98); }
  50% { opacity: 1; transform: scaleX(1); }
  100% { opacity: 0.3; transform: scaleX(0.98); }
}

/* ============================================================
   INDEX HTML — PREMIUM CONTACT SECTION
============================================================ */
.contact-premium-section {
  padding: 80px 40px;
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.contact-premium-container {
  max-width: 1100px;
  margin: 0 auto;
}

.contact-premium-title {
  font-family: 'Orbitron', sans-serif; /* Blending with your dashboard font */
  font-size: 2.5rem;
  color: #f8f8f8;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.contact-premium-subtitle {
  font-size: 1.1rem;
  color: #d0d4de;
  max-width: 600px;
  margin: 0 auto 50px;
  line-height: 1.6;
}

.contact-premium-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.contact-premium-card {
  background: rgba(41, 41, 67, 0.08); 
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 10px 30px -10px rgba(252, 252, 252, 0.08);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(15, 118, 110, 0.05);
}

.contact-premium-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(203, 235, 232, 0.15);
}

.contact-icon {
  width: 56px;
  height: 56px;
  background: rgba(15, 118, 110, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.contact-icon svg {
  width: 26px;
  height: 26px;
  fill: #ffffff;
}

.contact-premium-card h3 {
  font-size: 1.25rem;
  color: #ffffff;
  font-weight: 550;
  margin-bottom: 12px;
  font-family: 'Inter', sans-serif;
}

.contact-premium-card p {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 30px;
  flex-grow: 1;
}

.btn-contact-apple {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgb(0, 0, 0);
  text-decoration: none;
  padding: 12px 28px;
  background: linear-gradient(135deg, #ffffff, #0d9488);
  border-radius: 100px;
  box-shadow: 0 8px 20px -6px rgba(15, 118, 110, 0.4);
  transition: all 0.3s ease;
  width: 100%;
}

.btn-contact-apple:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -6px rgba(15, 118, 110, 0.6);
  background: linear-gradient(135deg, #0d9488, #0b7a70);
  color: rgb(0, 0, 0);
}

/* Premium Footer */
.footer-premium {
  /* background-color: #ffffff; */
  padding: 30px 5%;
  text-align: center;
  border-top: 1px solid rgba(15, 118, 110, 0.1);
  font-family: 'Inter', sans-serif;
  color: #6b7280;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}