/* ===== Performance Optimizations ===== */
* {
    box-sizing: border-box;
}

/* Enable hardware acceleration for animations */
.window,
.dock-item,
.desktop-icon,
.window-header {
    will-change: transform;
    transform: translateZ(0);
}

/* Optimize scrolling */
.window-content {
    contain: layout style paint;
    overflow-anchor: none;
}

/* Reduce paint complexity */
.backdrop-blur-md {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ===== Basic Scroll Behavior ===== */
html {
    scroll-padding-top: 5rem;
    /* Prevent section headings from being hidden under fixed navbar */
    scroll-behavior: smooth;
    /* Enable smooth scrolling between anchors */
}

/* ===== Section Spacing and Layout ===== */
section {
    scroll-margin-top: 5rem;
    /* For anchor targets */
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* Section z-index handling */
#projects,
#contact {
    position: relative;
    z-index: 1;
}

/* Contact section specific spacing */
.contact-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* ===== Terminal-Inspired Dark Theme ===== */
:root {
    --terminal-bg: #0a0a0a;
    --terminal-bg-secondary: #1a1a1a;
    --terminal-bg-tertiary: #2a2a2a;
    --terminal-border: #333333;
    --terminal-text: #e0e0e0;
    --terminal-text-secondary: #a0a0a0;
    --terminal-accent: #00ff41;
    --terminal-accent-blue: #00aaff;
    --terminal-accent-red: #ff4444;
    --terminal-accent-yellow: #ffaa00;
}

/* ===== Enhanced Window System ===== */
.window {
    background: var(--terminal-bg-secondary);
    border: 1px solid var(--terminal-border);
    border-radius: 8px;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
}

.window.minimized {
    transform: scale(0.05) translateY(600px);
    opacity: 0;
    pointer-events: none;
}

.window.maximized {
    width: calc(100vw - 1rem) !important;
    height: calc(100vh - 3rem) !important;
    top: 2rem !important;
    left: 0.5rem !important;
    border-radius: 8px;
}

.window-header {
    background: linear-gradient(135deg,
            rgba(26, 26, 26, 0.95),
            rgba(42, 42, 42, 0.95));
    border-bottom: 1px solid var(--terminal-border);
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    user-select: none;
    cursor: move;
}

.window-header>* {
    -webkit-app-region: no-drag;
}

.window-title {
    color: var(--terminal-text);
    font-size: 14px;
    font-weight: 500;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.window-content {
    background: var(--terminal-bg);
    color: var(--terminal-text);
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    line-height: 1.6;
    overflow-y: auto;
    overflow-x: hidden;
    height: calc(100% - 40px);
}

/* Window control buttons */
.window-controls {
    display: flex;
    gap: 8px;
}

.window-control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.window-close {
    background: #ff5f57;
}

.window-close:hover {
    background: #ff3b30;
    box-shadow: 0 0 8px rgba(255, 95, 87, 0.6);
}

.window-minimize {
    background: #ffbd2e;
}

.window-minimize:hover {
    background: #ff9500;
    box-shadow: 0 0 8px rgba(255, 189, 46, 0.6);
}

.window-maximize {
    background: #28ca42;
}

.window-maximize:hover {
    background: #30d158;
    box-shadow: 0 0 8px rgba(40, 202, 66, 0.6);
}

/* Window animation entrance */
.window-enter {
    animation: windowEnterTerminal 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes windowEnterTerminal {
    0% {
        transform: scale(0.8) translateY(40px);
        opacity: 0;
        filter: blur(8px);
    }

    50% {
        transform: scale(1.02) translateY(-5px);
        opacity: 0.8;
        filter: blur(2px);
    }

    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
        filter: blur(0);
    }
}

/* ===== Terminal-Style Content ===== */
.terminal-content {
    padding: 20px 20px 0 20px;
    background: var(--terminal-bg);
    color: var(--terminal-text);
    height: 100%;
    overflow-y: auto;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 0;
    border-bottom: none;
}

/* Terminal input line styling */
.terminal-input-line {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 0;
    position: sticky;
    bottom: 0;
    background: var(--terminal-bg);
    padding: 4px 0;
}

.terminal-input {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: var(--terminal-accent) !important;
    caret-color: var(--terminal-accent) !important;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    flex: 1;
    margin-left: 4px;
    width: 100%;
    min-width: 0;
}

.terminal-input:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.terminal-input::selection {
    background: rgba(0, 255, 65, 0.3);
}

/* Remove any extra margins that might cause bottom spacing */
.terminal-content > div:last-child {
    margin-bottom: 0;
}

.terminal-output {
    color: var(--terminal-text-secondary);
    white-space: pre-wrap;
    word-break: break-word;
    margin-bottom: 0;
}

.terminal-output > div:last-child {
    margin-bottom: 0;
}

.terminal-prompt {
    color: var(--terminal-accent);
    font-weight: bold;
}

.terminal-path {
    color: var(--terminal-accent-blue);
}

.terminal-line {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

/* Enhanced Desktop Icons */
.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding-bottom: 1rem;
    user-select: none;
}

.desktop-icon:hover {
    transform: scale(1.05) translateY(-2px);
}

.desktop-icon>div {
    background: linear-gradient(135deg,
            rgba(26, 26, 26, 0.9),
            rgba(42, 42, 42, 0.9));
    border: 1px solid var(--terminal-border);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.desktop-icon:hover>div {
    background: linear-gradient(135deg,
            rgba(42, 42, 42, 0.95),
            rgba(60, 60, 60, 0.95));
    border-color: var(--terminal-accent);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

.desktop-icon span {
    color: var(--terminal-text);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

/* ===== Enhanced Dock System ===== */
.dock-item {
    position: relative;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    user-select: none;
}

.dock-item:hover {
    transform: translateY(-12px) scale(1.15);
}

.dock-item>div {
    background: linear-gradient(135deg,
            rgba(26, 26, 26, 0.9),
            rgba(42, 42, 42, 0.9));
    border: 1px solid var(--terminal-border);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.dock-item:hover>div {
    background: linear-gradient(135deg,
            rgba(42, 42, 42, 0.95),
            rgba(60, 60, 60, 0.95));
    border-color: var(--terminal-accent);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

/* ===== Menu Bar Dark Styling ===== */
.menu-bar {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(30px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ===== Menu Bar Status Icons ===== */
.menu-bar-icons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-icon {
    transition: all 0.2s ease;
    opacity: 0.8;
}

.status-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* WiFi signal strength animation */
.wifi-icon {
    position: relative;
}

.wifi-icon::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 4px;
    height: 4px;
    background: var(--terminal-accent);
    border-radius: 50%;
    opacity: 0;
    animation: signal-pulse 2s infinite;
}

@keyframes signal-pulse {

    0%,
    100% {
        opacity: 0;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.bluetooth-icon.connected {
    color: var(--terminal-accent-blue);
}

.bluetooth-icon.disconnected {
    color: #6b7280;
}

.battery-icon {
    position: relative;
}

.battery-level-low {
    color: var(--terminal-accent-red);
    animation: battery-warning 1s infinite alternate;
}

.battery-level-medium {
    color: var(--terminal-accent-yellow);
}

.battery-level-high {
    color: var(--terminal-accent);
}

@keyframes battery-warning {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

/* ===== Dark Theme Glass Effects ===== */
.glass-dark {
    background: rgba(31, 41, 55, 0.3);
    backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ===== Enhanced Scrollbar for Dark Theme ===== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(31, 41, 55, 0.2);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: rgba(156, 163, 175, 0.3);
    border-radius: 6px;
    border: 2px solid rgba(31, 41, 55, 0.1);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(156, 163, 175, 0.5);
}

/* Dark scrollbar for terminal */
.terminal-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(34, 197, 94, 0.3);
}

.terminal-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(34, 197, 94, 0.5);
}

/* ===== Responsive Design for Dark Theme ===== */
@media (max-width: 768px) {
    .window {
        width: 95vw !important;
        height: 85vh !important;
        left: 2.5vw !important;
        top: 2rem !important;
    }

    .dock-item {
        transform: scale(0.9);
    }

    .desktop-icon {
        transform: scale(0.85);
    }

    .desktop-icon>div {
        width: 3.5rem;
        height: 3.5rem;
    }

    .menu-bar-icons {
        gap: 0.25rem;
    }

    .status-icon {
        width: 0.875rem;
        height: 0.875rem;
    }

    .battery-level-text {
        display: none;
    }
}

@media (max-width: 480px) {
    .dock-item>div {
        width: 2.5rem;
        height: 2.5rem;
    }

    .desktop-icon>div {
        width: 3rem;
        height: 3rem;
    }

    .window {
        width: 98vw !important;
        height: 90vh !important;
        left: 1vw !important;
        top: 1rem !important;
    }
}

/* ===== Animation Base Classes ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
    /* Performance optimization */
    position: relative;
    z-index: 1;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Staggered Animations ===== */
.stagger-children>* {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    position: relative;
    /* Ensure proper stacking context */
    z-index: 1;
}

.stagger-children.visible>*:nth-child(1) {
    transition-delay: 0.1s;
}

.stagger-children.visible>*:nth-child(2) {
    transition-delay: 0.2s;
}

.stagger-children.visible>*:nth-child(3) {
    transition-delay: 0.3s;
}

.stagger-children.visible>*:nth-child(4) {
    transition-delay: 0.4s;
}

.stagger-children.visible>*:nth-child(5) {
    transition-delay: 0.5s;
}

.stagger-children.visible>*:nth-child(6) {
    transition-delay: 0.6s;
}

.stagger-children.visible>*:nth-child(7) {
    transition-delay: 0.7s;
}

.stagger-children.visible>*:nth-child(8) {
    transition-delay: 0.8s;
}

.stagger-children.visible>* {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Specific Animation Types ===== */
.fade-in {
    opacity: 0;
    transition: opacity 1s ease-out;
}

.fade-in.visible {
    opacity: 1;
}

.slide-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Typing animation */
.typing-animation {
    overflow: hidden;
    border-right: 2px solid #6ee7b7;
    white-space: nowrap;
    animation: typing 3s steps(30, end), blink-caret 0.5s step-end infinite alternate;
    display: inline-block;
}

/* Loading animations */
#loading {
    outline: none;
    border: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: black;
    padding: 2rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border-top-color: #40658e;
    animation: spin 1s linear infinite;
    margin-bottom: 1.5rem;
}

.loading-text {
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}

/* ===== Animation Keyframes ===== */
@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: #6ee7b7
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Circle animation for DoorDashboard chart */
@keyframes circle-pop {
    from {
        r: 0;
        opacity: 0;
        transform: scale(0);
    }

    to {
        r: 2;
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fill-fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Enhanced dash animation */
@keyframes dash {
    0% {
        stroke-dashoffset: 200;
        stroke-width: 1.5;
    }

    70% {
        stroke-dashoffset: 0;
        stroke-width: 1.5;
    }

    100% {
        stroke-dashoffset: 0;
        stroke-width: 1.5;
    }
}

/* Veto System Card Animations */
@keyframes draw-hex {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes pulse-center {
    to {
        transform: scale(1);
    }
}

@keyframes draw-check {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes vote-appear {
    to {
        opacity: 0.8;
    }
}

/* Enhanced line animation for veto system */
@keyframes draw-line {
    0% {
        stroke-dashoffset: 50;
        opacity: 0;
    }

    30% {
        opacity: 0.3;
    }

    100% {
        stroke-dashoffset: 0;
        opacity: 0.3;
    }
}

/* ===== macOS Style System ===== */
.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding-bottom: 1rem;
    /* Add padding below desktop icons */
}

.desktop-icon:hover {
    transform: scale(1.08) translateY(-2px);
}

.desktop-icon:hover>div {
    background-opacity: 1;
    border-color: rgba(255, 255, 255, 0.3);
}

.dock-item {
    position: relative;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dock-item:hover {
    transform: translateY(-12px) scale(1.15);
}

/* Update dock item hover labels */
.dock-item.group:hover span {
    opacity: 1;
    transform: translateY(0);
}

.dock-item:hover::before {
    content: '';
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: dock-indicator 0.3s ease-out;
}

@keyframes dock-indicator {
    0% {
        opacity: 0;
        transform: translateX(-50%) scale(0);
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

/* ===== Enhanced Window System ===== */
.window {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.window.minimized {
    transform: scale(0.05) translateY(600px);
    opacity: 0;
    pointer-events: none;
}

.window.maximized {
    width: calc(100vw - 1rem) !important;
    height: calc(100vh - 3rem) !important;
    top: 2rem !important;
    left: 0.5rem !important;
    border-radius: 12px;
}

.window-header {
    -webkit-app-region: drag;
    user-select: none;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.08),
            rgba(255, 255, 255, 0.04));
    backdrop-filter: blur(30px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.window-header>* {
    -webkit-app-region: no-drag;
}

.window-content {
    background: rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(30px) saturate(180%);
    /* Fix content display */
    overflow-y: auto;
    overflow-x: hidden;
}

/* Window control buttons */
.window-close:hover {
    background: #ff5f57;
    box-shadow: 0 0 10px rgba(255, 95, 87, 0.5);
}

.window-minimize:hover {
    background: #ffbd2e;
    box-shadow: 0 0 10px rgba(255, 189, 46, 0.5);
}

.window-maximize:hover {
    background: #28ca42;
    box-shadow: 0 0 10px rgba(40, 202, 66, 0.5);
}

/* Window animation entrance */
.window-enter {
    animation: windowEnterDark 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes windowEnterDark {
    0% {
        transform: scale(0.7) translateY(80px);
        opacity: 0;
        filter: blur(10px);
    }

    50% {
        transform: scale(1.02) translateY(-10px);
        opacity: 0.8;
        filter: blur(2px);
    }

    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
        filter: blur(0);
    }
}

/* ===== Menu Bar Dark Styling ===== */
.menu-bar {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(30px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ===== Menu Bar Status Icons ===== */
.menu-bar-icons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-icon {
    transition: all 0.2s ease;
    opacity: 0.8;
}

.status-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* WiFi signal strength animation */
.wifi-icon {
    position: relative;
}

.wifi-icon::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 4px;
    height: 4px;
    background: var(--terminal-accent);
    border-radius: 50%;
    opacity: 0;
    animation: signal-pulse 2s infinite;
}

@keyframes signal-pulse {

    0%,
    100% {
        opacity: 0;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.bluetooth-icon.connected {
    color: var(--terminal-accent-blue);
}

.bluetooth-icon.disconnected {
    color: #6b7280;
}

.battery-icon {
    position: relative;
}

.battery-level-low {
    color: var(--terminal-accent-red);
    animation: battery-warning 1s infinite alternate;
}

.battery-level-medium {
    color: var(--terminal-accent-yellow);
}

.battery-level-high {
    color: var(--terminal-accent);
}

@keyframes battery-warning {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

/* ===== Dark Theme Glass Effects ===== */
.glass-dark {
    background: rgba(31, 41, 55, 0.3);
    backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ===== Enhanced Scrollbar for Dark Theme ===== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(31, 41, 55, 0.2);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: rgba(156, 163, 175, 0.3);
    border-radius: 6px;
    border: 2px solid rgba(31, 41, 55, 0.1);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(156, 163, 175, 0.5);
}

/* Dark scrollbar for terminal */
.terminal-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(34, 197, 94, 0.3);
}

.terminal-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(34, 197, 94, 0.5);
}

/* ===== Responsive Design for Dark Theme ===== */
@media (max-width: 768px) {
    .window {
        width: 95vw !important;
        height: 85vh !important;
        left: 2.5vw !important;
        top: 2rem !important;
    }

    .dock-item {
        transform: scale(0.9);
    }

    .desktop-icon {
        transform: scale(0.85);
    }

    .desktop-icon>div {
        width: 3.5rem;
        height: 3.5rem;
    }

    .menu-bar-icons {
        gap: 0.25rem;
    }

    .status-icon {
        width: 0.875rem;
        height: 0.875rem;
    }

    .battery-level-text {
        display: none;
    }
}

@media (max-width: 480px) {
    .dock-item>div {
        width: 2.5rem;
        height: 2.5rem;
    }

    .desktop-icon>div {
        width: 3rem;
        height: 3rem;
    }

    .window {
        width: 98vw !important;
        height: 90vh !important;
        left: 1vw !important;
        top: 1rem !important;
    }
}

/* ===== Terminal Dark Theme Enhancement ===== */
#terminal-input {
    caret-color: #22c55e;
    font-size: 14px;
    line-height: 1.5;
}

#terminal-input::selection {
    background: rgba(34, 197, 94, 0.3);
}

/* ===== Dark Theme Animations ===== */
.fade-in-dark {
    animation: fadeInDark 0.6s ease-out forwards;
}

@keyframes fadeInDark {
    from {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(5px);
    }

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

.glow-effect {
    position: relative;
}

.glow-effect::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    background: linear-gradient(45deg,
            rgba(59, 130, 246, 0.5),
            rgba(147, 51, 234, 0.5),
            rgba(34, 197, 94, 0.5));
    border-radius: inherit;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glow-effect:hover::before {
    opacity: 1;
}

/* ===== Terminal Styling ===== */
#terminal-input {
    caret-color: #4ade80;
}

#terminal-input::selection {
    background: rgba(74, 222, 128, 0.3);
}

/* ===== Scrollbar Styling ===== */
::-webkit-scrollbar {
    width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}