:root {
    --bg-color: #000000;
    --text-primary: #00ff00; /* Terminal green */
    --text-neon-pink: #9900ff;
    --text-neon-cyan: #ffffff;
    --crt-bg: rgba(18, 16, 16, 0.95);
}

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

body, html {
    height: 100%;
    margin: 0;
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    overflow-x: hidden;
}

/* CRT EFFECTS */
.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
    z-index: 998;
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 999;
    animation: scanlines-anim 10s linear infinite;
    opacity: 0.3;
}

@keyframes scanlines-anim {
    0% { background-position: 0 0; }
    100% { background-position: 0 100vh; }
}

/* LAYOUT */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* TYPOGRAPHY & GLITCH */
h1, h2 {
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    text-shadow: 0 0 10px var(--text-primary);
}

header {
    text-align: center;
    margin-bottom: 20px;
}

.glitch {
    font-size: clamp(1rem, 5vw, 2rem);
    position: relative;
    color: var(--text-primary);
    margin-bottom: 20px;
    white-space: nowrap;
    display: inline-block;
}

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

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 var(--text-neon-pink);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 var(--text-neon-cyan);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(28px, 9999px, 69px, 0); }
    20% { clip: rect(51px, 9999px, 9px, 0); }
    40% { clip: rect(93px, 9999px, 20px, 0); }
    60% { clip: rect(6px, 9999px, 64px, 0); }
    80% { clip: rect(81px, 9999px, 32px, 0); }
    100% { clip: rect(27px, 9999px, 7px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(31px, 9999px, 83px, 0); }
    20% { clip: rect(74px, 9999px, 17px, 0); }
    40% { clip: rect(10px, 9999px, 66px, 0); }
    60% { clip: rect(92px, 9999px, 47px, 0); }
    80% { clip: rect(22px, 9999px, 11px, 0); }
    100% { clip: rect(55px, 9999px, 28px, 0); }
}

/* TYPING ANIMATION */
.typing-animation {
    width: fit-content;
    margin: 0 auto;
    border-right: 2px solid var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    animation: typing 2s steps(22, end), blink-caret .5s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--text-primary) }
}

.blink {
    animation: blinker 1s linear infinite;
}

.blink-slow {
    animation: blinker 2s linear infinite;
}

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

/* RETRO BORDERS */
.retro-border {
    border: 2px solid var(--text-primary);
    padding: 20px;
    box-shadow: 0 0 10px var(--text-primary), inset 0 0 10px var(--text-primary);
    background-color: rgba(0, 255, 0, 0.05);
}

.section-title {
    font-size: 18px;
    margin-bottom: 25px;
    color: var(--text-neon-cyan);
    text-shadow: 0 0 5px var(--text-neon-cyan);
}

/* DISCORD PROFILE CARD */
.profile-content {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.avatar-container {
    position: relative;
    width: 100px;
    height: 100px;
    border: 2px solid var(--text-neon-pink);
    box-shadow: 0 0 10px var(--text-neon-pink);
    padding: 4px;
}

.avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: pixelated; /* Retro blocky image look */
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.display-name {
    font-size: 20px;
    color: #fff;
    text-shadow: 0 0 8px #fff;
    font-weight: bold;
}

.username {
    font-size: 1.2rem;
    color: var(--text-primary);
}

.action-btn-container {
    text-align: right;
}

/* BUTTONS */
.btn-retro {
    display: inline-block;
    padding: 8px 16px;
    text-decoration: none;
    color: var(--text-neon-pink);
    background: transparent;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    border: none;
    cursor: pointer;
    text-shadow: 0 0 5px var(--text-neon-pink);
    transition: all 0.3s ease;
}

.btn-retro:hover {
    color: var(--bg-color);
    background-color: var(--text-neon-pink);
    box-shadow: 0 0 15px var(--text-neon-pink);
    text-shadow: none;
}

/* SKILLS LIST */
.skills-list {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.skills-list li {
    font-size: 14px;
    display: flex;
    gap: 10px;
}

.prompt {
    color: var(--text-neon-cyan);
}

footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #555;
}

/* SECRET BUTTON */
#secret-btn {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 40px;
    background-color: transparent;
    cursor: crosshair;
    z-index: 10001; /* Above overlays */
}
#secret-btn:hover {
    background-color: var(--text-neon-pink);
    opacity: 0.2;
    box-shadow: 0 0 10px var(--text-neon-pink);
}

/* RESPONSIVE MOBILE ADJUSTMENTS */
@media (max-width: 600px) {
    body, html {
        font-size: 16px;
    }

    .container {
        padding: 20px 15px;
    }

    .fingerprint-btn, .progress-bar-container {
        width: 100%;
        max-width: 320px;
    }

    .profile-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .action-btn-container {
        text-align: center;
        margin-top: 15px;
    }

    .display-name {
        font-size: 1.5rem;
    }

    .skills-list li {
        font-size: 1.2rem;
        flex-direction: column;
        gap: 5px;
        margin-bottom: 15px;
    }

    .boot-sequence {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1rem;
        text-align: center;
    }
}

/* INTRO OVERLAY */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-color);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 1s ease-out;
}

.intro-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.cmd-window {
    width: 650px;
    max-width: 95vw;
    background-color: #2b0213; /* Deep Ubuntu purple/black hybrid */
    border: 1px solid #444;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    z-index: 10001;
}

.cmd-topbar {
    background-color: #2d2d2d;
    color: #dfdfdf;
    padding: 6px 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #1a1a1a;
    border-radius: 8px 8px 0 0;
}

.linux-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.linux-controls .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.linux-controls .red { background-color: #ff5f56; }
.linux-controls .yellow { background-color: #ffbd2e; }
.linux-controls .green { background-color: #27c93f; }

.prompt-user {
    color: #8ae234; /* Green user */
    font-weight: bold;
}

.prompt-dir {
    color: #729fcf; /* Blue path */
    font-weight: bold;
}

.cmd-content {
    padding: 15px;
    text-align: left;
    color: #cccccc;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 14px;
    min-height: 350px;
    overflow-y: auto;
}

.cmd-content p {
    margin-bottom: 5px;
}

.cmd-input-line {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.cmd-input {
    background: transparent;
    border: none;
    color: #cccccc;
    font-family: inherit;
    font-size: inherit;
    outline: none;
    flex-grow: 1;
    margin-left: 5px;
}

.error-text {
    color: #ff5555;
    margin-top: 10px;
}

.boot-sequence {
    width: 90%;
    max-width: 700px;
    text-align: left;
    font-size: 14px;
}

.boot-sequence.hidden {
    display: none;
}

.boot-sequence ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.boot-sequence li {
    margin-bottom: 10px;
    color: var(--text-primary);
}

.typing-cursor {
    display: inline-block;
    width: 15px;
    height: 25px;
    background-color: var(--text-primary);
    vertical-align: bottom;
    margin-left: 5px;
}

/* MATRIX CANVAS */
.matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

