.cursor {
    display: inline-block;
    width: 10px;
    height: 20px;
    background-color: #00ff00;
    animation: blink 1s step-end infinite;
}

.typing-text::after {
    content: '|';
    animation: blink 0.7s infinite;
}

/* CLI styles */
/* CLI styles */
#cli {
    background-color: #000000;
    color: #ffffff;
    padding: 20px;
    border: 1px solid #333333;
    margin: 30px auto 4% auto;
    max-width: 950px;
    box-sizing: border-box;
    position: relative;
    height: 500px;
    font-family: 'Consolas', 'Courier New', monospace;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(5px);
    margin-top: 50px; /* Increased top margin */
}

#cli-output {
    height: calc(100% - 40px);
    margin-bottom: 10px;
    white-space: pre-wrap;
    overflow-y: auto;
    font-size: 14px;
    padding-bottom: 30px;
    line-height: 1.5;
}

#cli-input-line {
    display: flex;
    align-items: center;
    position: absolute;
    left: 20px;
    bottom: 10px;
    width: calc(100% - 40px);
    background-color: rgba(0, 0, 0, 0.6);
    padding: 5px;
    border-radius: 4px;
}

#cli-input {
    flex-grow: 1;
    background-color: transparent;
    border: none;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    padding: 5px;
}

/* Updated prompt style */
#cli-input-line::before {
    content: 'ali@developer:~$ ';  /* Your preferred CLI prompt */
    color: #00ff00;
    margin-right: 5px;
    font-weight: bold;
}

/* Enhanced syntax highlighting */
.cli-keyword { 
    color: #ff7b00; 
    font-weight: bold;
}
.cli-string { 
    color: #ffd700; 
}
.cli-number { 
    color: #00ffff; 
}
.cli-comment { 
    color: #808080; 
    font-style: italic;
}
.cli-variable { 
    color: #ff69b4; 
}
.cli-function { 
    color: #00ff00; 
    font-weight: bold;
}
.cli-error { 
    color: #ff3333; 
    font-weight: bold;
}
.cli-success { 
    color: #00ff00; 
}

/* Link styles */
.cli-link {
    color: #3498db;
    text-decoration: underline;
    cursor: pointer;
}

.cli-link:hover {
    color: #2980b9;
}

/* Improved scrollbar styles */
#cli-output::-webkit-scrollbar {
    width: 8px;
    background-color: #1a1a1a;
}

#cli-output::-webkit-scrollbar-thumb {
    background-color: #333333;
    border: 2px solid #1a1a1a;
    border-radius: 4px;
    transition: background-color 0.3s;
}

#cli-output::-webkit-scrollbar-thumb:hover {
    background-color: #444444;
}

#cli-output::-webkit-scrollbar-track {
    background-color: #1a1a1a;
    border-radius: 4px;
}

/* Selection style */
::selection {
    background: rgba(0, 255, 0, 0.2);
    color: #ffffff;
}

/* Optional: Add a subtle glow effect */
#cli::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.1);
    pointer-events: none;
}

/* Enhanced terminal header */
#cli::before {
    content: '';
    position: absolute;
    top: -30px; /* Positioning above the terminal */
    left: 0;
    right: 0;
    height: 30px;
    background: #1c1c1c;
    border-radius: 8px 8px 0 0;
    border: 1px solid #333333;
    border-bottom: none;
}

/* Terminal control buttons */
#cli::after {
    content: '';
    position: absolute;
    top: -22px; /* Positioning buttons within the header */
    left: 15px;
    width: 12px;
    height: 12px;
    background: #ff5f57; /* Red close button */
    border-radius: 50%;
    box-shadow: 
        20px 0 0 #febc2e, /* Yellow minimize button */
        40px 0 0 #28c841; /* Green maximize button */
}
#cli-output {
    height: calc(100% - 40px);
    margin-bottom: 10px;
    white-space: pre-wrap;
    overflow-y: auto;
    font-size: 14px;
    padding-bottom: 30px;
    line-height: 1.5;
    padding-top: 10px; /* Added top padding */
}

/* Optional: Add title to the terminal */
.terminal-title {
    position: absolute;
    top: -25px;
    left: 0;
    right: 0;
    text-align: center;
    color: #999;
    font-size: 13px;
    font-weight: 500;
    z-index: 1;
}

/* Boot sequence styles */
#boot-sequence {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    color: #0f0;
    font-family: 'Courier New', monospace;
    padding: 20px;
    box-sizing: border-box;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

#boot-text {
    font-size: 16px;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Skill bars */
#skills-container {
    width: 100%;
    max-width: 750px;
   margin: 100px auto;
}

/* .skill-bar {
    margin-bottom: 20px;
} */

.skill-name {
    margin-bottom: 5px;
    color: #00ff00;
}

/* .skill-bar-container {
    position: relative;
    background-color: #111;
    border: 1px solid #00ff00;
    height: 20px;
} */

.skill-level {
    height: 100%;
    background-color: #00ff00;
    transition: width 1s ease-out;
}

.skill-percentage {
    position: absolute;
    right: -40px;
    top: -15%;
    transform: translateY(-50%);
    color: #00ff00;
}

/* CRT effect */
body::before,
body::after {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    pointer-events: none;
}

body::before {
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
    z-index: 2;
}

body::after {
    background: rgba(18, 16, 16, 0.1);
    opacity: 0;
    z-index: 2;
    animation: flicker 0.15s infinite;
}

@keyframes flicker {
    0% { opacity: 0.27861; }
    5% { opacity: 0.34769; }
    10% { opacity: 0.23604; }
    15% { opacity: 0.90626; }
    20% { opacity: 0.18128; }
    25% { opacity: 0.83891; }
    30% { opacity: 0.65583; }
    35% { opacity: 0.67807; }
    40% { opacity: 0.26559; }
    45% { opacity: 0.84693; }
    50% { opacity: 0.96019; }
    55% { opacity: 0.08594; }
    60% { opacity: 0.20313; }
    65% { opacity: 0.71988; }
    70% { opacity: 0.53455; }
    75% { opacity: 0.37288; }
    80% { opacity: 0.71428; }
    85% { opacity: 0.70419; }
    90% { opacity: 0.7003; }
    95% { opacity: 0.36108; }
    100% { opacity: 0.24387; }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 16px;
    background-color: #001100;
}

::-webkit-scrollbar-thumb {
    background-color: #00ff00;
    border: 3px solid #001100;
    border-radius: 0;
    box-shadow: inset 0 0 10px #00ff00;
}

::-webkit-scrollbar-thumb:hover {
    box-shadow: 0 0 15px #00ff00;
}

::-webkit-scrollbar-track {
    background-color: #000;
    box-shadow: inset 0 0 10px #001100;
}

/* Media query for responsiveness */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 0.5rem 0;
    }
}

/* command line contacts */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css');

.cli-link {
    color: #91def8;
    /* text-decoration: underline; */
    cursor: pointer;
    transition: color 0.3s ease;
}

.cli-link:hover {
    color: #2a70c2;
}

.cli-link i {
    margin-right: 5px;
}

/* skills bar container */


/* also for the Cli, suggestion/hover/selected/timestamp */
#cli-suggestions {
    position: absolute;
    bottom: 100%;
    left: 0;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    max-height: 150px;
    overflow-y: auto;
    display: none;
    width: 200px;
    z-index: 1000;
}

.suggestion-item {
    padding: 5px 10px;
    cursor: pointer;
    color: #0f0;
}

.suggestion-item:hover,
.suggestion-item.selected {
    background: #333;
}

.cli-timestamp {
    color: #666;
    font-size: 0.8em;
    margin-right: 8px;
}


