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

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #e2e8f0;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 1s ease-out;
}

.header {
    text-align: center;
    margin-bottom: 3rem;
    animation: slideInDown 1s ease-out 0.2s both;
}

.name {
    display: flex;
    justify-content: center;
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #bb86fc, #03dac6);
    background-size: 200% 200%;
    background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
    animation: gradientShift 3s ease-in-out infinite;
}

.terminal-content {
    border-radius: 16px;
    box-shadow: 0 2px 18px rgba(20, 20, 35, 0.6);
    padding: 2.2rem 1.5rem;
    margin-top: 1rem;
    font-family: "Fira Mono", "Consolas", monospace;
    font-size: 1.1rem;
    position: relative;
}

.prompt-line {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    margin-bottom: 0.5rem;
}

.user, .at, .host, .path, .dollar {
    font-weight: 600;
}

.user { color: #4ecdc4; }
.at { color: #94a3b8; }
.host { color: #ff6b6b; }
.path { color: #bb86fc; }
.dollar { color: #03dac6; }
.command {
    color: #e2e8f0;
    font-weight: 500;
    letter-spacing: 0.03em;
}
.cursor {
    width: 0.6ch;
    background: #e2e8f0;
    animation: blink 1s steps(2, start) infinite;
    display: inline-block;
    height: 1em;
    vertical-align: middle;
}
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.output-hidden {
    margin-top: 1.2rem;
    min-height: 3rem;
    transition: opacity 0.6s;
    opacity: 1;
}
.output-hidden.typing {
    animation: fadeInUp 0.8s ease;
}
.hidden {
    display: none !important;
}

.info-line {
    display: flex;
    gap: 0.7rem;
    margin-bottom: 0.3rem;
    align-items: baseline;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s forwards;
    animation-delay: 0s;
}
.output-hidden .info-line:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
}
.label {
    font-weight: 600;
    color: #bb86fc;
    min-width: 80px;
    letter-spacing: 0.03em;
}
.value {
    color: #e2e8f0;
}
.value.highlight {
    color: #4ecdc4;
    font-weight: 600;
    word-break: break-all;
}

.terminal-buttons {
    display: flex;
    gap: 0.5rem;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
}
.btn {
    color:  #e0def4;
    text-decoration: none;
    font-size: 0.6rem;
    padding: 0.6rem 0.8rem;
    border: 2px solid transparent;
    border-radius: 100%;
    background-color: #2a273f;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
}

.btn.close:hover {
    background: rgba(187, 134, 252, 0.08);
    border-color: rgba(187, 134, 252, 0.25); 
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(187, 134, 252, 0.2); 
    color: #bb86fc;
}

.btn.close i {
    color: #fff;
    font-size: 1.2rem;
}

.btn.close:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(187, 134, 252, 0.4);
}

#final-prompt {
    margin-top: 2.5rem;
}

@media (max-width: 600px) {
    .container {
        padding: 0 6px;
    }
    .name {
        font-size: 2rem;
    }
    .terminal-content {
        padding: 0.9rem 0.3rem;
        font-size: 0.8rem;
    }
    .header {
        margin-bottom: 1.5rem;
    }
    .btn{
        font-size: 0.2rem;
    }
}
