/* style.css (High Contrast Base + Search Terminal + Iframe Preview + NEW HEADER + MOBILE MENU) */

:root {
    /* "Monochrome Impact" High Contrast Palette */
    --bg-color-page: #FFFFFF;         /* Pure White */
    --bg-color-content: #FFFFFF;      /* Pure White */
    --text-color-primary: #000000;    /* Pure Black */
    --text-color-on-accent: #000000;  /* Black text on lime green for max contrast */
    --border-color-strong: #000000;   /* Pure Black borders */

    --accent-electric: #39FF14;       /* Electric Lime Green (Old accent) */
    
    /* New Header Specific Palette */
    --new-header-logo-text: #000000;
    --new-header-logo-invisible-bg: #000000; /* For original design's sub-text, not used with new SVG logo */
    --new-header-logo-invisible-text: #FFFFFF; /* For original design's sub-text, not used with new SVG logo */
    --new-header-nav-subtitle: #555555;
    --new-header-nav-active-bg: #FBE9E7; /* Light peach/salmon for active item */
    --new-header-search-bg: #000000;
    --new-header-search-icon-color: #FFFFFF;

    /* Typography */
    --font-family-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-family-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    --font-weight-black: 900;

    /* UI Elements */
    --border-radius-sharp: 0px;
    --border-radius-subtle: 3px;
    --transition-speed-fast: 0.1s;

    /* DYNAMIC HEADER HEIGHTS */
    --header-top-bar-height: 70px; /* Current height for mobile top bar */
    
    /* Mobile: Total height of header when stacked (logo/search row + 4 nav items) */
    --header-nav-item-height-mobile: 75px;
    --header-height-mobile-total: calc(var(--header-top-bar-height) + (4 * var(--header-nav-item-height-mobile)));
    
    /* Tablet & Desktop: Single row header height */
    --header-height-desktop: 80px;
    --footer-height-approx: 100px; /* Approximate height of your footer */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border-radius: var(--border-radius-sharp);
    box-shadow: none !important;
}

body {
    font-family: var(--font-family-main);
    background-color: var(--bg-color-page);
    color: var(--text-color-primary);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* MODIFICATION: Class added by JS to prevent scrolling when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

a {
    color: var(--text-color-primary);
    text-decoration: underline;
    text-decoration-color: var(--text-color-primary);
    font-weight: var(--font-weight-medium);
    transition: background-color var(--transition-speed-fast) ease, color var(--transition-speed-fast) ease;
}
a:hover:not(.new-logo-area):not(.new-nav-item) {
    background-color: var(--accent-electric);
    color: var(--text-color-on-accent);
    text-decoration-color: var(--text-color-on-accent);
}

/* --- NEW HEADER STYLES --- */
.new-main-header {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--bg-color-page);
    border-bottom: 1px solid var(--border-color-strong);
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.new-logo-area {
    display: flex;
    align-items: center;    /* Vertically center content */
    justify-content: center; /* Horizontally center content */
    padding: 0 20px;         /* Horizontal padding. Vertical padding is 0 for mobile, handled by media query for larger screens. */
    text-decoration: none; /* Remove underline from <a> tag */
}
.new-logo-area .new-logo-image {
    display: block;
    height: 100%; 
    width: auto;
    object-fit: contain;
}
.new-logo-area:hover {
    background-color: rgb(192, 192, 192); 
}

/* Desktop Search Trigger */
.search-trigger-area {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--new-header-search-bg);
    color: var(--new-header-search-icon-color);
    width: var(--header-top-bar-height);
    height: var(--header-top-bar-height);
    cursor: pointer;
    flex-shrink: 0;
    border-left: 1px solid var(--border-color-strong);
    position: absolute;
    top: 0;
    right: 0;
}
.search-trigger-area .search-icon {
    width: 28px;
    height: 28px;
    stroke-width: 2.5;
}
.search-trigger-area:hover {
    background-color: #333;
}
.kbd-shortcut-header-hint { display: none !important; }

/* Desktop Navigation */
.new-main-nav {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-color-page);
    flex-grow: 1;
}
.new-nav-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color-strong);
    text-decoration: none;
    color: var(--text-color-primary);
    transition: background-color 0.15s ease;
    flex-grow: 1;
    min-height: var(--header-nav-item-height-mobile);
    border-right: none;
}
.new-nav-item:hover { background-color: #e5e5e5; }
.new-nav-item.active { background-color: #e5e5e5; }
.new-nav-item.active .nav-item-title { font-weight: var(--font-weight-bold); }
.nav-item-title { font-size: 1.5em; font-weight: var(--font-weight-bold); line-height: 1.2; display: inline; }
.nav-item-subtitle { font-size: 0.85em; color: var(--new-header-nav-subtitle); margin-top: 3px; display: block; }


/* --- START: MOBILE POP-OUT MENU (From Prototype) --- */

/* Action buttons in the mobile header */
.mobile-actions-area {
    display: none; /* Hidden by default, shown on mobile */
    align-items: center;
    gap: 10px;
    padding-right: 15px; /* Space from edge */
}
.action-btn {
    background: none; border: none; cursor: pointer;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
}
.action-btn .icon {
    stroke: #000; stroke-width: 2.5;
    width: 24px; height: 24px;
}
.hamburger-icon { width: 24px; height: 18px; position: relative; }
.hamburger-icon .line {
    position: absolute; left: 0; width: 100%; height: 3px;
    background: #000;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.line-1 { top: 0; }
.line-2 { top: 7.5px; }
.line-3 { top: 15px; /* Adjusted slightly for better centering */ }

/* Animation for hamburger -> X */
body.mobile-menu-open .line-1 { transform: translateY(7.5px) rotate(45deg); }
body.mobile-menu-open .line-2 { opacity: 0; }
body.mobile-menu-open .line-3 { transform: translateY(-7.5px) rotate(-45deg); }

/* The blurred background overlay */
.content-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4); backdrop-filter: blur(4px);
    opacity: 0; visibility: hidden; z-index: 1900; /* Below popout-nav, above content */
    transition: opacity 0.2s ease, visibility 0s 0.2s;
}
body.mobile-menu-open .content-overlay {
    opacity: 1; visibility: visible;
    transition: opacity 0.2s ease, visibility 0s;
}

/* The slide-out navigation panel */
.popout-nav {
    position: fixed; 
    top: var(--header-top-bar-height); 
    right: 0px;
    transform: translateX(120%);
    opacity: 0; z-index: 1950; width: 65%; 
    /* Improved closing transition with delay */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 0.3s ease 0.1s;
}
body.mobile-menu-open .popout-nav {
    transform: translateX(0);
    opacity: 1;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.nav-header {
    display: flex; align-items: center; padding: 10px 20px;
    background: #002fa7; color: #fff;
}
.nav-header img { height: 30px; width: auto; margin-right: 15px; }
.nav-header .title { font-size: 1.1em; font-weight: 800; text-transform: uppercase; }

.popout-nav ul { list-style: none; margin: 0; padding: 0; }
.popout-nav a {
    display: block; padding: 5px 20px; background: #fff;
    border: 1px solid #000; border-top: none;
    color: #000; text-decoration: none; font-weight: 800; text-transform: uppercase;
    font-size: 1.1em;
    transition: background-color 0.15s ease;
}
.popout-nav a:hover {
    background-color: #f0f0f0;
}
/* Style for the active page link in the pop-out menu */
.popout-nav a.active {
    background-color: var(--text-color-primary);
    color: var(--bg-color-page);
    font-weight: var(--font-weight-black);
}

/* --- END: MOBILE POP-OUT MENU --- */


/* --- Project Page Layout --- */
.projects-page-wrapper, .publications-page-wrapper, .contact-page-wrapper, .homepage-wrapper { 
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
}
.main-container {
    display: flex;
    flex-grow: 1; 
    height: auto;
    overflow: visible;
}
.sidebar {
    width: 280px; flex-shrink: 0; background-color: var(--bg-color-content);
    padding: 20px; border-right: 1px solid var(--border-color-strong);
    overflow-y: auto;
}
.sidebar h2 {
    font-size: 0.8em; color: var(--text-color-primary); text-transform: uppercase; 
    letter-spacing: 0.6px; margin-bottom: 15px; font-weight: var(--font-weight-bold);
    border-bottom: 1.5px solid var(--border-color-strong); padding-bottom: 8px;
}
.sidebar-nav ul { list-style: none; }
.sidebar-nav ul ul { padding-left: 15px; margin-top: 5px; }
.sidebar-nav a, .sidebar-nav summary {
    display: flex; align-items: center; padding: 7px 10px; color: var(--text-color-primary);
    font-size: 0.95em; margin-bottom: 2px; cursor: pointer;
    font-weight: var(--font-weight-medium); border: 1px solid transparent; text-decoration: none;
}
.sidebar-nav a:hover, .sidebar-nav summary:hover { background-color: #EFEFEF; text-decoration: none; color: var(--text-color-primary); }
.sidebar-nav a.active {
    background-color: var(--text-color-primary) !important; color: var(--bg-color-content) !important;
    font-weight: var(--font-weight-bold); border-color: var(--text-color-primary) !important;
}
.sidebar-nav a.active:hover { background-color: #333 !important; }
.sidebar-nav summary { list-style: none; font-weight: var(--font-weight-bold); }
.sidebar-nav summary::-webkit-details-marker { display: none; }
.sidebar-nav summary .arrow {
    display: inline-block; width: 14px; height: 14px; margin-right: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23000000' class='bi bi-chevron-right' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: center; background-size: contain;
    transition: transform 0.15s ease-in-out; order: -1;
}
.sidebar-nav details[open] > summary .arrow { transform: rotate(90deg); }
.sidebar-nav details > summary.active .arrow, .sidebar-nav a.active ~ summary .arrow {
     background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23FFFFFF' class='bi bi-chevron-right' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}
.badge {
    margin-left: auto; font-size: 0.7em; background-color: var(--bg-color-content);
    color: var(--text-color-primary); border: 1px solid var(--border-color-strong);
    padding: 2px 7px; border-radius: var(--border-radius-subtle);
    font-weight: var(--font-weight-bold); text-transform: uppercase;
}
.sidebar-nav a.active .badge {
    background-color: var(--accent-electric); color: var(--text-color-on-accent);
    border-color: var(--text-color-on-accent);
}
.content-pane { flex-grow: 1; padding: 25px 40px; overflow-y: auto; }
.breadcrumb { font-size: 0.85em; color: #555; margin-bottom: 15px; font-weight: var(--font-weight-medium); text-transform: uppercase; font-family: var(--font-family-mono); }
.content-pane h2 { font-size: 2em; margin-bottom: 20px; font-weight: var(--font-weight-extrabold); color: var(--text-color-primary); line-height: 1.2; }
.content-pane p { margin-bottom: 15px; font-size: 1em; }
.content-pane mark { background-color: var(--accent-electric); padding: 0.1em 0.3em; color: var(--text-color-on-accent); }
.content-pane a[target="_blank"]::after {
    content: ''; display: inline-block; width: 0.7em; height: 0.7em; margin-left: 0.3em; vertical-align: middle;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23000000' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5-.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5z'/%3E%3Cpath fill-rule='evenodd' d='M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0v-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: center; background-size: contain;
}
.content-pane figure { margin: 25px 0; }
.content-pane figure img { max-width: 100%; height: auto; border: 1px solid var(--border-color-strong); }
.content-pane figure figcaption { font-size: 0.85em; color: #444; text-align: left; margin-top: 8px; font-weight: var(--font-weight-medium); }
.project-iframe-container { width: 100%; height: 450px; margin-top: 20px; margin-bottom: 20px; border: 1px solid var(--border-color-strong); background-color: #1a1a1a; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.project-iframe-container iframe { width: 100%; height: 100%; border: none; }
.iframe-loading-message, .iframe-unavailable-message { color: #DDDDDD; font-family: var(--font-family-mono); font-size: 0.9em; padding: 20px; text-align: center; }
.iframe-unavailable-message { color: #AAAAAA; }
.technologies-used { margin-top: 20px; margin-bottom: 20px; font-size: 0.9em; line-height: 1.6; }
.technologies-used strong { display: block; margin-bottom: 10px; font-size: 1em; font-weight: var(--font-weight-bold); color: var(--text-color-primary); }
.tech-item { display: inline-block; background-color: var(--new-header-logo-bg); color: var(--new-header-logo-text); padding: 5px 10px; margin-right: 8px; margin-bottom: 8px; border: 1px solid var(--border-color-strong); font-size: 0.8em; font-weight: var(--font-weight-medium); text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }

.site-footer {
    text-align: center; padding: 30px 20px; border-top: 1px solid var(--border-color-strong);
    font-size: 0.85em; color: #555555; background-color: var(--bg-color-content);
    flex-shrink: 0; margin-top: auto;
}
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: #E0E0E0; }
::-webkit-scrollbar-thumb { background: var(--text-color-primary); border: 2px solid #E0E0E0; }
::-webkit-scrollbar-thumb:hover { background: #333; }

/* --- RESPONSIVE STYLES for NEW HEADER and PAGE LAYOUT --- */

/* Mobile First (max-width: 767px) */
@media (max-width: 767px) {
    .new-main-header {
        position: fixed; /* Fix header to the top */
        flex-direction: row; /* Change to a row for single-bar layout */
        justify-content: space-between; /* Space between logo and actions */
        align-items: center;
        height: var(--header-top-bar-height); /* Use the defined height */
        padding: 0;
        z-index: 1925;
    }
    body {
        padding-top: var(--header-top-bar-height); /* Add padding to body to avoid content being hidden by fixed header */
    }
    .new-logo-area {
        height: 100%;
        border-right: 1px solid var(--border-color-strong);
        padding: 10px 15px; /* Adjust padding for mobile */
    }
    
    /* Hide the original stacked nav and desktop search */
    .new-main-nav { display: none; }
    .search-trigger-area { display: none; }
    
    /* Show the new mobile action buttons */
    .mobile-actions-area { display: flex; }

    .projects-page-wrapper, .publications-page-wrapper, .contact-page-wrapper, .homepage-wrapper {
        padding-top: 0; /* Remove wrapper padding since body has it now */
    }
    .main-container { flex-direction: column; height: auto; overflow: visible; }
    .sidebar { width: 100%; height: auto; max-height: 40vh; border-right: none; border-bottom: 1px solid var(--border-color-strong); overflow-y: auto; }
    .content-pane { height: auto; padding: 20px; overflow: visible; }
    .content-pane h2 { font-size: 1.7em; }
    .project-iframe-container { height: 300px; }
}

/* Tablet (min-width: 768px and max-width: 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    /* Hide mobile-specific elements */
    .mobile-actions-area { display: none; }

    .new-main-header {
        position: fixed; display: flex; flex-direction: row; align-items: stretch;
        justify-content: space-between; height: var(--header-height-desktop);
        border-bottom: 1px solid var(--border-color-strong);
    }
    .new-logo-area {
        order: 1; flex-grow: 0; flex-shrink: 0; padding: 10px 25px;
        border-bottom: none; border-right: 1px solid var(--border-color-strong);
        height: 100%;
    }
    .new-main-nav {
        order: 2; display: flex; flex-direction: row; flex-grow: 1;
        height: 100%; border: none; background-color: transparent;
    }
    .new-nav-item {
        flex-direction: column; align-items: center; justify-content: center; text-align: center;
        padding: 10px 15px; border: none; border-right: 1px solid var(--border-color-strong);
        min-height: auto; height: 100%;
    }
    .new-nav-item:last-child { border-right: none; }
    .nav-item-title { font-size: 0.9em; font-weight: var(--font-weight-bold); margin-bottom: 0; }
    .nav-item-subtitle { font-size: 0.75em; margin-top: 2px; display: block; }
    .new-nav-item.active { box-shadow: inset 0 -3px 0 0 var(--text-color-primary); background-color: transparent; }
    .new-nav-item:hover:not(.active) { background-color: #f5f5f5; }
    .search-trigger-area {
        order: 3; position: relative; width: var(--header-height-desktop);
        height: 100%; border-left: 1px solid var(--border-color-strong);
        display: flex; /* Ensure it is displayed */
    }

    .projects-page-wrapper, .publications-page-wrapper, .contact-page-wrapper, .homepage-wrapper { 
        padding-top: var(--header-height-desktop);
    }
    .main-container { overflow: hidden; }
    .sidebar, .content-pane { height: 100%; overflow-y: auto; }
    .sidebar { width: 250px; }
}

/* Desktop (min-width: 1024px) */
@media (min-width: 1024px) {
    /* Hide mobile-specific elements */
    .mobile-actions-area { display: none; }

    .new-main-header {
        position: fixed; display: flex; flex-direction: row; align-items: stretch;
        justify-content: space-between; height: var(--header-height-desktop);
        border-bottom: 1px solid var(--border-color-strong);
    }
    .new-logo-area {
        order: 1; flex-grow: 0; flex-shrink: 0; padding: 10px 25px;
        border-bottom: none; border-right: 1px solid var(--border-color-strong); height: 100%;
    }
    .new-main-nav {
        order: 2; display: flex; flex-direction: row; flex-grow: 1;
        height: 100%; border: none; background-color: transparent;
    }
    .new-nav-item {
        flex-direction: column; align-items: center; justify-content: center; text-align: center;
        padding: 10px 15px; border: none; border-right: 1px solid var(--border-color-strong);
        min-height: auto; height: 100%;
    }
    .new-nav-item:last-child { border-right: none; }
    .nav-item-title { font-size: 0.9em; font-weight: var(--font-weight-bold); margin-bottom: 0; }
    .nav-item-subtitle { font-size: 0.75em; margin-top: 2px; display: block; }
    .new-nav-item.active { box-shadow: inset 0 -3px 0 0 var(--text-color-primary); background-color: transparent; }
    .new-nav-item:hover:not(.active) { background-color: #f5f5f5; }
    .search-trigger-area {
        order: 3; position: relative; width: var(--header-height-desktop);
        height: 100%; border-left: 1px solid var(--border-color-strong);
        display: flex; /* Ensure it is displayed */
    }

    .projects-page-wrapper, .publications-page-wrapper, .contact-page-wrapper, .homepage-wrapper { 
        padding-top: var(--header-height-desktop);
    }
    .main-container { overflow: hidden; }
    .sidebar, .content-pane { height: 100%; overflow-y: auto; }
    .sidebar { width: 280px; }
}

@media (max-width: 480px) { /* Small mobile */
    .new-logo-area .new-logo-image { /* No specific override needed here. */ }
    .nav-item-title { font-size: 1.3em; }
    .nav-item-subtitle { font-size: 0.8em; }
    .action-btn .icon { width: 26px; height: 26px; }
    .search-terminal-overlay { padding-top: 5vh; padding-left: 5px; padding-right: 5px; }
}


/* Search Terminal Overlay Styles (Unchanged) */
.search-terminal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(30, 30, 30, 0.6);
    display: flex; align-items: flex-start; justify-content: center;
    padding-top: 10vh; 
    z-index: 2000;
    opacity: 0; visibility: hidden;
    transition: opacity 0.2s ease-in-out, visibility 0s linear 0.2s;
    padding-left: 10px; padding-right: 10px; 
}
.search-terminal-overlay:not(.hidden) {
    opacity: 1; visibility: visible;
    transition: opacity 0.2s ease-in-out, visibility 0s linear 0s;
}
.search-terminal-content {
    background-color: #121212ee; color: var(--bg-color-page); width: 100%; 
    max-width: 600px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden; display: flex; flex-direction: column;
}
.search-terminal-input-wrapper {
    display: flex; align-items: center; padding: 12px 16px;
    border-bottom: 3px solid #002fa7; 
}
.search-terminal-icon { stroke: #909296; margin-right: 12px; flex-shrink: 0; }
#terminal-search-input {
    flex-grow: 1; background: transparent; border: none; outline: none;
    color: #FFFFFF; font-size: 1.1em; font-family: var(--font-family-main);
    padding: 4px 0;
}
#terminal-search-input::placeholder { color: #707276; }
.search-terminal-results {
    padding: 8px 8px 16px 8px; max-height: 50vh; overflow-y: auto;
}
.search-terminal-results::-webkit-scrollbar { width: 6px; }
.search-terminal-results::-webkit-scrollbar-track { background: transparent; }
.search-terminal-results::-webkit-scrollbar-thumb { background: #4A4D50; border-radius: 3px; }
.search-terminal-results::-webkit-scrollbar-thumb:hover { background: #5A5D60; }
.results-category-title {
    font-size: 0.75em; color: #909296; text-transform: uppercase;
    padding: 12px 12px 6px 12px; font-weight: var(--font-weight-medium);
}
.search-terminal-results ul { list-style: none; padding: 0; margin: 0; }
.search-terminal-results li {
    display: flex; align-items: flex-start; padding: 10px 12px;
    border-radius: 6px; cursor: pointer; transition: background-color 0.1s ease;
}
.search-terminal-results li:hover, .search-terminal-results li.selected { background-color: #383A3D; }
.search-terminal-results li .item-icon-project {
    width: 28px; height: 28px; margin-right: 12px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; padding-top: 2px;
}
.search-terminal-results li .item-icon-project svg { width: 18px; height: 18px; color: #C0C2C5; }
.search-terminal-results li .item-text {
    font-size: 0.95em; color: #E0E0E0; 
    display: flex; flex-direction: column;
}
.search-terminal-results li .item-text-project-name { font-weight: var(--font-weight-medium); }
.search-terminal-results li .item-text-project-name strong { color: var(--new-header-logo-bg); }
.search-terminal-results li .item-text-project-breadcrumb {
    font-size: 0.8em; color: #808285; margin-top: 2px;
    font-family: var(--font-family-mono);
}
.search-terminal-results li .item-text-project-breadcrumb strong { color: var(--new-header-logo-bg); }
.search-terminal-results li .item-text-project-snippet {
    font-size: 0.8em; color: #a0a2a5; display: block;
    margin-top: 4px; font-style: italic; line-height: 1.3;
}
.search-terminal-results li .item-text-project-snippet strong { color: #00aaff; font-weight: bold; font-style: normal; }
.hidden {
    opacity: 0 !important; visibility: hidden !important;
    transition: opacity 0.2s ease-in-out, visibility 0s linear 0.2s !important;
}

/* Project Launch Container (Unchanged) */
.project-launch-container { width: 100%; height: 450px; margin-top: 20px; margin-bottom: 20px; border: 1px solid var(--border-color-strong); background-color: #1a1a1a; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.launch-bg-image { width: 100%; height: 100%; object-fit: cover; filter: blur(4px) brightness(0.7); transform: scale(1.1); }
.launch-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; color: white; background: rgba(0,0,0,0.4); }
.launch-icon { margin-bottom: 20px; }
.launch-icon svg { opacity: 0.8; }
.launch-overlay h3 { font-size: 1.6em; font-weight: var(--font-weight-bold); margin: 0 0 10px 0; }
.launch-overlay p { max-width: 400px; font-size: 1em; line-height: 1.5; opacity: 0.9; margin-bottom: 30px; }
.launch-button { display: inline-block; padding: 12px 28px; background-color: var(--accent-electric); color: var(--text-color-on-accent); border: 2px solid var(--accent-electric); font-size: 1em; font-weight: var(--font-weight-bold); text-decoration: none; text-transform: uppercase; transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease; }
.launch-button:hover { background-color: transparent; color: var(--accent-electric); transform: scale(1.05); }