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

:root {
    --primary: #333333;
    --secondary: #666666;
    --dark: #ffffff;
    --light: #000000;
}

body {
    font-family: 'Helvetica Neue', sans-serif;
    background: #ffffff;
    color: #000000;
    overflow: hidden;
    height: 100vh;
    position: relative;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeOut 0.5s 2s forwards;
}

.loading-text {
    font-size: 2rem;
    font-weight: 100;
    letter-spacing: 0.5em;
    animation: pulse 1s infinite;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        pointer-events: none;
    }
}

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

/* Custom Cursor */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid #333;
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.2s, height 0.2s, border-width 0.2s;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    position: fixed;
    background: rgba(51, 51, 51, 0.05);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    transition: all 0.1s ease-out;
}

.cursor.hover {
    width: 40px;
    height: 40px;
    border-width: 1px;
}

/* Floating Navigation */
.floating-nav {
    position: fixed;
    right: 3rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

.nav-item {
    display: block;
    width: 40px;
    height: 40px;
    margin: 1rem 0;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: rgba(0, 0, 0, 0.5);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary);
    transition: left 0.3s ease;
    z-index: -1;
}

.nav-item:hover {
    color: #ffffff;
    border-color: #333333;
}

.nav-item:hover::before {
    left: 0;
}

.nav-item.active {
    color: #ffffff;
    background: #333333;
    border-color: #333333;
    animation: navPulse 2s infinite;
}

@keyframes navPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Main Scene */
main {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.scene-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(1.02);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

/* Split View */
.split-view {
    position: relative;
    width: 90%;
    max-width: 1600px;
    height: 70%;
    max-height: 700px;
    overflow: hidden;
    margin: 0 auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
    border-radius: 16px;
}

.panel {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.before-panel {
    left: 0;
    z-index: 2;
    clip-path: inset(0 50% 0 0);
    transition: clip-path 0.3s ease;
}

.after-panel {
    left: 0;
    z-index: 1;
}

.panel img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: contrast(1.05) saturate(1.1);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.panel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

@keyframes overlayShift {
    0% { opacity: 0.05; }
    100% { opacity: 0.15; }
}

/* Panel Labels */
.panel-label {
    position: absolute;
    top: 2rem;
    z-index: 10;
    pointer-events: none;
}

.before-panel .panel-label {
    left: 2rem;
}

.after-panel .panel-label {
    right: 2rem;
}

.label-text {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}


/* Center Line */
.center-line {
    position: absolute;
    left: 50%;
    top: 0;
    width: 4px;
    height: 100%;
    transform: translateX(-50%);
    z-index: 100;
    cursor: ew-resize;
    background: #ff6b35;
    border-radius: 2px;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
}






.drag-hint {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: #ffffff;
    border: 2px solid #ff6b35;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.center-line:hover .drag-hint {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.drag-hint svg {
    color: #ff6b35;
    width: 16px;
    height: 16px;
}

/* Slide Info */
.slide-info {
    position: absolute;
    bottom: 2%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 200;
    margin-top: 3rem;
}

.slide-info h2 {
    font-size: 1.5rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #333;
    margin-bottom: 0.5rem;
    margin-top: 4rem;
}

.slide-info p {
    font-size: 0.95rem;
    font-weight: 300;
    color: #666;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.5;
    letter-spacing: 0.02em;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch1 0.3s infinite;
    color: var(--primary);
    z-index: -1;
}

.glitch::after {
    animation: glitch2 0.3s infinite;
    color: var(--secondary);
    z-index: -2;
}

@keyframes glitch1 {
    0%, 100% { clip-path: inset(0 0 0 0); }
    20% { clip-path: inset(20% 0 30% 0); transform: translate(-2px, 2px); }
    40% { clip-path: inset(50% 0 20% 0); transform: translate(2px, -2px); }
    60% { clip-path: inset(10% 0 60% 0); transform: translate(-1px, 1px); }
}

@keyframes glitch2 {
    0%, 100% { clip-path: inset(0 0 0 0); }
    20% { clip-path: inset(60% 0 10% 0); transform: translate(2px, -1px); }
    40% { clip-path: inset(20% 0 50% 0); transform: translate(-2px, 2px); }
    60% { clip-path: inset(30% 0 40% 0); transform: translate(1px, -2px); }
}

.info-bar {
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        var(--primary),
        transparent);
    margin: 1rem auto 0;
    animation: barScan 3s infinite linear;
}

@keyframes barScan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Background Text */


/* Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #333;
    border-radius: 50%;
    animation: particleFloat 10s infinite linear;
    opacity: 0.3;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 8s; }
.particle:nth-child(2) { left: 20%; animation-delay: 1s; animation-duration: 12s; }
.particle:nth-child(3) { left: 30%; animation-delay: 2s; animation-duration: 10s; }
.particle:nth-child(4) { left: 40%; animation-delay: 3s; animation-duration: 14s; }
.particle:nth-child(5) { left: 50%; animation-delay: 4s; animation-duration: 9s; }
.particle:nth-child(6) { left: 60%; animation-delay: 5s; animation-duration: 11s; }
.particle:nth-child(7) { left: 70%; animation-delay: 6s; animation-duration: 13s; }
.particle:nth-child(8) { left: 80%; animation-delay: 7s; animation-duration: 15s; }

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Sound Toggle */
.sound-toggle {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    transition: all 0.3s ease;
    z-index: 1000;
}

.sound-toggle:hover {
    background: #333;
    border-color: #333;
    transform: scale(1.1) rotate(10deg);
}

.sound-toggle svg {
    fill: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .floating-nav {
        right: 1rem;
    }

    .split-view {
        width: 95%;
        height: 60%;
    }

    .slide-info h2 {
        font-size: 1.2rem;
    }

    .background-text {
        font-size: 30vw;
    }
}