::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f8f9fa;
}

::-webkit-scrollbar-thumb {
    background: #e9ecef;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #dee2e6;
}

::selection {
    background-color: rgba(0, 13, 255, 0.15);
    color: inherit;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
}

html {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    background: white;
    color: #0051ff;
    font-weight: 300;
    line-height: 1.4;
    overflow-x: hidden !important;
    max-width: 100vw !important;
    position: relative;
}

.container {
    max-width: 100vw;
    padding: 60px 20px;
    overflow: hidden;
}

.work {
    margin-bottom: 80px;
    max-width: 100%;
}

.work-name {
    margin-left: 20px;
    font-size: 16px;
    font-weight: 300;
    color: #666;
    margin-bottom: 80px;
}

.about-text {
    margin-left: 40px; 
    max-width: 600px;
    padding: 20px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    margin-bottom: 40px;
    word-wrap: break-word;
}

.about-text p {
    margin-bottom: 16px;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.link-text {
    color: #0051ff;
    text-decoration: none;
}

.about-image {
    max-width: 100%;
    width: 300px;
    margin-left: 40px; /* Keep consistent with desktop text */
}

.about-image img {
    max-width: 100%;
    width: 100%;
    height: auto;
    object-fit: cover;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
    cursor: pointer;
}

.home-link {
    text-align: center;
    margin-top: 80px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.home-link a {
    color: #9c9c9c;
    text-decoration: none;
    font-size: 16px;
    font-weight: 300;
    display: inline-block;
    max-width: 100%;
    word-break: break-word;
}

.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.9);
    z-index: 999;
    display: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.fullscreen img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.fullscreen.active {
    display: flex;
}

@media (max-width: 768px) {
    .container {
        padding: 40px 15px;
    }
    
    .work-name {
        margin-left: 15px; 
        font-size: 15px;
        margin-bottom: 60px;
    }
    
    .about-text {
        margin-left: 15px; 
        font-size: 13px; 
        padding: 15px 0;
        max-width: calc(100% - 30px); 
    }
    
    .about-image {
        width: 250px;
        margin-left: 15px;
        max-width: calc(100% - 30px);
    }
    
    .home-link {
        margin-top: 60px;
        padding: 0 15px;
    }
    
    .home-link a {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 30px 10px;
    }
    
    .work-name {
        margin-left: 10px;
        font-size: 14px;
        margin-bottom: 40px;
    }
    
    .about-text {
        margin-left: 10px;
        font-size: 12px;
        max-width: calc(100% - 20px);
    }
    
    .about-image {
        width: 200px;
        margin-left: 10px;
        max-width: calc(100% - 20px);
    }
    
    .home-link {
        margin-top: 40px;
        padding: 0 10px;
    }
    
    .home-link a {
        font-size: 14px;
    }
}