
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    align-items: start;
    /* This stops the other cards from stretching */
}

.project-card {
    background: #fff;
  
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-header {
    padding: 2 rem;
    cursor: pointer;
}

.project-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
 
    /* mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%); */
}

.project-title {
    font-size:1.5rem;
    margin: 1rem 1.5rem 0.5rem;
    color: #2d3748;
}

.project-category {
    margin: 0 1.5rem 1.0rem ;
    display: inline-block;
    background: #e2e8f0;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

.project-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 1.5rem;
}

.project-card.active .project-details {
    max-height: 1000px;
    padding: 1.5rem;
}

.tech-stack span {
    display: inline-block;
    background: #1c99ff;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin: 0.25rem;
    font-size: 0.875rem;
}

/* animations */
.project-card.active {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}



.project-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.project-card.active {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    z-index: 10;
}



/* peoject-overlay */
.project-overlay {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 30px;
}

/* Button styling */
.project-overlay .btn {
    align-self: flex-end;
    margin-top: 15px;
    transition: all 0.3s ease;
    background-color: rgba(0, 124, 186, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.project-overlay .btn:hover {
    background-color: #006699;
    transform: translateY(-2px);
}

.bg-gray {
    background-color: #efefef !important;
}


/* Browser-style Tabs */
.project-browser-tabs {
    position: relative;
    /* z-index: 1; */
}

.project-tab {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-bottom: none;
    border-radius: 0;
    padding: 1rem 2rem;
    margin-right: -1px;
    position: relative;
    transition: all 0.3s;
}

.project-tab.active {
    background: white;
    color: #007cba;
    border-color: #007cba;
    z-index: 2;
    animation: fadeIn 0.5s ease;
    font-weight: 600;
}

.project-tab:not(.active):hover {
    background: #e9ecef;
}

/* Browser Window */
.project-browser-window {
    background: white;
    border-radius: 0 4px 4px 4px;
    min-height: 500px;
    position: relative;
    margin-top: -1px;
}

.project-content {
    display: none;
    animation: fadeIn 0.5s ease;

}

.project-content.active {
    display: block;
}
.project-content p {
    line-height: 1.6;
    color: #191c22;
}

/* Logo Grid */
.logo-card {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    transition: all 0.3s;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-card:hover {
    border-color: #007cba;
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 124, 186, 0.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}



.image-container {
    position: relative;
    height: 100%;
    /* Minimum container height */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.image-container:hover {
    transform: translateY(-5px);
}

.image-container img {
    width: auto;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.image-fallback {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-style: italic;
}

.image-container:not(:has(img[src])) .image-fallback,
.image-container img[src=""]+.image-fallback {
    display: block;
}