/* ===================================================================
   Retro Terminal CSS - Authentic Terminal Look
   =================================================================== */

/* CSS Variables */
:root {
    --amber-primary: #ffb000;
    --amber-glow: #ff9500;
    --amber-dim: #aa7700;
    --bg-black: #0a0a0a;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    background: var(--bg-black);
    color: var(--amber-primary);
    font-family: 'Courier New', Courier, 'Lucida Console', Monaco, Consolas, monospace;
    font-size: 18px;
    line-height: 1.8;
}

/* Main Terminal Container */
.terminal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-black);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Scanlines Effect */
.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15) 0px,
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    z-index: 10;
}

/* Screen Container */
.screen-curvature {
    width: 90%;
    height: 90%;
    max-width: 900px;
    position: relative;
    border-radius: 15px;
    box-shadow: 
        inset 0 0 100px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(255, 180, 0, 0.15);
    overflow: auto;
    padding: 3rem;
}

/* CRT Vignette Effect */
.screen-curvature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at center,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.3) 70%,
        rgba(0, 0, 0, 0.7) 100%
    );
    pointer-events: none;
    z-index: 5;
}

/* Content Container */
.content {
    position: relative;
    z-index: 6;
    text-align: left;
    max-width: 100%;
}

/* All text gets same glow */
.content * {
    text-shadow: 0 0 5px var(--amber-glow);
}

/* Terminal Lines */
.terminal-line {
    margin-bottom: 0.5rem;
    font-size: 18px;
}

/* System messages - dimmer with flicker */
.system-msg {
    color: var(--amber-dim);
    animation: flicker 3s infinite;
}

/* Name - Bold */
.name {
    font-weight: bold;
    margin: 1rem 0 0.5rem 0;
}

/* Tagline - Dimmer with flicker */
.tagline {
    color: var(--amber-dim);
    animation: flicker 3s infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 0.5; }
    25%, 75% { opacity: 0.65; }
}

/* Links Section */
.terminal-nav {
    margin-top: 1.5rem;
}

.terminal-nav ul {
    list-style: none;
    text-align: left;
}

.terminal-nav li {
    margin-bottom: 0.3rem;
}

/* Links with > prefix */
.terminal-link {
    color: var(--amber-primary);
    text-decoration: none;
    font-size: 18px;
}

.terminal-link::before {
    content: '> ';
}

.terminal-link:hover {
    text-decoration: underline;
}

/* Blinking Cursor */
.terminal-cursor {
    display: inline-block;
    width: 12px;
    height: 20px;
    background: var(--amber-primary);
    animation: blink 1s step-end infinite;
    margin-top: 1rem;
    box-shadow: 0 0 5px var(--amber-glow);
}

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

/* Responsive Design - Tablet */
@media screen and (max-width: 1024px) {
    body {
        font-size: 16px;
    }
    
    .terminal-line,
    .terminal-link {
        font-size: 16px;
    }
    
    .screen-curvature {
        padding: 2rem;
    }
}

/* Responsive Design - Mobile */
@media screen and (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    .terminal-line,
    .terminal-link {
        font-size: 14px;
    }
    
    .screen-curvature {
        width: 95%;
        height: 95%;
        border-radius: 10px;
        padding: 1.5rem;
    }
}

/* Responsive Design - Small Mobile */
@media screen and (max-width: 480px) {
    body {
        font-size: 13px;
    }
    
    .terminal-line,
    .terminal-link {
        font-size: 13px;
    }
    
    .screen-curvature {
        padding: 1rem;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .terminal-cursor,
    .tagline,
    .system-msg {
        animation: none;
    }
}
