:root {
    --bg-color: #0a0a0a;
    --terminal-green: #00ff00;
    --terminal-green-dark: #00aa00;
    --terminal-green-glow: rgba(0, 255, 0, 0.2);
    --terminal-header: #001100;
    --terminal-border: #003300;
    --terminal-cyan: #00ffff;
    --terminal-yellow: #ffff00;
    --terminal-magenta: #ff00ff;
    --terminal-red: #ff0000;
    --terminal-blue: #0000ff;
    --terminal-orange: #ffa500;
}

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

body {
    background-color: var(--bg-color);
    color: var(--terminal-green);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    line-height: 1.6;
    overflow-x: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* CRT Screen Effects */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(0, 0, 0, 0) 50%, 
        rgba(0, 0, 0, 0.25) 50%
    );
    background-size: 100% 4px;
    z-index: 1000;
    pointer-events: none;
    opacity: 0.15;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at center,
        transparent 0%,
        rgba(0, 0, 0, 0.8) 100%
    );
    pointer-events: none;
    z-index: 1001;
    opacity: 0.4;
}

.terminal-container {
    width: 100%;
    max-width: 900px;
    margin: 20px auto;
    background-color: rgba(0, 10, 0, 0.8);
    border: 1px solid var(--terminal-border);
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.15);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.terminal-container:hover {
    box-shadow: 0 0 40px rgba(0, 255, 0, 0.25);
}

.terminal-header {
    background-color: var(--terminal-header);
    padding: 10px 15px;
    border-bottom: 1px solid var(--terminal-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.terminal-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--terminal-green);
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-title i {
    font-size: 16px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

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

.terminal-control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.terminal-control:hover {
    transform: scale(1.2);
}

.control-close {
    background-color: #ff5f56;
}

.control-minimize {
    background-color: #ffbd2e;
}

.control-maximize {
    background-color: #27c93f;
}

.terminal-tabs {
    display: flex;
    background-color: rgba(0, 20, 0, 0.5);
    border-bottom: 1px solid var(--terminal-border);
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--terminal-green-dark) var(--terminal-header);
}

.terminal-tabs::-webkit-scrollbar {
    height: 5px;
}

.terminal-tabs::-webkit-scrollbar-track {
    background: var(--terminal-header);
}

.terminal-tabs::-webkit-scrollbar-thumb {
    background-color: var(--terminal-green-dark);
    border-radius: 10px;
}

.terminal-tab {
    padding: 8px 15px;
    font-size: 12px;
    cursor: pointer;
    border-right: 1px solid var(--terminal-border);
    white-space: nowrap;
    transition: all 0.2s ease;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-tab.active {
    background-color: rgba(0, 255, 0, 0.1);
    color: #fff;
    position: relative;
}

.terminal-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--terminal-green);
}

.terminal-tab:hover:not(.active) {
    background-color: rgba(0, 255, 0, 0.05);
}

.terminal-body {
    padding: 15px;
    overflow-y: auto;
    flex-grow: 1;
    font-size: 14px;
    position: relative;
    scroll-behavior: smooth;
}

.terminal-body::-webkit-scrollbar {
    width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
    background: rgba(0, 20, 0, 0.4);
}

.terminal-body::-webkit-scrollbar-thumb {
    background: var(--terminal-green-dark);
    border-radius: 4px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
    background: var(--terminal-green);
}

.terminal-output {
    margin-bottom: 15px;
    white-space: pre-wrap;
    word-wrap: break-word;
    animation: fadeIn 0.3s ease-out;
}

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

.ascii-art {
    font-family: monospace;
    white-space: pre;
    line-height: 1.2;
    color: var(--terminal-green);
    margin: 10px 0;
    text-shadow: 0 0 5px var(--terminal-green);
    animation: glow 1.5s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 5px var(--terminal-green); }
    to { text-shadow: 0 0 10px var(--terminal-green), 0 0 20px var(--terminal-green-dark); }
}

.command-line {
    display: flex;
    align-items: center;
    margin-top: 10px;
    position: relative;
}

.prompt {
    color: var(--terminal-green);
    margin-right: 10px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.prompt i {
    font-size: 12px;
}

.command-input {
    background: transparent;
    border: none;
    color: var(--terminal-green);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 14px;
    outline: none;
    flex-grow: 1;
    caret-color: var(--terminal-green);
}

.command-input::selection {
    background-color: rgba(0, 255, 0, 0.3);
}

.command-suggestions {
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(0, 20, 0, 0.9);
    border: 1px solid var(--terminal-border);
    border-radius: 4px;
    max-height: 150px;
    overflow-y: auto;
    z-index: 10;
    display: none;
}

.command-suggestion {
    padding: 5px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.command-suggestion:hover, .command-suggestion.selected {
    background-color: rgba(0, 255, 0, 0.2);
}

.blink {
    animation: blink 1s infinite;
}

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

.matrix-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.04;
}

.highlight {
    color: #ffffff;
    font-weight: 500;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.error {
    color: #ff5f56;
}

.success {
    color: #27c93f;
}

.warning {
    color: #ffbd2e;
}

.info {
    color: var(--terminal-cyan);
}

.command-list {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 20px;
    margin: 10px 0;
    animation: fadeIn 0.5s ease-out;
}

.command-name {
    font-weight: 500;
    color: var(--terminal-green);
}

.command-description {
    color: rgba(0, 255, 0, 0.7);
}

.skill-category {
    margin: 15px 0;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.skill-title {
    font-weight: 500;
    margin-bottom: 8px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.skill-title i {
    font-size: 16px;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-left: 25px;
}

.skill-item {
    background-color: rgba(0, 255, 0, 0.1);
    border: 1px solid var(--terminal-border);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-item:hover {
    background-color: rgba(0, 255, 0, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 3px 10px rgba(0, 255, 0, 0.2);
}

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

.skill-item:hover::before {
    left: 100%;
}

.experience-item, .education-item, .project-item {
    margin-bottom: 25px;
    padding-left: 20px;
    border-left: 2px solid var(--terminal-green-dark);
    position: relative;
    animation: fadeInUp 0.5s ease-out;
    transition: all 0.3s ease;
}

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

.experience-item:hover, .education-item:hover, .project-item:hover {
    border-left-color: var(--terminal-green);
}

.experience-item::before, .education-item::before, .project-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    width: 14px;
    height: 14px;
    background-color: var(--terminal-green-dark);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.experience-item:hover::before, .education-item:hover::before, .project-item:hover::before {
    background-color: var(--terminal-green);
    box-shadow: 0 0 10px var(--terminal-green);
}

.experience-title, .education-degree, .project-name {
    font-weight: 600;
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 5px;
}

.experience-company, .education-institution, .project-tech {
    color: var(--terminal-green);
    font-style: italic;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.experience-date, .education-date, .project-date {
    font-size: 12px;
    color: rgba(0, 255, 0, 0.7);
    margin-bottom: 8px;
    display: inline-block;
    padding: 2px 8px;
    background-color: rgba(0, 255, 0, 0.1);
    border-radius: 4px;
}

.experience-description, .education-description, .project-description {
    color: rgba(0, 255, 0, 0.9);
    line-height: 1.7;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease-out;
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-label {
    min-width: 100px;
    font-weight: 500;
    color: var(--terminal-green);
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-value {
    color: #ffffff;
}

.contact-value a {
    color: var(--terminal-green);
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    display: inline-block;
}

.contact-value a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--terminal-green);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.contact-value a:hover {
    color: #ffffff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.contact-value a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.typing {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    margin: 0;
    animation: typing 3.5s steps(40, end);
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

.link {
    color: var(--terminal-green);
    text-decoration: underline;
    cursor: pointer;
    transition: all 0.3s ease;
}

.link:hover {
    color: #ffffff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

/* Progress Bars */
.progress-container {
    margin: 5px 0 15px 25px;
    width: calc(100% - 25px);
}

.progress-bar {
    height: 8px;
    background-color: rgba(0, 255, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--terminal-green-dark), var(--terminal-green));
    border-radius: 4px;
    width: 0;
    transition: width 1s ease-in-out;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(0, 255, 0, 0.7);
    margin-top: 5px;
}

/* Tabs Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

/* Card Layout */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.card {
    background-color: rgba(0, 20, 0, 0.5);
    border: 1px solid var(--terminal-border);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 255, 0, 0.2);
    border-color: var(--terminal-green);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--terminal-green-dark), var(--terminal-green));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card-title {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-content {
    color: rgba(0, 255, 0, 0.9);
    font-size: 14px;
    line-height: 1.6;
}

/* Timeline */
.timeline {
    position: relative;
    margin: 20px 0;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--terminal-green-dark) 0%, var(--terminal-green) 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    animation: fadeInUp 0.5s ease-out;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -34px;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--terminal-green);
    border: 2px solid var(--bg-color);
    box-shadow: 0 0 10px var(--terminal-green);
}

.timeline-date {
    font-size: 14px;
    color: var(--terminal-green);
    margin-bottom: 5px;
    font-weight: 500;
}

.timeline-title {
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 5px;
    font-weight: 600;
}

.timeline-content {
    color: rgba(0, 255, 0, 0.9);
    line-height: 1.6;
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: rgba(0, 20, 0, 0.9);
    color: var(--terminal-green);
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    border: 1px solid var(--terminal-border);
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background-color: rgba(0, 255, 0, 0.2);
    color: var(--terminal-green);
}

.badge-secondary {
    background-color: rgba(0, 255, 255, 0.2);
    color: var(--terminal-cyan);
}

.badge-warning {
    background-color: rgba(255, 255, 0, 0.2);
    color: var(--terminal-yellow);
}

/* Theme Switcher */
.theme-switcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(0, 20, 0, 0.8);
    border: 1px solid var(--terminal-border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.theme-switcher:hover {
    transform: rotate(30deg);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.theme-switcher i {
    font-size: 18px;
    color: var(--terminal-green);
}

/* Themes */
body.theme-blue {
    --terminal-green: #00aaff;
    --terminal-green-dark: #0077aa;
    --terminal-green-glow: rgba(0, 170, 255, 0.2);
}

body.theme-purple {
    --terminal-green: #aa00ff;
    --terminal-green-dark: #7700aa;
    --terminal-green-glow: rgba(170, 0, 255, 0.2);
}

body.theme-orange {
    --terminal-green: #ff7700;
    --terminal-green-dark: #aa5500;
    --terminal-green-glow: rgba(255, 119, 0, 0.2);
}

body.theme-pink {
    --terminal-green: #ff00aa;
    --terminal-green-dark: #aa0077;
    --terminal-green-glow: rgba(255, 0, 170, 0.2);
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: rgba(0, 20, 0, 0.9);
    border: 1px solid var(--terminal-border);
    border-radius: 8px;
    padding: 15px;
    color: var(--terminal-green);
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    max-width: 300px;
}

.notification.show {
    transform: translateX(0);
}

.notification-title {
    font-weight: 600;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-message {
    font-size: 13px;
    color: rgba(0, 255, 0, 0.9);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .terminal-container {
        margin: 10px;
        height: calc(100vh - 20px);
    }
    
    .terminal-body {
        font-size: 13px;
    }
    
    .command-input {
        font-size: 13px;
    }
    
    .skill-list {
        flex-direction: column;
        gap: 5px;
    }
    
    .command-list {
        grid-template-columns: 1fr;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .theme-switcher {
        bottom: 10px;
        right: 10px;
    }
}

/* PWA Install Prompt */
.install-prompt {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--terminal-header);
    border: 1px solid var(--terminal-border);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1002;
    max-width: 90%;
    display: none;
}

.install-message {
    flex-grow: 1;
}

.install-buttons {
    display: flex;
    gap: 10px;
}

.install-btn {
    background-color: var(--terminal-green-dark);
    color: #ffffff;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 12px;
    transition: all 0.3s;
}

.install-btn:hover {
    background-color: var(--terminal-green);
    color: var(--bg-color);
}

.install-btn.cancel {
    background-color: transparent;
    border: 1px solid var(--terminal-green-dark);
    color: var(--terminal-green);
}

.install-btn.cancel:hover {
    background-color: rgba(0, 255, 0, 0.1);
}

/* Loading Animation */
.loading {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 20px;
}

.loading div {
    position: absolute;
    top: 8px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--terminal-green);
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.loading div:nth-child(1) {
    left: 8px;
    animation: loading1 0.6s infinite;
}

.loading div:nth-child(2) {
    left: 8px;
    animation: loading2 0.6s infinite;
}

.loading div:nth-child(3) {
    left: 32px;
    animation: loading2 0.6s infinite;
}

.loading div:nth-child(4) {
    left: 56px;
    animation: loading3 0.6s infinite;
}

@keyframes loading1 {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

@keyframes loading2 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(24px, 0); }
}

@keyframes loading3 {
    0% { transform: scale(1); }
    100% { transform: scale(0); }
}

/* Weather Widget */
.weather-widget {
    background-color: rgba(0, 20, 0, 0.5);
    border: 1px solid var(--terminal-border);
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.weather-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.weather-location {
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.weather-date {
    font-size: 12px;
    color: rgba(0, 255, 0, 0.7);
}

.weather-main {
    display: flex;
    align-items: center;
    gap: 20px;
}

.weather-temp {
    font-size: 32px;
    font-weight: 700;
    color: var(--terminal-green);
}

.weather-icon {
    font-size: 40px;
    color: var(--terminal-yellow);
}

.weather-description {
    text-transform: capitalize;
    color: rgba(0, 255, 0, 0.9);
}

.weather-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.weather-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.weather-detail-label {
    font-size: 12px;
    color: rgba(0, 255, 0, 0.7);
}

.weather-detail-value {
    font-weight: 500;
    color: #ffffff;
}

/* Crypto Widget */
.crypto-widget {
    background-color: rgba(0, 20, 0, 0.5);
    border: 1px solid var(--terminal-border);
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.crypto-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.crypto-title {
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.crypto-update {
    font-size: 12px;
    color: rgba(0, 255, 0, 0.7);
}

.crypto-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.crypto-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 6px;
    background-color: rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.crypto-item:hover {
    background-color: rgba(0, 0, 0, 0.3);
    transform: translateY(-3px);
}

.crypto-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.crypto-info {
    flex-grow: 1;
}

.crypto-name {
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
}

.crypto-price {
    font-size: 12px;
    color: var(--terminal-green);
}

.crypto-change {
    font-size: 12px;
    font-weight: 500;
}

.crypto-change.positive {
    color: #27c93f;
}

.crypto-change.negative {
    color: #ff5f56;
}

/* Typing Animation */
.typing-container {
    display: inline-block;
    position: relative;
}

.typing-text {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    margin: 0;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
    border-right: 2px solid var(--terminal-green);
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--terminal-green); }
}

/* Glitch Effect */
.glitch {
    position: relative;
    color: #ffffff;
    animation: glitch 1s linear infinite;
}

@keyframes glitch {
    2%, 64% { transform: translate(2px, 0) skew(0deg); }
    4%, 60% { transform: translate(-2px, 0) skew(0deg); }
    62% { transform: translate(0, 0) skew(5deg); }
}

.glitch:before,
.glitch:after {
    content: attr(title);
    position: absolute;
    left: 0;
}

.glitch:before {
    animation: glitchTop 1s linear infinite;
    clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
}

@keyframes glitchTop {
    2%, 64% { transform: translate(2px, -2px); }
    4%, 60% { transform: translate(-2px, 2px); }
    62% { transform: translate(13px, -1px) skew(-13deg); }
}

.glitch:after {
    animation: glitchBottom 1.5s linear infinite;
    clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
    -webkit-clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
}

@keyframes glitchBottom {
    2%, 64% { transform: translate(-2px, 0); }
    4%, 60% { transform: translate(-2px, 0); }
    62% { transform: translate(-22px, 5px) skew(21deg); }
}
