body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #000;
    color: #fff;
    overflow: hidden;
    height: 100%;
}

#intro {
    position: fixed;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    z-index: 1000;
}

.sliding-text {
    position: absolute;
    font-size: 5rem;
    font-weight: bold;
    opacity: 0;
    white-space: nowrap;
    transition: transform 1s ease-in-out, opacity 0.5s ease-in-out;
}
   
.text1 { transform: translateX(-100vw); top: 20%; }
.text2 { transform: translateY(100vh); }
.text3 { transform: translateX(100vw); bottom: 20%; }
 
.company-logo {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    z-index: 1001;
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.company-logo.show {
    opacity: 1;
}

.company-logo.corner {
    top: 20px;
    left: 20px;
    transform: translate(0, 0);
}

.company-logo img {
    width: 400px;
    height: auto;
    position: relative;
    z-index: 1;
}

.company-logo.corner img {
    width: 80px;
}

#content-wrapper {
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
}

.slide {
    height: 100vh;
    width: 100vw;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.slide.active {
    z-index: 1;
}

.content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

#page-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 24px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
}

#lang-toggle {
    font-size: 18px;
}

#lang-toggle a {
    color: #fff;
    text-decoration: none;
}

#lang-toggle a:hover {
    text-decoration: underline;
}

.menu-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1002;
}

.menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: rgba(17, 17, 17, 0.9);
    border-radius: 5px;
}

.menu-list li {
    padding: 10px 20px;
    transition: background-color 0.3s ease;
}

.menu-list li:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.menu-list li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    display: block;
    white-space: nowrap;
}

.back-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1002;
}

.back-button a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.back-button a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.back-button svg {
    color: #fff;
}

.content h2, .content p {
    opacity: 1;
    visibility: visible;
}
 
.content p {
    text-align: left;
    opacity: 1;
    visibility: visible;
}

.slide.typing h1.typing, 
.slide.typing h2.typing, 
.slide.typing h3.typing, 
.slide.typing h4.typing, 
.slide.typing h5.typing, 
.slide.typing h6.typing, 
.slide.typing p.typing {
    opacity: 1;
    visibility: visible;
    white-space: pre;
    border-right: 0.2em solid white;
    animation: cursor-blink 1s step-end infinite;
}

@keyframes cursor-blink {
    0%, 100% { border-right: 0.2em solid white; }
    50% { border-right: 0.2em solid transparent; }
}

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

.sliding-text::after {
    content: '_';
    display: inline-block;
    width: 0.5em;
    animation: blink 1s step-end infinite;
    color: white; /* 캐럿 상 */
}

h1 {
    font-size: calc(2em + 20px);
}

h2 {
    font-size: calc(1.5em + 20px);
}

h3 {
    font-size: calc(1.17em + 20px);
}

h4 {
    font-size: calc(1em + 20px);
}

h5 {
    font-size: calc(0.83em + 20px);
}

h6 {
    font-size: calc(0.67em + 20px);
}

.card-container {
    perspective: 1000px;
    width: 412px;
    height: 850px;
    margin: 20px auto;
}

.card {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 75px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.05));
    backdrop-filter: blur(10px);
    box-shadow: 
        0 0 20px rgba(255,255,255,0.1),
        inset 0 0 20px rgba(255,255,255,0.1);
    transform-style: preserve-3d;
}

.card img {
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: contain;
    position: relative;
}

.foil-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        125deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 10%,
        rgba(255, 255, 255, 0.9) 20%,
        rgba(255, 255, 255, 0.2) 30%,
        transparent 100%
    ),
    linear-gradient(
        45deg,
        rgba(255,0,0,0.1),
        rgba(0,255,255,0.1)
    );
    background-size: 200% 200%, 100% 100%;
    mix-blend-mode: color-dodge;
    pointer-events: none;
    opacity: 0.8;
    transform: translateZ(1px);
    filter: brightness(1.5) contrast(1.2);
    border-radius: 75px;
    transition: background-position 0.1s ease-out;
}

/* 일반 슬라이드 이미지 스타일 */
.slide .content > img {
    width: 80vw;  /* 화면 너비의 80% */
    height: 80vh; /* 화면 높이의 80% */
    margin: 10vh auto;  /* 상하 여백 10vh, 좌우 자동 중앙 정렬 */
    object-fit: contain;  /* 비율 유지 */
    position: relative;
    display: block;  /* 중앙 정렬을 위해 필요 */
}

/* 카드 이미지 스타일은 유지 */
.card-container .card-inner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
    margin: 0;
}
