/* 
* faceswap-aiporn.site - Main Stylesheet
* This design uses red/orange/yellow gradients with dark background - distinct from previous sites
*/

:root {
  --primary: #FF6B6B;
  --secondary: #FFD166;
  --dark: #181818;
  --dark-alt: #222222;
  --light: #ffffff;
  --gray: #888888;
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --shadow: 0 10px 30px rgba(255, 107, 107, 0.2);
  --radius: 12px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--dark);
  color: var(--light);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

.wrapper {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

ul {
  list-style: none;
}

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

/* Typography */
h1, h2, h3, h4 {
  margin-bottom: 1rem;
  line-height: 1.3;
  font-weight: 700;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 2.5rem;
  background-image: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1.5rem;
}

/* Buttons */
.primary-btn {
  display: inline-block;
  background: var(--gradient);
  color: var(--light);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  border: none;
  cursor: pointer;
}

.primary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(255, 107, 107, 0.3);
}

.primary-btn.large {
  padding: 1.25rem 3rem;
  font-size: 1.1rem;
}

.secondary-btn {
  display: inline-block;
  background: transparent;
  color: var(--light);
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: var(--transition);
  text-align: center;
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
}

.try-btn {
  background: var(--gradient);
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
}

.try-btn:hover {
  transform: translateY(-2px);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(24, 24, 24, 0.95);
  backdrop-filter: blur(10px);
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
  padding: 1rem 0;
}

header .wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-icon {
  width: 40px;
  height: 40px;
  margin-right: 0.75rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.site-name {
  font-weight: 700;
  font-size: 1.1rem;
}

.site-tagline {
  color: var(--primary);
  font-size: 0.9rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 35px;
  height: 30px;
  position: relative;
  z-index: 101;
}

.menu-toggle span {
  display: block;
  width: 30px;
  height: 3px;
  margin: 5px 0;
  background-color: var(--light);
  border-radius: 3px;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  padding: 10rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero .wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}

.hero-content {
  max-width: 600px;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
}

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

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.hero-image {
  position: relative;
  z-index: 1;
}

.hero-image svg {
  filter: drop-shadow(0px 10px 20px rgba(0, 0, 0, 0.3));
  max-width: 100%;
}

.wave-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

/* Features Section */
.features {
  padding: 5rem 0;
  background-color: var(--dark-alt);
  position: relative;
}

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

.feature-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
}

.feature-card h3 {
  color: var(--primary);
}

.feature-card p {
  opacity: 0.8;
}

/* How It Works Section */
.how-it-works {
  padding: 7rem 0;
  position: relative;
}

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

.step {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  position: relative;
  transition: var(--transition);
}

.step:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.step-number {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.step-connector {
  display: none;
}

.step-image {
  width: 100px;
  height: 100px;
  margin: 1.5rem auto 0;
}

.cta-center {
  text-align: center;
  margin-top: 3rem;
}

/* Gallery Section */
.gallery {
  padding: 6rem 0;
  background-color: var(--dark-alt);
  position: relative;
}

.gallery-showcase {
  max-width: 800px;
  margin: 0 auto 3rem;
}

.before-after {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.comparison-slider {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: var(--radius);
}

.comparison-image {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comparison-image.before {
  left: 0;
  z-index: 1;
}

.comparison-image.after {
  left: 50%;
  z-index: 2;
}

.slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: var(--gradient);
  cursor: ew-resize;
  transform: translateX(-50%);
  z-index: 3;
}

.slider-handle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: var(--gradient);
  border-radius: 50%;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}

.slider-labels span {
  font-weight: 600;
  color: var(--primary);
}

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

.testimonial {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: var(--radius);
  position: relative;
}

.testimonial p {
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 4rem;
  color: var(--primary);
  opacity: 0.3;
  line-height: 1;
}

.user {
  font-weight: 600;
  color: var(--primary);
}

/* FAQ Section */
.faq {
  padding: 7rem 0;
  position: relative;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto 4rem;
}

.faq-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
}

.question {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.question h3 {
  margin-bottom: 0;
  font-size: 1.2rem;
}

.arrow {
  width: 20px;
  height: 20px;
  position: relative;
  transition: var(--transition);
}

.arrow::before, .arrow::after {
  content: '';
  position: absolute;
  background-color: var(--primary);
  transition: var(--transition);
}

.arrow::before {
  width: 2px;
  height: 20px;
  top: 0;
  left: 9px;
}

.arrow::after {
  width: 20px;
  height: 2px;
  top: 9px;
  left: 0;
}

.faq-item.active .arrow::before {
  transform: rotate(90deg);
}

.answer {
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
}

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

.answer p {
  padding: 0 1.5rem 1.5rem;
  opacity: 0.8;
}

.cta-box {
  background: var(--dark-alt);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.cta-box h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.cta-box p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
footer {
  background-color: var(--dark-alt);
  padding: 5rem 0 2rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-brand {
  font-weight: 600;
  line-height: 1.4;
}

.tagline {
  color: var(--gray);
  font-size: 0.9rem;
}

.footer-nav {
  display: flex;
  gap: 4rem;
}

.nav-column h4 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  position: relative;
}

.nav-column h4::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--gradient);
  border-radius: 2px;
}

.nav-column ul li {
  margin-bottom: 0.8rem;
}

.nav-column ul li a {
  opacity: 0.7;
  transition: var(--transition);
}

.nav-column ul li a:hover {
  opacity: 1;
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  opacity: 0.6;
  font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
  html {
    font-size: 15px;
  }
  
  .hero .wrapper {
    grid-template-columns: 1fr;
  }
  
  .hero-image {
    order: -1;
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .menu-toggle {
    display: block;
  }
  
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--dark-alt);
    z-index: 100;
    transition: var(--transition);
    padding: 6rem 2rem 2rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  }
  
  nav.active {
    right: 0;
  }
  
  .main-nav {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-buttons a {
    width: 100%;
    text-align: center;
    margin-bottom: 1rem;
  }
  
  .comparison-slider {
    height: 300px;
  }
  
  .footer-top {
    flex-direction: column;
    gap: 2.5rem;
  }
}

@media (max-width: 576px) {
  .features-grid,
  .testimonials,
  .steps {
    grid-template-columns: 1fr;
  }
  
  .cta-box {
    padding: 2rem 1rem;
  }
  
  .footer-nav {
    flex-direction: column;
    gap: 2rem;
  }
  
  .comparison-slider {
    height: 250px;
  }
  
  .hero {
    padding: 8rem 0 3rem;
  }
}

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

@keyframes slideRight {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}
