/* ============================================
   ThatsEGO - Premium Fashion Landing
   Black & White Theme
   ============================================ */

:root {
    /* Monochrome Palette */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --bg-card: #0f0f0f;

    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);

    --accent: #ffffff;
    --accent-dim: rgba(255, 255, 255, 0.8);
    --border: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 255, 255, 0.3);

    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Welcome Video Overlay
   ============================================ */

.welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    background-color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s var(--transition-smooth),
        visibility 0.8s var(--transition-smooth);
}

.welcome-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.welcome-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.welcome-loader {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.welcome-loader.hidden {
    display: none;
}

.loader-ring {
    width: 48px;
    height: 48px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--text-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   Main Scroll Container
   ============================================ */

.scroll-container {
    position: relative;
    height: 800vh;
    background-color: var(--bg-primary);
}

.sticky-stage {
    position: sticky;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: var(--bg-primary);
}

/* ============================================
   Desktop Split Layout
   ============================================ */

.desktop-layout {
    display: flex;
    width: 100%;
    height: 100%;
}

/* Info Panel - Left Side (60% width) */
.info-panel {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 60%;
    padding: 3rem;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
}

.brand-section {
    margin-bottom: 2rem;
}

.brand-logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.brand-tagline {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Outfit Details */
.outfit-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.outfit-badge {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.view-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.2em;
}

.view-number {
    font-size: 3rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1;
}

.view-total {
    font-size: 1rem;
    color: var(--text-muted);
}

.outfit-title {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    color: var(--text-primary);
}

.outfit-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Scroll Progress */
.scroll-progress-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.scroll-progress-bar {
    flex: 1;
    height: 2px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.scroll-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--text-primary);
    border-radius: 2px;
    transition: width 0.1s ease-out;
}

.scroll-progress-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    min-width: 35px;
    font-variant-numeric: tabular-nums;
}

/* CTA Buttons */
.cta-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.cta-btn {
    padding: 0.875rem 1.5rem;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
}

.cta-btn.primary {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.cta-btn.primary:hover {
    background: var(--accent-dim);
    transform: translateY(-1px);
}

.cta-btn.secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.cta-btn.secondary:hover {
    border-color: var(--border-hover);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--text-primary);
}

/* Canvas Container - Right Side (more space) */
.canvas-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-primary);
    padding: 0;
}

.outfit-canvas {
    width: 100%;
    height: 100%;
}

/* ============================================
   Mobile Progress
   ============================================ */

.mobile-progress {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.progress-bar {
    width: 2px;
    height: 120px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    width: 100%;
    height: 0%;
    background: var(--text-primary);
    border-radius: 2px;
    transition: height 0.1s ease-out;
}

.outfit-indicator {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s var(--transition-smooth),
        transform 0.5s var(--transition-smooth);
}

.outfit-indicator.visible {
    opacity: 1;
    transform: translateY(0);
}

.outfit-number {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1;
}

.outfit-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ============================================
   Scroll Hint
   ============================================ */

.scroll-hint {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.5s var(--transition-smooth);
}

.scroll-hint.visible {
    opacity: 1;
}

.scroll-hint.hidden {
    opacity: 0;
    pointer-events: none;
}

.scroll-hint span {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.scroll-mouse {
    width: 20px;
    height: 32px;
    border: 1px solid var(--border-hover);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.scroll-wheel {
    width: 3px;
    height: 6px;
    background: var(--text-secondary);
    border-radius: 2px;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(8px);
        opacity: 0.3;
    }
}

/* ============================================
   Desktop Responsive
   ============================================ */

@media (min-width: 1024px) {
    .info-panel {
        display: flex;
    }

    .mobile-progress {
        display: none;
    }

    .scroll-hint {
        left: calc(280px + (100vw - 280px) / 2);
    }
}

@media (min-width: 1440px) {
    .info-panel {
        width: 320px;
        min-width: 320px;
        padding: 3rem 2.5rem;
    }

    .brand-logo {
        font-size: 1.75rem;
    }

    .view-number {
        font-size: 3.5rem;
    }
}

/* ============================================
   Mobile Styles
   ============================================ */

@media (max-width: 1023px) {
    .desktop-layout {
        display: block;
    }

    .info-panel {
        display: none;
    }

    .canvas-container {
        width: 100%;
        height: 100%;
    }
}

@media (max-width: 480px) {
    .progress-bar {
        height: 80px;
    }

    .outfit-indicator {
        position: fixed;
        left: 1rem;
        bottom: 1.5rem;
    }

    .outfit-number {
        font-size: 1.5rem;
    }
}

/* ============================================
   Preloader
   ============================================ */

.frame-preloader {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 2px;
    font-size: 0.7rem;
    color: var(--text-muted);
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
    border: 1px solid var(--border);
}

.frame-preloader.visible {
    opacity: 1;
}

.frame-preloader.complete {
    color: var(--text-primary);
}