@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600&display=swap');

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

body { 
    background: #000000; 
    color: #e5e5e5; 
    font-family: 'JetBrains Mono', monospace;
    min-height: 100vh; 
    display: flex; 
    justify-content: center; 
    align-items: center;
    padding: 20px; 
    position: relative; 
    overflow-x: hidden;
}

body::before {
    content: ''; 
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: transparent;
    opacity: 0.4; 
    z-index: 0;
}
.grid-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), 
                     linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px); 
    background-size: 50px 50px; 
    pointer-events: none; 
    z-index: 1;
}

/* System Info */
.system-info { 
    color: #888; 
    font-size: 11px; 
    margin-top: 20px; 
    padding: 12px; 
    background: rgba(37, 36, 36, 0.116); 
    border-radius: 4px; 
    border: 1px solid rgba(255,255,255,0.05);
}

/* Command Section */
.command-section { 
    margin-top: 30px; 
    padding-top: 20px; 
    border-top: 1px solid rgba(255,255,255,0.1); 
    display: flex; 
    align-items: center; 
    position: relative;
}

.prompt { 
    color: #666; 
    font-weight: 500; 
    margin-right: 8px;
}

.cursor { 
    display: inline-block; 
    width: 8px; 
    height: 16px; 
    background: #fff; 
    position: absolute; 
    pointer-events: none;
}

.input-line { 
    display: flex; 
    align-items: center; 
    margin-top: 8px;
}

.input-prompt { 
    color: #666; 
    font-weight: 500; 
    margin-right: 8px;
}

#command-input { 
    flex: 1; 
    background: transparent; 
    border: none; 
    color: #e5e5e5; 
    font-family: 'JetBrains Mono', monospace; 
    font-size: 13px; 
    outline: none;
}

/* Output Styles */
.output-line { 
    margin-bottom: 12px;
}

.help-command { 
    color: #e5e5e5; 
    margin: 4px 0;
}

.help-desc { 
    color: #aaa; 
    margin-left: 20px;
}

.error { 
    color: #ff6b9d;
}

.section-title { 
    color: #fff; 
    font-weight: 600; 
    margin: 16px 0 8px 0; 
    font-size: 14px;
}

/* Skill Tags */
.skill-tag { 
    display: inline-block; 
    background: #242424; 
    color: #e5e5e5; 
    padding: 4px 12px; 
    border-radius: 16px; 
    margin: 4px 4px 4px 0; 
    font-size: 12px; 
    border: 1px solid #333;
}

.skills-category { 
    margin-bottom: 16px;
}

.category-title { 
    color: #999; 
    font-size: 11px; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    margin-bottom: 8px; 
    font-weight: 600;
}

/* Project Items */
.project-item { 
    background: #181818; 
    padding: 12px; 
    border-radius: 8px; 
    margin: 8px 0; 
    border-left: 3px solid #888;
}

.project-title { 
    color: #fff; 
    font-weight: 600; 
    margin-bottom: 4px;
}

.link { 
    color: #e5e5e5; 
    text-decoration: none; 
    border-bottom: 1px solid #999; 
    transition: border-color 0.3s;
}

.link:hover { 
    border-bottom-color: #fff;
}

.project-link { 
    display: inline-flex; 
    align-items: center; 
    gap: 6px; 
    color: #e5e5e5; 
    text-decoration: none; 
    font-size: 12px; 
    margin-top: 8px; 
    padding: 4px 8px; 
    border-radius: 4px; 
    border: 1px solid rgba(255,255,255,0.2); 
    transition: all 0.3s;
}

.project-link:hover { 
    background: rgba(255,255,255,0.1); 
    border-color: #fff; 
    transform: translateY(-2px);
}

.arrow-icon { 
    width: 14px; 
    height: 14px; 
    transition: transform 0.3s;
}

.project-link:hover .arrow-icon { 
    transform: translate(2px, -2px);
}

/* Blog Styles */
.blog-item {
    background: #181818; 
    padding: 16px; 
    border-radius: 8px; 
    margin: 12px 0; 
    border-left: 3px solid #888;
}

.blog-title { 
    color: #fff; 
    font-weight: 600; 
    margin-bottom: 6px; 
    font-size: 14px; 
}

.blog-subtitle { 
    color: #aaa; 
    font-size: 12px; 
    margin-bottom: 12px; 
    line-height: 1.5; 
}

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

.blog-button {
    display: inline-flex; 
    align-items: center; 
    gap: 6px; 
    color: #e5e5e5; 
    text-decoration: none;
    font-size: 11px; 
    padding: 6px 12px; 
    border-radius: 4px; 
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05); 
    cursor: pointer; 
    transition: all 0.3s;
}

.blog-button:hover { 
    background: rgba(255,255,255,0.1); 
    border-color: #fff; 
    transform: translateY(-2px); 
}

.blog-content {
    margin-top: 16px; 
    padding: 16px; 
    background: rgba(0,0,0,0.3); 
    border-radius: 4px;
    border-left: 2px solid #666; 
    color: #ccc; 
    line-height: 1.7; 
    max-height: 400px; 
    overflow-y: auto;
}

.blog-content h1, .blog-content h2, .blog-content h3 { 
    color: #fff; 
    margin: 16px 0 8px 0; 
}

.blog-content h1 { 
    font-size: 18px; 
}

.blog-content h2 { 
    font-size: 16px; 
}

.blog-content h3 { 
    font-size: 14px; 
}

.blog-content p { 
    margin: 8px 0; 
}

.blog-content code {
    background: rgba(255,255,255,0.1); 
    padding: 2px 6px; 
    border-radius: 3px;
    font-family: 'JetBrains Mono', monospace; 
    font-size: 12px;
}

.blog-content pre {
    background: rgba(0,0,0,0.5); 
    padding: 12px; 
    border-radius: 4px; 
    overflow-x: auto; 
    margin: 12px 0;
}

.blog-content pre code { 
    background: none; 
    padding: 0; 
}

.blog-content ul, .blog-content ol { 
    margin: 8px 0 8px 20px; 
}

.blog-content li { 
    margin: 4px 0; 
}

.blog-content a { 
    color: #fff; 
    text-decoration: underline; 
}

.blog-content blockquote {
    border-left: 3px solid #666; 
    padding-left: 12px; 
    margin: 12px 0; 
    color: #999; 
    font-style: italic;
}

/* File System */
.file-list { 
    margin: 12px 0; 
}

.file-item {
    padding: 4px 8px; 
    margin: 2px 0; 
    border-radius: 3px; 
    transition: background 0.2s; 
    cursor: default;
}

.file-item:hover { 
    background: rgba(255,255,255,0.05); 
}

.file-dir { 
    color: #6c9ef8; 
    font-weight: 500; 
}

.file-md { 
    color: #e5e5e5; 
}

/* Logs */
.logs-body::-webkit-scrollbar { 
    width: 8px; 
}

.logs-body::-webkit-scrollbar-track { 
    background: rgba(255,255,255,0.05); 
    border-radius: 4px; 
}

.logs-body::-webkit-scrollbar-thumb { 
    background: rgba(255,255,255,0.2); 
    border-radius: 4px; 
}

.logs-body::-webkit-scrollbar-thumb:hover { 
    background: rgba(255,255,255,0.3); 
}

/* Role Sections */
.role-container {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.role-box {
    flex: 1;
    min-width: 120px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.role-box::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05), rgba(255,255,255,0.1));
    border-radius: 14px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.role-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.role-box:hover::before {
    opacity: 1;
}

.role-box-content {
    color: #e5e5e5;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width:768px) {
    .neofetch-container { 
        grid-template-columns: 1fr; 
        gap: 30px;
    }
    .ascii-section { 
        min-width: auto; 
        text-align: center;
    }
    .ascii-art { 
        font-size: 8px;
    }
    .terminal-body { 
        padding: 20px;
    }
    .info-label { 
        min-width: 100px; 
        font-size: 11px;
    }
    .info-value { 
        font-size: 11px;
    }
}

/* ===== GAME CONTAINER & ELEMENTS ===== */
/* Game Container - Always on top */
.game-container {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1000; /* Highest z-index to always stay on top */
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 6px;
    pointer-events: none;
}

/* Tree Container */
.tree-container {
    position: relative;
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.3s ease;
}

.tree-container:hover {
    transform: scale(1.05);
}

.tree-svg {
    width: 80px;
    height: 100px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transition: all 0.5s ease;
}

.tree-tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.tree-container:hover .tree-tooltip {
    opacity: 1;
}

/* Mug Container */
.mug-container {
    position: relative;
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.3s ease;
}

.mug-container:hover {
    transform: scale(1.05);
}

.mug-svg {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transition: all 0.5s ease;
}

.mug-tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.mug-container:hover .mug-tooltip {
    opacity: 1;
}

/* Water Drop Animation */
.water-drop {
    position: absolute;
    width: 8px;
    height: 10px;
    background: linear-gradient(180deg, #87CEEB 0%, #1E90FF 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    top: -10px;
    opacity: 0;
    animation: dropFall 2s ease-in forwards;
    pointer-events: none;
    z-index: 1010; /* Above game container */
}

@keyframes dropFall {
    0% {
        top: -10px;
        opacity: 0;
        transform: scale(0.8);
    }
    10% {
        opacity: 1;
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        top: 90%;
        opacity: 0;
        transform: scale(0.6);
    }
}

/* Game Message */
.game-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.9);
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 2000; /* Above everything */
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border: 1px solid rgba(255,255,255,0.2);
}

.game-message.show {
    opacity: 1;
}

/* Tree States */
.tree-healthy {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)) hue-rotate(0deg) saturate(1);
}

.tree-slightly-damaged {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)) hue-rotate(-10deg) saturate(0.9);
}

.tree-damaged {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)) hue-rotate(-20deg) saturate(0.7);
}

.tree-dying {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)) hue-rotate(-30deg) saturate(0.5);
}

.tree-dead {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)) hue-rotate(-40deg) saturate(0.3) brightness(0.8);
}

/* Mug States */
.mug-empty {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)) brightness(1);
}

.mug-25 {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)) brightness(1.1);
}

.mug-50 {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)) brightness(1.2);
}

.mug-75 {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)) brightness(1.3);
}

.mug-full {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)) brightness(1.4);
}

/* Shake Animations */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px) rotate(-1deg); }
    75% { transform: translateX(2px) rotate(1deg); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

/* Bounce Animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

.bounce {
    animation: bounce 0.6s ease-in-out;
}

/* Pulse Animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 0.5s ease-in-out;
}

@media (max-width: 600px) {
    h1 {
        font-size: 2em;
    }

    .game-area {
        flex-direction: column;
    }

    .svg-container {
        width: 180px;
        height: 220px;
    }
    
    .game-container {
        top: 5px;
        right: 5px;
    }
    
    .tree-svg {
        width: 60px;
        height: 80px;
    }
    
    .mug-svg {
        width: 50px;
        height: 50px;
    }
}

/* ===== PIXEL CATS ===== */
/* Pixel Cats Container */
.pixel-cats-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100; /* Below game container but above terminal */
    overflow: hidden;
}

/* Individual Space Cat */
.pixel-cat {
    position: absolute;
    width: 40px;
    height: 40px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    pointer-events: none;
    z-index: 100; /* Same as container */
    filter:
        drop-shadow(0 0 3px rgba(160, 210, 255, 0.6))
        drop-shadow(0 0 6px rgba(160, 210, 255, 0.4));
}

/* Enhanced floating animations with z-index changes */
@keyframes spaceFloat1 {
    0%, 20% {
        transform: translateX(-50px) translateY(0) rotate(0deg) translateY(0);
        z-index: 100; /* Normal level */
    }
    25% {
        transform: translateX(15vw) translateY(40vh) rotate(5deg) translateY(-3px);
        z-index: 150; /* Pop over terminal */
    }
    30% {
        transform: translateX(20vw) translateY(45vh) rotate(-3deg) translateY(2px);
        z-index: 150;
    }
    35% {
        transform: translateX(25vw) translateY(42vh) rotate(8deg) translateY(-4px);
        z-index: 150;
    }
    40%, 60% {
        transform: translateX(35vw) translateY(20vh) rotate(-5deg) translateY(1px);
        z-index: 100;
    }
    65% {
        transform: translateX(45vw) translateY(25vh) rotate(12deg) translateY(-2px);
        z-index: 150;
    }
    70% {
        transform: translateX(50vw) translateY(28vh) rotate(-8deg) translateY(3px);
        z-index: 150;
    }
    75%, 100% {
        transform: translateX(calc(100vw + 50px)) translateY(5vh) rotate(0deg) translateY(0);
        z-index: 100;
    }
}

@keyframes spaceFloat2 {
    0%, 10% {
        transform: translateX(calc(100vw + 50px)) translateY(80vh) rotate(-5deg) translateY(0);
        z-index: 100;
    }
    15% {
        transform: translateX(85vw) translateY(65vh) rotate(8deg) translateY(-2px);
        z-index: 150;
    }
    20% {
        transform: translateX(80vw) translateY(60vh) rotate(-10deg) translateY(3px);
        z-index: 150;
    }
    25%, 45% {
        transform: translateX(60vw) translateY(75vh) rotate(12deg) translateY(-4px);
        z-index: 100;
    }
    50% {
        transform: translateX(50vw) translateY(70vh) rotate(-8deg) translateY(1px);
        z-index: 150;
    }
    55% {
        transform: translateX(45vw) translateY(65vh) rotate(6deg) translateY(-3px);
        z-index: 150;
    }
    60%, 80% {
        transform: translateX(30vw) translateY(55vh) rotate(-3deg) translateY(2px);
        z-index: 100;
    }
    85% {
        transform: translateX(20vw) translateY(50vh) rotate(5deg) translateY(-2px);
        z-index: 150;
    }
    90%, 100% {
        transform: translateX(-50px) translateY(50vh) rotate(-5deg) translateY(0);
        z-index: 100;
    }
}

@keyframes spaceFloat3 {
    0%, 15% {
        transform: translateX(50vw) translateY(calc(100vh + 50px)) rotate(0deg) translateY(0);
        z-index: 100;
    }
    20% {
        transform: translateX(55vw) translateY(85vh) rotate(15deg) translateY(-5px);
        z-index: 150;
    }
    25% {
        transform: translateX(60vw) translateY(80vh) rotate(-12deg) translateY(3px);
        z-index: 150;
    }
    30%, 40% {
        transform: translateX(65vw) translateY(75vh) rotate(8deg) translateY(-2px);
        z-index: 100;
    }
    45% {
        transform: translateX(60vw) translateY(50vh) rotate(-10deg) translateY(4px);
        z-index: 150;
    }
    50% {
        transform: translateX(55vw) translateY(45vh) rotate(12deg) translateY(-3px);
        z-index: 150;
    }
    55%, 70% {
        transform: translateX(40vw) translateY(40vh) rotate(-8deg) translateY(2px);
        z-index: 100;
    }
    75% {
        transform: translateX(30vw) translateY(35vh) rotate(10deg) translateY(-4px);
        z-index: 150;
    }
    80% {
        transform: translateX(25vw) translateY(30vh) rotate(-5deg) translateY(3px);
        z-index: 150;
    }
    85%, 100% {
        transform: translateX(50vw) translateY(calc(100vh + 50px)) rotate(0deg) translateY(0);
        z-index: 100;
    }
}

/* Apply floating animations to cats */
.cat-1 {
    animation: spaceFloat1 50s linear infinite;
}

.cat-2 {
    animation: spaceFloat2 65s linear infinite;
}

.cat-3 {
    animation: spaceFloat3 80s ease-in-out infinite;
}

/* Enhanced glow effect when cats are over content */
.pixel-cat[style*="z-index: 150"],
.pixel-cat:hover {
    filter:
        drop-shadow(0 0 8px rgba(160, 210, 255, 0.9))
        drop-shadow(0 0 15px rgba(160, 210, 255, 0.7))
        drop-shadow(0 0 20px rgba(160, 210, 255, 0.5));
}

/* Make sure SVG scales properly */
.pixel-cat svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Twinkling stars background effect - behind everything */
.pixel-cats-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.8) 50%, transparent 100%),
        radial-gradient(1px 1px at 20% 40%, rgba(255,255,255,0.6) 50%, transparent 100%),
        radial-gradient(1px 1px at 30% 60%, rgba(255,255,255,0.7) 50%, transparent 100%),
        radial-gradient(1px 1px at 40% 80%, rgba(255,255,255,0.5) 50%, transparent 100%),
        radial-gradient(1px 1px at 60% 10%, rgba(255,255,255,0.9) 50%, transparent 100%),
        radial-gradient(1px 1px at 70% 30%, rgba(255,255,255,0.6) 50%, transparent 100%),
        radial-gradient(1px 1px at 80% 50%, rgba(255,255,255,0.7) 50%, transparent 100%),
        radial-gradient(1px 1px at 90% 70%, rgba(255,255,255,0.5) 50%, transparent 100%);
    background-size: 200px 200px;
    animation: twinkle 8s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 99; /* Stars behind cats */
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* ===== TERMINAL & MODALS ===== */
/* Ensure terminal and modals have proper z-index */
.terminal-container {
    position: relative;
    z-index: 50; /* Normal content level */
}

.logs-container,
.pdf-modal {
    position: fixed;
    z-index: 800; /* Below game container but above cats */
}

/* Make sure active modals are always on top */
.logs-container.active,
.pdf-modal.active {
    z-index: 2000; /* Same as game message - above everything */
}

/* Center GIF for terminal minimization */
.center-gif {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 500; /* Above terminal but below game container and cats when they pop over */
}

/* Pause animation when hovering over interactive elements */
.game-container:hover ~ .pixel-cats-container .pixel-cat,
a:hover ~ .pixel-cats-container .pixel-cat,
button:hover ~ .pixel-cats-container .pixel-cat {
    animation-play-state: paused;
}

/* ===== BOOKSHELF & EBOOK READER ===== */
/* Bookshelf Container */
.bookshelf-container {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1000; /* Same as game container */
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.3s ease;
}

.bookshelf-container:hover {
    transform: scale(1.05);
}

.bookshelf-svg {
    width: 80px;
    height: 100px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transition: all 0.3s ease;
}

.bookshelf-tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.bookshelf-container:hover .bookshelf-tooltip {
    opacity: 1;
}

/* eBook Library Modal */
.ebook-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.ebook-modal.active {
    display: flex;
}

.ebook-modal-content {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    width: 90%;
    height: 90%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.ebook-header {
    padding: 20px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #242424;
}

.ebook-title {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
}

.ebook-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background 0.3s;
}

.ebook-close:hover {
    background: rgba(255,255,255,0.1);
}

.ebook-library {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

/* Book Items */
.book-item {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #333;
    text-align: center;
}

.book-item:hover {
    transform: translateY(-5px);
    border-color: #666;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.book-cover {
    width: 120px;
    height: 160px;
    background: linear-gradient(135deg, #8B4513, #A0522D);
    margin: 0 auto 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    padding: 10px;
    border: 1px solid #5D4037;
    position: relative;
    overflow: hidden;
}

.book-cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 90%, rgba(255,255,255,0.1) 100%);
}

.book-title {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

.book-author {
    color: #aaa;
    font-size: 12px;
}

.book-pages {
    color: #888;
    font-size: 11px;
    margin-top: 5px;
}

/* Book Reader */
.book-reader {
    flex: 1;
    display: none;
    flex-direction: column;
    background: #1a1a1a;
}

.book-reader.active {
    display: flex;
}

.reader-header {
    padding: 15px 20px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #242424;
}

.reader-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.reader-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.reader-btn {
    background: #333;
    border: 1px solid #555;
    color: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
}

.reader-btn:hover:not(:disabled) {
    background: #444;
    border-color: #666;
}

.reader-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-indicator {
    color: #aaa;
    font-size: 12px;
    margin: 0 10px;
}

/* Book Pages */
.book-pages-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    padding: 40px;
    position: relative;
}

.book-spread {
    display: flex;
    gap: 2px;
    position: relative;
}

.book-page {
    width: 300px;
    height: 400px;
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
}

.page-content {
    flex: 1;
    padding: 30px;
    color: #333;
    font-family: 'Georgia', serif;
    font-size: 14px;
    line-height: 1.6;
    overflow-y: auto;
    background: #fefefe;
}

.page-number {
    position: absolute;
    bottom: 10px;
    right: 15px;
    color: #666;
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
}

/* Page Turn Animation */
.page-turn {
    position: absolute;
    width: 300px;
    height: 400px;
    background: #fff;
    border-radius: 2px;
    transform-origin: left center;
    transition: transform 0.8s ease;
    z-index: 10;
    display: none;
}

.page-turn.active {
    display: block;
    transform: rotateY(-180deg);
}

.page-turn-front,
.page-turn-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    padding: 30px;
    background: #fefefe;
}

.page-turn-back {
    transform: rotateY(180deg);
}

/* PDF View */
.pdf-view {
    width: 100%;
    height: 100%;
    border: none;
    background: #fff;
}

/* Loading State */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #aaa;
    font-size: 16px;
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    /* 0%, 20% { content: '.'; }
    40% { content: '..'; } */
    /* 60%, 100% { content: '...'; } */
}

/* Back to Library Button */
.back-to-library {
    background: #333;
    border: 1px solid #555;
    color: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    margin-right: 10px;
}

.back-to-library:hover {
    background: #444;
    border-color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ebook-modal-content {
        width: 95%;
        height: 95%;
    }
    
    .ebook-library {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .book-cover {
        width: 100px;
        height: 140px;
    }
    
    .book-page {
        width: 250px;
        height: 350px;
    }
    
    .page-turn {
        width: 250px;
        height: 350px;
    }
}

@media (max-width: 480px) {
    .ebook-library {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .book-spread {
        flex-direction: column;
    }
    
    .book-page {
        width: 100%;
        max-width: 300px;
        height: 200px;
    }
}

/* ===== MUSIC PLAYER & AUDIO VISUALIZER ===== */
/* Music Player Container */
.music-player-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.3s ease;
}

.music-player-container:hover {
    transform: scale(1.05);
}

.music-player-svg {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transition: all 0.3s ease;
}

.music-player-tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.music-player-container:hover .music-player-tooltip {
    opacity: 1;
}

/* Music Player Modal */
.music-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.music-modal.active {
    display: flex;
}

.music-modal-content {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    width: 90%;
    height: 90%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.music-header {
    padding: 20px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #242424;
}

.music-title {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
}

.music-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background 0.3s;
}

.music-close:hover {
    background: rgba(255,255,255,0.1);
}

/* Playlist */
.music-playlist {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.playlist-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #2a2a2a;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #333;
}

.playlist-item:hover {
    background: #333;
    border-color: #555;
}

.playlist-item.active {
    background: #1DB954;
    border-color: #1ed760;
}

.track-number {
    color: #aaa;
    font-size: 14px;
    width: 30px;
    text-align: center;
}

.track-info {
    flex: 1;
    margin: 0 15px;
}

.track-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.track-artist {
    color: #aaa;
    font-size: 14px;
}

.track-duration {
    color: #aaa;
    font-size: 14px;
}

/* Player Controls */
.music-player {
    padding: 20px;
    border-top: 1px solid #333;
    background: #242424;
}

.now-playing {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.now-playing-info {
    flex: 1;
    margin-left: 15px;
}

.now-playing-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.now-playing-artist {
    color: #aaa;
    font-size: 14px;
}

.player-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.control-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.control-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s;
}

.control-btn:hover {
    background: rgba(255,255,255,0.1);
}

.play-btn {
    background: #1DB954;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.play-btn:hover {
    background: #1ed760;
    transform: scale(1.1);
}

.progress-container {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-time {
    color: #aaa;
    font-size: 12px;
    min-width: 40px;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: #333;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.progress {
    height: 100%;
    background: #1DB954;
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s;
}

/* Audio Visualizer */
.audio-visualizer {
    height: 100px;
    margin: 20px 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
}

.visualizer-bar {
    width: 4px;
    background: #1DB954;
    border-radius: 2px;
    transition: height 0.1s;
    min-height: 2px;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.volume-icon {
    color: #aaa;
    font-size: 16px;
}

.volume-bar {
    flex: 1;
    height: 4px;
    background: #333;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.volume-level {
    height: 100%;
    background: #1DB954;
    border-radius: 2px;
    width: 70%;
}

/* ===== TERMINAL STYLES ===== */
/* Terminal Container - Translucent Effect */
.terminal-container {
    position: relative;
    z-index: 50;
    background: rgba(26, 26, 26, 0.85); /* Semi-transparent dark background */
    backdrop-filter: blur(10px); /* Glass morphism effect */
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Terminal Body - Ensure content is readable */
.terminal-body {
    background: transparent; /* Remove any solid background */
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

/* Add a subtle gradient overlay for better readability */
.terminal-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.02) 50%,
        rgba(255, 255, 255, 0.05) 100%
    );
    pointer-events: none;
    z-index: -1;
    border-radius: 12px;
}

/* Ensure text remains readable */
.terminal-body .output-line,
.terminal-body .help-command,
.terminal-body .help-desc,
.terminal-body .section-title,
.terminal-body .skill-tag,
.terminal-body .project-title,
.terminal-body .link {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); /* Add text shadow for better contrast */
}

/* Command input area */
.command-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    margin: 15px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* System info with translucent effect */
.system-info {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

/* Project items with translucent effect */
.project-item {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

/* Blog items with translucent effect */
.blog-item {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

/* Role boxes with enhanced translucent effect */
.role-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Skill tags with translucent effect */
.skill-tag {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Scrollbar styling for translucent terminal */
.terminal-body::-webkit-scrollbar {
    width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Ensure the grid overlay doesn't interfere with readability */
.grid-overlay {
    z-index: 1;
}

/* Make sure the body background shows through appropriately */
body::before {
    z-index: 0;
}

/* Terminal icon when minimized */
.terminal-icon {
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .terminal-container {
        margin: 10px;
        background: rgba(26, 26, 26, 0.9); /* Slightly more opaque on mobile */
    }
    
    .command-section {
        margin: 10px;
        padding: 12px;
    }
}

/* Animation states for terminal */
.terminal-container.minimized {
    transform: scale(0.8);
    opacity: 0;
}

.terminal-container.restoring {
    animation: terminalRestore 0.5s ease-out;
}

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

/* Hover effects for interactive elements */
.project-link:hover,
.blog-button:hover {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Ensure modals and other overlays maintain proper z-index */
.logs-container.active,
.pdf-modal.active,
.ebook-modal.active,
.music-modal.active {
    z-index: 2000;
}

/* Center GIF for terminal minimization */
.center-gif {
    z-index: 60;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 20px;
}

/* ===== UPDATED BOOK & MUSIC ICONS ===== */
/* Book Container */
.bookshelf-container {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1000;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.bookshelf-container:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.5));
}

.bookshelf-svg {
    width: 60px;
    height: 80px;
    transition: all 0.3s ease;
}

.bookshelf-tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.bookshelf-container:hover .bookshelf-tooltip {
    opacity: 1;
}

/* Music Player Container */
.music-player-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.music-player-container:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.5));
}

.music-player-svg {
    width: 60px;
    height: 60px;
    transition: all 0.3s ease;
}

.music-player-tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.music-player-container:hover .music-player-tooltip {
    opacity: 1;
}

/* Enhanced glow effects */
.bookshelf-container,
.music-player-container {
    filter: 
        drop-shadow(0 0 5px rgba(255, 255, 255, 0.4))
        drop-shadow(0 0 10px rgba(255, 255, 255, 0.2))
        drop-shadow(0 0 15px rgba(255, 255, 255, 0.1));
}

.bookshelf-container:hover,
.music-player-container:hover {
    filter: 
        drop-shadow(0 0 8px rgba(255, 255, 255, 0.6))
        drop-shadow(0 0 15px rgba(255, 255, 255, 0.3))
        drop-shadow(0 0 20px rgba(255, 255, 255, 0.2));
}

/* ===== VINYL RECORD MUSIC PLAYER ===== */
.music-player-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.music-player-container:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.5));
}

.music-player-svg {
    width: 60px;
    height: 60px;
    transition: all 0.3s ease;
}

/* Vinyl rotation animation when playing */
.music-player-container.playing .music-player-svg {
    animation: rotateVinyl 3s linear infinite;
}

@keyframes rotateVinyl {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Vinyl controls overlay */
.vinyl-controls {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.play-indicator {
    color: #e0e0e0;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-shadow: 0 0 4px rgba(0,0,0,0.8);
}

.music-player-container.playing .play-indicator {
    opacity: 1;
}

.music-player-container.paused .play-indicator {
    opacity: 1;
    color: #888;
}

/* Mini player for background control */
.mini-player {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 15px;
    z-index: 999;
    display: none;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.mini-player.active {
    display: flex;
}

.mini-player-info {
    flex: 1;
    min-width: 0;
}

.mini-player-title {
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-player-artist {
    color: #aaa;
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-player-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mini-player-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    padding: 4px;
    border-radius: 3px;
    transition: background 0.3s;
}

.mini-player-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Enhanced music modal styles */
.music-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.music-modal.active {
    display: flex;
}

.music-modal-content {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    width: 90%;
    height: 90%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

/* Playlist with local file support */
.playlist-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #2a2a2a;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #333;
}

.playlist-item:hover {
    background: #333;
    border-color: #555;
}

.playlist-item.active {
    background: #1DB954;
    border-color: #1ed760;
}

.track-info {
    flex: 1;
    margin: 0 15px;
}

.track-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.track-artist {
    color: #aaa;
    font-size: 14px;
}

/* File upload area */
.file-upload-area {
    padding: 20px;
    border-bottom: 1px solid #333;
    background: rgba(255, 255, 255, 0.05);
}

.upload-button {
    background: #1DB954;
    border: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    transition: background 0.3s;
}

.upload-button:hover {
    background: #1ed760;
}

.file-input {
    display: none;
}

.upload-info {
    color: #aaa;
    font-size: 12px;
    margin-top: 10px;
}

/* Audio visualizer enhancements */
.audio-visualizer {
    height: 100px;
    margin: 20px 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
}

.visualizer-bar {
    width: 4px;
    background: #1DB954;
    border-radius: 2px;
    transition: height 0.1s;
    min-height: 2px;
}

/* Player controls */
.player-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.control-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.control-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s;
}

.control-btn:hover {
    background: rgba(255,255,255,0.1);
}

.play-btn {
    background: #1DB954;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.play-btn:hover {
    background: #1ed760;
    transform: scale(1.1);
}

/* Progress bar */
.progress-container {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-time {
    color: #aaa;
    font-size: 12px;
    min-width: 40px;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: #333;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.progress {
    height: 100%;
    background: #1DB954;
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s;
}

/* Volume control */
.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.volume-icon {
    color: #aaa;
    font-size: 16px;
}

.volume-bar {
    flex: 1;
    height: 4px;
    background: #333;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.volume-level {
    height: 100%;
    background: #1DB954;
    border-radius: 2px;
    width: 70%;
}

/* Responsive design */
@media (max-width: 768px) {
    .music-modal-content {
        width: 95%;
        height: 95%;
    }
    
    .mini-player {
        bottom: 80px;
        right: 10px;
        max-width: 200px;
    }
    
    .music-player-container {
        bottom: 10px;
        right: 10px;
    }
}

.system-info {
    color: #888;
    font-size: 11px;
    margin: 20px 0;
    padding: 8px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}


.pixel-cats-container::before {
    display: none;
}

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: #666;
    font-style: italic;
}

.error {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: #ff6b6b;
    text-align: center;
    padding: 20px;
}

.page-content canvas {
    max-width: 100%;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* When the book reader is active, we want to maximize the PDF viewer */
.book-reader.active .book-pages-container {
  padding: 0; /* Remove padding */
}

.book-reader.active .book-spread {
  width: 100%;
  height: 100%;
}

.book-reader.active .book-page {
  width: 100%;
  height: 100%;
  border-radius: 0; /* Remove border radius if needed */
}

.book-reader.active .page-content {
  padding: 0; /* Remove padding inside the page */
}

/* ===== EBOOK CATEGORY TABS ===== */
.ebook-categories-nav {
    display: flex;
    padding: 0 20px;
    border-bottom: 1px solid #333;
    background: #242424;
    gap: 0;
}

.category-btn {
    background: transparent;
    border: none;
    color: #aaa;
    padding: 12px 24px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.category-btn::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;
}

.category-btn:hover::before {
    left: 100%;
}

.category-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}

.category-btn.active {
    color: #fff;
    border-bottom-color: #fff;
    background: rgba(255,255,255,0.08);
}

/* eBook Library Containers */
.ebook-library {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    display: none;
}

.ebook-library.active {
    display: grid;
}

/* Book Items with Enhanced Styling */
.book-item {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #333;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.book-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.book-item:hover::before {
    opacity: 1;
}

.book-item:hover {
    transform: translateY(-5px);
    border-color: #666;
    box-shadow: 
        0 10px 20px rgba(0,0,0,0.3),
        0 0 20px rgba(255,255,255,0.1);
}

.book-cover {
    width: 120px;
    height: 160px;
    background: linear-gradient(135deg, #8B4513, #A0522D);
    margin: 0 auto 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    padding: 10px;
    border: 1px solid #5D4037;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.book-cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 90%, rgba(255,255,255,0.1) 100%);
}

/* Different colors for writing projects */
.book-item[data-title*="Genealogy"] .book-cover {
    background: linear-gradient(135deg, #2c5530, #4a7c59);
}

.book-item[data-title*="Die"] .book-cover {
    background: linear-gradient(135deg, #5d4037, #8d6e63);
}

.book-item[data-title*="Poems"] .book-cover {
    background: linear-gradient(135deg, #6a1b9a, #8e24aa);
}

.book-title {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    z-index: 2;
    position: relative;
}

.book-author {
    color: #aaa;
    font-size: 12px;
    z-index: 2;
    position: relative;
}

.book-pages {
    color: #888;
    font-size: 11px;
    margin-top: 5px;
    z-index: 2;
    position: relative;
}

/* ===== GLOWING OUTLINED ROLE BOXES ===== */
.role-container {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.role-box {
    flex: 1;
    min-width: 120px;
    background: transparent;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.role-box::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        rgba(255,255,255,0.8) 0%,
        rgba(255,255,255,0.4) 25%,
        rgba(255,255,255,0.1) 50%,
        rgba(255,255,255,0.4) 75%,
        rgba(255,255,255,0.8) 100%);
    border-radius: 14px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.role-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 26, 0.9);
    border-radius: 10px;
    z-index: -1;
    border: 1px solid rgba(255,255,255,0.2);
}

.role-box:hover::before {
    opacity: 1;
    animation: glowPulse 2s ease-in-out infinite;
}

.role-box:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 5px 25px rgba(255, 255, 255, 0.2),
        0 0 30px rgba(255, 255, 255, 0.1);
}

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

.role-box-content {
    color: #e5e5e5;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
    position: relative;
    z-index: 1;
}

/* Individual role box colors */
.role-box:nth-child(1)::before {
    background: linear-gradient(45deg, 
        rgba(255,255,255,0.8) 0%,
        rgba(97, 218, 251, 0.6) 25%,
        rgba(97, 218, 251, 0.3) 50%,
        rgba(97, 218, 251, 0.6) 75%,
        rgba(255,255,255,0.8) 100%);
}

.role-box:nth-child(2)::before {
    background: linear-gradient(45deg, 
        rgba(255,255,255,0.8) 0%,
        rgba(255, 193, 7, 0.6) 25%,
        rgba(255, 193, 7, 0.3) 50%,
        rgba(255, 193, 7, 0.6) 75%,
        rgba(255,255,255,0.8) 100%);
}

.role-box:nth-child(3)::before {
    background: linear-gradient(45deg, 
        rgba(255,255,255,0.8) 0%,
        rgba(0, 230, 118, 0.6) 25%,
        rgba(0, 230, 118, 0.3) 50%,
        rgba(0, 230, 118, 0.6) 75%,
        rgba(255,255,255,0.8) 100%);
}

.role-box:nth-child(4)::before {
    background: linear-gradient(45deg, 
        rgba(255,255,255,0.8) 0%,
        rgba(186, 104, 200, 0.6) 25%,
        rgba(186, 104, 200, 0.3) 50%,
        rgba(186, 104, 200, 0.6) 75%,
        rgba(255,255,255,0.8) 100%);
}

/* ===== ENHANCED EBOOK READER ===== */
.book-reader {
    flex: 1;
    display: none;
    flex-direction: column;
    background: #1a1a1a;
}

.book-reader.active {
    display: flex;
}

.reader-header {
    padding: 15px 20px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #242424;
    flex-shrink: 0;
}

.reader-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    flex: 1;
    margin: 0 20px;
    text-align: center;
}

.reader-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.reader-btn {
    background: #333;
    border: 1px solid #555;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 500;
}

.reader-btn:hover:not(:disabled) {
    background: #444;
    border-color: #666;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.reader-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.page-indicator {
    color: #aaa;
    font-size: 14px;
    margin: 0 15px;
    font-weight: 500;
}

/* Enhanced Book Pages Container */
.book-pages-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    padding: 20px;
    position: relative;
    min-height: 0;
}

.book-spread {
    display: flex;
    gap: 0;
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 1200px;
    max-height: 800px;
}

.book-page {
    width: 100%;
    height: 100%;
    min-height: 600px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
}

.page-content {
    flex: 1;
    padding: 0;
    color: #333;
    font-family: 'Georgia', serif;
    font-size: 14px;
    line-height: 1.6;
    overflow: hidden;
    background: #fefefe;
    display: flex;
}

.pdf-view {
    width: 100%;
    height: 100%;
    border: none;
    background: #fff;
    border-radius: 4px;
}

.page-number {
    position: absolute;
    bottom: 15px;
    right: 20px;
    color: #666;
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
    background: rgba(255,255,255,0.9);
    padding: 2px 8px;
    border-radius: 3px;
}

/* Back to Library Button */
.back-to-library {
    background: #333;
    border: 1px solid #555;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    margin-right: 15px;
    font-weight: 500;
}

.back-to-library:hover {
    background: #444;
    border-color: #666;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Responsive Design for Tabs and Roles */
@media (max-width: 768px) {
    .ebook-categories-nav {
        flex-direction: column;
        padding: 10px;
    }
    
    .category-btn {
        text-align: center;
        border-bottom: 1px solid #333;
        border-right: none;
    }
    
    .category-btn.active {
        border-bottom: 2px solid #fff;
        border-right: none;
    }
    
    .role-container {
        gap: 10px;
    }
    
    .role-box {
        min-width: calc(50% - 10px);
        padding: 12px 8px;
    }
    
    .role-box-content {
        font-size: 12px;
    }
    
    .ebook-library {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
        padding: 15px;
    }
    
    .book-cover {
        width: 100px;
        height: 140px;
    }
}

@media (max-width: 480px) {
    .role-box {
        min-width: 100%;
    }
    
    .ebook-library {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-btn {
        padding: 10px 15px;
        font-size: 12px;
    }
}

/* Fullscreen PDF enhancements */
.book-page.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 3000;
    border-radius: 0;
    max-width: none;
    max-height: none;
}

/* Loading state for large PDFs */
.pdf-view.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f5f5f5;
}

.pdf-view.loading::before {
    content: 'Loading PDF...';
    color: #666;
    font-size: 16px;
    font-style: italic;
}

/* ===== ENHANCED PDF CONTROLS ===== */
.pdf-controls {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    background: rgba(0,0,0,0.95);
    padding: 12px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    z-index: 100;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.pdf-nav-btn {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.4);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 80px;
    letter-spacing: 0.5px;
}

.pdf-nav-btn:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.pdf-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* Enhanced zoom controls with download */
.pdf-zoom-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 6px;
    background: rgba(0,0,0,0.95);
    padding: 10px 12px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    z-index: 100;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.zoom-btn {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.4);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.zoom-btn:hover {
    background: rgba(255,255,255,0.25);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.download-btn {
    background: linear-gradient(135deg, #1DB954, #1ed760);
    border: 1px solid rgba(255,255,255,0.4);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    margin-left: 4px;
}

.download-btn:hover {
    background: linear-gradient(135deg, #1ed760, #4cd964);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(29, 185, 84, 0.4);
}

.zoom-level {
    color: white;
    font-size: 12px;
    margin: 0 10px;
    min-width: 50px;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
}

/* Page info display */
.pdf-page-info {
    position: fixed;
    bottom: 30px;
    right: 20px;
    background: rgba(0,0,0,0.95);
    color: white;
    padding: 10px 16px;
    border-radius: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    z-index: 100;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

/* Scroll position indicator */
.pdf-scroll-info {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(0,0,0,0.95);
    color: white;
    padding: 10px 16px;
    border-radius: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    z-index: 100;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    display: none;
}

/* Enhanced PDF container with smooth scrolling and mouse wheel support */
#pdf-container {
    width: 100%;
    height: 100%;
    position: relative;
    background: #f5f5f5;
    overflow: auto;
    display: flex;
    justify-content: center;
    padding: 20px;
    scroll-behavior: smooth;
}

#pdf-canvas {
    max-width: 100%;
    height: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-radius: 4px;
    display: block;
    transition: transform 0.2s ease;
}

/* Enhanced scrollbar styling for better mouse wheel experience */
#pdf-container::-webkit-scrollbar {
    width: 14px;
    height: 14px;
}

#pdf-container::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
    border-radius: 8px;
    margin: 4px;
}

#pdf-container::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.4);
    border-radius: 8px;
    border: 3px solid transparent;
    background-clip: content-box;
    transition: background 0.3s ease;
}

#pdf-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.6);
    border: 3px solid transparent;
    background-clip: content-box;
}

#pdf-container::-webkit-scrollbar-thumb:active {
    background: rgba(0,0,0,0.7);
}

#pdf-container::-webkit-scrollbar-corner {
    background: transparent;
}

/* Loading animation */
#pdf-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-size: 16px;
    font-style: italic;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #666;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pdf-controls {
        bottom: 20px;
        padding: 10px 15px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }
    
    .pdf-nav-btn {
        min-width: 70px;
        font-size: 11px;
        padding: 6px 12px;
    }
    
    .pdf-zoom-controls {
        top: 10px;
        right: 10px;
        padding: 8px 10px;
        gap: 4px;
    }
    
    .zoom-btn, .download-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .pdf-page-info {
        bottom: 80px;
        right: 10px;
        font-size: 11px;
        padding: 8px 12px;
    }
    
    .pdf-scroll-info {
        top: 10px;
        left: 10px;
        font-size: 11px;
        padding: 8px 12px;
    }
    
    #pdf-container {
        padding: 10px;
    }
}

/* Remove quick scroll buttons styles - they are no longer needed */

