:root {
  --bg-page: #F8FAFC;
  --bg-hero-start: #F0FDFA;
  --bg-hero-end: #F1F5F9;
  --bg-card: #FFFFFF;
  --primary-accent: #0D9488;
  --primary-accent-light: #CCFBF1;
  --text-dark: #1E293B;
  --text-medium: #475569;
  --text-light: #94A3B8;
  --border-color: #E2E8F0;
  --success-bg: #ECFDF5;
  --success-text: #065F46;
  --warning-bg: #FFFBEB;
  --warning-text: #D97706;
  --error-bg: #FEF2F2;
  --error-text: #DC2626;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-page);
  color: var(--text-medium);
  line-height: 1.6;
}

/* Navigation */
.navbar {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo {
  width: 32px;
  height: 32px;
}

.brand-name {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-dark);
}

.brand-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Navigation Toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 0.25rem;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--text-dark);
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Navigation Slider */
.nav-slider {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background-color: var(--bg-card);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease-in-out;
  z-index: 1001;
}

.nav-slider.active {
  right: 0;
}

.slider-content {
  padding: 1.5rem;
  height: 100%;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.slider-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-dark);
  cursor: pointer;
  padding: 0.5rem;
}

.slider-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.slider-link {
  display: block;
  padding: 1rem;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.slider-link:hover {
  background-color: var(--primary-accent-light);
  color: var(--primary-accent);
}

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Hero Section */
.hero-section {
  padding: 4rem 1rem;
  background: linear-gradient(120deg, var(--bg-hero-start), var(--bg-hero-end));
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-text h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-dark);
}

.quick-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 2.5rem 0;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-accent);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-medium);
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.cta-button.primary {
  background-color: var(--primary-accent);
  color: white;
}

.cta-button.primary:hover {
  background-color: #0b8378;
  transform: translateY(-2px);
}

.cta-button.secondary {
  background-color: transparent;
  color: var(--primary-accent);
  border: 2px solid var(--primary-accent);
}

.cta-button.secondary:hover {
  background-color: var(--primary-accent-light);
}

/* Main Optimizer */
.optimizer-container {
  padding: 4rem 0;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--text-medium);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.card {
  background: var(--bg-card);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.main-card {
  border-top: 4px solid var(--primary-accent);
}

/* Upload Section */
.upload-area {
  border: 2px dashed var(--border-color);
  border-radius: 1rem;
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--bg-page);
}

.upload-area:hover {
  border-color: var(--primary-accent);
  background: var(--primary-accent-light);
}

.upload-area.dragover {
  border-color: var(--primary-accent);
  background: var(--primary-accent-light);
  transform: scale(1.02);
}

.upload-icon {
  font-size: 3rem;
  color: var(--primary-accent);
  margin-bottom: 1rem;
}

.upload-area h3 {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.upload-area p {
  color: var(--text-medium);
  margin-bottom: 1.5rem;
}

.file-support {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-light);
  font-size: 0.875rem;
}

.size-warning {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--warning-bg);
  color: var(--warning-text);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  margin-top: 1rem;
}

/* Settings Section */
.settings-section {
  margin-top: 2rem;
}

.settings-section h3 {
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

/* Optimization Slider */
.optimization-slider-container {
  margin-bottom: 2rem;
}

.optimization-slider-container label {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-medium);
}

.optimization-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border-color);
  outline: none;
  -webkit-appearance: none;
}

.optimization-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-accent);
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.optimization-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-accent);
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.slider-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.slider-ticks span {
  width: 2px;
  height: 8px;
  background: var(--text-light);
  border-radius: 1px;
}

/* Optimization Options */
.optimization-options {
  margin-bottom: 2rem;
}

.option-checkbox {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  color: var(--text-dark);
  font-weight: 500;
}

.option-checkbox input {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  position: relative;
  transition: all 0.2s;
}

.option-checkbox input:checked + .checkmark {
  background: var(--primary-accent);
  border-color: var(--primary-accent);
}

.option-checkbox input:checked + .checkmark::after {
  content: '✓';
  position: absolute;
  color: white;
  font-size: 14px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* File List Section */
.file-list-section {
  margin-bottom: 2rem;
}

.file-list-section h4 {
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.file-list {
  margin-bottom: 1rem;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 0.5rem;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
  background: var(--bg-page);
  transition: all 0.2s;
}

.file-item:hover {
  border-color: var(--primary-accent);
}

.file-item.processing {
  border-left: 4px solid var(--primary-accent);
}

.file-item.completed {
  border-left: 4px solid var(--success-text);
}

.file-item.error {
  border-left: 4px solid var(--error-text);
}

.file-icon {
  color: var(--primary-accent);
  font-size: 1.25rem;
}

.file-info {
  flex: 1;
}

.file-name {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
  word-break: break-word;
}

.file-size {
  font-size: 0.875rem;
  color: var(--text-medium);
}

.file-status {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-weight: 600;
}

.file-status.processing {
  background: var(--primary-accent-light);
  color: var(--primary-accent);
}

.file-status.completed {
  background: var(--success-bg);
  color: var(--success-text);
}

.file-status.error {
  background: var(--error-bg);
  color: var(--error-text);
}

.file-remove {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.25rem;
  transition: all 0.2s;
}

.file-remove:hover {
  color: var(--error-text);
  background: var(--error-bg);
}

.file-list-actions {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.add-more-btn, .clear-all-btn {
  flex: 1;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.add-more-btn {
  background: var(--primary-accent);
  color: white;
}

.add-more-btn:hover {
  background: #0b8378;
  transform: translateY(-1px);
}

.clear-all-btn {
  background: transparent;
  color: var(--error-text);
  border: 2px solid var(--error-text);
}

.clear-all-btn:hover {
  background: var(--error-bg);
  transform: translateY(-1px);
}

/* Progress Section */
.progress-section {
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: var(--bg-page);
  border-radius: 0.75rem;
  border: 1px solid var(--border-color);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.progress-header h4 {
  color: var(--text-dark);
  margin: 0;
}

#progressText {
  font-weight: 600;
  color: var(--primary-accent);
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary-accent);
  border-radius: 4px;
  transition: width 0.3s ease;
  width: 0%;
}

.current-file {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-medium);
  text-align: center;
}

/* Optimize Button */
.optimize-btn {
  width: 100%;
  padding: 1rem 2rem;
  background: var(--primary-accent);
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.optimize-btn:hover {
  background: #0b8378;
  transform: translateY(-2px);
}

.optimize-btn:disabled {
  background: var(--text-light);
  cursor: not-allowed;
  transform: none;
}

/* Results Section */
.results-section h3 {
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.results-info {
  background: var(--primary-accent-light);
  border: 1px solid var(--primary-accent);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.results-info i {
  color: var(--primary-accent);
  margin-top: 0.125rem;
}

.results-info p {
  margin: 0;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.results-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.result-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  background: var(--success-bg);
}

.result-info h4 {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  word-break: break-word;
}

.result-stats {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  flex-wrap: wrap;
}

.size-before {
  color: var(--text-medium);
  text-decoration: line-through;
}

.size-after {
  color: var(--success-text);
  font-weight: 600;
}

.reduction {
  color: var(--success-text);
  font-weight: 600;
  background: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  white-space: nowrap;
}

.download-btn {
  padding: 0.75rem 1.5rem;
  background: var(--primary-accent);
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  font-size: 0.875rem;
}

.download-btn:hover {
  background: #0b8378;
  transform: translateY(-1px);
}

.download-btn:disabled {
  background: var(--text-light);
  cursor: not-allowed;
  transform: none;
}

.results-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.download-all-btn {
  padding: 1rem 2rem;
  background: var(--primary-accent);
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.download-all-btn:hover {
  background: #0b8378;
  transform: translateY(-2px);
}

.optimize-more-btn {
  padding: 1rem 2rem;
  background: transparent;
  color: var(--primary-accent);
  border: 2px solid var(--primary-accent);
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.optimize-more-btn:hover {
  background: var(--primary-accent-light);
}

/* Content Sections */
.content-section {
  padding: 4rem 0;
  background: var(--bg-page);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.step-card {
  text-align: center;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: 1rem;
  border: 1px solid var(--border-color);
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--primary-accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.step-icon {
  font-size: 2.5rem;
  color: var(--primary-accent);
  margin-bottom: 1rem;
}

.step-card h3 {
  color: var(--text-dark);
  margin-bottom: 1rem;
}

/* Features Section */
.features-section {
  padding: 4rem 0;
  background: var(--bg-hero-end);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.feature-card {
  padding: 2rem;
  background: var(--bg-card);
  border-radius: 1rem;
  border: 1px solid var(--border-color);
  text-align: center;
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary-accent);
  margin-bottom: 1rem;
}

.feature-card h3 {
  color: var(--text-dark);
  margin-bottom: 1rem;
}

/* FAQ Section */
.faq-section {
  padding: 4rem 0;
  background: var(--bg-page);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.faq-item {
  padding: 2rem;
  background: var(--bg-card);
  border-radius: 1rem;
  border: 1px solid var(--border-color);
}

.faq-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.faq-item p {
  color: var(--text-medium);
  line-height: 1.6;
}

/* Educational Section */
.educational-section {
  padding: 4rem 0;
  background: var(--bg-hero-end);
}

.educational-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.educational-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: 1rem;
  border: 1px solid var(--border-color);
}

.educational-card h3 {
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.optimization-types {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--border-color);
}

.optimization-types h3 {
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  text-align: center;
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.type-card {
  padding: 1.5rem;
  background: var(--bg-page);
  border-radius: 0.75rem;
  border: 1px solid var(--border-color);
}

.type-card h4 {
  color: var(--text-dark);
  margin-bottom: 1rem;
}

/* Related Tools Section */
.related-tools-section {
  padding: 4rem 0;
  background: var(--bg-page);
}

.related-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.tool-card {
  padding: 2.5rem 2rem;
  background: var(--bg-card);
  border-radius: 1rem;
  border: 1px solid var(--border-color);
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-accent);
}

.tool-icon {
  font-size: 3rem;
  color: var(--primary-accent);
  margin-bottom: 1.5rem;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-card h3 {
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.tool-card p {
  color: var(--text-medium);
  margin-bottom: 2rem;
  line-height: 1.6;
  flex-grow: 1;
}

.tool-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--primary-accent);
  color: white;
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-accent);
  margin-top: auto;
}

.tool-button:hover {
  background: #0b8378;
  border-color: #0b8378;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
  color: white;
}

.tool-button.secondary {
  background: transparent;
  color: var(--primary-accent);
  border: 2px solid var(--primary-accent);
}

.tool-button.secondary:hover {
  background: var(--primary-accent);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section {
  display: flex;
  flex-direction: column;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo {
  width: 32px;
  height: 32px;
}

.brand-name {
  font-weight: 700;
  font-size: 1.25rem;
  color: #000000;
}

.footer-description {
  color: #94a3b8;
  line-height: 1.6;
}

.footer-heading {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 1.5rem;
  text-align: center;
  color: #94a3b8;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem 0;
}

/* Animations */
.animate-on-load {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading Indicator */
.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid var(--primary-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
  .nav-slider {
    width: 100%;
  }
  
  .result-item {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
    padding: 1.25rem;
  }
  
  .result-stats {
    justify-content: center;
    gap: 0.5rem;
  }
  
  .download-btn {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
  
  .results-actions {
    flex-direction: column;
  }
  
  .download-all-btn,
  .optimize-more-btn {
    width: 100%;
    justify-content: center;
    padding: 1.25rem 2rem;
  }
  
  .file-list-actions {
    flex-direction: column;
  }
  
  .add-more-btn, .clear-all-btn {
    width: 100%;
  }
  
  .features-grid,
  .faq-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-button {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
  
  .quick-stats {
    gap: 1.5rem;
  }
  
  .related-tools-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .tool-card {
    padding: 2rem 1.5rem;
  }
  
  .tool-button {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .card {
    padding: 1.5rem;
  }
  
  .upload-area {
    padding: 2rem 1rem;
  }
  
  .feature-card,
  .faq-item,
  .educational-card,
  .tool-card {
    padding: 1.5rem;
  }
  
  .optimization-slider-container {
    margin-bottom: 1.5rem;
  }
  
  .result-item {
    padding: 1rem;
  }
  
  .result-info h4 {
    font-size: 0.9rem;
  }
  
  .result-stats {
    font-size: 0.8rem;
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .reduction {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
  }
  
  .download-btn {
    padding: 0.875rem 1.25rem;
    font-size: 0.9rem;
  }
  
  .file-item {
    padding: 0.75rem;
  }
}