:root {
    --bg-deep: #05020a;
    --text-main: #c4b5fd;
}

.terminal-box {
    background-color: rgba(20, 20, 25, 0.8);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    width: 100%;
    max-width: 480px;
    padding: 2rem;
    border-top: 2px solid #b026ff;
    border-left: 2px solid #b026ff;
    border-right: 2px solid #4a1275;
    border-bottom: 2px solid #4a1275;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(176, 38, 255, 0.2);
}

.terminal-box h1 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 0 0 5px #b026ff;
}

.clock-display {
    font-family: 'Share Tech Mono', monospace;
    font-size: 2.5rem;
    color: #fff;
    text-align: center;
    display: block;
    width: 100%;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px #b026ff, 0 0 20px #791aab;
    border-bottom: 1px dashed rgba(176, 38, 255, 0.4);
    padding-bottom: 0.5rem;
    letter-spacing: 3px;
}

.page-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    max-width: 1000px;
    width: 100%;
}

body {
    background-color: var(--bg-deep);
    background-image: linear-gradient(rgba(5, 2, 10, 0.85), rgba(5, 2, 10, 0.85)), 
                        url('wallpaper.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-main);
    font-family: 'Share Tech Mono', monospace;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    position: relative;
    animation: page-fade-in 5.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes page-fade-in {
    0% {
        opacity: 0;
        filter: brightness(0);
    }
    100% {
        opacity: 1;
        filter: brightness(1);
    }
}

.side-quote {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(20, 20, 25, 0.8);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    width: 260px;
    padding: 1.5rem;
    border-top: 2px solid #b026ff;
    border-left: 2px solid #b026ff;
    border-right: 2px solid #4a1275;
    border-bottom: 2px solid #4a1275;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(176, 38, 255, 0.2);
    font-size: 0.95rem;
    color: #e0aaff;
    line-height: 1.6;
    font-style: italic;
    text-shadow: 0 0 5px rgba(176, 38, 255, 0.4);
}

.side-cli {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(20, 20, 25, 0.8);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    width: 280px;
    padding: 1.2rem;
    border-top: 2px solid #b026ff;
    border-left: 2px solid #b026ff;
    border-right: 2px solid #4a1275;
    border-bottom: 2px solid #4a1275;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(176, 38, 255, 0.2);
}

.cli-header {
    font-size: 0.8rem;
    color: #b026ff;
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
    border-bottom: 1px dashed rgba(176, 38, 255, 0.3);
    padding-bottom: 4px;
}

.cli-output {
    max-height: 140px;
    overflow-y: auto;
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #c4b5fd;
    border-left: 2px solid rgba(176, 38, 255, 0.4);
    padding-left: 8px;
}

.cli-output::-webkit-scrollbar {
    width: 3px;
}

.cli-output::-webkit-scrollbar-thumb {
    background: #b026ff;
}

.cli-line-user {
    margin-bottom: 0.3rem;
    color: #fff;
}

.cli-line-response {
    margin-bottom: 0.6rem;
    color: #e0aaff;
    text-shadow: 0 0 3px rgba(176, 38, 255, 0.3);
}

.cli-form {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(10, 5, 20, 0.5);
    border: 1px solid rgba(176, 38, 255, 0.3);
    padding: 4px 8px;
}

.cli-prompt {
    color: #b026ff;
    font-weight: bold;
    white-space: nowrap;
    font-size: 0.9rem;
}

#cli-input {
    background: transparent;
    border: none;
    color: #fff;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    width: 100%;
    outline: none;
}

.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.25) 50%
    ), linear-gradient(
        90deg,
        rgba(255, 0, 0, 0.03),
        rgba(0, 255, 0, 0.01),
        rgba(0, 0, 255, 0.03)
    );
    background-size: 100% 3px, 3px 100%;
    opacity: 0.8;
    animation: crt-flicker 0.15s infinite;
}

@keyframes crt-flicker {
    0% { opacity: 0.75; }
    50% { opacity: 0.85; }
    100% { opacity: 0.75; }
}

.terminal-box, .side-quote, .side-cli {
    will-change: transform;
}

.social-footer {
    margin-top: 1.5rem;
    border-top: 1px dashed rgba(176, 38, 255, 0.3);
    padding-top: 1rem;
    font-size: 0.8rem;
    color: #c4b5fd;
    text-shadow: 0 0 3px rgba(176, 38, 255, 0.4);
}

.social-label {
    color: #0f0;
    font-weight: bold;
    margin-right: 6px;
    text-shadow: 0 0 5px #0f0, 0 0 10px #0f0;
}