@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&display=swap");

* {
    font-family: "JetBrains Mono", monospace;
}

body {
    background: #0a0a0a;
    color: #39ff14; /* Softer green for less eye strain */
    font-size: 1.15em; /* Slightly larger base font size */
    line-height: 1.7; /* More comfortable line spacing */
    padding: 0 1em; /* Add horizontal padding for content */
}

.terminal-scanline {
    position: relative;
}

.terminal-scanline::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(0, 255, 0, 0.1);
    animation: scanline 8s linear infinite;
    pointer-events: none;
}

.crt-effect {
    text-shadow: 0 0 5px rgba(57, 255, 20, 0.5);
}

.prompt::before {
    content: "$ ";
    color: #39ff14;
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 1.2em;
    background: #39ff14;
    animation: blink 1s step-end infinite;
}

.ascii-art {
    line-height: 1.3;
    white-space: pre;
}

.link-hover {
    transition: all 0.2s;
    color: #fff;
    text-decoration: underline;
}

.link-hover:hover {
    background: rgba(57, 255, 20, 0.15);
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.8);
    color: #39ff14;
}

.glitch {
    position: relative;
}

.glitch::before {
    content: attr(data-text);
    position: absolute;
    left: 2px;
    text-shadow: -2px 0 #ff00ff;
    top: 0;
    color: #00ff00;
    overflow: hidden;
    clip: rect(0, 900px, 0, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(42px, 9999px, 44px, 0); }
    5% { clip: rect(12px, 9999px, 59px, 0); }
    10% { clip: rect(48px, 9999px, 29px, 0); }
    15% { clip: rect(42px, 9999px, 73px, 0); }
    20% { clip: rect(63px, 9999px, 27px, 0); }
    25% { clip: rect(34px, 9999px, 55px, 0); }
    30% { clip: rect(86px, 9999px, 73px, 0); }
    35% { clip: rect(20px, 9999px, 20px, 0); }
    40% { clip: rect(26px, 9999px, 60px, 0); }
    45% { clip: rect(25px, 9999px, 66px, 0); }
    50% { clip: rect(57px, 9999px, 98px, 0); }
    55% { clip: rect(5px, 9999px, 46px, 0); }
    60% { clip: rect(82px, 9999px, 31px, 0); }
    65% { clip: rect(54px, 9999px, 27px, 0); }
    70% { clip: rect(28px, 9999px, 99px, 0); }
    75% { clip: rect(45px, 9999px, 69px, 0); }
    80% { clip: rect(23px, 9999px, 85px, 0); }
    85% { clip: rect(54px, 9999px, 84px, 0); }
    90% { clip: rect(45px, 9999px, 47px, 0); }
    95% { clip: rect(37px, 9999px, 20px, 0); }
    100% { clip: rect(4px, 9999px, 91px, 0); }
}

.icon {
    filter: invert(1);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    body {
        font-size: 1em; /* Reduce from 1.15em */
        line-height: 1.6; /* Reduce from 1.7 */
        padding: 0 0.5em; /* Reduce padding */
    }
}

/* Rounded corners for cards and borders */
.border,
.border-2,
.border-l-4,
.border-l-2,
.border-t-2,
.border-b-2 {
    border-radius: 4px;
}

/* Markdown-style heading enhancement */
.text-green-400.font-bold {
    display: block;
    font-size: 1.15em;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    margin-bottom: 0.75em;
}