/* 히어로 섹션 */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.5);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 90%;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 10vw;
    font-weight: bold;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-title-gradient {
    background: linear-gradient(135deg, #06b6d4, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: #e5e7eb;
    margin-bottom: 2rem;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}


.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.chevron-down {
    color: white;
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0% {
        transform: translateY(0);
        opacity: 0;
    }

    75% {
        transform: translateY(10px);
        opacity: 1;
    }

    100% {
        transform: translateY(10px);
        opacity: 0;
    }
}

/* 슬라이딩 텍스트 애니메이션 */
.cd-headline.clip {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
}

.cd-words-wrapper {
    display: inline-block;
    position: relative;
    white-space: nowrap;
    transition: width 0.3s;
}

.cd-words-wrapper::after {
    background-color: #b9b9b9;
    content: '';
    height: 80%;
    position: absolute;
    right: 0;
    top: 10%;
    width: 2px;
}

.cd-words-wrapper span {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    white-space: nowrap;
}

.cd-words-wrapper .is-visible {
    opacity: 1;
    position: relative;
}

.cd-words-wrapper .is-hidden {
    opacity: 0;
}



/* 서비스 섹션 */
.services-section {
    padding: 5rem 0;
    background: #f8fafc;
}




/* 포트폴리오 섹션 */
.portfolio-section {
    padding: 5rem 0;
    background: white;
}


/* 포트폴리오 상세 페이지 스타일 */
.portfolio-detail-section {
    padding: 4rem 0;
    background: #f8fafc;
}






/* 섹션 가시성 애니메이션 */
#services,
#portfolio,
#contact {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
    visibility: visible;
}

.scroll-up #services,
.scroll-up #portfolio,
.scroll-up #contact {
    transform: translateY(0px);
}

.section-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}



/* 반응형 */
@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
}