/********** Template CSS **********/
:root {
  --primary: #4361ee;
  --secondary: #3a0ca3;
  --light: #f8f9fa;
  --dark: #212529;
  --accent: #f72585;
  --gray: #6c757d;
  --white: #ffffff;
  --shadow: rgba(0, 0, 0, 0.1);
}

.back-to-top {
  position: fixed;
  display: none;
  right: 25px;
  bottom: 25px;
  z-index: 99;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.back-to-top:hover {
  transform: translateY(-3px);
}

.fw-medium {
  font-weight: 500;
}

.fw-bold {
  font-weight: 700;
}

.fw-black {
  font-weight: 900;
}

/* Text styles */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
}

p {
  line-height: 1.8;
  font-family: "Open Sans", sans-serif;
}

/* Section padding */
section {
  padding: 100px 0;
}

@media (max-width: 768px) {
  section {
    padding: 70px 0;
  }
}

/*** 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 {
  transition: all 0.4s ease;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 30px;
  padding: 10px 25px;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border: none;
  color: var(--white);
  box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(67, 97, 238, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  border: none;
  color: var(--white);
}

.btn-square {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

.btn-sm-square {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.btn-lg-square {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

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

/*** Navbar ***/
.sticky-top {
  top: -150px;
  transition: 0.5s;
}

.navbar {
  padding: 20px 0;
  transition: all 0.3s ease;
}

.navbar.sticky-top.shadow-sm {
  padding: 10px 0;
  background-color: var(--white) !important;
}

.navbar .navbar-nav .nav-link {
  margin-right: 35px;
  padding: 10px 0;
  color: var(--dark);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  transition: all 0.3s ease;
}

.navbar .navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 5px;
  left: 0;
  background-color: var(--primary);
  transition: all 0.3s ease;
}

.navbar .navbar-nav .nav-link:hover::after,
.navbar .navbar-nav .nav-link.active::after {
  width: 100%;
}

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

@media (max-width: 991.98px) {
  .navbar .navbar-nav {
    margin-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 15px;
  }

  .navbar .navbar-nav .nav-link {
    margin-right: 0;
    padding: 15px 0;
  }

  .navbar .navbar-nav .nav-link::after {
    display: none;
  }
}

/*** Logo Text ***/
.logo-text {
  font-family: "Playfair Display", serif;
  font-weight: 900;
  font-size: 2.2rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
  padding: 0;
  line-height: 1.2;
  position: relative;
  display: inline-block;
}

.navbar .logo-text {
  position: relative;
  font-size: 1.8rem;
  top: auto;
  left: auto;
}

@media (max-width: 768px) {
  .logo-text {
    font-size: 1.8rem;
  }

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

/*** Hero Banner ***/
.hero-banner {
  background: linear-gradient(
      135deg,
      rgba(67, 97, 238, 0.9),
      rgba(58, 12, 163, 0.95)
    ),
    url(../img/carousel-1.jpg) center center;
  background-size: cover;
  background-attachment: fixed;
  padding: 240px 0 260px;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.hero-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='rgba(255,255,255,.05)' fill-opacity='1' fill-rule='evenodd'/%3E%3C/svg%3E");
  z-index: 0;
  opacity: 0.2;
}

.hero-banner h1 {
  font-size: 3.8rem;
  font-weight: 900;
  margin-bottom: 20px;
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-banner h2 {
  font-size: 2.2rem;
  margin-bottom: 30px;
  color: var(--white);
  font-weight: 400;
  opacity: 0.9;
}

@media (max-width: 991.98px) {
  .hero-banner {
    padding: 180px 0 200px;
    min-height: 80vh;
  }
}

@media (max-width: 768px) {
  .hero-banner {
    padding: 150px 0 180px;
    min-height: 70vh;
  }
  
  .hero-banner h1 {
    font-size: 2.5rem;
  }
  
  .hero-banner h2 {
    font-size: 1.5rem;
  }
}

/*** Section Titles ***/
.section-title {
  position: relative;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
}

.section-title::before {
  position: absolute;
  content: "";
  width: 50%;
  height: 2px;
  bottom: 0;
  left: 0;
  background: var(--primary);
}

.section-title::after {
  position: absolute;
  content: "";
  width: 28px;
  height: 28px;
  bottom: -13px;
  left: calc(25% - 13px);
  background: var(--white);
  border: 2px solid var(--primary);
  border-radius: 28px;
}

.section-title.text-center::before {
  left: 25%;
}

.section-title.text-center::after {
  left: 50%;
  transform: translateX(-50%);
}

.section-title h2 {
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 10px;
}

.section-title p {
  color: var(--gray);
  margin-bottom: 0;
}

/*** About Section ***/
#about {
  background-color: var(--light);
}

#about img {
  border-radius: 10px;
  box-shadow: 0 5px 15px var(--shadow);
  transition: transform 0.3s ease;
}

#about img:hover {
  transform: scale(1.03);
}

/*** Services Section ***/
.service-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
  transition: all 0.4s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.service-item img {
  width: 100%;
  transition: 0.5s;
  border-radius: 15px 15px 0 0;
}

.service-item:hover img {
  transform: scale(1.1);
}

.service-item .service-content {
  position: relative;
  padding: 30px;
  background: var(--white);
  border-radius: 0 0 15px 15px;
  z-index: 1;
}

.service-item .service-content::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 0;
  top: 0;
  left: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  transition: 0.5s;
  z-index: -1;
  border-radius: 0 0 15px 15px;
}

.service-item:hover .service-content::after {
  height: 100%;
}

.service-item .service-content * {
  transition: 0.5s;
}

.service-item:hover .service-content * {
  color: var(--white) !important;
}

.service-item .service-content h4 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

/*** Details Section ***/
.details-section {
  background-color: var(--light);
  padding: 80px 0;
}

.details-section .rounded {
  border-radius: 15px !important;
  transition: all 0.3s ease;
  height: 100%;
}

.details-section .rounded:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.details-section h3 {
  color: var(--primary);
  margin-bottom: 25px;
  font-weight: 700;
  font-size: 1.8rem;
}

/*** Service Area ***/
.service-area {
  background-color: var(--white);
  padding: 80px 0;
}

.service-area h2 {
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary);
  font-weight: 700;
}

.service-area ul {
  column-count: 3;
  column-gap: 30px;
  list-style: none;
  padding-left: 0;
}

.service-area ul li {
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
}

.service-area ul li i {
  position: absolute;
  left: 0;
  top: 5px;
  color: var(--primary);
}

@media (max-width: 992px) {
  .service-area ul {
    column-count: 2;
  }
}

@media (max-width: 576px) {
  .service-area ul {
    column-count: 1;
  }
}

/*** FAQ Section ***/
.faq-item {
  margin-bottom: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-item .faq-question {
  position: relative;
  color: var(--dark);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  padding: 20px 30px;
  border-radius: 10px;
  background: var(--white);
  transition: 0.5s;
}

.faq-item .faq-question:hover,
.faq-item .faq-question.active {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.faq-item .faq-question:after {
  content: "+";
  position: absolute;
  right: 30px;
  font-size: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.faq-item .faq-question.active:after {
  content: "-";
}

.faq-item .faq-answer {
  position: relative;
  padding: 20px 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: none;
}

/*** Contact Section ***/
#contact .rounded {
  border-radius: 20px !important;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
}

#contact h3 {
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 25px;
}

/*** Footer ***/
.footer {
  background: linear-gradient(135deg, var(--dark) 0%, #000 100%);
  color: var(--light);
  padding: 80px 0 20px;
}

.footer h4 {
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 25px;
}

.footer p {
  opacity: 0.8;
}

/* Animations */
.wow {
  visibility: hidden;
}

/* Additional modern styling for F X Carpet Care */

/* Add extra styling for the accordion in the FAQ section */
.accordion-item {
  overflow: hidden;
  margin-bottom: 15px;
  border: none;
}

.accordion-button {
  box-shadow: none !important;
  background: var(--white);
  color: var(--dark);
  padding: 20px 25px;
  font-weight: 600;
  border-radius: 10px !important;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.accordion-button:not(.collapsed) {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%234361EE'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-collapse {
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-top: none;
  border-radius: 0 0 10px 10px;
}

.accordion-body {
  padding: 20px 25px;
  background-color: var(--white);
}

/* Enhanced service boxes */
.service-item {
  transition: all 0.4s ease;
}

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

/* Contact info boxes */
.contact-info-box {
  padding: 30px;
  background: var(--white);
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  transition: all 0.3s ease;
}

.contact-info-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-info-box i {
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: var(--white);
  font-size: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

/* Feature list styling */
.feature-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
}

.feature-list li:before {
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
}

/* Button hover effects */
.btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* Services section enhancements */
#services {
  position: relative;
  padding: 100px 0;
  background: linear-gradient(
      rgba(248, 249, 250, 0.9),
      rgba(248, 249, 250, 0.9)
    ),
    url(../img/product-bg.png);
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}

/* Additional styles for service area section */
.area-box {
  background-color: var(--white);
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
  height: 100%;
  transition: all 0.3s ease;
}

.area-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.location-list {
  display: flex;
  flex-wrap: wrap;
}

.location-list li {
  width: 50%;
  padding: 8px 0;
  position: relative;
  padding-left: 25px;
}

.location-list li i {
  position: absolute;
  left: 0;
  top: 12px;
  color: var(--primary);
}

@media (max-width: 768px) {
  .location-list li {
    width: 100%;
  }
}

/* Enhanced footer styling */
.footer {
  position: relative;
  overflow: hidden;
}

.footer:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='rgba(255,255,255,.03)' fill-opacity='1' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.3;
  z-index: 0;
}

.footer .container {
  position: relative;
  z-index: 1;
}

.footer .btn-link {
  position: relative;
  padding-left: 15px;
  transition: all 0.3s ease;
}

.footer .btn-link:hover {
  transform: translateX(5px);
}

/* Add animations */
.fadeInLeft {
  animation: fadeInLeft 1s ease-in-out;
}

.fadeInRight {
  animation: fadeInRight 1s ease-in-out;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translate3d(-50px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translate3d(50px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Add styles for Font Awesome icons in case they're missing */
.fa-tint:before {
  content: "\f043";
}
.fa-shield-alt:before {
  content: "\f3ed";
}
.fa-leaf:before {
  content: "\f06c";
}
.fa-phone-alt:before {
  content: "\f879";
}
.fa-map-marker-alt:before {
  content: "\f3c5";
}
.fa-clock:before {
  content: "\f017";
}
.fa-check:before {
  content: "\f00c";
}

/* Special styling for headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  position: relative;
  z-index: 1;
}

.display-5,
.display-6 {
  font-weight: 700;
}

/* Hero section enhancements */
.hero-banner {
  background: linear-gradient(
      135deg,
      rgba(67, 97, 238, 0.9),
      rgba(58, 12, 163, 0.95)
    ),
    url(../img/carousel-1.jpg) center center;
  background-size: cover;
  background-attachment: fixed;
  padding: 240px 0 260px;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.highlight-text {
  position: relative;
  display: inline-block;
}

.highlight-text::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: rgba(247, 37, 133, 0.6);
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.shape-blob {
  width: 500px;
  height: 500px;
  background: rgba(247, 37, 133, 0.2);
  border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
  position: absolute;
  top: -250px;
  right: -250px;
  animation: morph 15s linear infinite alternate;
  z-index: 1;
}

@keyframes morph {
  0% {
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
    transform: translate(-50px, 50px) rotate(45deg);
  }
}

.floating-card {
  z-index: 2;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-15px);
  }
}

.hero-wave {
  z-index: 1;
}

@media (max-width: 991.98px) {
  .hero-banner {
    padding: 120px 0 150px;
  }
}

/* Add shadow to the About section image */
.position-relative.overflow-hidden.rounded {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.position-relative.overflow-hidden.rounded:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}
