/*
 * elnigga.online - AI Image Generator Website
 * Main Stylesheet
 */

/* Custom Properties */
:root {
  /* Colors - Purple, Yellow, Green, Red color scheme */
  --color-primary: #7C3AED;     /* Vivid purple */
  --color-secondary: #FCD34D;   /* Amber yellow */
  --color-accent-1: #10B981;    /* Emerald green */
  --color-accent-2: #F87171;    /* Coral red */
  --color-dark: #1F2937;        /* Dark gray blue */
  --color-light: #F9FAFB;       /* Off white */
  --color-gray-100: #F3F4F6;    /* Light gray */
  --color-gray-200: #E5E7EB;    /* Medium light gray */
  --color-gray-300: #D1D5DB;    /* Medium gray */
  --color-gray-400: #9CA3AF;    /* Medium gray */
  --color-gray-500: #6B7280;    /* Medium dark gray */
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, Courier, monospace;
  
  /* Sizes and spacing */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
  
  /* Layout */
  --max-width: 1200px;
  --border-radius-sm: 0.25rem;  /* 4px */
  --border-radius-md: 0.5rem;   /* 8px */
  --border-radius-lg: 1rem;     /* 16px */
  --border-radius-xl: 1.5rem;   /* 24px */
  --border-radius-full: 9999px; /* Full rounded */
}

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

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

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  color: var(--color-dark);
  margin-bottom: var(--space-4);
}

h1 {
  font-size: 1.5rem;
}

h2 {
  font-size: 2.25rem;
  margin-bottom: var(--space-8);
  text-align: center;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-2);
}

h4 {
  font-size: 1rem;
  margin-bottom: var(--space-2);
}

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

.highlight {
  color: var(--color-primary);
  position: relative;
  z-index: 1;
}

.highlight::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.1em;
  height: 0.3em;
  width: 100%;
  background-color: var(--color-secondary);
  z-index: -1;
  opacity: 0.3;
}

/* Layout */
.grid-container {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  min-height: 100vh;
}

header, section, footer {
  padding: var(--space-6) var(--space-4);
}

section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

/* Links and Buttons */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

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

.primary-button, .secondary-button {
  display: inline-block;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--border-radius-full);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.primary-button {
  background-color: var(--color-primary);
  color: white;
  box-shadow: 0 4px 10px rgba(124, 58, 237, 0.3);
}

.primary-button:hover {
  background-color: #6D28D9;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(124, 58, 237, 0.4);
}

.secondary-button {
  background-color: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  margin-left: var(--space-4);
}

.secondary-button:hover {
  background-color: var(--color-primary);
  color: white;
  transform: translateY(-2px);
}

/* Header */
header {
  background-color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) var(--space-8);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

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

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-6);
  align-items: center;
}

.nav-menu a {
  color: var(--color-gray-500);
  font-weight: 500;
}

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

.cta-button a {
  background-color: var(--color-primary);
  color: white;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--border-radius-full);
}

.cta-button a:hover {
  background-color: #6D28D9;
  color: white;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-1);
}

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

/* Hero Section */
#hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

.hero-content h2 {
  font-size: 3rem;
  margin-bottom: var(--space-4);
  text-align: left;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: var(--space-8);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

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

/* Benefits Section */
#benefits {
  background-color: var(--color-gray-100);
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  max-width: var(--max-width);
  margin: 0 auto;
}

.card {
  background-color: white;
  padding: var(--space-6);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: all 0.3s ease;
}

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

.card-icon {
  margin: 0 auto var(--space-4);
}

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-8);
}

.feature {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.feature-icon-container {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background-color: white;
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

/* Examples Section */
#examples {
  background-color: var(--color-gray-100);
}

.examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.example {
  background-color: white;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.example:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

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

.example h4 {
  padding: var(--space-4);
  text-align: center;
  margin: 0;
}

/* How It Works Section */
.steps {
  max-width: 800px;
  margin: var(--space-10) auto;
}

.step {
  display: flex;
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

.step:last-child {
  margin-bottom: 0;
}

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

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

.cta-center {
  text-align: center;
  margin-top: var(--space-12);
}

/* Testimonials Section */
#testimonials {
  background-color: var(--color-primary);
  color: white;
}

#testimonials h2 {
  color: white;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.testimonial {
  background-color: rgba(255, 255, 255, 0.1);
  padding: var(--space-6);
  border-radius: var(--border-radius-lg);
  backdrop-filter: blur(10px);
}

.quote {
  font-style: italic;
  margin-bottom: var(--space-4);
  color: white;
}

.author {
  text-align: right;
  font-weight: 500;
  color: var(--color-secondary);
}

/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: var(--space-6);
  padding: var(--space-6);
  background-color: white;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.faq-item h3 {
  margin-bottom: var(--space-2);
  color: var(--color-primary);
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: var(--space-16) var(--space-4);
  background-color: var(--color-gray-100);
}

.cta-section h2 {
  margin-bottom: var(--space-4);
}

.cta-section p {
  max-width: 600px;
  margin: 0 auto var(--space-8);
}

.cta-section .primary-button {
  font-size: 1.125rem;
  padding: var(--space-4) var(--space-8);
}

/* Footer */
footer {
  background-color: var(--color-dark);
  color: white;
  padding-top: var(--space-12);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-8);
  max-width: var(--max-width);
  margin: 0 auto;
  padding-bottom: var(--space-8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  display: flex;
  gap: var(--space-4);
}

.footer-text h3 {
  color: white;
  margin-bottom: var(--space-1);
}

.footer-text p {
  color: var(--color-gray-400);
  margin: 0;
}

.footer-links {
  display: flex;
  gap: var(--space-12);
}

.link-group h4 {
  color: var(--color-secondary);
  margin-bottom: var(--space-4);
}

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

.link-group ul li {
  margin-bottom: var(--space-2);
}

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

.link-group a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding: var(--space-6) 0;
  color: var(--color-gray-400);
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 992px) {
  h2 {
    font-size: 2rem;
  }
  
  .hero-content h2 {
    font-size: 2.5rem;
  }
  
  #hero {
    grid-template-columns: 1fr;
  }
  
  .hero-content {
    order: 1;
    text-align: center;
  }
  
  .hero-content h2 {
    text-align: center;
  }
  
  .cta-group {
    justify-content: center;
  }
  
  .hero-visual {
    order: 0;
    margin-bottom: var(--space-6);
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    z-index: 1001;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: white;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .step {
    flex-direction: column;
  }
  
  .step-number {
    margin: 0 auto var(--space-4);
  }
  
  .step-content {
    text-align: center;
  }
  
  .footer-content {
    flex-direction: column;
  }
  
  .footer-links {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 14px;
  }
  
  .hero-content h2 {
    font-size: 2rem;
  }
  
  .secondary-button {
    margin-left: 0;
  }
  
  .footer-links {
    flex-direction: column;
    gap: var(--space-6);
  }
}
