/* General Reset */
@keyframes bob {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-6px);
    }
  }
  
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Adjust to your navbar height */
  }
  
  body, html {
    font-family: 'Segoe UI', sans-serif;
    height: 100%;
    overflow-x: hidden;
  }
  
  /* Navbar */
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.9);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }
  
  .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0a4d68;
  }
  
  .nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
  }
  
  .nav-links a {
    text-decoration: none;
    color: #0a4d68;
    font-weight: 500;
    transition: color 0.3s ease;
  }
  
  .nav-links a:hover {
    color: #00a8cc;
  }
  
  /*Hamburger*/
.menu-toggle {
  display: none;
}

@media (max-width: 992px) {

  .menu-toggle {
    display: block;
    font-size: 2rem;
    cursor: pointer;
    color: #0a4d68;

    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
  }

  .navbar {
    position: fixed;
  }

  .nav-links {
    display: none;
    flex-direction: column;

    position: absolute;
    top: 100%;
    right: 10px;

    width: 220px;
    background: white;

    border-radius: 12px;
    padding: 1rem;

    box-shadow: 0 8px 20px rgba(0,0,0,0.15);

    z-index: 1000;
  }

  .nav-links.active {
    display: flex;
  }
}
  /* Hero Section */
  .hero {
    background: url('../Pictures/MainBgagain\(1\).jpg') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* IMPORTANT */
    z-index: 1;
  }
  
  .hero-overlay {
    background-color: rgba(0, 0, 0, 0.70);
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0; left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
    text-align: center;
  }
  
  .hero-content {
    color: #fff;
    z-index: 10;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }
  
  .bouncing-btn {
    background-color: #00a8cc;
    color: #fff;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    animation: float 2.5s ease-in-out infinite;
    display: inline-block;
    transition: background 0.3s ease;
    margin-top: 1rem;
  }
  
  .bouncing-btn:hover {
    background-color: #0a4d68;
  }
  
  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
  }
  
  /* Responsive Navbar (Optional dropdown) */
  @media (max-width: 768px) {
    .hero-content h1 {
      font-size: 1.8rem;
    }
  
    .nav-links {
      flex-direction: column;
      background: white;
      position: absolute;
      top: 70px;
      right: 0;
      padding: 1rem;
      display: none;
    }
  
    .nav-links.active {
  display: flex;
}
  }
  
    /* About Section */
    .about {
        min-height: 100vh;
        display: flex;
        align-items: center;
        padding: 1rem 1rem 1rem;
        background-color: #f4f9fb;
        color: #333;
      }
      
  
  .about-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }
  
  /* 🖼 Image styles */
  .about-image {
    flex: 1;
    max-width: 600px;
    transform: translate(-130px, -20px); /* Left + Up */; /* Move left */
    
  }
  .about-image img {
    width: 125%;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }
  
  /* 📄 Content styles */
  .about-content {
    flex: 2;
    padding-right: 1rem;
  }
  
  .about-content h2 {
    font-size: 2rem;
    color: #0a4d68;
    margin-bottom: 1rem;
  }
  
  .about-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }
  
  /* 💬 Quote */
  .founder-quote {
    font-style: italic;
    margin: 1.5rem 0;
    color: #555;
    font-size: 1rem;
  }
  .founder-quote span {
    display: block;
    margin-top: 0.5rem;
    font-weight: bold;
    color: #0a4d68;
  }
  .founder-quote {
    animation: bob 3s ease-in-out infinite;
  }
  /* 💡 Highlights */
  .about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    font-size: 1rem;
    text-align: center;
  }
  
  /* 📊 Stats */
  .about-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    justify-content: center;
  }
  
  .about-stats div {
    text-align: center;
  }
  .about-stats div {
    animation: bob 4s ease-in-out infinite;
  }
  
  .about-stats strong {
    font-size: 2rem;
    color: #00a8cc;
    display: block;
  }
  
  .about-stats span {
    font-size: 0.9rem;
  }

  .about-highlights div {
    background-color: #ffffff;
    padding: 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    cursor: default; /* Optional: can make it pointer if you want interactivity */
  }
  
  .about-highlights div:hover {
    background-color: #00a8cc;
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  }
  
  
  /* 📱 Responsive layout */
 @media (max-width: 768px) {
  .about-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .about-image {
    transform: none;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .about-image img {
    width: 100%;
    max-width: 350px;
  }

  .about-content {
    padding-right: 0;
  }

  .about-highlights {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}
  /* Team Section */
.team {
  background-color: #fff;
  padding: 6rem 2rem;
  text-align: center;
}

.section-title {
  font-size: 2rem;
  color: #0a4d68;
  margin-bottom: 3rem;
}

.team-container {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.team-card {
  background-color: #f4f9fb;
  padding: 2rem;
  border-radius: 15px;
  width: 350px;
  min-height: 430px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.team-card img {
  width: 160px;
  height: 190px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.team-card h3 {
  font-size: 1.3rem;
  color: #0a4d68;
  margin-bottom: 0.3rem;
}

.team-card p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0.3rem;
}

.team-card .desc {
  font-size: 0.85rem;
  margin-top: 0.8rem;
  color: #333;
}

/* Responsive */
@media (max-width: 768px) {
  .team-container {
    flex-direction: column;
    align-items: center;
  }
}

/* Services Section */
.services {
  background-color: #f4f9fb;
  padding: 6rem 2rem;
  text-align: center;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background-color: #fff;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
   min-height: 420px; /
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.service-card img {
  width: 150px;
  height: 100px;
  margin-bottom: 1rem;
  
}

.service-card h3 {
  font-size: 1.3rem;
  color: #0a4d68;
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

/* Flip Card Layout */
.service-card {
  perspective: 1000px;
  height: 100%;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 420px;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}


.service-card.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  padding: 2rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  background-color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.card-back {
  transform: rotateY(180deg);
}

.card-front img {
  width: 120px;
  height: 100px;
  margin-bottom: 1rem;
}

.card-front h3, .card-back h3 {
  font-size: 1.4rem;
  color: #0a4d68;
  margin-bottom: 0.5rem;
}

.card-front p, .card-back p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
  text-align: center;
  margin-bottom: 1rem;
}

.flip-btn {
  background-color: #00a8cc;
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.3s ease;
  font-weight: bold;
}

.flip-btn:hover {
  background-color: #0a4d68;
}

.card-front, .card-back {
  padding: 2.5rem;
  justify-content: space-between;
}

.special-cases-alt {
  padding: 6rem 2rem;
  background-color: #fff;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #0a4d68;
}

.case-timeline {
  max-width: 1200px;
  margin: 0 auto;
}

.case-block {
  display: flex;
  justify-content: flex-start;
  margin: 4rem 0;
  position: relative;
}

.case-block.right {
  justify-content: flex-end;
}

.case-content {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  background-color: #f4f9fb;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
  max-width: 1000px;
  align-items: center;
  transition: all 0.3s ease;
  position: relative;
}

.case-block.right .case-content {
  flex-direction: row-reverse;
}

.case-media {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.case-media img,
.case-media video {
  width: 260px;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.case-text {
  flex: 1;
}

.case-text h3 {
  color: #0a4d68;
  margin-bottom: 0.7rem;
  font-size: 1.5rem;
}

.case-text p {
  color: #333;
  line-height: 1.6;
  font-size: 1rem;
}

/* 🔁 Responsive */
@media (max-width: 768px) {
  .case-block {
    justify-content: center;
  }

  .case-content {
    flex-direction: column;
    text-align: center;
  }

  .case-block.right .case-content {
    flex-direction: column;
  }

  .case-media {
    align-items: center;
  }

  .case-media img,
  .case-media video {
    width: 100%;
    height: auto;
  }
}

/* Blue Timeline Dots */
.case-dot-left,
.case-dot-right {
  position: absolute;
  top: -15px;
  width: 30px;
  height: 30px;
  background-color: #00a8cc;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(0, 168, 204, 0.5);
  z-index: 10;
  transition: transform 0.3s ease;
}

.case-dot-left { left: -15px; }
.case-dot-right { right: -15px; }

/* Dot hover effect */
.case-content:hover .case-dot-left,
.case-content:hover .case-dot-right {
  transform: scale(1.2);
}

/* Hover Glow */
.case-content:hover {
  box-shadow: 0 12px 25px rgba(0, 168, 204, 0.4);
  transform: translateY(-6px);
}

/* 🔍 Modal Image Zoom */
.img-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.img-modal-content {
  margin: auto;
  display: block;
  width: 90vw;
  height: auto;
  max-width: 1200px;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 0 25px rgba(0, 168, 204, 0.6);
  animation: zoomIn 0.3s ease;
}

.img-close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
}

.img-close:hover {
  color: #00a8cc;
}

@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.img-prev, .img-next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 30px;
  user-select: none;
  transition: 0.3s;
  z-index: 10000;
}

.img-prev {
  left: 20px;
}

.img-next {
  right: 20px;
}

.img-prev:hover, .img-next:hover {
  color: #00a8cc;
}

.testimonials {
  background-color: #f4f9fb;
  padding: 6rem 2rem;
  text-align: center;
}

.testimonial-carousel {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
  gap: 1.5rem;
}

.testimonial-card {
  flex: 0 0 30%;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-8px);
}

.testimonial-card img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 3px solid #00a8cc;
}

.testimonial-card p {
  font-size: 1rem;
  color: #333;
  margin-bottom: 1rem;
}

.testimonial-card h4 {
  color: #0a4d68;
  font-weight: 600;
}

.testimonial-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #00a8cc;
  z-index: 10;
  padding: 0 1rem;
}

.testimonial-btn.left {
  left: 0;
}

.testimonial-btn.right {
  right: 0;
}

.testimonial-wrapper {
  overflow: hidden;
  width: 100%;
}

.testimonial-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
  gap: 24px; /* Adjust as needed */
}

.testimonial-card {
  flex: 0 0 calc(100% / 3 - 16px); /* Adjusted based on visible cards */
  max-width: 100%;
}

.testimonial-btn {
  display: none !important;
}

/* 📱 Responsive */
@media (max-width: 992px) {
  .testimonial-card {
    flex: 0 0 45%;
  }
}
@media (max-width: 600px) {
  .testimonial-card {
    flex: 0 0 90%;
  }
}

/* 📅 Booking Section Styles */
.booking-section {
  background-color: #f9f9f9;
  padding: 50px 20px;
  max-width: 800px;
  margin: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.booking-section h2 {
  text-align: center;
  color: #0a4d68;
  margin-bottom: 30px;
  font-size: 2rem;
}
/* 📝 Booking Form Layout */
#bookingForm {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
  margin: 0 auto;
}

/* 🧾 Inputs, Dropdowns, Buttons */
#bookingForm input,
#bookingForm select,
#bookingForm button {
  padding: 12px 16px;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  width: 100%;
  box-sizing: border-box;
}

/* ✨ Focus Styles */
#bookingForm input:focus,
#bookingForm select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.2);
}

/* 📞 Phone/Email OTP Layout Wrappers */
.phone-wrapper,
.email-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ✉️ OTP Sections */
#emailOtpSection,
#phoneOtpSection {
  display: none;
  flex-direction: column;
  gap: 10px;
}

/* ✅ Buttons */
#submitBtn,
#sendEmailOTP,
#verifyEmailOTP,
#sendPhoneOTP,
#verifyPhoneOTP,
#cancelButton {
  background-color: #007bff;
  color: #fff;
  border: none;
  transition: background 0.3s ease;
  cursor: pointer;
  font-weight: 600;
}

/* 🌀 Hover States */
#submitBtn:hover,
#sendEmailOTP:hover,
#verifyEmailOTP:hover,
#sendPhoneOTP:hover,
#verifyPhoneOTP:hover,
#cancelButton:hover {
  background-color: #0056b3;
}

/* 🚫 Disabled Buttons */
#submitBtn:disabled,
#sendEmailOTP:disabled,
#verifyEmailOTP:disabled,
#sendPhoneOTP:disabled,
#verifyPhoneOTP:disabled,
#cancelButton:disabled {
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
}

/* ✅ Verified Label */
.verified-label {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #28a745;
  font-weight: 500;
}

/* 🛑 Cancel Appointment Section */
#cancelSection {
  margin: 60px 0 100px;/* Top, Right/Left, Bottom */
  padding: 0 20px;
  text-align: center;
}


#cancelSection h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #004466;
  margin-bottom: 30px;
}

/* 🎯 Cancel Form */
#cancelForm {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 0 auto;
}

/* 🧾 Cancel Input */
#cancelForm input[type="text"] {
  padding: 16px 20px;
  font-size: 1.2rem;
  border-radius: 10px;
  border: 2px solid #007bff;
  width: 300px;
  max-width: 90%;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.1);
  transition: all 0.3s ease;
}

#cancelForm input[type="text"]:focus {
  border-color: #0056b3;
  box-shadow: 0 10px 30px rgba(0, 123, 255, 0.3);
  outline: none;
}

/* 💥 Cancel Button */
#cancelForm button {
  padding: 16px 10px;
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#cancelForm button:hover {
  background: linear-gradient(135deg, #0056b3, #004494);
  transform: scale(1.03);
}

/* 📱 Mobile Tweaks */
@media (max-width: 600px) {
  .booking-section {
    padding: 30px 15px;
  }

  .phone-wrapper,
  .email-wrapper,
  #cancelForm {
    flex-direction: column;
    align-items: stretch;
  }

  #bookingForm span {
    font-size: 0.9rem;
    margin-bottom: 5px;
  }

  #cancelForm input[type="text"],
  #cancelForm button {
    width: 90%;
  }

  #cancelForm button {
    padding: 14px 24px;
  }

  #cancelSection h2 {
    font-size: 2rem;
  }
}

.contact-section {
  background-color: #f9f9f9;
  padding: 60px 20px;
  text-align: center;
}

.contact-section h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #004466;
}

.contact-box {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 30px;
}

.contact-item {
  min-width: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}
.contact-item span {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: #007bff;
  margin-bottom: 8px;
}

.contact-item a {
  display: block;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}
.contact-item a:hover {
  color: #0056b3;
}

@media (max-width: 600px) {

  .contact-box {
    flex-direction: column;
    align-items: center;
  }

  .contact-item {
    width: 100%;
    max-width: 320px;
    min-width: 0;
  }

  .contact-item a {
    font-size: 0.95rem;
  }
}