/* Terminal Toggle Button Styling */
.terminal-toggle-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border: 2px solid var(--crt-color, #B22222);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: url('images/redrighthand.png'), pointer;
    z-index: 1000;
    box-shadow: 
        0 0 10px var(--crt-color),
        0 0 20px var(--crt-color),
        inset 0 0 5px rgba(178, 34, 34, 0.3);
    transition: all 0.3s ease;
    font-family: 'Broken Console Bold', monospace;
    color: var(--crt-color);
    text-transform: uppercase;
    font-size: 1rem;
    min-width: 60px;
    min-height: 60px;
}

.terminal-toggle-btn:hover {
    box-shadow: 
        0 0 20px var(--crt-color),
        0 0 40px var(--crt-color),
        inset 0 0 10px rgba(178, 34, 34, 0.5);
    transform: translateY(-2px);
    animation: glitch 0.3s linear 2;
}

.terminal-toggle-btn:active {
    transform: translateY(0);
    box-shadow: 
        0 0 15px var(--crt-color),
        inset 0 0 15px rgba(178, 34, 34, 0.7);
}

.terminal-logo {
    font-size: 1.5rem;
    text-shadow: 0 0 5px var(--crt-color);
    filter: drop-shadow(0 0 3px var(--crt-color));
}

/* Twitter Button Styling */
.social-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border: 2px solid var(--crt-color, #B22222);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: url('images/redrighthand.png'), pointer;
    z-index: 1000;
    box-shadow: 
        0 0 10px var(--crt-color),
        0 0 20px var(--crt-color),
        inset 0 0 5px rgba(178, 34, 34, 0.3);
    transition: all 0.3s ease;
    font-family: 'Broken Console Bold', monospace;
    color: var(--crt-color);
    text-decoration: none;
    min-width: 60px;
    min-height: 60px;
}

.social-btn:hover {
    box-shadow: 
        0 0 20px var(--crt-color),
        0 0 40px var(--crt-color),
        inset 0 0 10px rgba(178, 34, 34, 0.5);
    transform: translateY(-2px);
    animation: glitch 0.3s linear 2;
}

.social-btn:active {
    transform: translateY(0);
    box-shadow: 
        0 0 15px var(--crt-color),
        inset 0 0 15px rgba(178, 34, 34, 0.7);
}

.social-icon {
    font-size: 1.5rem;
    text-shadow: 0 0 5px var(--crt-color);
    filter: drop-shadow(0 0 3px var(--crt-color));
}

/* Tooltip Styling */
.terminal-tooltip,
.social-tooltip {
    position: absolute;
    background: linear-gradient(145deg, #0a0a0a, #1a1a1a);
    color: var(--crt-color);
    padding: 8px 12px;
    border: 1px solid var(--crt-color);
    border-radius: 4px;
    font-family: 'Broken Console Bold', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 0 10px var(--crt-color);
    z-index: 1001;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
}

/* .terminal-tooltip::before,
.social-tooltip::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 30%;
    transform: translateX(-30%);
    border: 5px solid transparent;
    border-top-color: var(--crt-color);
} */

.terminal-tooltip.show,
.social-tooltip.show {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .terminal-toggle-btn,
    .social-btn {
        padding: 8px;
        font-size: 0.8rem;
        min-width: 50px;
        min-height: 50px;
    }

    .terminal-logo,
    .social-icon {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .terminal-toggle-btn,
    .social-btn {
        padding: 6px;
        font-size: 0.7rem;
        min-width: 45px;
        min-height: 45px;
    }

    .terminal-logo,
    .social-icon {
        font-size: 1rem;
    }
}

/* Animation Keyframes */
@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(2px, -2px); }
    60% { transform: translate(-1px, 1px); }
    80% { transform: translate(1px, -1px); }
    100% { transform: translate(0); }
}

@keyframes glitch-header {
    0%, 100% { transform: translate(0) skewX(0); }
    20% { transform: translate(-2px, 2px) skewX(5deg); }
    40% { transform: translate(2px, -2px) skewX(-5deg); }
    60% { transform: translate(-1px, 1px) skewX(3deg); }
    80% { transform: translate(1px, -1px) skewX(-3deg); }
}

@keyframes glitch-subtitle {
    0%, 100% { transform: translate(0) skewX(0); }
    20% { transform: translate(-1px, 1px) skewX(2deg); }
    40% { transform: translate(1px, -1px) skewX(-2deg); }
    60% { transform: translate(-0.5px, 0.5px) skewX(1deg); }
    80% { transform: translate(0.5px, -0.5px) skewX(-1deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: var(--crt-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #B22222;
}
