/* ===== Index Page Styles ===== */

/* ===== Hero Section ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  overflow: hidden;
}

.hero-background {
  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 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 1200px;
  padding: 0 20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  padding: 8px 20px;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 600;
}

.badge-icon {
  font-size: 16px;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  margin: 0 0 24px;
  line-height: 1.1;
  background: linear-gradient(45deg, #fff, #e0e7ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.4rem;
  margin: 0 0 40px;
  opacity: 0.9;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.hero-button.primary {
  background: white;
  color: #667eea;
}

.hero-button.primary:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.hero-button.secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-button.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.button-icon {
  font-size: 18px;
}

.hero-demo {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.demo-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 20px 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.demo-placeholder {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.demo-placeholder.enhanced {
  background: rgba(16, 185, 129, 0.3);
  border: 2px solid rgba(16, 185, 129, 0.5);
}

.demo-icon {
  font-size: 24px;
}

.demo-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.demo-arrow {
  font-size: 24px;
  font-weight: 700;
  color: #10b981;
}

/* ===== Features Section ===== */
.features-section {
  padding: 100px 0;
  background: #f8fafc;
}

.features-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.features-header {
  text-align: center;
  margin-bottom: 80px;
}

.features-title {
  font-size: 3rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 16px;
}

.features-subtitle {
  font-size: 1.3rem;
  color: #64748b;
  margin: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background: white;
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: #667eea;
}

.feature-card[data-feature="restoration"]:hover {
  border-color: #10b981;
}

.feature-card[data-feature="imgToImg"]:hover {
  border-color: #f59e0b;
}

.feature-card[data-feature="imgToVideo"]:hover {
  border-color: #ef4444;
}

.feature-card[data-feature="videoToVideo"]:hover {
  border-color: #8b5cf6;
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 16px;
}

.feature-description {
  color: #64748b;
  line-height: 1.6;
  margin: 0 0 24px;
}

.feature-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: #667eea;
}

.stat-label {
  font-size: 0.9rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.feature-link:hover {
  color: #5a67d8;
  gap: 12px;
}

.link-arrow {
  transition: transform 0.3s ease;
}

.feature-link:hover .link-arrow {
  transform: translateX(4px);
}

/* ===== Gallery Section ===== */
.gallery-section {
  padding: 100px 0;
  background: white;
}

.gallery-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.gallery-header {
  text-align: center;
  margin-bottom: 80px;
}

.gallery-title {
  font-size: 3rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 16px;
}

.gallery-subtitle {
  font-size: 1.3rem;
  color: #64748b;
  margin: 0;
}

.gallery-list {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.gallery-item {
  background: #f8fafc;
  border-radius: 24px;
  padding: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.gallery-item[data-model="restoration"]:hover {
  border-color: #10b981;
}

.gallery-item[data-model="imgToImg"]:hover {
  border-color: #f59e0b;
}

.gallery-item[data-model="imgToVideo"]:hover {
  border-color: #ef4444;
}

.gallery-item[data-model="videoToVideo"]:hover {
  border-color: #8b5cf6;
}

.gallery-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.gallery-text {
  padding-right: 20px;
}

.model-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.model-icon {
  font-size: 2.5rem;
}

.model-title {
  font-size: 2rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0;
}

.story-content {
  margin-bottom: 32px;
}

.story-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 16px;
}

.story-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #64748b;
  margin: 0;
}

.model-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #667eea;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.model-link:hover {
  color: #5a67d8;
  gap: 12px;
}

.link-arrow {
  transition: transform 0.3s ease;
}

.model-link:hover .link-arrow {
  transform: translateX(4px);
}

.gallery-visual {
  position: relative;
}

/* ===== Before/After Slider ===== */
.comparison-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.comparison-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.after-image,
.before-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.after-image {
  z-index: 2;
  clip-path: polygon(50% 0%, 100% 0%, 100% 100%, 50% 100%);
}

.before-image {
  z-index: 1;
}

.comparison-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-container {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  transform: translateX(-50%);
  z-index: 3;
  cursor: ew-resize;
}

.slider-line {
  width: 100%;
  height: 100%;
  background: #667eea;
  box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: white;
  border: 3px solid #667eea;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.slider-handle:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.slider-icon {
  font-size: 1.2rem;
  color: #667eea;
}

/* ===== Three Column Layout ===== */
.three-column-layout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
}

.column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.left-column,
.right-column {
  min-height: 200px;
}

.center-column {
  min-width: 80px;
}

.image-container,
.video-container {
  position: relative;
  width: 100%;
  max-width: 250px;
}

.static-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.image-label,
.video-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #64748b;
  text-align: center;
  margin-top: 8px;
}

.video-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.video-placeholder:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.video-placeholder.old-video {
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

.video-placeholder.new-video {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
}

.play-button {
  font-size: 2rem;
  color: #667eea;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.play-button:hover {
  transform: scale(1.1);
  background: white;
}

.quality-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.text-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.transformation-arrow {
  font-size: 2rem;
  color: #667eea;
  font-weight: 700;
}

.transformation-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: #64748b;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== How It Works Section ===== */
.how-it-works {
  padding: 100px 0;
  background: #f8fafc;
}

.how-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.how-header {
  text-align: center;
  margin-bottom: 80px;
}

.how-title {
  font-size: 3rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 16px;
}

.how-subtitle {
  font-size: 1.3rem;
  color: #64748b;
  margin: 0;
}

.how-steps {
  display: grid;
  gap: 40px;
}

.step-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 30px;
  align-items: center;
  padding: 30px;
  background: #f8fafc;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.step-item:hover {
  background: #f1f5f9;
  transform: translateX(10px);
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
}

.step-content {
  flex: 1;
}

.step-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 12px;
}

.step-description {
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

.step-visual {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.step-icon {
  font-size: 2rem;
}

/* ===== Testimonials Section ===== */
.testimonials-section {
  padding: 100px 0;
  background: #f8fafc;
}

.testimonials-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 80px;
}

.testimonials-title {
  font-size: 3rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 16px;
}

.testimonials-subtitle {
  font-size: 1.3rem;
  color: #64748b;
  margin: 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: white;
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #f1f5f9;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.testimonial-content {
  margin-bottom: 30px;
}

.testimonial-stars {
  color: #fbbf24;
  font-size: 20px;
  margin-bottom: 20px;
}

.testimonial-text {
  font-size: 16px;
  line-height: 1.6;
  color: #374151;
  margin: 0;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-avatar {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
}

.author-name {
  font-weight: 700;
  color: #1e293b;
  font-size: 16px;
}

.author-role {
  color: #64748b;
  font-size: 14px;
}

/* ===== FAQ Section ===== */
.faq-section {
  padding: 100px 0;
  background: white;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.faq-header {
  text-align: center;
  margin-bottom: 80px;
}

.faq-title {
  font-size: 3rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 16px;
}

.faq-subtitle {
  font-size: 1.3rem;
  color: #64748b;
  margin: 0;
}

.faq-grid {
  display: grid;
  gap: 16px;
}

.faq-item {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 24px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: #f8fafc;
}

.faq-icon {
  font-size: 24px;
  color: #667eea;
  font-weight: 300;
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding: 0 24px 24px;
  margin: 0;
  color: #64748b;
  line-height: 1.6;
  font-size: 16px;
}

/* ===== CTA Section ===== */
.cta-section {
  background: linear-gradient(135deg, #1e293b, #334155);
  color: white;
  padding: 100px 0;
  text-align: center;
}

.cta-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.cta-title {
  font-size: 3rem;
  font-weight: 800;
  margin: 0 0 16px;
}

.cta-subtitle {
  font-size: 1.3rem;
  margin: 0 0 40px;
  opacity: 0.9;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.cta-button.primary {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.cta-button.primary:hover {
  background: linear-gradient(135deg, #5a67d8, #6b46c1);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.cta-button.secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-button.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ===== Responsive Design ===== */
@media (max-width: 1200px) {
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .testimonials-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-button {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .demo-item {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
  }

  .demo-arrow {
    transform: rotate(90deg);
  }

  .features-title,
  .gallery-title,
  .how-title,
  .testimonials-title,
  .faq-title,
  .cta-title {
    font-size: 2.5rem;
  }

  .gallery-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .gallery-text {
    padding-right: 0;
    text-align: center;
  }

  .model-header {
    justify-content: center;
  }

  .comparison-container {
    max-width: 400px;
  }

  .three-column-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 300px;
  }

  .center-column {
    order: -1;
    min-width: auto;
  }

  .transformation-arrow {
    transform: rotate(90deg);
  }

  .step-item {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }

  .step-item:hover {
    transform: translateY(-4px);
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-button {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .features-title,
  .gallery-title,
  .how-title,
  .testimonials-title,
  .faq-title,
  .cta-title {
    font-size: 2rem;
  }

  .feature-card {
    padding: 30px 20px;
  }

  .gallery-card {
    padding: 20px;
  }

  .media-placeholder {
    height: 100px;
  }

  .placeholder-icon {
    font-size: 1.5rem;
  }

  .step-item {
    padding: 20px;
  }

  .testimonial-card {
    padding: 30px 20px;
  }

  .faq-question {
    padding: 20px;
    font-size: 16px;
  }

  .faq-answer p {
    padding: 0 20px 20px;
  }
}