@font-face {
  font-family: 'SangBleuKingdom';
  src: url('fonts/SangBleuKingdom-Light.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  background-color: #f5f5f5;
   /* Account for fixed navbar */
}

/* Navbar Styling */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: black;
  padding: 15px 30px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  min-height: 80px;
  transform: translateY(0);
}

/* Logo Section */
.nav-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 200px;
  max-width: 200px;                                   
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}

.nav-logo:hover {
  transform: scale(1.05);
  text-decoration: none;
}

.nav-logo p{
  color: #ffffff !important;
}

.logo {
  background-image: url('Kadali-Dental-1472.png');
  height: 70px;
  width: 180px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center left;
  margin-bottom: 5px;
  transition: all 0.3s ease;
}

.clinic-centers {
  background-color: transparent;
  color: #ebe3da;
  font-size: var(--font-size-xs);
  font-family: var(--font-primary);
  font-weight: var(--font-weight-normal);
  letter-spacing: var(--letter-spacing-wide);
}

.clinic-centers p {
  margin: 0;
}

/* Navigation List */
.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
}

.nav-list li {
  position: relative;
}

.nav-list a {
  text-decoration: none;
  color: #ded4ca;
  font-size: 18px;
  font-family: var(--font-primary);
  font-weight: var(--font-weight-medium);
  padding: 8px 12px;
  transition: all 0.3s ease;
  letter-spacing: var(--letter-spacing-wide);
  border-radius: 4px;
  display: block;
}

.nav-list a:hover,
.nav-list a.active {
  color: #d4a373;
  background-color: rgba(212, 163, 115, 0.1);
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: black;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  padding: 10px 0;
  display: none;
  list-style: none;
  min-width: 280px;
  border-radius: 8px;
  z-index: 10000;
  border: 1px solid #333;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  padding: 0;
}

.dropdown-menu li a {
  color: white;
  text-decoration: none;
  display: block;
  padding: 12px 20px;
  transition: all 0.3s ease;
  font-size: var(--font-size-base);
  font-family: var(--font-primary);
  font-weight: var(--font-weight-normal);
  border-radius: 0;
}

.dropdown-menu li a:hover {
  background: #d4a373;
  color: black;
}

/* Menu Icon (Hidden by default) */
.menu-icon {
  display: none;
  font-size: 24px;
  color: white;
  cursor: pointer;
  z-index: 10001;
  padding: 5px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.menu-icon:hover {
  background-color: rgba(212, 163, 115, 0.2);
}

/* Demo Content */
.demo-content {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.demo-section {
  margin-bottom: 40px;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.demo-section h2 {
  color: #333;
  margin-bottom: 20px;
  font-size: 24px;
}

.demo-section p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* Footer */
.last-container {
  margin-top: 60px;
}

.first-footer-section {
  background-color: #524d49;
  padding: 20px;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  color: white;
  flex-wrap: wrap;
  gap: 20px;
}

.first-footer-section p {
  font-size: 1rem;
  letter-spacing: 0.1rem;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.first-footer-section p:hover {
  opacity: 0.7;
}

.second-footer-section {
  background-color: #6d6862;
  padding: 30px 20px;
  text-align: center;
}

.second-footer-section #add1,
.second-footer-section #address {
  color: white;
  font-size: 0.9rem;
  letter-spacing: 0.1rem;
  line-height: 1.5rem;
  margin-bottom: 20px;
}

.second-footer-section #address span {
  color: white;
  font-weight: 700;
  font-size: 1rem;
}

/* Accessibility */
.nav-list a:focus,
.nav-list a:focus-visible {
  outline: 2px solid #d4a373;
  outline-offset: 2px;
  background: rgba(212, 163, 115, 0.2);
  color: #d4a373;
}

.dropdown-menu li a:focus,
.dropdown-menu li a:focus-visible {
  outline: 2px solid #d4a373;
  outline-offset: -2px;
  background: rgba(212, 163, 115, 0.2);
  color: #d4a373;
}

/* Responsive Design */

/* Large Desktop */
@media (max-width: 1286px) {
  .nav-list {
      gap: 1.2rem;
  }
  
    .nav-list a {
    font-size: var(--font-size-base);
    padding: 6px 10px;
  }
  
  .dropdown-menu {
      min-width: 250px;
  }
}

/* Medium Desktop */
@media (max-width: 1190px) {
    .nav-list a {
    font-size: var(--font-size-base);
    padding: 5px 8px;
  }
  
  .nav-list {
      gap: 1rem;
  }
}

/* Small Desktop */
@media (max-width: 1060px) {
  .navbar {
      padding: 15px 20px;
  }
  
    .nav-list a {
    font-size: var(--font-size-sm);
    padding: 5px 6px;
  }
  
  .nav-list {
      gap: 0.8rem;
  }
}

/* Tablet Portrait and Small Laptop */
@media (max-width: 912px) {
    .nav-list a {
    font-size: var(--font-size-sm);
  }
  
  .nav-list {
      gap: 0.6rem;
  }
}

/* Mobile and Tablet */
@media (max-width: 854px) {
  
  .navbar {
      padding: 10px 20px;
      min-height: 70px;
      position: fixed;
  }

  .nav-logo {
      min-width: 120px;
  }

  .logo {
      height: 70px;
      width: 150px;
  }

    .clinic-centers {
    font-size: var(--font-size-xs);
  }

  /* Show Menu Icon */
  .menu-icon {
      display: block;
      position: absolute;
      right: 20px;
      top: 50%;
      transform: translateY(-50%);
  }

  /* Hide Nav List Initially */
  .nav-list {
      position: fixed;
      top: 70px;
      left: 0;
      width: 100%;
      height: calc(100vh - 70px);
      background-color: black;
      flex-direction: column;
      justify-content: flex-start;
      align-items: center;
      padding: 30px 20px;
      gap: 0;
      transform: translateX(-100%);
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s ease;
      overflow-y: auto;
  }

  /* Show Nav List When Active */
  .nav-list.active {
      transform: translateX(0);
      opacity: 1;
      visibility: visible;
  }

  .nav-list li {
      width: 100%;
      margin-bottom: 15px;
  }

    .nav-list a {
    font-size: var(--font-size-lg);
    font-family: var(--font-primary);
    font-weight: var(--font-weight-medium);
    padding: 15px 20px;
    text-align: center;
    display: block;
    width: 100%;
    border-bottom: 1px solid #333;
  }

  /* Mobile Dropdown */
  .dropdown-menu {
      position: static;
      display: none;
      background: #1a1a1a;
      box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.3);
      width: 100%;
      min-width: auto;
      border-radius: 0;
      margin-top: 0;
      border: none;
      border-top: 1px solid #333;
  }

  .dropdown.active .dropdown-menu {
      display: block;
  }

    .dropdown-menu li a {
    font-size: var(--font-size-base);
    font-family: var(--font-primary);
    font-weight: var(--font-weight-normal);
    padding: 12px 40px;
    border-bottom: 1px solid #2a2a2a;
  }

  /* Dropdown Arrow for Mobile */
  .dropdown > a::after {
      content: '\f107';
      font-family: 'Font Awesome 6 Free';
      font-weight: 900;
      float: right;
      transition: transform 0.3s ease;
  }

  .dropdown.active > a::after {
      transform: rotate(180deg);
  }
}

/* Mobile Portrait */
@media (max-width: 768px) {
  .navbar {
      padding: 8px 15px;
  }
  
  .nav-logo {
      min-width: 160px;
  }
  
  .logo {
      height: 75px;
      width: 150px;
  }
  
    .clinic-centers {
    font-size: var(--font-size-xs);
  }

  .menu-icon {
      right: 15px;
  }

  .nav-list {
      top: 60px;
      height: calc(100vh - 60px);
      padding: 20px 15px;
  }

    .nav-list a {
    font-size: var(--font-size-base);
    font-family: var(--font-primary);
    font-weight: var(--font-weight-medium);
    padding: 12px 15px;
  }

    .dropdown-menu li a {
    font-size: var(--font-size-sm);
    font-family: var(--font-primary);
    font-weight: var(--font-weight-normal);
    padding: 10px 30px;
  }
}

/* Small Mobile */
@media (max-width: 500px) {
 
  
  .nav-logo {
      min-width: 140px;
  }

  
    .clinic-centers {
    font-size: var(--font-size-xs);
  }

  .navbar {
      min-height: 60px;
      padding: 5px 10px;
  }

  .logo {
      height: 80px;
      width: 170px;
  }

    .clinic-centers {
    margin-left: 15px;
    font-size: var(--font-size-xs);
  }

  .nav-list {
      top: 60px;
      height: calc(100vh - 60px);
      padding: 15px 10px;
  }

    .nav-list a {
    font-size: var(--font-size-sm);
    font-family: var(--font-primary);
    font-weight: var(--font-weight-medium);
    padding: 10px 12px;
  }

    .dropdown-menu li a {
    font-size: var(--font-size-xs);
    font-family: var(--font-primary);
    font-weight: var(--font-weight-normal);
    padding: 8px 25px;
  }

  .first-footer-section {
      flex-direction: column;
      gap: 15px;
      padding: 15px;
  }

  .first-footer-section p {
      font-size: 0.9rem;
  }

  .second-footer-section {
      padding: 20px 15px;
  }

  .second-footer-section #add1,
  .second-footer-section #address {
      font-size: 0.8rem;
      text-align: left;
  }
}

/* Extra Small Mobile */
@media (max-width: 400px) {
  .navbar {
      padding: 5px 8px;
  }

  .menu-icon {
      right: 8px;
      font-size: 20px;
  }

    .nav-list a {
    font-size: var(--font-size-sm);
    font-family: var(--font-primary);
    font-weight: var(--font-weight-medium);
    padding: 8px 10px;
  }

    .dropdown-menu li a {
    font-size: var(--font-size-xs);
    font-family: var(--font-primary);
    font-weight: var(--font-weight-normal);
    padding: 6px 20px;
  }

  .logo {
      height: 70px;
      width: 150px;
  }

    .clinic-centers {
    margin-left: 10px;
    font-size: var(--font-size-xs);
  }
}

/* Very Small Mobile */
@media (max-width: 320px) {
  .navbar {
      padding: 3px 5px;
  }

  .menu-icon {
      right: 5px;
      font-size: 18px;
  }

    .nav-list a {
    font-size: var(--font-size-xs);
    font-family: var(--font-primary);
    font-weight: var(--font-weight-medium);
    padding: 6px 8px;
  }

    .dropdown-menu li a {
    font-size: var(--font-size-xs);
    font-family: var(--font-primary);
    font-weight: var(--font-weight-normal);
    padding: 5px 15px;
  }

  .logo {
      height: 65px;
      width: 140px;
  }

    .clinic-centers {
    font-size: var(--font-size-xs);
  }
}

/* WhatsApp Logo - Speech Bubble Style */
.whatsapp-logo {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 70px;
  height: 70px;
  background-color: #25D366;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10000;
  /* Speech bubble tail */
  position: relative;
}

.whatsapp-logo::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 15px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #25D366;
  transform: rotate(-15deg);
}

.whatsapp-logo:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-logo svg {
  width: 28px;
  height: 28px;
  fill: white;
}