.design-service {
    padding: 130px 8%;
    background: var(--color-surface, #fff);
}

.design-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    flex-wrap: wrap;
}

.design-text {
    flex: 1;
    max-width: 560px;
}

.design-text h2 {
    font-size: 40px;
    font-weight: 500;
    line-height: 1.25;
    margin-bottom: 28px;
}

.design-description {
    font-size: 16px;
    line-height: 1.85;
    color: var(--color-body, #555);
    margin-bottom: 40px;
}

.design-btn {
    position: relative;
    background: var(--color-primary, #216974);
    color: white;
    border: none;
    padding: 17px 42px;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
    transition: box-shadow var(--dur-fast, 0.35s) var(--ease-premium, ease),
                transform var(--dur-fast, 0.35s) var(--ease-premium, ease);
}

.design-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--color-accent, #d0a04f);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur-fast, 0.4s) var(--ease-premium, ease);
    z-index: -1;
}

.design-btn:hover {
    box-shadow: var(--shadow-md, 0 12px 30px rgba(0,0,0,0.2));
    transform: translateY(-2px);
}

.design-btn:hover::before {
    transform: scaleX(1);
}

.devices-wrapper {
    position: relative;
    flex: 1;
    min-height: 400px;
}

.device {
    position: absolute;
    background: #111;
    border-radius: var(--radius-lg, 20px);
    overflow: hidden;
    box-shadow: var(--shadow-lg, 0 25px 60px rgba(0,0,0,0.22));
    transition: transform var(--dur-med, 0.5s) var(--ease-premium, ease);
}

.devices-wrapper:hover .device {
    transform: translateY(-6px);
}

.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;
    }
}
