/* 
 * faceswapai.site - Main Stylesheet
 * A modern, SEO-optimized design with red gradient theme
 */

/* ===== BASE STYLES ===== */
:root {
  --primary-color: #FF416C;
  --secondary-color: #FF4B2B;
  --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --dark-text: #333333;
  --light-text: #ffffff;
  --gray-text: #777777;
  --light-bg: #f9f9f9;
  --border-radius: 8px;
  --box-shadow: 0 10px 30px rgba(255, 65, 108, 0.2);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--dark-text);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: #ffffff;
}

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

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

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.3;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

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

h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title span {
  color: var(--primary-color);
}

.section-title:after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--gradient);
  margin: 20px auto 0;
  border-radius: 2px;
}

/* ===== BUTTONS ===== */
.btn-primary, .btn-secondary, .btn-small {
  display: inline-block;
  padding: 12px 30px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--box-shadow);
}

.btn-primary {
  background: var(--gradient);
  color: var(--light-text);
  border: none;
}

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

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: rgba(255, 65, 108, 0.1);
  transform: translateY(-3px);
}

.btn-small {
  padding: 8px 20px;
  font-size: 0.9rem;
  background: var(--gradient);
  color: var(--light-text);
  border: none;
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 65, 108, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 65, 108, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 65, 108, 0);
  }
}

/* ===== NAVIGATION ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.navbar {
  display: flex;
  align-items: center;
  height: 70px;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.logo svg {
  margin-right: 10px;
}

.logo .domain {
  color: var(--primary-color);
}

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

.menu li {
  margin-left: 30px;
}

.menu li a {
  font-weight: 500;
  color: var(--dark-text);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--dark-text);
  margin: 3px 0;
  transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
  padding: 150px 0 100px;
  background-color: var(--light-bg);
  position: relative;
  overflow: hidden;
}

.hero:before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: var(--gradient);
  opacity: 0.1;
  transform: rotate(30deg);
  z-index: 0;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.hero-content {
  width: 50%;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero-content h1 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--gray-text);
}

.cta-buttons {
  display: flex;
  gap: 15px;
}

.hero-image {
  width: 45%;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

/* ===== FEATURES SECTION ===== */
.features {
  background-color: #ffffff;
}

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

.feature-card {
  padding: 30px;
  background: #ffffff;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: var(--transition);
}

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

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

.feature-icon svg {
  width: 100%;
  height: 100%;
}

/* ===== HOW IT WORKS SECTION ===== */
.how-it-works {
  background-color: var(--light-bg);
  position: relative;
}

.steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 50px;
}

.step {
  width: 30%;
  text-align: center;
  position: relative;
}

.step:not(:last-child):after {
  content: '';
  position: absolute;
  top: 30px;
  right: -15%;
  width: 30%;
  height: 2px;
  background: var(--gradient);
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--gradient);
  color: var(--light-text);
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
  margin: 0 auto 20px;
}

.demo-action {
  text-align: center;
  margin-top: 40px;
}

/* ===== FAQ SECTION ===== */
.faq {
  background-color: #ffffff;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
  gap: 30px;
}

.faq-item {
  padding: 30px;
  background-color: var(--light-bg);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.faq-item:hover {
  box-shadow: var(--box-shadow);
}

.faq-item h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

/* ===== CTA SECTION ===== */
.cta {
  background: var(--gradient);
  color: var(--light-text);
  text-align: center;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.cta:before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(30deg);
}

.cta h2 {
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.cta p {
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.cta .btn-primary {
  background: var(--light-text);
  color: var(--primary-color);
  position: relative;
  z-index: 1;
}

.cta .btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
}

/* ===== FOOTER ===== */
footer {
  background-color: #333;
  color: #fff;
  padding: 60px 0 30px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.footer-logo svg {
  margin-right: 10px;
}

.footer-links {
  display: flex;
}

.footer-col {
  margin-left: 60px;
}

.footer-col h4 {
  margin-bottom: 20px;
  color: var(--primary-color);
}

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

.footer-col ul li a {
  color: #aaa;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #aaa;
  font-size: 0.9rem;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .steps {
    flex-direction: column;
    align-items: center;
  }
  
  .step {
    width: 80%;
    margin-bottom: 40px;
  }
  
  .step:not(:last-child):after {
    display: none;
  }
  
  .faq-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-top {
    flex-direction: column;
  }
  
  .footer-links {
    margin-top: 30px;
  }
  
  .footer-col {
    margin-left: 0;
    margin-right: 40px;
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }
  
  .hero {
    padding: 120px 0 60px;
  }
  
  .hero .container {
    flex-direction: column;
  }
  
  .hero-content, .hero-image {
    width: 100%;
    text-align: center;
  }
  
  .hero-content {
    margin-bottom: 40px;
  }
  
  .cta-buttons {
    justify-content: center;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    flex-direction: column;
    background-color: #fff;
    padding: 20px 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
  }
  
  .menu.active {
    left: 0;
  }
  
  .menu li {
    margin: 15px 0;
    text-align: center;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    flex-direction: column;
  }
  
  .footer-col {
    margin-bottom: 30px;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .step {
    width: 100%;
  }
  
  .faq-item {
    padding: 20px;
  }
  
  .btn-primary, .btn-secondary {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .cta {
    padding: 60px 0;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-card, .step, .faq-item {
  animation: fadeIn 0.8s ease forwards;
  opacity: 0;
}

.feature-card:nth-child(1) { animation-delay: 0.2s; }
.feature-card:nth-child(2) { animation-delay: 0.4s; }
.feature-card:nth-child(3) { animation-delay: 0.6s; }
.feature-card:nth-child(4) { animation-delay: 0.8s; }

.step:nth-child(1) { animation-delay: 0.3s; }
.step:nth-child(2) { animation-delay: 0.6s; }
.step:nth-child(3) { animation-delay: 0.9s; }
