:root {
    --bg-color: #0b0e14;
    --terminal-bg: rgba(13, 17, 23, 0.8);
    --window-bg: rgba(22, 27, 34, 0.9);
    --text-color: #e6edf3;
    --accent-color: #58a6ff;
    --success-color: #3fb950;
    --prompt-color: #bc8cff;
    --border-color: rgba(255, 255, 255, 0.1);
    --font-mono: 'JetBrains Mono', monospace;
    --font-sans: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Firefox scrollbars */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

/* Custom premium macOS-style scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: background-color 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
    border: 2px solid transparent;
    background-clip: padding-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    height: 100vh;
    overflow: hidden;
}

.background-grid {
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(circle at 50% 50%, rgba(88, 166, 255, 0.05) 0%, transparent 80%),
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    z-index: -1;
}

.navbar {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 3rem;
    position: absolute;
    width: 100%;
    z-index: 100;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 2rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    opacity: 0.5;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 1;
}

.desktop-env {
    height: 100vh;
    padding: 100px 50px 50px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Windows Container */
.window-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.window-container>* {
    pointer-events: auto;
}

/* Terminal Window Base */
.terminal-window {
    background: var(--window-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    position: absolute;
    min-width: 400px;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    transform-origin: top left;
}

.terminal-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    cursor: grab;
    border-bottom: 1px solid var(--border-color);
    user-select: none;
}

.terminal-header:active {
    cursor: grabbing;
}

.header-buttons {
    display: flex;
    gap: 8px;
    z-index: 10;
}

.btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: scale(1.15);
    filter: brightness(1.2);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.15);
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

.header-title {
    flex-grow: 1;
    text-align: center;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    opacity: 0.6;
}

.terminal-body {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    overflow-y: auto;
    flex-grow: 1;
    max-height: 500px;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    opacity: 1;
}

/* Main Terminal Specific */
.main-terminal {
    position: relative;
    width: 600px;
    height: 400px;
    z-index: 10;
}

.input-line {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.input-wrapper {
    position: relative;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

#terminal-input {
    background: transparent;
    border: none;
    color: transparent;
    /* Text is invisible, ghost-text shows it */
    font-family: var(--font-mono);
    font-size: 0.9rem;
    width: 100%;
    outline: none;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    caret-color: transparent;
    height: 100%;
}

.ghost-text {
    position: relative;
    color: var(--success-color);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 1;
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 1.2;
}

/* Spawned Windows */
.spawned-window {
    width: 500px;
    height: 350px;
    z-index: 20;
    animation: popIn 0.3s ease-out;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}


.social-links {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    gap: 15px;
}

.social-btn {
    width: auto;
    height: 40px;
    padding: 0 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    /* Sharper rectangle */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    gap: 8px;
}

.social-btn i {
    font-size: 1.1rem;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.user {
    color: var(--accent-color);
}

.path {
    color: var(--prompt-color);
}

.output {
    color: #8b949e;
    margin-bottom: 15px;
    line-height: 1.4;
}

.highlight {
    color: var(--success-color);
}

.tree-container {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.tree-view {
    margin: 0;
    line-height: 1.4;
    color: #8b949e;
    font-size: 0.85rem;
    flex: 1;
    min-width: 220px;
}

.tree-view .highlight {
    font-weight: bold;
}

/* Maximized Window State */
.terminal-window.maximized {
    position: absolute !important;
    top: 100px !important;
    left: 50px !important;
    width: calc(100% - 100px) !important;
    height: calc(100% - 180px) !important;
    max-height: none !important;
    z-index: 100 !important;
}

/* Collapsed Window State - Must come AFTER maximized to override height */
.terminal-window.collapsed .terminal-body {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.terminal-window.collapsed {
    height: auto !important;
    min-height: 0 !important;
}

.terminal-window.collapsed.maximized {
    width: calc(100% - 100px) !important;
    /* Keep width if it was maximized */
}

.terminal-window.collapsed .terminal-body {
    display: none;
}

/* Blinking Cursor */
.cursor-block {
    display: inline-block;
    width: 8px;
    height: 15px;
    background-color: var(--success-color);
    margin-left: 2px;
    vertical-align: middle;
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.suggestion {
    color: rgba(255, 255, 255, 0.2);
}

/* Projects Section Styles */
.project-item {
    margin-bottom: 25px;
}

.project-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 5px;
}

.project-name {
    font-weight: bold;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s;
}

.project-name:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.project-timeline {
    font-size: 0.8rem;
    color: #8b949e;
    font-family: var(--font-mono);
}

.project-desc {
    list-style-type: none;
    padding-left: 0;
}

.project-desc li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 18px;
    line-height: 1.5;
    font-size: 0.85rem;
    color: #c9d1d9;
}

.project-desc li::before {
    content: "›";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.project-stack {
    font-size: 0.8rem;
    color: var(--accent-color);
    margin-top: 10px;
    font-family: var(--font-mono);
    opacity: 0.9;
}

.project-stack .label {
    color: var(--text-color);
    font-weight: bold;
    margin-right: 5px;
}

/* Experience Section Styles */
.experience-item {
    margin-bottom: 30px;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 4px;
    margin-bottom: 4px;
}

.experience-title {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--text-color);
}

.experience-timeline {
    font-size: 0.9rem;
    color: var(--text-color);
    font-family: var(--font-mono);
}

.experience-sub-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.experience-company {
    font-size: 0.95rem;
    color: var(--text-color);
}

.experience-location {
    font-size: 0.9rem;
    color: var(--text-color);
}

.experience-bullets {
    list-style-type: disc;
    padding-left: 20px;
    color: var(--text-color);
}

.experience-bullets li {
    margin-bottom: 12px;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Contact Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: 0.8rem;
    color: var(--accent-color);
    font-family: var(--font-mono);
}

.contact-form input,
.contact-form textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 10px;
    color: var(--text-color);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 5px rgba(88, 166, 255, 0.3);
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.send-btn {
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 12px;
    font-family: var(--font-mono);
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.send-btn:hover {
    background: #4a9eff;
    transform: translateY(-2px);
}

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

.form-status {
    font-size: 0.85rem;
    margin-top: 10px;
    font-family: var(--font-mono);
}

.form-status.success {
    color: var(--success-color);
}

.form-status.error {
    color: #ff5f56;
}

/* Boot Screen Styles */
.boot-screen {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: var(--font-mono);
    color: var(--success-color);
    transition: opacity 1s ease, visibility 1s;
}

.boot-text {
    font-size: 1.2rem;
    white-space: pre-wrap;
    text-align: center;
    max-width: 80%;
    line-height: 1.6;
}

.boot-cursor {
    width: 10px;
    height: 20px;
    background: var(--success-color);
    margin-top: 10px;
    animation: blink 0.8s step-end infinite;
}

.boot-screen.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Initial Hidden State for Smooth Entry */
.navbar,
.desktop-env,
.social-links {
    opacity: 0;
    transition: opacity 1s ease 0.5s;
}

body.booted .navbar,
body.booted .desktop-env,
body.booted .social-links {
    opacity: 1;
}

/* Mobile Responsiveness Overrides */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
    }

    .navbar {
        padding: 1rem 0.5rem;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background: rgba(11, 14, 20, 0.95);
        backdrop-filter: blur(12px);
        box-shadow: 0 4px 20px rgba(0,0,0,0.5);
        z-index: 1000;
        border-bottom: 1px solid var(--border-color);
    }

    .logo {
        font-size: 1.1rem;
        margin-bottom: 2px;
    }

    .navbar nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px 8px;
        width: 100%;
        padding: 0 5px;
    }

    nav a {
        margin-left: 0;
        font-size: 0.7rem;
        padding: 4px 8px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 4px;
        opacity: 0.9;
        white-space: nowrap;
    }

    .desktop-env {
        padding: 240px 15px 120px; /* Increased top padding to ensure clear separation from navbar */
        align-items: flex-start;
        height: auto;
        min-height: calc(100vh - 60px);
        overflow: visible;
        display: flex;
        flex-direction: column;
        gap: 25px;
    }

    .header-buttons {
        gap: 12px; /* Increased gap */
    }

    .btn {
        width: 18px; /* Larger buttons for touch */
        height: 18px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .window-container {
        position: relative !important;
        inset: unset !important;
        width: 100% !important;
        height: auto !important;
        display: flex;
        flex-direction: column;
        gap: 20px;
        z-index: 10;
        pointer-events: auto !important;
    }

    .main-terminal {
        width: 100% !important;
        height: auto !important;
        min-height: 350px;
        position: relative !important;
        left: unset !important;
        top: unset !important;
        margin-bottom: 0px;
        order: 1;
    }

    .terminal-window {
        min-width: unset;
        width: 100% !important;
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        transform: none !important;
    }

    .spawned-window {
        width: 100% !important;
        height: auto !important;
        max-height: none;
        order: 2;
    }

    .terminal-body {
        max-height: 60vh;
        padding: 15px;
        font-size: 0.85rem;
    }

    .output {
        font-size: 0.85rem;
        word-break: break-word;
    }

    .project-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        margin-bottom: 10px;
    }

    .project-timeline {
        font-size: 0.75rem;
        opacity: 0.6;
    }

    .tree-container {
        flex-direction: column;
        gap: 15px;
    }

    .tree-view {
        font-size: 0.75rem;
        min-width: auto;
    }

    .social-links {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(11, 14, 20, 0.95);
        backdrop-filter: blur(8px);
        border-top: 1px solid var(--border-color);
        justify-content: space-around;
        padding: 15px 5px;
        width: 100%;
        z-index: 1000;
        opacity: 1 !important;
    }

    .social-btn {
        font-size: 0.65rem;
        padding: 0 5px;
        height: 40px;
        border: none;
        background: transparent;
        flex: 1;
    }

    .social-btn i {
        font-size: 1.3rem;
    }
}

/* ==========================================
   THEMES ENGINE & CUSTOM COMPONENT STYLES
   ========================================== */

/* Theme Class Overrides */
body.theme-dracula {
    --bg-color: #0b0e14;
    --terminal-bg: rgba(13, 17, 23, 0.8);
    --window-bg: rgba(22, 27, 34, 0.9);
    --text-color: #e6edf3;
    --accent-color: #58a6ff;
    --success-color: #3fb950;
    --prompt-color: #bc8cff;
    --border-color: rgba(255, 255, 255, 0.1);
}

body.theme-matrix {
    --bg-color: #020502;
    --terminal-bg: rgba(5, 10, 5, 0.85);
    --window-bg: rgba(8, 16, 8, 0.95);
    --text-color: #39ff14;
    --accent-color: #00ff00;
    --success-color: #39ff14;
    --prompt-color: #00ff66;
    --border-color: rgba(57, 255, 20, 0.3);
}

body.theme-github {
    --bg-color: #0d1117;
    --terminal-bg: rgba(22, 27, 34, 0.85);
    --window-bg: rgba(33, 38, 45, 0.95);
    --text-color: #c9d1d9;
    --accent-color: #58a6ff;
    --success-color: #58a6ff;
    --prompt-color: #8b949e;
    --border-color: rgba(240, 246, 252, 0.1);
}

body.theme-tokyonight {
    --bg-color: #1a1b26;
    --terminal-bg: rgba(26, 27, 38, 0.85);
    --window-bg: rgba(36, 40, 59, 0.92);
    --text-color: #a9b1d6;
    --accent-color: #7aa2f7;
    --success-color: #9ece6a;
    --prompt-color: #bb9af7;
    --border-color: rgba(122, 162, 247, 0.15);
}

body.theme-midnight {
    --bg-color: #000000;
    --terminal-bg: rgba(10, 10, 10, 0.85);
    --window-bg: rgba(16, 16, 16, 0.95);
    --text-color: #f0f6fc;
    --accent-color: #58a6ff;
    --success-color: #3fb950;
    --prompt-color: #bc8cff;
    --border-color: rgba(255, 255, 255, 0.08);
}

/* Floating Theme Switcher Button */
.theme-quick-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    color: var(--text-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
}

.theme-quick-btn:hover {
    transform: translateY(-3px);
    border-color: var(--accent-color);
    color: var(--accent-color);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.theme-quick-btn i {
    font-size: 1.25rem;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.theme-quick-btn:hover i {
    transform: rotate(90deg);
}

/* Tooltip */
.theme-quick-btn .tooltip {
    position: absolute;
    left: 60px;
    background: rgba(11, 14, 20, 0.95);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 5px 10px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.theme-quick-btn:hover .tooltip {
    opacity: 1;
}

/* Dropdown menu */
.theme-quick-dropdown {
    position: fixed;
    bottom: 90px;
    left: 30px;
    background: var(--window-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 175px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 9998;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    transform: translateY(10px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.theme-quick-dropdown.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.theme-dropdown-item {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-color);
    transition: background 0.2s, color 0.2s;
    user-select: none;
}

.theme-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-color);
}

.theme-dropdown-item .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

/* Swatch dot styling */
.theme-dropdown-item .dot.dracula { background: #bc8cff; }
.theme-dropdown-item .dot.matrix { background: #39ff14; }
.theme-dropdown-item .dot.github { background: #58a6ff; }
.theme-dropdown-item .dot.tokyonight { background: #7aa2f7; }
.theme-dropdown-item .dot.monokai { background: #ffd866; } /* Backwards compatibility fallback if needed */
.theme-dropdown-item .dot.midnight { background: #ffffff; }

/* File Explorer (files) Styles */
.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
    gap: 15px;
    padding: 5px;
}

.file-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    border: 1px solid transparent;
    user-select: none;
}

.file-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border-color);
}

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

.file-icon {
    font-size: 2rem;
    margin-bottom: 6px;
    color: var(--accent-color);
    transition: transform 0.2s;
}

.file-item:hover .file-icon {
    transform: scale(1.08);
}

.file-icon.folder {
    color: #e2b714;
}

.file-icon.pdf {
    color: #ff5f56;
}

.file-name {
    font-size: 0.72rem;
    font-family: var(--font-mono);
    color: var(--text-color);
    word-break: break-all;
    line-height: 1.3;
}

/* Theme Picker Window Styles */
.theme-picker-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 5px;
}

@media (max-width: 500px) {
    .theme-picker-grid {
        grid-template-columns: 1fr;
    }
}

.theme-picker-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.2s ease-in-out;
}

.theme-picker-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.05);
}

.theme-picker-card.active {
    border-color: var(--success-color);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

.theme-picker-name {
    font-family: var(--font-mono);
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: capitalize;
}

.theme-picker-preview {
    display: flex;
    gap: 6px;
}

.theme-picker-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsive adjustment for theme button on mobile screens */
@media (max-width: 768px) {
    .theme-quick-btn {
        bottom: 80px;
        left: 20px;
    }
    .theme-quick-dropdown {
        bottom: 140px;
        left: 20px;
    }
}
/* Docker prompt styles */
.docker-root-prompt {
    color: #ff5f56;
    font-weight: bold;
}

/* Wasm Terminal Window Frame */
.wasm-terminal-frame {
    border: none;
    background: #000;
    border-radius: 4px;
}

.wasm-container {
    position: relative;
    width: 100%;
}

/* Profile Card Styling for About Section */
.profile-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.profile-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.profile-visuals {
    position: relative;
    width: 160px;
    height: 160px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #050505;
}

.profile-img-view {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 1;
    z-index: 2;
}

.profile-ascii-view {
    width: 100%;
    height: 100%;
    font-family: var(--font-mono);
    font-size: 8px;
    line-height: 8px;
    color: var(--success-color);
    white-space: pre;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.4s ease;
    padding: 4px;
    user-select: none;
    letter-spacing: 1px;
}

.profile-card.ascii-active .profile-img-view {
    opacity: 0;
    z-index: 1;
}

.profile-card.ascii-active .profile-ascii-view {
    opacity: 1;
    z-index: 2;
}

.profile-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

/* Switch Styling */
.switch-container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    opacity: 0.8;
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .3s;
    border-radius: 34px;
    border: 1px solid var(--border-color);
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-color);
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: rgba(63, 185, 80, 0.2);
    border-color: var(--success-color);
}

input:checked + .slider:before {
    transform: translateX(22px);
    background-color: var(--success-color);
}

/* Inline Terminal Image Crossfader */
.terminal-ascii-box {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 7px;
    line-height: 7px;
    letter-spacing: 1px;
    color: var(--success-color);
    background: #000;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    margin: 10px 0;
    white-space: pre;
    max-width: 100%;
    overflow-x: auto;
}

/* Responsive adjustment for Profile Card */
@media (max-width: 500px) {
    .profile-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .profile-controls {
        justify-content: center;
    }
}

/* Sleek custom scrollbars globally */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

