.design-service {
    padding: 100px 8%;
    /* background: #216974; */
    background: #fff;
    margin-top: -30px;
    margin-bottom: -30px;
}

.design-container {
    margin-top: -50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: wrap;
}

.design-text {
    flex: 1;
    max-width: 600px;
}

.design-text h2 {
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 25px;
}

.design-description {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 35px;
}

.design-btn {
    background: #216974;
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
}

.design-btn:hover {
    background: #d0a04f;
}

.devices-wrapper {
    position: relative;
    flex: 1;
    min-height: 400px;
}

.device {
    position: absolute;
    background: #111;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.device .screen {
    /* width: 100%;
    height: 100%; */
    top: 8px;
    bottom: 8px;
    left: 8px;
    right: 8px;
    position: absolute;
    overflow: hidden;
    background: #000;
}

.device img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.phone img{
    object-position: center 3%;
}

.laptop img{
    object-position: 0% 10%;
}

.tablet img{
    object-position: 2% 10%;
}

.laptop {
    margin-top: 50px;
    width: 500px;
    height: 330px;
    top: 0;
    right: 0;
}

.tablet {
    width: 220px;
    height: 280px;
    bottom: 0;
    left: 60px;
    z-index: 2;
}

.phone {
    width: 120px;
    height: 220px;
    bottom: 20px;
    right: 40px;
    
}

@media (max-width: 768px) {

    .design-service {
        padding: 60px 6%;
    }

    .design-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .design-text {
        max-width: 100%;
    }

    .design-text h2 {
        font-size: 28px;
    }

    .design-description {
        font-size: 14px;
    }

    .design-btn {
        padding: 14px 28px;
        font-size: 13px;
    }

    .devices-wrapper {
        position: relative;
        width: 100%;
        height: auto;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 15px;
        min-height: 0px;
    }

    .device {
        position: relative;
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    }

    .laptop {
        display: none;
    }

    .tablet {
        display: none;
    }

    .phone {
        display: none;
    }
}
