@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&family=JetBrains+Mono:wght@300;400;500;600&display=swap');

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

:root {
    --color-bg: #080808;
    --color-fg: #F8F8F8;
    --color-cyan: #06B6D4;
    --color-violet: #A855F7;
    --font-display: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

body {
    font-family: var(--font-display);
    background: var(--color-bg);
    color: var(--color-fg);
    overflow: hidden;
    cursor: none;
}

.container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* Custom Cursor */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-cyan);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.2s ease;
    mix-blend-mode: difference;
}

.cursor::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background: var(--color-cyan);
    border-radius: 50%;
}

/* Header */
.header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 3rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 100;
}

.header-content {
    flex: 1;
}

.title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 0.9;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    margin-bottom: 1rem;
}

.title-line {
    display: block;
}

.gradient {
    background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-violet) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.5);
}

/* Controls */
.controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
}

.control-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--color-fg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-center;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.control-btn:hover {
    background: rgba(6, 182, 212, 0.2);
    color: var(--color-cyan);
    transform: scale(1.1);
}

.counter {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 600;
    min-width: 60px;
    text-align: center;
}

/* Canvas */
#canvas-container {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Info Panel */
.info-panel {
    position: absolute;
    bottom: 3rem;
    left: 4rem;
    display: flex;
    gap: 2rem;
    z-index: 100;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 1.5rem;
}

.info-label {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
}

.info-value {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-violet) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Instructions */
.instructions {
    position: absolute;
    bottom: 3rem;
    right: 4rem;
    z-index: 100;
}

.instructions p {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    text-align: right;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header,
.info-panel,
.instructions {
    animation: fadeIn 1s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 5rem 1.5rem 1.5rem;
        /* More top padding for navbar */
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        text-align: center;
    }

    .title {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .controls {
        width: 100%;
        justify-content: center;
    }

    .info-panel {
        bottom: 5rem;
        /* Make space for shared navbar/controls if needed */
        left: 50%;
        transform: translateX(-50%);
        flex-direction: row;
        width: 90%;
        justify-content: center;
        gap: 0.5rem;
        padding: 0;
        border: none;
        background: transparent;
        backdrop-filter: none;
    }

    .info-item {
        padding: 0.5rem 1rem;
        flex: 1;
        align-items: center;
        min-width: 0;
        /* Allow shrinking */
    }

    .info-label {
        font-size: 0.5rem;
    }

    .info-value {
        font-size: 1rem;
    }

    .instructions {
        display: none;
        /* Hide instructions on mobile to clean up view */
    }
}