@import url('https://fonts.cdnfonts.com/css/thegoodmonolith');

@font-face {
  font-family: 'OffBit-101';
  src: url('./Assets/OffBit-101.otf') format('opentype');
  font-display: swap;
}

* {
  box-sizing: border-box;
}

/* KUMA Robot 3D Environment Styles */

body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #e1e4de;
  font-family: 'thegoodmonolith', sans-serif;
}

#loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin-top: 54px; /* Push down to avoid banner */
  color: #ff4000;
  font-size: 20px;
  font-weight: 600;
  z-index: 100;
  text-align: center;
  background: rgba(255, 254, 254, 0.658);
  padding: 25px 35px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Remove old title and info styling - replace with LCD banner */
#title {
  display: none; /* Hide the large title */
}

#info {
  display: none; /* Hide old controls */
}

/* Clean scrolling banner at top */
#lcd-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 280%;
  height: 280px;
  background: transparent; /* No background */
  overflow: hidden;
  z-index: 1000;
}

#lcd-text {
  display: inline-block;
  white-space: nowrap;
  line-height: 280px;
  font-family: 'OffBit-101';
  font-size: 262px; /* Much bigger */
  font-weight: bold;
  color: #ff4500; /* Orange-red color */
  animation: scroll-banner 55s linear infinite;
}

/* Pause animation on hover for readability */
#lcd-banner:hover #lcd-text {
  animation-play-state: paused;
}

/* Scrolling animation */
@keyframes scroll-banner {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

canvas {
  display: block;
  cursor: grab;
  position: relative;
  z-index: 10; /* Above the title text */
}

canvas:active {
  cursor: grabbing;
}

/* Loading animation */
@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

#loading {
  animation: pulse 2s infinite;
}

/* Responsive design */
@media (max-width: 768px) {
  #lcd-banner {
    height: 60px; /* Shorter on mobile */
  }
  
  #lcd-text {
    line-height: 60px;
    font-size: 24px; /* Smaller but still big on mobile */
    animation: scroll-banner 20s linear infinite; /* Slightly faster */
  }
  
  #loading {
    font-size: 18px;
    padding: 20px 25px;
    margin-top: 60px; /* Push loading message below banner on mobile */
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  body {
    font-weight: 400;
  }
} */
  
  canvas {
    display: block;
    cursor: grab;
    position: relative;
    z-index: 10; /* Above the title text */
  }
  
  canvas:active {
    cursor: grabbing;
  }
  
  /* Loading animation */
  @keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
  }
  
  #loading {
    animation: pulse 2s infinite;
  }
  
  /* Responsive design */
  @media (max-width: 768px) {
    #lcd-banner {
      height: 60px; /* Shorter on mobile */
    }
    
    #lcd-text {
      line-height: 60px;
      font-size: 24px; /* Smaller but still big on mobile */
      animation: scroll-banner 20s linear infinite; /* Slightly faster */
    }
    
    #loading {
      font-size: 18px;
      padding: 20px 25px;
      margin-top: 60px; /* Push loading message below banner on mobile */
    }
  }
  
  /* High DPI displays */
  @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
      font-weight: 400;
    }
  }
  /* Enhanced Modal Styles for 3D Navigation Integration */

/* Modal Base Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  overflow-x: hidden;
}

.modal.show {
  display: flex !important;
  opacity: 1;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Modal Content */
.modal-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  margin: auto;
  border-radius: 16px;
  box-shadow: 
      0 25px 50px -12px rgba(0, 0, 0, 0.25),
      0 0 0 1px rgba(255, 255, 255, 0.05);
  max-width: 600px;
  width: 90%;
  max-height: 85vh;
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 69, 0, 0.1);
}

.modal.show .modal-content {
  transform: scale(1) translateY(0);
}

/* Large Modal Variant */
.large-modal {
  max-width: 900px;
  width: 95%;
}

/* Modal Header */
.modal-header {
  padding: 24px 32px 16px 32px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #ff4500 0%, #ff6b35 100%);
  color: white;
  position: relative;
}

.modal-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
  pointer-events: none;
}

.modal-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}

.modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  position: relative;
  z-index: 1;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* Modal Body */
.modal-body {
  padding: 32px;
  overflow-y: auto;
  max-height: calc(85vh - 120px);
}

.modal-body h4 {
  color: #ff4500;
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 20px;
  font-weight: 600;
}

.modal-body p {
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 16px;
}

.modal-body ul {
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 16px;
  padding-left: 20px;
}

.modal-body li {
  margin-bottom: 8px;
}

/* Feature Showcase */
.feature-showcase {
  margin-bottom: 32px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.feature-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.15);
  border-color: #ff4500;
}

.feature-card h4 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 18px;
  color: #1f2937;
}

.feature-card p {
  margin-bottom: 16px;
  font-size: 14px;
}

/* Specifications Table */
.spec-table {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.spec-category {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.spec-category h4 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 18px;
  color: #1f2937;
  border-bottom: 2px solid #ff4500;
  padding-bottom: 8px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-label {
  font-weight: 500;
  color: #374151;
}

.spec-value {
  font-weight: 600;
  color: #ff4500;
  font-family: 'Courier New', monospace;
}

/* Customization Styles */
.customization-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.custom-category {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.custom-category h4 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #1f2937;
  border-bottom: 2px solid #ff4500;
  padding-bottom: 8px;
}

.option-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.option-item:hover {
  background: #f3f4f6;
  border-color: #ff4500;
}

.option-price {
  font-weight: 600;
  color: #059669;
  font-family: 'Courier New', monospace;
}

/* Timeline Styles */
.timeline {
  position: relative;
  padding-left: 40px;
  margin-bottom: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #ff4500, #ff6b35);
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
}

.timeline-marker {
  position: absolute;
  left: -28px;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ff4500;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  border: 4px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.timeline-content {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.timeline-content h4 {
  margin-top: 0;
  margin-bottom: 8px;
  color: #1f2937;
}

.timeline-duration {
  display: inline-block;
  background: #ff4500;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 12px;
}

/* Maintenance Plans */
.maintenance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.maintenance-plan {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  position: relative;
}

.maintenance-plan.featured {
  border-color: #ff4500;
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 69, 0, 0.15);
}

.maintenance-plan.featured::before {
  content: 'POPULAR';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #ff4500;
  color: white;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
}

.maintenance-plan h4 {
  margin-top: 0;
  margin-bottom: 16px;
  color: #1f2937;
  text-align: center;
}

.plan-price {
  font-size: 28px;
  font-weight: bold;
  color: #ff4500;
  text-align: center;
  margin-bottom: 24px;
  font-family: 'Courier New', monospace;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.plan-features li {
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
  position: relative;
  padding-left: 24px;
}

.plan-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #059669;
  font-weight: bold;
}

.plan-features li:last-child {
  border-bottom: none;
}

/* Calibration Styles */
.calibration-content {
  margin-bottom: 32px;
}

.calibration-section {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.schedule-table {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.schedule-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid #f3f4f6;
}

.schedule-row:last-child {
  border-bottom: none;
}

.schedule-row.header {
  background: #f9fafb;
  font-weight: 600;
  color: #374151;
}

/* Quote Styles */
.quote-content {
  margin-bottom: 32px;
}

.base-pricing {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.pricing-table {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #f3f4f6;
}

.pricing-row:last-child {
  border-bottom: none;
}

.pricing-row.total {
  background: #f9fafb;
  border-top: 2px solid #ff4500;
}

.pricing-value {
  font-family: 'Courier New', monospace;
  font-weight: 600;
  color: #ff4500;
}

.quote-form {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 8px;
  font-weight: 500;
  color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #ff4500;
  box-shadow: 0 0 0 3px rgba(255, 69, 0, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.financing-options {
  background: #f9fafb;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #e5e7eb;
}

.financing-options h4 {
  margin-top: 0;
  margin-bottom: 16px;
  color: #1f2937;
}

.financing-options ul {
  margin: 0;
  padding-left: 20px;
}

.financing-options li {
  margin-bottom: 8px;
  color: #4b5563;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

.btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
}

.btn-primary {
  background: linear-gradient(135deg, #ff4500 0%, #ff6b35 100%);
  color: white;
  border-color: #ff4500;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 69, 0, 0.3);
  background: linear-gradient(135deg, #e03e00 0%, #ff5722 100%);
}

.btn-secondary {
  background: white;
  color: #ff4500;
  border-color: #ff4500;
}

.btn-secondary:hover {
  background: #ff4500;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 69, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  .modal-content {
      width: 95%;
      margin: 10px;
      max-height: 90vh;
  }
  
  .large-modal {
      width: 95%;
  }
  
  .modal-header {
      padding: 20px 24px 12px 24px;
  }
  
  .modal-title {
      font-size: 20px;
  }
  
  .modal-body {
      padding: 24px;
  }
  
  .feature-grid,
  .customization-grid,
  .maintenance-grid {
      grid-template-columns: 1fr;
  }
  
  .form-row {
      grid-template-columns: 1fr;
      gap: 16px;
  }
  
  .schedule-row {
      grid-template-columns: 1fr;
      gap: 8px;
      text-align: center;
  }
  
  .action-buttons {
      flex-direction: column;
      align-items: center;
  }
  
  .btn {
      width: 100%;
      max-width: 300px;
  }
  
  .maintenance-plan.featured {
      transform: none;
  }
  
  .timeline {
      padding-left: 30px;
  }
  
  .timeline-marker {
      left: -23px;
      width: 14px;
      height: 14px;
      font-size: 10px;
  }
}

@media (max-width: 480px) {
  .modal {
      padding: 10px;
  }
  
  .modal-header {
      padding: 16px 20px 8px 20px;
  }
  
  .modal-title {
      font-size: 18px;
  }
  
  .modal-body {
      padding: 20px;
  }
  
  .feature-card,
  .custom-category,
  .maintenance-plan,
  .calibration-section {
      padding: 20px;
  }
}

/* Animation Keyframes */
@keyframes modalSlideIn {
  from {
      opacity: 0;
      transform: scale(0.9) translateY(20px);
  }
  to {
      opacity: 1;
      transform: scale(1) translateY(0);
  }
}

@keyframes modalSlideOut {
  from {
      opacity: 1;
      transform: scale(1) translateY(0);
  }
  to {
      opacity: 0;
      transform: scale(0.9) translateY(20px);
  }
}

/* Smooth scrollbar for modal content */
.modal-body::-webkit-scrollbar {
  width: 8px;
}

.modal-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: #ff4500;
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: #e03e00;
}

/* Loading states for interactive elements */
.btn.loading {
  position: relative;
  color: transparent;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
}

@keyframes spin {
  to {
      transform: translate(-50%, -50%) rotate(360deg);
  }
}