/* 
 * aiimagegeneratorporn.site Styles
 * A unique purple-themed design for AI image generation
 */

:root {
  --primary: #6C63FF;
  --primary-light: #8B85FF;
  --primary-dark: #5046E5;
  --accent: #FF6584;
  --dark: #2D2B55;
  --gray: #4F4F6F;
  --light-gray: #F5F5F5;
  --white: #FFFFFF;
  --shadow: 0 4px 20px rgba(108, 99, 255, 0.15);
  --gradient: linear-gradient(135deg, #6C63FF 0%, #5046E5 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--white);
}

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 2rem;
}

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

h2 span {
  color: var(--primary);
  position: relative;
}

h2 span::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  height: 3px;
  width: 100%;
  background: var(--primary);
  border-radius: 3px;
}

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

p {
  margin-bottom: 1.5rem;
  color: var(--gray);
}

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

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

/* Header Styles */
header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 20px;
}

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

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

.logo span {
  color: var(--primary);
}

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

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu li a {
  color: var(--dark);
  font-weight: 500;
  position: relative;
}

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

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

.nav-menu li a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--dark);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  background: url("data:image/svg+xml,%3Csvg width='1440' height='800' viewBox='0 0 1440 800' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath opacity='0.05' d='M-139.963 574.458C-67.1731 498.172 214.577 378.452 347.702 572.54C480.827 766.628 664.516 812.287 861.353 693.855C1058.19 575.423 1149.77 599.5 1232.86 693.855C1315.94 788.211 1497.15 762.791 1558.54 655.36' stroke='%236C63FF' stroke-width='80'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  padding: 100px 0;
}

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

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

.hero-content span {
  color: var(--primary);
}

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

.image-preview {
  display: flex;
  justify-content: center;
  align-items: center;
}

.canvas {
  position: relative;
  border-radius: 12px;
  box-shadow: var(--shadow);
  background: var(--white);
  padding: 20px;
}

.canvas-tools {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  border-top: 1px solid #eee;
  padding-top: 15px;
}

.tool-item {
  font-size: 0.875rem;
  color: var(--gray);
  background: var(--light-gray);
  padding: 5px 10px;
  border-radius: 20px;
}

.cta-button {
  display: inline-block;
  background: var(--gradient);
  color: var(--white);
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 50px;
  box-shadow: 0 10px 20px rgba(108, 99, 255, 0.2);
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(108, 99, 255, 0.3);
  color: var(--white);
}

/* Features Section */
.features {
  padding: 100px 0;
  background-color: var(--light-gray);
}

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

.feature-card {
  background: var(--white);
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(108, 99, 255, 0.15);
}

.feature-icon {
  margin-bottom: 20px;
  display: inline-block;
  background: rgba(108, 99, 255, 0.1);
  padding: 15px;
  border-radius: 50%;
}

.feature-card h3 {
  margin-bottom: 15px;
}

.feature-card p {
  margin-bottom: 0;
}

/* Gallery Section */
.gallery {
  padding: 100px 0;
  background-color: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(108, 99, 255, 0.15);
}

.gallery-preview {
  position: relative;
}

.gallery-placeholder {
  width: 100%;
  height: auto;
}

.gallery-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(108, 99, 255, 0.8);
  color: var(--white);
  padding: 10px;
  text-align: center;
  font-weight: 500;
}

.cta-center {
  text-align: center;
  margin-top: 50px;
}

/* How It Works Section */
.how-it-works {
  padding: 100px 0;
  background-color: var(--light-gray);
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='2' fill='%236C63FF' fill-opacity='0.2'/%3E%3C/svg%3E");
}

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

.workflow-item {
  display: flex;
  gap: 30px;
  margin-bottom: 50px;
  position: relative;
}

.workflow-item:last-child {
  margin-bottom: 0;
}

.workflow-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 30px;
  top: 70px;
  height: calc(100% - 20px);
  width: 2px;
  background: var(--primary-light);
}

.workflow-number {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: var(--gradient);
  color: var(--white);
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 1;
}

.workflow-content {
  padding-top: 10px;
}

.workflow-content h3 {
  margin-bottom: 10px;
}

/* FAQ Section */
.faq {
  padding: 100px 0;
}

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

.faq-item {
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: var(--white);
  cursor: pointer;
}

.question h3 {
  margin: 0;
  font-size: 1.125rem;
}

.arrow {
  width: 20px;
  height: 20px;
  position: relative;
  transition: all 0.3s ease;
}

.arrow::before, .arrow::after {
  content: '';
  position: absolute;
  background: var(--primary);
  top: 9px;
  width: 12px;
  height: 2px;
  transition: all 0.3s ease;
}

.arrow::before {
  left: 0;
  transform: rotate(45deg);
}

.arrow::after {
  right: 0;
  transform: rotate(-45deg);
}

.faq-item.active .arrow::before {
  transform: rotate(-45deg);
}

.faq-item.active .arrow::after {
  transform: rotate(45deg);
}

.answer {
  background: var(--white);
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active .answer {
  padding: 0 20px 20px;
  max-height: 1000px;
}

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

.cta-section h2 {
  color: var(--white);
  margin-bottom: 20px;
}

.cta-section h2 span {
  color: var(--white);
}

.cta-section h2 span::after {
  background: var(--white);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto 30px;
}

.cta-section .cta-button {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.cta-section .cta-button:hover {
  background: var(--white);
  color: var(--primary-dark);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
}

/* Footer */
footer {
  background: var(--dark);
  color: var(--white);
  padding: 60px 0 30px;
}

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

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

.footer-icon {
  width: 36px;
  height: 36px;
}

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

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

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

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

.link-group ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

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

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

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* Responsive Styles */
@media (max-width: 991px) {
  h2 {
    font-size: 2rem;
  }
  
  .hero .container {
    grid-template-columns: 1fr;
  }
  
  .hero-content {
    text-align: center;
    order: 2;
  }
  
  .hero-content h2 {
    text-align: center;
    font-size: 2.5rem;
  }
  
  .image-preview {
    order: 1;
    margin-bottom: 40px;
  }
}

@media (max-width: 768px) {
  header .container {
    position: relative;
  }
  
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    border-radius: 0 0 10px 10px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    z-index: -1;
  }
  
  .nav-menu.active {
    max-height: 300px;
    opacity: 1;
    z-index: 100;
  }
  
  .nav-menu li {
    margin: 10px 0;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .hero-content h2 {
    font-size: 2rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-top {
    flex-direction: column;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 30px;
  }
}

@media (max-width: 576px) {
  h2 {
    font-size: 1.75rem;
  }
  
  .hero-content h2 {
    font-size: 1.75rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  
  .workflow-item {
    flex-direction: column;
    gap: 15px;
  }
  
  .workflow-item:not(:last-child)::after {
    left: 30px;
    top: 60px;
    height: calc(100% - 30px);
  }
  
  .cta-button {
    padding: 0.75rem 1.5rem;
  }
}
