* { margin: 0; padding: 0; box-sizing: border-box; } body { background: #f2f2f2; } @keyframes slide { from { transform: translateX(0); } to { transform: translateX(-100%); } } .logos { overflow: hidden; padding: 60px 0; background: white; white-space: nowrap; position: relative; } .logos:before, .logos:after { position: absolute; top: 0; width: 250px; height: 100%; content: ""; z-index: 2; } .logos:before { left: 0; background: linear-gradient(to left, rgba(255, 255, 255, 0), white); } .logos:after { right: 0; background: linear-gradient(to right, rgba(255, 255, 255, 0), white); } .logos:hover .logos-slide { animation-play-state: paused; } .logos-slide { display: inline-block; animation: 35s slide infinite linear; } .logos-slide img { height: 50px; margin: 0 40px; } body { background: #f2f2f2; display: flex; flex-direction: column; min-height: 100vh; } .featured-projects { display: flex; justify-content: space-between; padding: 20px; background-color: white; margin-bottom: 20px; border-radius: 10px; width: 80%; max-width: 1200px; margin: 20px auto; flex-grow: 1; } .swiper { display: flex; justify-content: space-between; width: 100%; gap: 20px; } .swiper-slide { flex: 1; display: flex; justify-content: center; align-items: center; transition: transform 0.5s ease-in-out; } .swiper-slide img { width: 100%; height: auto; max-width: 250px; height: 300px; object-fit: cover; border-radius: 10px; transition: transform 0.5s, box-shadow 0.5s; } .swiper-slide img:hover { transform: scale(1.05); box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3); } .description-container { width: 35%; padding-left: 20px; display: flex; flex-direction: column; justify-content: center; } .project-description { text-align: left; display: none; } .project-description.active { display: block; } .pagination-container { display: flex; justify-content: center; margin-top: 20px; } .pagination-button { width: 12px; height: 12px; margin: 0 5px; border-radius: 50%; background-color: #888; cursor: pointer; transition: background-color 0.3s; } .pagination-button.active { background-color: #333; } @media (max-width: 768px) { .featured-projects { flex-direction: column; } .swiper { width: 100%; margin-bottom: 20px; } .description-container { width: 100%; } .swiper-slide img { width: 100%; } } footer { background-color: #fff; padding: 20px; text-align: center; margin-top: 20px; }