/*
   BestAIPorn - Main Stylesheet
   A modern, mobile-responsive design with turquoise and purple gradients
*/

/* === Base & Reset === */
:root {
  --primary: #00C9A7;
  --secondary: #845EC2;
  --dark: #2D3436;
  --light: #FAFBFC;
  --gray-100: #F7F9FA;
  --gray-200: #E8ECEF;
  --gray-300: #DEE2E6;
  --gray-400: #CED4DA;
  --gray-500: #ADB5BD;
  --gray-600: #6C757D;
  --gray-700: #495057;
  --gray-800: #343A40;
  --bg-gradient: linear-gradient(135deg, #00C9A7, #845EC2);
  --text-gradient: linear-gradient(90deg, #00C9A7, #845EC2);
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s ease;
  --transition-slow: all 0.5s ease;
}

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

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

body {
  font-family: 'Poppins', sans-serif;
  color: var(--gray-800);
  line-height: 1.6;
  background-color: var(--light);
}

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
}

h1 {
  font-size: 3.5rem;
  background: var(--text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.5rem;
  color: var(--dark);
  margin-bottom: 2.5rem;
  text-align: center;
  position: relative;
}

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

h3 {
  font-size: 1.5rem;
  color: var(--gray-800);
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.25rem;
  color: var(--light);
  margin-bottom: 1.25rem;
}

p {
  margin-bottom: 1.5rem;
  color: var(--gray-600);
}

/* === Header & Navigation === */
.header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 0;
}

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

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

.logo span {
  font-weight: 700;
  font-size: 1.5rem;
  background: var(--text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-svg {
  display: block;
}

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

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

.nav-links a {
  color: var(--gray-700);
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--bg-gradient);
  transition: var(--transition);
}

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

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

.cta {
  background: var(--bg-gradient);
  color: white !important;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.cta:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.cta::after {
  display: none;
}

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

.menu-toggle span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--bg-gradient);
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: var(--transition);
}

.menu-toggle span:nth-child(1) {
  top: 0px;
}

.menu-toggle span:nth-child(2) {
  top: 10px;
}

.menu-toggle span:nth-child(3) {
  top: 20px;
}

.menu-toggle.active span:nth-child(1) {
  top: 10px;
  transform: rotate(135deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  top: 10px;
  transform: rotate(-135deg);
}

/* === Hero Section === */
.hero {
  padding: 9rem 0 6rem;
  background: linear-gradient(to bottom right, rgba(0, 201, 167, 0.05), rgba(132, 94, 194, 0.05));
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  margin: 0 auto 1.5rem;
  max-width: 800px;
}

.hero p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  color: var(--gray-600);
}

.button {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--bg-gradient);
  color: white;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition);
  box-shadow: var(--shadow);
  border: none;
  cursor: pointer;
  text-align: center;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.button.large {
  padding: 1.25rem 2.5rem;
  font-size: 1.1rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  background: var(--text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 1rem;
  color: var(--gray-600);
}

.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;
}

.wave-divider path {
  fill: var(--light);
}

/* === Top Generators Section === */
.top-generators {
  padding: 6rem 0;
  background-color: var(--light);
}

.generator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.generator-card {
  background: white;
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.card-icon {
  margin-bottom: 1.5rem;
}

.generator-card h3 {
  color: var(--dark);
  margin-bottom: 1rem;
}

.generator-card p {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.count {
  color: var(--gray-700);
  font-weight: 600;
}

.card-button {
  padding: 0.5rem 1.5rem;
  background: var(--bg-gradient);
  color: white;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition);
}

.card-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* === Features Section === */
.features {
  padding: 6rem 0;
  background: linear-gradient(to bottom right, rgba(0, 201, 167, 0.05), rgba(132, 94, 194, 0.05));
}

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

.feature {
  text-align: center;
}

.feature-icon {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.feature h3 {
  margin-bottom: 1rem;
  color: var(--dark);
}

.feature p {
  color: var(--gray-600);
  margin-bottom: 0;
}

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

/* === Comparison Section === */
.comparison {
  padding: 6rem 0;
  background-color: var(--light);
}

.comparison-table {
  margin-top: 3rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.table-head {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  background: var(--bg-gradient);
  color: white;
  font-weight: 600;
}

.head-cell {
  padding: 1.5rem;
  text-align: center;
}

.table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  border-bottom: 1px solid var(--gray-200);
  background: white;
}

.table-row:last-child {
  border-bottom: none;
}

.cell {
  padding: 1.5rem;
  text-align: center;
  color: var(--gray-700);
}

.feature-name {
  font-weight: 600;
  color: var(--dark);
  text-align: left;
}

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

/* === Testimonials Section === */
.testimonials {
  padding: 6rem 0;
  background: linear-gradient(to bottom right, rgba(0, 201, 167, 0.05), rgba(132, 94, 194, 0.05));
}

.testimonial-slider {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.quote {
  font-size: 1.1rem;
  color: var(--gray-700);
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
}

.quote::before, .quote::after {
  content: '"';
  font-size: 1.5rem;
  color: var(--primary);
  position: absolute;
}

.quote::before {
  left: -0.5rem;
  top: -0.5rem;
}

.quote::after {
  right: -0.5rem;
  bottom: -1rem;
}

.author {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.testimonial .stars {
  color: var(--primary);
}

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

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.footer-logo span {
  color: white;
  font-weight: 700;
  font-size: 1.5rem;
}

.footer-links {
  display: flex;
  justify-content: space-around;
}

.link-group h4 {
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.link-group h4::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--bg-gradient);
  border-radius: 1.5px;
}

.link-group ul li {
  margin-bottom: 0.75rem;
}

.link-group ul li a {
  color: var(--gray-300);
}

.link-group ul li a:hover {
  color: white;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--gray-400);
  font-size: 0.875rem;
}

/* === Media Queries === */
@media (max-width: 992px) {
  html {
    font-size: 15px;
  }
  
  h1 {
    font-size: 2.8rem;
  }
  
  h2 {
    font-size: 2.2rem;
  }
  
  .hero-stats {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    height: 0;
    flex-direction: column;
    background: white;
    overflow: hidden;
    transition: height 0.3s ease;
    z-index: 99;
    box-shadow: var(--shadow);
    padding: 0;
    opacity: 0;
    visibility: hidden;
  }
  
  .nav-links.active {
    height: auto;
    padding: 2rem 0;
    opacity: 1;
    visibility: visible;
  }
  
  .nav-links li {
    width: 100%;
    text-align: center;
  }
  
  .nav-links a {
    display: block;
    padding: 1rem 0;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .comparison-table {
    overflow-x: auto;
  }
  
  .table-head, .table-row {
    min-width: 500px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 14px;
  }
  
  .container {
    padding: 0 1.25rem;
  }
  
  .generator-grid,
  .features-grid,
  .testimonial-slider {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 2rem;
  }
}
