/* Improved Product & Project Cards */

.section-heading {
    position: relative;
    margin-bottom: 3.5rem;
    padding-bottom: 1.5rem;
}

.section-heading h2 {
    font-size: 2.5rem;
    margin-bottom: 0.7rem;
    text-transform: capitalize;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 80px;
    height: 3px;
    transform: translateX(-50%);
    background-color: var(--primary-color);
}

.section-subheading {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Product Cards */
.product-card {
    margin-bottom: 2rem;
    background-color: var(--white);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.product-image {
    overflow: hidden;
    position: relative;
    height: 250px;
}

.product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.product-card:hover .product-image::before {
    opacity: 1;
}

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

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

.product-info {
    padding: 1.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    background-color: var(--white);
}

.product-title {
    font-size: 1.3rem;
    margin-bottom: 0.7rem;
    font-weight: 600;
}

.product-title a {
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: var(--primary-color);
}

.product-category {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.btn-link {
    color: var(--primary-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    margin-top: auto;
    transition: all 0.3s ease;
}

.btn-link .icon-small {
    width: 18px;
    height: 18px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.btn-link:hover {
    color: var(--primary-dark);
}

.btn-link:hover .icon-small {
    transform: translateX(5px);
}

/* Project Cards */
.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: white;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.4) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-image::after {
    opacity: 1;
}

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

.project-card:hover .project-image img {
    transform: scale(1.08);
}

.project-info {
    padding: 1.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.project-title a {
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

.project-title a:hover {
    color: var(--primary-color);
}

.project-client {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-color);
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 0;
}

.cta-container {
    position: relative;
    z-index: 1;
    padding: 2rem;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.cta-buttons .btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cta-buttons .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Testimonials */
.testimonials-section {
    padding: 6rem 0;
    background-color: var(--background-light);
}

.testimonial-item {
    background-color: white;
    border-radius: 10px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin: 0 auto;
    max-width: 900px;
    text-align: center;
}

.testimonial-text {
    position: relative;
    padding-bottom: 2rem;
}

.quote-icon {
    color: var(--primary-light);
    width: 40px;
    height: 40px;
    margin-bottom: 1.5rem;
}

.testimonial-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-color);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
    border: 3px solid var(--primary-light);
}

.author-info h5 {
    margin-bottom: 0.2rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.author-info p {
    margin-bottom: 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .product-image,
    .project-image {
        height: 200px;
    }
    
    .section-heading h2 {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .cta-text {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .testimonial-item {
        padding: 1.5rem;
    }
}