.case-back {
    position: relative ;
    background-color: rgba(243, 244, 246, 1);
    width: 100%;
    height: 600px;
}

.case-title {
    position: absolute;
    top: 120px;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    /* gap: 20px; */
}

.case-container {
    text-align: center;
}

.case-container .back-title {
    font-size: 40px;
}

.case-title p:first-child {
    font-size: 150px;
    font-weight: 400;
}

.case-title p:last-child {
    font-size: 40px;
    font-weight: 700;
}

.case-title p:nth-child(2) {
    font-size: 24px;
    font-weight: 700;
}

.case-title .urls {
    font-size: 20px;
    font-weight: 400;
    margin-top: 80px;
    color: black;
}

.case-title .urls a {
    text-decoration: none;
    color: black;
}

.case-title .urls > a:first-child {
    text-decoration: none;
    color: rgba(0, 104, 222, 1);
}

/* section1 */
.case-s1 {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    gap: 60px;
    width: 100%;
    height: fit-content;;
    padding: 100px 20px;
}

.case-s1 p:first-child {
    font-size: 48px;
    font-weight: 400;
}

.case-s1-items {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    gap: 20px;
    width: 100%;
}

.case-s1-items > p:first-child {
    font-size: 32px;
    font-weight: 400;
}

.case-s1-items-row {
    display: flex;
    justify-content: start;
    align-items: start;
    gap: 40px;
    width: 100%;
}

.case-s1-items-row-item {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    gap: 20px;
    width: 33%;
}

.case-s1-items-row-item img {       
    width: 100%;
    height: 340px;
    object-fit: cover;
    border-radius: 8px;
    min-width: 100%;
    max-width: 100%;
}

.case-s1-items-row-item p {
    font-size: 20px;
    font-weight: 400;
}

.case-s1-items-row-item>p:last-child {
    font-size: 16px;
    font-weight: 400;
    padding-bottom: 20px;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Large Desktop (1440px and up) */
@media (min-width: 1440px) {
    .case-title p:first-child {
        font-size: 180px;
    }
    
    .case-title p:nth-child(2) {
        font-size: 28px;
    }
    
    .case-s1 p:first-child {
        font-size: 56px;
    }
    
    .case-s1-items > p:first-child {
        font-size: 36px;
    }
}

/* Desktop (1024px to 1439px) */
@media (max-width: 1439px) {
    .case-title p:first-child {
        font-size: 120px;
    }
    
    .case-title p:nth-child(2) {
        font-size: 22px;
    }
    
    .case-s1 p:first-child {
        font-size: 44px;
    }
    
    .case-s1-items > p:first-child {
        font-size: 30px;
    }
}

/* Tablet (768px to 1023px) */
@media (max-width: 1023px) {
    .case-back {
        height: 400px;
    }
    
    .case-title {
        top: 80px;
    }
    
    .case-title p:first-child {
        font-size: 80px;
    }
    
    .case-title p:nth-child(2) {
        font-size: 20px;
    }
    
    .case-title .urls {
        font-size: 18px;
        margin-top: 60px;
    }
    
    .case-s1 {
        padding-block: 60px;
        gap: 40px;
    }
    
    .case-s1 p:first-child {
        font-size: 36px;
    }
    
    .case-s1-items > p:first-child {
        font-size: 26px;
    }
    
    .case-s1-items-row {
        flex-direction: column;
        gap: 30px;
    }
    
    .case-s1-items-row-item {
        width: 100%;
    }
    
    .case-s1-items-row-item img {
        height: 280px !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        object-fit: cover;
    }
    
    .case-s1-items-row-item p {
        font-size: 18px;
    }
    
    .case-s1-items-row-item > p:last-child {
        font-size: 15px;
    }
}

/* Mobile (up to 767px) */
@media (max-width: 767px) {
    .case-back {
        height: 300px;
    }
    
    .case-title {
        top: 60px;
    }
    
    .case-title p:first-child {
        font-size: 60px;
    }
    
    .case-title p:nth-child(2) {
        font-size: 18px;
    }
    
    .case-title .urls {
        font-size: 16px;
        margin-top: 40px;
    }
    
    .case-s1 {
        padding-block: 40px;
        gap: 30px;
    }
    
    .case-s1 p:first-child {
        font-size: 28px;
    }
    
    .case-s1-items > p:first-child {
        font-size: 22px;
    }
    
    .case-s1-items-row {
        gap: 20px;
    }
    
    .case-s1-items-row-item img {
        height: 220px !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        object-fit: cover;
    }
    
    .case-s1-items-row-item p {
        font-size: 16px;
    }
    
    .case-s1-items-row-item > p:last-child {
        font-size: 14px;
        padding-bottom: 15px;
    }
}

/* Small Mobile (up to 480px) */
@media (max-width: 480px) {
    .case-back {
        height: 250px;
    }
    
    .case-title {
        top: 40px;
    }
    
    .case-title p:first-child {
        font-size: 48px;
    }
    
    .case-title p:nth-child(2) {
        font-size: 16px;
    }
    
    .case-title .urls {
        font-size: 14px;
        margin-top: 30px;
    }
    
    .case-s1 {
        padding-block: 30px;
        gap: 25px;
    }
    
    .case-s1 p:first-child {
        font-size: 24px;
    }
    
    .case-s1-items > p:first-child {
        font-size: 20px;
    }
    
    .case-s1-items-row {
        gap: 15px;
    }
    
    .case-s1-items-row-item img {
        height: 180px !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        object-fit: cover;
    }
    
    .case-s1-items-row-item p {
        font-size: 15px;
    }
    
    .case-s1-items-row-item > p:last-child {
        font-size: 13px;
        padding-bottom: 10px;
    }
}

/* Landscape Mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .case-back {
        height: 200px;
    }
    
    .case-title {
        top: 30px;
    }
    
    .case-title p:first-child {
        font-size: 40px;
    }
    
    .case-title p:nth-child(2) {
        font-size: 14px;
    }
    
    .case-title .urls {
        font-size: 12px;
        margin-top: 20px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .case-s1-items-row-item img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .case-back {
        background-color: rgba(17, 24, 39, 1);
    }
    
    .case-title p {
        color: #F9FAFB;
    }
    
    .case-title .urls a {
        color: #D1D5DB;
    }
    
    .case-title .urls > a:first-child {
        color: #60A5FA;
    }
    
    .case-s1-items-row-item p {
        color: #F9FAFB;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .case-s1-items-row-item img {
        transition: none;
    }
}

/* Focus Visible */
@media (prefers-reduced-motion: no-preference) {
    .case-s1-items-row-item:focus-visible {
        outline: 2px solid #3B82F6;
        outline-offset: 2px;
        border-radius: 8px;
    }
}