/* Maintenance & Support Page Specific Styles */

/* ====== Why Website Maintenance Matters - Artistic Approach ====== */
.why-maintenance {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 60px 0;
  perspective: 1000px;
}

/* Create a floating effect for each card with light shadow */
.maintenance-reason {
  position: relative;
  padding: 0;
  border: none;
  background: none;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
  opacity: 0;
  transform: translateZ(-20px);
  animation: float 6s ease-in-out infinite;
}

.maintenance-reason.animate {
  opacity: 1;
  transform: translateZ(0);
}

/* Staggered animation for each card */
.maintenance-reason:nth-child(1) { 
  animation-delay: 0s; 
  transition-delay: 0.1s;
}
.maintenance-reason:nth-child(2) { 
  animation-delay: 1s; 
  transition-delay: 0.2s;
}
.maintenance-reason:nth-child(3) { 
  animation-delay: 2s; 
  transition-delay: 0.3s;
}
.maintenance-reason:nth-child(4) { 
  animation-delay: 1.5s; 
  transition-delay: 0.4s;
}
.maintenance-reason:nth-child(5) { 
  animation-delay: 0.5s; 
  transition-delay: 0.5s;
}
.maintenance-reason:nth-child(6) { 
  animation-delay: 2.5s; 
  transition-delay: 0.6s;
}

/* Floating animation */
@keyframes float {
  0% {
    transform: translateY(0px) translateZ(0);
  }
  50% {
    transform: translateY(-10px) translateZ(10px);
  }
  100% {
    transform: translateY(0px) translateZ(0);
  }
}

/* Unique icon styling with clip-path */
.maintenance-reason i {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 20px;
  align-self: center;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transition: all 0.5s ease;
}

.maintenance-reason i:before {
  position: relative;
  z-index: 2;
}

/* Create a unique hexagonal background for icons */
.maintenance-reason i:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ff6b6b, #ff5252);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  z-index: -1;
  transition: transform 0.5s ease;
}

/* Icon rotation on hover */
.maintenance-reason:hover i:after {
  transform: rotate(30deg) scale(1.1);
}

/* Typography and content styling */
.maintenance-reason h4 {
  font-size: 1.4rem;
  margin: 0 0 15px;
  color: #333;
  align-self: center;
  text-align: center;
  position: relative;
}

/* Creative underline effect */
.maintenance-reason h4:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(to right, transparent, #ff6b6b, transparent);
  transition: width 0.4s ease;
}

.maintenance-reason:hover h4:after {
  width: 80%;
}

.maintenance-reason p {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 15px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  transition: all 0.4s ease;
}

/* Text effect on hover */
.maintenance-reason:hover p {
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Background elements */
.why-maintenance:before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 10% 20%, rgba(255, 107, 107, 0.05) 0%, transparent 20%),
    radial-gradient(circle at 90% 50%, rgba(255, 107, 107, 0.05) 0%, transparent 25%),
    radial-gradient(circle at 40% 80%, rgba(255, 107, 107, 0.05) 0%, transparent 20%);
  opacity: 0.8;
  z-index: -1;
}

/* Connector lines between elements */
.why-maintenance:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(90deg, transparent 49%, rgba(255, 107, 107, 0.1) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(255, 107, 107, 0.1) 50%, transparent 51%);
  background-size: 100px 100px;
  opacity: 0.5;
  z-index: -2;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .why-maintenance {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .why-maintenance {
    grid-template-columns: 1fr;
  }
  
  .maintenance-reason {
    animation: none;
  }
  
  .maintenance-reason i {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
  }
}
