/* Home page specific styles */

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

.hero-compact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  animation: float 20s ease-in-out infinite;
}

.hero-compact-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-compact h1 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.1;
  letter-spacing: -1px;
}

.hero-compact .highlight {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-compact p {
  font-size: 20px;
  opacity: 0.95;
  line-height: 1.5;
  max-width: 600px;
  margin: 0 auto;
}

/* Main Tools Section - Most Prominent */
.tools-section {
  padding: 100px 0;
  background: var(--light-bg);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.tool-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--light-card);
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary-500), var(--primary-600));
  transform: scaleX(0);
  transition: transform 0.3s ease;
  border-radius: 20px 20px 0 0;
}

.tool-card:hover::before {
  transform: scaleX(1);
}

.tool-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-500);
}

.tool-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  position: relative;
}

.tool-card:hover .tool-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 25px rgba(91, 140, 255, 0.3);
}

.tool-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--light-text);
}

.tool-content p {
  color: var(--light-muted);
  line-height: 1.5;
  margin: 0;
  font-size: 14px;
}

.tool-action {
  margin-top: 16px;
  text-align: right;
}

.action-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-500);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.tool-card:hover .action-text {
  transform: translateX(4px);
  color: var(--primary-600);
}

/* Tool-specific color variations */
.tool-compress .tool-icon {
  background: linear-gradient(135deg, #10b981, #059669);
}

.tool-resize .tool-icon {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.tool-crop .tool-icon {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.tool-convert .tool-icon {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

/* Stats Section */
.stats-section {
  padding: 80px 0;
  background: white;
  border-top: 1px solid var(--light-border);
  border-bottom: 1px solid var(--light-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  text-align: center;
}

.stat-item {
  padding: 20px;
}

.stat-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--primary-500);
  margin-bottom: 8px;
  line-height: 1;
}

.stat-label {
  font-size: 16px;
  color: var(--light-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* CTA section */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  color: white;
}

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

.cta-content h2 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 32px;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-actions .btn {
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Responsive design */
@media (max-width: 768px) {
  .hero-compact {
    padding: 50px 0;
  }

  .hero-compact h1 {
    font-size: 36px;
  }

  .hero-compact p {
    font-size: 18px;
  }

  .tools-section {
    padding: 80px 0;
  }

  .tools-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .tool-card {
    padding: 20px;
  }

  .tool-icon {
    width: 48px;
    height: 48px;
  }

  .tool-content h3 {
    font-size: 18px;
  }

  .tool-content p {
    font-size: 13px;
  }

  .stats-section {
    padding: 60px 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .stat-number {
    font-size: 36px;
  }

  .stat-label {
    font-size: 14px;
  }

  .cta-content h2 {
    font-size: 32px;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .cta-actions .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-compact h1 {
    font-size: 28px;
  }

  .hero-compact p {
    font-size: 16px;
  }

  .tools-grid {
    gap: 20px;
  }

  .tool-card {
    padding: 16px;
  }

  .tool-icon {
    width: 44px;
    height: 44px;
  }

  .tool-content h3 {
    font-size: 16px;
  }

  .tool-content p {
    font-size: 12px;
  }

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

  .stat-number {
    font-size: 32px;
  }

  .stat-label {
    font-size: 12px;
  }

  .cta-content h2 {
    font-size: 28px;
  }
}
