/* 
 * Main stylesheet for aipornbot.site
 * Featuring a teal/green and orange color scheme
 */

:root {
  /* Primary Colors */
  --primary: #16a085;
  --primary-dark: #1abc9c;
  --primary-light: #48c9b0;
  
  /* Secondary Colors */
  --secondary: #e74c3c;
  --secondary-dark: #c0392b;
  --secondary-light: #e67e22;
  
  /* Neutrals */
  --dark: #2c3e50;
  --gray-dark: #34495e;
  --gray: #7f8c8d;
  --gray-light: #bdc3c7;
  --light: #ecf0f1;
  
  /* Gradients */
  --primary-gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  --secondary-gradient: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
  
  /* Typography */
  --heading-font: 'Montserrat', sans-serif;
  --body-font: 'Roboto', sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--light);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--dark);
}

h1 {
  font-size: 2.5rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: 2rem;
  position: relative;
  display: inline-block;
  margin-bottom: var(--space-lg);
}

h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--primary-gradient);
  border-radius: var(--radius-sm);
}

h3 {
  font-size: 1.5rem;
}

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

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

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-md) 0;
}

section {
  padding: var(--space-xl) 0;
}

/* Buttons */
.cta-button {
  display: inline-block;
  padding: 12px 30px;
  border-radius: var(--radius-md);
  background: var(--secondary-gradient);
  color: white;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.25);
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(231, 76, 60, 0.35);
  color: white;
}

.cta-button.secondary {
  background: var(--primary-gradient);
  box-shadow: 0 4px 12px rgba(22, 160, 133, 0.25);
}

.cta-button.secondary:hover {
  box-shadow: 0 6px 16px rgba(22, 160, 133, 0.35);
}

.cta-button.large {
  padding: 15px 40px;
  font-size: 1.1rem;
}

/* Header */
.site-header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  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;
  font-weight: 700;
  color: var(--dark);
  font-family: var(--heading-font);
}

.logo span {
  margin-left: var(--space-xs);
  font-size: 1.2rem;
}

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

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

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

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

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

/* Hero Section */
.hero {
  padding: var(--space-xl) 0;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 180%;
  background: var(--primary-gradient);
  opacity: 0.05;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  z-index: -1;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.hero-content {
  flex: 1;
}

.hero h1 {
  margin-bottom: var(--space-sm);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: var(--space-lg);
  color: var(--gray);
  max-width: 500px;
}

.chat-preview {
  flex: 1;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  max-width: 400px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.chat-header {
  display: flex;
  align-items: center;
  padding: var(--space-sm);
  background: var(--primary-gradient);
  color: white;
}

.bot-avatar {
  margin-right: var(--space-sm);
}

.chat-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: white;
}

.chat-messages {
  padding: var(--space-sm);
  height: 250px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.message {
  max-width: 80%;
  padding: var(--space-sm);
  border-radius: var(--radius-md);
}

.message p {
  margin: 0;
  font-size: 0.95rem;
}

.message.bot {
  background-color: var(--light);
  align-self: flex-start;
  border-radius: 0 var(--radius-md) var(--radius-md) var(--radius-md);
}

.message.user {
  background-color: var(--primary-light);
  color: white;
  align-self: flex-end;
  border-radius: var(--radius-md) 0 var(--radius-md) var(--radius-md);
}

.chat-input {
  display: flex;
  padding: var(--space-sm);
  border-top: 1px solid var(--gray-light);
}

.chat-input input {
  flex-grow: 1;
  padding: 10px;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-md);
  outline: none;
}

.chat-input button {
  margin-left: var(--space-xs);
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Features Section */
.features {
  background-color: rgba(236, 240, 241, 0.5);
}

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

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

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

.feature-icon {
  margin-bottom: var(--space-md);
}

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

/* How It Works Section */
.steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 60px;
  right: 60px;
  height: 2px;
  background: var(--gray-light);
  z-index: -1;
}

.step {
  text-align: center;
  flex: 1;
  padding: 0 var(--space-md);
}

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

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

/* FAQ Section */
.accordion {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.accordion-item {
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.accordion-header {
  padding: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: white;
}

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

.accordion-header .icon {
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.accordion-content {
  padding: 0 var(--space-md);
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion-item.active .accordion-content {
  padding: 0 var(--space-md) var(--space-md);
  max-height: 200px;
}

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

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

.cta-section h2 {
  color: white;
}

.cta-section h2:after {
  background: white;
  margin: 0 auto;
  left: 0;
  right: 0;
}

.cta-section p {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-lg);
}

.cta-section .cta-button {
  background: white;
  color: var(--secondary);
}

.cta-section .cta-button:hover {
  background: var(--light);
}

/* Footer */
footer {
  background-color: var(--dark);
  color: white;
  padding: var(--space-xl) 0 var(--space-md);
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  font-size: 1.2rem;
}

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

.footer-nav h4, .footer-legal h4 {
  color: white;
  margin-bottom: var(--space-md);
  position: relative;
  display: inline-block;
}

.footer-nav h4:after, .footer-legal h4:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--secondary);
}

.footer-nav ul, .footer-legal ul {
  list-style: none;
}

.footer-nav ul li, .footer-legal ul li {
  margin-bottom: var(--space-xs);
}

.footer-nav ul li a, .footer-legal ul li a {
  color: var(--gray-light);
}

.footer-nav ul li a:hover, .footer-legal ul li a:hover {
  color: var(--secondary-light);
}

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

/* Define SVG gradients */
#botGradient stop:first-child { stop-color: #16a085; }
#botGradient stop:last-child { stop-color: #1abc9c; }
#screenGradient stop:first-child { stop-color: #2c3e50; }
#screenGradient stop:last-child { stop-color: #34495e; }
#textGradient stop:first-child { stop-color: #e74c3c; }
#textGradient stop:last-child { stop-color: #e67e22; }

/* Responsive Styles */
@media (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .steps {
    flex-direction: column;
    gap: var(--space-lg);
  }
  
  .steps::before {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero .container {
    flex-direction: column;
  }
  
  .chat-preview {
    max-width: 100%;
  }
  
  .main-nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: all 0.3s ease;
  }
  
  .main-nav.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  
  .main-nav ul {
    flex-direction: column;
    padding: var(--space-md);
  }
  
  .menu-toggle {
    display: block;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* Animation classes */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}
