/* Projects Section Styles */

.projects {
    width: 100%;
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 100vh;
    position: relative;
    visibility: visible;
    opacity: 1;
    display: block;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(100, 255, 218, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.projects h2 {
    margin-bottom: 4rem;
    text-align: center;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.projects h2::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-color) 50%, transparent 100%);
    border-radius: 2px;
}

.projects-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 1400px;
    width: 100%;
    padding: 0 2rem;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    transition: min-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card {
    background: var(--secondary-color);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    border: 1px solid rgba(100, 255, 218, 0.1);
    display: flex;
    flex-direction: row;
    align-items: stretch;
    opacity: 0.3;
    transform: translateY(20px);
    cursor: pointer;
    min-height: 320px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(2, 12, 27, 0.4);
    display: flex !important;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 32px 64px rgba(2, 12, 27, 0.8);
    border-color: var(--accent-color);
    background: linear-gradient(135deg, var(--secondary-color) 0%, rgba(13, 28, 53, 0.98) 100%);
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.project-image-container {
    flex: 0 0 360px;
    position: relative;
    overflow: hidden;
    border-radius: 20px 0 0 20px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #4fd1c7 100%);
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.9) contrast(1.1);
}

.project-card:hover img {
    transform: scale(1.1);
    filter: brightness(1) contrast(1.2);
}

.project-content {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(
        135deg,
        var(--secondary-color) 0%,
        rgba(13, 28, 53, 0.95) 100%
    );
}

.project-header {
    margin-bottom: 1rem;
}

.project-content h3 {
    font-size: 1.6rem;
    color: var(--accent-color);
    margin-bottom: 0.8rem;
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.project-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.project-tech span {
    background: rgba(100, 255, 218, 0.12);
    color: var(--accent-color);
    padding: 0.4rem 0.9rem;
    border-radius: 18px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 1px solid rgba(100, 255, 218, 0.2);
}

.project-tech span:hover {
    background: rgba(100, 255, 218, 0.2);
    transform: translateY(-1px);
}

.project-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(100, 255, 218, 0.1);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-links a {
    color: var(--text-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(100, 255, 218, 0.2);
}

.project-links a:hover {
    color: var(--accent-color);
    background: rgba(100, 255, 218, 0.1);
    transform: translateY(-1px);
}

.project-links a i {
    font-size: 1.1rem;
}

.view-details-btn {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.view-details-btn:hover {
    background: #4fd1c7;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(100, 255, 218, 0.4);
}

/* Animation keyframes */
@keyframes fadeInUp {
    0% {
        opacity: 0.3;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes revealProject {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Add stagger delay for each card */
.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }

/* Project Controls (Filters and Search) */
.projects-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    max-width: 1400px;
    width: 100%;
    padding: 0 2rem;
    margin-left: auto;
    margin-right: auto;
}

/* Search Container */
.search-container {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.search-box {
    position: relative;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    overflow: hidden;
}

.search-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(100, 255, 218, 0.05), transparent);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-box:focus-within::before {
    opacity: 1;
}

.search-box i.fa-search {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    z-index: 2;
    pointer-events: none;
}

#project-search {
    width: 100%;
    padding: 1rem 1rem 1rem 2.5rem;
    border: 2px solid rgba(100, 255, 218, 0.2);
    border-radius: 50px;
    background: var(--secondary-color);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

#project-search:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.1);
    background: rgba(30, 41, 59, 0.8);
}

#project-search::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.clear-search {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%) scale(0.8);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.clear-search.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) scale(1);
}

.clear-search:hover {
    color: var(--accent-color);
    background: rgba(100, 255, 218, 0.1);
    transform: translateY(-50%) scale(1.1);
}

/* Filter Container */
.filter-container {
    display: flex;
    justify-content: center;
    width: 100%;
    position: relative;
}

.filter-container::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0.3;
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    background: var(--secondary-color);
    padding: 0.5rem;
    border-radius: 60px;
    border: 1px solid rgba(100, 255, 218, 0.1);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(2, 12, 27, 0.3);
    overflow-x: auto;
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    scrollbar-width: none;  /* Firefox */
}

.filter-tabs::-webkit-scrollbar {
    display: none;  /* WebKit-based browsers (Safari, Chrome, Edge) */
    width: 0;
    height: 0;
}

.filter-tabs::-webkit-scrollbar-track {
    background: transparent;
}

.filter-tabs::-webkit-scrollbar-thumb {
    background: transparent;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 50px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    outline: none;
}

.filter-btn:hover {
    color: var(--text-primary);
    background: rgba(100, 255, 218, 0.05);
    transform: translateY(-1px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--accent-color), #4fd1c7);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(100, 255, 218, 0.3);
    font-weight: 600;
}

.filter-btn.active:hover {
    background: linear-gradient(135deg, #4fd1c7, var(--accent-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(100, 255, 218, 0.4);
}

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

/* Java filter button specific styling */
.filter-btn[data-filter="java"] i {
    font-size: 1.2rem;
    opacity: 1;
    filter: brightness(1.2) contrast(1.1);
}



/* Projects Results Info */
.projects-results {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    max-width: 1400px;
    width: 100%;
    padding: 0 2rem;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

#results-count {
    font-weight: 600;
    color: var(--accent-color);
}

#active-filter {
    font-style: italic;
}

/* Project Cards Animation for Filtering */
.project-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card.filtered-out {
    display: none !important;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8) translateY(20px);
    pointer-events: none;
    margin: 0;
    padding: 0;
    height: 0;
    min-height: 0;
    overflow: hidden;
    max-width: 0;
    max-height: 0;
    border: none;
}

.project-card.filtered-in {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: all;
    animation: projectFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes projectFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* No Results State */
.no-results {
    display: none;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.no-results.visible {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}

.no-results i {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.no-results p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .projects {
        padding: 4rem 0;
    }

    .projects-container {
        gap: 2rem;
        padding: 1rem;
    }    .project-card {
        flex-direction: column;
        min-height: 280px;
    }

    .project-image-container {
        flex: 0 0 200px;
        border-radius: 20px 20px 0 0;
    }

    .project-content {
        padding: 1.5rem;
    }

    .project-content h3 {
        font-size: 1.4rem;
    }

    .project-content p {
        font-size: 0.95rem;
    }

    .project-tech span {
        padding: 0.3rem 0.7rem;
        font-size: 0.8rem;
    }

    .project-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .view-details-btn {
        margin-left: 0;
        justify-content: center;
    }    .projects-controls {
        gap: 1.2rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .search-container {
        order: 2;
        width: 100%;
        justify-content: center;
    }
    
    .filter-container {
        order: 1;
        width: 100%;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    #project-search {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .filter-tabs {
        justify-content: flex-start;
        padding: 0.4rem;
        gap: 0.3rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .filter-btn span {
        display: none;
    }
    
    .filter-btn i {
        font-size: 1rem;
    }
    
    .projects-results {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .projects-container {
        padding: 0.5rem;
        gap: 1.5rem;
    }

    .project-content {
        padding: 1.25rem;
    }

    .project-image-container {
        flex: 0 0 180px;
    }

    .project-actions {
        padding-top: 0.8rem;
    }
    
    .projects-controls {
        padding: 0 0.5rem;
    }
    
    .filter-tabs {
        gap: 0.2rem;
        padding: 0.3rem;
    }
    
    .filter-btn {
        padding: 0.5rem 0.8rem;
    }
    
    .projects-results {
        font-size: 0.8rem;
        padding: 0 0.5rem;
    }
}

/* Light Theme Adjustments */
body.light-theme .projects {
    background: linear-gradient(135deg, var(--light-primary) 0%, var(--light-secondary) 100%);
}

body.light-theme .projects::before {
    background: radial-gradient(circle at 20% 50%, rgba(201, 100, 66, 0.03) 0%, transparent 50%);
}

body.light-theme .project-card {
    background: var(--light-primary);
    border: 1px solid var(--light-border);
    box-shadow: 0 8px 20px var(--light-shadow);
}

body.light-theme .project-card:hover {
    border-color: var(--light-accent);
    box-shadow: 0 25px 50px rgba(201, 100, 66, 0.15);
    background: linear-gradient(135deg, var(--light-primary) 0%, var(--light-secondary) 100%);
}

body.light-theme .project-content {
    background: linear-gradient(135deg, var(--light-primary) 0%, var(--light-secondary) 100%);
}

body.light-theme .project-content h3 {
    color: var(--light-accent);
}

body.light-theme .project-content p {
    color: var(--light-text-secondary);
}

body.light-theme .project-tech span {
    background: rgba(201, 100, 66, 0.08);
    color: var(--light-accent);
    border-color: rgba(201, 100, 66, 0.2);
}

body.light-theme .project-tech span:hover {
    background: rgba(201, 100, 66, 0.15);
}

body.light-theme .project-actions {
    border-top-color: var(--light-border);
}

body.light-theme .project-links a {
    color: var(--light-text-primary);
    border-color: rgba(201, 100, 66, 0.2);
}

body.light-theme .project-links a:hover {
    color: var(--light-accent);
    background: rgba(201, 100, 66, 0.1);
}

body.light-theme .view-details-btn {
    background: var(--light-accent);
    color: white;
}

body.light-theme .view-details-btn:hover {
    background: var(--light-accent-hover);
    box-shadow: 0 8px 25px rgba(201, 100, 66, 0.3);
}

/* Professional styling enhancements */
.filter-container {
    position: relative;
}

.filter-container::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0.3;
}

.search-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

/* Enhanced search box styling */
.search-box {
    position: relative;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    overflow: hidden;
}

.search-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(100, 255, 218, 0.05), transparent);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-box:focus-within::before {
    opacity: 1;
}

/* Light theme adjustments for new styling */
body.light-theme .filter-container::after {
    background: linear-gradient(90deg, transparent, var(--light-accent), transparent);
}

body.light-theme .search-box::before {
    background: linear-gradient(135deg, transparent, rgba(201, 100, 66, 0.05), transparent);
}

/* Ensure proper spacing and alignment */
.projects-controls > .filter-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.projects-controls > .search-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Enhanced Filter Animation */
@keyframes filterSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-btn.active {
    animation: filterSlideIn 0.3s ease-out;
}

/* Search Highlight Animation */
@keyframes searchHighlight {
    0%, 100% { background-color: transparent; }
    50% { background-color: rgba(100, 255, 218, 0.1); }
}

.search-highlight {
    animation: searchHighlight 1s ease-in-out;
}

/* Ensure projects section is always visible */
#projects {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Additional Professional Enhancements */

/* Smooth container height transitions */
.projects-container {
    transition: min-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading state for search/filter */
.projects-container.filtering {
    opacity: 0.7;
    pointer-events: none;
}

.projects-container.filtering::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(100, 255, 218, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Enhanced focus states for accessibility */
.filter-btn:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

#project-search:focus-visible {
    outline: none;
}

/* Project card fade-in animation improvements */
.project-card.filtered-in {
    animation: projectFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Filter button active state animation */
.filter-btn.active::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, var(--accent-color), #4fd1c7);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0.6;
    animation: borderPulse 2s ease-in-out infinite;
}

@keyframes borderPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Search suggestions (future enhancement placeholder) */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--secondary-color);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 12px;
    margin-top: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(2, 12, 27, 0.3);
}

.search-suggestions.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-suggestion-item:hover {
    background: rgba(100, 255, 218, 0.05);
}

.search-suggestion-item i {
    color: var(--accent-color);
    opacity: 0.7;
}

/* Search Suggestions Styling */
.search-suggestion-item small {
    margin-left: auto;
    color: var(--text-secondary);
    font-size: 0.75rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-suggestion-item.selected {
    background: rgba(100, 255, 218, 0.1);
    color: var(--accent-color);
}

.search-box {
    position: relative;
}

body.light-theme .search-suggestion-item small {
    color: var(--light-text-secondary);
}

body.light-theme .search-suggestion-item.selected {
    background: rgba(201, 100, 66, 0.1);
    color: var(--light-accent);
}

/* Filter button tooltips */
.filter-btn {
    position: relative;
}

.filter-btn::after {
    content: attr(aria-label);
    position: absolute;
    bottom: -2.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--text-primary);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
    pointer-events: none;
}

.filter-btn:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

body.light-theme .filter-btn::after {
    background: var(--light-primary);
    color: var(--light-text-primary);
    border-color: rgba(201, 100, 66, 0.2);
}

/* Keyboard shortcuts indicator */
.keyboard-shortcuts-help {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--secondary-color);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 12px;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    max-width: 300px;
    font-size: 0.85rem;
}

.keyboard-shortcuts-help.visible {
    opacity: 1;
    visibility: visible;
}

.keyboard-shortcuts-help h4 {
    margin-bottom: 0.5rem;
    color: var(--accent-color);
    font-size: 0.9rem;
}

.keyboard-shortcuts-help ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.keyboard-shortcuts-help li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
    padding: 0.25rem 0;
}

.keyboard-shortcuts-help kbd {
    background: rgba(100, 255, 218, 0.1);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 4px;
    padding: 0.15rem 0.4rem;
    font-size: 0.75rem;
    font-family: monospace;
}

body.light-theme .keyboard-shortcuts-help {
    background: var(--light-secondary);
    border-color: rgba(201, 100, 66, 0.2);
}

body.light-theme .keyboard-shortcuts-help h4 {
    color: var(--light-accent);
}

body.light-theme .keyboard-shortcuts-help kbd {
    background: rgba(201, 100, 66, 0.1);
    border-color: rgba(201, 100, 66, 0.2);
}

/* Performance optimization hints */
.project-card,
.filter-btn,
#project-search,
.projects-container {
    will-change: transform, opacity;
}

/* Remove will-change after animations complete */
.project-card.filtered-in {
    will-change: auto;
}

/* Print styles for project filters */
@media print {
    .projects-controls,
    .projects-results {
        display: none;
    }
    
    .project-card.filtered-out {
        display: none;
    }
}
