/*
 * Sculptor AI - Main Styles
 * Extracted from index.html
 */

:root {
    /* Responsive sizing variables */
    --base-font-size: max(14px, 1vw);
    --ascii-font-size: max(8px, 0.6vw);
    --h2-size: max(2rem, 3vw);
    --h3-size: max(1.2rem, 1.5vw);
}

html {
    font-size: var(--base-font-size);
    overflow-x: hidden;
    width: 100vw;
}

body {
    background-color: #050505;
    color: #e0e0e0;
    margin: 0;
    padding: 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    position: relative;
}

#hero {
    height: 100vh;
    /* Full screen hero */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
    overflow: hidden;
    /* Ensure canvas doesn't push width */
}

#canvas {
    font-family: 'Courier New', Courier, monospace;
    font-size: var(--ascii-font-size);
    line-height: var(--ascii-font-size);
    white-space: pre;
    text-align: center;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.4);
    margin: 0;
    display: block;
}

/* New Layout Styles */
.content-container {
    width: 90vw;
    /* Removed max-width to allow infinite scaling */
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 10vw;
    margin-bottom: 3rem;
    z-index: 20;
    position: relative;
}

@media (max-width: 768px) {
    .content-container {
        flex-direction: column;
        align-items: center;
    }

    .ascii-column {
        position: relative !important;
        top: auto !important;
        height: auto !important;
        margin-bottom: 4rem;
    }
}

@media (max-width: 768px) and (orientation: portrait) {
    .ascii-column {
        display: none !important;
    }
}

/* Left Column: Sticky Spinning ASCII */
.ascii-column {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    position: -webkit-sticky;
    position: sticky;
    top: 10vh;
    height: 80vh;
    text-rendering: optimizeSpeed;
    will-change: transform;
    /* Hint for compositing */
}

.spinning-ascii {
    font-family: 'Courier New', Courier, monospace;
    font-size: 10px;
    /* Fallback */
    font-size: var(--ascii-font-size);
    line-height: 10px;
    /* Fallback */
    line-height: var(--ascii-font-size);
    white-space: pre;
    color: #e0e0e0;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    /* animation: spin 15s linear infinite; REMOVED STATIC SPIN */
    transform-style: preserve-3d;
}

#solid-logo-canvas {
    font-family: 'Courier New', Courier, monospace;
    font-size: var(--ascii-font-size);
    line-height: var(--ascii-font-size);
    white-space: pre;
    text-align: center;
    /* Subtle glow to help points bleed together visually */
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.2);
}

@keyframes spin {
    from {
        transform: rotateY(0deg);
    }

    to {
        transform: rotateY(360deg);
    }
}

/* Right Column: Modern Text Content */
.text-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40vh;
    /* Large gap for scrolling effect */
    padding-top: 25vh;
    padding-bottom: 5vh;
    max-width: none;
    /* Let it scale */
    width: 45vw;
    /* Fixed width relative to screen to match half screen feel */
}

@media (max-width: 768px) {
    .text-column {
        width: 90vw;
    }
}

.scroll-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.scroll-section.active {
    opacity: 1;
    transform: translateY(0);
}

.scroll-section h2 {
    font-size: var(--h2-size);
    margin-bottom: 2vh;
    background: linear-gradient(90deg, #fff, #888);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.scroll-section h3 {
    font-size: var(--h3-size);
    color: #fff;
    margin-bottom: 0.5vh;
    font-weight: 600;
}

.scroll-section p {
    font-size: 1.1em;
    line-height: 1.6;
    color: #aaa;
    margin-bottom: 1rem;
}

.project-card {
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 0;
    margin-bottom: 1.5rem;
    transition: none;
}

.project-card:hover {
    transform: none;
    background: transparent;
}

.badge {
    display: inline-block;
    padding: 0.25em 0.75em;
    border-radius: 100px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge.experimental {
    background: rgba(255, 95, 86, 0.2);
    color: #ff5f56;
    border: 1px solid rgba(255, 95, 86, 0.3);
}

.modern-link {
    display: inline-block;
    color: #e57373;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.modern-link:hover {
    border-bottom-color: #e57373;
}