.references {
    padding: 5rem 0;
    background-color: #ffffff;
}

.title-container {
    text-align: center;
    margin-bottom: 4rem;
}

.references h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.title-underline {
    width: 80px;
    height: 3px;
    background-color: #ac2668;
    margin: 0 auto 1.5rem;
}

.references-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.references-showcase {
    position: relative;
    max-width: 1200px;
    margin: 0 auto 3rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.showcase-nav {
    background: none;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #ac2668;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.showcase-nav:hover {
    background-color: #8e1f55;
    transform: scale(1.1);
}

.showcase-content {
    flex: 1;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.showcase-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

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

.showcase-info {
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.showcase-info h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 2rem;
}

.info-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    color: #555;
}

.info-item i {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ac2668;
    color: white;
    border-radius: 50%;
    font-size: 0.9rem;
}

.references-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.reference-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.reference-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.reference-item:hover img {
    transform: scale(1.1);
}

.reference-item.active {
    box-shadow: 0 0 0 3px #ac2668;
}

@media (max-width: 1200px) {
    .references-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 991px) {
    .showcase-content {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .showcase-image {
        height: 300px;
    }

    .showcase-info {
        padding: 2rem;
    }

    .references-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .references h2 {
        font-size: 2rem;
    }

    .references-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .showcase-info h3 {
        font-size: 1.5rem;
    }

    .info-item {
        font-size: 1rem;
    }

    .references-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .showcase-nav {
        width: 36px;
        height: 36px;
    }

    .showcase-image {
        height: 250px;
    }

    .references-grid {
        gap: 0.5rem;
    }
}
