/* 
 * Main stylesheet for porngenerator.party
 * Optimized for SEO and mobile responsiveness
 */

/* Base styles and CSS reset */
:root {
  /* Main color scheme - unique green/blue palette */
  --primary: #2ecc71;
  --secondary: #3498db;
  --accent: #9b59b6;
  --dark: #2c3e50;
  --light: #ecf0f1;
  --gray: #95a5a6;
  --white: #ffffff;
  
  /* Typography */
  --body-font: 'Roboto', sans-serif;
  --heading-font: 'Montserrat', sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
}

/* Apply font from Google using @import for better performance */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;700&family=Roboto:wght@400;500&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(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

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

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

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

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

h1 span {
  color: var(--primary);
}

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

h2::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background: var(--primary);
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
}

h3 {
  font-size: 1.3rem;
  color: var(--dark);
  margin-top: var(--space-xs);
}

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

/* Header */
header {
  background-color: var(--dark);
  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: var(--space-sm) 0;
}

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

.logo-icon {
  height: 40px;
  width: auto;
}

nav {
  display: flex;
  align-items: center;
}

#menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
}

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

.nav-menu li a {
  color: var(--white);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s ease;
}

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

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

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

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, #34495e 100%);
  color: var(--white);
  padding: var(--space-xl) 0;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

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

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: var(--space-md);
}

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

.hero-svg {
  width: 100%;
  max-width: 400px;
  height: auto;
}

/* Buttons */
.button {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 10px rgba(46, 204, 113, 0.3);
}

.primary:hover {
  background-color: #27ae60;
  transform: translateY(-3px);
}

.secondary {
  background-color: var(--secondary);
  color: var(--white);
  box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

.secondary:hover {
  background-color: #2980b9;
  transform: translateY(-3px);
}

/* Features Section */
.features {
  background-color: var(--light);
}

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

.card {
  background-color: var(--white);
  border-radius: 10px;
  padding: var(--space-md);
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

/* Tools Section */
.tools {
  background-color: var(--white);
}

.process {
  max-width: 800px;
  margin: 0 auto;
}

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

.step-circle {
  background-color: var(--primary);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-right: var(--space-md);
  flex-shrink: 0;
}

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

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

/* About Section */
.about {
  background: linear-gradient(135deg, var(--light) 0%, #dfe6e9 100%);
}

.about-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.about-text p {
  margin-bottom: var(--space-md);
}

.about-svg {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

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

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.footer-logo p {
  color: var(--gray);
  margin-top: var(--space-xs);
}

.footer-icon {
  height: 50px;
  width: auto;
  margin-bottom: var(--space-sm);
}

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

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

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

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

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

.footer-group ul li a {
  color: var(--gray);
  transition: color 0.3s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-md) 0;
  margin-top: var(--space-md);
  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;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .about-svg {
    margin-top: var(--space-md);
  }
}

@media (max-width: 768px) {
  .hero .container,
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .hero {
    text-align: center;
  }
  
  .hero-image {
    margin-top: var(--space-md);
  }
  
  .menu-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    position: relative;
    cursor: pointer;
  }
  
  .menu-icon::before,
  .menu-icon::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    transition: all 0.3s ease;
  }
  
  .menu-icon::before {
    top: -8px;
  }
  
  .menu-icon::after {
    bottom: -8px;
  }
  
  #menu-toggle:checked + label .menu-icon {
    background-color: transparent;
  }
  
  #menu-toggle:checked + label .menu-icon::before {
    transform: rotate(45deg);
    top: 0;
  }
  
  #menu-toggle:checked + label .menu-icon::after {
    transform: rotate(-45deg);
    bottom: 0;
  }
  
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: var(--dark);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 100;
  }
  
  #menu-toggle:checked ~ .nav-menu {
    max-height: 300px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }
  
  .nav-menu li {
    width: 100%;
  }
  
  .nav-menu li a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .footer-links {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .footer-group h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-content,
  .footer-group {
    text-align: center;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
  }
  
  .container {
    padding: 0 var(--space-sm);
  }
  
  section {
    padding: var(--space-md) 0;
  }
  
  .feature-cards {
    grid-template-columns: 1fr;
  }
  
  .step {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .step-circle {
    margin-right: 0;
    margin-bottom: var(--space-xs);
  }
}
