@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

:root {
    --bg-color: #050505;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.1);
    --accent-color: #00F0FF;
    --accent-glow: rgba(0, 240, 255, 0.2);
    --text-primary: #FFFFFF;
    --text-secondary: #AAAAAA;
    --transition-speed: 0.4s;
}

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

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    height: 100vh;
}

/* Background Ambient Lighting */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 240, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: pulse 10s infinite alternate;
}

@keyframes pulse {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.1); }
}

/* Logo Button */
.logo-button {
    position: fixed;
    top: 75px;
    left: 70px;
    z-index: 1000;
    text-decoration: none;
    padding: 0;
    background: transparent;
    border: none;
    backdrop-filter: none;
    transition: all 0.3s ease;
}

.logo-button:hover {
    opacity: 0.7;
    transform: translateY(-1px);
}

.logo-text {
    font-family: 'Pretendard', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #000000;
    display: block;
    transition: color 0.3s ease;
}

.micron-text {
    font-weight: 600; /* Semi bold */
}

.cube-text {
    font-weight: 400; /* Regular */
}

/* Video Container */
.video-container {
    width: 100%;
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

/* Video Section */
.video-section {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    padding: 175px 5% 100px 5%;
    transition: background-color 0.5s ease;
}

.promotion-section {
    background: #FFFFFF;
}

.usage-section {
    background: #000000;
}

/* Video Wrapper */
.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    padding-bottom: 100px;
}

.video-wrapper.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Video Info */
.video-info {
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
}

/* Video Titles Wrapper */
.video-titles-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.video-titles-container {
    display: flex;
    gap: 40px;
    align-items: flex-end;
    position: relative;
}

/* Title Item Styles */
.video-title-item {
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.4;
    position: relative;
    padding-bottom: 15px;
}

.video-title-item:hover {
    opacity: 0.7;
}

.video-title-item.active {
    opacity: 1;
}

/* Title Indicator */
.title-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    transition: all 0.3s ease;
    z-index: 2;
}

.video-title-item.active .title-indicator {
    background: #000000;
}

.video-title-item:hover:not(.active) .title-indicator {
    background: rgba(0, 0, 0, 0.3);
}

/* Separator Line */
.titles-separator-line {
    width: 100%;
    height: 1px;
    background: rgba(0, 0, 0, 0.15);
    margin-top: 0;
}

/* Promotion Section Title Styles */
.promotion-section .video-title-item .video-title {
    color: #999999;
    transition: color 0.3s ease;
}

.promotion-section .video-title-item:hover .video-title {
    color: #666666;
}

.promotion-section .video-title-item.active .video-title {
    color: #000000;
}

.promotion-section .video-title-item .video-label {
    color: #999999;
    transition: color 0.3s ease;
}

.promotion-section .video-title-item:hover .video-label {
    color: #666666;
}

.promotion-section .video-title-item.active .video-label {
    color: #000000;
}

/* Usage Section Title Styles */
.usage-section .video-title-item .video-title {
    color: #666666;
    transition: color 0.3s ease;
}

.usage-section .video-title-item:hover .video-title {
    color: #999999;
}

.usage-section .video-title-item.active .video-title {
    color: #FFFFFF;
}

.usage-section .video-title-item .video-label {
    color: #666666;
    transition: color 0.3s ease;
}

.usage-section .video-title-item:hover .video-label {
    color: #999999;
}

.usage-section .video-title-item.active .video-label {
    color: #FFFFFF;
}

.usage-section .video-title-item.active .title-indicator {
    background: #FFFFFF;
}

.usage-section .video-title-item:hover:not(.active) .title-indicator {
    background: rgba(255, 255, 255, 0.3);
}

.usage-section .titles-separator-line {
    background: rgba(255, 255, 255, 0.15);
}

.video-label {
    font-size: 0.9rem;
    color: var(--accent-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
    font-weight: 600;
}

.promotion-section .video-label {
    color: #000000;
}

.usage-section .video-label {
    color: #FFFFFF;
}

.video-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.promotion-section .video-title {
    color: #000000;
}

.video-desc {
    color: var(--text-secondary);
    max-width: 400px;
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 400;
    margin: 0;
}

.promotion-section .video-desc {
    color: #666666;
    max-width: none;
    white-space: nowrap;
}

.micron-semibold {
    font-weight: 600;
}

/* Demo Hint */
.promotion-section .demo-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    opacity: 0.8;
    z-index: 10;
    pointer-events: none;
}

@media (max-width: 768px) {
    .promotion-section .demo-hint {
        bottom: 80px;
    }
}

@media (max-width: 480px) {
    .promotion-section .demo-hint {
        bottom: 70px;
    }
}

.demo-hint-text {
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #000000;
    font-weight: 600;
}

@media (max-width: 768px) {
    .demo-hint-text {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    .demo-hint-text {
        font-size: 0.65rem;
        letter-spacing: 0.5px;
    }
}

.demo-hint-arrow {
    display: none;
}

@keyframes arrowBounce {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    50% {
        transform: translateY(8px);
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(10px);
    }
    60% {
        transform: translateX(-50%) translateY(5px);
    }
}

/* Video Frame */
.video-frame {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--card-border);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease, border-color var(--transition-speed) ease;
}

.promotion-section .video-frame {
    border: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.video-frame:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 240, 255, 0.1);
    border-color: var(--accent-glow);
}

.promotion-section .video-frame:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 0, 0, 0.3);
}

.video-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Video Coming Soon */
.video-coming-soon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 20px;
}

.coming-soon-content {
    text-align: center;
    color: var(--text-primary);
    padding: 40px;
}

.coming-soon-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    animation: pulse 2s infinite;
}

.coming-soon-icon svg {
    width: 100%;
    height: 100%;
}

.coming-soon-text {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.coming-soon-subtext {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

@media (max-width: 768px) {
    .coming-soon-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 15px;
    }
    
    .coming-soon-text {
        font-size: 1.25rem;
    }
    
    .coming-soon-subtext {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .coming-soon-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 12px;
    }
    
    .coming-soon-text {
        font-size: 1.1rem;
    }
    
    .coming-soon-subtext {
        font-size: 0.85rem;
    }
}


/* Responsive Design */
@media (max-width: 1024px) {
    .logo-button {
        top: 55px;
        left: 40px;
        padding: 10px 20px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .video-section {
        padding: 155px 4% 80px 4%;
    }
    
    .video-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .video-titles-container {
        gap: 20px;
    }
    
    .video-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .logo-button {
        top: 50px;
        left: 35px;
        padding: 8px 16px;
        background: transparent;
    }
    
    .logo-text {
        font-size: 16px;
        color: #000000;
    }
    
    .promotion-section ~ .logo-button .logo-text,
    body:has(.promotion-section) .logo-button .logo-text {
        color: #000000;
    }
    
    .usage-section ~ .logo-button .logo-text,
    body:has(.usage-section) .logo-button .logo-text {
        color: #FFFFFF;
    }
    
    .video-section {
        padding: 135px 3% 60px 3%;
    }
    
    .video-title {
        font-size: 1.5rem;
    }
    
    .video-titles-container {
        gap: 15px;
    }
    
    .video-label {
        font-size: 0.8rem;
    }
    
    .video-desc {
        font-size: 0.9rem;
    }
    
    .promotion-section .video-desc {
        max-width: 400px;
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .logo-button {
        top: 45px;
        left: 30px;
        padding: 6px 12px;
        background: transparent;
    }
    
    .logo-text {
        font-size: 14px;
        color: #000000;
    }
    
    .promotion-section ~ .logo-button .logo-text,
    body:has(.promotion-section) .logo-button .logo-text {
        color: #000000;
    }
    
    .usage-section ~ .logo-button .logo-text,
    body:has(.usage-section) .logo-button .logo-text {
        color: #FFFFFF;
    }
    
    .video-section {
        padding: 125px 2% 50px 2%;
    }
    
    .video-title {
        font-size: 1.25rem;
    }
    
    .video-titles-container {
        gap: 12px;
    }
    
    .promotion-section .video-desc {
        max-width: 400px;
        white-space: normal;
    }
}

/* Smooth scroll enhancement */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Hide scrollbar but keep functionality */
.video-container::-webkit-scrollbar {
    width: 8px;
}

.video-container::-webkit-scrollbar-track {
    background: #000000;
}

.video-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.video-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}
