/* 
   BLACKCROW SYSTEM STYLES
   Version: 0.7.3
   
   // La mémoire persiste dans le code
   // Comme elle persiste dans les archives
*/

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

:root {
    --black: #000000;
    --dark: #0a0a0a;
    --gray-dark: #1a1a1a;
    --gray: #333333;
    --gray-light: #555555;
    --white: #ffffff;
    --white-dim: #cccccc;
}

body {
    background-color: var(--black);
    color: var(--white);
    font-family: 'Courier New', monospace;
    min-height: 100vh;
    overflow: hidden;
    cursor: default;
}

/* Scanlines overlay */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    z-index: 1000;
    opacity: 0.4;
}

/* Noise effect */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    animation: noise 0.5s steps(5) infinite;
}

@keyframes noise {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-1%, -1%); }
    20% { transform: translate(1%, 1%); }
    30% { transform: translate(-1%, 1%); }
    40% { transform: translate(1%, -1%); }
    50% { transform: translate(-1%, 0); }
    60% { transform: translate(1%, 0); }
    70% { transform: translate(0, 1%); }
    80% { transform: translate(0, -1%); }
    90% { transform: translate(1%, 1%); }
}

/* Main container */
.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Logo */
.logo-wrapper {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 3s ease-out, transform 3s ease-out;
}

.logo-wrapper.visible {
    opacity: 1;
    transform: scale(1);
}

.logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
}

@media (min-width: 768px) {
    .logo {
        width: 200px;
        height: 200px;
    }
}

/* Glitch effect on hover */
.logo-wrapper:hover .logo {
    animation: glitch 0.3s ease-in-out;
}

@keyframes glitch {
    0% { transform: translate(0); filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.1)); }
    20% { transform: translate(-2px, 2px); filter: drop-shadow(2px 0 0 rgba(255, 0, 0, 0.3)) drop-shadow(-2px 0 0 rgba(0, 255, 255, 0.3)); }
    40% { transform: translate(2px, -2px); filter: drop-shadow(-2px 0 0 rgba(255, 0, 0, 0.3)) drop-shadow(2px 0 0 rgba(0, 255, 255, 0.3)); }
    60% { transform: translate(-1px, 1px); filter: drop-shadow(1px 0 0 rgba(255, 0, 0, 0.3)) drop-shadow(-1px 0 0 rgba(0, 255, 255, 0.3)); }
    80% { transform: translate(1px, -1px); filter: drop-shadow(-1px 0 0 rgba(255, 0, 0, 0.3)) drop-shadow(1px 0 0 rgba(0, 255, 255, 0.3)); }
    100% { transform: translate(0); filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.1)); }
}

/* Terminal cursor */
.terminal {
    margin-top: 40px;
    opacity: 0;
    transition: opacity 1s ease-out;
    transition-delay: 2s;
}

.terminal.visible {
    opacity: 1;
}

.cursor {
    color: var(--gray-light);
    font-size: 18px;
    animation: blink 1s steps(1) infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Hidden input display */
.terminal-input {
    color: var(--gray-light);
    font-size: 14px;
    letter-spacing: 2px;
    margin-right: 5px;
}

/* Secret message */
.message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    color: var(--gray);
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0;
    pointer-events: none;
    text-align: center;
    z-index: 100;
    transition: opacity 0.5s ease-out;
}

.message.visible {
    animation: messageFlash 3s ease-out forwards;
}

@keyframes messageFlash {
    0% { opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; }
}

/* Random glitch effect that happens occasionally */
.glitch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 998;
    opacity: 0;
}

.glitch-overlay.active {
    animation: screenGlitch 0.2s ease-out;
}

@keyframes screenGlitch {
    0% { opacity: 0; background: transparent; }
    25% { opacity: 1; background: rgba(255, 255, 255, 0.02); transform: translateX(-2px); }
    50% { opacity: 1; background: rgba(0, 0, 0, 0.5); transform: translateX(2px); }
    75% { opacity: 1; background: rgba(255, 255, 255, 0.02); transform: translateX(-1px); }
    100% { opacity: 0; background: transparent; transform: translateX(0); }
}

/* Hidden elements */
.hidden-text {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

/* Selection style */
::selection {
    background: var(--gray);
    color: var(--white);
}

/* Scrollbar - hide it */
::-webkit-scrollbar {
    display: none;
}

body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
