/* 메인 페이지 스타일 */
/* 다크 테마 기본 설정 */
body {
    background-color: #000;
    color: #fff;
}

/* 히어로 섹션 반응형 동영상 */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background-color: #000;
}

/* 동영상 컨테이너 */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

/* 기본 동영상 스타일 */
.hero-video video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* 디바이스별 동영상 표시 설정 */
.desktop-video {
    display: block;
}

.tablet-video,
.mobile-video {
    display: none;
}

.hero-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    position: relative;
    z-index: 2;
}

.hero-text {
    max-width: 550px;
    padding-right: 20px;
    color: #fff;
}

/* 태블릿용 동영상 설정 */
@media (max-width: 991px) {
    .desktop-video {
        display: none;
    }

    .tablet-video {
        display: block;
    }

    .mobile-video {
        display: none;
    }

    .hero-video::before {
        width: 100%;
        background: rgba(0, 0, 0, 0.7);
    }

    .hero-text {
        text-align: center;
        max-width: 650px;
        margin: 0 auto;
        padding-right: 0;
    }
}

/* 모바일용 동영상 설정 */
@media (max-width: 767px) {
    .desktop-video,
    .tablet-video {
        display: none;
    }

    .mobile-video {
        display: block;
    }

    .hero-section {
        min-height: 500px;
    }
}

/* 세로 방향 모바일 디바이스 */
@media (max-width: 767px) and (orientation: portrait) {
    .hero-section {
        min-height: 500px;
    }

    /* 세로 모드에서는 동영상 크기 조정 */
    .hero-video video {
        height: 100%;
        width: auto;
        min-width: 100%;
    }
}

/* 가로 방향 모바일 디바이스 */
@media (max-width: 991px) and (orientation: landscape) {
    .hero-section {
        min-height: 450px;
    }

    /* 가로 모드에서는 너비를 우선적으로 맞춤 */
    .hero-video video {
        width: 100%;
        height: auto;
        min-height: 100%;
    }
}

/* 작은 화면에서 텍스트 크기 조정 */
@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        font-size: 1rem;
    }
}

/* 매우 큰 화면에서의 동영상 크기 조정 */
@media (min-width: 1921px) {
    .hero-video video {
        width: 100%;
        height: auto;
        min-height: 100%;
    }
}

/* 포트폴리오 섹션 - 무한 자동 슬라이더 */
.portfolio-section {
    padding: var(--spacing-3xl) 0;
    background-color: #000;
    border-top: 1px solid #333;
    color: #fff;
    overflow: hidden;
}

.section-title {
    color: #fff;
    text-align: center;
}

.section-title-desc {
    color: #fff;
    margin-bottom: 100px;
    text-align: center;
}

/* 슬라이더 래퍼 */
.portfolio-slider-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 10px 0;
}

/* 슬라이더 메인 */
.portfolio-slider {
    display: flex;
    width: max-content; /* 컨텐츠 길이만큼 너비 확장 */
    will-change: transform; /* 성능 최적화 */
    transition: transform 0.5s ease-out;
}

/* 애니메이션 적용 시 사용할 클래스 */
.portfolio-slider.animate {
    animation: slideAnimation 40s linear infinite;
}

.portfolio-slider.animate:hover {
    animation-play-state: paused; /* 호버 시 일시 정지 */
}

/* 슬라이드 */
.portfolio-slide {
    flex: 0 0 auto;
    width: 300px; /* 기본 너비 설정 */
    padding: 0 15px;
    box-sizing: border-box;
}

/* 포트폴리오 아이템 */
.portfolio-item {
    background-color: #111;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
    transition: all var(--transition-normal);
    overflow: hidden;
    border-radius: 8px;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.15);
}

.portfolio-image {
    height: 0;
    padding-bottom: 75%; /* 4:3 비율 */
    overflow: hidden;
    position: relative;
}

.portfolio-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-xs);
    color: #fff;
}

.portfolio-desc {
    height: 130px;
    overflow: hidden;
    font-size: var(--font-size-base);
    padding: 0 var(--spacing-md) var(--spacing-md);
    color: #aaa;
}

/* 자동 슬라이딩 애니메이션 */
@keyframes slideAnimation {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* 절반만큼 이동(복제된 슬라이드까지) */
    }
}

/* 프로세스 섹션 */
.process-section {
    padding: var(--spacing-3xl) 0;
    background-color: #000;
    border-top: 1px solid #333;
    color: #fff;
}

.process-steps {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    padding-top: 30px;
}

.process-step {
    flex: 1 0 100%;
    padding: 25px 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

.process-step:hover {
    transform: translateY(-10px);
}

/* 이미지 컨테이너 스타일 */
.step-image-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 25px;
}

/* 숫자 스타일 */
.step-number {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 56px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.1);
    z-index: 1;
    line-height: 1;
}

/* 이미지 스타일 */
.step-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    /* 이미지가 어두운 배경에서 잘 보이도록 필터 추가 */
    filter: brightness(1.2);
}

.process-icon {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.step-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-sm);
    position: relative;
    z-index: 3;
    color: #fff;
}

.step-desc {
    font-size: var(--font-size-base);
    color: #aaa;
    line-height: 1.6;
}

/* 콘택트 섹션 */
.contact-section {
    padding: var(--spacing-3xl) 0;
    background-color: #000;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    color: #fff;
}

/* Connect 스타일 */
.connect-heading {
    padding-right: var(--spacing-lg);
}

.connect-title {
    font-size: 3.5rem;
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin-bottom: var(--spacing-xl);
    color: #fff;
}

.connect-form-container {
    padding-left: var(--spacing-lg);
}

.connect-form-heading {
    margin-bottom: var(--spacing-xl);
}

.connect-form-text {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-sm);
    line-height: 1.5;
    color: #ddd;
}

.connect-form-text-kr {
    font-size: var(--font-size-md);
    margin-bottom: var(--spacing-lg);
    line-height: 1.5;
    color: #ddd;
}

.connect-form .form-group {
    margin-bottom: var(--spacing-md);
}

.connect-form input,
.connect-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #333;
    background-color: #111;
    color: #fff;
    font-size: var(--font-size-base);
    transition: all var(--transition-normal);
}

.connect-form input::placeholder,
.connect-form textarea::placeholder {
    color: #777;
}

.connect-form input:focus,
.connect-form textarea:focus {
    outline: none;
    border-color: #20c997;
    box-shadow: none;
}

.connect-form textarea {
    resize: vertical;
    min-height: 150px;
}

.btn-black {
    background-color: #20c997;
    color: #000;
    padding: 15px 40px;
    border: none;
    font-size: var(--font-size-base);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-black:hover {
    background-color: #16a085;
}

/* 버튼 스타일 일반 */
.btn {
    background-color: #ffffff;
    color: #000;
    border: none;
}

.btn:hover {
    background-color: #000000;
    color: #ffffff;
}

.btn-outline {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.btn-outline:hover {
    background-color: #fff;
    color: #000;
}

/* 파트너 섹션 */
.partner-section {
    padding: var(--spacing-3xl) 0;
    background-color: #000;
    overflow: hidden;
    color: #fff;
    border-top: 1px solid #333;
}

.partner-content {
    padding: 40px 40px 40px 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-bottom: 30px;
}

.partner-label {
    font-size: 14px;
    font-weight: 600;
    color: #20c997;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.partner-title {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 30px;
    line-height: 1.3;
}

.partner-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: #ddd;
    margin-bottom: 25px;
    line-height: 1.4;
    position: relative;
}

.partner-desc {
    margin-bottom: 30px;
}

.partner-desc p {
    font-size: 16px;
    line-height: 1.8;
    color: #bbb;
    margin-bottom: 15px;
}

.highlight {
    color: #20c997;
    font-weight: 500;
}

.highlight-strong {
    color: #20c997;
    font-weight: 700;
    border-bottom: 2px solid #20c997;
    padding-bottom: 2px;
}

.partner-divider {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 90px 0;
}

.divider-line {
    display: block;
    width: 30px;
    height: 2px;
    background-color: #333;
}

.partner-quote {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.6;
    color: #ddd;
    border-radius: 0 8px 8px 0;
}

/* 파트너 이미지 영역 */
.partner-image {
    position: relative;
    height: 100%;
    min-height: 400px;
    background-color: #20c997; /* 민트색 배경 더 밝게 */
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 비주얼 섹션 */
.visual-section {
    width: 100%;
    padding: 0;
    margin: 0;
    overflow: hidden;
    background-color: black;
}

.visual-image {
    width: 100%;
    text-align: center;
    padding: 60px 0; /* 상하 여백 추가 */
}

.full-width-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* 반응형 스타일 */
@media (max-width: 991px) {
    .partner-content {
        padding: 30px 20px;
    }

    .partner-title {
        font-size: 28px;
    }

    .partner-subtitle {
        font-size: 16px;
    }

    .partner-image {
        margin-top: 30px;
        min-height: 300px;
    }

    .step-image-container {
        width: 130px;
        height: 130px;
    }

    .step-number {
        font-size: 48px;
    }

    .connect-heading {
        padding-right: 0;
        margin-bottom: var(--spacing-xl);
        text-align: center;
    }

    .connect-form-container {
        padding-left: 0;
    }

    .connect-title {
        font-size: 2.5rem;
    }

    .connect-form-heading {
        text-align: center;
    }
}

/* 미디어 쿼리 - 태블릿 */
@media (min-width: 768px) {
    .portfolio-slide {
        width: 350px;
    }

    .process-step {
        flex: 0 0 50%;
    }
}

/* 미디어 쿼리 - 데스크탑 */
@media (min-width: 992px) {
    .hero-text h1 {
        font-size: var(--font-size-4xl);
    }

    .portfolio-slide {
        width: 400px;
    }

    .process-step {
        flex: 0 0 25%;
    }

    .step-image-container {
        width: 180px;
        height: 180px;
    }

    .step-number {
        font-size: 72px;
    }
}

@media (max-width: 767px) {
    .step-image-container {
        width: 120px;
        height: 120px;
    }

    .step-number {
        font-size: 42px;
    }

    .portfolio-slide {
        width: 280px;
    }
}

/* 애니메이션 효과 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 50px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.hero-text h1,
.hero-text p,
.hero-text .btn {
    animation: fadeInUp 1s ease forwards;
}

.hero-text p {
    animation-delay: 0.2s;
}

.hero-text .btn {
    animation-delay: 0.4s;
    opacity: 0;
}