/* Index Page Styles */

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Fallback background if video fails to load */
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

/* Hero Background */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7; /* 비디오가 더 잘 보이도록 opacity 증가 */
    transition: opacity 0.5s ease-in-out;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.40) 0%, rgba(0, 0, 0, 0.40) 100%);
    z-index: 2;
    pointer-events: none; /* 클릭 이벤트가 아래로 전달되도록 */
}

/* Main Container */
.main-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    align-items: flex-start;
    justify-content: center;
    width: 731px;
    max-width: 90vw;
    z-index: 10;
    position: relative;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.main-container:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

/* Text Container */
.text-container {
    width: 100%;
}

.title-section {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: flex-start;
    gap: var(--spacing-sm);
    line-height: 1;
}

/* Main Title */
.main-title {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-black);
    font-size: var(--font-size-title-desktop);
    color: var(--color-white);
    line-height: 1;
    display: flex;
    flex-direction: column;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.title-line {
    display: block;
    white-space: nowrap;
}

/* Subtitle */
.subtitle {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-subtitle-desktop);
    font-weight: var(--font-weight-black);
    color: var(--color-white);
    letter-spacing: -0.48px;
    line-height: 1.1;
    width: 226px;
    height: 62px;
    display: flex;
    align-items: flex-start;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}


/* Typing Animation */
.typing-text {
    display: inline-block;
    position: relative;
    min-height: 1.2em;
    width: 200px;
    text-align: left;
    vertical-align: top;
}


.typing-text::after {
    content: '|';
    animation: blink 1s infinite;
    color: var(--color-white);
    font-weight: 300;
    font-size: 0.95em;
}


@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Description */
.description {
    font-family: var(--font-family-secondary);
    font-size: var(--font-size-body-desktop);
    font-weight: var(--font-weight-regular);
    color: var(--color-text-light);
    line-height: 1.6;
    letter-spacing: -0.4px;
    width: 100%;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

/* Menu active state */
body.menu-active {
    overflow: hidden;
}

.description p {
    margin-bottom: 0;
    white-space: nowrap;
}

/* Animation Effects Removed */
.main-container {
    opacity: 1;
    transform: translateY(0);
}

.main-container.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Hide mobile breaks on desktop */
.mobile-break::after {
    display: none !important;
}

/* Desktop description layout - 3 separate lines */
.description p {
    margin: 0;
    display: block;
    white-space: pre-wrap;
}

/* Desktop line breaks */
.desktop-break-1::before {
    content: '\A';
    white-space: pre;
}

.desktop-break-2::before {
    content: '\A';
    white-space: pre;
}

.desktop-break-3::before {
    content: '\A';
    white-space: pre;
}

.desktop-break-4::before {
    content: '\A';
    white-space: pre;
}

.tablet-break-1::before {
    content: '\A';
    white-space: pre;
}

.tablet-break-2::before {
    content: '\A';
    white-space: pre;
}

.tablet-break-3::before {
    content: '\A';
    white-space: pre;
}

.tablet-break-4::before {
    content: '\A';
    white-space: pre;
}

.tablet-break-5::before {
    content: '\A';
    white-space: pre;
}

.tablet-break-6::before {
    content: '\A';
    white-space: pre;
}

.tablet-break-7::before {
    content: '\A';
    white-space: pre;
}

/* Title Animation Removed */
.title-line {
    display: block;
    white-space: nowrap;
    opacity: 1;
    transform: translateX(0);
}

.title-line:nth-child(1) {
    /* animation-delay removed */
}

.title-line:nth-child(2) {
    /* animation-delay removed */
}

.title-line:nth-child(3) {
    /* animation-delay removed */
}

/* Subtitle */
.subtitle {
    opacity: 1;
    transform: translateY(0);
}

/* Description Animation Removed */
.description {
    opacity: 1;
}


