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

.hosting-features-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23ffffff" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  pointer-events: none;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #007bff, #0056b3);
  border-radius: 2px;
}

.section-description {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* Feature Cards */
.feature-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #007bff, #0056b3);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: #007bff;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

/* Feature Icons */
.feature-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 1rem auto;
  background: #007bff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
}

.feature-icon::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: linear-gradient(135deg, #007bff, #0056b3);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.feature-card:hover .feature-icon::before {
  opacity: 0.2;
}

.feature-icon i {
  font-size: 1.25rem;
  color: #ffffff;
  transition: transform 0.3s ease;
}

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

.feature-card:hover .feature-icon i {
  transform: rotate(5deg);
}

/* Feature Content */
.feature-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.feature-card:hover .feature-title {
  color: #007bff;
}

.feature-description {
  font-size: 0.85rem;
  line-height: 1.4;
  color: #6c757d;
  margin-bottom: 0;
}

/* Additional spacing */
.row.g-4 {
  margin-bottom: 2rem;
}

.feature-card {
  margin-bottom: 0;
  padding: 1rem;
  min-height: 250px;
  width: 100%;
}

.col-lg-4, .col-md-6 {
  padding: 0.75rem;
  margin-bottom: 1.5rem;
}

/* Ensure both rows are visible */
.hosting-features-section .container {
  min-height: auto;
  overflow: visible;
}

.hosting-features-section {
  min-height: 600px;
  overflow: visible;
}

/* Ensure 3 cards per row on desktop */
@media (min-width: 992px) {
  .col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    width: 33.333333%;
  }
  
  .hosting-features-section .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  
  .hosting-features-section .row .col-lg-4 {
    margin-bottom: 2rem;
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  .section-title {
    font-size: 2.2rem;
  }
  
  .feature-icon {
    width: 70px;
    height: 70px;
  }
  
  .feature-icon i {
    font-size: 1.8rem;
  }
  
  .feature-title {
    font-size: 1.2rem;
  }
  
  .row.g-4 {
    gap: 1.5rem !important;
  }
  
  .col-lg-4, .col-md-6 {
    padding: 0.75rem;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 768px) {
  .hosting-features-section {
    padding: 3rem 0;
  }
  
  .section-title {
    font-size: 2rem;
    margin-bottom: 0.8rem;
  }
  
  .section-description {
    font-size: 1rem;
  }
  
  .feature-card {
    padding: 2rem 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
  }
  
  .feature-icon i {
    font-size: 1.6rem;
  }
  
  .feature-title {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
  }
  
  .feature-description {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .hosting-features-section {
    padding: 2.5rem 0;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .section-title::after {
    width: 40px;
    height: 2px;
  }
  
  .feature-card {
    padding: 1.5rem 1rem;
    border-radius: 12px;
  }
  
  .feature-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
  }
  
  .feature-icon i {
    font-size: 1.4rem;
  }
  
  .feature-title {
    font-size: 1rem;
    margin-bottom: 0.6rem;
  }
  
  .feature-description {
    font-size: 0.85rem;
    line-height: 1.5;
  }
  
  /* Stack cards in single column on mobile */
  .row.g-4, .row.g-5 {
    gap: 2rem !important;
  }
  
  .feature-card {
    margin-bottom: 2rem;
  }
  
  .col-lg-4, .col-md-6 {
    padding: 0.5rem;
    margin-bottom: 1rem;
  }
}

/* Animation for cards on scroll */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-card {
  animation: fadeInUp 0.6s ease forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

/* Loading state */
.feature-card {
  opacity: 1;
}

.feature-card.loaded {
  opacity: 1;
}