/* Responsive adjustments for Data Zenix Website updates */

/* Centered testimonial section with text styling */
.testimonials .section-subtitle {
    max-width: 800px;
    margin: 0 auto 30px;
    text-align: center;
}

/* Our Satisfied Customer section styling */
.satisfied-customer {
    padding: 80px 0;
    background-color: #f8fafc;
}

.satisfied-customer .text-center {
    text-align: center;
}

.satisfied-customer-image {
    margin: 40px auto;
    max-width: 900px;
    text-align: center;
}

.satisfied-customer-image img {
    width: 120%; /* Increased by 20% */
    max-width: 120%;
    margin: -10% 0; /* Compensate for the overflow */
    transition: transform 0.5s ease;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Image size increase by 20% */
.about-img img {
    width: 100%; /* Changed from 120% to ensure consistency */
    max-width: 100%;
    height: 250px; /* Fixed height for all images */
    object-fit: cover; /* Ensures the image covers the area properly */
    transition: transform 0.5s ease;
    border-radius: 8px;
}

.about-images {
    display: flex;
    justify-content: center;
    gap: 20px; /* Add consistent spacing between images */
}

.about-img {
    flex: 1;
    min-width: 0; /* Allows the flex items to shrink below their content size */
    max-width: 33.33%; /* Ensures equal width distribution */
}

/* Enhanced testimonials layout with side-by-side cards */
.testimonials-row {
    display: flex;
    flex-wrap: nowrap; /* Changed from wrap to nowrap to keep items in a single line */
    justify-content: space-between;
    gap: 30px;
    margin: 40px auto;
    width: 90%;
    max-width: 1400px;
}

.testimonial-card {
    flex: 1;
    min-width: 400px;
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.testimonial-card .stars {
    color: #FFD700;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

/* Portfolio & Services ZigZag Layout with equal heights */
.zigzag-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    margin-bottom: 60px;
    gap: 30px;
}

.zigzag-layout:nth-child(even) {
    flex-direction: row-reverse;
}

.zigzag-content, 
.zigzag-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.zigzag-content {
    padding: 30px;
    justify-content: center;
}

.zigzag-image {
    overflow: hidden;
    border-radius: 10px;
    min-height: 350px;
}

.zigzag-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Contact page buttons styling */
.contact-cta {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
}

.contact-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
    font-weight: 700;
}

.contact-cta p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    color: rgba(255, 255, 255, 0.9);
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 10px;
}

.whatsapp-btn {
    background-color: #25D366;
    color: white;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.email-btn {
    background-color: var(--secondary-color);
    color: white;
}

.email-btn:hover {
    background-color: var(--secondary-color-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .testimonials-row {
        width: 95%;
    }
    
    .testimonial-card {
        padding: 30px;
        min-width: 350px;
    }
}

@media (max-width: 768px) {
    .zigzag-layout {
        flex-direction: column !important;
    }
    
    .zigzag-content, 
    .zigzag-image {
        width: 100%;
        min-height: 250px;
    }
    
    .testimonials-row {
        flex-direction: column;
        align-items: center;
        flex-wrap: wrap;
        width: 100%;
    }
    
    .testimonial-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin-bottom: 20px;
    }
    
    .about-images {
        flex-direction: column;
        align-items: center;
    }
    
    .about-img {
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    .about-img img {
        width: 100%;
        max-width: 100%;
        height: auto; /* Allow height to adjust on mobile */
        margin: 0;
    }
    
    .satisfied-customer-image img {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }
    
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-btn {
        width: 100%;
        max-width: 300px;
        margin-bottom: 15px;
        justify-content: center;
    }
}
