 body {
      font-family: 'Roboto', sans-serif;
    }


      html {
    scroll-behavior: smooth;
  }
    * { box-sizing: border-box; margin:0; padding:0; }
    body { background-color:#f7f9fb; color:#333;}
    .navbar { transition:background-color .3s, box-shadow .3s; background:rgba(255,255,255,.9); backdrop-filter:blur(6px);}
    .navbar.scrolled{ background:#fff; box-shadow:0 2px 8px rgba(0,0,0,.06);}
    .navbar-brand img{height:70px;width:auto;transition:transform .3s;}
    .navbar-brand:hover img{transform:scale(1.05);}
    .navbar-nav .nav-link{font-weight:500;position:relative;margin-left:10px;}
    .navbar-nav .nav-link::after{content:'';position:absolute;left:0;bottom:0;width:0;height:2px;background:var(--primary);transition:width .3s;}
    .navbar-nav .nav-link:hover::after,.navbar-nav .nav-link.active::after{width:100%;}

   
    .banner::before{content:'';position:absolute;inset:0;background:rgba(0,0,0,.4);}
    .banner-content{position:relative;z-index:1;}
    .banner h1{font-size:3rem;animation:fadeInDown 1.5s;font-family:'Dancing Script',cursive}

    .social-icons{position:fixed;right:20px;top:85%;transform:translateY(-50%);display:flex;flex-direction:column;gap:12px;z-index:1100;}
    .social-icons a{width:48px;height:48px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:24px;color:#fff;box-shadow:0 4px 8px rgba(0,0,0,.2);transition:transform .3s,box-shadow .3s;}
    .social-icons a:hover{transform:scale(1.12);box-shadow:0 6px 12px rgba(0,0,0,.25);}
    .social-icons .social-img{width:40px;height:40px;object-fit:contain;transition:transform .3s;}
    .social-icons a:hover .social-img{transform:scale(1.1);}

    .section-heading{ text-align:center;padding:50px 20px 30px;}  
    .section-heading h1{font-size:2.5rem;color:#2c3e50;margin-bottom:10px;}
    .section-heading p{font-size:1.1rem;color:#666;}
.typewriter {
  overflow: hidden;
  
  white-space: nowrap;
  width: 0;
  animation: typing 4s steps(30, end) forwards, blink 0.7s step-end 5;
  /* font-family: monospace;
  font-size: 2em; */
  font-weight: bold;
}

/* Typing effect */
@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

/* Cursor blink (stops after 5 blinks) */
@keyframes blink {
  50% { border-color: transparent; }
}

/* Typing effect */
@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

/* Blinking cursor effect */
@keyframes blink {
  50% { border-color: transparent; }
}

    .section{ display:flex;align-items:center;justify-content:space-between;padding:10px 10%;gap:40px;transition:all 1s ease;opacity:0;transform:translateY(40px);}
    .section.visible{opacity:1;transform:translateY(0);}
    .section.reverse{flex-direction:row-reverse;}
    .section img{width:45%;border-radius:15px;box-shadow:0 4px 20px rgba(0,0,0,.1);opacity:0;transition:transform .8s ease,opacity 1s ease;}
    .section.visible img{opacity:1;}
    .section img:hover{transform:scale(1.05);}
    .text-content{width:50%;}
    .text-content h2{font-size:2.2rem;margin-bottom:20px;color:#2c3e50;}
    .text-content p{font-size:1.1rem;line-height:1.7;color:#555;}
    @media screen and (max-width:768px){ .section, .section.reverse{flex-direction:column;padding:40px 5%;} .text-content, .section img{width:100%;} .text-content{text-align:center;} }

   /* Scoped dental treatments styles */

.dental-wrapper {
  padding: 2rem;
  text-align: center;
  background: #f7f7f7;
  color: #111;
}

.dental-heading {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.dental-card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.dental-card {
  background: white;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  width: 260px;
  cursor: pointer;
  transition: 0.3s;
  padding: 1rem;
}

.dental-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.1);
}

.dental-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.dental-card h5 {
  font-size: 1.1rem;
  margin: 0;
  color: #111;
}

/* Dialog styles */
.dental-dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.dental-dialog-box {
  background: linear-gradient(to bottom right, #fff, #e0e0e0);
  border-radius: 12px;
  padding: 2rem;
  width: 90%;
  max-width: 700px;
  box-shadow: 0 12px 25px rgba(0,0,0,0.3);
  position: relative;
  animation: fadeInUp 0.3s ease;
  max-height: 80vh;
  overflow-y: auto;
  color: #111;
}

.dental-dialog-box h3 {
  margin-top: 0;
  font-size: 1.5rem;
  color: #000;
}

.dental-dialog-box p {
  line-height: 1.6;
  color: #222;
}

.dental-close-btn {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 1.5rem;
  font-weight: bold;
  color: #000;
  cursor: pointer;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .dental-card-container {
    flex-direction: column;
    align-items: center;
  }

  .dental-heading {
    font-size: 1.6rem;
  }
}


  /* Appointment Section */
 #appointment {
    background: #fff;
    padding: 60px 10%;
  }

  #appointment h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #030303;
    font-size: 2rem;
  }

  .appointment-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    background: #373737;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .appointment-form,
  .appointment-map {
    flex: 1 1 45%;
    min-width: 280px;
  }

  form {
    display: flex;
    flex-direction: column;
  }

  .form-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 15px;
    flex-wrap: wrap;
  }

  .form-control {
    flex: 1;
    padding: 10px;
    border-radius: 6px;
    border: none;
    font-size: 1rem;
  }

  .form-single {
    margin-bottom: 15px;
  }

  textarea.form-control {
    resize: vertical;
  }

  .appointment-form button {
    background: #2c3e50;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
  }

  .appointment-form button:hover {
    background: #1a252f;
  }
/* 

  /* Responsive Design */
  @media (max-width: 900px) {
    .appointment-container {
      flex-direction: column;
      padding: 20px;
    }

    .form-group {
      flex-direction: column;
    }

  
  }

  @media (max-width: 480px) {
    #appointment {
      padding: 40px 5%;
    }

    #appointment h2 {
      font-size: 1.5rem;
    }

    .form-control {
      font-size: 0.95rem;
      padding: 8px;
    }

    .appointment-form button {
      width: 100%;
    }
  }



    /* Testimonials */
 #testimonials {
  padding: 60px 0;
  background: #fff;
  width: 80%;
  margin: 0 auto;
}

#testimonials h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #2c3e50;
}

.testimonial-video-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.testimonial-video-wrapper video {
  width: 40%;
  height: 500px; /* Custom height */
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #ddd;
}

@media (max-width: 768px) {
  .testimonial-video-wrapper video {
    width: 100%;
    height: 300px;
  }
}



    
    /* ===== Footer ===== */
   footer {
  background: #222;
  color: #bbb;
  padding: 40px 0 20px;
}
footer a {
  color: #bbb;
  text-decoration: none;
}
footer a:hover {
  color: #fff;
  text-decoration: underline;
}

    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 20px;
    }
    .gallery-grid img {
      width: 100%;
      border-radius: 8px;
      cursor: pointer;
      transition: transform 0.3s ease;
    }
    .gallery-grid img:hover {
      transform: scale(1.05);
    }
    .modal-img {
      max-width: 100%;
      height: auto;
    }
    #lightboxModal .modal-dialog {
      max-width: 90vw;
    }
    .lightbox-nav {
      cursor: pointer;
      font-size: 2rem;
      color: #fff;
    }


    /* gallery */

    
  #galleryModal {
  display: none; /* ✅ Start hidden */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 20px;
    }

    .gallery-item {
      overflow: hidden;
      border-radius: 8px;
      cursor: pointer;
    }

    .gallery-item img {
      width: 100%;
      height: 200px;
      object-fit: cover;
      transition: transform 0.3s ease;
      display: block;
    }

    .gallery-item img:hover {
      transform: scale(1.05);
    }

    @media (max-width: 992px) {
      .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 600px) {
      .gallery-grid {
        grid-template-columns: 1fr;
      }

      #gallery h2 {
        font-size: 32px;
      }

      #gallery p {
        font-size: 16px;
      }
    }