:root {
    --bg-primary: #000000;
    --bg-secondary: #050505;
    --bg-terminal: #000000;
    --color-primary: #00cc99;
    --color-secondary: #9333ea;
    --color-text: #00ff00;
    --color-dim: #008800;
    --color-error: #cc0044;
    --color-warning: #cc8800;
    --glow-color: rgba(0, 255, 204, 0.1);
    --font-mono: 'Courier New', Courier, monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-primary);
    color: var(--color-text);
    font-family: var(--font-mono);
    overflow: hidden;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(0, 255, 0, 0.03) 0px,
            transparent 1px,
            transparent 2px,
            rgba(0, 255, 0, 0.03) 3px
        );
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
    z-index: 1;
}

.entrance-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.entrance-modal.hidden {
    display: none;
}

.modal-content {
    background: var(--bg-terminal);
    border: 1px solid var(--color-dim);
    border-radius: 4px;
    padding: 30px 40px;
    text-align: center;
    max-width: 600px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.modal-logo {
    margin-bottom: 20px;
}

.modal-logo-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 0 2px rgba(147, 51, 234, 0.3));
}

.modal-prompt {
    color: var(--color-primary);
    font-family: var(--font-mono);
    font-size: 11px;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.modal-question {
    color: var(--color-text);
    font-family: var(--font-mono);
    font-size: 13px;
    margin-bottom: 30px;
    letter-spacing: 1px;
    line-height: 1.4;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-btn {
    background: var(--bg-primary);
    border: 1px solid var(--color-dim);
    color: var(--color-text);
    font-family: var(--font-mono);
    font-size: 12px;
    padding: 10px 30px;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 1px;
}

.modal-btn:hover {
    border-color: var(--color-text);
    background: rgba(0, 255, 0, 0.1);
}

.modal-btn-yes {
    border-color: var(--color-text);
}

.modal-btn-yes:hover {
    background: rgba(0, 255, 0, 0.15);
}

.modal-btn-no {
    border-color: var(--color-dim);
    color: var(--color-dim);
}

.modal-btn-no:hover {
    border-color: var(--color-error);
    color: var(--color-error);
    background: rgba(204, 0, 68, 0.1);
}

.crt {
    width: 100%;
    height: 100vh;
    background: linear-gradient(to bottom, rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.03));
    background-size: 100% 3px, 2px 100%;
    position: relative;
    animation: flicker 0.15s infinite;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scanline {
    width: 100%;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.02) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: scanline 8s linear infinite;
    pointer-events: none;
    z-index: 1000;
}

.terminal-container {
    max-width: 1200px;
    width: calc(100% - 40px);
    height: calc(100vh - 40px);
    margin: 0;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid var(--color-dim);
    border-radius: 4px;
    box-shadow: 
        0 0 5px rgba(0, 0, 0, 0.5),
        inset 0 0 100px rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    padding: 20px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(2px);
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--color-primary);
    margin-bottom: 20px;
}

.header-text {
    color: var(--color-dim);
    font-size: 11px;
    letter-spacing: 1px;
}

.header-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-dim);
    font-size: 10px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--color-text);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.terminal-output {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px 0;
    line-height: 1.4;
    font-size: 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--color-dim) var(--bg-secondary);
}

.terminal-output::-webkit-scrollbar {
    width: 6px;
}

.terminal-output::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.terminal-output::-webkit-scrollbar-thumb {
    background: var(--color-dim);
    border-radius: 2px;
}

.terminal-output p {
    margin: 5px 0;
    color: var(--color-text);
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 20px;
}

.terminal-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 0 2px rgba(147, 51, 234, 0.3));
    margin-bottom: 15px;
}

.ascii-title {
    color: var(--color-primary);
    font-size: 8px;
    line-height: 1;
    text-align: center;
    white-space: pre;
    font-family: var(--font-mono);
    margin-bottom: 15px;
    opacity: 0.9;
}

.social-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.social-link {
    color: var(--color-secondary);
    text-decoration: none;
    font-size: 11px;
    cursor: pointer;
    transition: color 0.2s ease;
    letter-spacing: 1px;
}

.social-link:hover {
    color: var(--color-primary);
}

.link-separator {
    color: var(--color-dim);
    font-size: 11px;
}

.boot-text p {
    animation: fadeIn 0.5s ease-in;
}

.divider {
    color: var(--color-secondary);
    opacity: 0.5;
    margin: 15px 0;
}

.welcome-msg {
    color: var(--color-primary);
}

.highlight {
    color: var(--color-secondary);
    font-weight: normal;
}

.command {
    color: var(--color-text);
    text-shadow: 0 0 1px rgba(0, 255, 0, 0.3);
}

.output-line {
    color: var(--color-dim);
    padding-left: 20px;
}

.command-list {
    color: var(--color-text);
    margin: 3px 0;
    padding-left: 10px;
}


.success {
    color: var(--color-text);
}

.info {
    color: var(--color-primary);
}

.link {
    color: var(--color-secondary);
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s ease;
}

.link:hover {
    color: var(--color-primary);
}

.terminal-input-line {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid var(--color-primary);
}

.prompt {
    color: var(--color-dim);
    font-weight: normal;
    white-space: nowrap;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--color-text);
    font-family: var(--font-mono);
    font-size: 12px;
    caret-color: transparent;
    text-shadow: 0 0 1px rgba(0, 255, 0, 0.5);
}

.cursor-blink {
    color: var(--color-text);
    animation: blink 1s step-end infinite;
}

.typewriter {
    opacity: 0;
    animation: typewriter 0.8s ease-in forwards;
    animation-fill-mode: forwards;
}

@keyframes flicker {
    0% {
        opacity: 0.98;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.98;
    }
}

@keyframes scanline {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes typewriter {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .terminal-container {
        width: calc(100% - 20px);
        height: calc(100vh - 20px);
        margin: 0;
        padding: 15px;
    }

    .header-text {
        font-size: 9px;
        letter-spacing: 0.5px;
    }

    .header-status {
        font-size: 9px;
    }

    .terminal-output {
        font-size: 11px;
    }

    .terminal-logo {
        width: 80px;
        height: 80px;
    }

    .ascii-title {
        font-size: 6px;
    }

    .social-links {
        gap: 8px;
    }

    .social-link {
        font-size: 10px;
    }

    .prompt {
        font-size: 11px;
    }

    .terminal-input {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .terminal-container {
        width: calc(100% - 10px);
        height: calc(100vh - 10px);
        margin: 0;
        border-radius: 2px;
        padding: 10px;
    }

    .header-text {
        font-size: 8px;
    }

    .terminal-output {
        font-size: 10px;
    }

    .terminal-logo {
        width: 60px;
        height: 60px;
    }

    .ascii-title {
        font-size: 5px;
    }

    .social-links {
        gap: 6px;
        font-size: 9px;
    }

    .social-link {
        font-size: 9px;
    }

    .link-separator {
        font-size: 9px;
    }

    .terminal-input-line {
        gap: 5px;
    }

    .prompt {
        font-size: 10px;
    }

    .terminal-input {
        font-size: 10px;
    }

    .modal-content {
        padding: 25px 15px;
        max-width: 90%;
    }

    .modal-logo-img {
        width: 80px;
        height: 80px;
    }

    .modal-prompt {
        font-size: 10px;
        margin-bottom: 12px;
    }

    .modal-question {
        font-size: 11px;
        margin-bottom: 20px;
    }

    .modal-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .modal-btn {
        width: 100%;
        padding: 10px 20px;
        font-size: 11px;
    }
}

@media (orientation: landscape) and (max-height: 600px) {
    .terminal-container {
        height: 98vh;
        padding: 10px;
    }

    .terminal-header {
        padding-bottom: 10px;
        margin-bottom: 10px;
    }

    .terminal-input-line {
        padding-top: 10px;
    }
}

.error {
    color: var(--color-error);
}

