.workspace-section {
    padding: 80px 0;
    text-align: center;
}

.workspace-section .header-container {
    margin-bottom: 50px;
    padding: 0 20px;
}

.workspace-section .header-container h2 {
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--primary-text);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.workspace-section .header-container h2 span {
    color: var(--accent-color);
}

.workspace-section .header-container p {
    max-width: 600px;
    margin: 0 auto;
    color: #718096;
    line-height: 1.6;
}

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    max-width: 1184px;
    margin: auto;
    align-items: stretch;
    justify-content: center;
}

.workspace-section .controls {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    margin-bottom: 28px;
    gap: 20px;
    width: 24%;
    max-width: 74px;
    background: white;
    z-index: 5;
    position: relative;
    padding-right: 24px;
}

.carousel-wrapper {
    display: flex;
    gap: 24px;
    width: 76%;
    max-width: 76%;
    position: relative;
    will-change: transform;
    padding: 40px 20px;
    overflow-x: hidden;
}

.workspace-card {
    flex: 0 0 calc((100% - 48px) / 3);
    height: 388.5px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.workspace-card::after {
    content: "";
    position: absolute;
    border-radius: 15px;
    display: block;
    width: 100%;
    height: 100%;
    background-color: #A6ACB4;
    z-index: 0;
    top: 0;
    left: 0;
    opacity: 0;
    transform: rotate(0deg);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}

.workspace-card.is-active::after {
    opacity: 1;
    transform: rotate(-4.35deg);
}

.workspace-card img {
    width: 100%;
    height: 388.5px;
    object-fit: cover;
    position: relative;
    z-index: 1;
    border-radius: 15px;
}

.card-overlay {
    position: absolute;
    bottom: 30px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 15px;
    text-align: left;
    z-index: 1;
}

.card-overlay h3 {
    margin: 0;
    color: #2d3748;
    font-size: 1.5rem;
    text-transform: uppercase;
    line-height: 1.3em;
    transition: margin 0.3s ease;
}

.workspace-card.is-active .card-overlay h3 {
    margin-bottom: 10px;
}

.card-overlay p {
    margin: 0;
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.4;
    display: none;
    opacity: 0;
    overflow: hidden;
}

.control-btn {
    background-image: url('https://naura.space/wp-content/uploads/2026/01/angles-left-1.svg');
    background-repeat: no-repeat;
    background-position: center;
    color: var(--accent-color);
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: unset;
}

.control-btn#nextBtn {
    background-image: url('https://naura.space/wp-content/uploads/2026/01/angles-right-1.svg');
}


@media (max-width: 1199px) {
    .workspace-section {
        padding: 100px;
        text-align: center;
    }
    .carousel-container {
        flex-direction: column;
        
    }

    .workspace-section .controls {
        margin-bottom: 28px;
        gap: 20px;
        width: 100%;
        padding-right: 0;
        position: absolute;
        background-color: unset;
        top: 45%;
        transform: translateY(-10%);
        flex-direction: row;
        justify-content: space-between;
        max-width: 100%;
    }
    .carousel-wrapper {
        width: 100%;
        max-width: 100%;
    }
    .workspace-card {
        flex: 0 0 calc((100% - 24px) / 2);
    }
    .control-btn#nextBtn {
        order: 2;
    }
    .control-btn#prevBtn {
        order: 1;
    }
} 

@media (max-width: 767px) {
    .workspace-section {
        padding: 56px;
    }
    .carousel-wrapper {
        gap: 36px;
    }
    .control-btn#prevBtn {
        order: 1;
        margin-left: 12px;
    }
}

@media (max-width: 639px) {
    .workspace-section {
        padding: 36px;
    }
    .control-btn#prevBtn {
        order: 1;
        margin-left: 0;
    }
}

@media (max-width: 600px) {
    .workspace-card {
        flex: 0 0 100%;
    }
    .card-overlay {
        padding: 12px;
    }
}