/* 
   Modern CSS with responsive design for free-aiporn.pro
   Optimized for SEO and performance
*/

:root {
  --primary-color: #8a2be2;
  --secondary-color: #ff1493;
  --accent-color: #00bcd4;
  --dark-bg: #1a1a2e;
  --light-bg: #f8f9fa;
  --text-light: #ffffff;
  --text-dark: #333333;
  --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --border-radius: 10px;
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

h2 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: var(--box-shadow);
}

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

.primary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(138, 43, 226, 0.4);
  color: var(--text-light);
}

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

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

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

.logo h1 {
  font-size: 1.5rem;
  margin-left: 10px;
  margin-bottom: 0;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  color: var(--text-dark);
  font-weight: 600;
}

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

.cta-btn {
  background: var(--gradient);
  color: var(--text-light);
  padding: 8px 18px;
  border-radius: 50px;
}

.cta-btn:hover {
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(138, 43, 226, 0.3);
}

/* Hero Section */
.hero {
  padding: 5rem 0;
  background-color: #f5f5fa;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(138, 43, 226, 0.1);
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 20, 147, 0.1);
  z-index: 0;
}

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

.hero-content {
  flex: 1;
  max-width: 550px;
}

.hero-content h2 {
  font-size: 3rem;
  text-align: left;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #666;
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

/* Features Section */
.features {
  padding: 5rem 0;
  background-color: white;
}

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

.feature-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease;
}

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

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

.feature-card h3 {
  margin-bottom: 1rem;
}

/* How It Works Section */
.how-it-works {
  padding: 5rem 0;
  background-color: #f5f5fa;
}

.steps {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
}

.step {
  flex: 1;
  padding: 0 1rem;
  text-align: center;
  position: relative;
}

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

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

/* Testimonials */
.testimonials {
  padding: 5rem 0;
  background-color: white;
}

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

.testimonial {
  background-color: var(--light-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.quote {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.author {
  font-weight: 700;
  color: var(--primary-color);
}

/* CTA Section */
.cta {
  padding: 5rem 0;
  background: var(--gradient);
  color: var(--text-light);
  text-align: center;
}

.cta h2 {
  color: var(--text-light);
}

.cta p {
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.2rem;
}

.cta .btn {
  background: white;
  color: var(--primary-color);
}

.cta .btn:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-3px);
}

/* Footer */
footer {
  background-color: var(--dark-bg);
  color: var(--text-light);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.footer-logo p {
  margin-top: 1rem;
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
}

.link-group {
  margin-right: 4rem;
  margin-bottom: 2rem;
}

.link-group h3 {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

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

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

.link-group ul li a {
  color: #aaa;
}

.link-group ul li a:hover {
  color: var(--text-light);
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-content {
    max-width: 100%;
    margin-bottom: 3rem;
  }
  
  .hero-content h2 {
    text-align: center;
  }
  
  .hero-visual {
    justify-content: center;
  }
  
  .steps {
    flex-direction: column;
  }
  
  .step {
    margin-bottom: 3rem;
  }
  
  .step:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero-content h2 {
    font-size: 2.5rem;
  }
  
  header .container {
    flex-direction: column;
  }
  
  nav ul {
    margin-top: 1rem;
  }
  
  nav ul li {
    margin-left: 1rem;
    margin-right: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-content h2 {
    font-size: 2rem;
  }
  
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .features-grid, .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
  }
}

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

.hero-content, .feature-card, .step, .testimonial {
  animation: fadeIn 0.8s ease-out forwards;
}

.feature-card:nth-child(2) {
  animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
  animation-delay: 0.4s;
}

.step:nth-child(2) {
  animation-delay: 0.2s;
}

.step:nth-child(3) {
  animation-delay: 0.4s;
}

.testimonial:nth-child(2) {
  animation-delay: 0.2s;
}

.testimonial:nth-child(3) {
  animation-delay: 0.4s;
}

/* Accessibility Improvements */
:focus {
  outline: 3px solid var(--accent-color);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
