body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #2d4144, #022a43);
  color: #fff;
  flex-direction: column;
}

.container {
  background: none;
  backdrop-filter: none;
  border-radius: 20px;
  padding: 2rem;
  width: 90%;
  max-width: 420px;
  text-align: center;
  box-shadow: none;
}

.glow-title {
  font-size: 30px;          
  font-weight: bold;
  text-transform: uppercase;
  text-align: center;
  color: #00f2ff;
  text-shadow: 0 0 1px #fff, 0 0 3px #f0f, 0 0 5px #0ff;

  display: inline-block;
  white-space: nowrap;
  transform: scale(2);  /* Only stretch horizontally */
}

/* Responsive for smaller screens */
@media (max-width: 768px) {
  .glow-title {
    font-size: 20px;       /* Smaller font on mobile */
    transform: scale(1.5); /* Less horizontal stretch */
  }
}

@media (max-width: 480px) {
  .glow-title {
    font-size: 20px;       /* Smaller font on very small screens */
    transform: scale(1.5); /* Less horizontal stretch */
  }
}



.subtitle {
  font-size: clamp(0.9rem, 3vw, 1.1rem);
  margin-bottom: 1.5em;
  font-weight: 600;
}

@keyframes glow {
  from {
    text-shadow: 0 0 10px #ff0, 0 0 20px #ff416c;
  }
  to {
    text-shadow: 0 0 25px #fff, 0 0 45px #ff4b2b;
  }
}

.drop-zone {
  border: 2px dashed rgba(255, 255, 255, 0.7);
  padding: 1.5rem;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.drop-zone:hover,
.drop-zone.dragover {
  background: rgba(255, 255, 255, 0.25);
}

.file-label {
  display: inline-block;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 15px;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 1em;
  transition: background 0.3s ease;
}

.file-label:hover {
  background: rgba(255, 255, 255, 0.35);
}

.file-label input[type="file"] {
  display: none;
}

.preview-container {
  margin-top: 10px;
}

.preview-img {
  max-width: 100%;
  max-height: 220px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.slider-label {
  display: block;
  font-weight: bold;
  margin-top: 15px;
}

.slider {
  width: 100%;
  margin: 10px 0;
}

.slider-value {
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 10px;
}

.quality-selector.horizontal {
  display: flex;
  justify-content: space-between;
  margin: 15px 0;
  gap: 10px;
}

.quality-selector.horizontal label {
  flex: 1;
  text-align: center;
  background: rgba(255, 255, 255, 0.15);
  padding: 8px 0;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s;
}

.quality-selector.horizontal label:hover {
  background: rgba(255, 255, 255, 0.3);
}

.quality-selector.horizontal input[type="radio"] {
  display: none;
}

.quality-selector.horizontal input[type="radio"]:checked + label {
  background: rgba(255, 255, 255, 0.4);
  font-weight: bold;
}

.compress-btn {
  width: 100%;
  padding: 14px;
  font-size: 1.1rem;
  font-weight: bold;
  border: none;
  border-radius: 12px;
  background: linear-gradient(90deg, #6a11cb, #2575fc);
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compress-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.info-text {
  font-size: 0.95rem;
  margin-top: 8px;
  word-wrap: break-word;
}

@media (max-width: 600px) {
  .container {
    padding: 1.5rem;
    max-width: 95%;
  }
  .compress-btn {
    font-size: 1rem;
    padding: 12px;
  }
  .preview-img {
    max-height: 180px;
  }
}
/* Footer mini navbar */
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
  flex-wrap: nowrap;
  overflow-x: auto; /* enables horizontal scrolling on small screens */
  padding: 10px 0;
  scrollbar-width: thin; /* for Firefox */
}

.footer-nav::-webkit-scrollbar {
  height: 6px;
}

.footer-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.footer-link {
  flex: 0 0 auto; /* prevents shrinking */
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  transition: background 0.3s, color 0.3s;
}

.footer-link:hover {
  background: rgba(255, 255, 255, 0.35);
  color: #ff6f61;
}

/* Make footer scroll nicely on mobile */
@media (max-width: 600px) {
  .footer-nav {
    gap: 10px;
    margin: 15px 0;
  }
}
