/* Import Google Font for the techy look */
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

/* CSS Variables for easy theme management */
:root {
    --primary-red: #ff0000;
    --dark-red: #b00000;
    --background-color: #000000;
    --text-color: #e0e0e0;
    --glow-color: rgba(255, 0, 0, 0.75);
}

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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--background-color);
    font-family: 'Share Tech Mono', monospace;
    color: var(--text-color);
    cursor: none; /* Hide default cursor */
}

.hidden {
    display: none !important;
}

/* --- Preloader / Boot Sequence Styles --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-color);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

#boot-text-container {
    width: 80%;
    max-width: 600px;
    border: 1px solid rgba(255, 0, 0, 0.2);
    padding: 20px;
    background: rgba(255, 0, 0, 0.05);
    margin-bottom: 2rem;
}

#boot-text::after {
    content: '_';
    animation: blink 0.7s infinite;
    color: var(--primary-red);
}

.progress-bar-container {
    width: 80%;
    max-width: 600px;
    height: 10px;
    border: 1px solid var(--dark-red);
    padding: 2px;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background-color: var(--primary-red);
    box-shadow: 0 0 10px var(--glow-color);
    transition: width 0.1s linear; /* Smooths the progress */
}

.boot-footer {
    position: absolute;
    bottom: 2rem;
    font-size: 0.8rem;
    opacity: 0.5;
    animation: flicker 2s infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

@keyframes flicker {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}


/* --- Matrix Canvas Background --- */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0; /* Will be faded in by JS */
    transition: opacity 2s ease-in-out;
}

/* --- Main Content and Image Styles --- */
#main-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

/* --- The Almighty Glitch Effect --- */
.glitch-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: main-fade-in 3s ease-out;
}

.glitch-image {
    position: relative;
    --glitch-slice-1: 1;
    --glitch-slice-2: 1;
    --glitch-slice-3: 1;
    --glitch-slice-4: 1;
    --glitch-slice-5: 1;
    filter: drop-shadow(0 0 15px var(--glow-color));
    animation: pulse 4s infinite ease-in-out;
}

.glitch-image img {
    max-width: 70vw;
    max-height: 80vh;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

.glitch-image::before,
.glitch-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Path updated for clarity */
    background: url(./art.jpg);
    background-size: cover;
    background-position: center;
    opacity: 0.8;
    z-index: 1;
}

.glitch-image::before {
    animation: glitch-anim-1 2.5s infinite linear alternate-reverse;
    clip-path: polygon(
        0 calc(20% * var(--glitch-slice-1)),
        100% calc(20% * var(--glitch-slice-1)),
        100% calc(25% * var(--glitch-slice-1)),
        0 calc(25% * var(--glitch-slice-1))
    );
}

.glitch-image::after {
    animation: glitch-anim-2 2s infinite linear alternate;
    clip-path: polygon(
        0 calc(60% * var(--glitch-slice-2)),
        100% calc(60% * var(--glitch-slice-2)),
        100% calc(65% * var(--glitch-slice-2)),
        0 calc(65% * var(--glitch-slice-2))
    );
}


@keyframes glitch-anim-1 {
    0%, 100% { transform: translate(0, 0); opacity: 0.8; }
    10% { transform: translate(10px, -5px); }
    20% { transform: translate(-10px, 5px); }
    30% { transform: translate(15px, -10px); }
    40% { opacity: 0.3; }
    50% { transform: translate(-15px, 10px); filter: hue-rotate(90deg); }
    60% { transform: translate(5px, -5px); }
    70% { opacity: 0.8; }
    80% { transform: translate(-20px, 15px); }
    90% { transform: translate(10px, -10px); }
    100% { filter: hue-rotate(0deg); }
}

@keyframes glitch-anim-2 {
    0%, 100% { transform: translate(0, 0); opacity: 0.8; }
    15% { transform: translate(-12px, 3px); }
    25% { transform: translate(12px, -3px); filter: hue-rotate(180deg); }
    40% { opacity: 0.2; }
    55% { transform: translate(8px, -6px); }
    70% { transform: translate(-8px, 6px); filter: hue-rotate(0deg); opacity: 0.9; }
    85% { transform: translate(15px, -15px); }
}


@keyframes main-fade-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        filter: drop-shadow(0 0 15px var(--glow-color));
    }
    50% {
        filter: drop-shadow(0 0 30px var(--primary-red));
    }
}

/* --- Spotlight Overlay Effect --- */
#spotlight-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 99;
    background: radial-gradient(circle 250px at 50% 50%, transparent 0%, rgba(0,0,0,0.95) 100%);
}

/* --- AUDIO CONTROL STYLES HAVE BEEN COMPLETELY REMOVED --- */