@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Courier+Prime:wght@400;700&display=swap');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier Prime', monospace;
    background: #000;
    color: #00ff00;
    overflow: hidden;
    height: 100vh;
}

/* Main splash container */
.splash-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(ellipse at center, #001100 0%, #000000 100%);
}

/* CRT monitor effect */
.crt-effect {
    position: relative;
    background: #000;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 
        0 0 20px rgba(0, 255, 0, 0.3),
        inset 0 0 20px rgba(0, 255, 0, 0.1);
    max-width: 800px;
    width: 90%;
}

.crt-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        transparent 0%,
        rgba(0, 255, 0, 0.03) 50%,
        transparent 100%
    );
    background-size: 100% 4px;
    animation: scan-lines 0.1s linear infinite;
    pointer-events: none;
}

/* Terminal window */
.terminal-window {
    background: #001100;
    border: 2px solid #00ff00;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0, 255, 0, 0.2);
}

.terminal-header {
    background: #003300;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #00ff00;
}

.terminal-title {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    color: #00ff00;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.7);
}

.terminal-controls {
    display: flex;
    gap: 5px;
}

.control-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.5);
}

.control-dot.red { background: #ff4444; }
.control-dot.yellow { background: #ffff44; }
.control-dot.green { background: #44ff44; }

/* Terminal content */
.terminal-content {
    padding: 20px;
    min-height: 500px;
}

/* Boot sequence animation */
.boot-sequence {
    margin-bottom: 30px;
}

.boot-line {
    opacity: 0;
    animation: type-in 0.5s ease-in forwards;
    margin-bottom: 5px;
    font-size: 14px;
}

.boot-line.delay-1 { animation-delay: 0.5s; }
.boot-line.delay-2 { animation-delay: 1s; }
.boot-line.delay-3 { animation-delay: 1.5s; }
.boot-line.delay-4 { animation-delay: 2s; }

/* Welcome text */
.welcome-text {
    text-align: center;
    margin: 40px 0;
    animation: fade-in 1s ease-in 2.5s forwards;
    opacity: 0;
}

.glow-text {
    font-family: 'Orbitron', monospace;
    font-size: 2.5em;
    font-weight: 900;
    color: #00ff00;
    text-shadow: 
        0 0 5px rgba(0, 255, 0, 0.8),
        0 0 10px rgba(0, 255, 0, 0.6),
        0 0 15px rgba(0, 255, 0, 0.4);
    margin-bottom: 20px;
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

.subtitle {
    font-size: 1.2em;
    color: #66ff66;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.description {
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.6;
    color: #ccffcc;
}

/* Name input section */
.name-input-section {
    animation: slide-up 0.8s ease-out 3s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.input-group {
    margin-bottom: 20px;
    text-align: center;
}

.terminal-prompt {
    display: block;
    margin-bottom: 10px;
    color: #00ff00;
    font-weight: bold;
    text-shadow: 0 0 3px rgba(0, 255, 0, 0.7);
}

.terminal-input {
    background: #000;
    border: 2px solid #00ff00;
    color: #00ff00;
    padding: 12px 15px;
    font-family: 'Courier Prime', monospace;
    font-size: 16px;
    width: 300px;
    max-width: 100%;
    border-radius: 4px;
    box-shadow: 
        inset 0 0 5px rgba(0, 255, 0, 0.2),
        0 0 10px rgba(0, 255, 0, 0.1);
    transition: all 0.3s ease;
}

.terminal-input:focus {
    outline: none;
    box-shadow: 
        inset 0 0 5px rgba(0, 255, 0, 0.4),
        0 0 15px rgba(0, 255, 0, 0.3);
    background: #001100;
}

.terminal-input::placeholder {
    color: #556655;
    opacity: 1;
}

.start-button {
    background: linear-gradient(145deg, #004400, #006600);
    border: 2px solid #00ff00;
    color: #ffffff;
    padding: 15px 30px;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.start-button:hover {
    background: linear-gradient(145deg, #006600, #008800);
    box-shadow: 
        0 6px 12px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(0, 255, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.start-button:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Warning text */
.warning-text {
    margin-top: 30px;
    text-align: center;
    font-size: 12px;
    color: #ffff00;
    opacity: 0;
    animation: fade-in 1s ease-in 4s forwards;
}

/* Background effects */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 0, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 0, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 20s linear infinite;
    pointer-events: none;
    z-index: -1;
}

.scan-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        transparent 0%,
        rgba(0, 255, 0, 0.02) 50%,
        transparent 100%
    );
    background-size: 100% 2px;
    animation: scan-lines 0.1s linear infinite;
    pointer-events: none;
    z-index: 1;
}

/* Animations */
@keyframes type-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slide-up {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes pulse-glow {
    from { 
        text-shadow: 
            0 0 5px rgba(0, 255, 0, 0.8),
            0 0 10px rgba(0, 255, 0, 0.6),
            0 0 15px rgba(0, 255, 0, 0.4);
    }
    to { 
        text-shadow: 
            0 0 10px rgba(0, 255, 0, 1),
            0 0 20px rgba(0, 255, 0, 0.8),
            0 0 30px rgba(0, 255, 0, 0.6);
    }
}

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

@keyframes scan-lines {
    0% { transform: translateY(0); }
    100% { transform: translateY(2px); }
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Responsive design */
@media (max-width: 768px) {
    .glow-text {
        font-size: 2em;
    }
    
    .terminal-input {
        width: 250px;
    }
    
    .terminal-content {
        padding: 15px;
    }
}