/* Features Section Styles - Horizontal & Colorful */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.feature-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

/* Unique Colors for Each Card */
.feature-card:nth-child(1) {
    --card-color: #ef4444;
}

/* Red */
.feature-card:nth-child(2) {
    --card-color: #fbbf24;
}

/* Gold */
.feature-card:nth-child(3) {
    --card-color: #3b82f6;
}

/* Blue */
.feature-card:nth-child(4) {
    --card-color: #22c55e;
}

/* Green */
.feature-card:nth-child(5) {
    --card-color: #a855f7;
}

/* Purple */
.feature-card:nth-child(6) {
    --card-color: #22d3ee;
}

/* Cyan */

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--card-color);
    box-shadow: 0 0 15px var(--card-color);
    transition: height 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(var(--card-color), 0.2);
    border-color: var(--card-color);
}

.feature-card:hover::before {
    height: 100%;
    opacity: 0.05;
}

.icon-box {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    color: var(--card-color);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.feature-card:hover .icon-box {
    background: var(--card-color);
    color: #000;
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 0 30px var(--card-color);
    border-color: transparent;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
    font-weight: 700;
}

.feature-card p {
    color: #cbd5e1;
    line-height: 1.6;
    font-size: 1.0rem;
}

/* Horizontal Scroll on Mobile (Optional, if requested specifically for mobile) */
@media (max-width: 768px) {
    .features-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 2rem;
        /* Space for scrollbar */
        gap: 1rem;
    }

    .feature-card {
        min-width: 280px;
        /* Fixed width for horizontal scroll */
        scroll-snap-align: center;
    }
}