/* CSS variables for engineering theme design tokens */
:root {
  --bg-primary: #121315;
  --bg-secondary: #1a1c1f;
  --bg-card: rgba(26, 28, 31, 0.65);
  
  --border-color: rgba(255, 255, 255, 0.07);
  --border-active: rgba(255, 255, 255, 0.15);
  --accent-color: #e2e8f0;
  --accent-muted: #94a3b8;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #64748b;
  
  --font-tech: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --grid-color: rgba(255, 255, 255, 0.02);
  --grid-sub: rgba(255, 255, 255, 0.007);
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Google Fonts Imports */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* Technical Grid Background */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
  background-image: 
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px),
    linear-gradient(var(--grid-sub) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-sub) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 20px 20px, 20px 20px;
  background-position: center center;
}

/* Subtle Glowing Orb in Background */
.bg-glow {
  position: fixed;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
  z-index: 1;
}

/* Main Container Layout */
header {
  position: relative;
  z-index: 10;
  padding: 40px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.logo-container {
  display: flex;
  flex-direction: column;
}

.logo {
  font-family: var(--font-tech);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-main);
  text-transform: uppercase;
}

.logo-sub {
  font-family: var(--font-tech);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--text-dark);
  text-transform: uppercase;
  margin-top: 4px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 4px;
  font-family: var(--font-tech);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.status-dot {
  width: 6px;
  height: 6px;
  background-color: var(--text-main);
  border-radius: 50%;
  animation: pulse-glow 2s infinite ease-in-out;
}

main {
  position: relative;
  z-index: 10;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

/* Technical Card with Crosshairs */
.maintenance-card {
  position: relative;
  background-color: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 680px;
  padding: 50px 60px;
  border-radius: 4px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Technical Corner Marks (Crosshairs) */
.maintenance-card::before,
.maintenance-card::after,
.card-corners::before,
.card-corners::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
}

/* Top-Left Corner */
.maintenance-card::before {
  top: -8px;
  left: -8px;
  border-top: 2px solid var(--border-active);
  border-left: 2px solid var(--border-active);
}

/* Top-Right Corner */
.maintenance-card::after {
  top: -8px;
  right: -8px;
  border-top: 2px solid var(--border-active);
  border-right: 2px solid var(--border-active);
}

/* Bottom-Left Corner */
.card-corners::before {
  bottom: -8px;
  left: -8px;
  border-bottom: 2px solid var(--border-active);
  border-left: 2px solid var(--border-active);
}

/* Bottom-Right Corner */
.card-corners::after {
  bottom: -8px;
  right: -8px;
  border-bottom: 2px solid var(--border-active);
  border-right: 2px solid var(--border-active);
}

/* Technical details line indicator */
.card-header-line {
  position: absolute;
  top: 0;
  left: 30px;
  right: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-active), transparent);
}

/* Card Content Styling */
.card-title {
  font-family: var(--font-tech);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  color: var(--text-main);
  text-transform: uppercase;
}

.card-subtitle {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 30px;
}

/* Divider Line with dynamic details */
.divider {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.divider::before {
  content: '';
  flex-grow: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-color), rgba(255, 255, 255, 0.02));
}

.divider-tag {
  font-family: var(--font-tech);
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--text-dark);
  text-transform: uppercase;
  padding: 0 15px;
}

.divider::after {
  content: '';
  flex-grow: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.02), var(--border-color));
}

/* Technical Progress Graphic Styling */
.progress-container {
  width: 100%;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-color);
  padding: 20px 24px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-tech);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.progress-title {
  color: var(--text-muted);
}

.progress-value {
  color: var(--text-main);
  font-weight: 500;
}

.progress-bar {
  background: rgba(255, 255, 255, 0.03);
  height: 8px;
  border: 1px solid var(--border-color);
  border-radius: 2px;
  padding: 1px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 84%;
  background: linear-gradient(90deg, var(--text-dark), var(--text-main));
  border-radius: 1px;
  transform-origin: left center;
  animation: fill-grow 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.progress-footer-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-tech);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--text-dark);
}

/* Footer Section */
footer {
  position: relative;
  z-index: 10;
  padding: 30px 8%;
  display: flex;
  justify-content: center; /* Center the copyright text */
  align-items: center;
  border-top: 1px solid var(--border-color);
  font-size: 12px;
  color: var(--text-dark);
  font-family: var(--font-tech);
  letter-spacing: 0.05em;
}

/* Animations */
@keyframes pulse-glow {
  0%, 100% {
    transform: scale(1);
    opacity: 0.4;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
    box-shadow: 0 0 6px 2px rgba(255, 255, 255, 0.3);
  }
}

@keyframes fill-grow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* Responsive Styling */
@media (max-width: 768px) {
  header {
    padding: 30px 5%;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  
  .status-indicator {
    align-self: flex-start;
  }
  
  main {
    padding: 20px;
  }
  
  .maintenance-card {
    padding: 35px 30px;
  }
  
  .card-title {
    font-size: 26px;
  }
  
  footer {
    padding: 30px 5%;
  }
}
