:root {
    --bg-dark: #000000;
    --accent: #00f2ff;
    --accent-alt: #7000ff;
    --text-main: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.4);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    height: 1200vh;
    /* Increased for deeper storytelling */
}

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
}

#ui-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 10;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    padding: 4rem 10%;
    /* Increased horizontal safety */
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: auto;
    margin-bottom: 2rem;
}

.logo {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 4px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-contact-btn {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: 0.6rem;
    padding: 6px 14px;
    letter-spacing: 2px;
    font-weight: 700;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.header-contact-btn:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.4);
}

.status-badge {
    font-size: 0.6rem;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.6;
}

.blink {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Content Grid */
#content-track {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.content-zone {
    height: 100vh;
    display: flex;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    visibility: hidden;
    opacity: 0;
}

.content-zone:first-child {
    visibility: visible;
    opacity: 1;
    position: relative;
    z-index: 2;
}

.reveal-box {
    max-width: 500px;
    padding-left: 20px;
    /* Offset from left padding */
}

.category {
    font-size: 0.65rem;
    letter-spacing: 5px;
    color: var(--accent);
    margin-bottom: 1rem;
    transform: translateX(-30px);
    opacity: 0;
    text-transform: uppercase;
}

.kinetic-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 4rem);
    /* Drastically reduced size */
    line-height: 1.0;
    font-weight: 700;
    text-transform: uppercase;
    transform: translateY(60px);
    opacity: 0;
    letter-spacing: -2px;
}

.outline {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    color: transparent;
}

#active-service-desc {
    margin-top: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-dim);
    max-width: 380px;
}

/* Navigation Track */
.scroll-navigation {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.progress-track {
    width: 1px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
}

.thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: var(--accent);
}

.step-indicator {
    font-size: 0.7rem;
    letter-spacing: 2px;
    opacity: 0.5;
}

/* Contact Portal */
#contact-portal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    pointer-events: auto;
}

.portal-hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
}

.portal-content {
    width: 90%;
    max-width: 800px;
    padding: 4rem;
}

.close-portal {
    position: absolute;
    top: 3rem;
    right: 3rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

#pro-form input,
#pro-form textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem;
    color: #fff;
    font-family: var(--font-body);
    margin-bottom: 1.5rem;
    transition: border-color 0.3s;
}

#pro-form .input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.submit-action {
    width: 100%;
    padding: 1.5rem;
    background: var(--accent);
    color: #000;
    border: none;
    font-weight: 800;
    letter-spacing: 4px;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: all 0.3s;
}

.submit-action:hover {
    background: #fff;
    transform: translateY(-2px);
}

.submit-action:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Utilities */
.btn-glass {
    padding: 1rem 3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.3s;
    pointer-events: auto;
}

.btn-glass:hover {
    background: #fff;
    color: #000;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    #ui-overlay {
        padding: 2.5rem 8%;
        text-align: center;
    }

    header {
        margin-bottom: 1rem;
    }

    .logo {
        font-size: 0.9rem;
    }

    .status-badge {
        font-size: 0.5rem;
    }

    .reveal-box {
        max-width: 100%;
        padding-left: 0;
        margin-left: 0;
        margin-top: auto;
        /* Push content to bottom */
        margin-bottom: 8vh;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .kinetic-title {
        font-size: clamp(1.4rem, 8vw, 2.2rem);
        letter-spacing: -1px;
    }

    #active-service-desc {
        max-width: 310px;
        font-size: 0.85rem;
        margin: 1rem auto 0 auto;
        opacity: 0.8;
    }

    .scroll-navigation {
        right: 3%;
    }

    .progress-track {
        height: 100px;
    }

    .portal-content {
        padding: 2rem;
    }

    #pro-form .input-row {
        grid-template-columns: 1fr;
    }
}