/*
 * Ai Joi Porn - Main Stylesheet
 * Modern, responsive design optimized for mobile and SEO
 */

/* Custom Properties & Variables */
:root {
  --primary: #3498DB;
  --secondary: #9B59B6;
  --dark: #1A1A2E;
  --light: #FFFFFF;
  --gray: #CCCCCC;
  --gray-dark: #555555;
  --text: #F0F0F0;
  --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  --transition: all 0.3s ease;
  --radius: 8px;
  --container-width: 1200px;
  --container-padding: 20px;
}

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

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

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.3;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
}

h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

span {
  color: var(--secondary);
}

.section-title {
  text-align: center;
  position: relative;
  margin-bottom: 3rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  width: 80px;
  height: 4px;
  background: var(--gradient);
  transform: translateX(-50%);
  border-radius: 2px;
}

/* Header & Navigation */
header {
  background: rgba(26, 26, 46, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 15px 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

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

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 48px;
  height: 48px;
}

h1 {
  font-weight: 700;
}

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

nav ul {
  display: flex;
  gap: 30px;
}

nav a {
  font-weight: 500;
  position: relative;
  padding-bottom: 5px;
}

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

nav a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 30px;
  height: 3px;
  margin: 6px 0;
  background-color: var(--light);
  transition: var(--transition);
}

/* Main Content Sections */
main {
  margin-top: 80px;
}

section {
  padding: 80px 0;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  background: linear-gradient(to right, rgba(26, 26, 46, 0.9), rgba(26, 26, 46, 0.8)), 
              radial-gradient(circle at 70% 30%, rgba(155, 89, 182, 0.3) 0%, transparent 70%),
              radial-gradient(circle at 30% 70%, rgba(52, 152, 219, 0.3) 0%, transparent 70%);
  overflow: hidden;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

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

.hero-content h2 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--gray);
}

.cta-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.cta-button {
  display: inline-block;
  background: var(--gradient);
  color: var(--light);
  padding: 15px 40px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  color: var(--light);
}

.cta-note {
  font-size: 0.9rem;
  color: var(--gray);
}

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

.hero-image {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
}

/* About Section */
.about {
  background-color: rgba(30, 30, 50, 0.8);
  position: relative;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 60px;
}

.about-text {
  flex: 1;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.about-visual {
  flex: 1;
  display: flex;
  justify-content: center;
}

.about-image {
  max-width: 100%;
  height: auto;
}

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

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 30%, rgba(52, 152, 219, 0.1) 0%, transparent 50%);
  z-index: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  position: relative;
  z-index: 1;
}

.feature-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.feature-icon {
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.feature-card p {
  color: var(--gray);
}

/* Technology Section */
.technology {
  background-color: rgba(30, 30, 50, 0.8);
}

.tech-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.tech-text {
  flex: 1;
}

.tech-text h3 {
  margin-bottom: 20px;
}

.tech-text p {
  margin-bottom: 20px;
}

.tech-list {
  margin-top: 20px;
}

.tech-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 15px;
}

.tech-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--gradient);
  border-radius: 50%;
}

.tech-visual {
  flex: 1;
  display: flex;
  justify-content: center;
}

.tech-graphic {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

/* Testimonials Section */
.testimonials {
  background-color: var(--dark);
  position: relative;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.testimonial-card::before {
  content: '"';
  font-family: serif;
  font-size: 5rem;
  position: absolute;
  top: 10px;
  left: 20px;
  color: var(--secondary);
  opacity: 0.2;
  line-height: 0;
}

.quote {
  font-size: 1.1rem;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.user {
  color: var(--gray);
  font-style: italic;
  text-align: right;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(155, 89, 182, 0.1));
  text-align: center;
}

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

.cta-content h2 {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: var(--gray);
}

/* Footer */
footer {
  background-color: #14141F;
  padding: 60px 0 30px;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

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

.footer-links {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-group h4 {
  color: var(--primary);
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-group ul li {
  margin-bottom: 10px;
}

.footer-group a {
  color: var(--gray);
}

.footer-group a:hover {
  color: var(--light);
}

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

/* Responsive Design */
@media (max-width: 992px) {
  h1 {
    font-size: 2rem;
  }

  .hero-content h2 {
    font-size: 2.8rem;
  }

  .hero .container, .about-content, .tech-content {
    flex-direction: column;
  }

  .hero-visual, .about-visual, .tech-visual {
    margin-top: 40px;
    width: 100%;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  section {
    padding: 60px 0;
  }

  nav {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--dark);
    transition: left 0.3s ease;
    z-index: 900;
  }

  nav.active {
    left: 0;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 40px;
  }

  nav a {
    font-size: 1.5rem;
  }

  .menu-toggle {
    display: block;
    z-index: 1000;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
  }

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

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
  }

  .footer-logo {
    margin-bottom: 30px;
  }

  .footer-links {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 12px;
  }

  .hero-content h2 {
    font-size: 2.2rem;
  }

  .hero {
    padding: 40px 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 30px;
  }
}
