    html, body { background-color: #000000 !important; }
    
    body {
        margin: 0;
        padding: 0;
        font-family: Archivo, sans-serif;
        font-style: normal;
        overflow-x: hidden;
        cursor: url('data:image/svg+xml,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Ccircle%20cx%3D%228%22%20cy%3D%228%22%20r%3D%228%22%20fill%3D%22red%22%2F%3E%3C%2Fsvg%3E'), auto;
    }


    /* 로딩 화면 스타일 */
    #loading-screen {
        position: fixed;
        width: 100%;
        height: 100%;
        background: #000000;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 9999;
    }

    /* 이미지 회전 애니메이션 */
    #loading-image {
        width: 100px; /* 이미지 크기 조절 */
        height: 100px;
        animation: spin 2s linear infinite;
    }


       /* 회전 애니메이션 */
       @keyframes spin {
        from { transform: rotate(0deg); }
        to { transform: rotate(360deg); }
    }



    .section-1 {
        width: 100%;
        height: auto;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
    }

    .container-1 {
        position: relative;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .container-1 video {
        width: 100%;
        height: auto;
    }

    .section-2 {
        padding: 100px 40px;
    }

    .container-2 {
        display: flex;
        flex-direction: column;
        width: 100%;
        position: relative;
    }

    .script-2 {
        width: 100%;
        display: flex;
        justify-content: space-between;
        z-index: 2;
    }

    .script-2 p:nth-child(1) {
        height: 30%;
        font-size: 4rem;
        font-weight: 580;
        line-height: 1;
        color: #000000;
        z-index: 2;
        margin: 0;
        text-transform: uppercase;
        background: linear-gradient(90deg, #ff892e, #da0000, #000000, #ffc04b);
        background-size: 300%; /* 애니메이션을 부드럽게 하기 위한 배경 크기 */
        -webkit-background-clip: text; /* 텍스트에만 배경을 적용 */
        -webkit-text-fill-color: transparent; /* 텍스트 색상을 투명으로 설정 */
        animation: gradient-animation 5s infinite; /* 애니메이션 적용 */
    }

    .script-2 p:nth-child(2) {
        font-size: 1rem;
        font-weight: 300;
        line-height: 1.3;
        color: #fafaf8;
        padding: 0;
        margin: 0;
    }

    /* 그라데이션 애니메이션 */
    @keyframes gradient-animation {
        0% {
        background-position: 0% 50%; /* 시작 지점 */
        }
        50% {
        background-position: 100% 50%; /* 중간 지점 */
        }
        100% {
        background-position: 0% 50%; /* 끝 지점 */
        }
    }

    #animated-text {
        width: 100%;
    }

    #animated-text p {
        font-size: 2rem;
        line-height: 0.6;
        color: #000000;
    }

    .section-3 {
        padding: 0 30px;
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2단 레이아웃 */
        gap: 20px; /* 열 간격 추가 */
        align-items: start; /* 콘텐츠의 상단 정렬 */
        overflow-x: hidden;
    }

    .section-3 .work {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-bottom: 40px;
    }

    .section-3 .work img {
        width: 100%;
        aspect-ratio: 3 / 2; /* 16:9 비율 유지 */
        object-fit: cover; /* 이미지가 컨테이너에 꽉 차게 유지 */
        opacity: 0;
        transition: opacity 1s ease-out, transform 1s ease-out;
    }


    .section-3 .script {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 100%; /* 2단 내에서 가로 길이 맞춤 */
        margin-top: 10px; /* 불필요한 여백 제거 */
    }


    .section-3 .script p:nth-child(1) {
        font-size: 0.8rem;
        font-weight: 600;
        color: rgb(158, 0, 0);
        line-height: 2.5;
        margin: 0;
    }

    .section-3 .script p:nth-child(2) {
        font-size: 1.3rem;
        font-weight: 400;
        color: #fafaf8;
        line-height: 1;
        margin: 0;
    }

    .section-3 .script p:nth-child(3) {
        font-size: 1rem;
        font-weight: 300;
        color: #fafaf8;
        margin: 5px 0;
    }

    .work img {
        width: 100%;
        opacity: 0;
        transition: opacity 1s ease-out, transform 1s ease-out;
    }

    .work img.fade-in {
        opacity: 1;
    }

    .left-to-right {
        transform: translateX(-50px);
    }

    .left-to-right.fade-in {
        transform: translateX(0);
    }

    .right-to-left {
        transform: translateX(50px);
    }

    .right-to-left.fade-in {
        transform: translateX(0);
    }

    .sub-script {
        margin: 50px 0 50px 0;
    }

    .sub-script a {
        text-decoration: none;
        color: #000000;
    }


    .button-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 50px;
    }

    .custom-button {
        background-color:  rgb(255, 0, 0); 
        color: white;
        font-size: 1rem;
        font-weight: 500;
        padding: 15px 30px;
        text-transform: uppercase;
        cursor: pointer;
        transition: all 0.5s ease;
        border: none;
    }

    .custom-button a {
        text-decoration: none;
        color: #ffffff;
    }

    .custom-button:hover {
        background-color: rgb(179, 0, 0); 
        color: rgb(255, 255, 255); /* 호버 시 텍스트 색상 */
        transform: scale(1.01); /* 약간 확대 */
    }

    .custom-button:active {
        transform: scale(1); /* 클릭 시 원래 크기로 복귀 */
    }



@media (max-width: 1024px) {
    .section-2 {
        padding: 20px 0;
    }

     #typing-text br {
        display: none;
    }
    

    .script-2 {
        display: block;
    }

    .script-2 p:nth-child(1) {
        height: auto;
        font-size: 14vw !important;
        line-height: 1.1;
        font-weight: 800;
        text-transform: none;
        margin: 20px;
    }

    .script-2 p:nth-child(2) {
        height: auto;
        font-size: 0.9rem !important;
        line-height: 1.1;
        font-weight: 400;
        text-transform: none;
        margin: 0 20px;
    }

    .sub-script {
        margin: 50px 0 0 0;
    }

    .section-3 {
        padding: 10px 0;
        display: grid;
        grid-template-columns: repeat(1, 1fr); /* 2단 레이아웃 */
        gap: 20px; /* 열 간격 추가 */
        align-items: start; /* 콘텐츠의 상단 정렬 */
        /* width: 100%; */
        overflow-x: hidden;
    }

    .section-3 .work {
        width: 100%;
        margin-bottom: 0;
    }

    .section-3 .script p:nth-child(1) {
        font-size: 1rem;
        padding: 0 20px;
    }

    .section-3 .script p:nth-child(2) {
        font-size: 1.5rem;
        padding: 0 20px;
    }

    .section-3 .script p:nth-child(3) {
        font-size: 0.9rem;
        padding: 0 20px;
    }

    .work img {
        width: 100%;
    }

    .section-4 {
        margin: 20px;
    }

    .text {
        font-size: 3rem;
        margin: 0;
        padding: 0;
        line-height: 1.5;
    }


    .container-5 {
        width: 95% !important; /* 중요 스타일로 설정 */
    }

    .image-wrapper {
        width: 100%; /* 모바일에서 이미지 래퍼의 너비를 100%로 설정 */
    }
}


