:root {
    --primary-color: #00ff41;
    --bg-color: #050505;
    --terminal-bg: rgba(10, 10, 10, 0.85);
    --warning-color: #ff3333;
    --info-color: #00e5ff;
}

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

body {
    background-color: var(--bg-color);
    color: var(--primary-color);
    font-family: 'Fira Code', monospace;
    overflow: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.screen {
    display: none;
    width: 100%;
    height: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
}

.screen.active {
    display: flex;
}

/* Scanlines effect */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0),
        rgba(255,255,255,0) 50%,
        rgba(0,0,0,0.2) 50%,
        rgba(0,0,0,0.2)
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 100;
}

/* Glitch Effect */
.glitch-container {
    position: relative;
    margin-bottom: 20px;
}

.glitch {
    font-size: 4rem;
    font-weight: 600;
    text-transform: uppercase;
    position: relative;
    text-shadow: 0.05em 0 0 rgba(255,0,0,0.75),
                -0.025em -0.05em 0 rgba(0,255,0,0.75),
                0.025em 0.05em 0 rgba(0,0,255,0.75);
    animation: glitch 500ms infinite;
}

.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: -2px 0 red;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

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

@keyframes glitch-anim {
    0% { clip: rect(10px, 9999px, 83px, 0); }
    20% { clip: rect(69px, 9999px, 18px, 0); }
    40% { clip: rect(32px, 9999px, 56px, 0); }
    60% { clip: rect(11px, 9999px, 98px, 0); }
    80% { clip: rect(74px, 9999px, 32px, 0); }
    100% { clip: rect(21px, 9999px, 64px, 0); }
}

.subtitle {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-align: center;
}

.cyber-input {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 15px;
    font-size: 1.2rem;
    font-family: inherit;
    text-align: center;
    width: 300px;
    margin-bottom: 25px;
    outline: none;
    box-shadow: inset 0 0 5px rgba(0, 255, 65, 0.2);
    transition: all 0.3s ease;
}

.cyber-input::placeholder {
    color: rgba(0, 255, 65, 0.4);
    letter-spacing: 1px;
}

.cyber-input:focus {
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.5), inset 0 0 10px rgba(0, 255, 65, 0.3);
    background: rgba(0, 255, 65, 0.05);
}

.cyber-btn {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 15px 40px;
    font-size: 1.2rem;
    font-family: inherit;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.2), inset 0 0 10px rgba(0, 255, 65, 0.1);
}

.cyber-btn:hover {
    background: var(--primary-color);
    color: var(--bg-color);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.6), inset 0 0 20px rgba(0, 255, 65, 0.4);
}

/* Terminal Screen */
#terminal-screen {
    padding: 2rem;
    align-items: center;
}

.terminal-header {
    width: 90%;
    max-width: 900px;
    background: #1e1e1e;
    padding: 10px 15px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    display: flex;
    align-items: center;
    border: 1px solid #333;
    border-bottom: none;
}

.mac-btns {
    display: flex;
    gap: 8px;
}

.mac-btns span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.close-btn { background: #ff5f56; }
.minimize { background: #ffbd2e; }
.maximize { background: #27c93f; }

.terminal-title {
    color: #aaa;
    font-size: 0.9rem;
    margin-left: 15px;
    flex-grow: 1;
    text-align: center;
}

.terminal-body {
    width: 90%;
    max-width: 900px;
    height: 70vh;
    background: var(--terminal-bg);
    border: 1px solid #333;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    padding: 20px;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #1e1e1e;
}

.terminal-body::-webkit-scrollbar {
    width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
    background: #1e1e1e;
}

.terminal-body::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
}

.line {
    margin-bottom: 8px;
    line-height: 1.4;
    word-break: break-all;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.3s forwards;
}

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

.prefix {
    color: var(--info-color);
    margin-right: 10px;
}

.warning { color: var(--warning-color); font-weight: bold; }
.success { color: var(--primary-color); }
.info { color: var(--info-color); }
.highlight { color: #fff; background: var(--primary-color); color: #000; padding: 0 4px; }

.cursor {
    display: inline-block;
    width: 10px;
    height: 1.2em;
    background-color: var(--primary-color);
    vertical-align: middle;
    animation: blink 1s step-end infinite;
}

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

.disclaimer-box {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid var(--info-color);
    background: rgba(0, 229, 255, 0.1);
    color: #fff;
    text-align: center;
    border-radius: 4px;
}

.loading-bar {
    width: 100%;
    height: 20px;
    border: 1px solid var(--primary-color);
    margin: 10px 0;
    position: relative;
}
.loading-fill {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.1s linear;
}

/* End Screen */
#end-screen {
    padding: 2rem;
    align-items: center;
    text-align: center;
}

.warning-banner {
    background: rgba(255, 51, 51, 0.1);
    border: 2px solid var(--warning-color);
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    margin-bottom: 40px;
    box-shadow: 0 0 20px rgba(255, 51, 51, 0.2);
    animation: pulse-warning 2s infinite;
}

.warning-banner h2 {
    color: var(--warning-color);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.warning-banner p {
    color: #fff;
    font-size: 1.1rem;
    line-height: 1.5;
}

@keyframes pulse-warning {
    0% { box-shadow: 0 0 10px rgba(255, 51, 51, 0.2); }
    50% { box-shadow: 0 0 30px rgba(255, 51, 51, 0.6); }
    100% { box-shadow: 0 0 10px rgba(255, 51, 51, 0.2); }
}

.profile-card {
    display: flex;
    align-items: center;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid var(--primary-color);
    padding: 20px 40px;
    border-radius: 8px;
    gap: 20px;
    box-shadow: 0 5px 15px rgba(0, 255, 65, 0.1);
}

.profile-avatar {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--bg-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: bold;
    box-shadow: 0 0 15px var(--primary-color);
}

.profile-info {
    text-align: left;
}

.profile-info h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.profile-info .role {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 8px;
}

.profile-info .social-links {
    color: #aaa;
    font-size: 0.9rem;
}
