/* ========================================
   Our Services Section with Particles
   ======================================== */

.our-services-section {
    padding: 100px 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

/* Particle Background Container */
#particles-services {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#particles-services canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

/* Ensure content stays above particles */
.our-services-section .container {
    position: relative;
    z-index: 2;
}

.section-description {
    font-size: 1.125rem;
    color: #6c757d;
    max-width: 600px;
    margin: 20px auto 0;
    position: relative;
    z-index: 2;
}

/* Service Box */
.service-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 4px;
    padding: 40px 30px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    border: 2px solid transparent;
    z-index: 2;
}

.service-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(43, 79, 135, 0.15);
    border-color: #5b9bd5;
    background: rgba(255, 255, 255, 1);
}

/* Featured Service */
.service-box.featured {
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    border-color: #5b9bd5;
}

.featured-badge {
    position: absolute;
    top: 20px;
    background: linear-gradient(135deg, #5b9bd5, #5b9bd5);
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    left: 15px;
}

/* Service Icon */
.service-icon-wrapper {
    margin-bottom: 25px;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #5b9bd5, #5b9bd5);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.service-box:hover .service-icon {
    /* transform: rotateY(360deg); REMOVED */
    transform: translateY(-5px) scale(1.05);
}

/* Service Icon Float Animation - Random Starting Points */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.service-card .service-icon,
.offer-icon {
  animation: float 3s ease-in-out infinite;
}

/* Apply different animation delays to service-icon-wrapper within grid columns */
.row > div:nth-child(1) .service-icon-wrapper {
  animation: float 3s ease-in-out infinite;
  animation-delay: 0s;
}

.row > div:nth-child(2) .service-icon-wrapper {
  animation: float 3.2s ease-in-out infinite;
  animation-delay: -0.7s;
}

.row > div:nth-child(3) .service-icon-wrapper {
  animation: float 2.8s ease-in-out infinite;
  animation-delay: -1.4s;
}

.row > div:nth-child(4) .service-icon-wrapper {
  animation: float 3.4s ease-in-out infinite;
  animation-delay: -0.3s;
}

.row > div:nth-child(5) .service-icon-wrapper {
  animation: float 2.9s ease-in-out infinite;
  animation-delay: -2.1s;
}

.row > div:nth-child(6) .service-icon-wrapper {
  animation: float 3.1s ease-in-out infinite;
  animation-delay: -1.0s;
}

/* Apply different animation delays to service-card icons */
.service-card:nth-child(1) .service-icon,
.offer-card:nth-child(1) .offer-icon {
  animation-delay: 0s;
}

.service-card:nth-child(2) .service-icon,
.offer-card:nth-child(2) .offer-icon {
  animation-delay: -0.5s;
}

.service-card:nth-child(3) .service-icon,
.offer-card:nth-child(3) .offer-icon {
  animation-delay: -1.2s;
}

.service-card:nth-child(4) .service-icon,
.offer-card:nth-child(4) .offer-icon {
  animation-delay: -1.8s;
}

.service-card:nth-child(5) .service-icon,
.offer-card:nth-child(5) .offer-icon {
  animation-delay: -2.3s;
}

.service-card:nth-child(6) .service-icon,
.offer-card:nth-child(6) .offer-icon {
  animation-delay: -0.8s;
}

.service-card:nth-child(7) .service-icon,
.offer-card:nth-child(7) .offer-icon {
  animation-delay: -1.5s;
}

.service-card:nth-child(8) .service-icon,
.offer-card:nth-child(8) .offer-icon {
  animation-delay: -2.1s;
}

.service-icon i {
    font-size: 2.5rem;
    color: #ffffff;
}

/* Service Title */
.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #5b9bd5;
    margin-bottom: 15px;
    text-align: center;
}

/* Service Description */
.service-description {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: center;
}

/* Service List */
.service-list {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.service-list li {
    padding: 10px 0;
    color: #5b9bd5;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-list li i {
    color: #5b9bd5;
    font-size: 1.125rem;
    flex-shrink: 0;
}

/* Service Link */
.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #5b9bd5;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.service-link:hover {
    color: #5b9bd5;
    gap: 12px;
}

.service-link i {
    transition: transform 0.3s ease;
}

.service-link:hover i {
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 991px) {
    .our-services-section {
        padding: 80px 0;
    }
    
    .service-box {
        padding: 35px 25px;
    }
}

@media (max-width: 768px) {
    .service-icon {
        width: 70px;
        height: 70px;
    }
    
    .service-icon i {
        font-size: 2rem;
    }
    
    .service-title {
        font-size: 1.25rem;
    }
    
    .service-description {
        text-align: center;
    }
    
    .service-list {
        text-align: left;
    }
}

@media (max-width: 576px) {
    .service-box {
        padding: 30px 20px;
    }
}

