.project-card {
    cursor: pointer;
    overflow: hidden;
    padding: 0;
}

.project-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.project-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    filter: grayscale(30%);
}

.project-card:hover .project-card__media img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.project-card__body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.project-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-card__tag {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border: 1px solid rgba(0, 0, 0, 0.4);
}

.project-card__title {
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.project-card__summary {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #555;
}

.project-card--span-2 .project-card__media {
    aspect-ratio: 1 / 1;
}

.project-card--span-2 .project-card__body {
    padding: 1.75rem 1.75rem 1.5rem;
    gap: 1rem;
}
/* Card and interactive element styles */

/* Project cards hover effects */
#projectsTrack .group {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#projectsTrack .group:hover {
    transform: translateY(-4px);
    box-shadow: none;
}

.group:hover {
    box-shadow: none;
    border-color: #000 !important;
}

/* Main page content styling */
#mainPageContent {
    box-shadow: none;
    background: #fff;
}

/* Visualization elements */
#aiVisualization {
    position: fixed;
    top: 20px;
    right: -50px;
    width: 60%;
    height: 50%;
    z-index: 1;
    overflow: hidden;
    transition: opacity 0.5s ease-out;
    pointer-events: none;
}

.grid-lines canvas {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    mix-blend-mode: multiply;
    opacity: 0.35;
}

.visualization-caption {
    color: rgba(0, 0, 0, 0.55) !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    font-family: "IBM Plex Mono", monospace;
    position: fixed;
    top: 80px;
    right: 10px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 0.55rem;
    letter-spacing: 0.28em;
    z-index: 9998;
    text-transform: uppercase;
    font-weight: 400;
    opacity: 0.9;
    pointer-events: none;
    padding: 6px 4px;
    border-radius: 0;
}

body.scrolled .visualization-caption {
    opacity: 0.8;
}

.ai-powered-badge {
    color: rgba(0, 0, 0, 0.65) !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.18) !important;
    font-family: "IBM Plex Mono", monospace;
    position: fixed;
    bottom: 10px;
    right: 10px;
    font-size: 0.55rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-weight: 500;
    opacity: 0.95;
    z-index: 100;
    padding: 6px 10px;
    border-radius: 0;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.08);
}

.ai-powered-badge:hover {
    opacity: 1;
    transform: translate(-2px, -2px);
    box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.12);
}

.ai-powered-badge:focus-visible {
    outline: 2px solid #111;
    outline-offset: 2px;
}

#aiOrb {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.18) !important;
    box-shadow: none !important;
}

.ai-visualization-info {
    display: none;
}

/* Featured projects */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-flow: dense;
    gap: 2.5rem;
    row-gap: 3rem;
    grid-auto-rows: minmax(0, 1fr);
}

@media (max-width: 1024px) {
    #aiVisualization {
        width: 50%;
        height: 30%;
        top: 10px;
        right: -30px;
        opacity: 0.4;
    }
}

@media (max-width: 640px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .project-card--span-2 .project-card__media {
        aspect-ratio: 4 / 3;
    }

    .project-card--span-2 .project-card__body {
        padding: 2rem;
        gap: 1.25rem;
    }
}

.project-card--span-2 {
    grid-column: span 2;
}

.project-card--span-3 {
    grid-column: span 3;
}

@media (max-width: 1024px) {
    .project-card--span-2,
    .project-card--span-3 {
        grid-column: span 3;
    }
}

@media (max-width: 640px) {
    .project-card--span-2,
    .project-card--span-3 {
        grid-column: span 1;
    }
}