/* 
* Main Stylesheet for aiporn-chatbot.love
* Modern, responsive design with SEO optimizations
*/

:root {
  /* Color Palette - Blue theme (different from previous purple/orange) */
  --primary-color: #1e3a8a;     /* Deep blue */
  --secondary-color: #60a5fa;   /* Light blue */
  --accent-color: #3b82f6;      /* Mid blue */
  --background-light: #f0f9ff;  /* Very light blue */
  --background-dark: #0f172a;   /* Navy blue */
  --text-primary: #1e293b;      /* Dark slate blue */
  --text-secondary: #475569;    /* Slate blue */
  --text-light: #f8fafc;        /* Almost white */
  
  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 5rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.05), 0 4px 6px rgba(0,0,0,0.05);
}

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@500;600;700&display=swap');

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

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

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Container */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

h1 {
  font-size: 2rem;
  font-weight: 700;
}

h2 {
  font-size: 2.25rem;
  font-weight: 700;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: var(--spacing-md);
}

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

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

/* Header & Navigation */
header {
  background-color: #ffffff;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
}

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

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.logo-wrapper h1 {
  font-size: 1.5rem;
  margin-bottom: 0;
}

nav ul {
  display: flex;
  list-style: none;
  gap: var(--spacing-md);
}

nav a {
  font-weight: 500;
  color: var(--text-primary);
  padding: var(--spacing-xs) 0;
  position: relative;
}

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

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

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

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

.menu-toggle span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background-color: var(--text-primary);
  border-radius: 3px;
  transition: all 0.25s ease;
}

.menu-toggle span:nth-child(1) {
  top: 0;
}

.menu-toggle span:nth-child(2) {
  top: 10px;
}

.menu-toggle span:nth-child(3) {
  top: 20px;
}

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

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

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

/* Hero Section */
.hero {
  padding: var(--spacing-xl) 0;
  background: linear-gradient(135deg, var(--background-light) 0%, #dbeafe 100%);
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.hero-content h2 {
  font-size: 2.75rem;
  margin-bottom: var(--spacing-sm);
  color: var(--primary-color);
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-md);
  color: var(--text-secondary);
  max-width: 500px;
}

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

/* Buttons */
.btn-primary {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: var(--accent-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.cta {
  text-align: center;
  margin-top: var(--spacing-lg);
}

/* Features Section */
.features {
  padding: var(--spacing-xl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  color: var(--primary-color);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background-color: var(--accent-color);
  margin: var(--spacing-xs) auto 0;
  border-radius: 3px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--spacing-md);
}

.feature-card {
  background-color: white;
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  margin-bottom: var(--spacing-sm);
}

.feature-card h3 {
  margin-bottom: var(--spacing-xs);
  color: var(--primary-color);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Experience Section */
.experience {
  padding: var(--spacing-xl) 0;
  background-color: var(--background-light);
}

.steps {
  display: flex;
  justify-content: space-between;
  max-width: 900px;
  margin: 0 auto var(--spacing-lg);
}

.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 var(--spacing-sm);
  position: relative;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 25px;
  right: -30px;
  width: 60px;
  height: 2px;
  background-color: var(--secondary-color);
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  box-shadow: var(--shadow-md);
}

.step h3 {
  margin-bottom: var(--spacing-xs);
  color: var(--primary-color);
}

.step p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Testimonials Section */
.testimonials {
  padding: var(--spacing-xl) 0;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.testimonial-card {
  background-color: white;
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--accent-color);
}

.testimonial-text {
  position: relative;
}

.testimonial-text::before {
  content: '"';
  position: absolute;
  top: -0.5rem;
  left: -0.5rem;
  font-size: 4rem;
  color: var(--secondary-color);
  opacity: 0.2;
  font-family: serif;
}

.testimonial-text p {
  margin-bottom: var(--spacing-xs);
  font-style: italic;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary-color);
  text-align: right;
}

/* CTA Section */
.cta-section {
  padding: var(--spacing-lg) 0;
  background: linear-gradient(135deg, var(--primary-color), #1e40af);
  color: var(--text-light);
  text-align: center;
}

.cta-section h2 {
  color: var(--text-light);
  margin-bottom: var(--spacing-xs);
}

.cta-section p {
  margin-bottom: var(--spacing-md);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

/* Footer */
footer {
  background-color: var(--background-dark);
  color: var(--text-light);
  padding: var(--spacing-lg) 0 var(--spacing-sm);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--spacing-lg);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.footer-brand h3 {
  color: var(--text-light);
  margin-bottom: 0;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: var(--spacing-xl);
}

.footer-column h4 {
  color: var(--text-light);
  margin-bottom: var(--spacing-sm);
  font-size: 1.1rem;
  position: relative;
}

.footer-column h4::after {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background-color: var(--secondary-color);
  margin-top: 0.5rem;
}

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

.footer-column ul li {
  margin-bottom: var(--spacing-xs);
}

.footer-column a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
  font-size: 0.95rem;
}

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

.footer-bottom {
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom p {
  margin-bottom: var(--spacing-xs);
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero .container {
    grid-template-columns: 1fr;
  }
  
  .hero-image {
    order: -1;
    margin-bottom: var(--spacing-md);
  }
  
  .steps {
    flex-direction: column;
    gap: var(--spacing-lg);
  }
  
  .step:not(:last-child)::after {
    display: none;
  }
  
  .step {
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  
  .menu-toggle {
    display: block;
  }
  
  nav {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    height: 0;
    overflow: hidden;
    background-color: white;
    transition: height 0.3s ease;
    box-shadow: var(--shadow-md);
  }
  
  nav.active {
    height: auto;
    padding: var(--spacing-md) 0;
  }
  
  nav ul {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
  }
  
  nav a::after {
    bottom: -3px;
  }
  
  .footer-top {
    flex-direction: column;
    gap: var(--spacing-md);
  }
  
  .footer-links {
    flex-wrap: wrap;
    gap: var(--spacing-md);
  }
  
  .footer-column {
    min-width: 40%;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 14px;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero-content h2 {
    font-size: 2rem;
  }
  
  .feature-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  
  .feature-card,
  .testimonial-card {
    max-width: 100%;
  }
  
  .btn-primary {
    display: block;
    width: 100%;
  }
  
  .footer-column {
    min-width: 100%;
  }
}
