/********** Template CSS **********/
:root {
  --onyx: #0a090cff;
  --platinum: #f0edeeff;
  --dark-teal: #07393cff;
  --stormy-teal: #2c666eff;
  --frosted-blue: #90ddf0ff;
  --primary: #2c666eff;
  --secondary: #90ddf0ff;
  --light: #f0edeeff;
  --dark: #0a090cff;
  --bs-primary: #2c666eff;
  --bs-secondary: #90ddf0ff;
  --bs-light: #f0edeeff;
  --bs-dark: #0a090cff;
}

/* Dark Mode Colors */
.dark-mode {
  --primary: #90ddf0ff;
  --secondary: #frosted-blue;
  --light: #07393cff;
  --dark: #f0edeeff;
  background-color: #0a090cff;
  color: #f0edeeff;
}

h1,
h2,
.font-weight-bold {
  font-weight: 700 !important;
}

h3,
h4,
.font-weight-semi-bold {
  font-weight: 600 !important;
}

h5,
h6,
.font-weight-medium {
  font-weight: 500 !important;
}

.btn {
  font-family: "Jost", sans-serif;
  font-weight: 600;
  transition: 0.5s;
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--secondary);
  border-color: var(--secondary);
}

.btn-secondary {
  background-color: var(--secondary);
  border-color: var(--secondary);
}

.btn-secondary:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.btn-square {
  width: 36px;
  height: 36px;
}

.btn-sm-square {
  width: 28px;
  height: 28px;
}

.btn-lg-square {
  width: 46px;
  height: 46px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
  padding-left: 0;
  padding-right: 0;
  text-align: center;
}

#spinner {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
  z-index: 99999;
}

#spinner.show {
  transition: opacity 0.5s ease-out, visibility 0s linear 0s;
  visibility: visible;
  opacity: 1;
}

.back-to-top {
  position: fixed;
  display: none;
  right: 45px;
  bottom: 45px;
  z-index: 99;
}

.top-shape::before {
  position: absolute;
  content: "";
  width: 35px;
  height: 100%;
  top: 0;
  left: -17px;
  background: var(--primary);
  transform: skew(40deg);
}

.navbar-light .navbar-nav .nav-link {
  font-family: "Jost", sans-serif;
  padding: 35px 15px;
  font-size: 18px;
  color: var(--dark);
  outline: none;
  transition: 0.5s;
}

.sticky-top.navbar-light .navbar-nav .nav-link {
  padding: 20px 15px;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
  color: var(--primary);
}

@media (max-width: 991.98px) {
  .navbar-light .navbar-nav .nav-link,
  .sticky-top.navbar-light .navbar-nav .nav-link {
    padding: 10px 0;
  }
}

.carousel-caption {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 9, 12, 0.85);
  z-index: 1;
}

@media (max-width: 576px) {
  .carousel-caption h5 {
    font-size: 14px;
    font-weight: 500 !important;
  }

  .carousel-caption h1 {
    font-size: 30px;
    font-weight: 600 !important;
  }
}

.carousel-control-prev,
.carousel-control-next {
  width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 3rem;
  height: 3rem;
}

@media (min-width: 991.98px) {
  .banner {
    position: relative;
    margin-top: -90px;
    z-index: 1;
  }
}

.section-title h5::before {
  position: absolute;
  content: "";
  width: 45px;
  height: 3px;
  right: -55px;
  bottom: 11px;
  background: var(--primary);
}

.section-title h5::after {
  position: absolute;
  content: "";
  width: 15px;
  height: 3px;
  right: -75px;
  bottom: 11px;
  background: var(--secondary);
}

.hero-header {
  background: linear-gradient(rgba(10, 9, 12, 0.85), rgba(10, 9, 12, 0.85)),
    url(../img/carousel-1.jpg) center center no-repeat;
  background-size: cover;
}

.bg-appointment {
  background: linear-gradient(rgba(10, 9, 12, 0.85), rgba(10, 9, 12, 0.85)),
    url(../img/carousel-1.jpg) center center no-repeat;
  background-size: cover;
}

/* Modern Services Section Styling */
.services-showcase {
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.services-showcase-image {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.services-showcase-image img {
  transition: transform 0.7s ease;
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
}

.services-showcase:hover .services-showcase-image img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  display: flex;
  align-items: flex-end;
  height: 100%;
  transition: all 0.3s ease;
}

.image-overlay span {
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

@media (max-width: 1199.98px) {
  .services-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 991.98px) {
  .services-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 767.98px) {
  .services-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 575.98px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  padding: 40px 30px;
  border-top: 5px solid var(--primary);
}

.dark-mode .service-card {
  background: #07393cff;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.service-icon {
  font-size: 2.5rem;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(44, 102, 110, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 25px;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background: var(--primary);
  color: #fff;
  transform: rotateY(180deg);
}

.service-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--primary);
}

.dark-mode .service-card h3 {
  color: #fff;
}

.service-card p {
  color: #6c757d;
  margin-bottom: 25px;
  font-size: 15px;
  line-height: 1.7;
}

.dark-mode .service-card p {
  color: rgba(255, 255, 255, 0.8);
}

.service-btn {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.service-btn span {
  margin-right: 10px;
}

.service-btn i {
  transition: transform 0.3s ease;
}

.service-btn:hover {
  color: var(--secondary);
}

.service-btn:hover i {
  transform: translateX(5px);
}

@media (max-width: 991.98px) {
  .services-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 767.98px) {
  .services-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  .services-showcase-image img {
    height: 300px;
  }
}

@media (max-width: 575.98px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .services-showcase-image img {
    height: 250px;
  }
}

.company-logo {
  color: var(--primary);
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.logo-text {
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 400px;
}

.navbar-brand .logo-text {
  font-size: 1.3rem;
}

/* Modern Branded Logo */
.logo-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Jost", sans-serif;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 8px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(44, 102, 110, 0.25);
  transition: all 0.3s ease;
}

.logo-brand:hover .logo-icon {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(44, 102, 110, 0.35);
}

.logo-text-short {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.3px;
  white-space: nowrap;
  display: none;
}

.navbar-brand .logo-text-short {
  display: inline;
}

@media (max-width: 768px) {
  .logo-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .logo-text-short {
    font-size: 1rem;
  }
}

.featured-service {
  margin-bottom: 40px;
  padding: 30px;
  background-color: #f8f9fa;
  border-radius: 10px;
}

.dark-mode .featured-service {
  background-color: #07393cff;
}

.faq-item {
  padding: 20px;
  margin-bottom: 20px;
  background: #f8f9fa;
  border-radius: 5px;
}

.dark-mode .faq-item {
  background-color: #07393cff;
}

.faq-question {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 15px;
}

.faq-answer p {
  line-height: 1.6;
}

.service-area-list {
  columns: 4;
  list-style-type: none;
  padding-left: 0;
}

.service-area-list li {
  margin-bottom: 8px;
}

@media (max-width: 991.98px) {
  .service-area-list {
    columns: 3;
  }
}

@media (max-width: 767.98px) {
  .service-area-list {
    columns: 2;
  }
}

@media (max-width: 575.98px) {
  .service-area-list {
    columns: 1;
  }
}

.contact-info p a {
  color: inherit;
  text-decoration: none;
}

.contact-info p a:hover {
  text-decoration: underline;
}

/* Bootstrap Color Overrides */
.bg-primary {
  background-color: var(--primary) !important;
}

.bg-secondary {
  background-color: var(--secondary) !important;
}

.bg-light {
  background-color: var(--light) !important;
}

.bg-dark {
  background-color: var(--dark) !important;
}

.text-primary {
  color: var(--primary) !important;
}

.text-secondary {
  color: var(--secondary) !important;
}

.text-light {
  color: var(--light) !important;
}

.text-dark {
  color: var(--dark) !important;
}

/* Dark mode styles */
.dark-mode .navbar-light .navbar-nav .nav-link {
  color: #f0edeeff;
}

.dark-mode .bg-light,
.dark-mode .bg-white {
  background-color: #0a090cff !important;
  color: #f0edeeff;
}

.dark-mode .navbar-light {
  background-color: #0a090cff !important;
}

.dark-mode .navbar-light .navbar-nav .nav-link:hover,
.dark-mode .navbar-light .navbar-nav .nav-link.active {
  color: var(--secondary);
}

.dark-mode .text-dark {
  color: #f0edeeff !important;
}

.dark-mode .bg-appointment {
  background: linear-gradient(rgba(10, 9, 12, 0.9), rgba(10, 9, 12, 0.9)),
    url(../img/carousel-1.jpg) center center no-repeat;
}

.dark-mode .position-relative.bg-light.rounded-bottom {
  background-color: #07393cff !important;
  color: #f0edeeff;
}

/* Dark mode for Contact/Banner sections */
.dark-mode .bg-dark {
  background-color: #07393cff !important;
}

.dark-mode .bg-dark p,
.dark-mode .bg-dark h2,
.dark-mode .bg-dark h3 {
  color: #f0edeeff !important;
}

.dark-mode .bg-dark a {
  color: #90ddf0ff !important;
}

.dark-mode .bg-dark a:hover {
  color: #f0edeeff !important;
}

/* Dark mode for footer */
.dark-mode .container-fluid.bg-dark {
  background-color: #07393cff !important;
}

.dark-mode .container-fluid.bg-dark h3,
.dark-mode .container-fluid.bg-dark p {
  color: #f0edeeff !important;
}

.dark-mode .container-fluid.bg-dark a {
  color: #90ddf0ff !important;
}

.dark-mode .container-fluid.text-light {
  color: #f0edeeff !important;
}

.dark-mode .container-fluid.text-light p {
  color: #f0edeeff !important;
}

.dark-mode .container-fluid.text-light a {
  color: #90ddf0ff !important;
}

/* Dark mode toggle */
.dark-mode-toggle {
  position: fixed;
  right: 45px;
  bottom: 100px;
  z-index: 99;
  width: 46px;
  height: 46px;
  padding: 0;
  text-align: center;
  background-color: var(--primary);
  color: #fff;
  border-radius: 46px;
  border: none;
  cursor: pointer;
}

.dark-mode-toggle:hover {
  background-color: var(--secondary);
}

/* Enhanced Responsive Styles */
@media (max-width: 575.98px) {
    .carousel-caption h5 {
        font-size: 14px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 24px;
        font-weight: 600 !important;
    }
    
    .btn-primary, .btn-secondary {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .company-logo {
        font-size: 1.5rem;
    }
    
    h1.display-5 {
        font-size: 1.8rem;
    }
    
    h1.display-1 {
        font-size: 2.5rem;
    }
    
    .service-card {
        padding: 25px 20px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
    
    .service-card h3 {
        font-size: 18px;
    }
    
    .featured-service {
        padding: 20px;
    }
    
    .dark-mode-toggle {
        right: 20px;
        bottom: 80px;
        width: 40px;
        height: 40px;
    }
    
    .back-to-top {
        right: 20px;
        bottom: 20px;
    }
    
    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

/* Fix for very small devices */
@media (max-width: 360px) {
    .carousel-caption h1 {
        font-size: 20px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .company-logo {
        font-size: 1.2rem;
    }
}

/* Make carousel more responsive */
.carousel-item img {
    object-fit: cover;
    height: 100vh;
    max-height: 600px;
}

@media (max-width: 767.98px) {
    .carousel-item img {
        height: 70vh;
        max-height: 500px;
    }
    
    .navbar {
        padding: 15px;
    }
    
    .navbar-collapse {
        margin-top: 15px;
    }
    
    .navbar .btn {
        margin-top: 10px;
        display: inline-block;
    }
}

@media (max-width: 575.98px) {
    .carousel-item img {
        height: 60vh;
        max-height: 400px;
    }
}

/* Improve touch targets for mobile */
@media (max-width: 767.98px) {
    .nav-item.nav-link, 
    .btn,
    .faq-question,
    .service-btn {
        padding: 12px 8px;
        margin-bottom: 5px;
    }
    
    .faq-question {
        cursor: pointer;
    }
    
    .col-lg-5, .col-lg-6, .col-lg-7 {
        margin-bottom: 30px;
    }
    
    .position-relative.h-100 {
        min-height: 400px !important;
    }
    
    .ps-5, .pe-5 {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Responsive tables if any */
table {
    width: 100%;
    overflow-x: auto;
    display: block;
}

/* Improve form elements responsiveness */
input, select, textarea {
    max-width: 100%;
}

/* Mobile-first responsive design */
@media (max-width: 575.98px) {
  .carousel-caption h5 {
    font-size: 14px;
    font-weight: 500 !important;
  }

  .carousel-caption h1 {
    font-size: 24px;
    font-weight: 600 !important;
  }

  .btn-primary,
  .btn-secondary {
    padding: 8px 16px;
    font-size: 14px;
  }

  .company-logo {
    font-size: 1.5rem;
  }

  h1.display-5 {
    font-size: 1.8rem;
  }

  h1.display-1 {
    font-size: 2.5rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card {
    padding: 25px 20px;
  }

  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
  }

  .service-card h3 {
    font-size: 18px;
  }

  .featured-service {
    padding: 20px;
  }

  .services-showcase-image img {
    height: 200px;
  }

  .service-area-list {
    columns: 1;
  }

  .section-title h5::before,
  .section-title h5::after {
    display: none;
  }

  .dark-mode-toggle {
    right: 20px;
    bottom: 80px;
    width: 40px;
    height: 40px;
  }

  .back-to-top {
    right: 20px;
    bottom: 20px;
  }

  .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
  }

  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .carousel-caption h5 {
    font-size: 16px;
  }

  .carousel-caption h1 {
    font-size: 28px;
  }

  h1.display-5 {
    font-size: 2rem;
  }

  h1.display-1 {
    font-size: 3rem;
  }

  .services-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }

  .service-area-list {
    columns: 2;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .carousel-caption h1 {
    font-size: 36px;
  }

  h1.display-5 {
    font-size: 2.2rem;
  }

  h1.display-1 {
    font-size: 3.5rem;
  }

  .services-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }

  .service-area-list {
    columns: 3;
  }
}

@media (max-width: 991.98px) {
  .navbar-light .navbar-nav .nav-link,
  .sticky-top.navbar-light .navbar-nav .nav-link {
    padding: 10px 0;
  }

  .navbar {
    padding: 15px;
  }

  .navbar-collapse {
    margin-top: 15px;
  }

  .navbar .btn {
    margin-top: 10px;
    display: inline-block;
  }

  .banner {
    margin-top: 0;
  }

  .col-lg-5,
  .col-lg-6,
  .col-lg-7 {
    margin-bottom: 30px;
  }

  .position-relative.h-100 {
    min-height: 400px !important;
  }

  .ps-5,
  .pe-5 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
}

/* Fix for very small devices */
@media (max-width: 360px) {
  .carousel-caption h1 {
    font-size: 20px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 6px 12px;
    font-size: 12px;
  }

  .company-logo {
    font-size: 1.2rem;
  }
}

/* Improve topbar responsiveness */
@media (max-width: 767.98px) {
  .container-fluid.bg-light.ps-5.pe-0.d-none.d-lg-block {
    display: none !important;
  }
}

/* Ensure images are responsive */
img {
  max-width: 100%;
  height: auto;
}

/* Make carousel more responsive */
.carousel-item img {
  object-fit: cover;
  height: 100vh;
  max-height: 600px;
}

@media (max-width: 767.98px) {
  .carousel-item img {
    height: 70vh;
    max-height: 500px;
  }
}

@media (max-width: 575.98px) {
  .carousel-item img {
    height: 60vh;
    max-height: 400px;
  }
}

/* Improve touch targets for mobile */
@media (max-width: 767.98px) {
  .nav-item.nav-link,
  .btn,
  .faq-question,
  .service-btn {
    padding: 12px 8px;
    margin-bottom: 5px;
  }

  .faq-question {
    cursor: pointer;
  }
}

/* Responsive tables if any */
table {
  width: 100%;
  overflow-x: auto;
  display: block;
}

/* Improve form elements responsiveness */
input,
select,
textarea {
  max-width: 100%;
}

/* Enhanced Responsive Styles */
@media (max-width: 575.98px) {
  .carousel-caption h5 {
    font-size: 14px;
    font-weight: 500 !important;
  }

  .carousel-caption h1 {
    font-size: 24px;
    font-weight: 600 !important;
  }

  .btn-primary,
  .btn-secondary {
    padding: 8px 16px;
    font-size: 14px;
  }

  .company-logo {
    font-size: 1.5rem;
  }

  h1.display-5 {
    font-size: 1.8rem;
  }

  h1.display-1 {
    font-size: 2.5rem;
  }

  .service-card {
    padding: 25px 20px;
  }

  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
  }

  .service-card h3 {
    font-size: 18px;
  }

  .featured-service {
    padding: 20px;
  }

  .dark-mode-toggle {
    right: 20px;
    bottom: 80px;
    width: 40px;
    height: 40px;
  }

  .back-to-top {
    right: 20px;
    bottom: 20px;
  }

  .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
  }

  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
}

/* Fix for very small devices */
@media (max-width: 360px) {
  .carousel-caption h1 {
    font-size: 20px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 6px 12px;
    font-size: 12px;
  }

  .company-logo {
    font-size: 1.2rem;
  }
}

/* Make carousel more responsive */
.carousel-item img {
  object-fit: cover;
  height: 100vh;
  max-height: 600px;
}

@media (max-width: 767.98px) {
  .carousel-item img {
    height: 70vh;
    max-height: 500px;
  }

  .navbar {
    padding: 15px;
  }

  .navbar-collapse {
    margin-top: 15px;
  }

  .navbar .btn {
    margin-top: 10px;
    display: inline-block;
  }
}

@media (max-width: 575.98px) {
  .carousel-item img {
    height: 60vh;
    max-height: 400px;
  }
}

/* Improve touch targets for mobile */
@media (max-width: 767.98px) {
  .nav-item.nav-link,
  .btn,
  .faq-question,
  .service-btn {
    padding: 12px 8px;
    margin-bottom: 5px;
  }

  .faq-question {
    cursor: pointer;
  }

  .col-lg-5,
  .col-lg-6,
  .col-lg-7 {
    margin-bottom: 30px;
  }

  .position-relative.h-100 {
    min-height: 400px !important;
  }

  .ps-5,
  .pe-5 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
}

/* Ensure images are responsive */
img {
  max-width: 100%;
  height: auto;
}

/* Responsive tables if any */
table {
  width: 100%;
  overflow-x: auto;
  display: block;
}

/* Improve form elements responsiveness */
input,
select,
textarea {
  max-width: 100%;
}
