:root {
  --cta-color: #ffb703;
  --alternative-color: #fb8500;
  --secondary-color: #219ebc;
  --supportive-background: #8ecae6;
  --success-color: #4caf50;
  --neutral-background: #ffffff;
  --text-color: #333333;
  --brand-color: #023047;
  --main-background: #f9fafc;
  --shadow-color: rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: 'Open Sans', system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  color: var(--text-color);
  background-color: var(--background-color);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background-color: white;
  box-shadow: 0 2px 4px var(--shadow-color);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 10000;
}

.logo img {
  width: 150px;
  height: auto;
}

.nav-links a {
  margin-left: 2rem;
  text-decoration: none;
  color: var(--text-color);
}

.nav-links a.cta-button {
  color:white;
}

.cta-button {
  background-color: var(--cta-color);
  color: white;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: var(--alternative-color);
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 100vh;
  padding: 5rem 5%;
  background: linear-gradient(135deg, --main-background 0%, --neutral-background 100%);
}

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

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: --text-color;
}

.hero-image {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
}

.chat-bubble {
  background: white;
  padding: 1rem;
  border-radius: 15px;
  box-shadow: 0 4px 6px var(--shadow-color);
  max-width: 80%;
  animation: float 3s infinite ease-in-out;
}

.chat-bubble:nth-child(2) {
  align-self: flex-end;
  animation-delay: 1.5s;
}

.chat-bubble:nth-child(1) {
  background-color: var(--success-color);
}

.chat-bubble:nth-child(2) {
  background-color: var(--supportive-background);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.component {
  padding: 5rem 5%;
  text-align: center;
}

.component:nth-child(even) {
  background-color: var(--main-background);
}

.component:nth-child(odd) {
  background-color: var(--neutral-background);
}

#testimonials {
    padding: 50px 20px;
    text-align: center;
}

#testimonials h2 {
    margin-bottom: 40px;
}

.testimonial-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.testimonial {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    max-width: 300px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.testimonial-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.testimonial-text {
    font-size: 16px;
    color: #555;
    margin-bottom: 15px;
    font-style: italic;
}

.testimonial-author {
    font-size: 14px;
    color: #777;
    font-weight: bold;
}

#features h2 {
  margin-bottom: 3rem;
}

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

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 4px 6px var(--shadow-color);
  transition: transform 0.3s ease;
}

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

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.steps {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 3rem;
}

.step {
  flex: 1;
  min-width: 250px;
  max-width: 300px;
}

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

.demo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem auto;
  max-width: 900px;
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px var(--shadow-color);
}

.demo-wrapper {
  position: relative;
  width: 100%;
  transition: all 0.3s ease-in-out;
}

.demo-wrapper.fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10001;
  background: white;
  margin: 0;
  padding: 0;
  border-radius: 0;
}

.demo-wrapper.fullscreen iframe {
  width: 100%;
  height: 100%;
  max-width: none;
  border-radius: 0;
}

.demo-container iframe {
  width: 100%;
  max-width: 850px;
  border-radius: 8px;
  transition: all 0.3s ease-in-out;
}

.fullscreen-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--secondary-color);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 9999;
  opacity: 0.7;
}

.fullscreen-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

.fullscreen-btn svg {
  transition: transform 0.3s ease;
}

.demo-wrapper.fullscreen .fullscreen-btn svg {
  transform: rotate(180deg);
}

form {
  max-width: 400px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input {
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 25px;
  font-size: 1rem;
}

footer {
  text-align: center;
  padding: 2rem;
  background-color: var(--text-color);
  color: white;
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 8rem;
  }

  .nav-links {
    display: none;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    flex-direction: column;
    align-items: center;
  }
}

.faq-item {
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    background-color: #f9f9f9;
    border: none;
    cursor: pointer;
    outline: none;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f1f1f1;
}

.faq-answer {
    padding: 0 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer p {
    margin: 10px 0;
}

/* Active state for open answers */
.faq-item.active .faq-answer {
    max-height: 200px; /* Adjust based on your content */
    padding: 15px;
}
