/*
 * Main Stylesheet for aipornfree.wiki
 * Modern dark theme with purple accents
 */

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

:root {
  /* Color Scheme - Purple Theme */
  --primary: #9D50BB;
  --secondary: #6E48AA;
  --accent: #FFA8E2;
  --dark: #1A1A2E;
  --dark-alt: #16213E;
  --text: #F0F0F0;
  --text-muted: #A9A9A9;
  --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
  
  /* Typography */
  --font-main: 'Montserrat', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 3rem;
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;
  --space-8: 6rem;
  
  /* Borders & Shadows */
  --radius: 0.5rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  
  /* Layout */
  --container-width: 1200px;
  --header-height: 70px;
}

/* Global Styles */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--dark);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

ul {
  list-style-type: none;
}

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

/* Container */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

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

h1 {
  font-size: clamp(var(--font-size-2xl), 5vw, var(--font-size-3xl));
}

h2 {
  font-size: clamp(var(--font-size-xl), 4vw, var(--font-size-2xl));
}

h3 {
  font-size: var(--font-size-xl);
}

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

.text-center {
  text-align: center;
}

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

.section-title {
  margin-bottom: var(--space-5);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
}

.title-center {
  text-align: center;
}

.title-center .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.section-subtitle {
  color: var(--text-muted);
  margin-top: -15px;
  margin-bottom: var(--space-5);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(26, 26, 46, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

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

.logo-text {
  font-weight: 700;
  font-size: var(--font-size-lg);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: var(--font-size-xl);
  cursor: pointer;
}

.nav-list {
  display: flex;
  gap: var(--space-4);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(157, 80, 187, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 25px rgba(157, 80, 187, 0.5);
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Hero Section */
.hero {
  padding: var(--space-7) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(157, 80, 187, 0.15), transparent 70%),
    radial-gradient(circle at 80% 70%, rgba(110, 72, 170, 0.15), transparent 70%);
  z-index: -1;
}

.hero-content {
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  margin-bottom: var(--space-3);
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-muted);
  margin-bottom: var(--space-5);
}

.hero-cta {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  margin-top: var(--space-5);
}

.hero-image {
  margin-top: var(--space-6);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Features Section */
.features {
  padding: var(--space-8) 0;
  background-color: var(--dark-alt);
  position: relative;
  overflow: hidden;
}

.features::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gradient);
  opacity: 0.5;
}

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

.feature-card {
  background-color: rgba(26, 26, 46, 0.5);
  padding: var(--space-4);
  border-radius: var(--radius);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(157, 80, 187, 0.3);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
  box-shadow: var(--shadow);
}

.feature-title {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-2);
}

.feature-desc {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

/* How It Works Section */
.how-works {
  padding: var(--space-8) 0;
}

.steps {
  margin-top: var(--space-5);
}

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

.step-marker {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: white;
}

.step-content h3 {
  margin-bottom: var(--space-2);
}

.step-content p {
  color: var(--text-muted);
}

/* CTA Section */
.cta {
  padding: var(--space-6) 0;
  background-color: var(--dark-alt);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before,
.cta::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--gradient);
  opacity: 0.1;
  z-index: -1;
}

.cta::before {
  top: -150px;
  left: -150px;
}

.cta::after {
  bottom: -150px;
  right: -150px;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta .btn {
  margin-top: var(--space-4);
}

/* Footer */
.footer {
  background-color: var(--dark);
  padding: var(--space-6) 0 var(--space-3);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.footer-logo img {
  width: 40px;
  height: 40px;
}

.footer-description {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

.footer-column h4 {
  margin-bottom: var(--space-3);
  font-size: var(--font-size-md);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-links a {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  transition: color 0.2s ease;
}

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

.footer-bottom {
  padding-top: var(--space-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: var(--font-size-xs);
}

.footer-legal {
  max-width: 600px;
}

/* Responsive Styles */
@media (max-width: 991px) {
  .hero-content {
    max-width: 100%;
  }
  
  .hero-cta {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  :root {
    --space-7: 3rem;
    --space-8: 4rem;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--dark);
    transition: left 0.3s ease;
    padding: var(--space-4);
    z-index: 999;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-list {
    flex-direction: column;
    gap: var(--space-3);
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .step {
    flex-direction: column;
    text-align: center;
  }
  
  .step-marker {
    margin: 0 auto;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-brand {
    align-items: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-2);
    text-align: center;
  }
}

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

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}
