/* Retro CRT Monitor Styling */
body {
    background-color: #030a05;
    color: #39ff14; /* Classic neon terminal green */
    font-family: 'Courier New', Courier, monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    overflow: hidden;
    text-shadow: 0 0 5px rgba(57, 255, 20, 0.7);
    padding: 20px; /* Prevents container from hitting screen edges on mobile */
    box-sizing: border-box;
}

/* Scanline Overlay Effect */
body::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 2;
    background-size: 100% 4px, 6px 100%;
    pointer-events: none;
}

/* Screen Flicker Simulation */
.terminal-container {
    text-align: left;
    border: 2px solid #39ff14;
    padding: 40px 30px;
    background-color: rgba(5, 20, 5, 0.85);
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.3);
    border-radius: 4px;
    animation: flicker 0.15s infinite;
    max-width: 100%;
    box-sizing: border-box;
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
    white-space: nowrap;
    text-align: center;
}

p {
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 8px;
    opacity: 0.85;
    line-height: 1.4;
}

p:last-of-type {
    margin-bottom: 0;
}

/* Blinking Cursor */
.cursor {
    display: inline-block;
    background-color: #39ff14;
    width: 10px;
    height: 18px;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
    margin-left: 5px;
}

/* 📱 Responsive Mobile Adjustments */
@media (max-width: 600px) {
    .terminal-container {
        padding: 25px 15px; /* Shrinks container padding on small screens */
    }

    h1 {
        font-size: 5.5vw; /* Fluid font size: scales perfectly with screen width */
        letter-spacing: 1px;
        margin-bottom: 10px;
    }

    p {
        font-size: 3.8vw; /* Fluid scaling for description text */
    }
    
    .cursor {
        width: 8px;
        height: 14px;
    }
}

/* Animations */
@keyframes blink {
    from, to { background-color: transparent }
    50% { background-color: #39ff14; }
}

@keyframes flicker {
    0% { opacity: 0.98; }
    50% { opacity: 1; }
    100% { opacity: 0.99; }
}
