/* ===== PRODUCTS SECTION ===== */
#products {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.products-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.products-header {
    text-align: center;
    margin-bottom: 60px;
}

/* Modern Products Grid - 3 cards in same row */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Force 3 columns */
    gap: 2rem;
    margin-bottom: 4rem;
}

.product-card {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure equal height */
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(67, 97, 238, 0.15);
    border-color: #4361ee;
}

.product-image {
    height: 200px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.product-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
}

.product-content p {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
}

.product-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    padding: 0.5rem 0;
    transition: var(--transition);
    position: relative;
    align-self: center;
}

.product-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.product-btn:hover {
    gap: 0.8rem;
}

.product-btn:hover::after {
    width: 100%;
}

/* ===== RESPONSIVE PRODUCTS ===== */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .products-section {
        padding: 60px 0;
    }

    .products-grid {
        grid-template-columns: 1fr; /* 1 column on mobile */
        max-width: 400px;
        margin: 0 auto 3rem;
        gap: 1.5rem;
    }

    .product-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .product-card {
        padding: 1.25rem;
    }
}