/* 
 * Main stylesheet for pornaigenerator.pw
 * Optimized for SEO and mobile responsiveness
 */

/* Base styles and CSS reset */
:root {
  /* Main color scheme - different from previous sites */
  --primary: #e91e63;
  --secondary: #673ab7;
  --accent: #00bcd4;
  --dark: #333333;
  --light: #f9f9f9;
  --gray: #888888;
  --white: #ffffff;
  
  /* Typography */
  --body-font: 'Lato', sans-serif;
  --heading-font: 'Poppins', sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  
  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  
  /* Transitions */
  --transition: all 0.3s ease;
}

/* Apply font from Google using @import for better performance */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Poppins:wght@500;700&display=swap');

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

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

body {
  font-family: var(--body-font);
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, svg {
  max-width: 100%;
  display: block;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
  color: var(--dark);
}

h1 {
  font-size: 2.8rem;
  margin-bottom: var(--space-md);
}

h2 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: var(--space-md);
  position: relative;
}

h2:after {
  content: '';
  position: absolute;
  width: 80px;
  height: 4px;
  background: var(--primary);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

h3 {
  font-size: 1.5rem;
  color: var(--dark);
}

p {
  margin-bottom: var(--space-sm);
}

.highlight {
  color: var(--primary);
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

section {
  padding: var(--space-lg) 0;
}

/* Header */
header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem var(--space-md);
  max-width: 1200px;
  margin: 0 auto;
}

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

.logo-svg {
  width: 160px;
  height: 40px;
}

.menu {
  display: flex;
  list-style: none;
  gap: var(--space-md);
}

.menu li a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  padding: 0.5rem 0;
  position: relative;
}

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

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

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

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
}

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

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: var(--space-lg) 0;
}

.hero .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
}

.hero-text {
  flex: 1;
  max-width: 600px;
}

.hero-visual {
  flex: 1;
  max-width: 500px;
}

.hero-graphic {
  width: 100%;
  height: auto;
}

/* Banner */
.banner {
  background-color: var(--primary);
  padding: var(--space-sm) 0;
  color: var(--white);
  text-align: center;
}

.banner p {
  margin: 0;
  font-size: 1.2rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1rem;
}

.primary-btn {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.primary-btn:hover {
  background-color: #d81b60;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(233, 30, 99, 0.4);
}

/* Features Section */
.features {
  background-color: var(--white);
  padding: var(--space-lg) 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.feature-card {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background-color: var(--light);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-sm);
}

/* Demo Section */
.demo {
  background-color: var(--light);
  padding: var(--space-lg) 0;
}

.steps {
  margin: var(--space-lg) 0;
}

.step {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--space-md);
  gap: var(--space-md);
}

.step-number {
  background-color: var(--primary);
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-content {
  flex-grow: 1;
}

.cta {
  text-align: center;
  margin-top: var(--space-lg);
}

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

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}

.faq-item {
  background-color: var(--light);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

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

.cta-section h2, 
.cta-section p {
  color: var(--white);
}

.cta-section h2:after {
  background: var(--white);
}

.cta-section .primary-btn {
  background-color: var(--white);
  color: var(--primary);
  margin-top: var(--space-md);
}

.cta-section .primary-btn:hover {
  background-color: var(--light);
  color: var(--primary);
}

/* Footer */
footer {
  background-color: var(--dark);
  color: var(--white);
  padding: var(--space-lg) 0 var(--space-md);
  margin-top: auto;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-md);
}

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

.footer-svg {
  width: 160px;
  height: 40px;
  margin-bottom: var(--space-sm);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.footer-col h4 {
  color: var(--primary);
  margin-bottom: var(--space-sm);
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 40px;
  height: 2px;
  background-color: var(--primary);
}

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

.footer-col ul li {
  margin-bottom: var(--space-xs);
}

.footer-col ul li a {
  color: var(--gray);
  text-decoration: none;
  transition: var(--transition);
}

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

.footer-bottom {
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.9rem;
  color: var(--gray);
}

/* Responsive Styles */
@media (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }
  
  .nav-toggle-label {
    display: flex;
    flex-direction: column;
  }
  
  .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: var(--white);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }
  
  .menu li {
    width: 100%;
  }
  
  .menu li a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--light);
  }
  
  .nav-toggle:checked ~ .menu {
    display: flex;
  }
  
  .nav-toggle:checked + .nav-toggle-label span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .nav-toggle:checked + .nav-toggle-label span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle:checked + .nav-toggle-label span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .step {
    flex-direction: column;
    text-align: center;
  }
  
  .step-number {
    margin: 0 auto var(--space-xs);
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-col h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
  }
  
  section {
    padding: var(--space-md) 0;
  }
  
  .container {
    padding: 0 var(--space-sm);
  }
  
  .feature-grid, .faq-grid {
    grid-template-columns: 1fr;
  }
}
