/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* Header and Navigation */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  z-index: 1000;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.navbar {
  padding: 1rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.5rem;
  color: #667eea;
  transition: all 0.3s ease;
}

.logo:hover {
  transform: translateY(-1px);
}

.logo-image {
  width: 40px;
  height: 40px;
  object-fit: contain;
  transition: all 0.3s ease;
}

.logo:hover .logo-image {
  transform: scale(1.05);
}

.logo h1 {
  font-size: 1.5rem;
  margin: 0;
  background: linear-gradient(135deg, #8b5cf6, #a855f7, #667eea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: linear-gradient(135deg, #667eea, #764ba2);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #667eea;
}

.nav-link:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.hamburger:hover {
  background: rgba(102, 126, 234, 0.1);
}

.bar {
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Hero Section */
.hero-section {
  padding: 85px 0 20px;
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    ellipse at top,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}

.hero-subtitle {
  font-size: 1rem;
  margin-bottom: 1.8rem;
  opacity: 0.95;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

/* Upload Section */
.upload-section {
  background: white;
  border-radius: 12px;
  padding: 1rem;
  margin: 0 auto;
  max-width: 550px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  color: #333;
  width: 90%;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.upload-area {
  border: 2px dashed #667eea;
  border-radius: 10px;
  padding: 1rem 0.6rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
  position: relative;
  overflow: hidden;
}

.upload-area::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.05) 0%,
    rgba(118, 75, 162, 0.05) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.upload-area:hover,
.upload-area.dragover {
  border-color: #5a67d8;
  background: linear-gradient(135deg, #eef2ff 0%, #e6edff 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.upload-area:hover::before,
.upload-area.dragover::before {
  opacity: 1;
}

.upload-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.upload-icon {
  font-size: 1.5rem;
  color: #667eea;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.upload-content h3 {
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
  color: #333;
  font-weight: 600;
}

.upload-content p {
  color: #666;
  font-size: 0.85rem;
}

.upload-link {
  color: #667eea;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}

.upload-link:hover {
  text-decoration: underline;
  transform: translateY(-1px);
}

/* Selected Images Preview */
.selected-images {
  margin: 1rem 0;
  padding: 0.8rem;
  background: linear-gradient(135deg, #f0f4ff 0%, #f8f9ff 100%);
  border-radius: 6px;
  border: 1px solid rgba(102, 126, 234, 0.15);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.08);
}

.selected-images h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.selected-images h4::before {
  content: "";
  width: 4px;
  height: 20px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 2px;
}

.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.8rem;
}

.image-preview-item {
  position: relative;
  background: white;
  border-radius: 8px;
  padding: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.image-preview-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
  border-color: rgba(102, 126, 234, 0.2);
}

.preview-image {
  width: 100%;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  background: #f8f9fa;
}

.preview-filename {
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.5rem;
  text-align: center;
  word-break: break-word;
  line-height: 1.2;
}

.preview-size {
  font-size: 0.7rem;
  color: #999;
  text-align: center;
  margin-top: 0.25rem;
}

.remove-image {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  border: 2px solid white;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.remove-image:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* Compression Settings */
.compression-settings {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  margin-bottom: 1rem;
  padding: 0.8rem;
  background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
  border-radius: 6px;
  border: 1px solid rgba(102, 126, 234, 0.1);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.05);
}

.compression-method h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.6rem;
}

.method-options {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.method-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.75rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  background: white;
  transition: all 0.3s ease;
  min-width: 140px;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.method-option::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.05) 0%,
    rgba(118, 75, 162, 0.05) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.method-option:hover {
  border-color: #667eea;
  background: #f8f9ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.method-option:hover::before {
  opacity: 1;
}

.method-option input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #667eea;
  cursor: pointer;
}

.method-option input[type="radio"]:checked + .method-label {
  color: #667eea;
  font-weight: 600;
}

.method-option:has(input[type="radio"]:checked) {
  border-color: #667eea;
  background: linear-gradient(135deg, #f0f4ff 0%, #f8f9ff 100%);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.method-option:has(input[type="radio"]:checked)::before {
  opacity: 1;
}

.method-label {
  font-size: 1rem;
  color: #333;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.setting-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: opacity 0.3s ease;
}

.setting-group.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.setting-group label {
  font-weight: 600;
  color: #333;
}

.quality-slider {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.file-size-input {
  display: flex;
  align-items: center;
  position: relative;
}

.file-size-input input {
  flex: 1;
  padding: 0.75rem;
  padding-right: 3rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  background: white;
  outline: none;
  transition: border-color 0.3s ease;
}

.file-size-input input:focus {
  border-color: #667eea;
}

.input-suffix {
  position: absolute;
  right: 0.75rem;
  color: #666;
  font-weight: 500;
  pointer-events: none;
}

.setting-help {
  font-size: 0.8rem;
  color: #666;
  font-style: italic;
  margin-top: 0.25rem;
}

#quality {
  flex: 1;
  height: 8px;
  border-radius: 5px;
  background: #ddd;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

#quality::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #667eea;
  cursor: pointer;
}

#quality::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #667eea;
  cursor: pointer;
  border: none;
}

#qualityValue {
  font-weight: 600;
  color: #667eea;
  min-width: 40px;
}

#format {
  padding: 0.75rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  background: white;
  outline: none;
  transition: border-color 0.3s ease;
}

#format:focus {
  border-color: #667eea;
}

/* Buttons */
.compress-btn {
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
  position: relative;
  overflow: hidden;
}

.compress-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.compress-btn:enabled:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.compress-btn:enabled:hover::before {
  opacity: 1;
}

.compress-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.download-all-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
  position: relative;
  overflow: hidden;
}

.download-all-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.download-all-btn:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.4);
}

.download-all-btn:hover::before {
  opacity: 1;
}

.download-zip-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
  position: relative;
  overflow: hidden;
}

.download-zip-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.download-zip-btn:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.4);
}

.download-zip-btn:hover::before {
  opacity: 1;
}

.download-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* Results Section */
.results-section {
  padding: 2rem 0;
  background: white;
}

.results-section h3 {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
  color: #333;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.result-card {
  background: white;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.result-card:hover {
  transform: translateY(-5px);
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.result-filename {
  font-weight: 600;
  color: #333;
  font-size: 1.1rem;
}

/* Result Image Preview */
.result-images {
  margin-bottom: 1rem;
}

.image-comparison-slider {
  position: relative;
  width: 100%;
  height: 100px;
  border-radius: 10px;
  overflow: hidden;
  cursor: col-resize;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  background: #f8f9fa;
  border: 2px solid #e2e8f0;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.image-comparison-slider:hover {
  border-color: #667eea;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2);
}

.comparison-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}

.original-image {
  z-index: 1;
}

.compressed-image {
  z-index: 2;
  clip-path: inset(0 0 0 50%);
  transition: clip-path 0.1s ease;
}

.slider-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: white;
  z-index: 3;
  cursor: col-resize;
  transform: translateX(-2px);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.3s ease;
}

.slider-handle:hover,
.slider-handle.dragging {
  box-shadow: 0 0 15px rgba(102, 126, 234, 0.5);
}

.slider-handle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  background: white;
  border: 2px solid #667eea;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.slider-handle:hover::before,
.slider-handle.dragging::before {
  width: 24px;
  height: 24px;
  border-color: #5a67d8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.slider-handle::after {
  content: "↔";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  color: #667eea;
  font-weight: bold;
  pointer-events: none;
}

.image-labels {
  position: absolute;
  top: 8px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 4;
  pointer-events: none;
}

.image-label {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.image-label.original {
  background: rgba(239, 68, 68, 0.8);
}

.image-label.compressed {
  background: rgba(16, 185, 129, 0.8);
}

.result-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background: #f8f9ff;
  border-radius: 10px;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #667eea;
}

.stat-label {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.25rem;
}

.compression-info {
  text-align: center;
  margin-bottom: 1rem;
}

.savings {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
}

.savings.positive {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.savings.negative {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.savings.neutral {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
}

.savings.positive i {
  color: #10b981;
}

.savings.negative i {
  color: #ef4444;
}

.savings.neutral i {
  color: #6b7280;
}

.compression-note {
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 6px;
  font-size: 0.8rem;
  color: #1e40af;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.compression-note i {
  color: #3b82f6;
}

.download-btn {
  width: 100%;
  padding: 0.75rem;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.download-btn:hover {
  background: #5a67d8;
  transform: translateY(-2px);
}

/* Features Section */
.features-section {
  padding: 2.5rem 0;
  background: white;
  position: relative;
}

.features-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(102, 126, 234, 0.03) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.features-section h2 {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 2rem;
  color: #333;
  position: relative;
  z-index: 1;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.feature-card {
  text-align: center;
  padding: 2rem;
  border-radius: 15px;
  background: white;
  transition: all 0.3s ease;
  border: 1px solid rgba(102, 126, 234, 0.08);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.03) 0%,
    rgba(118, 75, 162, 0.03) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15);
  border-color: rgba(102, 126, 234, 0.15);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
}

.feature-icon i {
  font-size: 2rem;
  color: white;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
  position: relative;
  z-index: 1;
}

.feature-card p {
  color: #666;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

/* About Section */
.about-section {
  padding: 2.5rem 0;
  background: linear-gradient(135deg, #f8f9ff 0%, #e6f3ff 100%);
}

.about-content {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

.about-section h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #333;
}

.about-section p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.stat {
  text-align: center;
}

.stat h3 {
  font-size: 3rem;
  font-weight: 700;
  color: #667eea;
  margin-bottom: 0.5rem;
}

.stat p {
  font-size: 1.1rem;
  color: #666;
  margin: 0;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
  color: white;
  padding: 3rem 0 1rem;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    ellipse at top,
    rgba(102, 126, 234, 0.1) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-section h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #667eea;
  text-align: center;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #cbd5e0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #667eea;
}

/* Contact Us Section */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.contact-item i {
  color: #667eea;
  font-size: 1.1rem;
}

.contact-item a {
  color: #cbd5e0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #667eea;
}

.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(102, 126, 234, 0.15);
  border-radius: 50%;
  color: #cbd5e0;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.social-links a:hover {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
  border-color: transparent;
}

/* Specific social media colors on hover */
.social-links a[title="Instagram"]:hover {
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
}

.social-links a[title="GitHub"]:hover {
  background: #333;
}

.social-links a[title="LinkedIn"]:hover {
  background: #0077b5;
}

.social-links a[title="YouTube"]:hover {
  background: #ff0000;
}

.social-links a[title="X (Twitter)"]:hover {
  background: #000000;
}

/* X Logo Styling */
.x-logo {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial,
    sans-serif;
  font-weight: 900;
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #2d3748;
  color: #a0aec0;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: white;
  margin: 15% auto;
  padding: 2rem;
  border-radius: 15px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-content h3 {
  margin-bottom: 1.5rem;
  color: #333;
}

.progress-container {
  margin-bottom: 1rem;
}

.progress-bar {
  width: 100%;
  height: 20px;
  background-color: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  width: 0%;
  transition: width 0.3s ease;
}

#progressText {
  font-weight: 600;
  color: #667eea;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
  .nav-container {
    padding: 0 1rem;
  }

  .nav-menu {
    position: fixed;
    right: -100%;
    top: 70px;
    flex-direction: column;
    background-color: white;
    width: 280px;
    text-align: center;
    transition: right 0.3s ease;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 1.5rem 0;
    z-index: 999;
    height: auto;
    border-radius: 0 0 0 15px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    pointer-events: auto;
  }

  .nav-menu.active {
    right: 0;
    pointer-events: auto;
  }

  .nav-menu .nav-link {
    display: block;
    width: 100%;
    padding: 0.8rem 2rem;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    pointer-events: auto;
    cursor: pointer;
  }

  .nav-menu .nav-link:hover {
    background-color: rgba(102, 126, 234, 0.1);
    color: #667eea;
  }

  .hamburger {
    display: flex;
    z-index: 1001;
    position: relative;
  }

  .hamburger.active .bar:nth-child(2) {
    /* opacity: 0; */
  }

  .hamburger.active .bar:nth-child(1) {
    /* transform: translateY(8px) rotate(45deg); */
  }

  .hamburger.active .bar:nth-child(3) {
    /* transform: translateY(-8px) rotate(-45deg); */
  }

  /* Prevent body scroll when menu is open */
  body.menu-open {
    overflow: hidden;
  }

  /* Ensure content doesn't shift */
  .container {
    max-width: 100%;
    padding: 0 20px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .upload-section {
    padding: 1.5rem;
    margin: 0 auto;
    max-width: calc(100vw - 2rem);
    width: calc(100% - 2rem);
  }

  .upload-area {
    padding: 1.5rem 1rem;
  }

  .upload-icon {
    font-size: 2rem;
  }

  .upload-content h3 {
    font-size: 1rem;
  }

  .compression-settings {
    padding: 1rem;
  }

  .method-options {
    flex-direction: column;
    gap: 0.8rem;
  }

  .method-option {
    width: 100%;
  }

  .image-preview-grid {
    grid-template-columns: 1fr 1fr;
  }

  .preview-image {
    height: 80px;
  }

  .result-images {
    margin-bottom: 1rem;
  }

  .result-image {
    height: 150px;
  }

  .image-comparison-slider {
    height: 150px;
  }

  .slider-handle::before {
    font-size: 10px;
  }

  .image-labels {
    padding: 0.5rem;
  }

  .image-label {
    font-size: 0.7rem;
  }

  .features-section h2,
  .about-section h2 {
    font-size: 1.8rem;
  }

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

  .footer-content {
    flex-direction: column;
    gap: 2rem;
  }

  .modal-content {
    margin: 2rem;
    padding: 1.5rem;
  }

  /* Demo Section Mobile Styles */
  .demo-section {
    padding: 60px 0;
  }

  .demo-section h2 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
  }

  .demo-subtitle {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }

  .demo-slider-container {
    padding: 1.5rem;
    margin: 0 1rem;
  }

  .demo-image {
    height: 250px;
  }

  .demo-handle {
    width: 35px;
    height: 35px;
    font-size: 12px;
  }

  .demo-labels {
    flex-direction: column;
    align-items: center;
  }

  .demo-label {
    width: 100%;
    padding: 0.8rem;
    text-align: center;
  }

  .demo-label-original,
  .demo-label-compressed {
    padding: 0.8rem;
  }

  .label-title {
    font-size: 0.8rem;
  }

  .label-size {
    font-size: 1rem;
  }

  .label-note {
    font-size: 0.75rem;
  }

  .demo-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .demo-stat {
    padding: 1.2rem;
    gap: 0.8rem;
  }

  .stat-icon {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.85rem;
  }

  /* Contact Us Mobile Styles */
  .social-links {
    justify-content: center;
  }

  .social-links a {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .contact-item {
    justify-content: center;
    text-align: center;
  }

  /* FAQ Mobile Styles */
  .faq-section {
    padding: 60px 0;
  }

  .faq-section h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 0 1rem;
    max-width: calc(100vw - 2rem);
  }

  .faq-item {
    border-radius: 12px;
    max-width: 100%;
    overflow: hidden;
  }

  .faq-question {
    padding: 1rem;
    flex-wrap: wrap;
  }

  .faq-question h3 {
    font-size: 1rem;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
  }

  .faq-toggle {
    flex-shrink: 0;
    margin-left: 0.5rem;
  }

  .faq-item.active .faq-answer {
    padding: 1rem;
    max-height: 300px;
  }

  .faq-answer p {
    font-size: 0.9rem;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}

@media screen and (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .upload-section {
    padding: 1rem;
    margin: 0 auto;
    width: 95%;
  }

  .upload-area {
    padding: 1rem 0.6rem;
  }

  .upload-icon {
    font-size: 1.5rem;
  }

  .upload-content h3 {
    font-size: 0.9rem;
  }

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

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

  /* FAQ Mobile Fixes for Small Screens */
  .faq-section {
    padding: 40px 0;
  }

  .faq-grid {
    margin: 0 0.5rem;
    max-width: calc(100vw - 1rem);
  }

  .faq-item {
    border-radius: 10px;
  }

  .faq-question {
    padding: 0.8rem;
  }

  .faq-question h3 {
    font-size: 0.9rem;
    gap: 0.4rem;
    line-height: 1.3;
  }

  .faq-question i:first-child {
    font-size: 1rem;
  }

  .faq-toggle {
    font-size: 0.9rem;
  }

  .faq-item.active .faq-answer {
    padding: 0.8rem;
  }

  .faq-answer p {
    font-size: 0.85rem;
    line-height: 1.4;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading animation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

.image-comparison-slider::after {
  content: "Drag to compare";
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 5;
}

.image-comparison-slider:hover::after {
  opacity: 1;
}

/* Demo Section */
.demo-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9ff 0%, #eef2ff 100%);
  position: relative;
  overflow: hidden;
}

.demo-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="%23667eea"/></svg>')
    no-repeat center top;
  background-size: cover;
  opacity: 0.1;
}

.demo-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.demo-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.demo-subtitle {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.demo-comparison {
  max-width: 900px;
  margin: 0 auto;
}

.demo-slider-container {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.demo-image-comparison {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.demo-image-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f4ff;
}

.demo-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.demo-compressed {
  position: absolute;
  top: 0;
  left: 0;
  clip-path: inset(0 50% 0 0);
  transition: clip-path 0.3s ease;
  filter: contrast(1.05) saturate(0.95);
}

.demo-slider-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: white;
  cursor: col-resize;
  transform: translateX(-50%);
  z-index: 10;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.demo-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  background: #667eea;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  transition: all 0.3s ease;
}

.demo-handle:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.demo-labels {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  pointer-events: none;
}

.demo-label {
  flex: 1;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.demo-label-original {
  justify-content: flex-end;
  padding-right: 2rem;
}

.demo-label-compressed {
  justify-content: flex-end;
  padding-left: 2rem;
}

.label-title {
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin-bottom: 0.3rem;
}

.label-size {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.label-note {
  font-size: 0.8rem;
  opacity: 0.9;
}

.demo-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.demo-stat {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8f9ff 0%, #eef2ff 100%);
  border-radius: 12px;
  border: 1px solid rgba(102, 126, 234, 0.1);
  transition: all 0.3s ease;
}

.demo-stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.stat-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #333;
  line-height: 1;
}

.stat-label {
  color: #666;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 0.3rem;
}

/* Testimonials Section */
.testimonials-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.testimonials-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="%23ffffff"/></svg>')
    no-repeat center top;
  background-size: cover;
  opacity: 0.1;
}

.testimonials-section h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}

.testimonials-subtitle {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 3rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.testimonial-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.testimonial-video {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #f0f4ff;
  overflow: hidden;
  cursor: pointer;
}

.testimonial-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #f0f4ff;
  border: none;
  outline: none;
}

.testimonial-video video::-webkit-media-controls-panel {
  display: none !important;
  -webkit-appearance: none;
}

.testimonial-video video::-webkit-media-controls-play-button {
  display: none !important;
  -webkit-appearance: none;
}

.testimonial-video video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
}

/* Custom Video Play Overlay */
.video-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  pointer-events: none;
}

.testimonial-video:not(.playing) .video-play-overlay {
  opacity: 1;
  pointer-events: auto;
}

.testimonial-video.playing .video-play-overlay {
  opacity: 0;
  pointer-events: none;
}

.play-button {
  width: 60px;
  height: 60px;
  background: rgba(102, 126, 234, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.play-button:hover {
  background: rgba(102, 126, 234, 1);
  transform: scale(1.1);
}

.play-button i {
  color: white;
  font-size: 1.2rem;
  margin-left: 3px; /* Slight offset for play icon */
}

.play-button.pause i {
  margin-left: 0;
}

.testimonial-content {
  padding: 1.2rem;
  color: #333;
}

.testimonial-text {
  margin-bottom: 1.2rem;
}

.testimonial-text p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #555;
  font-style: italic;
  position: relative;
  padding-left: 1.2rem;
  margin: 0;
}

.testimonial-text p::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -8px;
  font-size: 2.2rem;
  color: #667eea;
  font-family: serif;
  line-height: 1;
}

.testimonial-author {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.author-info h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin: 0;
  margin-bottom: 0.2rem;
}

.author-details {
  font-size: 0.85rem;
  color: #666;
  font-weight: 500;
}

.testimonial-rating {
  display: flex;
  gap: 0.25rem;
  flex-shrink: 0;
}

.testimonial-rating i {
  color: #fbbf24;
  font-size: 0.9rem;
}

/* Ensure content doesn't shift */
.hero-section,
.features-section,
.about-section,
.demo-section,
.testimonials-section,
.faq-section,
.results-section {
  overflow-x: hidden;
  width: 100%;
}

/* FAQ Section */
.faq-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9ff 0%, #eef2ff 100%);
  position: relative;
}

.faq-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(102, 126, 234, 0.05) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.faq-section h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 3rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 1;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.faq-item {
  background: white;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(102, 126, 234, 0.08);
}

.faq-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(102, 126, 234, 0.12);
  border-color: rgba(102, 126, 234, 0.15);
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.faq-question::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.05) 0%,
    rgba(118, 75, 162, 0.05) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.faq-question:hover {
  background: linear-gradient(135deg, #eef2ff 0%, #e6edff 100%);
}

.faq-question:hover::before {
  opacity: 1;
}

.faq-question h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin: 0;
  position: relative;
  z-index: 1;
}

.faq-question i:first-child {
  color: #667eea;
  font-size: 1.2rem;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.faq-toggle {
  color: #667eea;
  font-size: 1rem;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.faq-item.active .faq-toggle {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  background: white;
}

.faq-item.active .faq-answer {
  padding: 1.5rem;
  max-height: 200px;
}

.faq-answer p {
  color: #666;
  line-height: 1.6;
  margin: 0;
  font-size: 0.95rem;
}

/* Mobile Responsiveness for Testimonials */
@media screen and (max-width: 768px) {
  .testimonials-section {
    padding: 60px 0;
  }

  .testimonials-section h2 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
  }

  .testimonials-subtitle {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 0 1rem;
  }

  .testimonial-card {
    border-radius: 15px;
  }

  .testimonial-content {
    padding: 1.2rem;
  }

  .testimonial-text p {
    font-size: 0.95rem;
    padding-left: 1.2rem;
  }

  .testimonial-text p::before {
    font-size: 2.5rem;
    top: -8px;
  }

  .author-info h4 {
    font-size: 1rem;
  }

  .author-details {
    font-size: 0.85rem;
  }

  .testimonial-author {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .testimonial-rating {
    align-self: flex-end;
  }

  .play-button {
    width: 50px;
    height: 50px;
  }

  .play-button i {
    font-size: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .testimonials-grid {
    margin: 0 0.5rem;
  }

  .testimonial-content {
    padding: 1rem;
  }

  .testimonial-text p {
    font-size: 0.9rem;
    padding-left: 1rem;
  }

  .testimonial-text p::before {
    font-size: 2rem;
    top: -5px;
  }

  .play-button {
    width: 45px;
    height: 45px;
  }

  .play-button i {
    font-size: 0.9rem;
  }
}
