/* Modern CSS for AI Chatbot Website */
:root {
  --primary-color: #6a11cb;
  --secondary-color: #2575fc;
  --accent-color: #ff9a8b;
  --text-color: #333333;
  --light-text: #6c757d;
  --background-color: #f8f9fa;
  --card-bg: #ffffff;
  --dark-bg: #343a40;
  --gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  --box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease-in-out;
  --border-radius: 16px;
  --font-main: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
  font-family: var(--font-main);
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
}

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

.btn {
  display: inline-block;
  background: var(--gradient);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.875rem 1.75rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(106, 17, 203, 0.4);
  transition: var(--transition);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(106, 17, 203, 0.5);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(106, 17, 203, 0.4);
}

.text-center {
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--light-text);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.header.scrolled {
  padding: 0.75rem 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav-link {
  font-weight: 500;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: var(--gradient);
  transition: width 0.3s;
}

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

.nav-link:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 1002;
}

.hamburger span {
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  display: block;
  position: absolute;
  border-radius: 2px;
  transition: var(--transition);
}

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

.hamburger span:nth-child(2) {
  top: 9px;
}

.hamburger span:nth-child(3) {
  top: 18px;
}

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

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
  padding-top: 140px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

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

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

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

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

.hero-title {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-title span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--light-text);
}

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

.hero-image {
  position: relative;
  z-index: 5;
  text-align: center;
}

/* Features Section */
.features {
  padding: 100px 0;
  background-color: white;
  position: relative;
}

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

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

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

.feature-icon {
  width: 70px;
  height: 70px;
  margin-bottom: 1.5rem;
}

.feature-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.feature-text {
  color: var(--light-text);
}

/* How It Works Section */
.how-it-works {
  padding: 100px 0;
  background-color: #f8f9fa;
  position: relative;
  overflow: hidden;
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  counter-reset: step-counter;
}

.step {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  position: relative;
  counter-increment: step-counter;
  transition: var(--transition);
}

.step:hover {
  transform: translateY(-5px);
}

.step::before {
  content: counter(step-counter);
  background: var(--gradient);
  color: white;
  width: 40px;
  height: 40px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  position: absolute;
  top: -20px;
  left: 2rem;
}

.step-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.step-text {
  color: var(--light-text);
}

/* Chat Demo Section */
.chat-demo {
  padding: 100px 0;
  background: white;
  position: relative;
}

.chat-container {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
}

.chat-header {
  background: var(--gradient);
  padding: 1.5rem;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-messages {
  padding: 2rem;
  height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.message {
  max-width: 80%;
  padding: 1rem;
  border-radius: 1rem;
}

.message-bot {
  align-self: flex-start;
  background: #f1f1f1;
}

.message-user {
  align-self: flex-end;
  background: var(--gradient);
  color: white;
}

.chat-input {
  padding: 1.5rem;
  border-top: 1px solid #eee;
  display: flex;
  gap: 1rem;
}

.chat-input input {
  flex: 1;
  padding: 0.75rem 1.5rem;
  border: 1px solid #eee;
  border-radius: 50px;
  font-size: 1rem;
}

.chat-input button {
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.chat-input button:hover {
  transform: scale(1.05);
}

/* Testimonials */
.testimonials {
  padding: 100px 0;
  background: #f8f9fa;
}

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

.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
}

.testimonial-name {
  font-weight: 700;
}

.testimonial-position {
  color: var(--light-text);
  font-size: 0.875rem;
}

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

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.cta-text {
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-btn {
  background: white;
  color: var(--primary-color);
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
}

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

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

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.footer-about p {
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary-color);
  transform: translateY(-5px);
}

.footer-title {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
}

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

/* Animation Classes */
.reveal {
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content {
    margin: 0 auto;
    order: 1;
  }
  
  .hero-image {
    order: 0;
    margin-bottom: 2rem;
  }
  
  .hero-btns {
    justify-content: center;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 280px;
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 2rem 2rem;
    background: white;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.4s ease;
  }
  
  .nav-links.active {
    transform: translateX(0);
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .chat-messages {
    height: 350px;
  }
  
  .hero-btns {
    flex-direction: column;
    align-items: center;
  }
  
  .chat-demo {
    padding: 80px 0;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 2rem;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .feature-card, .step, .testimonial-card {
    padding: 1.5rem;
  }
  
  .chat-messages {
    height: 300px;
    padding: 1.5rem;
  }
  
  .footer {
    padding-top: 3rem;
  }
}
