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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #e8e8e8;
    background: #000;
    overflow-x: hidden;
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 90px;
    z-index: 1000;
    pointer-events: auto;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.85) 40%, rgba(0, 0, 0, 0.98) 100%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.indicator-track {
    position: absolute;
    bottom: 30px;
    left: 40px;
    right: 150px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.indicator-bar {
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #00f5ff 0%, #ff00ff 50%, #00f5ff 100%);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 0 20px rgba(0, 245, 255, 0.6),
        0 0 40px rgba(255, 0, 255, 0.4);
}

.indicator-bar::before {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, #fff 0%, #00f5ff 100%);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.9), 0 0 30px rgba(0, 245, 255, 0.7);
    animation: pulseIndicator 2s ease-in-out infinite;
}

@keyframes pulseIndicator {
    0%, 100% { transform: translateY(-50%); opacity: 1; }
    50% { transform: translateY(-50%) scale(1.4); opacity: 0.7; }
}

/* Section Dots */
.section-dots {
    position: absolute;
    bottom: 50px;
    left: 40px;
    right: 150px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dot {
    position: relative;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.3);
}

.dot.active {
    background: linear-gradient(135deg, #00f5ff 0%, #ff00ff 100%);
    border-color: #ffffff;
    box-shadow: 
        0 0 15px rgba(0, 245, 255, 0.6),
        0 0 25px rgba(255, 0, 255, 0.4);
    transform: scale(1.4);
}

.dot-label {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.55rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    white-space: nowrap;
    letter-spacing: 0.08em;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.dot:hover .dot-label,
.dot.active .dot-label {
    opacity: 1;
    color: rgba(255, 255, 255, 0.8);
}

/* Current Section Info */
.current-section-info {
    position: absolute;
    right: 40px;
    bottom: 25px;
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-family: 'Space Grotesk', monospace;
    font-weight: 300;
}

.section-number {
    font-size: 2rem;
    font-weight: 300;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(0, 245, 255, 0.4);
}

.section-divider {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.3);
}

.section-total {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Section Base Styles */
.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
    transition: background 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* Flowing Viewport Background */
.flowing-viewport-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 50%, #0a0a0a 0%, #000000 100%);
    z-index: 90;
    pointer-events: none;
    will-change: transform, opacity;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Flowing Logo - Persistent across all sections */
.flowing-logo-container {
    position: fixed;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    pointer-events: none;
    will-change: transform;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.flowing-logo {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: clamp(12rem, 35vw, 45rem);
    font-weight: 800;
    letter-spacing: -0.08em;
    line-height: 0.85;
    margin: 0;
    text-transform: lowercase;
    white-space: nowrap;
    display: inline-block;
    transform-origin: center center;
    position: relative;
    z-index: 1;
}

.flowing-logo .dis {
    font-weight: 800;
    background: linear-gradient(135deg, #6a6a6a 0%, #4a4a4a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.5;
    -webkit-text-stroke: 1px rgba(80, 80, 80, 0.3);
}

.flowing-logo .invented {
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #b8b8b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
}

/* Section 1 */
.section-1 {
    background: radial-gradient(circle at 50% 50%, #1a1a1a 0%, #000000 100%);
}

/* Content Wrapper */
.section-content-wrapper {
    text-align: center;
    z-index: 50;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
}

.section-subtitle {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(0.75rem, 1.5vw, 0.9rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title-main {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 300;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.section-description {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    letter-spacing: 0.01em;
}

/* Common Device Styles */
.device-container {
    position: relative;
    z-index: 20;
    margin-bottom: 2rem;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.device {
    position: relative;
}

.device-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* Section 2: Computer Monitor */
.section-2 {
    background: radial-gradient(circle at 30% 40%, #0a0a1a 0%, #000 100%);
}

.monitor {
    width: 900px;
    max-width: 85vw;
}

.monitor .device-screen {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border: 20px solid #2a2a2a;
    border-radius: 8px;
    aspect-ratio: 16 / 9;
    box-shadow: 0 0 0 2px #000, 0 20px 60px rgba(0, 0, 0, 0.8), inset 0 0 100px rgba(0, 245, 255, 0.03);
}

.monitor .device-screen::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 50%, rgba(0, 0, 0, 0.2) 100%);
    pointer-events: none;
}

.monitor-stand {
    width: 80px;
    height: 60px;
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
    margin: 0 auto;
    border-radius: 4px 4px 0 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    position: relative;
}

.monitor-brand {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    font-weight: 600;
    color: #4a4a4a;
    letter-spacing: 0.2em;
}

.monitor-power-led {
    position: absolute;
    bottom: 20px;
    right: 25px;
    width: 6px;
    height: 6px;
    background: #00ff00;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.6);
    animation: pulse 2s ease-in-out infinite;
}

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

.stand-connector {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 10px;
    background: #1a1a1a;
    border-radius: 3px;
}

.monitor-base {
    width: 200px;
    height: 12px;
    background: linear-gradient(180deg, #2a2a2a 0%, #0a0a0a 100%);
    margin: 0 auto;
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.7);
    position: relative;
}

.base-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #3a3a3a;
    border-radius: 50%;
}

/* Section 3: LCD TV */
.section-3 {
    background: radial-gradient(circle at 50% 50%, #0a1a0a 0%, #000 100%);
}

.lcd-tv {
    width: 750px;
    max-width: 80vw;
}

.lcd-tv .device-screen {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border: 35px solid #1a1a1a;
    border-radius: 12px;
    aspect-ratio: 16 / 10;
    box-shadow: 0 0 0 3px #0a0a0a, 0 15px 50px rgba(0, 0, 0, 0.7), inset 0 0 60px rgba(100, 100, 255, 0.02);
}


.lcd-brand {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    font-weight: 700;
    color: #3a3a3a;
    letter-spacing: 0.3em;
}

.lcd-sensor {
    position: absolute;
    bottom: 15px;
    right: 50px;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #2a2a2a 0%, #0a0a0a 100%);
    border-radius: 50%;
}

.lcd-power-button {
    position: absolute;
    bottom: 12px;
    right: 30px;
    width: 12px;
    height: 12px;
    background: #1a1a1a;
    border: 1px solid #0a0a0a;
    border-radius: 2px;
}

/* Section 4: CRT TV */
.section-4 {
    background: radial-gradient(circle at 20% 70%, #1a0a1a 0%, #000 100%);
}

.crt-tv {
    width: 600px;
    max-width: 75vw;
}

.crt-screen {
    background: radial-gradient(circle, #1a1a1a 0%, #050505 100%);
    border: 50px solid #2a2a2a;
    border-radius: 30px;
    aspect-ratio: 4 / 3;
    box-shadow: 0 0 0 5px #0a0a0a, 0 10px 40px rgba(0, 0, 0, 0.8), inset 0 0 100px rgba(0, 255, 100, 0.03);
    position: relative;
}

.crt-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.15) 0px, transparent 2px, transparent 4px),
                radial-gradient(circle, transparent 30%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
    border-radius: inherit;
}

.crt-brand {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    font-weight: 700;
    color: #4a4a4a;
    letter-spacing: 0.2em;
}

.crt-controls {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.crt-dial {
    width: 45px;
    height: 45px;
    background: radial-gradient(circle, #3a3a3a 0%, #1a1a1a 100%);
    border-radius: 50%;
    border: 3px solid #2a2a2a;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(255, 255, 255, 0.1);
}

.dial-notch {
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 8px;
    background: #5a5a5a;
    border-radius: 1px;
}

.dial-label {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.5rem;
    color: #4a4a4a;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.crt-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.crt-button {
    width: 35px;
    height: 12px;
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 1px solid #0a0a0a;
    border-radius: 2px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

.crt-speaker-grill {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 30px;
    background: repeating-linear-gradient(90deg, #1a1a1a 0px, #1a1a1a 2px, #0a0a0a 2px, #0a0a0a 4px);
    border-radius: 4px;
    opacity: 0.6;
}

/* Section 5: B&W TV */
.section-5 {
    background: radial-gradient(circle at 80% 30%, #1a1a1a 0%, #000 100%);
}

.bw-tv {
    width: 500px;
    max-width: 70vw;
}

.bw-screen {
    background: radial-gradient(circle, #2a2a2a 0%, #0a0a0a 100%);
    border: 60px solid #3a3a3a;
    border-radius: 40px;
    aspect-ratio: 4 / 3;
    box-shadow: 0 0 0 8px #1a1a1a, 0 8px 30px rgba(0, 0, 0, 0.9);
}

.bw-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0px, transparent 1px, transparent 3px),
                radial-gradient(circle, transparent 40%, rgba(0, 0, 0, 0.5) 100%);
    pointer-events: none;
}

.bw-antenna {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 60px;
}

.antenna-left {
    position: absolute;
    left: 30px;
    bottom: 0;
    width: 3px;
    height: 50px;
    background: linear-gradient(180deg, #5a5a5a 0%, #3a3a3a 100%);
    transform: rotate(-25deg);
    transform-origin: bottom;
    border-radius: 2px;
}

.antenna-right {
    position: absolute;
    right: 30px;
    bottom: 0;
    width: 3px;
    height: 50px;
    background: linear-gradient(180deg, #5a5a5a 0%, #3a3a3a 100%);
    transform: rotate(25deg);
    transform-origin: bottom;
    border-radius: 2px;
}

.bw-brand {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    font-weight: 700;
    color: #5a5a5a;
    letter-spacing: 0.3em;
}

.bw-dial-panel {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.bw-dial {
    background: radial-gradient(circle, #4a4a4a 0%, #2a2a2a 100%);
    border-radius: 50%;
    border: 4px solid #3a3a3a;
    position: relative;
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.6), 0 3px 6px rgba(255, 255, 255, 0.1);
}

.bw-dial.large {
    width: 55px;
    height: 55px;
}

.bw-dial.small {
    width: 40px;
    height: 40px;
}

/* Section 6: Movie Theater */
.section-6 {
    background: radial-gradient(circle at 70% 60%, #1a0a0a 0%, #000 100%);
}

.theater {
    width: 1100px;
    max-width: 90vw;
    position: relative;
}

.theater-screen {
    background: linear-gradient(135deg, #0a0a0a 0%, #000 100%);
    border: 30px solid #1a1a1a;
    aspect-ratio: 21 / 9;
    box-shadow: inset 0 0 80px rgba(255, 255, 255, 0.02), 0 30px 80px rgba(0, 0, 0, 0.9);
}

.theater-curtain-left,
.theater-curtain-right {
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(90deg, #4a0000 0%, #2a0000 100%);
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.theater-curtain-left {
    left: -80px;
    border-radius: 20px 0 0 20px;
}

.theater-curtain-right {
    right: -80px;
    border-radius: 0 20px 20px 0;
}

/* Section 7: Photo Frame */
.section-7 {
    background: radial-gradient(circle at 40% 80%, #1a1a0a 0%, #000 100%);
}

.photo-frame {
    width: 500px;
    max-width: 75vw;
}

.photo-screen {
    background: linear-gradient(135deg, #d4d4d4 0%, #a8a8a8 100%);
    border: 40px solid #8b7355;
    border-radius: 4px;
    aspect-ratio: 3 / 4;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2), 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 0 2px #5a4a3a;
    position: relative;
}

.photo-screen::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(45deg, transparent 0px, rgba(0, 0, 0, 0.01) 1px, transparent 2px),
                linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
}

/* Section 8: Cave Wall */
.section-8 {
    background: radial-gradient(circle at 30% 40%, #2a1a0a 0%, #0a0500 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.6" numOctaves="5"/></filter><rect width="400" height="400" filter="url(%23noise)" opacity="0.2"/></svg>');
    background-size: cover;
}

.section-8::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 20%, rgba(80, 50, 30, 0.1) 0%, transparent 20%),
                radial-gradient(circle at 90% 80%, rgba(0, 0, 0, 0.4) 0%, transparent 25%),
                radial-gradient(circle at 50% 50%, rgba(50, 30, 20, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.cave-rock {
    width: 100%;
    max-width: 1200px;
}

.rock-surface {
    background: radial-gradient(ellipse at 40% 35%, rgba(60, 40, 25, 0.3) 0%, transparent 50%),
                radial-gradient(ellipse at 60% 65%, rgba(40, 25, 15, 0.2) 0%, transparent 40%),
                linear-gradient(180deg, rgba(50, 35, 20, 0.1) 0%, rgba(30, 20, 10, 0.15) 100%);
    aspect-ratio: 21 / 9;
    width: 100%;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.7), inset 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 -20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
}

.rock-surface::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 25%, rgba(80, 60, 40, 0.15) 0%, transparent 15%),
                radial-gradient(circle at 85% 75%, rgba(0, 0, 0, 0.3) 0%, transparent 20%),
                radial-gradient(circle at 50% 10%, rgba(70, 50, 30, 0.1) 0%, transparent 25%),
                radial-gradient(circle at 30% 80%, rgba(40, 25, 15, 0.2) 0%, transparent 18%);
}

.rock-surface::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(45deg, transparent 0px, rgba(0, 0, 0, 0.05) 1px, transparent 2px, transparent 40px),
                repeating-linear-gradient(-45deg, transparent 0px, rgba(0, 0, 0, 0.03) 1px, transparent 2px, transparent 60px);
    opacity: 0.5;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 1.2rem 3rem;
    font-size: 1rem;
    font-weight: 500;
    color: #000000;
    background: #ffffff;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 2px solid #ffffff;
}

.cta-button:hover {
    background: transparent;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.2);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .section {
        padding: 1rem;
    }
    
    .mega-logo {
        font-size: clamp(6rem, 25vw, 12rem);
    }
    
    .subtitle {
        font-size: clamp(0.9rem, 2vw, 1.2rem);
        margin-top: 1rem;
    }
    
    .logo-in-device {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
    }
    
    .section-title {
        font-size: clamp(1.5rem, 3vw, 2.5rem);
    }
    
    .theater-curtain-left { left: -40px; width: 50px; }
    .theater-curtain-right { right: -40px; width: 50px; }
}

/* Ultra-wide screens */
@media (min-width: 2000px) {
    .mega-logo {
        font-size: 55rem;
    }
}
