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

body {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    background-color: #0d1117;
    color: #00ff00;
    overflow: hidden;
    height: 100vh;
    font-size: clamp(8px, 2vw, 16px);
}

#terminal {
    height: 100vh;
    width: 100vw;
    background-color: #0d1117;
    padding: clamp(8px, 1.5vw, 15px);
    overflow-y: auto;
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    font-size: inherit;
}

/* Boot Screen Styles */
.boot-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #000;
    color: #00ff00;
    position: relative;
    z-index: 10;
}

.boot-screen.hidden {
    display: none !important;
}

.boot-text {
    text-align: left;
    margin-bottom: 30px;
}

.boot-line {
    margin: 8px 0;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.3s ease-in-out forwards;
    font-size: clamp(10px, 1.1vw, 14px);
    color: #00ff00;
    animation-fill-mode: both;
}

.boot-line:nth-child(1) { animation-delay: 0.2s; }
.boot-line:nth-child(2) { animation-delay: 0.4s; }
.boot-line:nth-child(3) { animation-delay: 0.6s; }
.boot-line:nth-child(4) { animation-delay: 0.8s; }
.boot-line:nth-child(5) { animation-delay: 1.0s; }
.boot-line:nth-child(6) { animation-delay: 1.2s; }
.boot-line:nth-child(7) { animation-delay: 1.4s; }

.loading-bar {
    width: clamp(200px, 50vw, 400px);
    height: 4px;
    background-color: #333;
    border: 1px solid #00ff00;
    position: relative;
    margin-top: 20px;
}

.loading-progress {
    height: 100%;
    background-color: #00ff00;
    width: 0%;
    animation: loadingProgress 4s ease-in-out forwards;
    animation-delay: 1s;
}

/* Terminal Content Styles */
#terminal-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding: 0;
    min-height: 0;
    max-height: 100%;
}

.hidden {
    display: none !important;
}

#output {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 8px;
    white-space: pre-wrap;
    word-wrap: break-word;
    min-height: 0;
    max-height: 100%;
    position: relative;
    width: 100%;
}

.output-line {
    margin: 0;
    display: block;
    line-height: 1.3;
}

.command-echo {
    color: #ffffff;
    margin-bottom: 2px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    position: relative;
}

.command-echo::before {
    content: '> ';
    color: #00ff00;
    text-shadow: 0 0 8px rgba(0, 255, 0, 0.8);
    animation: promptPulse 2s ease-in-out infinite;
}

.command-output {
    color: #00ff00;
    margin-bottom: 3px;
}

/* ASCII Art Fire Effect Styles */
.command-output.ascii-enhanced {
    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #ffff88 10%,
        #ffcc33 25%,
        #ff9900 40%,
        #ff6600 60%,
        #dd2200 80%,
        #aa0000 100%
    );
    background-size: 100% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    animation: fireWave 3s ease-in-out infinite;
    text-shadow: none;
    filter: none;
}

.success-message.ascii-enhanced {
    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #ffff66 12%,
        #ffaa00 28%,
        #ff7700 45%,
        #ff3300 65%,
        #cc1100 82%,
        #880000 100%
    );
    background-size: 100% 250%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    animation: fireIntense 2.5s ease-in-out infinite;
    text-shadow: none;
    filter: none;
}

.info-message.ascii-enhanced {
    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #ccffff 15%,
        #66ddff 30%,
        #00aaff 50%,
        #0077cc 70%,
        #004499 85%,
        #002266 100%
    );
    background-size: 100% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    animation: iceFlicker 3s ease-in-out infinite alternate;
    text-shadow: none;
    filter: none;
}

.error-output {
    color: #ff4444;
    margin-bottom: 3px;
    text-shadow: 0 0 8px rgba(255, 68, 68, 0.6);
    background: linear-gradient(90deg, 
        rgba(255, 68, 68, 0.1), 
        rgba(255, 68, 68, 0.15), 
        rgba(255, 68, 68, 0.1)
    );
    padding: 2px 8px;
    border-left: 2px solid rgba(255, 68, 68, 0.5);
    animation: errorPulse 1s ease-in-out;
}

/* Input Line Styles */
.input-line {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding-top: 8px;
    border-top: 1px solid #333;
}

.prompt {
    color: #00ff00;
    margin-right: 5px;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(0, 255, 0, 0.6);
    animation: promptGlow 3s ease-in-out infinite;
}

#command-input {
    background: transparent;
    border: none;
    color: #ffffff;
    font-family: inherit;
    font-size: inherit;
    outline: none;
    flex: 1;
    caret-color: transparent;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.3);
}

/* Hide input line styling for menu mode */
.menu-mode .input-line {
    opacity: 0.3;
    pointer-events: none;
}

.menu-mode .input-line .prompt {
    color: #666;
}

.menu-mode #command-input {
    color: #666;
}

/* Ensure menu items are clickable in menu mode */
.menu-mode .menu-container {
    pointer-events: all;
}

.menu-mode .menu-item {
    pointer-events: all;
    cursor: pointer;
}

/* Terminal mode styling */
.terminal-mode .input-line {
    opacity: 1;
    pointer-events: all;
}

.terminal-mode .input-line .prompt {
    color: #00ff00;
}

.terminal-mode #command-input {
    color: #ffffff;
}

/* Typewriter Effect */
.typewriter {
    overflow: hidden;
    border-right: 2px solid #00ff00;
    white-space: nowrap;
    animation: typing 2s steps(40, end), blink-caret 0.75s step-end infinite;
}

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

@keyframes loadingProgress {
    from { width: 0%; }
    to { width: 100%; }
}

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

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

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #00ff00; }
}

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

@keyframes fireWave {
    0%, 100% {
        background-position: 0% 0%;
    }
    25% {
        background-position: 0% 25%;
    }
    50% {
        background-position: 0% 50%;
    }
    75% {
        background-position: 0% 75%;
    }
}

@keyframes fireIntense {
    0%, 100% {
        background-position: 0% 0%;
    }
    33% {
        background-position: 0% 33%;
    }
    66% {
        background-position: 0% 66%;
    }
}

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

@keyframes asciiGlow {
    0%, 100% {
        background-position: 0% 50%;
        filter: drop-shadow(0 0 6px rgba(0, 255, 255, 0.4));
    }
    25% {
        background-position: 50% 0%;
        filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.6));
    }
    50% {
        background-position: 100% 50%;
        filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.8));
    }
    75% {
        background-position: 50% 100%;
        filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.6));
    }
}

@keyframes successGlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    33% {
        background-position: 50% 0%;
    }
    66% {
        background-position: 100% 50%;
    }
}

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

@keyframes promptPulse {
    0%, 100% {
        text-shadow: 0 0 8px rgba(0, 255, 0, 0.8);
        color: #00ff00;
    }
    50% {
        text-shadow: 0 0 15px rgba(0, 255, 0, 1);
        color: #80ff80;
    }
}

@keyframes cursorGlow {
    0%, 50% {
        opacity: 1;
        text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
    }
    51%, 100% {
        opacity: 0;
        text-shadow: 0 0 5px rgba(0, 255, 0, 0.4);
    }
}

@keyframes promptGlow {
    0%, 100% {
        text-shadow: 0 0 8px rgba(0, 255, 0, 0.6);
    }
    50% {
        text-shadow: 0 0 12px rgba(0, 255, 0, 0.9);
    }
}

@keyframes scanlines {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(4px);
    }
}

/* Mobile Optimization for Effects */
@media (max-width: 768px) {
    body {
        font-size: clamp(6px, 3vw, 12px);
    }
    
    #terminal {
        padding: clamp(3px, 2vw, 8px);
    }
    
    .ascii-art,
    .command-output.ascii-enhanced,
    .success-message.ascii-enhanced,
    .info-message.ascii-enhanced {
        animation-duration: 2s; /* Faster animations on mobile */
        font-size: clamp(3px, 2.5vw, 8px) !important;
        line-height: 0.9 !important;
        overflow-x: auto;
        white-space: pre;
        word-break: keep-all;
        max-width: 100%;
        padding: 1px 0;
    }
    
    #terminal::after {
        display: none; /* Disable scanlines on mobile for performance */
    }
    
    .boot-line {
        font-size: clamp(6px, 2.8vw, 12px);
    }
    
    .loading-bar {
        width: clamp(120px, 90vw, 250px);
    }
    
    .hacker-line {
        font-size: clamp(8px, 2.5vw, 14px);
        margin: 8px 0;
        letter-spacing: 1px;
    }
}

/* Small screens - extra aggressive */
@media (max-width: 480px) {
    body {
        font-size: clamp(5px, 3.5vw, 10px);
    }
    
    .ascii-art,
    .command-output.ascii-enhanced,
    .success-message.ascii-enhanced,
    .info-message.ascii-enhanced {
        font-size: clamp(2px, 3vw, 6px) !important;
        line-height: 0.7 !important;
        transform: scaleX(0.75) scaleY(0.85);
        transform-origin: left center;
        letter-spacing: -0.8px;
        word-spacing: -2px;
    }
    
    .boot-line {
        font-size: clamp(5px, 3.2vw, 9px);
    }
    
    .hacker-line {
        font-size: clamp(6px, 3vw, 12px);
        margin: 6px 0;
        letter-spacing: 0.5px;
    }
    
    .loading-bar {
        width: clamp(100px, 95vw, 200px);
    }
}

/* Extra small screens - ultra aggressive */
@media (max-width: 360px) {
    body {
        font-size: clamp(4px, 4vw, 8px);
    }
    
    .ascii-art,
    .command-output.ascii-enhanced,
    .success-message.ascii-enhanced,
    .info-message.ascii-enhanced {
        transform: scaleX(0.75) scaleY(0.9);
        transform-origin: left center;
        font-size: clamp(1px, 3.2vw, 5px) !important;
        line-height: 0.7 !important;
        margin: 0px;
        letter-spacing: -0.5px;
    }
    
    .boot-line {
        font-size: clamp(4px, 3.5vw, 8px);
    }
    
    .hacker-line {
        font-size: clamp(5px, 3.5vw, 10px);
        margin: 4px 0;
        letter-spacing: 0px;
    }
}

/* Large screens */
@media (min-width: 1200px) {
    body {
        font-size: clamp(14px, 1vw, 18px);
    }
    
    .ascii-art,
    .command-output.ascii-enhanced,
    .success-message.ascii-enhanced,
    .info-message.ascii-enhanced {
        font-size: clamp(12px, 0.9vw, 16px);
    }
}

/* Menu System Styles */
.menu-container {
    margin: 8px 0;
    border: 1px solid #00ff00;
    border-radius: 4px;
    background-color: rgba(0, 255, 0, 0.05);
    padding: 8px;
    pointer-events: all;
}

.command-menu {
    font-family: 'JetBrains Mono', monospace;
    pointer-events: all;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    margin: 1px 0;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    user-select: none;
    position: relative;
    z-index: 10;
}

.menu-item:active {
    background-color: rgba(0, 255, 0, 0.25);
    transform: scale(0.98);
}

.menu-item:hover {
    background: linear-gradient(90deg, 
        rgba(0, 255, 0, 0.1), 
        rgba(0, 255, 0, 0.15), 
        rgba(0, 255, 0, 0.1)
    );
    border-color: #00ff00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
    transform: translateX(5px);
}

.menu-item.selected {
    background: linear-gradient(90deg, 
        rgba(0, 255, 0, 0.15), 
        rgba(0, 255, 0, 0.25), 
        rgba(0, 255, 0, 0.15)
    );
    border-color: #00ff00;
    transform: translateX(8px);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.4);
}

.menu-cursor {
    color: #00ff00;
    font-weight: bold;
    width: 20px;
    flex-shrink: 0;
}

.menu-command {
    color: #00aaff;
    font-weight: bold;
    min-width: 120px;
    flex-shrink: 0;
}

.menu-description {
    color: #888;
    margin-left: 10px;
    flex: 1;
}

.menu-item.selected .menu-description {
    color: #aaa;
}

/* Menu animations */
.menu-container {
    animation: menuSlideIn 0.3s ease-out;
    transition: opacity 0.2s ease-out;
}

.menu-container.hiding {
    opacity: 0;
    transform: translateY(-5px);
}

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

/* Mobile responsive menu */
@media (max-width: 768px) {
    .menu-container {
        padding: clamp(3px, 1vw, 6px);
        margin: clamp(3px, 0.8vw, 6px) 0;
        border-width: 1px;
    }
    
    .menu-item {
        flex-direction: row;
        align-items: center;
        padding: clamp(4px, 1.2vw, 8px);
        margin: 1px 0;
    }
    
    .menu-cursor {
        width: clamp(8px, 2.5vw, 16px);
        font-size: clamp(6px, 2.2vw, 12px);
        flex-shrink: 0;
    }
    
    .menu-command {
        min-width: clamp(60px, 25vw, 100px);
        margin-bottom: 0;
        margin-right: clamp(4px, 1.5vw, 8px);
        font-size: clamp(6px, 2.5vw, 12px);
        flex-shrink: 0;
    }
    
    .menu-description {
        margin-left: 0;
        font-size: clamp(5px, 2vw, 10px);
        line-height: 1.2;
        flex: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Portrait orientation - extra menu scaling */
@media (orientation: portrait) {
    .menu-container {
        padding: clamp(2px, 0.8vw, 4px);
        margin: clamp(2px, 0.5vw, 4px) 0;
    }
    
    .menu-item {
        padding: clamp(3px, 1vw, 6px);
        margin: 0.5px 0;
        flex-direction: row;
        align-items: center;
    }
    
    .menu-cursor {
        width: clamp(6px, 2vw, 12px);
        font-size: clamp(4px, 1.8vw, 8px);
        flex-shrink: 0;
    }
    
    .menu-command {
        font-size: clamp(4px, 2vw, 8px);
        margin-bottom: 0;
        margin-right: clamp(3px, 1vw, 6px);
        min-width: clamp(50px, 20vw, 80px);
        flex-shrink: 0;
    }
    
    .menu-description {
        font-size: clamp(3px, 1.5vw, 6px);
        line-height: 1.1;
        flex: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Small screens - aggressive menu scaling */
@media (max-width: 480px) {
    .menu-container {
        padding: clamp(1px, 0.6vw, 3px);
        margin: clamp(1px, 0.3vw, 3px) 0;
    }
    
    .menu-item {
        padding: clamp(2px, 0.8vw, 4px);
        margin: 0.5px 0;
        border-radius: 2px;
        flex-direction: row;
        align-items: center;
    }
    
    .menu-cursor {
        width: clamp(5px, 2vw, 10px);
        font-size: clamp(3px, 1.8vw, 7px);
        flex-shrink: 0;
    }
    
    .menu-command {
        font-size: clamp(3px, 2vw, 7px);
        margin-bottom: 0;
        margin-right: clamp(2px, 0.8vw, 4px);
        min-width: clamp(40px, 18vw, 60px);
        flex-shrink: 0;
    }
    
    .menu-description {
        font-size: clamp(2px, 1.5vw, 5px);
        line-height: 1.0;
        flex: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Extra small screens - ultra compact menu */
@media (max-width: 360px) {
    .menu-container {
        padding: clamp(1px, 0.5vw, 2px);
        margin: clamp(0px, 0.2vw, 2px) 0;
    }
    
    .menu-item {
        padding: clamp(1px, 0.6vw, 3px);
        margin: 0px;
        border-radius: 1px;
        flex-direction: row;
        align-items: center;
    }
    
    .menu-cursor {
        width: clamp(4px, 1.5vw, 8px);
        font-size: clamp(2px, 1.5vw, 5px);
        flex-shrink: 0;
    }
    
    .menu-command {
        font-size: clamp(2px, 1.8vw, 5px);
        margin-bottom: 0;
        margin-right: clamp(1px, 0.5vw, 3px);
        min-width: clamp(30px, 15vw, 50px);
        flex-shrink: 0;
    }
    
    .menu-description {
        font-size: clamp(1px, 1.2vw, 4px);
        line-height: 0.9;
        flex: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Portrait phones - very compact menu */
@media (orientation: portrait) and (max-width: 480px) {
    .menu-container {
        padding: clamp(1px, 0.4vw, 2px);
        margin: clamp(0px, 0.2vw, 2px) 0;
        border-radius: 2px;
    }
    
    .menu-item {
        padding: clamp(1px, 0.6vw, 3px);
        margin: 0px;
        border-radius: 1px;
        flex-direction: row;
        align-items: center;
    }
    
    .menu-item:hover {
        transform: translateX(1px);
    }
    
    .menu-item.selected {
        transform: translateX(2px);
    }
    
    .menu-cursor {
        width: clamp(4px, 1.2vw, 6px);
        font-size: clamp(2px, 1.2vw, 4px);
        flex-shrink: 0;
    }
    
    .menu-command {
        font-size: clamp(2px, 1.5vw, 4px);
        margin-bottom: 0;
        margin-right: clamp(1px, 0.4vw, 2px);
        min-width: clamp(25px, 12vw, 40px);
        flex-shrink: 0;
    }
    
    .menu-description {
        font-size: clamp(1px, 1vw, 3px);
        line-height: 0.9;
        flex: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Landscape phones with limited height */
@media (orientation: landscape) and (max-height: 500px) {
    .menu-container {
        padding: clamp(1px, 0.6vw, 3px);
        margin: clamp(0px, 0.3vw, 2px) 0;
    }
    
    .menu-item {
        padding: clamp(2px, 0.8vw, 4px);
        margin: 0.5px 0;
        flex-direction: row;
        align-items: center;
    }
    
    .menu-cursor {
        width: clamp(5px, 1.8vw, 8px);
        font-size: clamp(3px, 1.5vw, 6px);
        flex-shrink: 0;
    }
    
    .menu-command {
        font-size: clamp(3px, 1.8vw, 6px);
        margin-bottom: 0;
        margin-right: clamp(2px, 0.6vw, 4px);
        min-width: clamp(35px, 15vw, 55px);
        flex-shrink: 0;
    }
    
    .menu-description {
        font-size: clamp(2px, 1.3vw, 5px);
        line-height: 1.0;
        flex: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Hacker Intro Screen with Matrix Effect */
.hacker-intro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 1000;
    overflow: hidden;
}

#matrix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
}

.hacker-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.hacker-text {
    text-align: center;
    margin-bottom: 60px;
}

.hacker-line {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(12px, 1.4vw, 18px);
    color: #ff0040;
    margin: 15px 0;
    opacity: 0;
    text-shadow: 0 0 10px rgba(255, 0, 64, 0.8);
    letter-spacing: 2px;
    font-weight: 700;
    text-transform: uppercase;
}

.hacker-line.show {
    opacity: 1;
    animation: hackerGlitch 0.5s ease-in-out;
}

.access-prompt {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: fadeInPulse 1s ease-in-out 2.5s forwards;
}

.prompt-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(10px, 1.2vw, 16px);
    color: #00ff00;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
    letter-spacing: 1px;
}

.cursor-blink {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(10px, 1.2vw, 16px);
    color: #00ff00;
    animation: blink 1s infinite;
}

@keyframes hackerGlitch {
    0% {
        opacity: 0;
        transform: translateX(-20px);
        text-shadow: 0 0 10px rgba(255, 0, 64, 0.8);
    }
    20% {
        opacity: 1;
        transform: translateX(5px);
        text-shadow: 2px 0 0 #ff0040, -2px 0 0 #00ff00;
    }
    40% {
        opacity: 1;
        transform: translateX(-2px);
        text-shadow: -1px 0 0 #ff0040, 1px 0 0 #00ff00;
    }
    60% {
        opacity: 1;
        transform: translateX(1px);
        text-shadow: 1px 0 0 #ff0040, -1px 0 0 #0040ff;
    }
    100% {
        opacity: 1;
        transform: translateX(0);
        text-shadow: 0 0 10px rgba(255, 0, 64, 0.8);
    }
}

@keyframes fadeInPulse {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes glitch-1 {
    0%, 100% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
}

@keyframes glitch-2 {
    0%, 100% {
        transform: translate(0);
    }
    20% {
        transform: translate(2px, 2px);
    }
    40% {
        transform: translate(2px, -2px);
    }
    60% {
        transform: translate(-2px, 2px);
    }
    80% {
        transform: translate(-2px, -2px);
    }
}

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

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

@keyframes errorPulse {
    0% {
        box-shadow: 0 0 5px rgba(255, 68, 68, 0.3);
    }
    50% {
        box-shadow: 0 0 15px rgba(255, 68, 68, 0.6);
    }
    100% {
        box-shadow: 0 0 5px rgba(255, 68, 68, 0.3);
    }
}

/* Project Modal System - Complete Rework */
.project-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.85) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 10000 !important;
    animation: fadeInOverlay 0.3s ease-out !important;
    backdrop-filter: blur(2px);
}

.project-modal {
    background: #000000 !important;
    border: 2px solid #00ff00 !important;
    border-radius: 8px !important;
    max-width: 800px !important;
    max-height: 90vh !important;
    width: 90% !important;
    overflow-y: auto !important;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.4) !important;
    animation: slideInModal 0.3s ease-out !important;
    position: relative !important;
}

.project-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 20px !important;
    border-bottom: 1px solid #00ff00 !important;
    background: rgba(0, 255, 0, 0.1) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 10001 !important;
}

.project-title {
    font-family: 'JetBrains Mono', monospace !important;
    color: #00ff00 !important;
    margin: 0 !important;
    font-size: 24px !important;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5) !important;
    font-weight: bold !important;
}

.close-btn {
    background: none !important;
    border: 1px solid #00ff00 !important;
    color: #00ff00 !important;
    font-size: 20px !important;
    width: 35px !important;
    height: 35px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    font-family: 'JetBrains Mono', monospace !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: bold !important;
}

.close-btn:hover {
    background: #00ff00 !important;
    color: #000 !important;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.7) !important;
    transform: scale(1.1) !important;
}

.project-content {
    padding: 25px !important;
    color: #ffffff !important;
    font-family: 'JetBrains Mono', monospace !important;
    line-height: 1.6 !important;
}

.project-meta {
    display: flex !important;
    gap: 15px !important;
    margin-bottom: 25px !important;
    flex-wrap: wrap !important;
}

.project-status {
    background: #ff0040 !important;
    color: #fff !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.project-type {
    background: #0066ff !important;
    color: #fff !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.project-date {
    background: #666 !important;
    color: #fff !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
}

.project-description {
    margin-bottom: 25px !important;
    padding: 15px !important;
    background: rgba(0, 255, 0, 0.05) !important;
    border-left: 3px solid #00ff00 !important;
    border-radius: 4px !important;
}

.project-description p {
    margin: 0 !important;
    color: #cccccc !important;
    font-size: 14px !important;
}

.project-technologies h3,
.project-highlights h3 {
    color: #00ff00 !important;
    margin: 0 0 15px 0 !important;
    font-size: 18px !important;
    text-shadow: 0 0 8px rgba(0, 255, 0, 0.4) !important;
    font-weight: bold !important;
}

.tech-tags {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin-bottom: 25px !important;
}

.tech-tag {
    background: rgba(0, 255, 0, 0.15) !important;
    border: 1px solid #00ff00 !important;
    color: #00ff00 !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: bold !important;
    transition: all 0.3s ease !important;
}

.tech-tag:hover {
    background: rgba(0, 255, 0, 0.25) !important;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3) !important;
}

.project-highlights ul {
    margin: 0 !important;
    padding-left: 20px !important;
    color: #cccccc !important;
}

.project-highlights li {
    margin-bottom: 10px !important;
    line-height: 1.5 !important;
    position: relative !important;
}

.project-highlights li::marker {
    color: #00ff00 !important;
}

@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Responsive styles for project overlay */
@media (max-width: 768px) {
    .project-modal {
        width: 95%;
        max-height: 95vh;
    }
    
    .project-title {
        font-size: 20px;
    }
    
    .project-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .tech-tags {
        gap: 4px;
    }
}

/* Project Gallery Styles - Carousel Layout */
.project-gallery {
    margin: 20px 0;
}

.project-gallery h3 {
    color: #00ff00;
    margin: 0 0 15px 0;
    font-size: 18px;
    text-shadow: 0 0 8px rgba(0, 255, 0, 0.4);
    font-weight: bold;
}

.gallery-carousel {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid #333;
    border-radius: 8px;
    padding: 20px;
    position: relative;
}

.gallery-main {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    min-height: 450px;
}

.gallery-image {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #333;
}

.gallery-image:hover {
    transform: scale(1.01);
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.4);
    border-color: #00ff00;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #00ff00;
    color: #00ff00;
    font-size: 28px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.gallery-prev {
    left: 15px;
}

.gallery-next {
    right: 15px;
}

.gallery-arrow:hover:not(:disabled) {
    background: rgba(0, 255, 0, 0.9);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.gallery-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: #666;
    color: #666;
    background: rgba(0, 0, 0, 0.3);
}

.gallery-info {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 15px;
    padding: 0 10px;
}

.gallery-counter {
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
}

/* Fullscreen Gallery Styles */
.fullscreen-gallery {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(5px);
    overflow: hidden;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid #333;
    flex-shrink: 0;
}

.gallery-counter {
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
}

.gallery-close {
    background: none;
    border: 2px solid #00ff00;
    color: #00ff00;
    font-size: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
}

.gallery-close:hover {
    background: #00ff00;
    color: #000;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
}

.gallery-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
    min-height: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.gallery-image-container {
    max-width: calc(100vw - 200px);
    max-height: calc(100vh - 120px);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
}

.gallery-main-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.2);
    display: block;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00ff00;
    color: #00ff00;
    font-size: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-prev {
    left: 30px;
}

.gallery-next {
    right: 30px;
}

.gallery-nav:hover:not(:disabled) {
    background: #00ff00;
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: #666;
    color: #666;
}

/* Video Gallery Support */
.gallery-video-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.gallery-video {
    width: 100%;
    max-width: 560px;
    height: 315px;
    border-radius: 6px;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.gallery-video:hover {
    border-color: #00ff00;
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.4);
}

.video-description {
    color: #cccccc;
    font-size: 12px;
    margin-top: 10px;
    text-align: center;
    font-style: italic;
    max-width: 560px;
}

.gallery-type {
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    margin-left: 15px;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
}

/* Fullscreen Video Support */
.fullscreen-video-container {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fullscreen-video {
    width: 100%;
    height: 450px;
    border-radius: 8px;
    border: 2px solid #00ff00;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.3);
}

.fullscreen-video-description {
    color: #cccccc;
    font-size: 14px;
    margin-top: 15px;
    text-align: center;
    font-style: italic;
    max-width: 600px;
    line-height: 1.4;
}

.gallery-media-type {
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
}

.gallery-media-container {
    max-width: calc(100vw - 200px);
    max-height: calc(100vh - 120px);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* GIF Gallery Styles */
.gallery-gif-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.gallery-gif {
    border: 2px solid #ff6600 !important;
    box-shadow: 0 0 20px rgba(255, 102, 0, 0.3) !important;
}

.gallery-gif:hover {
    border-color: #ff8800 !important;
    box-shadow: 0 0 30px rgba(255, 136, 0, 0.5) !important;
    transform: scale(1.02);
}

.gallery-gif-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
}

.gif-badge {
    background: linear-gradient(45deg, #ff6600, #ff8800);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(255, 102, 0, 0.4);
    animation: gifPulse 2s ease-in-out infinite;
}

/* Fullscreen GIF Styles */
.fullscreen-gif-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    max-height: 100%;
}

.gallery-gif-fullscreen {
    border: 3px solid #ff6600 !important;
    box-shadow: 0 0 40px rgba(255, 102, 0, 0.4) !important;
    border-radius: 8px;
}

.fullscreen-gif-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

.gif-badge-large {
    background: linear-gradient(45deg, #ff6600, #ff8800, #ffaa00);
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.5);
    animation: gifPulseIntense 1.5s ease-in-out infinite;
    border: 1px solid #fff;
}

@keyframes gifPulse {
    0%, 100% {
        opacity: 0.9;
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 102, 0, 0.4);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
        box-shadow: 0 4px 15px rgba(255, 102, 0, 0.6);
    }
}

@keyframes gifPulseIntense {
    0%, 100% {
        opacity: 0.95;
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(255, 102, 0, 0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1.08);
        box-shadow: 0 6px 25px rgba(255, 102, 0, 0.7);
    }
}

/* Mobile responsive GIF styles */
@media (max-width: 768px) {
    .gallery-gif-indicator {
        top: 5px;
        right: 5px;
    }
    
    .gif-badge {
        font-size: 8px;
        padding: 2px 6px;
        border-radius: 3px;
    }
    
    .fullscreen-gif-indicator {
        top: 10px;
        right: 10px;
    }
    
    .gif-badge-large {
        font-size: 10px;
        padding: 6px 12px;
        border-radius: 4px;
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    .gif-badge {
        font-size: 6px;
        padding: 1px 4px;
        border-radius: 2px;
    }
    
    .gif-badge-large {
        font-size: 8px;
        padding: 4px 8px;
        border-radius: 3px;
        letter-spacing: 0.5px;
    }
}

/* Viewport and scaling fixes for mobile */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Prevent horizontal overflow on all mobile devices */
@media (max-width: 768px) {
    * {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    #terminal {
        overflow-x: hidden;
    }
    
    #output {
        overflow-x: hidden;
    }
    
    .output-line {
        max-width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .output-line::-webkit-scrollbar {
        display: none;
    }
}

/* Ultra-compact mode for very narrow screens */
@media (max-width: 320px) {
    body {
        font-size: clamp(3px, 4.5vw, 7px);
    }
    
    .ascii-enhanced {
        font-size: clamp(1px, 4vw, 4px) !important;
        line-height: 0.6 !important;
        transform: scaleX(0.7) scaleY(0.8);
        transform-origin: left center;
        letter-spacing: -1px;
    }
    
    .boot-line {
        font-size: clamp(3px, 4vw, 7px);
    }
    
    .hacker-line {
        font-size: clamp(4px, 4vw, 8px);
        margin: 2px 0;
    }
}

/* Width-based breakpoints for narrow screens (regardless of orientation) */
@media (max-width: 600px) {
    /* Very narrow screens - compress ASCII aggressively */
    .ascii-art,
    .command-output.ascii-enhanced,
    .success-message.ascii-enhanced,
    .info-message.ascii-enhanced {
        font-size: clamp(2px, 3.2vw, 6px) !important;
        line-height: 0.7 !important;
        transform: scaleX(0.75) scaleY(0.85);
        transform-origin: left center;
        letter-spacing: -0.8px;
        word-spacing: -2px;
    }
}

@media (max-width: 414px) {
    /* iPhone Pro Max and similar narrow screens */
    .ascii-art,
    .command-output.ascii-enhanced,
    .success-message.ascii-enhanced,
    .info-message.ascii-enhanced {
        font-size: clamp(1px, 3.8vw, 4px) !important;
        line-height: 0.6 !important;
        transform: scaleX(0.6) scaleY(0.75);
        transform-origin: left center;
        letter-spacing: -1.2px;
        word-spacing: -3px;
    }
}

@media (max-width: 375px) {
    /* iPhone standard and smaller screens */
    .ascii-art,
    .command-output.ascii-enhanced,
    .success-message.ascii-enhanced,
    .info-message.ascii-enhanced {
        font-size: clamp(1px, 4vw, 3px) !important;
        line-height: 0.5 !important;
        transform: scaleX(0.55) scaleY(0.7);
        transform-origin: left center;
        letter-spacing: -1.5px;
        word-spacing: -4px;
    }
}

@media (max-width: 320px) {
    /* Very old/small phones */
    .ascii-art,
    .command-output.ascii-enhanced,
    .success-message.ascii-enhanced,
    .info-message.ascii-enhanced {
        font-size: clamp(1px, 4.5vw, 3px) !important;
        line-height: 0.4 !important;
        transform: scaleX(0.5) scaleY(0.65);
        transform-origin: left center;
        letter-spacing: -2px;
        word-spacing: -5px;
    }
}

/* Orientation-specific handling for ASCII art */
@media (orientation: portrait) {
    /* Portrait mode - much more aggressive scaling */
    body {
        font-size: clamp(6px, 3.5vw, 12px);
    }
    
    .ascii-art,
    .command-output.ascii-enhanced,
    .success-message.ascii-enhanced,
    .info-message.ascii-enhanced {
        font-size: clamp(2px, 3vw, 6px) !important;
        line-height: 0.7 !important;
        transform: scaleX(0.8) scaleY(0.9);
        transform-origin: left center;
        letter-spacing: -0.5px;
        max-width: 100%;
        overflow-x: auto;
    }
    
    .boot-line {
        font-size: clamp(5px, 3.2vw, 10px);
    }
    
    .hacker-line {
        font-size: clamp(6px, 3vw, 12px);
        letter-spacing: 0.5px;
    }
}

@media (orientation: landscape) {
    /* Landscape mode - more breathing room */
    body {
        font-size: clamp(8px, 2vw, 16px);
    }
    
    .ascii-art,
    .command-output.ascii-enhanced,
    .success-message.ascii-enhanced,
    .info-message.ascii-enhanced {
        font-size: clamp(6px, 1.8vw, 14px) !important;
        line-height: 1.0 !important;
        transform: none;
        letter-spacing: 0px;
    }
}

/* Portrait tablets and large phones */
@media (orientation: portrait) and (min-width: 481px) and (max-width: 1024px) {
    .ascii-art,
    .command-output.ascii-enhanced,
    .success-message.ascii-enhanced,
    .info-message.ascii-enhanced {
        font-size: clamp(3px, 2.5vw, 8px) !important;
        line-height: 0.8 !important;
        transform: scaleX(0.75) scaleY(0.85);
        transform-origin: left center;
        letter-spacing: -0.3px;
    }
}

/* Portrait phones */
@media (orientation: portrait) and (max-width: 480px) {
    .ascii-art,
    .command-output.ascii-enhanced,
    .success-message.ascii-enhanced,
    .info-message.ascii-enhanced {
        font-size: clamp(1px, 3.5vw, 5px) !important;
        line-height: 0.6 !important;
        transform: scaleX(0.65) scaleY(0.8);
        transform-origin: left center;
        letter-spacing: -1px;
    }
    
    .boot-line {
        font-size: clamp(4px, 3.8vw, 8px);
    }
    
    .hacker-line {
        font-size: clamp(5px, 3.5vw, 10px);
        margin: 4px 0;
        letter-spacing: 0px;
    }
}

/* Landscape phones and small tablets */
@media (orientation: landscape) and (max-width: 896px) {
    .ascii-art,
    .command-output.ascii-enhanced,
    .success-message.ascii-enhanced,
    .info-message.ascii-enhanced {
        font-size: clamp(4px, 1.5vw, 10px) !important;
        line-height: 0.9 !important;
        transform: scaleX(0.9);
        transform-origin: left center;
    }
}

/* Special handling for constrained viewports (landscape phones, small tablets) */
@media (max-height: 500px) and (orientation: landscape) {
    /* Landscape phones with limited height */
    body {
        font-size: clamp(6px, 2.5vw, 12px);
    }
    
    .ascii-art,
    .command-output.ascii-enhanced,
    .success-message.ascii-enhanced,
    .info-message.ascii-enhanced {
        font-size: clamp(3px, 2vw, 8px) !important;
        line-height: 0.8 !important;
        transform: scaleX(0.85) scaleY(0.9);
        transform-origin: left center;
        margin: 1px 0;
    }
    
    .boot-line {
        font-size: clamp(5px, 2.5vw, 10px);
        margin: 4px 0;
    }
    
    .hacker-line {
        font-size: clamp(6px, 2.2vw, 12px);
        margin: 3px 0;
    }
    
    #terminal {
        padding: clamp(2px, 1vw, 6px);
    }
}

/* Extra handling for very small landscape screens */
@media (max-height: 400px) and (orientation: landscape) {
    .ascii-art,
    .command-output.ascii-enhanced,
    .success-message.ascii-enhanced,
    .info-message.ascii-enhanced {
        font-size: clamp(2px, 2.2vw, 6px) !important;
        line-height: 0.7 !important;
        transform: scaleX(0.8) scaleY(0.85);
        transform-origin: left center;
        margin: 0px;
    }
}

/* Project Links Styles (Steam Button) */
.project-links {
    margin: 20px 0;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.steam-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #1b2838 0%, #2a475e 50%, #1e3a52 100%);
    color: #ffffff;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 6px;
    border: 2px solid #66c0f4;
    font-family: 'JetBrains Mono', monospace;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 192, 244, 0.2);
    position: relative;
    overflow: hidden;
}

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

.steam-button:hover {
    background: linear-gradient(135deg, #2a475e 0%, #66c0f4 50%, #2a475e 100%);
    border-color: #ffffff;
    box-shadow: 0 6px 25px rgba(102, 192, 244, 0.4);
    transform: translateY(-2px);
    color: #000000;
}

.steam-button:hover::before {
    left: 100%;
}

.steam-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 192, 244, 0.3);
}

.steam-icon {
    font-size: 18px;
    text-shadow: 0 0 8px rgba(102, 192, 244, 0.6);
}

.steam-text {
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Website Button Styles */
.website-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #00ff00;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 6px;
    border: 2px solid #00ff00;
    font-family: 'JetBrains Mono', monospace;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 255, 0, 0.2);
    position: relative;
    overflow: hidden;
}

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

.website-button:hover {
    background: linear-gradient(135deg, #00ff00 0%, #32cd32 50%, #00ff00 100%);
    border-color: #ffffff;
    box-shadow: 0 6px 25px rgba(0, 255, 0, 0.4);
    transform: translateY(-2px);
    color: #000000;
}

.website-button:hover::before {
    left: 100%;
}

.website-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 255, 0, 0.3);
}

.website-icon {
    font-size: 18px;
    text-shadow: 0 0 8px rgba(0, 255, 0, 0.6);
}

.website-text {
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Documentation Button Styles */
.docs-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #2d1b69 0%, #11998e 50%, #38ef7d 100%);
    color: #ffffff;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 6px;
    border: 2px solid #38ef7d;
    font-family: 'JetBrains Mono', monospace;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(56, 239, 125, 0.2);
    position: relative;
    overflow: hidden;
}

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

.docs-button:hover {
    background: linear-gradient(135deg, #38ef7d 0%, #11998e 50%, #2d1b69 100%);
    border-color: #ffffff;
    box-shadow: 0 6px 25px rgba(56, 239, 125, 0.4);
    transform: translateY(-2px);
    color: #000000;
}

.docs-button:hover::before {
    left: 100%;
}

.docs-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(56, 239, 125, 0.3);
}

.docs-icon {
    font-size: 18px;
    text-shadow: 0 0 8px rgba(56, 239, 125, 0.6);
}

.docs-text {
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Twitter/X Button Styles */
.twitter-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #000000 0%, #14171a 50%, #1da1f2 100%);
    color: #ffffff;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 6px;
    border: 2px solid #1da1f2;
    font-family: 'JetBrains Mono', monospace;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(29, 161, 242, 0.2);
    position: relative;
    overflow: hidden;
}

.twitter-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(29, 161, 242, 0.1), transparent);
    transition: left 0.5s ease;
}

.twitter-button:hover {
    background: linear-gradient(135deg, #1da1f2 0%, #14171a 50%, #000000 100%);
    border-color: #ffffff;
    box-shadow: 0 6px 25px rgba(29, 161, 242, 0.4);
    transform: translateY(-2px);
    color: #000000;
}

.twitter-button:hover::before {
    left: 100%;
}

.twitter-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(29, 161, 242, 0.3);
}

.twitter-icon {
    font-size: 18px;
    text-shadow: 0 0 8px rgba(29, 161, 242, 0.6);
}

.twitter-text {
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Mobile responsive styles for new buttons */
@media (max-width: 768px) {
    .website-button, .docs-button, .twitter-button {
        padding: 10px 16px;
        font-size: 12px;
        gap: 8px;
    }
    
    .website-icon, .docs-icon, .twitter-icon {
        font-size: 16px;
    }
    
    .project-links {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .website-button, .docs-button {
        padding: 8px 12px;
        font-size: 10px;
        gap: 6px;
        width: 100%;
        justify-content: center;
    }
    
    .website-icon, .docs-icon {
        font-size: 14px;
    }
    
    .website-text, .docs-text {
        letter-spacing: 0.5px;
    }
    
    .project-links {
        flex-direction: column;
        gap: 8px;
    }
}

/* Local Video Styles */
.local-video {
    background: #000;
    border-radius: 8px;
}

.gallery-video.local-video {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
}

.fullscreen-video.local-video {
    width: 100%;
    height: auto;
    max-height: 80vh;
    max-width: 90vw;
    object-fit: contain;
}

/* Responsive local video styles */
@media (max-width: 768px) {
    .gallery-video.local-video {
        max-height: 250px;
    }
    
    .fullscreen-video.local-video {
        max-height: 60vh;
        max-width: 95vw;
    }
}

@media (max-width: 480px) {
    .gallery-video.local-video {
        max-height: 200px;
    }
    
    .fullscreen-video.local-video {
        max-height: 50vh;
        max-width: 98vw;
    }
}
