/* General Reset & Typography */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
}

/* Header & Navigation */
header {
    background-color: #333;
    color: #fff;
    padding: 10px 0;
    border-bottom: 4px solid #444;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

nav a {
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-block;
    position: relative;
}

nav a:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.logo {
    height: 40px;
    margin-right: 20px;
}

/* Main Content */
main {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Testimonials Section */
.testimonials {
    text-align: center;
    padding: 40px 20px;
}

.testimonials h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #333;
}

/* Testimonial Grid */
.testimonial-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .testimonial-container {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Testimonial Cards */
.testimonial-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    flex: 1;
    max-width: 350px;

    /* Animation initial state */
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
}

/* Fade-in Animation */
.testimonial-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Images */
.testimonial-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 15px;
    object-fit: cover;
    border: 2px solid #ccc;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .testimonial-card {
        max-width: 100%;
    }
}
