:root {
  --primary-green: #189217;
  --primary-teal: #00b686;
  --dark-navy: #354c8c;
  --soft-gray: #f5f7fa;
  --white: #ffffff;
  --text-dark: #2c3e50;
  --text-light: #64748b;
}

img { loading: lazy; }
.hero { will-change: transform; }

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 15px 0;
  transition: all 0.3s ease;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: "Poppins", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-green);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary-teal);
}

.nav-cta {
  background: linear-gradient(
    135deg,
    var(--primary-green),
    var(--primary-teal)
  );
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(24, 146, 23, 0.3);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--soft-gray) 0%, #e8f5ff 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600" opacity="0.05"><path d="M100 200l50-30 40 60-30 40z" fill="%23189217"/><circle cx="800" cy="150" r="20" fill="%2300B686"/><path d="M300 400l20-15 15 25-15 20z" fill="%23354c8c"/><circle cx="1000" cy="350" r="15" fill="%23189217"/></svg>');
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 120px 0 80px;
}

.hero-text h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(
    135deg,
    var(--primary-green),
    var(--primary-teal)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text p {
  font-size: 1.3rem;
  color: var(--text-light);
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-green),
    var(--primary-teal)
  );
  color: white;
  padding: 16px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(24, 146, 23, 0.4);
}

.btn-secondary {
  background: white;
  color: var(--primary-green);
  border: 2px solid var(--primary-green);
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--primary-green);
  color: white;
  transform: translateY(-2px);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  width: 300px;
  height: 600px;
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  border-radius: 40px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.phone-screen {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  background: linear-gradient(
    135deg,
    var(--primary-green),
    var(--primary-teal)
  );
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  padding: 20px;
}

.floating-icons {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.floating-icon {
  position: absolute;
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  animation: float 6s ease-in-out infinite;
}

.floating-icon:nth-child(1) {
  top: 100px;
  left: 50px;
  animation-delay: -2s;
}

.floating-icon:nth-child(2) {
  top: 200px;
  right: 80px;
  animation-delay: -4s;
}

.floating-icon:nth-child(3) {
  bottom: 200px;
  left: 80px;
  animation-delay: -1s;
}

.floating-icon:nth-child(4) {
  bottom: 100px;
  right: 50px;
  animation-delay: -3s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }
}

/* Features Section */
.features {
  padding: 100px 0;
  background: white;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-header h2 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.section-header p {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.feature-card {
  background: white;
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    var(--primary-green),
    var(--primary-teal)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  font-size: 35px;
  color: white;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.feature-card p {
  color: var(--text-light);
  line-height: 1.6;
}

/* How It Works */
.how-it-works {
  padding: 100px 0;
  background: var(--soft-gray);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  margin-top: 60px;
}

.step {
  text-align: center;
  position: relative;
}

.step::after {
  content: "→";
  position: absolute;
  top: 40px;
  right: -30px;
  font-size: 30px;
  color: var(--primary-teal);
  font-weight: bold;
}

.step:last-child::after {
  display: none;
}

.step-number {
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    var(--primary-green),
    var(--primary-teal)
  );
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  margin: 0 auto 30px;
}

.step h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--text-dark);
}

/* Dashboard Preview */
.dashboard-preview {
  padding: 100px 0;
  background: white;
}

.dashboard-mockup {
  max-width: 800px;
  margin: 60px auto 0;
  background: white;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.dashboard-header {
  background: linear-gradient(
    135deg,
    var(--primary-green),
    var(--primary-teal)
  );
  color: white;
  padding: 30px;
  text-align: center;
}

.dashboard-content {
  padding: 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.dashboard-widget {
  background: var(--soft-gray);
  padding: 20px;
  border-radius: 15px;
  text-align: center;
}

.widget-value {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-green);
  margin-bottom: 10px;
}

/* Why KareHub */
.why-karehub {
  padding: 100px 0;
  background: var(--soft-gray);
}

.why-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 60px;
}

.why-image {
  width: 100%;
  height: 400px;
  background: linear-gradient(
    135deg,
    var(--primary-green),
    var(--primary-teal)
  );
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 4rem;
}

.why-text h3 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.why-text p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.7;
}

.why-quote {
  font-style: italic;
  font-size: 1.2rem;
  color: var(--primary-green);
  border-left: 4px solid var(--primary-teal);
  padding-left: 20px;
  margin-top: 30px;
}

/* Provider Benefits */
.provider-benefits {
  padding: 100px 0;
  background: white;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 60px;
}

.benefit-card {
  background: linear-gradient(
    135deg,
    rgba(24, 146, 23, 0.05),
    rgba(0, 182, 134, 0.05)
  );
  padding: 40px;
  border-radius: 20px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.benefit-card:hover {
  border-color: var(--primary-teal);
  transform: translateY(-5px);
}

.benefit-card h4 {
  font-size: 1.4rem;
  color: var(--text-dark);
  margin-bottom: 15px;
}

/* Testimonials */
.testimonials {
  padding: 100px 0;
  background: var(--dark-navy);
  color: white;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
  margin-top: 60px;
}

.testimonial {
  background: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.testimonial-quote {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.6;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary-teal);
}

/* CTA Section */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(
    135deg,
    var(--primary-green),
    var(--primary-teal)
  );
  color: white;
  text-align: center;
}

.cta-section h2 {
  font-size: 2.8rem;
  margin-bottom: 30px;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 50px;
  opacity: 0.9;
}

.app-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.app-badge {
  background: white;
  color: var(--text-dark);
  padding: 15px 25px;
  border-radius: 15px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-badge:hover {
  transform: translateY(-3px);
}

/* Footer */
footer {
  background: var(--text-dark);
  color: white;
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-logo {
  font-family: "Poppins", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-teal);
  margin-bottom: 20px;
}

.footer-section h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--primary-teal);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: #bbb;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--primary-teal);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #444;
  color: #bbb;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .step::after {
    display: none;
  }

  .why-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .dashboard-content {
    grid-template-columns: 1fr;
  }
}

.services-showcase {
  background: #f5fdfb;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
  font-size: 40px;
  margin-bottom: 15px;
  animation: bounce 3s infinite ease-in-out;
}

.btn-link {
  display: inline-block;
  margin-top: 15px;
  font-weight: 600;
  color: var(--primary-green, #009688);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border 0.3s ease;
}
.btn-link:hover {
  border-bottom: 2px solid var(--primary-green, #009688);
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* Floating emojis animation */
.floating-healthcare span {
  position: absolute;
  font-size: 28px;
  opacity: 0.6;
  animation: floaty 8s infinite ease-in-out;
}
.floating-healthcare span:nth-child(1) {
  left: 10%;
  top: 20%;
  animation-delay: 0s;
}
.floating-healthcare span:nth-child(2) {
  left: 70%;
  top: 10%;
  animation-delay: 2s;
}
.floating-healthcare span:nth-child(3) {
  left: 50%;
  top: 70%;
  animation-delay: 4s;
}
.floating-healthcare span:nth-child(4) {
  left: 80%;
  top: 50%;
  animation-delay: 6s;
}

@keyframes floaty {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.4;
  }
  50% {
    transform: translateY(-20px) rotate(15deg);
    opacity: 0.8;
  }
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.4;
  }
}
