@font-face {
    font-family: 'ZX Spectrum';
    src: url('zx-spectrum.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-smooth: never;
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: unset;
    text-rendering: optimizeSpeed;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

body {
    background: radial-gradient(ellipse at center, #0a0a0a 0%, #000 70%);
    color: rgba(255, 140, 40, 0.7);
    caret-color: rgb(255, 200, 80) !important;
    font-family: 'ZX Spectrum', 'Courier New', monospace;
    font-size: 16px;
    line-height: 1.2;
    overflow: hidden;
    height: 100vh;
    font-smooth: never;
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: unset;
    text-rendering: optimizeSpeed;
}

.terminal {
    width: 100%;
    height: 100vh;
    background: #000;
    position: relative;
}

.terminal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 10;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 140, 40, 0.2) 2px,
            rgba(255, 140, 40, 0.2) 4px,
            transparent 4px,
            transparent 8px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(255, 140, 40, 0.1) 2px,
            rgba(255, 140, 40, 0.1) 4px
        );
    animation: scanlines 0.05s linear infinite, raster-move 2s linear infinite;
    opacity: 1;
}

.terminal::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at center, transparent 0%, rgba(0, 255, 65, 0.02) 100%),
        linear-gradient(90deg, 
            rgba(255, 0, 130, 0.02) 0%, 
            transparent 25%, 
            transparent 75%, 
            rgba(0, 255, 130, 0.02) 100%
        );
    pointer-events: none;
}

.screen {
    width: 100%;
    height: 100%;
    padding: 40px;
    background: 
        radial-gradient(ellipse at center, #001a00 0%, #000800 70%, #000400 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    filter: 
        contrast(1.4) 
        brightness(1.3) 
        saturate(1.2);
    overflow: hidden;
    transform: perspective(1200px) rotateX(0.5deg) scale3d(1.015, 0.985, 1);
    clip-path: polygon(
        1% 1%, 99% 1%,
        99.5% 3%, 99.5% 97%,
        99% 99%, 1% 99%,
        0.5% 97%, 0.5% 3%
    );
}

.screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(180deg, 
            rgba(0, 255, 65, 0.02) 0%, 
            transparent 50%, 
            rgba(0, 255, 65, 0.02) 100%
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 6px,
            rgba(0, 255, 65, 0.03) 6px,
            rgba(0, 255, 65, 0.03) 8px
        );
    pointer-events: none;
    animation: scanline-drift 8s infinite ease-in-out;
}

.content {
    text-align: left;
    text-transform: none;
    letter-spacing: 2px;
    position: relative;
    z-index: 2;
    filter: blur(0.8px);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.top-section {
    display: flex;
    flex-direction: column;
}

.bottom-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.terminal-line {
    position: relative;
    display: block;
    margin: 0;
    padding: 0;
}

.content::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background-image: 
        url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/><feColorMatrix values="0 0 0 0 0, 0 0.2 0 0 0, 0 0.8 0 0 0, 0 0 0 1 0"/></filter></defs><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.03"/></svg>');
    background-size: 200px 200px;
    pointer-events: none;
    z-index: -1;
    animation: static-noise 0.1s infinite linear;
    opacity: 0.4;
}

#title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 30px;
    margin-left: -10px;
    color: rgb(255, 140, 40);
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

#tagline {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 40px;
    color: rgb(255, 140, 40);
    opacity: 0.9;
    letter-spacing: 1px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

#contact {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 40px;
    margin-left: -10px;
    color: rgb(255, 140, 40);
    opacity: 0.9;
    letter-spacing: 1px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.cursor {
    display: inline-block;
    background-color: rgb(255, 140, 40) !important;
    color: transparent !important;
    width: 1ch;
    height: 1.2em;
    animation: cursor-blink 1s infinite;
    font-weight: bold;
    border-radius: 1px;
    position: relative;
    z-index: 10;
    vertical-align: top;
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

* {
    caret-color: rgb(255, 200, 80) !important;
}


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

@keyframes scanlines {
    0% { transform: translateY(0px); }
    100% { transform: translateY(4px); }
}

@keyframes raster-move {
    0% { transform: translateY(0px) scaleY(1); }
    25% { transform: translateY(-1px) scaleY(0.99); }
    50% { transform: translateY(0px) scaleY(1.01); }
    75% { transform: translateY(1px) scaleY(0.99); }
    100% { transform: translateY(0px) scaleY(1); }
}


@keyframes scanline-drift {
    0% { transform: translateY(0px); }
    25% { transform: translateY(-2px); }
    50% { transform: translateY(1px); }
    75% { transform: translateY(-1px); }
    100% { transform: translateY(0px); }
}


@keyframes static-noise {
    0% { transform: translateX(0px) translateY(0px); }
    10% { transform: translateX(-1px) translateY(-1px); }
    20% { transform: translateX(1px) translateY(1px); }
    30% { transform: translateX(-1px) translateY(1px); }
    40% { transform: translateX(1px) translateY(-1px); }
    50% { transform: translateX(-1px) translateY(-1px); }
    60% { transform: translateX(1px) translateY(1px); }
    70% { transform: translateX(-1px) translateY(1px); }
    80% { transform: translateX(1px) translateY(-1px); }
    90% { transform: translateX(-1px) translateY(-1px); }
    100% { transform: translateX(0px) translateY(0px); }
}

@keyframes horizontal-interference {
    0% { transform: translateX(0px); }
    20% { transform: translateX(1px); }
    40% { transform: translateX(-1px); }
    60% { transform: translateX(2px); }
    80% { transform: translateX(-2px); }
    100% { transform: translateX(0px); }
}





@media (max-width: 768px) {
    .terminal {
        width: 95%;
        height: 70%;
        border: 6px solid #1a1a1a;
        border-radius: 20px;
    }
    
    .screen {
        padding: 30px 20px;
        border-radius: 14px;
    }
    
    #title {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    
    #tagline {
        font-size: 1rem;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .terminal {
        border: 4px solid #1a1a1a;
        border-radius: 15px;
    }
    
    .screen {
        border-radius: 11px;
    }
    
    #title {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    
    #tagline {
        font-size: 0.9rem;
        letter-spacing: 0.5px;
    }
    
    .screen {
        padding: 20px 15px;
    }
}