/* ══════════════════════════════════════════════════════════
   BICICLETAS MILAN — Maintenance Page
   Dark Workshop Theme · v1.0
══════════════════════════════════════════════════════════ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg:           #0d0d1c;
  --bg2:          #13132a;
  --card-bg:      rgba(22, 22, 44, 0.88);
  --orange:       #ff6b2b;
  --orange-dim:   rgba(255, 107, 43, 0.15);
  --orange-border:rgba(255, 107, 43, 0.28);
  --teal:         #00d4aa;
  --teal-dim:     rgba(0, 212, 170, 0.12);
  --teal-border:  rgba(0, 212, 170, 0.25);
  --red:          #e94560;
  --red-dim:      rgba(233, 69, 96, 0.12);
  --red-border:   rgba(233, 69, 96, 0.28);
  --yellow:       #ffd700;
  --text:         #f0f0ff;
  --text-muted:   #7a82a0;
  --text-dim:     #3c4060;
  --border:       rgba(255, 107, 43, 0.18);
  --glow-o:       0 0 24px rgba(255, 107, 43, 0.35);
  --glow-t:       0 0 24px rgba(0, 212, 170, 0.35);
  --glow-r:       0 0 24px rgba(233, 69, 96, 0.35);
}

html, body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  position: relative;
  line-height: 1.6;
}

/* ── Background particles canvas ── */
#particles-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* ══════════════════════════════════
   HEADER
══════════════════════════════════ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 28px;
  background: rgba(10, 10, 22, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-svg {
  width: 58px;
  height: 40px;
  filter: drop-shadow(0 0 10px rgba(255,107,43,0.55));
}

.logo-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-brand {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.logo-name {
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.header-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--orange-dim);
  border: 1px solid var(--orange-border);
  border-radius: 20px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  animation: blink 1.4s ease-in-out infinite;
}

/* ══════════════════════════════════
   HERO
══════════════════════════════════ */
.hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 36px 28px 40px;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 36px;
  align-items: center;
}

/* Workshop SVG scene */
.scene-wrap {
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px var(--border),
    0 24px 64px rgba(0,0,0,0.55),
    0 0 60px rgba(255,107,43,0.06);
  position: relative;
}

.scene-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(13,13,28,0.4) 100%);
  pointer-events: none;
  z-index: 2;
}

#workshop-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ── SVG Animations ── */

/* Spinning spokes — forward */
.spokes-spin {
  animation: spin 5s linear infinite;
}

/* Spinning spokes — reverse */
.spokes-spin-rev {
  animation: spin 5s linear infinite reverse;
}

/* Mechanic right-arm work motion */
.arm-work {
  transform-box: fill-box;
  transform-origin: 80px 134px;
  animation: arm-work 2s ease-in-out infinite;
}

/* Overhead lamp flicker */
.lamp-bulb {
  animation: flicker 10s ease-in-out infinite;
}
.lamp-cone {
  animation: flicker-cone 10s ease-in-out infinite;
}

/* ── Keyframes ── */

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes arm-work {
  0%, 100% { transform: rotate(0deg);   }
  30%       { transform: rotate(-10deg) translate(-2px,-4px); }
  65%       { transform: rotate( 9deg)  translate( 2px, 3px); }
}

@keyframes flicker {
  0%,88%,100%       { opacity: 1;   }
  90%               { opacity: 0.65; }
  92%               { opacity: 1;   }
  94%               { opacity: 0.38; }
  96%               { opacity: 1;   }
}

@keyframes flicker-cone {
  0%,88%,100%       { opacity: 0.035; }
  90%               { opacity: 0.014; }
  92%               { opacity: 0.035; }
  94%               { opacity: 0.008; }
  96%               { opacity: 0.035; }
}

@keyframes blink {
  0%,100% { opacity: 1; transform: scale(1);   }
  50%     { opacity: 0.4; transform: scale(0.8); }
}

/* ══════════════════════════════════
   HERO MESSAGE
══════════════════════════════════ */
.hero-msg {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.maint-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--orange-dim);
  border: 1px solid var(--orange-border);
  border-radius: 24px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  width: fit-content;
  animation: badge-pulse 3.2s ease-in-out infinite;
}

.badge-icon {
  display: inline-block;
  animation: wiggle 2.4s ease-in-out infinite;
}

.main-title {
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.highlight {
  color: var(--orange);
  background: linear-gradient(90deg, #ff6b2b, #ffd700, #ff6b2b);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

.subtitle {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.75;
}

/* Status ticker */
.status-ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  background: var(--teal-dim);
  border: 1px solid var(--teal-border);
  border-radius: 9px;
  font-family: 'Courier New', monospace;
  font-size: 12.5px;
  color: var(--teal);
  min-height: 42px;
}

.ticker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
  animation: blink 1.1s ease-in-out infinite;
}

#status-text {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* Progress section */
.progress-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

#prog-pct {
  color: var(--orange);
  font-size: 14px;
  font-weight: 900;
}

.prog-track {
  height: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}

.prog-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff6b2b 0%, #ffd700 100%);
  border-radius: 5px;
  position: relative;
  transition: width 0.4s ease;
}

.prog-fill::after {
  content: '';
  position: absolute;
  right: -2px;
  top: 0;
  width: 24px;
  height: 100%;
  background: rgba(255,255,255,0.45);
  border-radius: 3px;
  animation: prog-glint 1.6s ease-in-out infinite;
}

.prog-steps {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.step {
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-dim);
  background: rgba(255,255,255,0.02);
  transition: all 0.4s ease;
  white-space: nowrap;
}

.step.done {
  background: var(--teal-dim);
  border-color: var(--teal-border);
  color: var(--teal);
}

.step.active {
  background: var(--orange-dim);
  border-color: var(--orange-border);
  color: var(--orange);
  animation: step-glow 2s ease-in-out infinite;
}

/* Contact box */
.contact-box {
  padding: 16px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.contact-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  font-weight: 600;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12.5px;
  padding: 7px 13px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 7px;
  transition: all 0.22s ease;
}

.contact-link:hover {
  background: var(--orange-dim);
  border-color: var(--orange-border);
  color: var(--text);
  transform: translateY(-2px);
}

/* ══════════════════════════════════
   VEHICLES SECTION
══════════════════════════════════ */
.vehicles-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 36px 28px 48px;
  border-top: 1px solid var(--border);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 28px;
  justify-content: center;
}

.title-line {
  flex: 1;
  max-width: 240px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--orange-border));
}

.title-line-r {
  background: linear-gradient(90deg, var(--orange-border), transparent);
}

.vehicles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
}

/* Vehicle card */
.vehicle-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 22px 22px;
  overflow: hidden;
  cursor: default;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.vehicle-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,107,43,0.45);
  box-shadow: var(--glow-o), 0 12px 40px rgba(0,0,0,0.4);
}

/* Shine sweep on hover */
.card-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.06) 50%, transparent 60%);
  pointer-events: none;
  transition: left 0.5s ease;
}

.vehicle-card:hover .card-shine {
  left: 160%;
}

.vehicle-svg-wrap {
  height: 138px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.v-svg {
  width: 100%;
  max-width: 190px;
  height: auto;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.5));
}

.card-body h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 7px;
  letter-spacing: -0.01em;
}

.card-body p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.card-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--orange-dim);
  border: 1px solid var(--orange-border);
  color: var(--orange);
}

.card-status.teal {
  background: var(--teal-dim);
  border-color: var(--teal-border);
  color: var(--teal);
}

.card-status.red {
  background: var(--red-dim);
  border-color: var(--red-border);
  color: var(--red);
}

.status-dot-anim {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  animation: blink 1.5s ease-in-out infinite;
}

.status-dot-anim.teal-dot  { background: var(--teal); }
.status-dot-anim.red-dot   { background: var(--red);  }

/* ══════════════════════════════════
   FOOTER
══════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 28px;
  background: rgba(0,0,0,0.28);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-logo-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-brand {
  font-size: 15px;
  font-weight: 900;
  color: var(--text);
}

.footer-tag {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.footer-msg {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

.footer-wrench {
  display: inline-block;
  animation: wiggle 2.8s ease-in-out infinite;
}

.footer-copy {
  font-size: 11px;
  color: var(--text-dim);
}

/* ══════════════════════════════════
   KEYFRAMES (shared / global)
══════════════════════════════════ */

@keyframes shimmer {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: none; }
  50%      { box-shadow: 0 0 0 6px rgba(255,107,43,0); }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg);   }
  25%      { transform: rotate(-18deg); }
  75%      { transform: rotate(18deg);  }
}

@keyframes prog-glint {
  0%, 100% { opacity: 0.45; }
  50%      { opacity: 0.9;  }
}

@keyframes step-glow {
  0%, 100% { box-shadow: none; }
  50%      { box-shadow: 0 0 8px rgba(255,107,43,0.45); }
}

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 24px 20px 32px;
  }
}

@media (max-width: 600px) {
  .hero          { padding: 20px 16px 28px; gap: 24px; }
  .header        { padding: 12px 16px; }
  .site-footer   { padding: 20px 16px; }
  .vehicles-section { padding: 28px 16px 36px; }
  .main-title    { font-size: 28px; }
  .contact-links { flex-direction: column; }
  .footer-inner  { flex-direction: column; text-align: center; }
  .prog-steps    { gap: 4px; }
  .step          { font-size: 9px; padding: 2px 7px; }
}
