@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0a0a0a;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'VT323', monospace;
    overflow: hidden;
}

.monitor-container {
    perspective: 1000px;
}

.monitor {
    width: 900px;
    height: 650px;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 20px;
    padding: 40px 40px 60px 40px;
    box-shadow: 
        0 0 50px rgba(0, 0, 0, 0.8),
        inset 0 0 30px rgba(255, 255, 255, 0.1);
    position: relative;
    border: 3px solid #333;
}

.monitor::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    background: linear-gradient(135deg, #3a3a3a, #2a2a2a);
    border-radius: 15px;
    z-index: -1;
}

.screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    border: 2px solid #444;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 0, 0.03) 2px,
            rgba(0, 255, 0, 0.03) 4px
        );
    pointer-events: none;
    z-index: 2;
    animation: scanlines 0.1s linear infinite;
}

.screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
    z-index: 3;
}

.terminal {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    padding: 20px;
    position: relative;
    z-index: 1;
}

.terminal-content {
    color: #00ff00;
    font-size: 24px;
    line-height: 1.6;
    letter-spacing: 0.1em;
    word-spacing: 0.2em;
    /* reduced global glow */
    text-shadow: 0 0 4px rgba(0, 255, 0, 0.6);
    animation: textGlow 2s ease-in-out infinite alternate;
}

.line {
    margin-top: 8px;
}

.terminal-link {
    color: #8aff5a;
    text-decoration: none;
    border-bottom: 1px dashed rgba(138, 255, 90, 0.2);
}

.terminal-link:hover {
    color: #b7ff88;
    text-shadow: 0 0 8px rgba(183, 255, 136, 0.6);
}

/* special stronger glow for important/call-to-action links */
.terminal-link.glow {
    color: #b7ff88;
    text-shadow: 0 0 12px rgba(183,255,136,0.9), 0 0 20px rgba(183,255,136,0.6);
}

.indent {
    display: inline-block;
    margin-left: 2em;
}

.prompt {
    display: inline;
    margin-right: 10px;
    color: #00ff41;
}

.text {
    display: inline-block;
    margin-left: 5px;
}

.cursor {
    display: inline-block;
    width: 12px;
    height: 24px;
    background: #00ff00;
    margin-left: 5px;
    animation: blink 1s infinite;
    vertical-align: top;
    margin-top: 2px;
}

.monitor-bottom {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 120px;
    height: 30px;
    background: linear-gradient(145deg, #3a3a3a, #2a2a2a);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #555;
    padding: 0 15px;
}

.brand-logo {
    color: #888;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo img {
    max-height: 20px;
    max-width: 180px;
    object-fit: contain;
    filter: 
        brightness(1.1)
        contrast(1.2)
        saturate(1.3)
        drop-shadow(0 1px 2px rgba(255, 255, 255, 0.2))
        drop-shadow(0 -1px 1px rgba(0, 0, 0, 0.3));
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

@keyframes textGlow {
    0% { text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00; }
    100% { text-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00; }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Additional CRT effects */
.screen {
    animation: flicker 0.15s infinite linear;
}

@keyframes flicker {
    0% { opacity: 1; }
    98% { opacity: 1; }
    99% { opacity: 0.98; }
    100% { opacity: 1; }
}

/* Responsive design */
@media (max-width: 1000px) {
    .monitor {
        width: 90vw;
        height: 65vh;
        padding: 20px 20px 40px 20px;
    }
    
    .terminal-content {
        font-size: 18px;
    }
    
    .brand-logo {
        font-size: 10px;
    }
}

@media (max-width: 768px) {
    .monitor {
        width: 95vw;
        height: 60vh;
        padding: 15px 15px 35px 15px;
    }
    
    .terminal-content {
        font-size: 16px;
    }
}