/* Hero Section Styling */
.hero-section {
  background-color: #26bb49;
  color: #333;
  padding: 60px 20px;
  text-align: center;
  min-height: 100vh;
  max-height: 530px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: bold;
  margin-bottom: 10px;
  color: #ffffff;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  margin-bottom: 30px;
  color: #ffffff;
  text-shadow: 2px 3px 6px rgba(1, 3, 1, 0.4);
  letter-spacing: 0.3px;
  font-weight: 600;
  line-height: 1.6;
  text-transform: capitalize;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 15px;
}

.hero-btn {
  background-color: #ffd700;
  color: #fff;
  padding: 15px 30px;
  font-size: clamp(1rem, 2vw, 1.2rem);
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  display: inline-block;
}

.hero-btn:hover {
  background-color: #e6c200;
  text-decoration: none;
}

/* Upload Section */
.uploadOuter {
  margin-top: 20px;
  display: inline-block;
  text-align: center;
}

.uploadOuter .btn {
  padding: 12px 24px;
  font-size: clamp(1rem, 2vw, 1.4rem);
  border-radius: 5px;
  background-color: #155724;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.uploadOuter .btn:hover {
  background-color: #0f3d1a;
}

.uploadOuter strong {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin: 0 10px;
  color: #ffffff;
  font-weight: 700;
}

.dragBox {
  display: inline-block;
  padding: 15px 20px;
  border: 2px dashed #ffd700;
  border-radius: 5px;
  color: #ffffff;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  cursor: pointer;
  transition: background-color 0.3s ease;
  min-width: 200px;
}

.dragBox:hover {
  background-color: rgba(255, 215, 0, 0.1);
}

.dragBox input[type="file"] {
  display: none;
}

/* Mobile Upload Layout */
.upload-mobile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

/* Progress Container */
#progressContainer {
  margin: 20px auto;
  width: 90%;
  max-width: 500px;
  text-align: center;
}

#uploadProgressBar {
  height: 20px;
  background: linear-gradient(to right, #28a745, #218838);
  border-radius: 5px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: width 0.3s ease;
}

#progressText {
  font-size: clamp(12px, 2vw, 14px);
  font-weight: bold;
  color: #ffffff;
  margin-top: 10px;
}

/* Error Message */
#errorMessage {
  color: #ffffff;
  display: none;
  width: 90%;
  max-width: 500px;
  background-color: #d00619;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-weight: 800;
  text-align: center;
  padding: 12px;
  margin: 10px auto;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.5);
  font-size: clamp(12px, 2vw, 14px);
}

/* Features Section */
.features-section {
  padding: 60px 20px;
  background-color: #f8f9fa;
}

.features-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: bold;
  color: #333;
  margin-bottom: 40px;
}

.feature-icon {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: #26bb49;
  margin-bottom: 20px;
}

.feature-title {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
}

.feature-description {
  font-size: clamp(0.9rem, 1.8vw, 1rem);
  color: #666;
  line-height: 1.6;
}

/* Resize Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.resize-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
}

.image-section {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.image-section img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-section {
  flex: 1;
  min-width: 300px;
  padding: 30px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #f9f9f9;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-section label {
  display: block;
  margin: 15px 0 8px;
  font-weight: 600;
  color: #333;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.form-section input,
.form-section select {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  transition: border-color 0.3s ease;
}

.form-section input:focus,
.form-section select:focus {
  outline: none;
  border-color: #26bb49;
  box-shadow: 0 0 0 2px rgba(38, 187, 73, 0.2);
}

.form-section button {
  width: 100%;
  padding: 15px 20px;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: clamp(1rem, 2vw, 1.1rem);
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.form-section button:hover {
  background-color: #45a049;
}

.form-section button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

/* Preview Section */
#preview {
  text-align: center;
  margin-top: 20px;
}

#preview img {
  max-width: 100%;
  max-height: 300px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
  .hero-section {
    padding: 40px 15px;
  }

  .uploadOuter strong {
    display: block;
    margin: 10px 0;
  }

  .features-section {
    padding: 40px 15px;
  }
}

@media screen and (max-width: 768px) {
  .hero-section {
    padding: 30px 10px;
    min-height: 80vh;
  }

  .uploadOuter {
    width: 100%;
  }

  .upload-mobile .btn {
    width: 100%;
    max-width: 280px;
    margin-bottom: 10px;
  }

  .dragBox {
    width: 100%;
    max-width: 280px;
    padding: 20px;
    margin-top: 10px;
  }

  .resize-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .image-section,
  .form-section {
    max-width: 100%;
    min-width: auto;
  }

  .form-section {
    padding: 20px;
  }

  .container {
    padding: 15px;
  }
}

@media screen and (max-width: 480px) {
  .hero-section {
    padding: 20px 10px;
  }

  .hero-subtitle {
    padding: 0 10px;
  }

  .uploadOuter .btn {
    padding: 12px 20px;
    font-size: 1rem;
  }

  .dragBox {
    padding: 15px;
    font-size: 0.9rem;
  }

  .form-section {
    padding: 15px;
  }

  .form-section input,
  .form-section select {
    padding: 10px;
  }

  .form-section button {
    padding: 12px;
  }

  #progressContainer {
    width: 95%;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.hidden {
  display: none;
}

.mt-4 {
  margin-top: 1rem;
}

.mb-5 {
  margin-bottom: 3rem;
}

.py-5 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.g-4 > * {
  padding: 1rem;
}

/* Bootstrap Grid System for Features */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col-md-4 {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
  padding: 0 15px;
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  .col-md-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 480px) {
  .col-md-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}
