/* 
* AIpornGeneratorTH.site - Main Stylesheet
* Thai-inspired design with unique color palette and layout
*/

/* CSS Reset and Base Styles */
:root {
  /* Thai-inspired color palette - Royal colors with tropical accents */
  --primary: #6F2DA8;     /* Royal Purple */
  --secondary: #F9C22E;   /* Thai Gold */
  --accent: #41A7B3;      /* Tropical Ocean */
  --danger: #EE4D5F;      /* Orchid Red */
  --light: #F8F5FF;       /* Light Background */
  --dark: #2D2638;        /* Dark Purple Text */
  --grey: #9A8EB0;        /* Soft Purple Grey */
}

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

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4 {
  font-family: 'Prompt', sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary);
}

h3 {
  font-size: 1.3rem;
}

p {
  margin-bottom: 1rem;
}

img {
  max-width: 100%;
  height: auto;
}

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

/* Thai-inspired decorative elements */
.thai-border {
  position: relative;
}

.thai-border::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  border-radius: 2px;
}

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

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

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

.logo img {
  height: 40px;
  width: auto;
}

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

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

nav ul li a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

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

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

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

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

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--primary);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #6F2DA8 0%, #9548EF 100%);
  color: white;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background-color: rgba(249, 194, 46, 0.1);
  transform: translate(100px, -150px);
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background-color: rgba(65, 167, 179, 0.1);
  transform: translate(-50px, 50px);
}

.hero-content {
  max-width: 600px;
  z-index: 2;
  position: relative;
}

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

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-content h1 span {
  color: var(--secondary);
  display: block;
}

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

.hero-image {
  width: 50%;
  max-width: 500px;
  position: relative;
}

.cta-button {
  display: inline-block;
  background: var(--secondary);
  color: var(--dark);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s;
  border: 2px solid var(--secondary);
  text-align: center;
}

.cta-button:hover {
  background: transparent;
  color: var(--secondary);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(249, 194, 46, 0.3);
}

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

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

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
  border-bottom: 4px solid transparent;
}

.feature-card:nth-child(1) {
  border-bottom-color: var(--accent);
}

.feature-card:nth-child(2) {
  border-bottom-color: var(--secondary);
}

.feature-card:nth-child(3) {
  border-bottom-color: var(--danger);
}

.feature-card:nth-child(4) {
  border-bottom-color: var(--primary);
}

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

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

/* Process Section */
.process-section {
  padding: 5rem 0;
  background-color: var(--light);
  position: relative;
}

.process-steps {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 3rem;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  z-index: 1;
  opacity: 0.3;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 2;
  width: 30%;
  background-color: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

/* AI Models Section */
.ai-models-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f8f5ff 0%, #ebe5f9 100%);
}

.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.model-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

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

.model-tags {
  display: flex;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.model-tags span {
  background-color: var(--light);
  color: var(--primary);
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

/* FAQ Section */
.faq-section {
  padding: 5rem 0;
  background-color: white;
}

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

.accordion-item {
  background: white;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.accordion-header {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-header h3 {
  margin-bottom: 0;
  font-size: 1.1rem;
}

.accordion-icon {
  width: 20px;
  height: 20px;
  position: relative;
}

.accordion-icon::before,
.accordion-icon::after {
  content: '';
  position: absolute;
  background-color: var(--primary);
  transition: all 0.3s ease;
}

.accordion-icon::before {
  top: 9px;
  left: 0;
  width: 100%;
  height: 2px;
}

.accordion-icon::after {
  top: 0;
  left: 9px;
  width: 2px;
  height: 100%;
}

.accordion-item.active .accordion-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.accordion-content {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion-item.active .accordion-content {
  padding: 0 1.5rem 1.5rem;
  max-height: 1000px;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.cta-banner h2 {
  color: white;
  margin-bottom: 1rem;
}

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

.cta-banner .cta-button {
  background: var(--secondary);
  color: var(--dark);
  border-color: var(--secondary);
}

.cta-banner .cta-button:hover {
  background: transparent;
  color: white;
}

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

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

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo img {
  margin-bottom: 1rem;
}

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

.footer-links ul li {
  margin-bottom: 0.5rem;
}

.footer-links ul li a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links ul li a:hover {
  color: var(--secondary);
}

.footer-keywords {
  opacity: 0.7;
  font-size: 0.9rem;
}

.footer-disclaimer {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-section .container {
    flex-direction: column;
  }
  
  .hero-content {
    max-width: 100%;
    text-align: center;
    margin-bottom: 3rem;
  }
  
  .hero-image {
    width: 80%;
  }
  
  .process-step {
    width: 80%;
    margin-bottom: 2rem;
  }
  
  .process-steps::before {
    display: none;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .mobile-menu-toggle {
    display: block;
    z-index: 2000;
  }
  
  nav ul {
    position: fixed;
    flex-direction: column;
    background: var(--primary);
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    padding-top: 80px;
    transition: right 0.3s ease;
    z-index: 1000;
  }
  
  nav ul.active {
    right: 0;
  }
  
  nav ul li {
    margin: 0;
    padding: 1rem 2rem;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  nav ul li a {
    color: white;
    display: block;
    font-size: 1.2rem;
  }
  
  nav ul li a::after {
    display: none;
  }
  
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  
  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }
  
  .footer-content {
    flex-direction: column;
  }
  
  .footer-logo, .footer-links, .footer-keywords {
    margin-bottom: 2rem;
  }
}

/* Thai-specific decorative elements */
.thai-pattern {
  position: absolute;
  opacity: 0.1;
}

.thai-pattern-1 {
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
}

.thai-pattern-2 {
  bottom: 0;
  left: 0;
  width: 150px;
  height: 150px;
}
