:root {
    --vh: 1vh;
    --window-height: 100vh;
    --vintage-amber: #ffb000;
    --vintage-amber-dark: #cc8800;
    --vintage-amber-light: #ffd966;
    --vintage-green: #00ff41;
    --vintage-orange: #ff6b35;
    --vintage-cream: #f4f1de;
    --vintage-brown: #3d2914;
    --vintage-red: #e63946;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Consolas', 'Monaco', 'Lucida Console', monospace;
    overflow: hidden;
    background: #000;
}

/* CRT Screen Effect */
.desktop::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px);
    pointer-events: none;
    z-index: 10000;
}

.desktop {
    width: 100vw;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    position: relative;
    background:
        radial-gradient(ellipse at center, #2d1810 0%, #1a0f08 100%),
        linear-gradient(45deg, #3d2914, #2d1810, #1a0f08);
    background-size: 300% 300%;
    animation: vintageGlow 12s ease infinite;
    overflow: hidden;
    /* CRT curve effect */
    border-radius: 20px;
    border: 8px solid #1a0f08;
    box-shadow:
        inset 0 0 50px rgba(255, 176, 0, 0.1),
        0 0 100px rgba(255, 176, 0, 0.2);
}

.desktop-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 176, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,176,0,0.2)"/></svg>');
    background-size: 200px 200px, 300px 300px, 80px 80px;
    opacity: 0.4;
    animation: vintageStars 25s linear infinite;
}

.boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(0deg, #000000 0%, #1a0f08 50%, #000000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 1s ease;
}

.terminal-window {
    width: 600px;
    background: #0d0d0d;
    border-radius: 12px;
    box-shadow:
        0 0 50px rgba(255, 176, 0, 0.3),
        inset 0 0 20px rgba(255, 176, 0, 0.1);
    overflow: hidden;
    border: 2px solid var(--vintage-amber-dark);
}

.terminal-header {
    background: linear-gradient(135deg, var(--vintage-brown), #2d1810);
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--vintage-amber-dark);
}

.terminal-title {
    color: var(--vintage-amber);
    font-size: 12px;
    font-weight: bold;
    text-shadow: 0 0 10px var(--vintage-amber);
}

.terminal-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.control.close {
    background: radial-gradient(circle, #ff6b6b, #e63946);
}

.control.minimize {
    background: radial-gradient(circle, #ffd93d, var(--vintage-amber));
}

.control.maximize {
    background: radial-gradient(circle, #6bcf7f, var(--vintage-green));
}

.terminal-body {
    padding: 20px;
    height: 300px;
    background:
        linear-gradient(0deg, #000000 0%, #0a0a0a 100%);
    color: var(--vintage-green);
    font-family: 'Courier New', monospace;
    font-size: 14px;
    overflow-y: auto;
    text-shadow: 0 0 10px var(--vintage-green);
}

.cursor {
    animation: vintageBlinkCursor 1s infinite;
    color: var(--vintage-green);
    text-shadow: 0 0 15px var(--vintage-green);
}

.desktop-icons {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(4, 120px);
    gap: 20px;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    background: rgba(61, 41, 20, 0.1);
    border: 1px solid transparent;
}

.desktop-icon:hover {
    background: rgba(255, 176, 0, 0.15);
    border: 1px solid var(--vintage-amber-dark);
    transform: translateY(-5px);
    box-shadow:
        0 5px 20px rgba(255, 176, 0, 0.3),
        inset 0 1px 0 rgba(255, 176, 0, 0.2);
}

.icon-image {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 30% 30%, var(--vintage-amber-light), var(--vintage-amber-dark)),
        linear-gradient(135deg, var(--vintage-brown), #1a0f08);
    border-radius: 12px;
    margin-bottom: 8px;
    font-size: 28px;
    color: var(--vintage-cream);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 176, 0, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    border: 1px solid var(--vintage-amber-dark);
}

.icon-label {
    color: var(--vintage-cream);
    font-size: 12px;
    text-align: center;
    text-shadow:
        0 0 10px var(--vintage-amber),
        0 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: bold;
}

.window {
    position: absolute;
    background:
        linear-gradient(135deg, rgba(61, 41, 20, 0.95), rgba(29, 16, 8, 0.95));
    border-radius: 8px;
    box-shadow:
        0 0 50px rgba(255, 176, 0, 0.2),
        0 20px 60px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 176, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid var(--vintage-amber-dark);
    min-width: 400px;
    min-height: 300px;
    max-height: calc(var(--vh, 1vh) * 90);
    z-index: 100;
    opacity: 0;
    transform: scale(0.8);
    animation: vintageWindowOpen 0.4s ease forwards;
    display: flex;
    flex-direction: column;
}

.window-header {
    background:
        linear-gradient(135deg, var(--vintage-brown), #2d1810);
    padding: 12px 20px;
    border-radius: 6px 6px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    border-bottom: 2px solid var(--vintage-amber-dark);
    box-shadow: inset 0 1px 0 rgba(255, 176, 0, 0.3);
}

.window-title {
    color: var(--vintage-amber);
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 0 10px var(--vintage-amber);
}

.window-controls {
    display: flex;
    gap: 8px;
}

.window-control {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #000;
    font-weight: bold;
    transition: all 0.2s ease;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.3);
}

.window-control:hover {
    transform: scale(1.1);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        0 2px 6px rgba(0, 0, 0, 0.4);
}

.window-control.minimize {
    background: linear-gradient(135deg, #ffd93d, var(--vintage-amber));
}

.window-control.maximize {
    background: linear-gradient(135deg, #6bcf7f, #4CAF50);
}

.window-control.close {
    background: linear-gradient(135deg, #ff6b6b, var(--vintage-red));
    color: white;
}

.window-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    color: var(--vintage-cream);
    scroll-behavior: smooth;
    background:
        linear-gradient(135deg, rgba(13, 13, 13, 0.8), rgba(26, 15, 8, 0.8));
}

.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background:
        linear-gradient(135deg, rgba(61, 41, 20, 0.95), rgba(29, 16, 8, 0.95));
    backdrop-filter: blur(20px);
    border-top: 2px solid var(--vintage-amber-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
    box-shadow:
        0 -5px 20px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 176, 0, 0.2);
}

.start-button {
    background: linear-gradient(135deg, var(--vintage-amber), var(--vintage-amber-dark));
    padding: 8px 16px;
    border-radius: 6px;
    color: var(--vintage-brown);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 1px solid var(--vintage-amber-dark);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 2px 10px rgba(255, 176, 0, 0.3);
}

.start-button:hover {
    transform: scale(1.05);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 4px 20px rgba(255, 176, 0, 0.5);
    background: linear-gradient(135deg, var(--vintage-amber-light), var(--vintage-amber));
}

.taskbar-apps {
    display: flex;
    gap: 8px;
    flex: 1;
    margin-left: 20px;
}

.taskbar-app {
    background: rgba(255, 176, 0, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--vintage-cream);
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    font-weight: bold;
}

.taskbar-app:hover {
    background: rgba(255, 176, 0, 0.2);
    border: 1px solid var(--vintage-amber-dark);
}

.taskbar-app.active {
    background: var(--vintage-amber-dark);
    color: var(--vintage-cream);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.system-tray {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--vintage-amber);
}

.clock {
    font-size: 14px;
    font-weight: bold;
    text-shadow: 0 0 10px var(--vintage-amber);
}

.system-icons {
    display: flex;
    gap: 10px;
    font-size: 14px;
}

.profile-section {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.profile-avatar {
    position: relative;
}

.avatar-placeholder {
    width: 120px;
    height: 120px;
    background:
        radial-gradient(circle at 30% 30%, var(--vintage-amber-light), var(--vintage-amber-dark)),
        linear-gradient(135deg, var(--vintage-brown), #1a0f08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vintage-cream);
    border: 3px solid var(--vintage-amber-dark);
    box-shadow:
        0 0 30px rgba(255, 176, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.2);
}

.status-indicator {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid var(--vintage-cream);
}

.status-indicator.online {
    background: var(--vintage-green);
    box-shadow: 0 0 15px var(--vintage-green);
}

.profile-info {
    width: 100%;
}

.profile-info h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    color: var(--vintage-amber);
}

.glitch {
    position: relative;
    color: var(--vintage-amber);
    animation: vintageGlitch 3s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: vintageGlitch1 0.6s infinite;
    color: var(--vintage-red);
    z-index: -1;
}

.glitch::after {
    animation: vintageGlitch2 0.6s infinite;
    color: var(--vintage-green);
    z-index: -2;
}

.typing-text {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--vintage-amber);
    animation: vintageTyping 4s steps(30) infinite, vintageBlinkCaret 0.8s step-end infinite;
    color: var(--vintage-cream);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.stat {
    text-align: center;
    padding: 15px;
    background: rgba(255, 176, 0, 0.1);
    border-radius: 8px;
    border: 1px solid var(--vintage-amber-dark);
    box-shadow: inset 0 1px 0 rgba(255, 176, 0, 0.2);
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: var(--vintage-amber);
    text-shadow: 0 0 15px var(--vintage-amber);
}

.stat-label {
    font-size: 12px;
    opacity: 0.8;
    color: var(--vintage-cream);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.tech-tag {
    background: linear-gradient(135deg, var(--vintage-amber-dark), var(--vintage-brown));
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--vintage-cream);
    border: 1px solid var(--vintage-amber-dark);
    font-weight: bold;
    box-shadow:
        inset 0 1px 0 rgba(255, 176, 0, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.3);
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--vintage-amber), var(--vintage-orange));
    box-shadow: 0 0 10px var(--vintage-amber);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 30px;
}

.timeline-marker {
    position: absolute;
    left: -20px;
    top: 0;
    width: 14px;
    height: 14px;
    background: var(--vintage-amber);
    border-radius: 50%;
    border: 3px solid var(--vintage-cream);
    box-shadow: 0 0 15px var(--vintage-amber);
}

.timeline-item.current .timeline-marker {
    background: var(--vintage-green);
    animation: vintagePulse 2s infinite;
    box-shadow: 0 0 20px var(--vintage-green);
}

.timeline-content {
    background: rgba(255, 176, 0, 0.1);
    padding: 20px;
    border-radius: 8px;
    position: relative;
    border: 1px solid var(--vintage-amber-dark);
    box-shadow: inset 0 1px 0 rgba(255, 176, 0, 0.2);
}

.timeline-content h3 {
    margin: 0 0 5px 0;
    color: var(--vintage-amber);
    text-shadow: 0 0 10px var(--vintage-amber);
}

.timeline-content h4 {
    margin: 0 0 10px 0;
    opacity: 0.9;
    color: var(--vintage-cream);
}

.timeline-date {
    font-size: 12px;
    opacity: 0.7;
    color: var(--vintage-amber-light);
}

.timeline-content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.timeline-content li {
    margin-bottom: 8px;
    color: var(--vintage-cream);
}

.status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
}

.status-badge.active {
    background: var(--vintage-green);
    color: #000;
    box-shadow: 0 0 10px var(--vintage-green);
}

.status-badge.completed {
    background: var(--vintage-amber);
    color: var(--vintage-brown);
    box-shadow: 0 0 10px var(--vintage-amber);
}

.gpa-display {
    margin-top: 10px;
}

.gpa {
    background: var(--vintage-amber-dark);
    color: var(--vintage-cream);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 10px;
    font-weight: bold;
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.projects-header h2 {
    color: var(--vintage-amber);
    text-shadow: 0 0 15px var(--vintage-amber);
}

.project-filters {
    display: flex;
    gap: 8px;
}

.filter-btn {
    background: rgba(255, 176, 0, 0.1);
    border: 1px solid var(--vintage-amber-dark);
    padding: 8px 16px;
    border-radius: 20px;
    color: var(--vintage-cream);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--vintage-amber);
    color: var(--vintage-brown);
    box-shadow: 0 0 15px rgba(255, 176, 0, 0.5);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-height: none;
    overflow-y: visible;
    padding-bottom: 20px;
}

.project-card {
    background:
        linear-gradient(135deg, rgba(61, 41, 20, 0.3), rgba(26, 15, 8, 0.3));
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid var(--vintage-amber-dark);
    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 176, 0, 0.2);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 20px 40px rgba(255, 176, 0, 0.2),
        0 0 50px rgba(255, 176, 0, 0.1);
    border-color: var(--vintage-amber);
}

.project-image {
    position: relative;
    height: 150px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255, 176, 0, 0.1), rgba(61, 41, 20, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link,
.project-info-btn {
    background: var(--vintage-amber);
    color: var(--vintage-brown);
    padding: 12px;
    border-radius: 50%;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow:
        0 4px 15px rgba(255, 176, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.project-link:hover,
.project-info-btn:hover {
    background: var(--vintage-amber-light);
    transform: scale(1.1);
    box-shadow:
        0 6px 20px rgba(255, 176, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.project-info {
    padding: 20px;
}

.project-info h4 {
    margin: 0 0 10px 0;
    color: var(--vintage-amber);
    text-shadow: 0 0 10px var(--vintage-amber);
}

.project-info .markdown-content {
    font-size: 14px;
    line-height: 1.4;
    opacity: 0.9;
    color: var(--vintage-cream);
}

.project-status {
    margin-top: 15px;
}

.status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
}

.status.live {
    background: var(--vintage-green);
    color: #000;
    box-shadow: 0 0 10px var(--vintage-green);
}

.status.local {
    background: var(--vintage-amber);
    color: var(--vintage-brown);
    box-shadow: 0 0 10px var(--vintage-amber);
}

.terminal-app {
    background: #000;
    color: var(--vintage-green);
    font-family: 'Courier New', monospace;
    height: 100%;
    padding: 0;
}

.terminal-output {
    height: calc(100% - 30px);
    overflow-y: auto;
    padding: 20px;
}

.terminal-line {
    margin-bottom: 5px;
    word-wrap: break-word;
    text-shadow: 0 0 10px var(--vintage-green);
}

.terminal-input-line {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background: rgba(0, 255, 65, 0.1);
    border-top: 1px solid var(--vintage-green);
}

.terminal-prompt {
    color: var(--vintage-green);
    margin-right: 8px;
    text-shadow: 0 0 10px var(--vintage-green);
}

.terminal-input {
    background: transparent;
    border: none;
    color: var(--vintage-green);
    font-family: inherit;
    font-size: inherit;
    outline: none;
    flex: 1;
    text-shadow: 0 0 10px var(--vintage-green);
}

.terminal-cursor {
    color: var(--vintage-green);
    animation: vintageBlinkCursor 1s infinite;
    text-shadow: 0 0 15px var(--vintage-green);
}

.matrix-app {
    background: #000;
    padding: 0;
    height: 100%;
    overflow: hidden;
    font-family: 'Courier New', 'Consolas', monospace;
}

#matrix-canvas {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
    font-family: 'Courier New', 'Consolas', monospace;
}

.music-player {
    text-align: center;
    padding: 20px;
    background:
        radial-gradient(circle at center, rgba(255, 176, 0, 0.1), transparent);
}

.album-art {
    margin-bottom: 20px;
}

.vinyl-record {
    width: 150px;
    height: 150px;
    background:
        radial-gradient(circle at 30% 30%, #333, #111),
        conic-gradient(from 0deg, #2a2a2a, #1a1a1a, #2a2a2a);
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
    animation: vintageRecordSpin 4s linear infinite;
    animation-play-state: paused;
    box-shadow:
        0 0 30px rgba(255, 176, 0, 0.2),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--vintage-amber-dark);
}

.vinyl-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: var(--vintage-amber);
    border-radius: 50%;
    box-shadow:
        0 0 15px var(--vintage-amber),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.player-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.control-btn {
    background:
        linear-gradient(135deg, rgba(255, 176, 0, 0.2), rgba(61, 41, 20, 0.2));
    border: 2px solid var(--vintage-amber-dark);
    color: var(--vintage-amber);
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow:
        inset 0 1px 0 rgba(255, 176, 0, 0.3),
        0 4px 15px rgba(0, 0, 0, 0.3);
}

.control-btn:hover {
    background: var(--vintage-amber);
    color: var(--vintage-brown);
    transform: scale(1.1);
    box-shadow:
        0 0 20px var(--vintage-amber),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.play-btn {
    background: var(--vintage-amber);
    color: var(--vintage-brown);
    padding: 20px;
    box-shadow:
        0 0 20px var(--vintage-amber),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.progress-bar {
    background: rgba(255, 176, 0, 0.2);
    height: 6px;
    border-radius: 3px;
    margin: 20px 0;
    overflow: hidden;
    border: 1px solid var(--vintage-amber-dark);
}

.progress {
    background: linear-gradient(90deg, var(--vintage-amber), var(--vintage-orange));
    height: 100%;
    width: 45%;
    animation: vintageProgress 3s ease-in-out infinite;
    box-shadow: 0 0 10px var(--vintage-amber);
}

.equalizer {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 20px;
}

.bar {
    width: 6px;
    background: var(--vintage-amber);
    animation: vintageEqualizer 1.2s ease-in-out infinite;
    border-radius: 3px;
    box-shadow: 0 0 5px var(--vintage-amber);
}

.bar:nth-child(1) {
    animation-delay: 0s;
}

.bar:nth-child(2) {
    animation-delay: 0.1s;
}

.bar:nth-child(3) {
    animation-delay: 0.2s;
}

.bar:nth-child(4) {
    animation-delay: 0.3s;
}

.bar:nth-child(5) {
    animation-delay: 0.4s;
}

.bar:nth-child(6) {
    animation-delay: 0.5s;
}

.bar:nth-child(7) {
    animation-delay: 0.6s;
}

.bar:nth-child(8) {
    animation-delay: 0.7s;
}

.snake-app {
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-shrink: 0;
}

.game-header h3 {
    color: var(--vintage-amber);
    text-shadow: 0 0 15px var(--vintage-amber);
}

.game-canvas-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    min-height: 0;
}

#snake-canvas {
    background: rgba(0, 0, 0, 0.8);
    border: 3px solid var(--vintage-amber);
    border-radius: 8px;
    margin: 0 auto;
    display: block;
    box-shadow:
        0 0 30px rgba(255, 176, 0, 0.3),
        inset 0 0 20px rgba(255, 176, 0, 0.1);
}

.game-controls {
    flex-shrink: 0;
    margin-top: 15px;
}

#snake-start {
    background: var(--vintage-amber);
    color: var(--vintage-brown);
    border: none;
    padding: 12px 24px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow:
        0 4px 15px rgba(255, 176, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

#snake-start:hover {
    background: var(--vintage-amber-light);
    transform: scale(1.05);
    box-shadow:
        0 6px 20px rgba(255, 176, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.weather-widget {
    text-align: center;
    padding: 20px;
    background:
        radial-gradient(circle at center, var(--vintage-amber), var(--vintage-orange)),
        linear-gradient(135deg, var(--vintage-amber), var(--vintage-brown));
    border-radius: 20px;
    color: var(--vintage-cream);
    border: 2px solid var(--vintage-amber-dark);
    box-shadow:
        0 0 30px rgba(255, 176, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.weather-location {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.weather-temp {
    font-size: 48px;
    font-weight: bold;
    margin: 10px 0;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.weather-desc {
    font-size: 18px;
    margin-bottom: 20px;
    opacity: 0.9;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.weather-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.detail {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

#project-data {
    display: none !important;
}

.mobile-game-controls {
    margin-top: 15px;
}

.game-controls-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.control-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.game-control-btn {
    background:
        linear-gradient(135deg, rgba(255, 176, 0, 0.2), rgba(61, 41, 20, 0.2));
    border: 2px solid var(--vintage-amber);
    color: var(--vintage-amber);
    width: 45px;
    height: 45px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    box-shadow: inset 0 1px 0 rgba(255, 176, 0, 0.3);
}

.game-control-btn:hover,
.game-control-btn:active {
    background: var(--vintage-amber);
    color: var(--vintage-brown);
    transform: scale(0.95);
    box-shadow:
        0 0 15px rgba(255, 176, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.game-control-btn:active {
    transform: scale(0.9);
}

.game-running .game-instructions {
    display: none;
}

.game-running #snake-start {
    display: none;
}

.window-body::-webkit-scrollbar {
    width: 10px;
}

.window-body::-webkit-scrollbar-track {
    background: rgba(255, 176, 0, 0.1);
    border-radius: 5px;
}

.window-body::-webkit-scrollbar-thumb {
    background: var(--vintage-amber-dark);
    border-radius: 5px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.window-body::-webkit-scrollbar-thumb:hover {
    background: var(--vintage-amber);
}

.markdown-content {
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.markdown-content p {
    margin-bottom: 1rem;
    color: var(--vintage-cream);
}

.markdown-content ul,
.markdown-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.markdown-content li {
    margin-bottom: 0.5rem;
    color: var(--vintage-cream);
}
.container,
.container-fluid,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl {
    --bs-gutter-x: 0 !important;
    --bs-gutter-y: 0 !important;
}
/* Enhanced Weather Widget */
.weather-widget {
    text-align: center;
    padding: 20px;
    border-radius: 20px;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Dynamic backgrounds based on weather and time */
.weather-widget.day-time.clear {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
}

.weather-widget.night-time.clear {
    background: linear-gradient(135deg, #2d3436, #636e72);
}

.weather-widget.day-time.cloudy {
    background: linear-gradient(135deg, #74b9ff, #636e72);
}

.weather-widget.night-time.cloudy {
    background: linear-gradient(135deg, #2d3436, #636e72);
}

.weather-widget.day-time.rain,
.weather-widget.day-time.showers {
    background: linear-gradient(135deg, #74b9ff, #00b894);
}

.weather-widget.night-time.rain,
.weather-widget.night-time.showers {
    background: linear-gradient(135deg, #2d3436, #00b894);
}

.weather-widget.day-time.snow {
    background: linear-gradient(135deg, #ddd6fe, #a5b4fc);
}

.weather-widget.night-time.snow {
    background: linear-gradient(135deg, #374151, #6b7280);
}

.weather-widget.thunderstorm {
    background: linear-gradient(135deg, #2d3436, #636e72);
}

.weather-loading,
.weather-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 200px;
}

.weather-loading p,
.weather-error p {
    margin: 10px 0;
    opacity: 0.9;
}

.weather-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.weather-location {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    opacity: 0.9;
}

.weather-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
}

.weather-temp {
    font-size: 48px;
    font-weight: bold;
    margin: 10px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.weather-desc {
    font-size: 18px;
    margin-bottom: 20px;
    opacity: 0.9;
    text-transform: capitalize;
}

.weather-icon {
    margin: 15px 0;
    transition: all 0.3s ease;
}

.weather-icon.clear {
    color: #f39c12;
    text-shadow: 0 0 20px rgba(243, 156, 18, 0.5);
}

.weather-icon.cloudy {
    color: #95a5a6;
}

.weather-icon.rain,
.weather-icon.showers {
    color: #3498db;
}

.weather-icon.snow {
    color: #ecf0f1;
}

.weather-icon.thunderstorm {
    color: #f1c40f;
    animation: lightning 2s infinite;
}

@keyframes lightning {

    0%,
    90%,
    100% {
        opacity: 1;
    }

    5%,
    85% {
        opacity: 0.3;
    }
}

.weather-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
}

.detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 14px;
}

.detail span:first-child {
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail i {
    width: 16px;
    text-align: center;
}

.weather-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    font-size: 12px;
}

.weather-refresh-btn,
.weather-retry-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.weather-refresh-btn:hover,
.weather-retry-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.weather-refresh-btn:active,
.weather-retry-btn:active {
    transform: scale(0.95);
}

.weather-updated {
    opacity: 0.7;
    font-size: 11px;
}

/* Loading animation */
.weather-loading .fa-spinner {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .weather-widget {
        padding: 15px;
        min-height: 250px;
    }

    .weather-temp {
        font-size: 36px;
    }

    .weather-details {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .detail {
        padding: 8px;
        font-size: 13px;
    }

    .weather-footer {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
}
/* Animations */
@keyframes vintageGlow {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes vintageStars {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    100% {
        transform: translateY(-100px) rotate(360deg);
    }
}

@keyframes vintageBlinkCursor {

    0%,
    50% {
        opacity: 1;
        text-shadow: 0 0 15px var(--vintage-green);
    }

    51%,
    100% {
        opacity: 0;
    }
}

@keyframes vintageWindowOpen {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes vintageGlitch {

    0%,
    100% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }
}

@keyframes vintageGlitch1 {

    0%,
    100% {
        transform: translate(0);
    }

    10% {
        transform: translate(-2px, -2px);
    }

    20% {
        transform: translate(2px, 2px);
    }
}

@keyframes vintageGlitch2 {

    0%,
    100% {
        transform: translate(0);
    }

    30% {
        transform: translate(1px, -1px);
    }

    40% {
        transform: translate(-1px, 1px);
    }
}

@keyframes vintageTyping {

    0%,
    50% {
        width: 0;
    }

    100% {
        width: fit-content;
    }
}

@keyframes vintageBlinkCaret {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: var(--vintage-amber);
    }
}

@keyframes vintagePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 65, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(0, 255, 65, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 65, 0);
    }
}

@keyframes vintageRecordSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes vintageProgress {

    0%,
    100% {
        width: 45%;
    }

    50% {
        width: 70%;
    }
}

@keyframes vintageEqualizer {

    0%,
    100% {
        height: 20px;
    }

    50% {
        height: 60px;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .desktop {
        border-radius: 0;
        border: none;
    }

    .icon-grid {
        grid-template-columns: repeat(3, 100px);
        gap: 15px;
    }

    .desktop-icon {
        padding: 8px;
    }

    .icon-image {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .window {
        min-width: 95vw;
        max-width: 95vw;
        min-height: calc(var(--vh, 1vh) * 80);
        max-height: calc(var(--vh, 1vh) * 87.5);
        top: calc(var(--vh, 1vh) * 1) !important;
        left: 2.5vw !important;
        margin: 0;
        border-radius: 12px 12px 0 0;
    }

    .window-body {
        padding: 15px;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .profile-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .project-card {
        margin-bottom: 15px;
    }

    .taskbar {
        padding: 0 10px;
    }

    .start-button span {
        display: none;
    }

    .timeline {
        padding-left: 20px;
    }

    .timeline-item {
        padding-left: 20px;
    }

    .timeline-marker {
        left: -10px;
    }

    #snake-canvas {
        max-width: 100%;
        width: 300px !important;
        height: 300px !important;
    }

    #matrix-canvas {
        width: 100% !important;
        height: 100% !important;
    }

    .snake-app {
        padding: 10px;
    }

    .game-header {
        margin-bottom: 10px;
    }

    .game-header h3 {
        font-size: 18px;
        margin: 0;
    }

    .game-canvas-container {
        margin: 10px 0;
    }

    .game-controls {
        margin-top: 10px;
    }

    .game-instructions p {
        font-size: 12px;
    }
}

/* Window enhancements */
.window {
    display: flex;
    flex-direction: column;
    resize: none;
    /* Disable default resize */
    transition: box-shadow 0.2s ease;
}

.window.active {
    box-shadow:
        0 0 80px rgba(255, 176, 0, 0.4),
        0 20px 60px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 176, 0, 0.3);
}

.window.dragging,
.window.resizing {
    user-select: none;
    pointer-events: auto;
}

.window.dragging {
    opacity: 0.9;
}

.window.maximized {
    border-radius: 0;
}

/* Resize handles */
.resize-handle {
    position: absolute;
    background-color: transparent;
    z-index: 10;
}

.resize-handle:hover {
    background-color: rgba(255, 176, 0, 0.2);
}

.resize-n,
.resize-s {
    left: 10px;
    right: 10px;
    height: 5px;
    cursor: ns-resize;
}

.resize-e,
.resize-w {
    top: 10px;
    bottom: 10px;
    width: 5px;
    cursor: ew-resize;
}

.resize-n {
    top: -3px;
}

.resize-s {
    bottom: -3px;
}

.resize-e {
    right: -3px;
}

.resize-w {
    left: -3px;
}

.resize-ne,
.resize-nw,
.resize-se,
.resize-sw {
    width: 10px;
    height: 10px;
}

.resize-ne {
    top: -3px;
    right: -3px;
    cursor: ne-resize;
}

.resize-nw {
    top: -3px;
    left: -3px;
    cursor: nw-resize;
}

.resize-se {
    bottom: -3px;
    right: -3px;
    cursor: se-resize;
}

.resize-sw {
    bottom: -3px;
    left: -3px;
    cursor: sw-resize;
}

/* Start menu popup */
.start-menu-popup {
    background: linear-gradient(135deg, rgba(61, 41, 20, 0.95), rgba(29, 16, 8, 0.95));
    border: 2px solid var(--vintage-amber-dark);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    z-index: 10000;
    min-width: 200px;
}

.menu-item {
    padding: 12px 16px;
    color: var(--vintage-cream);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.menu-item:hover {
    background: rgba(255, 176, 0, 0.2);
    color: var(--vintage-amber);
}

.menu-item:first-child {
    border-radius: 6px 6px 0 0;
}

.menu-item:last-child {
    border-radius: 0 0 6px 6px;
}

/* Enhanced taskbar */
.taskbar-app {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.taskbar-app.minimized {
    opacity: 0.6;
}

.taskbar-app span {
    font-size: 11px;
}

/* Mobile-specific enhancements */
@media (max-width: 768px) {
    .window {
        border-radius: 12px 12px 0 0;
        max-width: 100vw;
    }

    .window.maximized {
        border-radius: 0;
    }

    .resize-handle {
        display: none;
    }

    .taskbar-app span {
        display: none;
    }

    .start-menu-popup {
        left: 10px !important;
        right: 10px;
        width: auto;
    }
}

/* Window animations */
@keyframes windowClose {
    to {
        opacity: 0;
        transform: scale(0.8);
    }
}

@keyframes windowOpen {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scrollbar styling for windows */
.window-body::-webkit-scrollbar {
    width: 12px;
}

.window-body::-webkit-scrollbar-track {
    background: rgba(255, 176, 0, 0.1);
    border-radius: 6px;
}

.window-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--vintage-amber-dark), var(--vintage-brown));
    border-radius: 6px;
    border: 2px solid transparent;
    background-clip: content-box;
}

.window-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--vintage-amber), var(--vintage-amber-dark));
    background-clip: content-box;
}