:root {
    /* Catppuccin Mocha Color Palette */
    --cat-base: #1e1e2e;
    --cat-mantle: #181825;
    --cat-crust: #11111b;
    --cat-surface0: #313244;
    --cat-surface1: #45475a;
    --cat-surface2: #585b70;
    --cat-text: #cdd6f4;
    --cat-subtext1: #bac2de;
    --cat-subtext0: #a6adc8;
    --cat-overlay2: #9399b2;
    --cat-overlay1: #7f849c;
    --cat-overlay0: #6c7086;
    --cat-lavender: #b4befe;
    --cat-blue: #89b4fa;
    --cat-sapphire: #74c7ec;
    --cat-sky: #89dceb;
    --cat-teal: #94e2d5;
    --cat-green: #a6e3a1;
    --cat-yellow: #f9e2af;
    --cat-peach: #fab387;
    --cat-maroon: #eba0ac;
    --cat-red: #f38ba8;
    --cat-mauve: #cba6f7;
    --cat-pink: #f5c2e7;
    --cat-flamingo: #f2cdcd;
    --cat-rosewater: #f5e0dc;

    /* Applied Theme Variables */
    --background: var(--cat-crust);
    --primary: var(--cat-mantle);
    --secondary: var(--cat-base);
    --accent: var(--cat-mauve);
    --accent-secondary: var(--cat-sapphire);
    --accent-tertiary: var(--cat-peach);
    --font-color: var(--cat-text);
    --font-dim: var(--cat-subtext0);
    --green-glow: var(--cat-green);
    --blue-glow: var(--cat-sapphire);
    --purple-glow: var(--cat-lavender);
    --window-bg: rgba(30, 30, 46, 0.95);
    --title-bar-inactive: var(--cat-surface0);
    --title-bar-active: linear-gradient(90deg, var(--cat-mauve), var(--cat-sapphire));
    --scanline-bg: rgba(180, 190, 254, 0.02);

    /* Icon sizing */
    --icon-size: 56px;

    /* Typography Scale */
    --font-xs: 14px;
    --font-sm: 16px;
    --font-md: 18px;
    --font-lg: 24px;
    --font-xl: 32px;
    --font-xxl: 42px;
}

@media (max-height: 820px) {
  :root { --icon-size: 52px; }
}
@media (max-height: 700px) {
  :root { --icon-size: 48px; }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--cat-mauve) var(--cat-surface0);
}

html {
    font-family: 'Fira Code', monospace;
    color: var(--font-color);
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    font-size: 16px;
}

body {
    background: linear-gradient(135deg, var(--cat-crust) 0%, var(--cat-base) 100%);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    position: relative;
}

/* Subtle grid background */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(180, 190, 254, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(180, 190, 254, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    opacity: 0.5;
}

#boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--cat-crust);
    color: var(--cat-green);
    font-family: 'VT323', monospace;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-md);
    opacity: 1;
    transition: opacity 1s ease;
    white-space: pre-wrap;
    padding: 20px;
    text-shadow: 0 0 8px currentColor;
}

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

.desktop {
    height: calc(100vh - 48px);
    width: 100%;
    background: url('./assets/wallpaper2.gif') no-repeat center center fixed;
    background-size: cover;
    position: relative;
    padding: 25px;
}

/* Subtle scanlines */
.desktop::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--scanline-bg) 50%, transparent 50%);
    background-size: 100% 4px;
    z-index: 0;
    pointer-events: none;
}

/* Left-side vertical icon columns (wrap top-to-bottom) */
.icon-grid {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: flex-start; /* new columns appear to the right */
    align-items: flex-start;
    gap: 14px 18px;
    height: 100%;
    width: 280px;
    max-width: 280px;
    padding-right: 10px;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 110px;
    cursor: pointer;
    padding: 12px 8px;
    text-decoration: none;
    color: var(--cat-text);
    border: 2px solid transparent;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(49, 50, 68, 0.6);
    backdrop-filter: blur(5px);
}

.desktop-icon:hover {
    background: rgba(203, 166, 247, 0.1);
    border-color: var(--cat-mauve);
    transform: translateY(-5px);
    box-shadow:
        0 10px 30px rgba(203, 166, 247, 0.2),
        0 0 20px rgba(180, 190, 254, 0.2);
}

.desktop-icon .icon-image {
    width: var(--icon-size);
    height: var(--icon-size);
    margin-bottom: 10px;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 0 6px rgba(203, 166, 247, 0.3));
}

.desktop-icon:hover .icon-image {
    transform: scale(1.1);
    filter: drop-shadow(0 0 12px var(--cat-mauve));
}

.desktop-icon span {
    font-size: var(--font-sm);
    font-family: 'VT323', monospace;
    text-shadow:
        0 0 8px rgba(30, 30, 46, 0.8),
        1px 1px 2px rgba(0, 0, 0, 0.9);
    padding: 4px 6px;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--cat-text);
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.55));
    border: 1px solid rgba(255,255,255,0.06);
}

.desktop-icon.selected,
.desktop-icon:focus-visible {
    border-color: var(--cat-mauve);
    outline: none;
    box-shadow:
      0 0 0 2px rgba(203, 166, 247, 0.35),
      0 8px 24px rgba(203, 166, 247, 0.2);
    background: rgba(203, 166, 247, 0.08);
}

/* Widget Container */
.widget-container {
    position: absolute;
    top: 25px;
    right: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 300px;
    z-index: 5;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--cat-mauve) transparent;
}

.widget-container::-webkit-scrollbar {
    width: 6px;
}

.widget-container::-webkit-scrollbar-thumb {
    background: var(--cat-mauve);
    border-radius: 3px;
}

.widget {
    background: rgba(30, 30, 46, 0.95);
    border: 2px solid var(--cat-surface2);
    border-radius: 12px;
    padding: 15px;
    backdrop-filter: blur(10px);
    box-shadow:
        0 8px 32px rgba(17, 17, 27, 0.35),
        inset 0 1px 0 rgba(205, 214, 244, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.widget:hover {
    border-color: var(--cat-mauve);
    box-shadow:
        0 8px 32px rgba(203, 166, 247, 0.25),
        inset 0 1px 0 rgba(205, 214, 244, 0.1);
}

.widget h3 {
    font-family: 'VT323', monospace;
    font-size: 20px;
    color: var(--cat-lavender);
    margin-bottom: 10px;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(180, 190, 254, 0.5);
}

.widget h3::before {
    content: "▶ ";
    color: var(--cat-pink);
    margin-right: 6px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.widget p, .widget li {
    font-size: 14px;
    line-height: 1.6;
    color: var(--cat-subtext1);
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget ul.widget-list-stack li {
    display: flex;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid var(--cat-surface1);
    transition: all 0.2s ease;
    font-size: 13px;
    color: var(--cat-subtext0);
}

.widget ul.widget-list-stack li:last-child {
    border-bottom: none;
}

.widget ul.widget-list-stack li:hover {
    padding-left: 10px;
    color: var(--cat-sapphire);
}

.widget ul.widget-list-stack li::before {
    content: "◆";
    color: var(--cat-teal);
    margin-right: 8px;
    font-size: 14px;
}

.widget ul.widget-list-links li {
    padding: 4px 0;
}

.widget ul.widget-list-links a {
    text-decoration: none;
    color: var(--cat-text);
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-block;
}

.widget ul.widget-list-links a:hover {
    color: var(--cat-sapphire);
    text-shadow: 0 0 15px rgba(116, 199, 236, 0.5);
    transform: translateX(5px);
}

.widget ul.widget-list-links a::before {
    content: "[ ";
    color: var(--cat-pink);
}

.widget ul.widget-list-links a::after {
    content: " ]";
    color: var(--cat-pink);
}

/* Taskbar */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 48px;
    background: linear-gradient(90deg, rgba(30, 30, 46, 0.98), rgba(49, 50, 68, 0.98));
    backdrop-filter: blur(10px);
    border-top: 2px solid var(--cat-surface2);
    display: flex;
    align-items: center;
    padding: 0 10px;
    z-index: 10000;
    box-shadow: 0 -5px 20px rgba(17, 17, 27, 0.4);
}

.start-button {
    height: 36px;
    background: linear-gradient(135deg, var(--cat-mauve), var(--cat-pink));
    border: none;
    border-radius: 8px;
    color: var(--cat-crust);
    font-family: 'VT323', monospace;
    font-size: var(--font-lg);
    padding: 0 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    font-weight: bold;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.start-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(203, 166, 247, 0.5);
}

.start-button:active {
    transform: scale(0.98);
}

/* Start Menu */
.start-menu {
    display: none;
    position: absolute;
    bottom: 48px;
    left: 0;
    min-width: 280px;
    max-height: 500px;
    overflow-y: auto;
    background: rgba(30, 30, 46, 0.98);
    border: 2px solid var(--cat-surface2);
    border-radius: 12px 12px 0 0;
    backdrop-filter: blur(15px);
    padding: 10px;
    z-index: 9999;
    box-shadow:
        0 -10px 40px rgba(17, 17, 27, 0.4),
        inset 0 1px 0 rgba(205, 214, 244, 0.05);
    scrollbar-width: thin;
    scrollbar-color: var(--cat-mauve) transparent;
}

.start-menu.active {
    display: block;
    animation: slideUp 0.3s ease-out;
}

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

.start-menu ul {
    list-style: none;
}

.start-menu li a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    text-decoration: none;
    color: var(--cat-text);
    font-family: 'VT323', monospace;
    font-size: var(--font-md);
    border-radius: 8px;
    transition: all 0.2s ease;
    margin: 2px 0;
}

.start-menu li a:hover {
    background: rgba(203, 166, 247, 0.15);
    color: var(--cat-lavender);
    transform: translateX(5px);
}

.start-menu .icon-image {
    width: 24px;
    height: 24px;
}

/* Tray Icons */
.open-window-tray {
    flex-grow: 1;
    margin-left: 15px;
    display: flex;
    gap: 8px;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
}

.open-window-tray::-webkit-scrollbar {
    display: none;
}

.tray-icon {
    background: var(--cat-surface0);
    border: 2px solid var(--cat-surface2);
    border-radius: 8px;
    padding: 4px 12px;
    height: 36px;
    line-height: 28px;
    font-family: 'VT323', monospace;
    font-size: var(--font-md);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
    flex-shrink: 0;
    color: var(--cat-text);
}

.tray-icon:hover {
    background: rgba(203, 166, 247, 0.15);
    border-color: var(--cat-lavender);
    transform: translateY(-2px);
}

.tray-icon.focused {
    background: linear-gradient(135deg, var(--cat-mauve), var(--cat-pink));
    color: var(--cat-crust);
    border-color: var(--cat-mauve);
    box-shadow: 0 0 15px rgba(203, 166, 247, 0.4);
}

/* Clock */
.clock {
    font-family: 'VT323', monospace;
    font-size: var(--font-lg);
    padding: 0 15px;
    color: var(--cat-green);
    text-shadow:
        0 0 10px rgba(166, 227, 161, 0.5);
    letter-spacing: 2px;
}

/* Windows */
.window {
    position: absolute;
    background: var(--cat-base);
    border: 2px solid var(--cat-surface2);
    border-radius: 12px;
    box-shadow:
        0 20px 60px rgba(17, 17, 27, 0.4),
        0 0 0 1px rgba(205, 214, 244, 0.1);
    min-width: 500px;
    min-height: 400px;
    display: none;
    flex-direction: column;
    resize: both;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Specific larger window sizes */
#obvterm { width: 800px !important; height: 500px !important; }
#projects { width: 750px !important; height: 600px !important; }
#about-me { width: 700px !important; height: 600px !important; }
#academics { width: 650px !important; height: 550px !important; }
#certifications { width: 600px !important; height: 400px !important; }
#activities { width: 750px !important; height: 550px !important; }
#goals { width: 600px !important; height: 400px !important; }
#contact { width: 550px !important; height: 600px !important; }
#workbench { width: 700px !important; height: 500px !important; }
#library { width: 600px !important; height: 450px !important; }

.project-detail-window {
    width: 800px !important;
    height: 650px !important;
}

.window.focused {
    border-color: var(--cat-mauve);
    box-shadow:
        0 20px 60px rgba(203, 166, 247, 0.3),
        0 0 0 1px rgba(203, 166, 247, 0.2),
        0 0 40px rgba(116, 199, 236, 0.25) inset;
    z-index: 500;
}

.window.maximized {
    resize: none;
    border-width: 0;
    border-radius: 0;
}

/* Title Bar */
.title-bar {
    background: var(--cat-surface0);
    padding: 10px 15px;
    cursor: move;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    border-bottom: 2px solid var(--cat-surface1);
    transition: all 0.3s ease;
    flex-shrink: 0;
    border-radius: 10px 10px 0 0;
}

.window.focused .title-bar {
    background: linear-gradient(90deg, var(--cat-surface1), var(--cat-surface2));
    border-bottom-color: var(--cat-lavender);
}

.title-bar-text {
    font-family: 'VT323', monospace;
    font-size: var(--font-lg);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
    font-weight: bold;
    color: var(--cat-text);
}

.title-bar-controls {
    display: flex;
    gap: 8px;
}

.title-bar-controls button {
    background: var(--cat-surface1);
    border: 2px solid var(--cat-surface2);
    border-radius: 50%;
    color: var(--cat-text);
    font-family: 'VT323', monospace;
    width: 28px;
    height: 28px;
    font-size: var(--font-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.title-bar-controls button:hover {
    transform: scale(1.1);
}

.minimize-btn:hover {
    background: var(--cat-yellow);
    border-color: var(--cat-yellow);
    color: var(--cat-crust);
}

.maximize-btn:hover {
    background: var(--cat-green);
    border-color: var(--cat-green);
    color: var(--cat-crust);
}

.close-btn:hover {
    background: var(--cat-red);
    border-color: var(--cat-red);
    color: var(--cat-crust);
}

.maximize-btn.restored::before {
    content: '◰';
    font-size: var(--font-md);
}

/* Window Body */
.window-body {
    padding: 25px;
    flex-grow: 1;
    overflow: auto;
    scrollbar-color: var(--cat-mauve) var(--cat-surface0);
    scrollbar-width: thin;
    font-size: var(--font-md);
    color: var(--cat-text);
}

.window-body::-webkit-scrollbar {
    width: 12px;
}

.window-body::-webkit-scrollbar-track {
    background: var(--cat-surface0);
    border-radius: 6px;
}

.window-body::-webkit-scrollbar-thumb {
    background: var(--cat-mauve);
    border-radius: 6px;
}

.window-body::-webkit-scrollbar-thumb:hover {
    background: var(--cat-pink);
}

.window-body h2 {
    font-family: 'VT323', monospace;
    font-size: var(--font-xl);
    color: var(--cat-lavender);
    text-shadow: 0 0 15px rgba(180, 190, 254, 0.3);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--cat-surface2);
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.window-body h3 {
    font-family: 'VT323', monospace;
    font-size: var(--font-lg);
    color: var(--cat-pink);
    margin-top: 25px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.window-body p {
    line-height: 1.8;
    font-size: var(--font-md);
    margin-bottom: 15px;
    color: var(--cat-subtext1);
}

.window-body a {
    color: var(--cat-sapphire);
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.window-body a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cat-sapphire);
    transition: width 0.3s ease;
}

.window-body a:hover {
    color: var(--cat-sky);
    text-shadow: 0 0 8px rgba(137, 220, 235, 0.5);
}

.window-body a:hover::after {
    width: 100%;
}

.window-body ul {
    list-style: none;
    padding-left: 0;
}

.window-body li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    font-size: var(--font-md);
    line-height: 1.8;
    color: var(--cat-subtext1);
}

.window-body li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--cat-teal);
    font-size: var(--font-lg);
}

/* Contact Form */
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    background: var(--cat-surface0);
    border: 2px solid var(--cat-surface2);
    border-radius: 8px;
    color: var(--cat-text);
    font-family: 'Fira Code', monospace;
    font-size: var(--font-md);
    transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--cat-overlay0);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--cat-lavender);
    box-shadow: 0 0 20px rgba(180, 190, 254, 0.2);
    background: var(--cat-surface1);
}

.contact-form button {
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--cat-mauve), var(--cat-pink));
    color: var(--cat-crust);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'VT323', monospace;
    font-size: var(--font-lg);
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    font-weight: bold;
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(203, 166, 247, 0.4);
}

/* Table Styling */
.window-body table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(17, 17, 27, 0.2);
}

.window-body th,
.window-body td {
    border: 1px solid var(--cat-surface2);
    padding: 14px;
    text-align: left;
    font-size: var(--font-md);
}

.window-body th {
    background: var(--cat-surface1);
    font-family: 'VT323', monospace;
    font-size: var(--font-lg);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--cat-lavender);
}

.window-body td {
    background: var(--cat-surface0);
    color: var(--cat-subtext1);
}

.window-body tr:hover td {
    background: rgba(180, 190, 254, 0.05);
}

/* Terminal — refreshed look */
#obvterm .window-body {
    position: relative;
    background: linear-gradient(180deg, #0d0f17 0%, #0b0d14 100%);
    border: 1px solid rgba(148, 226, 213, 0.12);
    box-shadow:
      inset 0 0 0 1px rgba(203, 166, 247, 0.06),
      inset 0 20px 60px rgba(0, 0, 0, 0.35),
      0 10px 40px rgba(17, 17, 27, 0.45);
    border-radius: 10px;
    padding: 22px;
    font-family: 'VT323', monospace;
    font-size: var(--font-md);
    color: var(--cat-subtext1);
    line-height: 1.5;
}

#obvterm .window-body::before {
    content: "";
    position: absolute; inset: 0;
    border-radius: inherit;
    background:
      radial-gradient(120% 120% at 50% 0%, rgba(203, 166, 247, 0.08), transparent 60%),
      radial-gradient(80% 80% at 50% 100%, rgba(116, 199, 236, 0.06), transparent 65%);
    pointer-events: none;
}

#obvterm .window-body::after {
    content: "";
    position: absolute; inset: 0;
    background: repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.03), rgba(255,255,255,0.03) 1px,
      transparent 1px, transparent 3px
    );
    mix-blend-mode: overlay;
    opacity: 0.2;
    pointer-events: none;
}

#obvterm .terminal-output {
    color: var(--cat-subtext1);
    text-shadow: 0 0 6px rgba(205, 214, 244, 0.08);
    white-space: pre-wrap;
    word-break: break-word;
    margin-bottom: 8px;
}

.terminal-line {
    margin-bottom: 6px;
    font-size: var(--font-md);
}

.terminal-prompt {
    display: flex;
    align-items: center;
    white-space: pre;
    padding-top: 4px;
    border-top: 1px dashed rgba(148, 226, 213, 0.15);
}

.prompt-text {
    color: var(--cat-teal);
    text-shadow: 0 0 6px rgba(148, 226, 213, 0.35);
    font-size: var(--font-md);
    letter-spacing: 0.6px;
}

.input-area {
    position: relative;
    flex: 1;
    height: 1.3em;
    margin-left: 6px;
}

.input-sizer {
    display: inline-block;
    color: var(--cat-text);
    position: absolute;
    left: 0; top: 0;
    white-space: pre;
    font-size: var(--font-md);
    line-height: 1.3;
    letter-spacing: 0.4px;
}

.terminal-input {
    position: absolute;
    inset: 0;
    background: transparent;
    border: none;
    color: transparent;
    caret-color: transparent;
    font-family: inherit;
    font-size: var(--font-md);
    padding: 0;
    opacity: 0;
}

.terminal-input:focus {
    outline: none;
}

/* Thin neon caret */
.caret {
    position: absolute;
    top: 0.05em;
    left: 0;
    width: 2px;
    height: 1.2em;
    background: var(--cat-green);
    box-shadow: 0 0 6px rgba(166, 227, 161, 0.6);
    animation: caretBlink 1s steps(2, start) infinite;
}

@keyframes caretBlink { to { visibility: hidden; } }
.terminal-input:focus ~ .caret { animation: none; visibility: visible; }

/* About Me Avatar */
#about-me .avatar {
    float: left;
    width: 100px;
    height: 100px;
    margin: 0 20px 15px 0;
    border: 3px solid var(--cat-lavender);
    border-radius: 12px;
    background: url('assets/me.gif') no-repeat center;
    background-size: cover;
    box-shadow: 0 0 20px rgba(180, 190, 254, 0.3);
}

/* Project Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.project-card {
    background: var(--cat-surface0);
    padding: 15px;
    border: 2px solid var(--cat-surface2);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    text-decoration: none;
    color: var(--cat-text);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(180, 190, 254, 0.2);
    border-color: var(--cat-lavender);
}

.project-card .thumbnail {
    width: 100%;
    height: 120px;
    margin-bottom: 15px;
    background-color: var(--cat-mantle);
    border: 2px solid var(--cat-surface1);
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    transition: all 0.3s ease;
}

.project-card:hover .thumbnail {
    border-color: var(--cat-mauve);
}

.project-card h3 {
    font-size: var(--font-lg);
    margin-bottom: 8px;
    color: var(--cat-sapphire);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(116, 199, 236, 0.3);
}

.project-card p {
    font-size: var(--font-sm);
    line-height: 1.6;
    color: var(--cat-subtext0);
}

/* Project detail window */
.project-detail-window .window-body {
    display: flex;
    flex-direction: column;
    font-size: var(--font-md);
    padding: 30px;
}

.project-detail-window h2 {
    margin-bottom: 25px;
}

.project-detail-window h3 {
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: var(--font-lg);
    color: var(--cat-green);
}

.project-detail-window ul {
    list-style-position: inside;
    padding-left: 20px;
    line-height: 2;
    margin-bottom: 20px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    margin-bottom: 30px;
}

.tech-badge {
    background-color: var(--cat-surface0);
    color: var(--cat-text);
    padding: 6px 14px;
    border-radius: 20px;
    font-family: 'Fira Code', monospace;
    font-size: var(--font-sm);
    border: 2px solid var(--cat-surface2);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tech-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px currentColor;
}

/* Stats and platforms */
.stats-container {
    display: flex;
    justify-content: space-around;
    background-color: var(--primary);
    border: 1px solid var(--blue-glow);
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.stat-item .stat-value {
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: var(--green-glow);
    font-family: 'VT323', monospace;
}

.stat-item .stat-label {
    font-size: 16px;
    color: var(--font-color);
}

.platform-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 10px;
}

.platform-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background-color: var(--secondary);
    border: 1px solid var(--blue-glow);
    text-decoration: none;
    color: var(--font-color);
    transition: all 0.2s ease;
}

.platform-link:hover {
    background-color: var(--title-bar-active);
    border-color: var(--accent);
}

.platform-link img {
    width: 32px;
    height: 32px;
}

.platform-link span {
    font-size: 18px;
    font-family: 'VT323', monospace;
}

/* Tech badge colors using Catppuccin palette */
.tech-badge.c-plus-plus { border-color: var(--cat-blue); color: var(--cat-blue); }
.tech-badge.llvm { border-color: var(--cat-peach); color: var(--cat-peach); }
.tech-badge.react { border-color: var(--cat-sky); color: var(--cat-sky); }
.tech-badge.pytorch { border-color: var(--cat-maroon); color: var(--cat-maroon); }
.tech-badge.systems { border-color: var(--cat-green); color: var(--cat-green); }
.tech-badge.java { border-color: var(--cat-peach); color: var(--cat-peach); }
.tech-badge.cuda { border-color: var(--cat-green); color: var(--cat-green); }
.tech-badge.opengl { border-color: var(--cat-sapphire); color: var(--cat-sapphire); }
.tech-badge.rust { border-color: var(--cat-flamingo); color: var(--cat-flamingo); }
.tech-badge.ocaml { border-color: var(--cat-yellow); color: var(--cat-yellow); }
.tech-badge.wasm { border-color: var(--cat-mauve); color: var(--cat-mauve); }
.tech-badge.javascript { border-color: var(--cat-yellow); color: var(--cat-yellow); }
.tech-badge.python { border-color: var(--cat-blue); color: var(--cat-blue); }
.tech-badge.node { border-color: var(--cat-green); color: var(--cat-green); }
.tech-badge.mongodb { border-color: var(--cat-green); color: var(--cat-green); }
.tech-badge.express { border-color: var(--cat-overlay2); color: var(--cat-overlay2); }
.tech-badge.ai-ml { border-color: var(--cat-lavender); color: var(--cat-lavender); }
.tech-badge.nlp { border-color: var(--cat-pink); color: var(--cat-pink); }
.tech-badge.c-lang { border-color: var(--cat-blue); color: var(--cat-blue); }
.tech-badge.assembly { border-color: var(--cat-red); color: var(--cat-red); }
.tech-badge.qemu { border-color: var(--cat-peach); color: var(--cat-peach); }
.tech-badge.risc-v { border-color: var(--cat-green); color: var(--cat-green); }
.tech-badge.compilers { border-color: var(--cat-mauve); color: var(--cat-mauve); }
.tech-badge.emscripten { border-color: var(--cat-teal); color: var(--cat-teal); }
.tech-badge.performance { border-color: var(--cat-red); color: var(--cat-red); }
.tech-badge.full-stack { border-color: var(--cat-lavender); color: var(--cat-lavender); }
.tech-badge.loom { border-color: var(--cat-peach); color: var(--cat-peach); }
.tech-badge.maven { border-color: var(--cat-maroon); color: var(--cat-maroon); }
.tech-badge.hpc { border-color: var(--cat-red); color: var(--cat-red); }
.tech-badge.cmake { border-color: var(--cat-green); color: var(--cat-green); }

/* GitHub button */
.github-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--cat-surface1);
    color: var(--cat-text);
    padding: 14px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-family: 'Fira Code', monospace;
    font-weight: 500;
    font-size: var(--font-md);
    margin-top: 20px;
    align-self: flex-start;
    min-width: 220px;
    transition: all 0.3s ease;
    border: 2px solid var(--cat-surface2);
}

.github-button:hover {
    transform: scale(1.05);
    border-color: var(--cat-lavender);
    box-shadow: 0 0 30px rgba(180, 190, 254, 0.3);
    background: var(--cat-surface2);
}

.github-button svg {
    width: 24px;
    height: 24px;
    fill: var(--cat-text);
}

.section-banner {
    width: calc(100% + 50px);
    margin: -25px -25px 20px -25px;
    height: 40px;
    background: linear-gradient(90deg, var(--cat-surface1), transparent);
    border-left: 3px solid var(--cat-mauve);
    border-bottom: 2px solid var(--cat-surface2);
}

/* Responsive adjustments */
@media (max-width: 1400px) {
    .widget-container {
        width: 280px;
        right: 15px;
    }
    .widget h3 { font-size: 18px; }
    .widget p, .widget li { font-size: 13px; }
}

@media (max-width: 1200px) {
    .widget-container {
        position: static;
        width: 100%;
        max-width: 100%;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        padding: 0 20px 20px 20px;
        max-height: none;
        overflow: visible;
    }

    /* Switch icons to responsive grid */
    .icon-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 14px 16px;
        width: 100%;
        max-width: 100%;
        height: auto;
        padding-right: 0;
    }

    .desktop {
        display: flex;
        flex-direction: column;
        overflow-y: auto;
    }
}

@media (max-width: 1024px) {
  .icon-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }
}

/* Compact/mobile mode */
@media (max-width: 768px) {
  body { overflow: auto; }

  .desktop {
    display: block;
    padding: 16px;
    height: auto;
    min-height: calc(100vh - 56px);
    overflow-y: visible;
  }

  .widget-container {
    position: static;
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 4px 12px 4px;
    max-height: none;
    overflow: visible;
  }

  .icon-grid {
    grid-template-columns: repeat(3, minmax(90px, 1fr));
    gap: 12px;
    width: 100%;
    max-width: 100%;
  }

  .desktop-icon {
    width: 100%;
    padding: 10px 8px;
  }

  .desktop-icon .icon-image {
    width: 48px;
    height: 48px;
  }

  .window {
    position: fixed;
    inset: 56px 8px 56px 8px;
    width: auto !important;
    height: auto !important;
    min-width: initial;
    min-height: initial;
    border-radius: 12px;
    margin: 0;
    resize: none;
  }

  .window.maximized {
    border-radius: 0;
  }

  .taskbar {
    height: 56px;
  }
}

/* Additional hover effects and animations */
*:focus-visible {
    outline: 2px solid var(--cat-lavender);
    outline-offset: 2px;
}

/* Smooth scrollbar for all elements */
*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-track {
    background: var(--cat-surface0);
    border-radius: 5px;
}

*::-webkit-scrollbar-thumb {
    background: var(--cat-mauve);
    border-radius: 5px;
}

*::-webkit-scrollbar-thumb:hover {
    background: var(--cat-pink);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Hint bar under the output */
#obvterm .terminal-hints {
  margin: 6px 0 8px 0;
  color: var(--cat-overlay1);
  font-size: calc(var(--font-md) - 3px);
  letter-spacing: 0.3px;
  user-select: none;
}

/* Input rendering with true caret position */
.input-area {
  position: relative;
  flex: 1;
  height: 1.4em;
  margin-left: 6px;
  font-family: 'VT323', monospace;
}

.input-before,
.input-after {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-block;
  white-space: pre;
  font-size: var(--font-md);
  line-height: 1.3;
  letter-spacing: 0.4px;
  color: var(--cat-text);
  pointer-events: none;
}

.input-after {
  opacity: 0.9;
}

/* Keep hidden input invisible but interactive */
.terminal-input {
  position: absolute;
  inset: 0;
  background: transparent;
  border: none;
  color: transparent;
  caret-color: transparent;
  font-family: inherit;
  font-size: var(--font-md);
  padding: 0;
  opacity: 0;
}

/* Thin neon caret (already present, just ensuring compatibility) */
.caret {
  position: absolute;
  top: 0.05em;
  left: 0;
  width: 2px;
  height: 1.2em;
  background: var(--cat-green);
  box-shadow: 0 0 6px rgba(166, 227, 161, 0.6);
  animation: caretBlink 1s steps(2, start) infinite;
}

/* Output states */
.terminal-line.ok { color: var(--cat-subtext1); }
.terminal-line.error { color: var(--cat-red); text-shadow: 0 0 6px rgba(243,139,168,0.35); }

/* Optional: color tokens for ls output */
.token-dir    { color: var(--cat-sky); }
.token-file   { color: var(--cat-green); }
.token-sep    { color: var(--cat-overlay1); }

/* Add these new styles to your style.css file */

.achievement-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--blue-glow);
}

/* Use pseudo-elements to add cool icons! */
.achievement-header.hackathon-header::before {
    content: '🏆';
    font-size: 20px;
}
.achievement-header.cert-header::before {
    content: '📜';
    font-size: 20px;
}

.achievement-list {
    margin-top: 15px;
}

.achievement-item {
    padding: 10px 15px;
    border-left: 3px solid var(--blue-glow);
    margin-bottom: 15px;
    background-color: var(--primary);
}

.achievement-item h4 {
    font-family: 'Fira Code', monospace;
    font-weight: 500;
    font-size: 16px;
    color: var(--font-color);
    margin: 0 0 5px 0;
}

.achievement-item p {
    font-size: 14px;
    color: #b0c4de; /* Lighter text color */
    line-height: 1.5;
    margin: 0;
}

.achievement-item p strong {
    color: var(--green-glow);
}