/* 
   aifutaporn.love Styles
   A modern, purple/pink-themed design for an AI futa content website
*/

:root {
  --primary: #B266FF;
  --primary-dark: #9933FF;
  --secondary: #FF6B6B;
  --secondary-dark: #FF4242;
  --dark: #1A1A2E;
  --gray-dark: #2A2A3F;
  --gray: #626284;
  --light-gray: #E6E6FA;
  --white: #FFFFFF;
  --gradient: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  --shadow: 0 10px 15px -3px rgba(26, 26, 46, 0.2), 0 4px 6px -2px rgba(26, 26, 46, 0.1);
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

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

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

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.7;
  color: var(--dark);
  background-color: var(--white);
}

.page-wrapper {
  overflow: hidden;
  position: relative;
}

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

h1, h2, h3, h4 {
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.5rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1.5rem;
}

section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.25rem;
  color: var(--gray);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 4px 10px rgba(178, 102, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 14px rgba(178, 102, 255, 0.4);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--light-gray);
  color: var(--dark);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
}

.btn-large {
  font-size: 1.125rem;
  padding: 1rem 2.5rem;
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(178, 102, 255, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(178, 102, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(178, 102, 255, 0);
  }
}

/* Header & Navigation */
.site-header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(26, 26, 46, 0.1);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo svg {
  margin-right: 0.75rem;
}

.logo span {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
}

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

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
}

.nav-links li {
  margin-left: 2rem;
}

.nav-links li a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

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

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

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--dark);
  margin: 5px 0;
  transition: var(--transition);
}

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

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

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

/* Hero Section */
.hero {
  padding: 8rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: var(--primary);
  opacity: 0.05;
  border-radius: 50%;
  z-index: -1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: var(--secondary);
  opacity: 0.05;
  border-radius: 50%;
  z-index: -1;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

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

.hero-content h1 {
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--gray);
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
}

.hero-visual {
  position: relative;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-svg {
  max-width: 100%;
  height: auto;
}

/* About Section */
.about {
  background-color: var(--light-gray);
  position: relative;
  overflow: hidden;
}

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

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

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 25px rgba(26, 26, 46, 0.15);
}

.feature-icon {
  margin-bottom: 1.5rem;
  color: var(--primary);
}

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

/* Gallery Section */
.gallery {
  position: relative;
}

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

.gallery-item {
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(26, 26, 46, 0.8), transparent);
  color: var(--white);
  font-weight: 600;
  font-size: 1.25rem;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
  transform: translateY(0);
}

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

/* Create Section */
.create {
  background-color: var(--dark);
  color: var(--white);
  position: relative;
}

.create .section-header p {
  color: var(--light-gray);
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.step-card {
  background-color: var(--gray-dark);
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius);
  position: relative;
  overflow: hidden;
}

.step-number {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
}

.step-content h3 {
  color: var(--white);
  margin-bottom: 1rem;
}

.step-content p {
  color: var(--light-gray);
}

.create-cta {
  text-align: center;
  margin-top: 2rem;
}

/* FAQ Section */
.faq {
  background-color: var(--white);
}

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

.accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accordion-item {
  background-color: var(--light-gray);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  color: var(--dark);
}

.accordion-icon {
  transition: var(--transition);
  color: var(--primary);
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}

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

.accordion-item.active .accordion-content {
  height: auto;
  padding: 0 1.5rem 1.5rem;
}

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

.cta h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
}

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

.cta .btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
}

/* Footer */
.site-footer {
  background-color: var(--dark);
  color: var(--light-gray);
  padding: 5rem 0 2rem;
}

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

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

.footer-brand svg {
  margin-bottom: 1.5rem;
}

.footer-brand p {
  color: var(--gray);
  max-width: 80%;
}

.footer-links h4 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

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

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

.footer-links ul li a {
  color: var(--gray);
  text-decoration: none;
  transition: var(--transition);
}

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

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

.footer-bottom p {
  color: var(--gray);
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 992px) {
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.25rem;
  }
  
  .hero .container {
    grid-template-columns: 1fr;
  }
  
  .hero-content {
    text-align: center;
    margin: 0 auto;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .hero-visual {
    order: -1;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-brand {
    grid-column: 1 / -1;
    align-items: center;
    text-align: center;
  }
  
  .footer-brand p {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  section {
    padding: 4rem 0;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .btn-large {
    padding: 0.875rem 2rem;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .nav-links {
    position: absolute;
    flex-direction: column;
    background-color: var(--white);
    top: 100%;
    left: 0;
    right: 0;
    padding: 2rem 1rem;
    box-shadow: 0 10px 15px rgba(26, 26, 46, 0.1);
    display: none;
    z-index: 100;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links li {
    margin: 0.75rem 0;
    width: 100%;
  }
  
  .nav-links li a {
    display: block;
    padding: 0.5rem 1rem;
    text-align: center;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 14px;
  }
  
  section {
    padding: 3rem 0;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .hero {
    padding: 5rem 0 3rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .hero-cta {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-cta .btn {
    width: 100%;
  }
  
  .feature-card {
    padding: 2rem 1.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-links {
    text-align: center;
  }
  
  .step-card {
    padding: 2rem 1.5rem;
  }
}
