/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Watermark */
.watermark {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
  opacity: 0.1;
}

.watermark .name {
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  user-select: none;
}

/* Main Container */
.container {
  width: 90%;
  max-width: 1000px;
  margin: 8rem auto 4rem;
  text-align: center;
}

.container h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

/* Progress Section */
.progress-section {
  margin: 4rem auto;
  padding: 2rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Progress Container */
.progress-container {
  position: relative;
  width: 100%; /* Ensures the progress container spans the full width of its parent */
  max-width: 100%; /* Avoids overflow */
  height: 30px;
  background-color: #ddd;
  border-radius: 30px;
  overflow: hidden;
  margin: 2rem 0;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Progress Bar */
.progress-bar {
  height: 100%;
  width: 0%; /* Initially set to 0% */
  background: linear-gradient(90deg, #ff6a00, orangered);
  border-radius: 30px 0 0 30px;
  transition: width 2s ease;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 15px;
  box-sizing: border-box; /* Ensure padding is included within the width */
}

/* Progress Text */
.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
  font-size: 1rem;
  color: #333;
  font-family: 'Montserrat', sans-serif;
}

/* Normal Section */
.normal-section {
  margin-top: 6rem;
  padding: 2rem;
  text-align: center;
}

.normal-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-family: 'Montserrat', sans-serif;
}

.normal-section p {
  font-size: 1.1rem;
  color: #ccc;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Modal Styles */
.custom-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.custom-modal-content {
  background: #1e3c72;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.custom-modal-content h3 {
  margin-bottom: 2rem;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
}

.modal-actions button {
  padding: 10px 20px;
  margin: 0 10px;
  background: orangered;
  border: none;
  border-radius: 30px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.modal-actions button:hover {
  background: #ff7f3f;
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

.footer a {
  color: orangered;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) {
  .container h1 {
      font-size: 2.2rem;
  }

  .normal-section h2 {
      font-size: 1.8rem;
  }

  .progress-container {
      height: 28px;
  }
}

@media (max-width: 768px) {
  .container h1 {
      font-size: 2rem;
  }

  .normal-section h2 {
      font-size: 1.6rem;
  }

  .progress-container {
      height: 24px;
  }

  .progress-text {
      font-size: 0.9rem;
  }

  .normal-section p {
      font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .watermark .name {
      font-size: 2rem;
  }

  .container {
      margin-top: 4rem;
  }

  .container h1 {
      font-size: 1.8rem;
  }

  .normal-section h2 {
      font-size: 1.5rem;
  }

  .progress-container {
      height: 20px;
  }

  .progress-text {
      font-size: 0.8rem;
  }

  .modal-actions button {
      padding: 8px 18px;
  }

  .footer {
      padding: 1rem 0.5rem;
      font-size: 0.8rem;
  }
}
