* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Animated Star Background */
.stars, .stars2, .stars3 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.stars {
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="white" opacity="0.8"/><circle cx="80" cy="40" r="0.5" fill="white" opacity="0.6"/><circle cx="40" cy="60" r="1.5" fill="white" opacity="0.4"/><circle cx="90" cy="80" r="1" fill="white" opacity="0.7"/><circle cx="10" cy="90" r="0.8" fill="white" opacity="0.5"/></svg>') repeat;
    animation: moveStars 200s linear infinite;
}

.stars2 {
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="30" cy="30" r="2" fill="cyan" opacity="0.3"/><circle cx="70" cy="70" r="1" fill="purple" opacity="0.4"/><circle cx="50" cy="10" r="1.5" fill="pink" opacity="0.2"/></svg>') repeat;
    animation: moveStars 300s linear infinite;
}

.stars3 {
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="60" cy="20" r="1" fill="yellow" opacity="0.6"/><circle cx="20" cy="80" r="0.5" fill="white" opacity="0.8"/><circle cx="80" cy="60" r="2" fill="blue" opacity="0.3"/></svg>') repeat;
    animation: moveStars 400s linear infinite;
}

@keyframes moveStars {
    from { transform: translateY(0px); }
    to { transform: translateY(-2000px); }
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.terminal {
    background: linear-gradient(145deg, rgba(10, 10, 20, 0.95), rgba(5, 5, 15, 0.95));
    border: 2px solid #4a9eff;
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    box-shadow: 
        0 0 30px rgba(74, 158, 255, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    position: relative;
    font-family: 'Courier New', monospace;
    overflow: hidden;
}

.terminal::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #4a9eff, #ff6b6b, #4ecdc4, #45b7d1);
    border-radius: 14px;
    z-index: -1;
    animation: borderGlow 3s ease-in-out infinite alternate;
}

@keyframes borderGlow {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.terminal-header {
    background: linear-gradient(145deg, rgba(20, 20, 30, 0.9), rgba(10, 10, 20, 0.9));
    border-bottom: 1px solid #4a9eff;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 10px 10px 0 0;
}

.terminal-title {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    color: #4a9eff;
    font-weight: bold;
}

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

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
}

.control.close {
    background: #ff5f57;
}

.control.minimize {
    background: #ffbd2e;
}

.control.maximize {
    background: #28ca42;
}

.terminal-content {
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
}

.terminal-line {
    margin-bottom: 8px;
    color: #ffffff;
}

.prompt {
    color: #4a9eff;
    font-weight: bold;
}

.command {
    color: #ffffff;
    margin-left: 5px;
}

.cursor {
    color: #4a9eff;
    animation: blink 1s infinite;
}

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

.neofetch-output {
    display: flex;
    gap: 30px;
    margin: 20px 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(74, 158, 255, 0.3);
    opacity: 0;
}

.neofetch-logo {
    flex-shrink: 0;
}

.neofetch-logo .profile-image {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    border: 2px solid #4a9eff;
    box-shadow: 0 0 25px rgba(74, 158, 255, 0.6);
    object-fit: cover;
}

.neofetch-info {
    flex: 1;
}

.neofetch-header {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.user {
    color: #4a9eff;
}

.separator {
    color: #ffffff;
}

.host {
    color: #ff6b6b;
}

.neofetch-separator {
    color: #666666;
    margin-bottom: 10px;
}

.neofetch-line {
    margin-bottom: 4px;
}

.label {
    color: #4a9eff;
    font-weight: bold;
    display: inline-block;
    width: 120px;
}

.value {
    color: #ffffff;
}

.whois-section {
    opacity: 0;
}

.whois-output {
    margin: 15px 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(74, 158, 255, 0.3);
    opacity: 0;
}

.whois-line {
    margin-bottom: 4px;
    color: #ffffff;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

#final-prompt {
    opacity: 0;
}

.menu-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
    opacity: 0;
}

.terminal-button {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: bold;
    padding: 8px 16px;
    border: 1px solid #4a9eff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    background: rgba(0, 0, 0, 0.3);
    color: #4a9eff;
    position: relative;
    overflow: hidden;
}

.terminal-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 158, 255, 0.2), transparent);
    transition: left 0.5s;
}

.terminal-button:hover::before {
    left: 100%;
}

.terminal-button.primary {
    background: rgba(74, 158, 255, 0.1);
    color: #4a9eff;
    border-color: #4a9eff;
}

.terminal-button.primary:hover {
    background: rgba(74, 158, 255, 0.2);
    box-shadow: 0 0 10px rgba(74, 158, 255, 0.4);
}

.terminal-button.secondary {
    background: rgba(0, 0, 0, 0.3);
    color: #a0a0a0;
    border-color: #a0a0a0;
}

.terminal-button.secondary:hover {
    background: rgba(160, 160, 160, 0.1);
    color: #ffffff;
    border-color: #ffffff;
}









/* Touch-friendly improvements for mobile */
@media (hover: none) and (pointer: coarse) {
    .terminal-button:hover {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(74, 158, 255, 0.2);
    }
}

/* Ensure adequate touch targets */
.terminal-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
}

/* Responsive Design */
@media (max-width: 768px) {
    .terminal {
        margin: 10px;
        max-width: 95%;
    }
    
    .terminal-content {
        padding: 15px;
        font-size: 0.8rem;
    }
    
    .terminal-header {
        padding: 10px 15px;
    }
    
    .terminal-title {
        font-size: 0.9rem;
    }
    
    .neofetch-output {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .neofetch-logo .profile-image {
        width: 100px;
        height: 100px;
    }
    
    .label {
        width: 100px;
        font-size: 0.8rem;
    }
    
    .value {
        font-size: 0.8rem;
    }
    
    .menu-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .terminal-button {
        width: 100%;
        max-width: 250px;
        padding: 10px 16px;
        font-size: 0.8rem;
    }
    
    .whois-line {
        font-size: 0.8rem;
    }
    
    .neofetch-line {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 5px;
    }
    
    .terminal {
        margin: 5px;
        border-radius: 8px;
    }
    
    .terminal-content {
        padding: 10px;
        font-size: 0.7rem;
    }
    
    .terminal-header {
        padding: 8px 12px;
    }
    
    .terminal-title {
        font-size: 0.8rem;
    }
    
    .control {
        width: 10px;
        height: 10px;
    }
    
    .neofetch-output {
        gap: 10px;
        padding: 10px;
    }
    
    .neofetch-logo .profile-image {
        width: 80px;
        height: 80px;
    }
    
    .label {
        width: 80px;
        font-size: 0.7rem;
    }
    
    .value {
        font-size: 0.7rem;
    }
    
    .terminal-button {
        max-width: 200px;
        padding: 8px 12px;
        font-size: 0.7rem;
    }
    
    .whois-line {
        font-size: 0.7rem;
    }
    
    .neofetch-line {
        font-size: 0.7rem;
    }
    
    .neofetch-header {
        font-size: 1rem;
    }
    
    .whois-output {
        padding: 10px;
    }
}