/* Chicago Font */
@font-face {
    font-family: 'Chicago';
    src: url('../ChicagoFLF.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Nunito Font */
@font-face {
    font-family: 'Nunito';
    src: url('../Nunito/Nunito-VariableFont_wght.ttf') format('truetype');
    font-weight: 200 900;
    font-style: normal;
}

@font-face {
    font-family: 'Nunito';
    src: url('../Nunito/Nunito-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 200 900;
    font-style: italic;
}

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

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --highlight: #e5e7eb;
    --shadow: #374151;
    --dark-shadow: #1f2937;
    --bg: #0f172a;
    --text: #e5e7eb;
    --button-face: #334155;
    
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #0f0f1a 100%);
    color: #e5e7eb;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M3 3l7.07 16.97 2.51-7.39 7.39-2.51L3 3z" fill="white" stroke="black" stroke-width="1"/></svg>') 0 0, auto;
    background-attachment: fixed;
}

/* Copyright Text - Bottom Right */
.copyright-text {
    position: fixed;
    right: 12px;
    bottom: 64px;
    font-size: 15px;
    opacity: 0.5;
    color: #e5e7eb;
    text-align: right;
    pointer-events: none;
    line-height: 1.3;
    z-index: 100;
}

.copyright-text p {
    margin: 0;
    white-space: nowrap;
}

/* Boot Screen */
.boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f172a, #1e3a5f);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: bootFadeOut 0.5s ease-out 2.5s forwards;
}

.boot-content {
    text-align: center;
}

.windows-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 40px;
    animation: logoScale 0.8s ease-out;
    filter: drop-shadow(0 8px 16px rgba(79, 70, 229, 0.3));
}

.windows-logo svg {
    width: 100%;
    height: 100%;
}

.boot-progress {
    width: 300px;
    height: 8px;
    border: none;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 4px;
    background: #334155;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4f46e5, #6366f1);
    animation: progressMove 2.5s ease-in-out;
    border-radius: 4px;
}

.boot-text {
    color: #b0b9c3;
    font-size: 14px;
    margin-top: 20px;
    font-weight: 500;
}

@keyframes bootFadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; pointer-events: none; }
}

@keyframes logoScale {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes progressMove {
    0% { width: 0%; }
    100% { width: 100%; }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

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

/* Desktop */
.desktop {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background-image: url('../Images/slikica.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.desktop::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(5px);
    background-color: rgba(0, 0, 0, 0.2);
    pointer-events: none;
    z-index: 0;
}

.desktop-icons {
    position: absolute;
    top: 30px;
    left: 30px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    width: 420px;
    pointer-events: auto;
    z-index: 1;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: grab;
    user-select: none;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: background var(--transition), border var(--transition);
    width: 90px;
    text-align: center;
    position: relative;
    transform-origin: center center;
    will-change: auto;
}

.desktop-icon.dragging {
    cursor: grabbing;
    opacity: 0.8;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    transform: scale(1.05) rotate(2deg);
    z-index: 1000;
}

.desktop-icon:hover {
    background: rgba(79, 70, 229, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(79, 70, 229, 0.3);
}

.desktop-icon.active {
    background: rgba(79, 70, 229, 0.2);
    border: 1px solid rgba(79, 70, 229, 0.4);
}

.icon-image {
    font-size: 48px;
    color: #e5e7eb;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
    transition: transform 0.2s ease, filter 0.2s ease, color 0.2s ease;
}

.icon-image[src] {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.desktop-icon[data-app="about"] .icon-image { color: #a78bfa; }
.desktop-icon[data-app="skills"] .icon-image { color: #38bdf8; }
.desktop-icon[data-app="projects"] .icon-image { color: #facc15; }
.desktop-icon[data-app="browser"] .icon-image { color: #60a5fa; }
.desktop-icon[data-app="experience"] .icon-image { color: #fb7185; }
.desktop-icon[data-app="education"] .icon-image { color: #34d399; }
.desktop-icon[data-app="contact"] .icon-image { color: #f472b6; }
.desktop-icon[data-app="cv"] .icon-image { color: #ef4444; }
.desktop-icon[data-app="settings"] .icon-image { color: #c4c9d4; }
.desktop-icon[data-app="terminal"] .icon-image { color: #7dd3fc; }
.desktop-icon[data-app="github"] .icon-image { color: #ffffff; }
.desktop-icon[data-app="taskmanager"] .icon-image { color: #f97316; }
.desktop-icon[data-app="privacy"] .icon-image { color: #a3e635; }
.desktop-icon[data-app="credits"] .icon-image { color: #f59e0b; }
.desktop-icon[data-app="snake"] .icon-image { color: #ec4899; }
.desktop-icon[data-app="tetris"] .icon-image { color: #06b6d4; }

.desktop-icon:hover .icon-image {
    filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.5));
    color: #a5b4fc;
}

.icon-label {
    font-size: 11px;
    word-wrap: break-word;
    width: 100%;
    color: #e5e7eb;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    font-weight: 500;
}

/* Clippy Assistant */
.clippy {
    position: fixed;
    right: 24px;
    bottom: 80px;
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    gap: 12px;
    z-index: 80;
}
.clippy.hidden { display: none; }
.clippy-image {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.4));
    flex-shrink: 0;
}
.clippy-bubble {
    background: #FFFFCC;
    border: 2px solid #000000;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    color: #000000;
    min-width: 220px;
    max-width: 280px;
    font-family: 'Segoe UI', 'Tahoma', sans-serif;
    position: relative;
}
.clippy-bubble::before {
    content: '';
    position: absolute;
    right: -16px;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 16px solid #000000;
}
.clippy-bubble::after {
    content: '';
    position: absolute;
    right: -12px;
    top: 22px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid #FFFFCC;
}
.clippy-text { 
    margin-bottom: 10px; 
    font-weight: 400;
    font-size: 13px;
    line-height: 1.5;
    color:black
}

/* Burn overlay */
.burn-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    display: none;
    z-index: 1200;
    overflow: hidden;
}

.burn-overlay.active {
    display: block;
}

.burn-overlay .fire-icon {
    position: absolute;
    color: #ef4444;
    font-size: 24px;
    opacity: 0.85;
    animation: fireFloat 2.2s ease-in-out infinite alternate;
    text-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

@keyframes fireFloat {
    from { transform: translateY(0) scale(1); opacity: 0.9; }
    to { transform: translateY(-12px) scale(1.08); opacity: 0.7; }
}

/* Glitch effect for fake task kills */
body.ui-glitch .window {
    filter: hue-rotate(25deg) saturate(140%);
    animation: uiGlitch 0.35s steps(2) infinite alternate;
}

@keyframes uiGlitch {
    from { transform: translate(0, 0); }
    to { transform: translate(-2px, 2px); }
}
.clippy-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.clippy-actions .clippy-icon {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    color: #000 !important;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: none !important;
    min-width: unset !important;
    width: auto;
    height: auto;
}
.clippy-actions .clippy-icon i { font-size: 1.2rem; }
.clippy-actions .clippy-icon:hover { opacity: 0.7; }
.clippy-actions .clippy-icon:focus { outline: 2px solid #000; outline-offset: 2px; }

#clippyClose {
    margin-left: auto;
}

/* Windows Container */
.windows-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
    z-index: 200;
}

.windows-container.has-windows {
    pointer-events: none;
}

/* Power screen overlay */
#powerScreen {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 20% 20%, rgba(79, 70, 229, 0.18), transparent 45%),
                radial-gradient(circle at 80% 80%, rgba(52, 211, 153, 0.15), transparent 40%),
                #050508;
    z-index: 1200;
    color: #e5e7eb;
}

#powerScreen.active {
    display: flex;
}

#powerScreen .power-card {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    padding: 28px 32px;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 260px;
}

#powerScreen .power-text {
    margin: 0;
    font-size: 16px;
    letter-spacing: 0.4px;
}

#powerScreen .power-button {
    width: 100%;
}

/* Taskbar */
.taskbar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 54px;
    background: rgba(20, 20, 24, 0.65);
    backdrop-filter: blur(30px) saturate(140%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    gap: 12px;
    z-index: 900;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.55);
}

.taskbar-left {
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.start-button {
    padding: 6px 12px;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    border: none;
    color: white;
    border-radius: 6px;
    font-weight: bold;
    font-size: 11px;
    cursor: pointer;
    min-width: 60px;
    height: 28px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
    transition: all var(--transition);
}

.start-button:hover {
    background: linear-gradient(135deg, #6366f1, #818cf8);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
}

.start-button:active {
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.4);
}

.start-icon {
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.quick-launch {
    display: flex;
    gap: 2px;
    border-left: 1px solid #4f46e5;
    padding-left: 8px;
    margin-left: 6px;
}

.taskbar-buttons {
    flex: 0 1 auto;
    display: flex;
    gap: 10px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    justify-content: center;
}

.taskbar-buttons::-webkit-scrollbar {
    display: none;
}

.taskbar-button {
    padding: 10px;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.12), rgba(255,255,255,0.02));
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 1.6rem;
    cursor: pointer;
    min-width: 56px;
    max-width: 56px;
    width: 56px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    color: #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

.taskbar-button img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.taskbar-button:hover {
    background: linear-gradient(145deg, rgba(120,140,255,0.35), rgba(80,100,255,0.25));
    color: white;
    transform: translateY(-2px) scale(1.05);
}

.taskbar-button.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.6), rgba(125, 140, 255, 0.7));
    color: white;
    box-shadow: 0 8px 22px rgba(99, 102, 241, 0.35);
}

.taskbar-right {
    position: absolute;
    right: 12px;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    padding-left: 8px;
}

.system-tray {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 8px;
}

.tray-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    color: #e5e7eb;
    transition: all var(--transition);
}

.tray-icon:hover {
    color: #4f46e5;
    transform: scale(1.1);
}

.tray-time {
    font-size: 11px;
    margin-left: 8px;
    min-width: 50px;
    text-align: right;
    font-weight: bold;
    color: #b0b9c3;
}

/* Start Menu */
.start-menu {
    position: absolute;
    bottom: 42px;
    left: 2px;
    width: 280px;
    background: #1e293b;
    border: 1px solid #334155;
    z-index: 950;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    animation: menuSlideUp 0.2s ease-out;
    border-radius: 8px;
    overflow: hidden;
}

.start-menu.hidden {
    display: none;
}

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

.start-menu-header {
    background: linear-gradient(90deg, #4f46e5, #6366f1);
    padding: 12px;
    border-bottom: 1px solid #334155;
}

.user-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px;
    color: white;
}

.user-avatar {
    font-size: 28px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

.user-name {
    font-weight: bold;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.start-menu-content {
    padding: 4px 0;
}

.menu-item {
    padding: 10px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e5e7eb;
    background: transparent;
    transition: all var(--transition);
    font-size: 12px;
    font-weight: 500;
}

.menu-item:hover {
    background: #4f46e5;
    color: white;
}

.menu-item i {
    font-size: 14px;
    width: 20px;
    text-align: center;
}

.menu-item img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.menu-folder {
    display: flex;
    flex-direction: column;
}

.menu-folder-header {
    padding: 10px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e5e7eb;
    background: transparent;
    transition: all var(--transition);
    font-size: 12px;
    font-weight: 500;
}

.menu-folder-header:hover {
    background: #4f46e5;
    color: white;
}

.menu-folder-header i:first-child {
    font-size: 14px;
    width: 20px;
    text-align: center;
}

.menu-folder-header i:last-child {
    font-size: 12px;
    margin-left: auto;
    transition: transform 0.2s ease;
}

.menu-folder.expanded .menu-folder-header i:last-child {
    transform: rotate(90deg);
}

.menu-folder-content {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all 0.2s ease;
}

.menu-folder-content.expanded {
    max-height: 500px;
    opacity: 1;
}

.menu-folder-content .menu-item {
    padding-left: 32px;
}

.menu-divider {
    border: none;
    border-top: 1px solid #334155;
    margin: 4px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .desktop-icons {
        grid-template-columns: repeat(3, minmax(80px, 1fr));
        max-width: 280px;
        gap: 20px;
    }
    
    .taskbar {
        height: 50px;
    }
    
    .start-menu {
        width: 240px;
    }
}

/* Achievements System */
.achievement-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.achievement-card {
    padding: 12px;
    border: 1px solid #475569;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.6);
    transition: all 0.2s ease;
    cursor: pointer;
}

.achievement-card:hover {
    border-color: #64748b;
    background: rgba(30, 41, 59, 0.7);
}

.achievement-card.unlocked {
    border-color: rgb(79, 70, 229);
    background: rgba(79, 70, 229, 0.15);
}

.achievement-card.unlocked:hover {
    border-color: rgb(99, 102, 241);
}

.achievement-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.achievement-header h2 {
    margin: 0;
    font-size: 1.2rem;
}

.achievement-stats {
    font-size: 0.95rem;
    color: #a0aec0;
}

.achievement-icon {
    font-size: 1.5rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: rgba(99, 102, 241, 0.2);
}

.achievement-card.unlocked .achievement-icon {
    background: rgba(99, 102, 241, 0.3);
}

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

.achievement-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #e5e7eb;
    margin: 0;
}

.achievement-description {
    font-size: 0.75rem;
    color: #94a3b8;
    margin: 4px 0 0 0;
    line-height: 1.3;
}

.achievement-card.locked .achievement-title,
.achievement-card.locked .achievement-description {
    color: #64748b;
}

.achievement-progress {
    margin-top: 8px;
    font-size: 0.75rem;
    color: #94a3b8;
}

.achievement-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(71, 85, 105, 0.4);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 4px;
}

.achievement-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, rgb(79, 70, 229), rgb(139, 92, 246));
    border-radius: 3px;
    transition: width 0.3s ease;
}

.achievement-progress-text {
    margin-top: 4px;
    font-size: 0.75rem;
    color: #a0aec0;
}

.achievement-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 16px;
    background: rgba(15, 23, 42, 0.95);
    border: 2px solid rgb(79, 70, 229);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    max-width: 320px;
    z-index: 9999;
    animation: slideInUp 0.3s ease, slideOutUp 0.4s ease 3.7s forwards;
    backdrop-filter: blur(10px);
}

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

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

.achievement-notification-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.achievement-notification-icon {
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.achievement-notification-content h3 {
    margin: 0;
    font-size: 1rem;
    color: #e5e7eb;
}

.achievement-notification-content p {
    margin: 4px 0 0 0;
    font-size: 0.875rem;
    color: #cbd5e1;
}

/* Shutdown Screen */
.shutdown-screen {
    position: fixed;
    inset: 0;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.3s ease;
}

.shutdown-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.power-button {
    width: 15rem;
    height: 15rem;
    border-radius: 50%;
    background: #1a1a1a;
    border: 3px solid #333;
    color: #666;
    font-size: 6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.1), 0 4px 10px rgba(0, 0, 0, 0.5);
}

.power-button:hover {
    background: #222;
    border-color: #444;
    color: #888;
    box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.15), 0 6px 15px rgba(0, 0, 0, 0.6);
}

.power-button:active {
    background: #0a0a0a;
    color: #555;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3), 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* Pikachu Sprite System */
.pikachu-sprite img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.pikachu-explosion img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes explosionPop {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.5);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

@keyframes rewardPop {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Welcome Popup */
.welcome-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    animation: fadeIn 0.3s ease;
}

.welcome-popup.hidden {
    display: none;
}

.welcome-content {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

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

.welcome-header {
    padding: 25px 30px;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.welcome-header h2 {
    font-size: 26px;
    color: #fff;
    margin: 0;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-close {
    background: none;
    border: none;
    color: #999;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.welcome-close:hover {
    color: #fff;
}

.welcome-body {
    padding: 25px 30px;
    color: #d1d5db;
    font-size: 14px;
    line-height: 1.7;
}

.welcome-body p {
    margin-bottom: 15px;
}

/* About Page Styling */
#aboutList {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about-media-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    padding: 20px;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.about-media-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    aspect-ratio: 1;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.about-media-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.about-media-video,
.about-media-gif {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-media-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 12px 10px 8px;
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.about-profile {
    padding: 20px;
    background: rgba(99, 102, 241, 0.08);
    border-left: 4px solid #6366f1;
    border-radius: 4px;
}

.about-profile h2 {
    font-size: 28px;
    margin: 0 0 8px 0;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-subtitle {
    font-size: 14px;
    color: #a855f7;
    font-weight: 600;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-summary {
    color: #ffffff;
    line-height: 1.6;
    margin: 0;
    font-size: 14px;
    font-family: 'Courier New', 'Courier', monospace;
}

.about-subtitle {
    font-size: 14px;
    color: #d6ffdc;
    font-weight: 600;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Courier New', 'Courier', monospace;
}

.about-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.about-highlights li {
    padding: 12px;
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-left: 3px solid #a855f7;
    border-radius: 4px;
    color: #d1d5db;
    font-size: 13px;
    line-height: 1.5;
    transition: all 0.2s ease;
}

.about-highlights li:hover {
    background: rgba(168, 85, 247, 0.15);
    border-left-color: #ec4899;
    transform: translateX(4px);
}

.about-cta {
    padding: 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 6px;
    text-align: center;
}

.about-cta p {
    margin: 0 0 15px 0;
    color: #d1d5db;
    font-size: 14px;
}

.about-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-cta-button:hover {
    background: linear-gradient(135deg, #7c3aed, #6366f1);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.4);
}

.about-cta-button:active {
    transform: translateY(0);
}

/* About Intro Section - Image Right, Text Left */
.about-intro-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    padding: 30px;
    background: transparent;
    border-radius: 0;
    border: 1px solid #333333;
    margin-bottom: 20px;
    font-family: 'Courier New', 'Courier', monospace;
}

.about-intro-text {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.about-intro-text h2 {
    font-size: 32px;
    margin: 0;
    color: #ffffff;
    font-family: 'Courier New', 'Courier', monospace;
    font-weight: bold;
    letter-spacing: 2px;
}

.about-intro-image {
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    border: none;
}

.about-profile-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.about-profile-image:hover {
    transform: translateY(-5px);
}

.about-profile h3 {
    font-size: 20px;
    margin: 0 0 15px 0;
    color: #ffffff;
    border-bottom: 2px solid #444444;
    padding-bottom: 10px;
}

/* About Sections - Plain text content */
.about-section {
    padding: 20px;
    background: transparent;
    border-radius: 0;
    border: 1px solid #333333;
    margin-bottom: 15px;
    font-family: 'Courier New', 'Courier', monospace;
}

.about-section h3 {
    font-size: 18px;
    margin: 0 0 15px 0;
    color: #00ff00;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #00ff00;
    padding-bottom: 10px;
    font-family: 'Courier New', 'Courier', monospace;
}

.about-text {
    color: #f8f9ff;
    line-height: 1.7;
    margin: 0;
    font-size: 14px;
    font-family: 'Courier New', 'Courier', monospace;
}

.about-medvedek-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.2rem;
    font-size: 2rem;
    margin: 10px 0 20px;
}

/* ChatGPT funny detail */
.about-chatgpt-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
    background: transparent;
    border-left: 4px solid #22c55e;
    border-radius: 0;
    font-size: 16px;
    font-weight: 600;
    color: #22c55e;
    font-family: 'Courier New', 'Courier', monospace;
    border: 1px solid #333333;
    border-left: 4px solid #22c55e;
}

.about-chatgpt-detail i {
    font-size: 16px;
    color: #22c55e;
}

/* Runaway text effect */
.about-word {
    display: inline-block;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.about-word-space {
    display: inline-block;
    width: 0.33em;
}

/* vim like text editor */
.vim-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

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

.vim-file-input {
    font-size: 12px;
}

.vim-editor {
    width: 100%;
    min-height: 320px;
    height: 100%;
    resize: vertical;
    padding: 10px;
    border: 1px solid #1f2937;
    background: #0b0f18;
    color: #e5e7eb;
    font-family: "Courier New", Courier, monospace;
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .about-intro-section {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .about-intro-text h2 {
        font-size: 24px;
    }

    .about-intro-image {
        order: -1;
    }

    .about-media-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

.welcome-body p:last-child {
    margin-bottom: 0;
}

.welcome-credit {
    font-size: 12px;
    color: #666;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
}

.welcome-credit a {
    color: #888;
    text-decoration: none;
    transition: color 0.2s ease;
}

.welcome-credit a:hover {
    color: #a855f7;
}

.welcome-footer {
    padding: 20px 30px;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.welcome-btn {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    border: none;
    padding: 10px 28px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* About App - Override window styles */
#aboutList {
    background: transparent !important;
    color: #ffffff !important;
    position: relative;
    overflow: auto;
}

#aboutList h2,
#aboutList h3 {
    color: inherit !important;
}

#aboutList p {
    color: inherit !important;
}

/* Matrix background for About app only */
.about-matrix-container {
    position: relative;
}

.about-matrix-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.3;
}

/* Ensure content renders above background */
.about-matrix-container > *:not(.about-matrix-canvas) {
    position: relative;
    z-index: 1;
}

.welcome-btn:hover {
    background: linear-gradient(135deg, #7c3aed, #6366f1);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

.welcome-btn:active {
    transform: translateY(0);
}

