/* Service Boxes Enhancement */
.row.equal-height {
  display: flex;
  flex-wrap: wrap;
}

.row.equal-height > [class*='col-'] {
  display: flex;
  flex-direction: column;
}

.feature-box {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-bottom: 1.5rem;
  text-align: center;
  align-items: center;
}

.feature-box h3 {
  flex-shrink: 0;
  text-align: center;
  width: 100%;
  margin-bottom: 1rem;
}

.feature-box .feature-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.8rem;
}

.feature-box .feature-icon img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.feature-box p {
  flex-grow: 1;  /* Make paragraphs expand to fill space */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 0 0.5rem;
}

.feature-box .quote-request-btn {
  margin-top: auto;  /* Push button to the bottom */
  margin-left: auto;
  margin-right: auto;
  display: block;
  width: fit-content;
}

/* CTA Section Enhancement */
.cta-gradient-section {
  background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary-color) 100%);
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
  margin: 0 0;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
  border-top: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-gradient-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.15;
  animation: pulse 6s infinite alternate;
}

.cta-content {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: translateY(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.cta-content:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Sheen effect */
.cta-content::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  transition: transform 0.7s;
  opacity: 0;
  z-index: 1;
}

.cta-content:hover::before {
  opacity: 1;
  transform: rotate(30deg) translate(70%, 70%);
  animation: sheen 1.5s forwards;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 5px rgba(0,0,0,0.2);
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
  position: relative;
  display: inline-block;
  border-bottom: 3px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 10px;
}

.cta-title i {
  background: var(--secondary-light);
  color: white;
  padding: 10px;
  border-radius: 50%;
  margin-right: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transform: scale(1);
  transition: transform 0.3s ease;
}

.cta-content:hover .cta-title i {
  transform: scale(1.2) rotate(15deg);
}

.cta-text {
  color: rgba(255,255,255,0.9);
  font-size: 1.25rem;
  margin-bottom: 2rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.btn-cta {
  background: white;
  color: var(--secondary-dark);
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  border: 3px solid rgba(255,255,255,0.2);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  z-index: 1;
  font-size: 1.1rem;
  display: inline-block;
  transform: perspective(1px) translateZ(0);
}

.btn-cta:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 20px rgba(0,0,0,0.2);
  color: var(--secondary-dark);
}

.btn-cta::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, var(--secondary-light), white, var(--secondary-light));
  background-size: 200% 200%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.3s ease-out;
}

.btn-cta:hover::before {
  transform: scaleX(1);
  animation: gradientShift 1.5s infinite;
}

.btn-cta i.fa-arrow-right {
  transition: transform 0.3s ease;
  position: relative;
  top: 1px;
}

.btn-cta:hover i.fa-arrow-right {
  transform: translateX(5px);
}

/* Floating Shapes */
.floating-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.shape {
  position: absolute;
  background-color: rgba(255,255,255,0.1);
  border-radius: 50%;
  animation: float 15s infinite linear;
}

/* CTA Icon Boxes */
.icon-box {
  padding: 15px;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  height: 100%;
  backdrop-filter: blur(2px);
}

.icon-box:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.icon-box i {
  background: rgba(255, 255, 255, 0.15);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.icon-box:hover i {
  transform: rotate(10deg) scale(1.1);
}

.icon-text {
  color: white;
  font-weight: 500;
  margin-bottom: 0;
  margin-top: 8px;
}

.shape:nth-child(1) {
  width: 120px;
  height: 120px;
  top: -60px;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 35s;
}

.shape:nth-child(2) {
  width: 80px;
  height: 80px;
  top: 20%;
  right: 5%;
  animation-delay: 2s;
  animation-duration: 25s;
}

.shape:nth-child(3) {
  width: 60px;
  height: 60px;
  bottom: 15%;
  left: 15%;
  animation-delay: 1s;
  animation-duration: 20s;
}

.shape:nth-child(4) {
  width: 100px;
  height: 100px;
  bottom: -50px;
  right: 20%;
  animation-delay: 3s;
  animation-duration: 30s;
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translateY(-60px) rotate(180deg) scale(1.2);
    opacity: 0.7;
  }
  100% {
    transform: translateY(0) rotate(360deg) scale(1);
    opacity: 0.5;
  }
}

@keyframes pulse {
  0% {
    opacity: 0.1;
  }
  100% {
    opacity: 0.25;
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@media (max-width: 768px) {
  .cta-title {
    font-size: 2rem;
  }
  
  .cta-text {
    font-size: 1.1rem;
  }
    .btn-cta {
    padding: 0.7rem 1.8rem;
    font-size: 1rem;
  }
    /* Service boxes responsive behavior */
  .feature-box {
    margin-bottom: 2rem;
    padding: 2rem 1rem;
  }
  
  .feature-box .feature-icon {
    margin-bottom: 1.2rem;
  }
  
  .feature-box h3 {
    margin-bottom: 0.8rem;
  }
  
  .feature-box p {
    min-height: auto;
    margin-bottom: 1.2rem;
  }
}

/* Sheen animation */
@keyframes sheen {
  0% {
    opacity: 0;
    transform: rotate(30deg) translate(-30%, -30%);
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: rotate(30deg) translate(70%, 70%);
  }
}
