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

body {
  background: #000;
  color: #eee;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Stars container */
.stars {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -10;
  background: transparent;
  overflow: hidden;
  will-change: transform;
  backface-visibility: hidden;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: white;
  animation: starTwinkle 2s ease-in-out infinite;
  will-change: opacity;
  backface-visibility: hidden;
}

/* Twinkle animation for stars */
@keyframes starTwinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* Main container for page content */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 15px;
  position: relative;
  z-index: 10;
}

/* Header section */
.header {
  text-align: center;
  margin-bottom: 3rem;
}

.header h1 {
  font-size: 3rem;
  background: linear-gradient(45deg, #d1a0ff, #8e44ad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-shadow: 0 0 12px rgba(142, 68, 173, 0.7);
  will-change: text-shadow;
}

.subtitle {
  font-size: 1.25rem;
  opacity: 0.75;
  margin-top: 0.5rem;
  font-weight: 500;
  font-style: italic;
}

.step-text{
  text-align: center;
  display: flex;
  justify-content: center; 
  align-items: center;      
}

.build-progress {
  position: fixed;
  font-size: 17px;
  top: 12px;
  left: 12px;
  background: rgba(74, 15, 103, 0.3);
  color: #f0f0f5;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(74, 15, 103, 0.3);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 160px;
}

#progressCircle {
  font-size: 16px;
  font-weight: 500;
  background: transparent;     
  width: auto;             
  height: auto;
  border-radius: 10px;
  color: #f0f0f5;          
  padding: 0;
  display: inline-block;   
  justify-content: unset;
  align-items: unset;
}

#progressText {
  font-size: 13px;
  font-weight: 700;
  color: #cbd5e1;
}

/* Steps grid */
.build-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  row-gap: 50px; 
  column-gap: 30px; 
}

.step {
  background: rgba(50, 10, 70, 0.3);
  border-radius: 1rem;
  padding: 30px;
  box-shadow: 0 0 10px rgba(100, 30, 140, 0.25);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
  cursor: default;
  position: relative;
  overflow: hidden;
}


.step:hover::before,
.tips:hover::before {
    transform: rotate(45deg) translate(0, 0);
    opacity: 1;
}

.step:hover,
.tips:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(156, 39, 176, 0.3);
    border-color: rgba(156, 39, 176, 0.5);
}

.step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #9c27b0, #673ab7);
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-weight: bold;
    font-size: 1.5em;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(156, 39, 176, 0.5);
}

.step.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Step heading */
.step h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #cdaeff;
  font-weight: 700;
}

/* Step description */
.step p {
  font-size: 1rem;
  line-height: 1.4;
  opacity: 0.85;
  margin-bottom: 1.5rem;
}

.step-text {
    margin-left: center;
}

.step-icon,
.step-icon-a,
.step-icon-b,
.step-icon-c {
    vertical-align: middle;
    margin-right: 8px;
    object-fit: cover;
    width: 275px;
    height: 250px;
}

.step-icon-b { 
    width: 100px; height: 85px; 
}


/* Component selector container */
.component-selector {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Component options styling */
.component-option {
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  border: 2px solid transparent;
  background-color: rgba(255 255 255 / 0.1);
  color: #ddd;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  will-change: background-color, border-color, box-shadow;
}

.component-option:hover {
  background-color: rgba(150, 200, 255, 0.15);
  border-color: #7db8ff;
  box-shadow: 0 0 8px rgba(125, 184, 255, 0.6);
}

.component-option.selected {
  background-color: rgba(100, 220, 120, 0.2);
  border-color: #68c44a;
  box-shadow: 0 0 10px rgba(104, 196, 74, 0.8);
  color: #a8f0a3;
}

/* Summary card */
.summary-card {
  background: rgba(70, 20, 90, 0.35);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  margin-bottom: 3rem;
  box-shadow: 0 0 12px rgba(120, 60, 160, 0.3);
  color: #ddd;
}

/* Summary title */
.summary-card h3 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #d8baff;
  font-weight: 700;
}

/* Summary grid */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.25rem;
  text-align: center;
}

.summary-label {
  font-size: 1rem;
  opacity: 0.75;
}

.summary-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: #d6a6ff;
}

/* Export button */
.export-btn {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.2), rgba(103, 58, 183, 0.2));
    color: white;
    font-size: 1.1rem;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.export-btn:hover {
  background: #4b238a;
  box-shadow: 0 0 12px rgba(75, 35, 138, 1);
}

#button-group {
        text-align: center;
        margin-top: 20px;
        
    }

.tips {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.2), rgba(103, 58, 183, 0.2));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.tips h3 {
    color: #bb86fc;
    margin-bottom: 15px;
}

.footer {
    text-align: center;
    padding: 40px 0;
    margin-top: 50px;
    background: rgba(50, 10, 70, 0.3);
    border-radius: 1rem;
    padding: 30px;
    box-shadow: 0 0 10px rgba(100, 30, 140, 0.25);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.footer p {
    opacity: 0.7;
    color: white;
}

/* Compatibility warning box */
.compatibilityWarning {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: #ff4d4d;
  color: #660000;
  border-radius: 0.6rem;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 0 8px #aa0000aa;
  display: none;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .header h1 {
    font-size: 2.25rem;
  }

  .build-steps {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }
}
