
/* Feature Section CSS */
.feature-section {
    padding: 20px 0;
    padding-bottom: 30px; /* Add more white space at bottom */
    background: #fff;
    margin-bottom: 0; /* Remove gray space margin */
}

/* Keyframes for Entrance Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Keyframes for Hover Icon Animation */
@keyframes iconBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

.feature-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.feature-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 15px;
    border: 1px solid #eee;
    border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy transition */
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    opacity: 0; /* Initially hidden for animation */
    animation: fadeInUp 0.8s ease-out forwards;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Staggered Animation Delays */
.feature-box:nth-child(1) { animation-delay: 0.1s; }
.feature-box:nth-child(2) { animation-delay: 0.2s; }
.feature-box:nth-child(3) { animation-delay: 0.3s; }
.feature-box:nth-child(4) { animation-delay: 0.4s; }
.feature-box:nth-child(5) { animation-delay: 0.5s; }

.feature-box:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 25px rgba(255, 103, 0, 0.15);
    border-color: #ff6700;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 103, 0, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.feature-box:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 30px;
    color: #ff6700;
    margin-bottom: 15px;
    height: 50px;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff5eb;
    border-radius: 50%;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.feature-box:hover .feature-icon {
    background: #ff6700;
    color: #fff;
    animation: iconBounce 0.6s ease;
    box-shadow: 0 0 15px rgba(255, 103, 0, 0.4);
}

.feature-text {
    position: relative;
    z-index: 1;
}

.feature-text h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #333;
    text-transform: capitalize;
    text-align: center;
    transition: color 0.3s ease;
}

.feature-box:hover .feature-text h4 {
    color: #ff6700;
}

.feature-text p {
    font-size: 13px;
    color: #777;
    margin: 0;
    line-height: 1.4;
    text-align: center;
}
