* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #FFFFFF;
    color: #000000;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100vw;
}

.scroll-container {
    height: 100vh;
    width: 100vw;
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    max-width: 100%;
}

.section {
    width: 100%;
    max-width: 100vw;
    height: 100vh;
    position: relative;
    scroll-snap-align: start;
    overflow-x: hidden;
}

.section-1 {
    background-color: #FFFFFF;
}

.section-2 {
    background-color: #F8F8F8;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 네비게이션 스타일 */
.navigation {
    position: fixed;
    top: 79px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    background: #D9D9D9;
    border-radius: 40px;
    padding: 0;
    width: 474px;
    height: 53px;
    z-index: 200;
    margin-left: 0;
}

.logo {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: auto;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 22px;
    line-height: 1em;
    color: #000000;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
}

/* CSS 변수 초기값 */
.nav-menu {
    --slider-left: 91.5px;
    --slider-width: 50px;
}

/* 슬라이딩 회색캡슐 배경 */
.nav-menu::before {
    content: '';
    position: absolute;
    top: 50%;
    left: var(--slider-left);
    width: var(--slider-width);
    height: 46px;
    background: #808080;
    border-radius: 23px;
    transform: translateY(-50%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 7px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.nav-item:nth-child(1) {
    position: absolute;
    left: 100px;
    width: 33px;
}

.nav-item:nth-child(2) {
    position: absolute;
    left: 202px;
    width: 37px;
}

.nav-item:nth-child(3) {
    position: absolute;
    left: 309px;
    width: 56px;
}

.nav-item:nth-child(4) {
    position: absolute;
    left: 405px;
    width: 37px;
}

.nav-korean {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.21em;
    text-align: center;
    color: #000000;
    transition: all 0.3s ease;
    background: none;
    -webkit-text-fill-color: initial;
}

.nav-item:hover .nav-korean {
    background: linear-gradient(180deg, #0900FF 0%, #690099 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.nav-item.active .nav-korean {
    color: #000000;
    background: none;
    -webkit-text-fill-color: initial;
}

.nav-english {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 12px;
    line-height: 1.21em;
    text-align: center;
    color: #000000;
    margin-top: 4px;
    transition: all 0.3s ease;
}

/* 메인 컨텐츠 스타일 */
.main-content {
    position: absolute;
    left: 271px;
    top: 328px;
}

.main-title {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 96px;
    line-height: 1.21em;
    color: #000000;
    margin-bottom: 0;
}

.subtitle-container {
    margin-top: 16px;
}

.typing-container {
    display: flex;
    align-items: baseline;
}

.typing-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 100px;
    line-height: 1.21em;
    color: #000000;
    margin-right: 8px;
    min-height: 121px;
}

.cursor {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 100px;
    line-height: 1.21em;
    color: #000000;
    animation: blink 1s infinite;
}

.typing-text-gradient {
    font-size: 120px;
    background: linear-gradient(180deg, #B700FF 0%, #1100FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* 새로운 섹션 스타일 */
.section-content {
    text-align: center;
}

.section-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 64px;
    line-height: 1.21em;
    color: #000000;
    margin-bottom: 40px;
}

.section-description {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 1.5em;
    color: #666666;
}

/* 선물박스 애니메이션 */
.gift-container {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gift-box {
    position: relative;
    width: 120px;
    height: 120px;
    cursor: pointer;
    transform: translateY(100px);
    animation: slideUp 2s ease-out forwards;
    transition: all 0.5s ease;
    perspective: 200px;
    transform-style: preserve-3d;
}

.gift-box:hover {
    transform: translateY(0px) scale(1.05);
}

.gift-box-body {
    width: 120px;
    height: 80px;
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    border-radius: 8px;
    position: absolute;
    bottom: 0;
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
}

.gift-box-lid {
    width: 130px;
    height: 50px;
    background: linear-gradient(135deg, #4ECDC4, #44A08D);
    border-radius: 8px 8px 4px 4px;
    position: absolute;
    top: 0;
    left: -5px;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
    transition: transform 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: bottom center;
    z-index: 2;
}

.gift-box.opening .gift-box-lid {
    transform: rotateX(-130deg) translateY(-30px) translateZ(20px);
    animation: lidOpen 1s ease-out forwards;
}

@keyframes lidOpen {
    0% {
        transform: rotateX(0deg) translateY(0px);
    }
    50% {
        transform: rotateX(-70deg) translateY(-15px);
    }
    100% {
        transform: rotateX(-130deg) translateY(-30px);
    }
}

.gift-box-ribbon-v {
    width: 20px;
    height: 120px;
    background: linear-gradient(to right, #FFD93D, #FFA726);
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    border-radius: 10px;
}

.gift-box-ribbon-h {
    width: 130px;
    height: 20px;
    background: linear-gradient(to bottom, #FFD93D, #FFA726);
    position: absolute;
    left: -5px;
    top: 25px;
    border-radius: 10px;
}

@keyframes slideUp {
    from {
        transform: translateY(200px);
        opacity: 0;
    }
    to {
        transform: translateY(0px);
        opacity: 1;
    }
}

/* 이미지 컨테이너 */
.images-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 50;
    pointer-events: none;
}

.images-container.show {
    opacity: 1;
}

.random-image {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    cursor: pointer;
    position: absolute;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: scale(0);
    animation: popIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    border: 6px solid rgba(255, 255, 255, 0.9);
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    pointer-events: auto;
}

.random-image:hover {
    transform: scale(1.4);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    z-index: 100;
    border: 8px solid rgba(255, 255, 255, 1);
}

@keyframes popIn {
    0% {
        transform: scale(0) rotate(180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(90deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* 리모콘 스타일 */
.remote-control {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px 15px;
    background: #D9D9D9;
    border-radius: 25px;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.remote-button {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.remote-button:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: scale(1.1);
}

.remote-button.active {
    background: #000000;
    border: 2px solid #FFFFFF;
    box-shadow: 0 0 0 2px #000000;
}

/* 반응형 디자인 */
@media (max-width: 1920px) {
    .section-1 {
        transform: scale(0.8);
        transform-origin: top left;
    }
}

@media (max-width: 1536px) {
    .section-1 {
        transform: scale(0.6);
        transform-origin: top left;
    }
}

@media (max-width: 1200px) {
    .section-1 {
        transform: scale(0.5);
        transform-origin: top left;
    }
    
    .navigation {
        width: 400px;
    }
    
    .main-title {
        font-size: 72px;
    }
    
    .typing-text {
        font-size: 80px;
    }
} 