/* Modern, Professional CSS for FaceSwapTool.ai */

/* Global Reset and Base Styles */
:root {
  --primary-color: #4f46e5;
  --secondary-color: #7c3aed;
  --accent-color: #3b82f6;
  --light-bg: #f9fafb;
  --dark-bg: #1f2937;
  --text-dark: #1f2937;
  --text-light: #f9fafb;
  --border-radius: 8px;
  --box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  color: var(--text-dark);
  line-height: 1.6;
  background-color: #fff;
  overflow-x: hidden;
  padding-top: 80px; /* For fixed header */
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

img {
  max-width: 100%;
  height: auto;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 15px 0;
}

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

.logo a {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.logo h1 {
  margin: 0;
  font-size: 1.5rem;
}

.menu ul {
  display: flex;
  list-style: none;
  gap: 25px;
}

.menu li a {
  font-weight: 500;
  color: var(--text-dark);
  padding: 8px 0;
  position: relative;
}

.menu li a:hover {
  color: var(--primary-color);
}

.menu li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.menu li a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-image {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.face-swap-demo {
  max-width: 80%;
  max-height: 350px;
  border-radius: 10px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  border: 5px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.3s ease;
}

.face-swap-demo:hover {
  transform: scale(1.02);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* CTA Buttons */
.cta-button {
  display: inline-block;
  background-color: white;
  color: var(--primary-color);
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.15);
  color: var(--secondary-color);
}

/* Section Styling */
section {
  padding: 80px 0;
}

section h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 2.5rem;
  position: relative;
  padding-bottom: 15px;
}

section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

/* Face Swap Playground */
.face-swap-playground {
  background-color: var(--light-bg);
  text-align: center;
}

.upload-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.upload-box {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 30px;
  width: 300px;
  box-shadow: var(--box-shadow);
}

.upload-area {
  height: 200px;
  border: 2px dashed #ddd;
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
  cursor: pointer;
  transition: var(--transition);
}

.upload-area:hover {
  border-color: var(--primary-color);
}

.upload-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: var(--border-radius);
  margin-top: 15px;
  cursor: pointer;
  transition: var(--transition);
}

.upload-button:hover {
  background-color: var(--secondary-color);
}

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

.example-image {
  margin-top: 15px;
}

.sample-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

.swap-button {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  border: none;
  padding: 15px 40px;
  border-radius: var(--border-radius);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--box-shadow);
  margin: 20px 0 40px;
}

.swap-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.2);
}

.result-container {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 30px;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: var(--box-shadow);
}

.result-image-container {
  min-height: 400px;
  border-radius: var(--border-radius);
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
  color: #666;
  font-size: 1.2rem;
  overflow: hidden;
}

.result-demo-image {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  transition: transform 0.5s ease;
}

.result-demo-image:hover {
  transform: scale(1.03);
}

.enhancement-options {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.enhancement-button, .download-button {
  padding: 12px 25px;
  border-radius: var(--border-radius);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.enhancement-button {
  background-color: white;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.enhancement-button:hover {
  background-color: var(--light-bg);
}

.download-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
}

.download-button:hover {
  background-color: var(--secondary-color);
}

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 20px;
}

.feature-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  text-align: center;
  display: flex;
  flex-direction: column;
}

.feature-image {
  margin-bottom: 20px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--border-radius);
}

.feature-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.feature-img:hover {
  transform: scale(1.1);
}

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

.feature-card h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

/* How It Works */
.how-it-works {
  background-color: var(--light-bg);
}

.steps-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 0 auto;
  max-width: 1200px;
  flex-wrap: wrap;
  padding: 0 20px;
}

.step {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
  text-align: center;
  flex: 1;
  min-width: 250px;
  max-width: 350px;
  position: relative;
}

.step-number {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 20px;
}

/* Use Cases */
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 20px;
}

.use-case {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
  text-align: center;
}

.use-case h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

/* FAQ Section */
.faq-section {
  background-color: var(--light-bg);
}

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

.faq-item {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: var(--box-shadow);
}

.faq-item h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.2rem;
}

/* Testimonials */
.testimonials {
  text-align: center;
}

.testimonial-showcase {
  max-width: 800px;
  margin: 0 auto 40px;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.testimonial-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.testimonial-image:hover {
  transform: scale(1.02);
}

.testimonials-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 20px;
}

.testimonial {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
  max-width: 350px;
  position: relative;
}

.testimonial::before {
  content: """;
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 4rem;
  color: rgba(79, 70, 229, 0.1);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 20px;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  text-align: center;
  padding: 80px 20px;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .cta-button {
  background-color: white;
  color: var(--primary-color);
}

/* Footer */
footer {
  background-color: var(--dark-bg);
  color: var(--text-light);
  padding: 60px 20px 30px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.footer-column {
  flex: 1;
  min-width: 200px;
}

.footer-column h3 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

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

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-column ul li a:hover {
  color: white;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.copyright {
  text-align: center;
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
  .menu {
    display: none; /* Would need JavaScript for a mobile menu */
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero h2 {
    font-size: 1.5rem;
  }
  
  section {
    padding: 60px 0;
  }
  
  section h2 {
    font-size: 1.8rem;
  }
  
  .step, .feature-card, .use-case {
    min-width: 100%;
  }
}
