* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
  }
  body {
    line-height: 1.6;
    background-color: #f9f9f9;
    font-family: 'Poppins', sans-serif;
    background: #f9fcff;
    color: #333;
    margin: 0;
    padding: 0;
    
  }
  /*get direction button*/
.direction-button {
  display: inline-block;
  background-color: #007BFF;
  color: white;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.direction-button:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

  .clinic-name {
    font-size: 30px; /* Slightly smaller text */
  color: white;
  font-weight: bold;
  }
  .image img{
    width: 100px;
    height:70px;
    border: 5px solid #efc050;
    border-radius: 50%;
    display: flex;
    align-items: center;
    margin-left: 0em;
    margin-right: 10px;
  }
  .image {
    display: flex;
    align-items: center;
  }
  .menu-toggle {
    display: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
  }
  /* Navigation */
nav {
  display: flex;
  gap: 20px;
}

  .container {
  max-width: 1500px;
  margin: auto;
  padding: 0 10px;
  display: contents;
  align-items: center;
  justify-content: space-between;
  height: auto;
  }
  header {
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  /* Gradient spice */
  header {
    background: linear-gradient(to right, #00c6ff, #0072ff);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  nav a:hover {
    color: #fff;
    border-bottom: 2px solid white;
  }
  header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px; /* Reduce vertical padding */
  }
  
  
 /* header {
    background-color: #007acc;
  color: white;
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }*/
  
  header h1 {
    display: inline;
  }
  
  header nav {
    float: right;
  }
  
  header nav a {
    color: #fff;
    margin-left: 20px;
    text-decoration: none;
    font-weight: bold;
  }
  .hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
  }
  .hero-overlay {
    position: relative;
    z-index: 2;
  }

  .hero-section {
    background: url(./bg.jpg) center/cover no-repeat;
    height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 20px;
    box-shadow: 0 15px 25px rgba(0,0,0,0.15);
    padding: 40px;
  }
  
  .hero-overlay {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 40px 60px;
    text-align: center;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.25);
    max-width: 700px;
    width: 90%;
    color: #333;
  }
  
  .hero-content h2 {
    font-size: 2.8rem;
    font-weight: bold;
    margin-bottom: 10px;
  }
  
  .hero-content h2 span {
    color: #00b4d8; /* Fresh dental blue */
  }
  
  .hero-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #d62828;
  }
  
  .hero-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #ff5c5c;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    max-width: 100%;
  }
  
  .hero-btn:hover {
    background-color: #ff3b3b;
    transform: scale(1.05);
  }
  
  /* Tablet */
  @media (max-width: 768px) {
    .hero-btn {
      font-size: 0.95rem;
      padding: 10px 20px;
    }
  }
  
  /* Mobile */
  @media (max-width: 480px) {
    .hero-btn {
      width: 90%;
      font-size: 1rem;
      display: block;
      margin: 10px auto;
    }
  }
  
  
  
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(40px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .btn {
    display: inline-block;
    margin-top: 1rem;
    background: #00b4d8;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
  }
  .services-heading {
    text-align: center;
    font-size: 2.2rem;
    font-weight: bold;
    margin: 40px 0 20px 0;
    color: #1e90ff;
    text-transform: uppercase;
    position: relative;
  }
  
  .services-heading::after {
    content: '';
    display: block;
    margin: 10px auto 0;
    width: 60px;
    height: 4px;
    background-color: #1e90ff;
    border-radius: 2px;
  }
  
  
  .services {
    background: #e0f7fa;
    text-align: center;
  }
  
  .services .cards {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
  }
  
  .card {
    background-color: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  width: 30%; /* Default: 3 cards per row on desktop */
  min-width: 250px;
  text-align: center;
  transition: transform 0.2s;
  margin-bottom: 15px;
  }
  .card.card:hover{
    background-color: #4a808a; /* Lighter on hover */
    color: white; /* Text changes to black */
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);

  }
 /* Tablet: 3 cards per row */
@media (max-width: 992px) {
  .card {
    width: 30%; 
  }
}

/* Mobile: 2 cards per row */
@media (max-width: 600px) {
  .card {
    width: 47%; 
  }
}

/* Extra small devices: 1 card per row */
@media (max-width: 400px) {
  .card {
    width: 100%;
  }
}

  
  .about {
    text-align: center;
    background: #ffffff;
  }
  
  .contact {
    background: #eaf4f4;
    text-align: center;
  }
  
  .contact form {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    margin: auto;
  }
  
  .contact input,
  .contact textarea {
    margin: 10px 0;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
  }
  
  .contact button {
    background: #0077b6;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }
  .about {
    background: linear-gradient(to right, #e0f7fa, #ffffff);
    padding: 30px 20px;
  }
  
  .about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
    animation: fadeInUp 1s ease-in-out;
  }
  
  .about-img img {
    width: 100%;
    max-width: 300px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
  }
  
  .about-img img:hover {
    transform: scale(1.05);
  }
  
  .about-text {
    max-width: 600px;
    animation: fadeInRight 1s ease-in-out;
  }
  
  .about-text h2 {
    font-size: 2.5rem;
    color: #0077b6;
    margin-bottom: 10px;
    position: relative;
  }
  
  .underline {
    width: 60px;
    height: 4px;
    background-color: #0077b6;
    margin-bottom: 20px;
    border-radius: 2px;
  }
  
  .about-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
  }
  
  .highlight {
    color: #00b4d8;
    font-weight: 600;
  }
  
  @keyframes fadeInRight {
    from {
      opacity: 0;
      transform: translateX(60px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  
  .whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    background-color: #25d366;
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
  }
  
  .whatsapp-float:hover {
    transform: scale(1.1);
  }
  
  
  
  footer {
    text-align: center;
    padding: 1rem;
    background: #0077b6;
    color: white;
  }
  .secondimg img{
    width: 100px;
    height:90px;
    border: 5px solid #efc050;
    border-radius: 50%;
    display: flex;
    align-items: center;
    margin-left: 0em;

  }
  .secondimg{
    display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  text-align: center;
  }
  .info-text p {
    margin: 4px 0;
  }
  .footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background-color: #007bbf; /* example blue */
    padding: 2rem;
    color: white;
    flex-wrap: wrap; /* responsive */
  }
  
  .footer-left,
  .footer-middle,
  .footer-right {
    flex: 1;
    flex-direction: column;
    min-width: 250px;
    margin: 1rem;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .footer-right {
    background: white;
    color: black;
    padding: 1rem;
    border-radius: 10px;
  }
  nav a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
  }
  
  nav a:hover {
    background: white;
  color: #007bff;
  padding: 6px 12px;
  border-radius: 5px;
  }
  button[type="submit"] {
    background-color: #0077b6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  button[type="submit"]:hover {
    background-color: #00b4d8;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
  }
  a.btn {
    background-color: #0077b6;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 18px;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  a.btn:hover {
    background-color: #00b4d8;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
  }
    
  #clinic-map {
    width: 100%;
    max-width: 500px;
    height: 250px;
    margin: 20px auto;
    border: 2px solid #ccc;
    border-radius: 10px;
  }
  
  .footer-middle {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  /* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .container {
    width: 90%;
    padding: 1rem;
  }

  header nav {
    float: none;
    text-align: center;
    margin-top: 1rem;
  }

  
  .services .cards {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 100%;
    margin-bottom: 1rem;
    padding: 1rem;
  }

  .contact form {
    max-width: 90%;
  }

  .image img {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 600px) {
  

  .btn {
    padding: 10px 15px;
    font-size: 1rem;
  }

  header h1 {
    font-size: 1.5rem;
  }
  /*responsive addition*/
  /* HERO Text Fade Animation */
.hero h2, .hero p {
  animation: fadeInUp 1s ease-in-out;
  opacity: 0;
  animation-fill-mode: forwards;
  animation-delay: 0.3s;
}

/* Optional: scroll down arrow */
.scroll-down {
  width: 24px;
  height: 24px;
  border-bottom: 3px solid white;
  border-right: 3px solid white;
  transform: rotate(45deg);
  margin: 20px auto 0;
  animation: bounce 1s infinite;
}
@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(8px); }
}



/* Optional: scroll down arrow */
.scroll-down {
  width: 24px;
  height: 24px;
  border-bottom: 3px solid white;
  border-right: 3px solid white;
  transform: rotate(45deg);
  margin: 20px auto 0;
  animation: bounce 1s infinite;
}
@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(8px); }
}




/* Mobile Adjustments */
@media (max-width: 768px) {
  .hero {
    height: auto;
    flex-direction: column;
    padding: 60px 15px;
    text-align: center;
  }

  .hero .container {
    padding: 30px 15px;
    margin: 20px 10px;
  }

  .hero h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 15px;
  }

  .btn {
    font-size: 1rem;
    padding: 10px 15px;
  }

  .services .cards {
    flex-direction: column;
  }

  .card {
    width: 90%;
    margin: 1rem auto;
  }

  nav {
    flex-direction: column;
    gap: 10px;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-left, .footer-middle, .footer-right {
    margin: 1rem 0;
  }

  .image img {
    width: 70px;
    height: 70px;
  }
}


}

    
  