Dev\Projects\Portfolio\style\stylehome.css
/* ==========================================================================
   기본 설정 및 변수
   ========================================================================== */
:root {
    --primary-blue: rgb(41, 151, 255);
    --text-gray: #585858;
    --light-bg: rgb(249, 249, 251);
    --nav-gray: #999999;
    --header-text: #C9BEBE;
    --border-gray: #d2d2d7;
    --footer-bg: #f5f5f7;
}

body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background-image: url("../img/Home_BG.jpg");
    background-repeat: no-repeat;
    background-size: 100%;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   헤더
   ========================================================================== */
header {
    width: 100%;
    height: 100vh;
    color: white;
    background: url("../img/starMask.png");
    background-size: 100%;
    background-repeat: no-repeat;
}

/* 메인 네비게이션 */
.main-nav {
    position: absolute;
    top: 50%;
    margin: 0 65px;
    color: var(--header-text);
    font-size: 24px;
    letter-spacing: -1px;
}

/* 상단 네비게이션 */
nav {
    
}

.nav-list {
    display: flex;
    justify-content: space-between;
    padding: 25px 65px;
    height: 100%;
}

.nav-list li {
    color: var(--nav-gray);
    font-size: 20px;
    letter-spacing: -1.5px;
}

.nav-list img {
    width: 135px;
}

/* ==========================================================================
   배너 섹션 (공통)
   ========================================================================== */

.banner {
    width: 100%;
    min-height: 100vh;
    background-color: var(--light-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.banner:first-child {
    background: linear-gradient(
        to bottom,
        rgba(3, 7, 16, 1) 0%,
        rgba(3, 7, 16, 0) 50%
    ); 
}

.content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding-top: 55px;
    color: white;
}

.team-story-banner::before {
    content: '';
    position: absolute;
    width: 174vw;
    height: 309vh;
    background-image: url(../img/starBG.png);
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
    right: -10%;
    animation: rotateBG 10s infinite linear;
    opacity: 0.25; /* 배경의 투명도 조정 */
}

/* 배경 회전 애니메이션 */
@keyframes rotateBG {
    0% { 
        transform: rotate(0deg);
    }
    100% { 
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   타이포그래피
   ========================================================================== */
.team-story-banner h2 {
    font-size: 56px;
    line-height: 1.07143;
    font-weight: 600;
    letter-spacing: -.005em;
    margin: 0;
}

.team-story-banner h3 {
    font-size: 24px;
    font-weight: 400;
    letter-spacing: .004em;
}

/* ==========================================================================
   Team Story 스크롤 애니메이션 - 스크롤 고정
   ========================================================================== */

/* 텍스트 아이템 (중복 제거, 전환 통합) */
.text-item {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    color: white;
}

.text-item.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: slideInUp 0.55s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.text-item.active, .text-item strong {
    font-weight: bold;
}

.text-item.fade-out {
    opacity: 0;
    transform: translateY(-50px) scale(0.95);
}

/* 텍스트 요소들 개별 애니메이션 */
.text-item h2 {
    margin: 0 0 20px 0;
    color: white;
    transform: translateY(30px);
    transition: all 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.08s;
}

.text-item h3 {
    margin: 0 0 30px 0;
    transform: translateY(30px);
    transition: all 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.16s;
}

.text-item .links {
    transform: translateY(30px);
    transition: all 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.24s;
}

.text-item.active h2,
.text-item.active h3,
.text-item.active .links {
    transform: translateY(0);
}

/* 텍스트 시퀀스 컨테이너 */
.text-sequence {
    position: relative;
    width: 70%; /* 60% → 70%로 증가 */
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* Progress Bar - 왼쪽 세로 배치 */
.scroll-progress {
    position: absolute;
    left: 50px; /* 왼쪽에 고정 */
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: auto;
}

/* 세로 진행선 */
.progress-line {
    width: 3px; /* 2px → 3px로 약간 굵게 */
    height: 300px; /* 200px → 300px로 길게 */
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 25%; /* 4단계 중 1단계 = 25% */
    background: linear-gradient(to bottom, #00d4ff, #0099cc);
    border-radius: 2px;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(0%);
}

/* 단계별 진행도 */
.progress-fill[data-step="1"] { transform: translateY(0%); }
.progress-fill[data-step="2"] { transform: translateY(100%); }
.progress-fill[data-step="3"] { transform: translateY(200%); }
.progress-fill[data-step="4"] { transform: translateY(300%); }

/* 단계 표시 점들 */
.step-indicators {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 300px; /* 200px → 300px로 맞춤 */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.step-dot {
    width: 14px; /* 12px → 14px로 약간 크게 */
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
}

.step-dot.active {
    background: #00d4ff;
    border-color: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.7);
    transform: scale(1.3); /* 1.2 → 1.3으로 더 크게 */
}

.step-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

/* 단계 카운터 */
.step-counter {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px; /* 16px → 14px로 작게 */
    font-weight: 500;
    text-align: center;
    min-width: 50px;
    margin-top: 15px;
}

.step-counter .current {
    color: #00d4ff;
    font-weight: 600;
    font-size: 16px; /* 18px → 16px로 작게 */
}

/* 반응형 - 프로그래스 바 위치 조정 */
@media (max-width: 1024px) {
    .scroll-progress {
        left: 30px;
    }
    
    .progress-line {
        height: 250px;
    }
    
    .step-indicators {
        height: 250px;
    }
    
    .text-sequence {
        width: 75%;
    }
}

@media (max-width: 768px) {
    .scroll-progress {
        left: 20px;
    }
    
    .progress-line {
        height: 200px;
        width: 2px;
    }
    
    .step-indicators {
        height: 200px;
    }
    
    .step-dot {
        width: 10px;
        height: 10px;
    }
    
    .text-sequence {
        width: 80%;
    }
    
    .team-story-banner .content {
        gap: 30px;
    }
}

/* 부드러운 전환 효과 개선 */
.text-item {
    transition: all 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.text-item.active {
    animation: slideInUp 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
}

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(60px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ==========================================================================
   Recent 섹션
   ========================================================================== */
.recent-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.title {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.title p {
    white-space: nowrap;
    font-family: 'Pretendard-Bold';
    margin: 0 20px 0 0;
}

.tabs {
    color: var(--text-gray);
    display: flex;
    margin-bottom: 14px;
}

.tabs li {
    display: inline-block;
    padding: 0 17px;
    border-left: 1px solid var(--text-gray);
}

.tabs li:first-child {
    border-left: none;
    padding-left: 0;
}

/* ==========================================================================
   슬라이더
   ========================================================================== */

.slider-container {
    width: 100%;
    max-width: 99.45vw;
    height: 37vh;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.slider {
    width: 200%;
    height: 100%;
    display: flex;
    gap: 20px;
}

.slider img {
    width: 35vw;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    flex-shrink: 0;
}

.recent-section .slider {
    animation: smoothSlide 60s infinite linear;
}

.member-item:nth-child(even) .slider {
    animation: smoothSlideL 60s infinite linear;
}

.member-item:nth-child(odd) .slider {
    animation: smoothSlideR 60s infinite linear;
}

@keyframes smoothSlide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-108%); }
}

/* 왼쪽으로 슬라이드 (홀수번 - 1, 3번) */
@keyframes smoothSlideL {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-135%); }
}

/* 오른쪽으로 슬라이드 (짝수번 - 2, 4번) */
@keyframes smoothSlideR {
    0% { transform: translateX(-220%); }
    100% { transform: translateX(-85%); }
}

/* 반응형 */
@media (max-width: 768px) {
    .member-item {
        flex-direction: column;
        gap: 20px;
    }
    
    .profile {
        flex: none;
    }
    
    .slider-container {
        height: 200px;
    }
    
    .slider img {
        width: calc(50% - 7.5px);
    }
}

/* ==========================================================================
   그리드 레이아웃 (기존 gContainer 유지)
   ========================================================================== */
.gContainer {
    margin: 0 12px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(auto-fill, minmax(50%, auto));
    column-gap: 12px;
}

.gContainer .banner {
    height: 580px;
}

.gContainer .content h2 {
    font-size: 40px;
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: 0;
}

.gContainer .content h3 {
    font-size: 21px;
    line-height: 1.2381;
    font-weight: 400;
    letter-spacing: .016em;
    margin-top: 4px;
}

.gContainer .links {
    font-size: 17px;
    letter-spacing: .022em;
    margin-top: 0.65em;
    height: 32px;
}

/* ==========================================================================
   Members 섹션
   ========================================================================== */
.members-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    gap: 150px;
    width: 100%;
}

.members-section::before {
    content: '';
    position: absolute;
    width: 145vw;
    height: 257.5vh;
    background-size: cover;
    background-position: center;
    left: 5%;
    top: 10%;
    background-image: url(../img/starBG.png);
    animation: rotateBG 10s infinite linear;
    z-index: -10;
    opacity: 0.25; /* 배경의 투명도 조정 */
}

/* 배경 회전 애니메이션 */
@keyframes rotateBG {
    0% { 
        transform: rotate(0deg);
    }
    100% { 
        transform: rotate(360deg);
    }
}

.member-item {
    display: flex;
    gap: 30px;
    align-items: center;
    width: 100%;
}

/* 프로필 (원형 스타일로 변경) */
.profile {
    flex: 0 0 200px;
    text-align: center;
    padding: 20px;
}

.odd .profile {
    margin-left: 200px;
}

.even .profile {
    margin-right: 200px;
}

.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #f0f0f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 20px;
}

.profile h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

.profile .role {
    font-size: 17px;
    color: #b9b9b9;
    font-weight: 400;
    margin-bottom: 0;
}

/* ==========================================================================
   푸터
   ========================================================================== */
footer {
    border-top: 1px solid var(--border-gray);
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 40px 25%;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: -.01em;
    line-height: 1.33337;
    min-width: 1024px;
    background-color: var(--footer-bg);
}

footer .logo {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 10px;
}