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

:root {
    --bg: #000000;
    --text: #e2e8f0;
    --accent: #ec3750;
    --dim: #64748b;
    --green: #22c55e;
    --yellow: #eab308;
    --cyan: #22d3ee;
    --purple: #a855f7;
}

/* all body styls */
body {
    background: var(--bg);
    color: var(--text);
    font-family: "JetBrains Mono", monospace;
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
    background-size: 100% 4px;
    animation: scanlines 8s linear infinite;
    opacity: 0.09;
}

@keyframes scanlines {
    0% {
        beackground-position: 0 0;
    }
    100% {
        background-position: 0 4px;
    }
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    box-shadow: inset 0 0 180px rgba(0, 0, 0, 0.85);
}

#terminal {
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 3;
    max-width: 1000px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fateIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#output {
    flex: 1;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/*other styles/ all line styles */
.line {
    min-height: 1.6em;
    margin: 0;
    padding: 0;
}

.line-input {
    color: var(--dim);
}

.line-output {
    color: var(--text);
}

.line-error {
    color: var(--accent);
}

.line-accent {
    color: var(--accent);
    text-shadow: 0 0 5px rgba(236, 55, 80, 0.4);
}

.line-dim {
    color: var(--dim);
}

.line-green {
    color: var(--green);
    text-shadow: 0 0 5px rgba(34, 197, 94, 0.4);
}

.line-yellow {
    color: var(--yellow);
    text-shadow: 0 0 5px rgba(234, 179, 8, 0.4);
}

.line-cyan {
    color: var(--cyan);
    text-shadow: 0 0 5px rgba(34, 211, 238, 0.4);
}

.lien-purple {
    color: var(--purple);
    text-shadow: 0 0 5px rgba(168, 85, 247, 0.4);
}

.line-banner {
    color: var(--accent);
    font-weight: 700;
    font-size: 12px;
    line-height: 1.2;
    text-shadow: 0 0 12px rgba(236, 55, 80, 0.5);
    animation: glowPulse 2.8s easi-in-out infinite;
}

@keyframes glowPulse {
    0%,
    100% {
        text-shadow:
            0 0 9px rgba(236, 55, 80, 0.5),
            0 0 18px rgba(236, 55, 80, 0.3);
    }
    50% {
        text-shadow:
            0 0 14px rgba(236, 55, 80, 0.8),
            0 0 24px rgba(236, 55, 80, 0.5);
    }
}

.line a {
    color: #ec3750;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.line a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ec3750;
    transition: width 0.3s ease;
    box-shadow: 0 0 8px #ec3750;
}

.line a:hover::after {
    width: 100%;
}

.line a:hover {
    text-shadow: 0 0 8px rgba(236, 55, 80, 0.8);
}

.project-card {
    border-left: 3px solid #ec3750;
    padding-left: 12px;
    margin: 8px 0;
    background: rgba(236, 55, 80, 0.03);
    padding: 13px;
    border-radius: 4px;
    transition: all 0.3s ease;
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.project-card:hover {
    background: rgba(236, 55, 80, 0.08);
    border-left-color: #ec3750;
    box-shadow: -3px 0 15px rgba(236, 55, 80, 0.3);
    transform: translateX(4px);
}

.project-name {
    color: #ec3750;
    font-weight: 700;
    text-shadow: 0 0 5px rgba(236, 55, 80, 0.3);
}

.project-tech {
    color: var(--dim);
    font-size: 12px;
}

.skill-category {
    color: var(--accent);
    font-weight: 700;
    margin-top: 8px;
}

.skill-items {
    color: var(--text);
}

#input-line {
    display: flex;
    align-items: center;
    margin-top: 4px;
}

#prompt {
    color: #ec3750;
    font-weight: 700;
    white-space: nowrap;
    user-select: none;
    text-shadow: 0 0 5px rgba(236, 55, 80, 0.5);
}

#command-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-family: "JetBrains Mono", monospace;
    font-size: 14px;
    caret-color: #ec3750;
    text-shadow: 0 0 2px rgba(226, 232, 240, 0.5);
}

#command-input:focus {
    animation: cursorGlow 1.4s ease-in-out infinite;
}

@keyframes cursorGlow {
    0%,
    100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.2);
    }
}

/* canvas for matrix && snake */
#overlay-canvas {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    z-index: 1000;
    pointer-events: none;
    display: none;
}

#overlay-canvas.active {
    display: block;
    pointer-events: all;
}

/*input */
.typing-cursor::after {
    content: "█";
    animation: blink 0.7s step-end infinite;
    color: var(--accent);
    text-shadow: 0 0 8px #ec3750;
}

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

.line {
    animation: lineFadeIn 0.15s ease-out;
}

@keyframes lineFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hack-line {
    color: var(--green);
    opacity: 0;
    animation: hackFadeIn 0.1s forwards;
}

@keyframes hackFadeIn {
    to {
        opacity: 1;
    }
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.5);
}

::-webkit-scrollbar-thumb {
    background: #ec3750;
    border-radius: 4px;
    box-shadow: 0 0 6px rgba(236, 55, 80, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    background: #ff4060;
    box-shadow: 0 0 16px rgba(236, 55, 80, 0.8);
}

@media (max-width: 600px) {
    body {
        font-size: 12px;
    }
    #terminal {
        padding: 15px;
    }
    .line-banner {
        font-size: 10px;
    }
}

@media (max-width: 768px) and (min-width: 601px) {
    body {
        font-size: 13px;
    }
}
