/* Global Styles */
:root {
  --primary: #4CAF50;
  --primary-dark: #388E3C;
  --primary-light: #A5D6A7;
  --secondary: #2196F3;
  --secondary-dark: #1976D2;
  --text-dark: #333333;
  --text-light: #757575;
  --text-white: #FFFFFF;
  --bg-light: #F5F5F5;
  --bg-white: #FFFFFF;
  --bg-dark: #263238;
  --border-light: #E0E0E0;
  --success: #4CAF50;
  --warning: #FFC107;
  --danger: #F44336;
  --neutral: #9E9E9E;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --radius: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

h1, h2, h3, h4, h5 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5em;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary-dark);
}

ul {
  list-style: none;
}

.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: var(--text-white);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary-light);
  color: var(--primary-dark);
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 2.2rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

/* Navigation Bar */
.navbar {
  background-color: var(--bg-white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 20px 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
  color: var(--primary);
}

.nav-menu {
  display: flex;
}

.nav-menu li {
  margin-left: 30px;
}

.nav-menu a {
  color: var(--text-dark);
  font-weight: 600;
  position: relative;
}

.nav-menu a:hover, .nav-menu a.active {
  color: var(--primary);
}

/* .nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary);
  border-radius: 2px;
} */

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 30px;
}

.hero-image {
  flex: 1;
  text-align: right;
}

/* .styled-hero-image {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 100%;
  height: 400px;
} */
.styled-hero-image {
  width: 100%;
  max-width: 500px;
  max-height: 400px;
  margin: auto; 
  display: block;
  border-radius: 15px; 
  box-shadow: 0px 10px 30px rgba(30, 144, 255, 0.5); 
  transition: transform 0.3s, box-shadow 0.3s; 
}

.styled-hero-image:hover {
  transform: scale(1.05);
  box-shadow: 0px 15px 45px rgba(30, 144, 255, 0.7);
}

/* Consultation Options Section */
.consultation-options {
  padding: 80px 0;
  background-color: var(--bg-white);
}

.option-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.option-card {
  background-color: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.option-card:hover, .option-card.active {
  transform: translateY(-10px);
  border-color: var(--primary);
}

.option-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
  text-align: center;
}

.option-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  text-align: center;
}

.option-card p {
  color: var(--text-light);
  margin-bottom: 20px;
  text-align: center;
}

.option-benefits {
  margin-top: 20px;
}

.option-benefits li {
  margin-bottom: 10px;
  color: var(--text-dark);
  display: flex;
  align-items: center;
}

.option-benefits li i {
  color: var(--primary);
  margin-right: 10px;
}

/* Dynamic Content Section */
.dynamic-content {
  padding: 60px 0;
  background-color: var(--bg-light);
}

.content-section {
  display: none;
}

.content-section.active {
  display: block;
}

/* AI Chat Interface */
.chat-interface {
  max-width: 900px;
  margin: 0 auto;
  background-color: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.chat-container {
  display: flex;
  flex-direction: column;
  height: 500px;
}

.chat-header {
  background-color: var(--primary);
  color: var(--text-white);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h3 {
  margin: 0;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
}

.chat-header h3 i {
  margin-right: 10px;
}

.online-status {
  font-size: 0.9rem;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 3px 10px;
  border-radius: 20px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background-color: #f9f9f9;
}

.message {
  margin-bottom: 15px;
  max-width: 80%;
}

.bot-message {
  background-color: var(--primary-light);
  color: var(--text-dark);
  border-radius: 10px 10px 10px 0;
  padding: 12px 15px;
}

.user-message {
  background-color: var(--secondary);
  color: var(--text-white);
  border-radius: 10px 10px 0 10px;
  padding: 12px 15px;
  margin-left: auto;
}

.message p {
  margin: 0;
}

.chat-input {
  display: flex;
  padding: 15px;
  background-color: var(--bg-white);
  border-top: 1px solid var(--border-light);
}

.chat-input input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius) 0 0 var(--radius);
  font-size: 1rem;
  outline: none;
}

.chat-input button {
  background-color: var(--primary);
  color: var(--text-white);
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.chat-input button:hover {
  background-color: var(--primary-dark);
}

.chat-suggestions {
  padding: 20px;
  background-color: var(--bg-white);
  border-top: 1px solid var(--border-light);
}

.chat-suggestions h4 {
  margin-bottom: 15px;
  font-size: 1rem;
  color: var(--text-light);
}

.suggestion-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.suggestion-chip {
  background-color: var(--bg-light);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.suggestion-chip:hover {
  background-color: var(--primary-light);
  color: var(--primary-dark);
}

/* Doctor Consultation Interface */
.consultation-booking {
  max-width: 900px;
  margin: 0 auto;
}

.doctor-filters {
  background-color: var(--bg-white);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: flex-end;
}

.filter-group {
  flex: 1;
  min-width: 180px;
}

.filter-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.filter-group select, .filter-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  font-size: 1rem;
  outline: none;
}

#filter-doctors {
  min-width: 120px;
}

.doctors-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.doctor-card {
  background-color: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.doctor-image img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.doctor-info {
  flex: 1;
}

.doctor-info h3 {
  margin-bottom: 5px;
  font-size: 1.3rem;
}

.doctor-specialty {
  color: var(--text-light);
  margin-bottom: 10px;
}

.doctor-rating {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.doctor-rating i {
  color: #FFC107;
  margin-right: 2px;
}

.doctor-rating span {
  margin-left: 5px;
  color: var(--text-light);
  font-size: 0.9rem;
}

.doctor-availability {
  font-weight: 500;
  color: var(--primary);
}

.book-btn {
  min-width: 150px;
}

/* Health Insights Interface */
.insights-dashboard {
  max-width: 900px;
  margin: 0 auto;
}

.auth-message {
  background-color: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 20px;
  text-align: center;
}

.auth-icon {
  font-size: 3rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

.auth-message h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.auth-message p {
  color: var(--text-light);
  margin-bottom: 30px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.auth-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.hidden {
  display: none;
}

.insights-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.insight-card {
  background-color: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  flex: 1;
  min-width: 250px;
  text-align: center;
}

.insight-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.score-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
}

#health-score {
  font-size: 25px;
  font-weight: 700;
  color: var(--primary-dark);
}

.score-max {
  font-size: 25px;
  font-weight: 700;
  color: var(--primary-dark);
 
  top: 35px;
  right: 20px;
}

.chart-placeholder {
  margin-top: 10px;
}

.chart-placeholder img {
  max-width: 100%;
  border-radius: var(--radius);
}

.next-steps {
  text-align: left;
  margin-top: 15px;
}

.next-steps li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.next-steps li i {
  color: var(--primary);
  margin-right: 10px;
}

.insights-detail {
  background-color: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
}

.insights-detail h3 {
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.insight-categories {
  display: flex;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 20px;
  overflow-x: auto;
}

.category-tab {
  padding: 10px 20px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.category-tab.active {
  color: var(--primary);
  border-bottom: 3px solid var(--primary);
  margin-bottom: -2px;
}

.category-content {
  display: none;
}

.category-content.active {
  display: block;
}

.insight-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.metric {
  flex: 1;
  min-width: 180px;
  background-color: var(--bg-light);
  padding: 15px;
  border-radius: var(--radius);
}

.metric h4 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--text-light);
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.metric-value span {
  font-size: 0.9rem;
  font-weight: normal;
  color: var(--text-light);
}

.metric-status {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
}

.metric-status i {
  margin-right: 5px;
}

.positive {
  color: var(--success);
}

.negative {
  color: var(--danger);
}

.neutral {
  color: var(--neutral);
}

.ai-recommendation {
  background-color: var(--bg-light);
  padding: 20px;
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
}

.ai-recommendation h4 {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  color: var(--primary);
}

.ai-recommendation h4 i {
  margin-right: 10px;
}

.placeholder-message {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-light);
}

/* Testimonials Section */
.testimonials {
  padding: 80px 0;
  background-color: var(--bg-white);
}

.testimonial-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonial-slide {
  display: none;
}

.testimonial-slide.active {
  display: block;
}

.testimonial-content {
  background-color: var(--bg-light);
  padding: 30px;
  border-radius: var(--radius);
  position: relative;
}

.quote {
  font-size: 2rem;
  color: var(--primary-light);
  margin-bottom: 10px;
}

.testimonial-content p {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
}

.testimonial-author h4 {
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.testimonial-author p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-light);
  font-style: normal;
}

.slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

.slider-controls button {
  background-color: transparent;
  border: none;
  font-size: 1.2rem;
  color: var(--text-light);
  cursor: pointer;
  padding: 10px;
  transition: all 0.3s ease;
}

.slider-controls button:hover {
  color: var(--primary);
}

.slider-dots {
  display: flex;
  gap: 10px;
  margin: 0 20px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--border-light);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background-color: var(--primary);
}

/* FAQ Section */
.faq-section {
  padding: 80px 0;
  background-color: var(--bg-light);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  overflow: hidden;
}

.faq-question {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.2rem;
  flex: 1;
}

.faq-toggle {
  color: var(--primary);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.faq-item.active .faq-toggle i {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 0 20px 20px;
  max-height: 500px;
}

/* CTA Section */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--text-white);
}

.cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-buttons .btn-primary {
  background-color: var(--text-white);
  color: var(--primary);
}

.cta-buttons .btn-primary:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.cta-buttons .btn-secondary {
  color: var(--text-white);
  border-color: var(--text-white);
}

.cta-buttons .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Footer */
.footer {
  background-color: var(--bg-dark);
  color: var(--text-white);
  padding: 60px 0 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  flex: 2;
  min-width: 250px;
}

.footer-logo h2 {
  color: var(--primary);
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.footer-logo p {
  opacity: 0.7;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--text-white);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

.footer-links {
  flex: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.link-group {
  flex: 1;
  min-width: 150px;
}

.link-group h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
}

.link-group h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 30px;
  height: 3px;
  background-color: var(--primary);
}

.link-group ul li {
  margin-bottom: 10px;
}

.link-group ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.link-group ul li a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-newsletter {
  flex: 2;
  min-width: 250px;
}

.footer-newsletter h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
}

.footer-newsletter h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 30px;
  height: 3px;
  background-color: var(--primary);
}

.footer-newsletter p {
  opacity: 0.7;
  margin-bottom: 20px;
}

.newsletter-form {
  display: flex;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 15px;
  border: none;
  border-radius: var(--radius) 0 0 var(--radius);
  outline: none;
  font-size: 0.9rem;
}

.newsletter-form button {
  background-color: var(--primary);
  color: var(--text-white);
  border: none;
  padding: 0 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  background-color: var(--primary-dark);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  opacity: 0.7;
  font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero .container {
      flex-direction: column;
      text-align: center;
  }
  
  .hero-image {
      margin-top: 30px;
      text-align: center;
  }
  
  .doctor-card {
      flex-direction: column;
      text-align: center;
  }
  
  .doctor-image {
      margin-bottom: 15px;
  }
  
  .doctor-rating {
      justify-content: center;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
      display: block;
  }
  
  .nav-menu {
      position: fixed;
      top: 70px;
      left: -100%;
      width: 100%;
      height: calc(100vh - 70px);
      background-color: var(--bg-white);
      flex-direction: column;
      align-items: center;
      padding: 40px 0;
      transition: all 0.3s ease;
  }
  
  .nav-menu.active {
      left: 0;
  }
  
  .nav-menu li {
      margin: 15px 0;
  }
  
  .option-card {
      min-width: 100%;
  }
  
  .auth-buttons {
      flex-direction: column;
      gap: 10px;
  }
  
  .category-tab {
      padding: 10px 15px;
      font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .section-header h2 {
      font-size: 1.8rem;
  }
  
  .hero-content h1 {
      font-size: 2.2rem;
  }
  
  .cta-content h2 {
      font-size: 2rem;
  }
  
  .footer-content {
      flex-direction: column;
      gap: 30px;
  }
  
  .footer-links {
      flex-direction: column;
      gap: 30px;
  }
  
  .newsletter-form {
      flex-direction: column;
  }
  
  .newsletter-form input {
      border-radius: var(--radius);
      margin-bottom: 10px;
  }
  
  .newsletter-form button {
      border-radius: var(--radius);
      padding: 12px;
  }
}