/********** Template CSS **********/
:root {
  --primary: #355efc;
  --secondary: #8d9297;
  --light: #f8f9fa;
  --dark: #182333;
}

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

/*** Spinner ***/
#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;
}

/*** Button ***/
.btn {
  font-weight: 500;
  transition: 0.5s;
}

.btn.btn-primary,
.btn.btn-outline-primary:hover {
  color: #ffffff;
}

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

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

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

.btn-square,
.btn-sm-square,
.btn-lg-square {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
}

/*** Navbar ***/
.navbar {
  transition: all 0.5s ease;
  background-color: transparent;
  box-shadow: none;
  position: absolute;
  width: 100%;
  z-index: 999;
}

.navbar.sticky-top {
  top: 0;
  position: fixed;
  background-color: rgba(0, 0, 0, 0.9);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  animation: fadeInDown 0.5s ease-in-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.navbar .navbar-nav .nav-link {
  margin-left: 30px;
  padding: 25px 0;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  text-transform: uppercase;
  outline: none;
  transition: all 0.3s ease;
}

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

.navbar .dropdown-toggle::after {
  border: none;
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  vertical-align: middle;
  margin-left: 8px;
}

/* Logo Text Styling */
.logo-text {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  color: var(--primary);
  font-size: 2.5rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.logo-text::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0.7);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.navbar-brand:hover .logo-text::after {
  transform: scaleX(1);
}

@media (max-width: 991.98px) {
  .navbar .navbar-nav .nav-link {
    margin-left: 0;
    padding: 10px 0;
  }

  .navbar .navbar-nav {
    margin-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .navbar.sticky-top {
    background-color: rgba(0, 0, 0, 0.95);
  }
}

@media (min-width: 992px) {
  .navbar .nav-item .dropdown-menu {
    display: block;
    border: none;
    margin-top: 0;
    top: 150%;
    right: 0;
    opacity: 0;
    visibility: hidden;
    transition: 0.5s;
  }

  .navbar .nav-item:hover .dropdown-menu {
    top: 100%;
    visibility: visible;
    transition: 0.5s;
    opacity: 1;
  }
}

/*** Header ***/
.carousel-caption {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  text-align: start;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1;
}

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

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 4rem;
  height: 4rem;
  background-color: var(--dark);
  border: 15px solid var(--dark);
  border-radius: 50px;
}

.carousel-caption .breadcrumb-item + .breadcrumb-item::before {
  content: "\f111";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: var(--primary);
}

@media (max-width: 768px) {
  #header-carousel .carousel-item {
    position: relative;
    min-height: 450px;
  }

  #header-carousel .carousel-item img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

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

.page-header {
  background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
    url(../img/carousel-1.jpg) center center no-repeat;
  background-size: cover;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
  color: #999999;
}

/*** Facts ***/
.facts-overlay {
  position: absolute;
  padding: 30px;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
}

.facts-overlay h1 {
  font-size: 120px;
  color: transparent;
  -webkit-text-stroke: 2px var(--primary);
}

.facts-overlay a:hover {
  color: var(--primary) !important;
}

/*** Service ***/
.service-text::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 0;
  top: 0;
  left: 0;
  background: var(--primary);
  opacity: 0;
  transition: 0.5s;
}

.service-item:hover .service-text::before {
  height: 100%;
  opacity: 1;
}

.service-text * {
  position: relative;
  transition: 0.5s;
  z-index: 1;
}

.service-item:hover .service-text * {
  color: #ffffff !important;
}

/*** Appointment ***/
.appointment {
  background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
    url(../img/carousel-2.jpg) center center no-repeat;
  background-size: cover;
}

/*** Team ***/
.team-text {
  position: absolute;
  width: 75%;
  bottom: 30px;
  left: 0;
  transition: 0.5s;
}

.team-item:hover .team-text {
  width: 100%;
}

.team-text * {
  transition: 0.5s;
}

.team-item:hover .team-text * {
  letter-spacing: 2px;
}

/*** Testimonial ***/
.testimonial-carousel .owl-item img {
  width: 100px;
  height: 100px;
}

.testimonial-carousel .owl-nav {
  margin-top: 30px;
  display: flex;
  justify-content: start;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
  margin-right: 15px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  border: 2px solid var(--primary);
  border-radius: 50px;
  font-size: 18px;
  transition: 0.5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
  color: #ffffff;
  background: var(--primary);
}

/*** Footer ***/
.footer {
  color: #999999;
}

.footer .btn.btn-link {
  display: block;
  margin-bottom: 5px;
  padding: 0;
  text-align: left;
  color: #999999;
  font-weight: normal;
  text-transform: capitalize;
  transition: 0.3s;
}

.footer .btn.btn-link::before {
  position: relative;
  content: "\f105";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: #999999;
  margin-right: 10px;
}

.footer .btn.btn-link:hover {
  color: var(--light);
  letter-spacing: 1px;
  box-shadow: none;
}

.footer .copyright {
  padding: 25px 0;
  font-size: 15px;
  border-top: 1px solid rgba(256, 256, 256, 0.1);
}

.footer .copyright a {
  color: var(--light);
}

.footer .copyright a:hover {
  color: var(--primary);
}

.hero-banner {
  min-height: 100vh;
  padding: 0;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
    url("../img/carousel-1.jpg") center center no-repeat;
  background-size: cover;
  background-attachment: fixed;
  color: #fff;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.hero-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    rgba(53, 94, 252, 0.3) 100%
  );
  opacity: 0.3;
  z-index: 1;
}

.hero-banner .container {
  position: relative;
  z-index: 2;
  padding: 120px 15px;
  width: 100%;
}

.hero-banner h2 {
  font-size: 1.8rem;
  margin-top: 20px;
  margin-bottom: 30px;
}

/* Hero banner logo styling is now handled by the new classes */

.hero-banner .btn {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  font-weight: 600;
  padding: 12px 30px;
  transition: all 0.3s ease;
  border-radius: 50px;
}

/* Service Section Styling */
.service-item {
  margin-bottom: 30px;
  transition: all 0.3s;
}

.service-item:hover {
  transform: translateY(-5px);
}

/* FAQ Section Styling */
.faq-item {
  margin-bottom: 20px;
  border: none;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.faq-question {
  cursor: pointer;
  padding: 20px 25px;
  background-color: #fff;
  font-weight: 600;
  position: relative;
  border-left: 5px solid var(--primary);
  transition: all 0.3s ease;
}

.faq-question:after {
  content: "\f067";
  font-family: "Font Awesome 5 Free";
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-weight: 900;
}

.faq-question.active {
  background-color: var(--primary);
  color: white;
}

.faq-question.active:after {
  content: "\f068";
  color: white;
}

.faq-answer {
  padding: 20px 25px;
  background-color: #fff;
  display: none;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-question.active + .faq-answer {
  display: block;
}

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

@media (max-width: 768px) {
  .service-area-list {
    columns: 2;
  }
  .logo-text {
    font-size: 2rem;
  }
  .hero-banner .logo-text {
    font-size: 2.5rem;
  }
}

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

.hero-feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 15px;
  color: #fff;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  margin-bottom: 10px;
  height: 100%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.hero-features {
  margin-top: 60px;
}

@media (max-width: 768px) {
  .hero-features {
    margin-top: 40px;
  }
}

@media (max-width: 576px) {
  .hero-features {
    margin-top: 30px;
  }
}

.hero-feature-item:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.2);
}

.hero-feature-item i {
  color: var(--primary);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

.hero-feature-item p {
  margin-bottom: 0;
  font-weight: 500;
}

/* Alternate section backgrounds */
.section-dark {
  background-color: #0e1526; /* Darker than var(--dark) */
  color: #fff;
}

.section-light {
  background-color: #f8f9fa;
}

.section-primary {
  background: linear-gradient(
    135deg,
    rgba(53, 94, 252, 0.9) 0%,
    rgba(53, 94, 252, 0.7) 100%
  );
  color: #fff;
}

.section-dark .text-body,
.section-primary .text-body {
  color: rgba(255, 255, 255, 0.8) !important;
}

.section-dark .border-primary,
.section-primary .border-primary {
  border-color: #fff !important;
}

/* Enhanced section styling */
.section-padding {
  padding: 100px 0;
}

.section-header {
  position: relative;
  margin-bottom: 60px;
}

.section-header::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary);
}

/* Service Item Styling */
.service-item {
  position: relative;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12) !important;
  border-color: rgba(53, 94, 252, 0.2);
}

.service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(53, 94, 252, 0.7);
  opacity: 0;
  transition: all 0.3s ease;
}

.service-item:hover .service-overlay {
  opacity: 1;
}

.service-btn {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.service-item:hover .service-btn {
  transform: translateY(0);
}

.service-item h4 {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 15px;
  color: var(--dark) !important;
  font-weight: 700;
  font-size: 1.5rem;
}

.service-item h4::after {
  position: absolute;
  content: "";
  width: 50px;
  height: 3px;
  bottom: 0;
  left: 0;
  background: var(--primary);
}

.service-item p {
  flex-grow: 1;
  line-height: 1.7;
  margin-bottom: 15px;
  font-size: 1rem;
  height: auto;
  min-height: 160px;
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-item .service-footer {
  margin-top: auto;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.service-item .service-footer .service-rating {
  display: flex;
  gap: 3px;
}

.service-item .service-footer .service-rating i {
  filter: drop-shadow(0px 1px 1px rgba(0, 0, 0, 0.1));
  font-size: 14px;
}

.service-item .service-footer .btn {
  border-radius: 50px;
  padding: 8px 20px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(53, 94, 252, 0.2);
}

.service-item .service-footer .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(53, 94, 252, 0.4);
  background-color: #2848d9;
}

.rounded-lg {
  border-radius: 15px !important;
}

.bg-primary-light {
  background: linear-gradient(
    135deg,
    rgba(53, 94, 252, 0.8) 0%,
    rgba(53, 94, 252, 0.6) 100%
  );
  border-radius: 15px;
}

/* Enhanced Service Footer Styling */
.service-item .service-footer .service-rating {
  display: flex;
  gap: 3px;
}

.service-item .service-footer .service-rating i {
  filter: drop-shadow(0px 1px 1px rgba(0, 0, 0, 0.1));
  font-size: 14px;
}

.service-item .service-footer .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(53, 94, 252, 0.4);
  background-color: #2848d9;
}

/* Card text visibility fixes */
.bg-white,
.service-item,
.faq-answer {
  color: var(--dark);
}

.bg-white h1,
.bg-white h2,
.bg-white h3,
.bg-white h4,
.bg-white h5,
.bg-white h6,
.service-item h1,
.service-item h2,
.service-item h3,
.service-item h4,
.service-item h5,
.service-item h6 {
  color: var(--dark);
}

.bg-white p,
.service-item p,
.faq-answer p {
  color: #555;
}

/* Service item specific color fix */
.service-item .service-overlay a {
  color: #fff;
}

/* Ensure service area list has proper text color */
.service-area-list {
  color: #555;
}

/* Ensure FAQ answers are visible */
.faq-answer {
  color: #555;
}

/* Contact section white card text colors */
#contact .bg-white h3,
#contact .bg-white h4 {
  color: var(--dark);
}

#contact .bg-white p,
#contact .bg-white .fs-5 {
  color: #555;
}

/* Detailed services card text color */
#detailed-services .bg-white h4 {
  color: var(--dark);
}

#detailed-services .bg-white p {
  color: #555;
}

/* Keep links visible but styled properly in white cards */
.bg-white a:not(.btn) {
  color: var(--primary);
}

/* Card text visibility fixes */
.bg-white,
.service-item,
.faq-answer {
  color: var(--dark);
}

.bg-white h1,
.bg-white h2,
.bg-white h3,
.bg-white h4,
.bg-white h5,
.bg-white h6,
.service-item h1,
.service-item h2,
.service-item h3,
.service-item h4,
.service-item h5,
.service-item h6 {
  color: var(--dark);
}

.bg-white p,
.service-item p,
.faq-answer p {
  color: #555;
}

/* Service item specific color fix */
.service-item .service-overlay a {
  color: #fff;
}

/* Ensure service area list has proper text color */
.service-area-list {
  color: #555;
}

/* Ensure FAQ answers are visible */
.faq-answer {
  color: #555;
}

/* Contact section white card text colors */
#contact .bg-white h3,
#contact .bg-white h4 {
  color: var(--dark);
}

#contact .bg-white p,
#contact .bg-white .fs-5 {
  color: #555;
}

/* Detailed services card text color */
#detailed-services .bg-white h4 {
  color: var(--dark);
}

#detailed-services .bg-white p {
  color: #555;
}

/* Keep links visible but styled properly in white cards */
.bg-white a:not(.btn) {
  color: var(--primary);
}

.hero-logo-container {
  margin-bottom: 20px;
}

.logo-tagline {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 2px;
  margin-top: 5px;
  text-transform: uppercase;
  opacity: 0.9;
}

.hero-banner .logo-text {
  font-size: 4rem;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 5px;
  position: relative;
  display: inline-block;
}

.hero-banner .logo-text::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

@media (max-width: 768px) {
  .logo-text {
    font-size: 2rem;
  }
  .hero-banner .logo-text {
    font-size: 3rem;
  }
  .logo-tagline {
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  .hero-banner .logo-text {
    font-size: 2.5rem;
  }
  .logo-tagline {
    font-size: 1rem;
  }
}

@media (max-width: 1200px) {
  .hero-banner {
    background-attachment: scroll;
  }
}

@media (max-width: 991px) {
  .hero-banner .container {
    padding: 100px 15px;
  }

  .hero-banner .logo-text {
    font-size: 3.5rem;
  }

  .hero-feature-item {
    padding: 12px;
  }
}

@media (max-width: 768px) {
  .hero-banner .container {
    padding: 80px 15px;
  }

  .logo-text {
    font-size: 2rem;
  }

  .hero-banner .logo-text {
    font-size: 3rem;
  }

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

  .hero-banner h2 {
    font-size: 1.5rem;
  }

  .hero-banner .btn {
    padding: 10px 25px;
  }
}

@media (max-width: 576px) {
  .hero-banner .container {
    padding: 70px 15px 60px;
  }

  .hero-banner .logo-text {
    font-size: 2.5rem;
  }

  .logo-tagline {
    font-size: 1rem;
  }

  .hero-banner h2 {
    font-size: 1.3rem;
    margin-top: 15px;
    margin-bottom: 20px;
  }

  .hero-feature-item {
    padding: 10px;
  }

  .hero-feature-item i {
    font-size: 1.5rem;
    margin-bottom: 5px;
  }

  .hero-feature-item p {
    font-size: 0.9rem;
  }
}
