@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

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

body {
    background: #000000;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

/* MATRIX RAIN CANVAS */
#matrixCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.15;
    pointer-events: none;
}

/* MOVING BLACK & WHITE LINES */
.moving-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.line.horizontal {
    position: absolute;
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, transparent, #fff, #fff, transparent);
}

.line.vertical {
    position: absolute;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, transparent, #fff, #fff, transparent);
}

@keyframes moveLine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes moveLineVertical {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* SCANNER EFFECT */
.scanner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg, transparent, transparent 50%, rgba(255, 255, 255, 0.02) 50%, rgba(255, 255, 255, 0.02) 51%);
    pointer-events: none;
    z-index: 1;
    animation: scanMove 8s linear infinite;
}

@keyframes scanMove {
    0% { background-position: 0 0; }
    100% { background-position: 0 20px; }
}

/* SPLASH SCREEN */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: opacity 1s ease, visibility 1s ease;
}

.splash-content {
    text-align: center;
    border: 2px solid #fff;
    padding: 3rem 5rem;
    background: #050505;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { border-color: rgba(255,255,255,0.3); box-shadow: 0 0 10px rgba(255,255,255,0.1); }
    50% { border-color: rgba(255,255,255,1); box-shadow: 0 0 30px rgba(255,255,255,0.3); }
}

.splash-text {
    font-size: 2rem;
    letter-spacing: 4px;
    color: #fff;
    text-transform: uppercase;
    font-weight: bold;
}

.splash-sub {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #888;
    letter-spacing: 2px;
}

.cursor-blink {
    display: inline-block;
    width: 10px;
    height: 1.2rem;
    background: #fff;
    vertical-align: middle;
    margin-left: 5px;
    animation: blinkCursor 1s step-end infinite;
}

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

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* PROGRESS BAR OVERLAY */
.progress-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #000;
    border: 1px solid #fff;
    padding: 20px;
    z-index: 1001;
    display: none;
    flex-direction: column;
    gap: 10px;
    min-width: 300px;
    background: #0a0a0a;
}
.progress-bar-container {
    width: 100%;
    height: 20px;
    border: 1px solid #fff;
    background: #000;
}
.progress-fill {
    width: 0%;
    height: 100%;
    background: #fff;
    transition: width 0.05s linear;
}
.progress-text {
    color: #fff;
    text-align: center;
    font-family: monospace;
}

/* MAIN CONTENT */
.main-content {
    opacity: 0;
    transition: opacity 1s ease;
    width: 100%;
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.main-content.visible {
    opacity: 1;
}

/* TERMINAL */
.terminal {
    width: 100%;
    background: #0a0a0a;
    border: 1px solid #333;
    padding: 2rem;
    position: relative;
    backdrop-filter: blur(2px);
}

.terminal::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: none;
    animation: borderPulse 3s ease-in-out infinite;
}

@keyframes borderPulse {
    0%, 100% { border-color: rgba(255, 255, 255, 0.1); }
    50% { border-color: rgba(255, 255, 255, 0.5); }
}

.glitch-header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid #333;
    padding-bottom: 1.2rem;
}

.nick {
    font-size: 3.2rem;
    font-weight: bold;
    letter-spacing: 4px;
    color: #fff;
    text-shadow: 0 0 5px #fff;
    word-break: break-word;
    position: relative;
    display: inline-block;
    transition: all 0.1s ease;
}
.nick:hover {
    animation: glitchHover 0.2s infinite;
}
@keyframes glitchHover {
    0% { transform: translate(0); text-shadow: 0 0 2px #fff; }
    25% { transform: translate(-1px, 1px); text-shadow: -1px 0 #aaa; }
    50% { transform: translate(1px, -1px); text-shadow: 1px 0 #fff; }
    75% { transform: translate(-0.5px, -0.5px); text-shadow: 0 0 3px #fff; }
    100% { transform: translate(0); }
}

.nick::before,
.nick::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.nick::before {
    animation: glitch-1 0.8s infinite;
    color: #aaa;
    z-index: -1;
}

.nick::after {
    animation: glitch-2 0.8s infinite;
    color: #fff;
    z-index: -1;
}

@keyframes glitch-1 {
    0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
    20% { clip-path: inset(20% 0 30% 0); transform: translate(-1px, 1px); }
    40% { clip-path: inset(10% 0 60% 0); transform: translate(1px, -1px); }
    60% { clip-path: inset(40% 0 20% 0); transform: translate(0.5px, 0.5px); }
    80% { clip-path: inset(70% 0 5% 0); transform: translate(-0.5px, -0.5px); }
}

@keyframes glitch-2 {
    0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
    20% { clip-path: inset(60% 0 10% 0); transform: translate(1px, -1px); }
    40% { clip-path: inset(30% 0 40% 0); transform: translate(-1px, 0.5px); }
    60% { clip-path: inset(15% 0 55% 0); transform: translate(0.5px, -0.5px); }
    80% { clip-path: inset(80% 0 5% 0); transform: translate(-0.5px, 1px); }
}

.id-line {
    margin-top: 12px;
    font-size: 0.9rem;
    color: #888;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.age, .role {
    padding: 4px 12px;
    font-weight: bold;
    letter-spacing: 1px;
}

.age { color: #fff; border: 1px solid #fff; background: #000; }
.role { color: #aaa; border: 1px solid #aaa; background: #000; }

.tech-section {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.level {
    background: #050505;
    border-left: 2px solid;
    padding: 1rem 1.2rem;
}

.level.learning { border-left-color: #aaa; }
.level.mastering { border-left-color: #fff; }

.level-header {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
    font-weight: bold;
}

.learning .level-header { color: #aaa; }
.mastering .level-header { color: #fff; text-shadow: 0 0 2px #fff; }

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-tag {
    background: #000;
    border: 1px solid #333;
    padding: 5px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #ccc;
    transition: 0.2s;
    font-family: monospace;
}

.skill-tag:hover {
    border-color: #fff;
    color: #fff;
    background: #111;
}

.logs-section {
    margin: 1rem 0;
    background: #050505;
    border: 1px solid #333;
    padding: 0.8rem;
    font-size: 0.7rem;
    color: #888;
    height: 100px;
    overflow-y: auto;
    font-family: monospace;
}
.log-line {
    color: #aaa;
    border-left: 2px solid #fff;
    padding-left: 8px;
    margin: 4px 0;
}
.log-line.ok { color: #0f0; border-left-color: #0f0; }
.log-line.warn { color: #ff0; border-left-color: #ff0; }
.log-line.info { color: #fff; border-left-color: #fff; }

.doing-section {
    margin: 1.5rem 0;
    background: #050505;
    border: 1px solid #333;
    padding: 1rem;
}

.doing-header {
    font-size: 0.8rem;
    color: #888;
    letter-spacing: 2px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.doing-content {
    color: #fff;
    font-family: monospace;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.prompt-sign {
    color: #0f0;
    animation: blinkPrompt 1s step-end infinite;
}

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

.command-section {
    margin: 1rem 0;
    background: #050505;
    border: 1px solid #333;
    padding: 0.8rem;
}
.command-prompt {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.command-input {
    background: #000;
    border: 1px solid #fff;
    color: #fff;
    font-family: monospace;
    padding: 5px 10px;
    flex: 1;
    outline: none;
}
.command-output {
    margin-top: 8px;
    color: #0f0;
    font-size: 0.8rem;
    border-top: 1px dashed #333;
    padding-top: 8px;
}

.connect {
    margin: 2rem 0 1.5rem;
    background: #050505;
    padding: 1rem;
    border: 1px dashed #333;
    text-align: center;
}

.connect-title {
    font-size: 1rem;
    color: #888;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cyber-link {
    text-decoration: none;
    color: #fff;
    background: #000;
    padding: 8px 20px;
    border: 1px solid #fff;
    font-weight: bold;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cyber-link:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.counter-area {
    text-align: center;
    margin-top: 1.8rem;
    padding-top: 1rem;
    border-top: 1px solid #333;
}

.counter-label {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: #666;
    text-transform: uppercase;
}

.visits-number {
    font-size: 2.8rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 5px #fff;
    background: #000;
    display: inline-block;
    padding: 0rem 1rem;
    letter-spacing: 4px;
    font-family: monospace;
    border: 1px solid #333;
}

.bottom-bar {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    font-size: 0.7rem;
    color: #666;
    border-top: 1px solid #333;
    padding-top: 0.8rem;
}

.boot-line {
    font-size: 0.7rem;
    text-align: center;
    margin-top: 1rem;
    color: #666;
    animation: blink 1.2s step-end infinite;
}

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

@media (max-width: 550px) {
    .terminal { padding: 1rem; }
    .nick { font-size: 2rem; }
    .visits-number { font-size: 2rem; }
    .skill-tag { font-size: 0.7rem; }
    .splash-content { padding: 2rem 3rem; }
    .splash-text { font-size: 1.2rem; }
}

::-webkit-scrollbar { width: 2px; background: #000; }
::-webkit-scrollbar-thumb { background: #fff; }