:root {
  --brand: #1b8f5a;
  --brand-light: #e6f4ee;
  --brand-dark: #156b43;
  --accent: #f9c74f;
  --text-dark: #2d3748;
  --text-light: #718096;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
}

/* Navbar / Header Gradient with improved animation */
.navbar {
  background: linear-gradient(135deg, #ecf0ec,#3CB371); /* Green → Dark Green */
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  animation: fadeInDown 0.8s ease-out forwards;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Override nav links for light text with improved transitions */
.navbar .nav-link {
  color: #fff;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #28a745; /* highlight stays green */
  background: rgba(255, 255, 255, 0.2); /* keep frosted hover */
  transform: translateY(-2px);
}


    /* Navbar Links */
.navbar .nav-link {
  position: relative;
  padding: 8px 18px;
  border-radius: 25px;
  font-weight: 500;
  color: #000;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  overflow: hidden;
  z-index: 1;
}

/* Active Glass Effect (Green) */
.navbar .nav-link.active {
  background: rgba(255, 255, 255, 0.15); /* semi-transparent glass */
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px); /* frosted blur */
  color: #28a745; /* Green highlight */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-3px);
}

/* Hover Glass Effect (Green) */
.navbar .nav-link:hover {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  color: #28a745; /* Green hover */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-3px) scale(1.05);
}

/* Link hover animation */
.navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #28a745;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  transform: translateX(-50%);
  opacity: 0;
}

.navbar .nav-link:hover::after {
  width: 70%;
  opacity: 1;
}

/* Contact Button with Green Glass */
.btn-dark {
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  overflow: hidden;
  position: relative;
}

.btn-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(40, 167, 69, 0.85);
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 0;
}

.btn-dark:hover::before {
  left: 0;
}

.btn-dark:hover {
  color: #fff;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
  transform: translateY(-3px);
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px; /* space between text and arrow */
  font-weight: 500;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.contact-btn .btn-arrow {
  display: inline-block;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  font-size: 1.2em;
  position: relative;
  z-index: 1;
}

.contact-btn:hover .btn-arrow {
  transform: translateX(8px); /* arrow slides further */
}

.contact-btn .btn-text {
  display: inline-block;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  z-index: 1;
}

.contact-btn:hover .btn-text {
  transform: translateX(4px); /* text follows the arrow */
}

/* About Hero Section */
.about-hero {
  padding: 80px 0;
  background: linear-gradient(to right, var(--white) 60%, var(--brand-light) 40%);
}

.about-hero h1 {
  color: var(--brand-dark);
  animation: fadeInUp 0.8s ease-out;
}

.divider {
  height: 4px;
  width: 60px;
  background: var(--brand);
  animation: expandWidth 1.2s ease-out;
}

.about-hero p {
  animation: fadeInUp 1s ease-out 0.2s;
  animation-fill-mode: both;
}

.stat-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
}

.stat-number {
  font-weight: 700;
  font-size: 1.2rem;
}

.about-image-container {
  position: relative;
  animation: fadeInRight 1s ease-out;
}

.about-image-container::before {
  content: '';
  position: absolute;
  top: -15px;
  right: -15px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--accent);
  border-radius: 1rem;
  z-index: -1;
}

/* Values Section */
.value-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow);
  height: 100%;
  transition: all 0.3s ease;
  animation: fadeInUp 0.8s ease-out;
}

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

.value-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.value-card:hover .value-icon {
  background: var(--brand);
  color: var(--white);
  transform: rotate(10deg);
}

.value-card h4 {
  color: var(--brand-dark);
  margin-bottom: 1rem;
}

/* Doctors Section Background */
.doctor-section {
  background: linear-gradient(135deg, #80c37c, #097f44);
  border-radius: 20px;
}

/* Doctor Card */
.doctor-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Doctor Image */
.doctor-img {
  background: #f1f1f1;
  border-radius: 15px;
  overflow: hidden;
  padding: 10px;
}

.doctor-img img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

/* Social Icons */
.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f1f1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: #28a745;
  color: #fff;
}


/* Schedule Section */
.schedule-section {
  background: #fff; /* White background */
  border-radius: 20px;
  padding: 60px 20px;
  margin: 50px auto;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08); /* optional subtle shadow */
}

.schedule-section h2 {
  font-size: 2.5rem;
  color: #000; /* Black text */
}

.schedule-section p {
  font-size: 1.1rem;
  color: #333; /* Dark gray for readability */
}

.schedule-section .btn {
  font-weight: 600;
  background: #000; /* Black button */
  color: #fff;
  transition: 0.3s;
  border-radius: 50px;
}

.schedule-section .btn:hover {
  background: #28a745; /* Green hover */
  color: #fff;
}

/* Doctor Cards Pop-Bounce Animation */
#doctors .card {
  opacity: 0;
  transform: scale(0.7);
}
#doctors .card.reveal {
  opacity: 1;
  animation: popBounce 0.6s cubic-bezier(0.28, 1.5, 0.55, 1) forwards;
}

@keyframes popBounce {
  0% { transform: scale(0.7); opacity: 0; }
  60% { transform: scale(1.1); opacity: 1; }
  80% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

/* Hover effect */
#doctors .card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 12px 25px rgba(0,0,0,.15);
}

/* Background tone */
.bg-light-green {
  background-color: #f0faf5;
}

/* Title divider */
.journey-divider {
  width: 90px;
  height: 3px;
  background-color: #198754;
  border-radius: 3px;
}

/* Timeline container */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  margin-top: 2rem;
}

/* Vertical connecting line (optional aesthetic) */
.timeline::before {
  content: "";
  position: absolute;
  left: 35px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgba(25, 135, 84, 0.15);
  z-index: 0;
}

/* Each timeline milestone */
.timeline-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

/* Year circle — 70px size */
.timeline-year {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  background-color: #198754;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(25, 135, 84, 0.25);
}

/* Content box — balanced size */
.timeline-content {
  background-color: #ffffff;
  flex-grow: 1;
  padding: 1.1rem 1.4rem;
  border-radius: 14px;
  font-weight: 500;
  font-size: 1.05rem;
  color: #1c1c1c;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Responsive layout */
@media (max-width: 768px) {
  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .timeline::before {
    left: 30px;
  }

  .timeline-year {
    width: 60px;
    height: 60px;
    font-size: 0.9rem;
  }

  .timeline-content {
    font-size: 0.95rem;
    padding: 1rem 1.2rem;
  }
}



/* Testimonials */
.testimonial-card {
  background: var(--white);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow);
  height: 100%;
  transition: all 0.3s ease;
  animation: fadeInUp 0.8s ease-out;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-quote {
  font-size: 2.5rem;
  color: var(--brand);
  opacity: 0.2;
  margin-bottom: 1rem;
}

.testimonial-rating {
  color: var(--accent);
  margin-top: 1rem;
}

.testimonial-avatar img {
  width: 50px;
  height: 50px;
  object-fit: cover;
}

/* CTA Section */
.cta-section {
  background-color: #ffffff;
  padding: 80px 20px;
}

.cta-heading {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: #000;
  margin-bottom: 15px;
}

.cta-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  color: #4a4a4a;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 25px;
  line-height: 1.6;
}

/* Button styling */
.btn-success {
  background-color: #2e7d32; /* Clinic green */
  border: none;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
}

.btn-success:hover {
  background-color: #256728;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(46, 125, 50, 0.3);
}

/* Responsive for small screens */
@media (max-width: 768px) {
  .cta-heading {
    font-size: 1.6rem;
  }

  .cta-text {
    font-size: 1rem;
  }
}



/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes expandWidth {
  from {
    width: 0;
  }
  to {
    width: 60px;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(27, 143, 90, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(27, 143, 90, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(27, 143, 90, 0);
  }
}

/* Responsive */
@media (max-width: 992px) {
  .about-hero {
    background: var(--white);
  }
}

@media (max-width: 768px) {
  .about-hero {
    padding: 60px 0;
  }
  
  .about-image-container::before {
    display: none;
  }
}


/* Floating WhatsApp */
.floating-whatsapp{
  position:fixed; right:16px; bottom:16px; z-index:999; width:56px; height:56px; border-radius:50%;
  display:grid; place-items:center; color:#fff; background:#25D366; box-shadow:0 8px 22px rgba(0,0,0,.2)
}

/* Back to top (arrow above WhatsApp) */
.back-to-top{
  position:fixed; right:16px; bottom:84px; z-index:999; display:none; width:44px; height:44px; border-radius:10px;
  box-shadow:0 6px 16px rgba(0,0,0,.18)
}
/* Footer (unified) */
.footer{background:#0e3b2b;color:#cfe7db}
.footer a{color:#cfe7db;text-decoration:none}
.footer a:hover{color:#fff}
