/* 
* Bristol Carpets & Rugs Cleaner - Custom Styles
* Modern, minimalist, and trendy design with a dual-tone color scheme
*/

/* ===== General Styles ===== */
:root {
  --primary-color: #2e58ff;
  --primary-dark: #1a3fcc;
  --secondary-color: #8e24aa;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --text-color: #495057;
  --light-gray: #e9ecef;
  --border-radius: 10px;
  --box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  --section-padding: 90px 0;
  --gradient-primary: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
}

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap");

body {
  font-family: "Poppins", "Segoe UI", Roboto, sans-serif;
  color: var(--text-color);
  line-height: 1.7;
  overflow-x: hidden;
  padding-top: 76px;
  scroll-behavior: smooth;
}

::selection {
  background-color: var(--primary-color);
  color: white;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 20px;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

.btn {
  padding: 12px 28px;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.4s;
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-primary);
  border: none;
}

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

.btn-outline-light {
  color: var(--dark-color);
  border: 2px solid var(--dark-color);
}

.btn-outline-light:hover {
  background-color: var(--dark-color);
  border-color: var(--dark-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-outline-primary {
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline-primary:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(46, 88, 255, 0.2);
}

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

.section-header h2 {
  font-size: 2.5rem;
  position: relative;
  margin-bottom: 15px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.underline {
  display: block;
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  margin-bottom: 25px;
  border-radius: 10px;
}

.section-transition {
  position: relative;
  overflow: hidden;
}

.section-transition::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 1),
    rgba(255, 255, 255, 0)
  );
  z-index: 1;
  pointer-events: none;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.img-hover {
  transition: var(--transition);
  filter: brightness(0.97);
}

.img-hover:hover {
  filter: brightness(1.05);
  transform: scale(1.02);
}

section {
  padding: var(--section-padding);
  position: relative;
}

/* ===== Scroll Reveal Animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Navbar ===== */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
  transition: all 0.3s ease;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: #8e24aa;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.navbar-brand:hover {
  color: #6a1b9a;
  transform: translateY(-2px);
}

.brand-logo {
  display: inline-block;
  width: 40px;
  height: 40px;
  margin-right: 10px;
  background: linear-gradient(135deg, #2e58ff 0%, #8e24aa 100%);
  border-radius: 8px;
  position: relative;
  vertical-align: middle;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.brand-logo::before {
  content: "";
  position: absolute;
  top: 20%;
  left: 20%;
  width: 60%;
  height: 60%;
  background-color: white;
  border-radius: 4px;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar-toggler {
  border: none;
  padding: 10px;
  outline: none !important;
  box-shadow: none !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(142, 36, 170, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-link {
  color: #333333;
  font-weight: 500;
  padding: 10px 15px !important;
  margin: 0 5px;
  position: relative;
  transition: all 0.3s ease;
  border-radius: 5px;
}

.nav-link:hover,
.nav-link:focus {
  color: #8e24aa;
  background-color: rgba(142, 36, 170, 0.05);
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 5px;
  left: 50%;
  background-color: #8e24aa;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}

.navbar-nav .active > .nav-link,
.navbar-nav .nav-link.active {
  color: #8e24aa;
  font-weight: 600;
}

.navbar-nav .active > .nav-link::after,
.navbar-nav .nav-link.active::after {
  width: 80%;
}

/* Navbar scroll effect */
.navbar.scrolled {
  padding: 10px 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* Navbar CTA button */
.navbar .btn-primary {
  padding: 8px 20px;
  border-radius: 50px;
  background: linear-gradient(45deg, #8e24aa, #6a1b9a);
  border: none;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(142, 36, 170, 0.3);
}

.navbar .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(142, 36, 170, 0.4);
}

/* Update navbar for mobile */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-top: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  }

  .nav-link {
    padding: 12px 15px !important;
    margin: 3px 0;
  }

  .nav-link::after {
    bottom: 8px;
  }
}

/* ===== Hero Section ===== */
.hero-section {
  background: linear-gradient(135deg, #2e58ff 0%, #8e24aa 100%);
  padding: 180px 0 120px;
  position: relative;
  overflow: hidden;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Remove wave container and wave styles */
.wave-container {
  display: none;
}

.wave {
  display: none;
}

.wave1,
.wave2,
.wave3 {
  display: none;
}

@keyframes wave-animation {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0%);
  }
}

/* ===== About Section ===== */
.about-section {
  background-color: white;
  position: relative;
  z-index: 1;
}

.about-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: var(--gradient-primary);
  opacity: 0.05;
  border-radius: 50%;
  z-index: -1;
}

.about-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  height: 100%;
  transition: var(--transition);
  position: relative;
}

.about-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(46, 88, 255, 0.2) 0%,
    rgba(142, 36, 170, 0.2) 100%
  );
  z-index: 1;
  opacity: 0;
  transition: var(--transition);
}

.about-image:hover::before {
  opacity: 1;
}

.about-image:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: all 0.7s cubic-bezier(0.33, 1, 0.68, 1);
  filter: contrast(1.05) brightness(1.02);
  opacity: 1;
}

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

.feature-item {
  display: flex;
  margin-bottom: 30px;
  padding: 20px;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

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

.feature-icon {
  flex: 0 0 50px;
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(46, 88, 255, 0.1) 0%,
    rgba(142, 36, 170, 0.1) 100%
  );
  height: 50px;
  width: 50px;
  border-radius: 50%;
  transition: var(--transition);
}

.feature-item:hover .feature-icon {
  background: var(--gradient-primary);
  color: white;
  transform: rotateY(360deg);
}

.feature-text h5 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  transition: var(--transition);
}

.feature-item:hover .feature-text h5 {
  color: var(--primary-color);
}

/* ===== Services Section ===== */
.services-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

.services-section::before {
  content: "";
  position: absolute;
  top: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: var(--gradient-primary);
  opacity: 0.05;
  border-radius: 50%;
}

.service-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  height: 100%;
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient-primary);
  z-index: 2;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s;
}

.service-card:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

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

.service-icon {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.service-icon::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0));
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover .service-icon::after {
  opacity: 1;
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.service-content {
  padding: 30px;
  position: relative;
}

.service-content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  transition: var(--transition);
}

.service-card:hover .service-content h3 {
  color: var(--primary-color);
}

.service-content .btn {
  margin-top: 15px;
}

/* ===== Services Details Section ===== */
.service-details-section {
  background-color: white;
  position: relative;
  z-index: 1;
}

.service-details-section::after {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: var(--gradient-primary);
  opacity: 0.05;
  border-radius: 50%;
  z-index: -1;
}

.service-detail-item {
  padding: 40px 0;
  border-bottom: 1px solid var(--light-gray);
  margin-bottom: 30px;
}

.service-detail-item:last-child {
  border-bottom: none;
}

.service-detail-content {
  padding: 20px;
}

.service-detail-content h3 {
  font-size: 2rem;
  margin-bottom: 15px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.service-detail-content .lead {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.service-detail-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

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

.service-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: all 0.7s cubic-bezier(0.33, 1, 0.68, 1);
  filter: contrast(1.05) brightness(1.02);
  opacity: 1;
}

.service-detail-image:hover img {
  transform: scale(1.08);
}

.service-benefits {
  margin: 30px 0;
}

.benefit-item {
  display: flex;
  margin-bottom: 20px;
  padding: 15px;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.benefit-item:hover {
  transform: translateX(10px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
  flex: 0 0 40px;
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-right: 15px;
  transition: var(--transition);
}

.benefit-item:hover .benefit-icon {
  color: var(--secondary-color);
  transform: scale(1.1);
}

.benefit-icon svg {
  stroke: var(--primary-color);
  transition: var(--transition);
}

.benefit-item:hover .benefit-icon svg {
  stroke: var(--secondary-color);
}

.benefit-text h5 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.service-cta {
  margin-top: 30px;
}

/* Additional Services Cards */
.additional-services {
  margin-top: 60px;
}

.additional-service-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
  height: 100%;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.additional-service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--gradient-primary);
  z-index: -1;
  transition: var(--transition);
}

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

.additional-service-card:hover::before {
  width: 100%;
  opacity: 0.05;
}

.additional-service-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: linear-gradient(
    135deg,
    rgba(46, 88, 255, 0.1) 0%,
    rgba(142, 36, 170, 0.1) 100%
  );
  border-radius: 50%;
  transition: var(--transition);
}

.additional-service-card:hover .additional-service-icon {
  background: var(--gradient-primary);
}

.additional-service-icon svg {
  stroke: var(--primary-color);
  transition: var(--transition);
}

.additional-service-card:hover .additional-service-icon svg {
  stroke: white;
}

.additional-service-card h4 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  transition: var(--transition);
}

.additional-service-card:hover h4 {
  color: var(--primary-color);
}

.additional-service-card p {
  margin-bottom: 20px;
}

/* ===== Areas Section ===== */
.areas-section {
  background-color: white;
  position: relative;
  overflow: hidden;
}

.areas-section::after {
  content: "";
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: var(--gradient-primary);
  opacity: 0.05;
  border-radius: 50%;
}

.area-list {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  padding: 25px;
  height: 100%;
  transition: var(--transition);
}

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

.area-list ul {
  list-style: none;
  padding-left: 0;
}

.area-list ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--light-gray);
  position: relative;
  padding-left: 25px;
  transition: var(--transition);
}

.area-list ul li:hover {
  padding-left: 30px;
  color: var(--primary-color);
}

.area-list ul li::before {
  content: "•";
  color: var(--primary-color);
  position: absolute;
  left: 0;
  transition: var(--transition);
  font-size: 1.5rem;
  line-height: 1;
  top: 50%;
  transform: translateY(-50%);
}

.area-list ul li:hover::before {
  left: 5px;
}

/* ===== Testimonials Section ===== */
.testimonials-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

.testimonials-section::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: var(--gradient-primary);
  opacity: 0.05;
  border-radius: 50%;
}

.testimonial-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 35px;
  box-shadow: var(--box-shadow);
  height: 100%;
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 120px;
  line-height: 1;
  font-family: serif;
  color: var(--primary-color);
  opacity: 0.1;
  z-index: -1;
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.testimonial-card:hover::before {
  opacity: 0.2;
  transform: rotate(10deg);
}

.testimonial-rating {
  margin-bottom: 20px;
  color: #ffc107;
  display: flex;
  gap: 5px;
}

.testimonial-rating i {
  transition: var(--transition);
}

.testimonial-card:hover .testimonial-rating i {
  transform: rotate(360deg);
}

.testimonial-content {
  font-style: italic;
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
}

.testimonial-author h5 {
  margin-bottom: 5px;
  color: var(--primary-color);
}

.testimonial-author p {
  opacity: 0.8;
  margin-bottom: 0;
}

/* ===== FAQ Section ===== */
.faq-section {
  background-color: white;
  position: relative;
  overflow: hidden;
}

.faq-section::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: var(--gradient-primary);
  opacity: 0.05;
  border-radius: 50%;
}

.accordion-item {
  border: none;
  margin-bottom: 20px;
  border-radius: var(--border-radius) !important;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.accordion-item:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.accordion-button {
  padding: 25px;
  font-weight: 600;
  border-radius: var(--border-radius) !important;
  background-color: white;
  transition: var(--transition);
}

.accordion-button:not(.collapsed) {
  background: var(--gradient-primary);
  color: white;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--light-gray);
}

.accordion-button::after {
  background-size: 18px;
  transition: var(--transition);
}

.accordion-button:not(.collapsed)::after {
  filter: brightness(5);
}

.accordion-body {
  padding: 25px;
  border-top: 1px solid var(--light-gray);
}

/* ===== Contact Section ===== */
.contact-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: "";
  position: absolute;
  top: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: var(--gradient-primary);
  opacity: 0.05;
  border-radius: 50%;
}

.contact-info {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

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

.contact-item {
  display: flex;
  margin-bottom: 30px;
  transition: var(--transition);
}

.contact-item:hover {
  transform: translateX(5px);
}

.contact-icon {
  flex: 0 0 50px;
  font-size: 1.5rem;
  color: white;
  margin-right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  height: 50px;
  width: 50px;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(46, 88, 255, 0.2);
  transition: var(--transition);
}

.contact-item:hover .contact-icon {
  transform: rotateY(360deg);
}

.contact-text h5 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--primary-color);
}

.contact-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  height: 100%;
  position: relative;
}

.contact-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(46, 88, 255, 0.2) 0%,
    rgba(142, 36, 170, 0.2) 100%
  );
  z-index: 1;
  opacity: 0;
  transition: var(--transition);
}

.contact-image:hover::before {
  opacity: 1;
}

.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: all 0.7s cubic-bezier(0.33, 1, 0.68, 1);
  filter: contrast(1.05) brightness(1.02);
  opacity: 1;
}

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

.cta-button {
  text-align: center;
}

/* ===== Footer ===== */
.footer-section {
  background: linear-gradient(135deg, var(--dark-color) 0%, #000 100%);
  color: white;
  padding: 50px 0 40px;
  position: relative;
  overflow: hidden;
}

.footer-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient-primary);
}

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

.footer-content h4 {
  color: white;
  margin-bottom: 15px;
  font-size: 1.8rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.footer-content p {
  opacity: 0.8;
  margin-bottom: 10px;
}

/* ===== Animation Classes ===== */
.fade-in {
  animation: fadeIn 1s ease forwards;
}

.fade-in-up {
  animation: fadeInUp 1s ease forwards;
}

.fade-in-left {
  animation: fadeInLeft 1s ease forwards;
}

.fade-in-right {
  animation: fadeInRight 1s ease forwards;
}

/* Button ripple effect */
.btn {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
  width: 100px;
  height: 100px;
  margin-top: -50px;
  margin-left: -50px;
  z-index: 10;
}

@keyframes ripple {
  to {
    transform: scale(2.5);
    opacity: 0;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== Responsive Styles ===== */
@media (max-width: 991.98px) {
  :root {
    --section-padding: 70px 0;
  }

  .hero-section h1 {
    font-size: 2.5rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .hero-image {
    margin-top: 40px;
  }

  .navbar-collapse {
    background-color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }
}

@media (max-width: 767.98px) {
  :root {
    --section-padding: 60px 0;
  }

  .hero-section {
    padding: 140px 0 120px;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .about-image {
    margin-bottom: 30px;
  }

  .contact-image {
    margin-top: 40px;
  }
}

.hero-section .container {
  position: relative;
  z-index: 5;
}

/* ===== Common Image Frame System ===== */
.image-frame-wrapper {
  position: relative;
  margin: 15px;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 2;
}

.image-frame-wrapper::before {
  content: "";
  position: absolute;
  top: 15px;
  right: -10px;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0.1;
  border-radius: var(--border-radius);
  z-index: -1;
  transform: rotate(-3deg);
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.image-frame-wrapper:hover::before {
  transform: rotate(0);
  opacity: 0.15;
}

.image-frame {
  /* Ensure consistent ratio */
  display: block;
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 5px solid white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  background-color: #f8f9fa;
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* ===== Image Loading Animation ===== */
@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}

.image-frame::before {
  content: "";
  box-sizing: border-box;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  margin-left: -15px;
  border-radius: 50%;
  border: 3px solid #f3f3f3;
  border-top-color: var(--primary-color);
  animation: spinner 0.8s linear infinite;
  z-index: 1;
}

.image-frame.loaded::before {
  display: none;
}

/* Responsive image frame proportions for different sections */
@media (max-width: 767.98px) {
  .hero-image {
    height: 300px;
  }

  .about-image .image-frame,
  .service-detail-image .image-frame,
  .contact-image .image-frame {
    height: 280px;
  }

  .service-icon .image-frame {
    height: 200px;
  }
}

/* Fix specific image containers */
/* Hero Section */
.hero-image-wrapper {
  padding: 0;
  margin: 15px;
  position: relative;
  z-index: 2;
  perspective: 1500px;
}

.hero-image {
  height: 380px;
  border: 5px solid white;
  transform: translateY(0);
  opacity: 1;
}

.hero-section:hover .hero-image {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotateX(0) rotateY(0);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  }
  25% {
    transform: translateY(-10px) rotateX(2deg) rotateY(-2deg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  }
  50% {
    transform: translateY(0) rotateX(0) rotateY(0);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  }
  75% {
    transform: translateY(-7px) rotateX(1deg) rotateY(2deg);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  }
}

/* About section */
.about-image {
  height: 100%;
}

.about-image .image-frame {
  height: 350px;
}

/* Service card */
.service-icon {
  padding: 0;
  height: auto;
  margin-bottom: 20px;
}

.service-icon .image-frame {
  height: 220px;
}

/* Service details */
.service-detail-image .image-frame {
  height: 320px;
}

/* Contact image */
.contact-image .image-frame {
  height: 400px;
}

/* Remove duplicate styles that are now in the common system */
.hero-image::before,
.hero-image::after,
.about-image::before,
.about-image::after,
.service-icon::before,
.service-icon::after,
.service-detail-image::before,
.service-detail-image::after,
.contact-image::before,
.contact-image::after {
  display: none;
}

.hero-image img,
.about-image img,
.service-icon img,
.service-detail-image img,
.contact-image img {
  transition: all 0.7s cubic-bezier(0.33, 1, 0.68, 1);
}

/* Fix service card image frames */
.service-card .image-frame-wrapper {
  margin: 0 0 15px 0;
}

.service-card .service-icon.image-frame {
  margin-bottom: 0;
}

/* Add some breathing room between rows */
.row > [class*="col-"] {
  margin-bottom: 30px;
}

.service-details-section .row > [class*="col-"] {
  margin-bottom: 50px;
}

/* Ensure images are visible while loading */
.image-frame img {
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.7s cubic-bezier(0.33, 1, 0.68, 1);
}

.image-frame.loaded img {
  opacity: 1;
}

/* Improve hover states */
.image-frame-wrapper:hover {
  z-index: 3;
}

/* Add shining button effect */
.btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #2e58ff 0%, #8e24aa 100%);
  border: none;
  color: white;
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0)
  );
  transform: rotate(30deg);
  animation: buttonShine 4s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}

@keyframes buttonShine {
  0% {
    transform: translateX(-100%) rotate(30deg);
  }
  50%,
  100% {
    transform: translateX(100%) rotate(30deg);
  }
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.7);
  color: white;
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
}

/* Hover effect for hero image */
.hero-image.hover-active {
  transform: translateY(0) scale(1.02) translateZ(10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  transition: all 0.5s ease;
}

/* Performance optimizations */
img,
video {
  will-change: transform;
}

/* Reduce animation scope for better performance */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Use hardware acceleration for animations */
.btn,
.image-frame,
.hero-image,
.wave {
  transform: translateZ(0);
  backface-visibility: hidden;
}

.navbar.scrolled .brand-logo {
  transform: scale(0.9);
}

/* Add modern styling to hero section */
.hero-tagline {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 10px;
  display: block;
  font-weight: 500;
  opacity: 1;
  animation: fadeInUp 0.8s ease-out;
}

.hero-section h1 {
  font-size: 3.4rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  animation: fadeInUp 1s ease-out;
  position: relative;
  z-index: 1;
  opacity: 1;
}

.hero-section h1 .highlight {
  position: relative;
  display: inline-block;
  color: #fff;
  font-weight: 900;
  font-style: italic;
  text-shadow: none;
  padding: 0 5px;
  margin: 0 -5px;
  background: linear-gradient(135deg, #4e78ff 0%, #ae44ca 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  z-index: 1;
}

.hero-section h1 .highlight::before {
  display: none;
}

.hero-section h1 .highlight::after {
  display: none;
}

.hero-section .lead {
  font-size: 1.3rem;
  margin-bottom: 30px;
  opacity: 1;
  animation: fadeInUp 1s ease-out 0.3s;
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  font-weight: 400;
  max-width: 95%;
}

@media (max-width: 991.98px) {
  .hero-section h1 {
    font-size: 2.8rem;
  }

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

@media (max-width: 767.98px) {
  .hero-section h1 {
    font-size: 2.2rem;
  }

  .hero-tagline {
    font-size: 0.9rem;
    letter-spacing: 2px;
  }

  .hero-section .lead {
    font-size: 1.1rem;
  }
}

.hero-section .cta-buttons {
  margin-top: 40px;
  opacity: 1;
  animation: fadeInUp 1s ease-out 0.6s;
  position: relative;
  z-index: 1;
}

.hero-section .btn {
  padding: 12px 24px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  opacity: 1;
  z-index: 10;
}

.hero-section .btn i {
  margin-right: 8px;
  font-size: 1.1em;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.hero-section .btn-primary {
  background: linear-gradient(45deg, #2e58ff, #8e24aa);
  border: none;
  box-shadow: 0 4px 15px rgba(46, 88, 255, 0.3);
  color: white;
}

.hero-section .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(46, 88, 255, 0.4);
}

.hero-section .btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: white;
}

.hero-section .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
