/* Responsive Design */
/* Active state for sidebar items */
.services-list ul li.active a {
    color: white;
    background: #C94050;
    /* font-weight: 600; */
}

.services-list ul li.active a span {
    transform: translateX(5px);
    transition: transform 0.3s ease;
}

.services-list ul li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}


.services-list ul li a:hover span {
    transform: translateX(5px);
}

.services-list ul li a span {
    transition: transform 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .product-content {
        padding: 20px;
    }

    .product-title {
        font-size: 1.1rem;
    }

    .product-excerpt {
        font-size: 14px;
    }
}

/* Animation for filter changes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Project card styles */
.product-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(-50px);
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Staggered animation for cards */
.product-card {
    animation-delay: calc(var(--index) * 0.1s);
}

/* Product image container */
.product-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

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

/* Hover effect for product image */
.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* Product content */
.product-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Product title */
.product-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

/* Product category */
.product-category {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* View details button */
.view-details {
    display: inline-block;
    padding: 8px 20px;
    background-color: #C94050;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
    text-align: center;
}

.view-details:hover {
    background-color: #b13645;
    color: white;
    text-decoration: none;
}

/* Filter animation states */
.product-card.hidden {
    opacity: 0;
    transform: none;
    height: 0;
    margin: 0;
    padding: 0;
    border: none;
    pointer-events: none;
    transition: all 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}


/* Center the project container and adjust spacing */
#projects-container {
    /* display: flex;
    flex-wrap: wrap; */
    justify-content: center; /* Center the cards horizontally */
    /* gap: 13px; Space between cards */
    /* margin: 0 auto; Center the container */
    /* max-width: 1200px; /* Optional: Set a max width for better readability */
    /* padding: 0 15px; Add some padding on the sides */ 
}

/* Update the product card styles */
.product-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

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

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

.product-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.3;
}

.product-separator {
    width: 50px;
    height: 3px;
    background-color: #091d3e;
    margin: 10px 0 15px;
}

.product-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
}

.product-link {
    display: inline-flex;
    align-items: center;
    color: #091d3e;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-link svg {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.product-link:hover {
    color: #091d3e;
    text-decoration: none;
}

.product-link:hover svg {
    transform: translateX(3px);
}

/* Ensure proper spacing on mobile */
@media (max-width: 576px) {
    #projects-container {
        padding: 0 10px;
        gap: 20px;
    }
    
    .product-card {
        max-width: 100%;
        height: auto;
        margin-bottom: 20px;
    }
}

/* Adjust the grid layout for different screen sizes */
.row-cols-1 > * {
    flex: 0 0 100%;
    max-width: 100%;
}

@media (min-width: 576px) {
    .row-cols-sm-2 > * {
        flex: 0 0 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }
}

@media (min-width: 992px) {
    .row-cols-lg-3 > * {
        flex: 0 0 calc(33.3333% - 20px);
        max-width: calc(33.3333% - 20px);
    }
}