/* Projects Page Container - Glass Morphism Foundation */
.projects-page {
    max-width: 75rem;
    margin: auto;
    padding: 1.25rem;
    background: linear-gradient(
        135deg,
        rgba(50, 48, 49, 0.35) 0%,
        rgba(30, 30, 30, 0.25) 50%,
        rgba(45, 45, 45, 0.35) 100%
    );
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 32px 0 rgba(31, 38, 135, 0.2),
        0 2px 16px 0 rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: glassEntry 0.8s ease-out;
    will-change: backdrop-filter;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* Projects Header */
.projects-header {
    text-align: center;
    padding: 2.5rem 0;
}
.projects-header h1 {
    font-size: 3em;
    margin-bottom: 0.625rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 600;
}
.projects-header p {
    font-size: 1.2em;
    color: rgba(235, 235, 235, 0.8);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    margin: 0 auto;
}

/* Search Input for Projects - Glass Morphism */
#projectSearch {
    margin-top: 1.25rem;
    padding: 0.875rem 1.25rem;
    width: 60%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    font-size: 1em;
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

#projectSearch:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(154, 213, 202, 0.5);
    box-shadow: 
        0 0 0 0.2rem rgba(154, 213, 202, 0.25),
        0 4px 12px rgba(154, 213, 202, 0.3);
}

#projectSearch::placeholder {
    color: rgba(235, 235, 235, 0.6);
    text-shadow: none;
}

/* Projects List */
.projects-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
    padding: 0 1rem;
}

/* Project Card Container - Glass Morphism */
.project-card {
    background: linear-gradient(
        135deg,
        rgba(50, 48, 49, 0.35) 0%,
        rgba(30, 30, 30, 0.25) 50%,
        rgba(45, 45, 45, 0.35) 100%
    );
    backdrop-filter: blur(15px) saturate(1.1);
    -webkit-backdrop-filter: blur(15px) saturate(1.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1.25rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 32px 0 rgba(31, 38, 135, 0.15),
        0 2px 16px 0 rgba(0, 0, 0, 0.2);
    will-change: transform, box-shadow;
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-5px);
    background: linear-gradient(
        135deg,
        rgba(50, 48, 49, 0.45) 0%,
        rgba(30, 30, 30, 0.35) 50%,
        rgba(45, 45, 45, 0.45) 100%
    );
    box-shadow: 
        0 12px 40px 0 rgba(123, 68, 193, 0.25),
        0 4px 20px 0 rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(123, 68, 193, 0.3);
}

/* Project Card Content */
.project-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.project-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.8));
    transition: all 0.3s ease;
}

.project-card:hover img {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px rgba(123, 68, 193, 0.8));
}

.project-card h2 {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.project-description {
    color: rgba(235, 235, 235, 0.8);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.project-description p {
    margin: 0;
}
/* Project Card Actions */
.project-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

/* Primary CTA Button - Brand Purple Glass Morphism */
.cta-button {
    flex: 1;
    padding: 14px 37px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-shadow: 0px 1px 0px #323031;
    position: relative;
    overflow: hidden;
    text-transform: lowercase;
    letter-spacing: 0.05em;
}

.cta-button.primary {
    background: #7B44C1;
    border: 1px solid #EBEBEB;
    color: #EBEBEB;
    box-shadow: 0px 1px 10px 5px rgba(154, 213, 202, 0.3);
}

.cta-button.primary:hover {
    background: linear-gradient(to bottom, #1792F7 5%, #6A3DB3 100%);
    box-shadow: 0px 3px 15px 7px rgba(30, 150, 252, 0.4);
    transform: scale(1.05);
    color: #EBEBEB;
    border-color: #EBEBEB;
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(235, 235, 235, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* Glass Entry Animation */
@keyframes glassEntry {
    0% {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Main CTA styling - Hero Purple Button */
.text-center .cta-button {
    display: inline-block;
    padding: 14px 37px;
    font-size: 19px;
    font-weight: 700;
    margin: 1rem 0 2rem 0;
    background: #7B44C1;
    border: 1px solid #EBEBEB;
    color: #EBEBEB;
    text-decoration: none;
    border-radius: 12px;
    box-shadow: 0px 1px 10px 5px #9AD5CA;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    text-shadow: 0px 1px 0px rgb(50, 48, 49);
    text-transform: lowercase;
    letter-spacing: 0.05em;
}

.text-center .cta-button:hover {
    background: linear-gradient(to bottom, #1792F7 5%, #6A3DB3 100%);
    box-shadow: 0px 3px 15px 7px #1E96FC;
    transform: scale(1.05);
    color: #EBEBEB;
    border-color: #EBEBEB;
}

/* Responsive Adjustments */
@media (max-width: 56.25rem) {
    .projects-list {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .projects-page {
        padding: 1rem;
        border-radius: 1rem;
        backdrop-filter: blur(15px) saturate(1.1);
        -webkit-backdrop-filter: blur(15px) saturate(1.1);
    }
    
    .project-card {
        backdrop-filter: blur(10px) saturate(1.1);
        -webkit-backdrop-filter: blur(10px) saturate(1.1);
    }
}

@media (max-width: 37.5rem) {
    #projectSearch {
        width: 85%;
        max-width: none;
    }
    
    .projects-list {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 0;
    }
    
    .project-card {
        padding: 1.25rem;
    }
    
    .project-actions {
        flex-direction: column;
    }
    
    .cta-button {
        flex: none;
    }
    
    .projects-header h1 {
        font-size: 2.2rem;
    }
    
    .projects-header p {
        font-size: 1.1rem;
    }
}

/* No Results Message */
.no-results-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    display: none;
}

.no-results-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    max-width: 400px;
    margin: 0 auto;
}

.no-results-content h3 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.no-results-content p {
    color: rgba(235, 235, 235, 0.7);
    font-size: 1rem;
    line-height: 1.4;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.no-results-content a {
    color: rgba(154, 213, 202, 0.9);
    text-decoration: none;
    border-bottom: 1px solid rgba(154, 213, 202, 0.3);
    transition: all 0.3s ease;
}

.no-results-content a:hover {
    color: rgba(154, 213, 202, 1);
    border-bottom-color: rgba(154, 213, 202, 0.6);
}

/* Enhanced Card Animations */
.project-card.animate-in {
    animation: glassEntry 0.8s ease-out forwards;
}

.project-card:focus {
    outline: none;
    border-color: rgba(154, 213, 202, 0.5) !important;
    box-shadow: 
        0 0 0 3px rgba(154, 213, 202, 0.2),
        0 12px 40px 0 rgba(31, 38, 135, 0.25),
        0 4px 20px 0 rgba(0, 0, 0, 0.3);
}

/* CTA Button Focus States */
.cta-button:focus {
    outline: none;
    box-shadow: 
        0 0 0 3px rgba(154, 213, 202, 0.3),
        0 6px 20px rgba(154, 213, 202, 0.4) !important;
}

/* Fallback for browsers without backdrop-filter support */
@supports not (backdrop-filter: blur(15px)) {
    .projects-page {
        background: rgba(50, 48, 49, 0.9);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .project-card {
        background: rgba(50, 48, 49, 0.8);
        border: 1px solid rgba(255, 255, 255, 0.15);
    }
    
    #projectSearch {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
    
    .no-results-content {
        background: rgba(50, 48, 49, 0.8);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
}
