/* mechanic.stream - Horizontal Garage Bay Experience */
/* Colors: #0D0D12, #1A1B26, #F0EDE8, #8B5CF6, #00E5D0, #B8FF3E, #FF4D8F, #6B6E7A */
/* Fonts: Nunito (display 800), Quicksand (body 300-700), Comfortaa (annotations 300) */

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

html, body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: #0D0D12;
    color: #F0EDE8;
    font-family: 'Quicksand', sans-serif;
    cursor: none;
}

/* Custom Cursor */
.cursor-blob {
    position: fixed;
    width: 24px;
    height: 24px;
    background: #8B5CF6;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background 0.3s;
    mix-blend-mode: screen;
}

.cursor-blob.hovering {
    width: 48px;
    height: 48px;
    background: #B8FF3E;
}

.cursor-trail {
    position: fixed;
    width: 8px;
    height: 8px;
    background: #00E5D0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    opacity: 0.5;
    transition: transform 0.15s ease-out, opacity 0.3s;
}

/* Aurora Navigation Trail */
.aurora-trail {
    position: fixed;
    top: 0;
    left: 0;
    width: 200px;
    height: 100vh;
    background: linear-gradient(180deg, rgba(139,92,246,0.06) 0%, rgba(0,229,208,0.08) 50%, rgba(255,77,143,0.06) 100%);
    pointer-events: none;
    z-index: 50;
    filter: blur(60px);
    opacity: 0.6;
    transition: transform 0.3s ease-out;
}

/* Bay Indicator */
.bay-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 16px;
    z-index: 100;
    align-items: center;
}

.bay-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #6B6E7A;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.4s;
}

.bay-dot:hover {
    transform: scale(2);
}

.bay-dot.active {
    background: #FF4D8F;
    transform: scale(1.8);
    box-shadow: 0 0 12px rgba(255, 77, 143, 0.5);
}

.dot-label {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Comfortaa', sans-serif;
    font-weight: 300;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6B6E7A;
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.bay-dot:hover .dot-label,
.bay-dot.active .dot-label {
    opacity: 1;
}

.bay-dot.active .dot-label {
    color: #FF4D8F;
}

/* Horizontal Scroll Container */
.garage-scroll {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    height: 100vh;
    width: 100vw;
    scrollbar-width: none;
}

.garage-scroll::-webkit-scrollbar {
    display: none;
}

/* Bay Sections */
.bay {
    min-width: 100vw;
    height: 100vh;
    scroll-snap-align: start;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.bay-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 40px;
}

/* Aurora Background Animation */
.aurora-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #8B5CF6 0%, #00E5D0 33%, #FF4D8F 66%, #B8FF3E 100%);
    background-size: 300% 300%;
    animation: aurora-drift 12s ease-in-out infinite;
    opacity: 0.06;
    z-index: 0;
}

@keyframes aurora-drift {
    0% { background-position: 0% 50%; }
    33% { background-position: 100% 25%; }
    66% { background-position: 50% 100%; }
    100% { background-position: 0% 50%; }
}

/* Grease-Streak Texture Overlay */
.grease-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.04;
    filter: url(#noise-filter);
    pointer-events: none;
}

/* Floor Line */
.bay-floor-line {
    position: absolute;
    bottom: 80px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #6B6E7A 20%, #6B6E7A 80%, transparent);
    opacity: 0.3;
    z-index: 3;
}

/* Bay Number Labels */
.bay-number-label {
    position: absolute;
    bottom: 100px;
    right: 60px;
    font-family: 'Comfortaa', sans-serif;
    font-weight: 300;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6B6E7A;
    opacity: 0.4;
    z-index: 3;
}

/* Background Blobs */
.blob-bg {
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

/* Blob Halos */
.blob-halo {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    filter: blur(40px);
}

.blob-halo-hero {
    width: 60vw;
    height: 60vw;
    max-width: 700px;
    max-height: 700px;
    top: 10%;
    right: -5%;
}

.blob-halo-diag {
    width: 55vw;
    height: 55vw;
    max-width: 650px;
    max-height: 650px;
    top: -5%;
    right: 0;
}

.blob-halo-contact {
    width: 250px;
    height: 250px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.blob-hero-main {
    width: 70vw;
    height: 70vw;
    max-width: 800px;
    max-height: 800px;
    top: 5%;
    right: -10%;
}

.blob-hero-accent {
    width: 50vw;
    height: 50vw;
    max-width: 600px;
    max-height: 600px;
    bottom: -5%;
    left: -5%;
}

.blob-hero-pink {
    width: 40vw;
    height: 40vw;
    max-width: 500px;
    max-height: 500px;
    top: 30%;
    left: 20%;
}

.blob-diag-1 {
    width: 60vw;
    height: 60vw;
    max-width: 700px;
    max-height: 700px;
    top: -10%;
    right: -5%;
}

.blob-diag-2 {
    width: 45vw;
    height: 45vw;
    max-width: 500px;
    max-height: 500px;
    bottom: 5%;
    left: 5%;
}

.blob-stream-1 {
    width: 80vw;
    height: 80vw;
    max-width: 900px;
    max-height: 900px;
    top: -15%;
    left: -10%;
}

.blob-stream-2 {
    width: 50vw;
    height: 50vw;
    max-width: 600px;
    max-height: 600px;
    bottom: -10%;
    right: -5%;
}

.blob-work-1 {
    width: 70vw;
    height: 70vw;
    max-width: 800px;
    max-height: 800px;
    top: 0;
    left: 10%;
}

.blob-contact-1 {
    width: 65vw;
    height: 65vw;
    max-width: 800px;
    max-height: 800px;
    top: -5%;
    right: -10%;
}

.blob-contact-2 {
    width: 50vw;
    height: 50vw;
    max-width: 600px;
    max-height: 600px;
    bottom: 0;
    left: 5%;
}

/* Bay Titles */
.bay-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 14vw;
    letter-spacing: -0.04em;
    line-height: 0.9;
    color: #F0EDE8;
    text-transform: lowercase;
    position: relative;
    z-index: 2;
}

/* Hero Bay */
.hero-title {
    font-size: 16vw;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title-line {
    display: block;
}

.title-accent {
    color: #8B5CF6;
    font-size: 0.6em;
}

.hero-subtitle {
    font-family: 'Comfortaa', sans-serif;
    font-weight: 300;
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #6B6E7A;
    margin-top: 20px;
}

.scroll-hint {
    position: absolute;
    bottom: 100px;
    right: 60px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: hintPulse 2s ease-in-out infinite;
    z-index: 3;
}

.scroll-hint-text {
    font-family: 'Comfortaa', sans-serif;
    font-weight: 300;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #B8FF3E;
}

.scroll-arrow {
    animation: arrowSlide 2s ease-in-out infinite;
}

@keyframes hintPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes arrowSlide {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(8px); }
}

/* Diagnostics Bay */
.bay-diagnostics .bay-title {
    font-size: 10vw;
    margin-bottom: 40px;
    color: #FF4D8F;
}

.blob-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 900px;
    width: 90%;
}

.blob-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.blob-card:hover {
    transform: scale(1.08);
}

.blob-icon {
    width: 140px;
    height: 140px;
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.3));
    transition: filter 0.4s;
}

.blob-card:hover .blob-icon {
    filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.6));
}

.morphing-blob {
    transition: d 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.blob-label {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
    letter-spacing: 0.05em;
    line-height: 1.4;
    color: #F0EDE8;
    opacity: 0.8;
}

/* Live Stream Bay */
.bay-stream .bay-title {
    font-size: 12vw;
    position: absolute;
    left: 40px;
    top: 40px;
    color: #F0EDE8;
    opacity: 0.15;
}

.stream-display {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.stream-blob-container {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stream-blob {
    width: 100%;
    height: 100%;
}

.pulse-blob {
    animation: blobPulse 4s ease-in-out infinite;
    transform-origin: center;
}

@keyframes blobPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

.stream-status {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #FF4D8F;
    border-radius: 50%;
    animation: statusBlink 1.5s ease-in-out infinite;
}

@keyframes statusBlink {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(255, 77, 143, 0.6); }
    50% { opacity: 0.3; box-shadow: 0 0 2px rgba(255, 77, 143, 0.2); }
}

.status-text {
    font-family: 'Comfortaa', sans-serif;
    font-weight: 300;
    font-size: 11px;
    letter-spacing: 0.3em;
    color: #FF4D8F;
}

.stream-stats {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 2.4rem;
    color: #F0EDE8;
    letter-spacing: -0.02em;
    transition: color 0.3s;
}

.stat-label {
    font-family: 'Comfortaa', sans-serif;
    font-weight: 300;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6B6E7A;
}

/* Workshop Bay */
.bay-workshop .bay-title {
    font-size: 12vw;
    position: absolute;
    right: 40px;
    top: 40px;
    text-align: right;
    color: #F0EDE8;
    opacity: 0.12;
}

.workshop-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 700px;
    width: 80%;
    position: relative;
    z-index: 2;
}

.workshop-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px;
    border-radius: 20px;
    background: rgba(26, 27, 38, 0.6);
    border: 1px solid rgba(107, 110, 122, 0.2);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.4s, border-color 0.4s;
}

.workshop-item:hover {
    background: rgba(26, 27, 38, 0.9);
    border-color: rgba(139, 92, 246, 0.4);
    transform: scale(1.08);
}

.tool-blob {
    width: 100px;
    height: 100px;
    transition: transform 0.4s, filter 0.4s;
}

.workshop-item:hover .tool-blob {
    transform: rotate(10deg) scale(1.1);
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.5));
}

.tool-name {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #F0EDE8;
}

.tool-status {
    font-family: 'Comfortaa', sans-serif;
    font-weight: 300;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
}

.status-progress {
    background: rgba(0, 229, 208, 0.15);
    color: #00E5D0;
}

.status-queued {
    background: rgba(184, 255, 62, 0.15);
    color: #B8FF3E;
}

.status-complete {
    background: rgba(255, 77, 143, 0.15);
    color: #FF4D8F;
}

.status-scheduled {
    background: rgba(139, 92, 246, 0.15);
    color: #8B5CF6;
}

/* Contact Bay */
.bay-contact .bay-title {
    font-size: 12vw;
    margin-bottom: 30px;
    color: #FF4D8F;
}

.contact-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    position: relative;
    z-index: 2;
}

.contact-blob-wrap {
    width: 200px;
    height: 200px;
}

.contact-blob {
    width: 100%;
    height: 100%;
}

.breathing-blob {
    animation: breathe 6s ease-in-out infinite;
    transform-origin: center;
}

@keyframes breathe {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.08); opacity: 0.6; }
}

.contact-text {
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    font-size: 1.3rem;
    text-align: center;
    line-height: 1.8;
    color: #6B6E7A;
    letter-spacing: 0.05em;
}

.contact-links {
    display: flex;
    gap: 24px;
    margin-top: 10px;
}

.contact-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 12px 28px;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-link:hover {
    transform: scale(1.08);
}

.link-blob {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.contact-link span {
    position: relative;
    z-index: 1;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
}

.link-purple span { color: #8B5CF6; }
.link-teal span { color: #00E5D0; }
.link-green span { color: #B8FF3E; }

.link-purple:hover .link-blob path { opacity: 0.6; }
.link-teal:hover .link-blob path { opacity: 0.6; }
.link-green:hover .link-blob path { opacity: 0.6; }

/* Bay background variations with aurora radial gradients */
.bay-hero {
    background: radial-gradient(ellipse at 30% 50%, rgba(139, 92, 246, 0.06) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 80%, rgba(0, 229, 208, 0.04) 0%, transparent 50%),
                #0D0D12;
}

.bay-diagnostics {
    background: radial-gradient(ellipse at 60% 40%, rgba(0, 229, 208, 0.06) 0%, transparent 60%),
                radial-gradient(ellipse at 20% 70%, rgba(139, 92, 246, 0.04) 0%, transparent 50%),
                #0D0D12;
}

.bay-stream {
    background: radial-gradient(ellipse at 40% 60%, rgba(184, 255, 62, 0.04) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 30%, rgba(255, 77, 143, 0.05) 0%, transparent 50%),
                #0D0D12;
}

.bay-workshop {
    background: radial-gradient(ellipse at 50% 50%, rgba(139, 92, 246, 0.05) 0%, transparent 60%),
                #0D0D12;
}

.bay-contact {
    background: radial-gradient(ellipse at 50% 40%, rgba(0, 229, 208, 0.04) 0%, transparent 50%),
                radial-gradient(ellipse at 30% 70%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
                #0D0D12;
}

/* Bay entrance animations */
.bay-content > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.bay.in-view .bay-content > * {
    opacity: 1;
    transform: translateY(0);
}

.bay.in-view .bay-content > *:nth-child(1) { transition-delay: 0.1s; }
.bay.in-view .bay-content > *:nth-child(2) { transition-delay: 0.2s; }
.bay.in-view .bay-content > *:nth-child(3) { transition-delay: 0.3s; }
.bay.in-view .bay-content > *:nth-child(4) { transition-delay: 0.4s; }
.bay.in-view .bay-content > *:nth-child(5) { transition-delay: 0.5s; }
.bay.in-view .bay-content > *:nth-child(6) { transition-delay: 0.6s; }

/* Override for background titles */
.bay-stream .bay-title,
.bay-workshop .bay-title {
    opacity: 0;
    transform: none;
    transition: opacity 1.2s ease;
}

.bay-stream.in-view .bay-title {
    opacity: 0.15;
}

.bay-workshop.in-view .bay-title {
    opacity: 0.12;
}

/* Responsive */
@media (max-width: 768px) {
    .bay-title {
        font-size: 18vw;
    }

    .hero-title {
        font-size: 20vw;
    }

    .blob-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .blob-icon {
        width: 100px;
        height: 100px;
    }

    .stream-display {
        flex-direction: column;
        gap: 30px;
    }

    .stream-blob-container {
        width: 200px;
        height: 200px;
    }

    .stream-stats {
        flex-direction: row;
        gap: 30px;
    }

    .stat-value {
        font-size: 1.6rem;
    }

    .workshop-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-links {
        flex-direction: column;
        gap: 16px;
    }

    .scroll-hint {
        right: 30px;
        bottom: 100px;
    }

    .bay-number-label {
        right: 30px;
    }

    .cursor-blob, .cursor-trail, .aurora-trail {
        display: none;
    }

    html, body {
        cursor: auto;
    }
}
