/* Global Styles */
:root {
  --primary-color: #4a6bdf;
  --primary-dark: #3f5bcc;
  --primary-light: #eef1ff;
  --secondary-color: #32c5ff;
  --text-color: #333;
  --text-light: #777;
  --bg-light: #f8f9fd;
  --white: #fff;
  --gray-light: #f5f5f7;
  --gray: #e6e6e8;
  --success: #28a745;
  --border-radius: 10px;
  --shadow-sm: 0 3px 10px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease-in-out;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
  overflow-x: hidden;
  padding-top: 0; /* Adjusted for fixed navbar */
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
}

p {
  color: var(--text-light);
}

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

.section {
  padding: 80px 0;
}

.section-header {
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 32px;
  margin-bottom: 16px;
  position: relative;
}

.section-header p {
  max-width: 760px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  padding: 12px 24px;
  font-weight: 500;
  border-radius: 7px;
  transition: var(--transition);
}

.primary-btn {
  background-color: var(--primary-color);
  color: var(--white);
  border: 2px solid var(--primary-color);
}

.primary-btn:hover {
  background-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(74, 107, 223, 0.25);
}

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

.outline-btn:hover {
  background-color: var(--primary-light);
  color: var(--primary-color);
  transform: translateY(-3px);
}

/* Navbar */
.navbar {
  background-color: var(--white);
  padding: 15px 0;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.navbar-brand {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-link {
  font-weight: 500;
  margin: 0 5px;
  color: var(--text-color) !important;
  transition: var(--transition);
}

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

.demo-btn {
  background-color: var(--primary-light);
  color: var(--primary-color) !important;
  border-radius: 50px;
  padding: 8px 16px;
}

.demo-btn:hover {
  background-color: var(--primary-color);
  color: var(--white) !important;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(to bottom right, var(--white), #f0f4ff);
  padding-top: 160px;
  padding-bottom: 80px;
  position: relative;
}

.hero-text {
  padding-right: 30px;
}

.hero-text h1 {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
}

.hero-text h1 span {
  color: var(--primary-color);
}

.hero-text p {
  font-size: 18px;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
  z-index: 1;
}

.dashboard-preview {
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  padding: 30px;
  position: relative;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}

.feature-card {
  background-color: var(--primary-light);
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 16px;
}

.feature-card:last-child {
  margin-bottom: 0;
}

.feature-icon {
  color: var(--primary-color);
  font-size: 22px;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.cal-day {
  background-color: var(--white);
  border: 1px solid var(--gray);
  border-radius: 5px;
  padding: 5px;
  text-align: center;
  font-size: 14px;
}

.cal-day.active {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.cal-day.highlight {
  background-color: var(--primary-light);
  color: var(--primary-color);
  border-color: var(--primary-light);
}

.record-preview, .patient-preview {
  margin-top: 10px;
}

.record-line {
  height: 12px;
  background-color: var(--white);
  border-radius: 6px;
  margin-bottom: 10px;
}

.record-line.short {
  width: 60%;
}

.patient-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.patient-avatar {
  width: 30px;
  height: 30px;
  background-color: var(--primary-color);
  opacity: 0.5;
  border-radius: 50%;
  margin-right: 10px;
}

.patient-info {
  height: 10px;
  background-color: var(--white);
  border-radius: 5px;
  flex: 1;
}

.blob {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
}

.blob-1 {
  width: 200px;
  height: 200px;
  background-color: var(--primary-light);
  top: -50px;
  left: -80px;
}

.blob-2 {
  width: 150px;
  height: 150px;
  background-color: var(--secondary-color);
  opacity: 0.1;
  bottom: -30px;
  right: -50px;
}

.wave-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  position: relative;
  display: block;
  width: 100%;
  height: 60px;
}

.wave-divider svg path {
  fill: var(--white);
}

/* Features Section */
.features-section {
  background-color: var(--white);
}

.features-grid {
  margin-top: 30px;
}

.feature-box {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}

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

.feature-box .feature-icon {
  width: 70px;
  height: 70px;
  background-color: var(--primary-light);
  color: var(--primary-color);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}

.feature-box h3 {
  font-size: 20px;
  margin-bottom: 16px;
}

.feature-box p {
  margin-bottom: 0;
}

/* Pricing Section */
.pricing-section {
  background: linear-gradient(to bottom, var(--white), var(--primary-light));
}

.pricing-cards {
  margin-bottom: 60px;
}

.pricing-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

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

.pricing-card.popular {
  border: 2px solid var(--primary-color);
  transform: translateY(-10px);
}

.pricing-card.popular:hover {
  transform: translateY(-15px);
}

.popular-badge {
  position: absolute;
  top: -10px;
  right: 20px;
  background-color: var(--primary-color);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 20px;
  z-index: 1;
}

.card-header {
  padding: 30px;
  text-align: center;
  border-bottom: 1px solid var(--gray);
}

.card-header h3 {
  font-size: 20px;
  margin-bottom: 16px;
}

.price {
  margin-bottom: 10px;
}

.amount {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-color);
}

.period {
  font-size: 16px;
  color: var(--text-light);
}

.card-body {
  padding: 30px;
  flex-grow: 1;
}

.feature-heading {
  font-weight: 600;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gray);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
}

.feature-list li i {
  margin-right: 10px;
  margin-top: 4px;
}

.feature-list .available i {
  color: var(--success);
}

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

.card-footer {
  padding: 20px 30px 30px;
}

.additional-services {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.additional-services h3 {
  font-size: 24px;
  margin-bottom: 16px;
  text-align: center;
}

.additional-services p {
  text-align: center;
  margin-bottom: 30px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.addon-card {
  background-color: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--border-radius);
  padding: 20px;
  transition: var(--transition);
  height: 100%;
}

.addon-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.addon-card h4 {
  font-size: 14px;
  margin-bottom: 10px;
  font-weight: 600;
}

.addon-card .price {
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0;
}

/* Testimonials Section */
.testimonials-section {
  background-color: var(--white);
}

.testimonial-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  padding: 30px;
  height: 100%;
  transition: var(--transition);
}

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

.quote-icon {
  color: var(--primary-light);
  font-size: 28px;
  margin-bottom: 20px;
}

.quote {
  font-size: 16px;
  font-style: italic;
  margin-bottom: 20px;
  color: var(--text-color);
}

.client {
  display: flex;
  align-items: center;
}

.client-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
}

.client-info h4 {
  font-size: 16px;
  margin-bottom: 5px;
}

.client-info p {
  font-size: 14px;
  margin-bottom: 0;
}

/* Contact Section */
.contact-section {
  background-color: var(--bg-light);
}

.contact-box {
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.contact-info {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  padding: 50px 40px;
}

.contact-info h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: var(--white);
}

.contact-info p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 30px;
}

.benefits {
  list-style: none;
  padding: 0;
}

.benefits li {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
}

.benefits li i {
  color: rgba(255, 255, 255, 0.7);
  margin-right: 10px;
  margin-top: 5px;
}

.contact-form {
  padding: 50px 40px;
  background-color: var(--white);
}

.contact-form h3 {
  margin-bottom: 20px;
  font-size: 22px;
}

.form-label {
  font-weight: 500;
}

.form-control {
  padding: 12px;
  border-radius: 8px;
}

.form-control:focus {
  box-shadow: none;
  border-color: var(--primary-color);
}

.form-success {
  text-align: center;
  padding: 30px 0;
}

.success-icon {
  font-size: 50px;
  color: var(--success);
  margin-bottom: 20px;
}

/* Footer */
.footer {
  background-color: #222;
  color: #fff;
  padding: 70px 0 20px;
}

.footer h3 {
  color: var(--white);
  font-size: 24px;
  margin-bottom: 20px;
}

.footer h4 {
  color: var(--white);
  font-size: 18px;
  margin-bottom: 20px;
}

.footer p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

.social-icons {
  display: flex;
  gap: 15px;
}

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

.social-icons a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

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

.footer-links li {
  margin-bottom: 10px;
}

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

.footer-links a:hover {
  color: var(--white);
  padding-left: 5px;
}

.contact-info {
  list-style: none;
  padding: 0;
}

.contact-info li {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.7);
}

.contact-info li i {
  margin-right: 10px;
  margin-top: 5px;
}

.opening-hours {
  list-style: none;
  padding: 0;
}

.opening-hours li {
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

.back-to-top {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary-color);
}

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

/* Media Queries */
@media (max-width: 991.98px) {
  .hero-text {
    margin-bottom: 50px;
    padding-right: 0;
  }
  
  .hero-text h1 {
    font-size: 36px;
  }
  
  .section-header h2 {
    font-size: 28px;
  }
  
  .contact-info, .contact-form {
    padding: 40px 30px;
  }
}

@media (max-width: 767.98px) {
  .hero-text h1 {
    font-size: 32px;
  }
  
  .hero-text p {
    font-size: 16px;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .section-header {
    margin-bottom: 40px;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .hero-text h1 {
    font-size: 28px;
  }
  
  .addon-card h4 {
    font-size: 12px;
  }
}
