<style>
/* Projects Showcase Styles */
#projects-showcase {
    display: grid;
    gap: 2rem;
    padding: 1rem 0;
}

/* Project Card */
.project-card {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    position: relative;
    cursor: pointer;
}

.project-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-4px);
}

/* Project Image Container */
.project-card .aspect-video {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.project-card .aspect-video img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .aspect-video img {
    transform: scale(1.1);
}

/* Project Overlay */
.project-card .aspect-video::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .aspect-video::after {
    opacity: 1;
}

/* View Icon */
.project-view-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    padding: 1rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.project-card:hover .project-view-icon {
    transform: translate(-50%, -50%) scale(1);
}

/* Year Badge */
.project-year-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1f2937;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

/* Status Badge */
.project-status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    z-index: 10;
}

.project-status-badge.completed {
    background: rgba(16, 185, 129, 0.9);
    color: white;
}

.project-status-badge.in-progress {
    background: rgba(251, 191, 36, 0.9);
    color: white;
}

/* Project Content */
.project-card .p-6 {
    padding: 1.5rem;
    position: relative;
}

.project-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-card:hover h3 {
    color: #3b82f6;
}

.project-card p {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}

/* Project Meta */
.project-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.project-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #f3f4f6;
    color: #4b5563;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.project-area {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Project Location */
.project-location {
    display: flex;
    align-items: center;
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.project-location svg {
    width: 1rem;
    height: 1rem;
    margin-right: 0.25rem;
    color: #9ca3af;
}

/* Project Link */
.project-card a {
    display: inline-flex;
    align-items: center;
    color: #3b82f6;
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-card a:hover {
    color: #2563eb;
}

.project-card a svg {
    margin-left: 0.25rem;
    transition: transform 0.3s ease;
}

.project-card:hover a svg {
    transform: translateX(4px);
    animation: arrow-bounce 0.6s ease infinite;
}

@keyframes arrow-bounce {
    0%, 100% { transform: translateX(4px); }
    50% { transform: translateX(8px); }
}

/* 3D Hover Effect */
.project-card.tilt {
    transform-style: preserve-3d;
    transition: transform 0.1s;
}

.project-card.tilt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 1;
}

.project-card.tilt:hover::before {
    opacity: 1;
}

/* Loading State */
.projects-loading {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

/* Responsive Grid */
@media (min-width: 768px) {
    #projects-showcase {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    #projects-showcase {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Accessibility Mode */
body.accessibility-mode .project-card {
    transition: none;
    animation: none;
}

body.accessibility-mode .project-card:hover {
    transform: none;
}

body.accessibility-mode .project-card img {
    transition: none;
}

body.accessibility-mode .project-card:hover img {
    transform: none;
}

body.high-contrast .project-card {
    background: #000;
    border: 2px solid #fff;
}

body.high-contrast .project-card h3,
body.high-contrast .project-card p,
body.high-contrast .project-card a {
    color: #fff !important;
}

body.high-contrast .project-type {
    background: #fff;
    color: #000;
}
</style>