/* projects.css */
/* Styles specific to the projects page gallery. */

/* --- Projects Hero Section --- */
.projects-hero-section {
    min-height: 60vh; /* Shorter hero for sub-pages */
    max-height: 600px;
    padding-bottom: calc(var(--spacing-unit) * 8); /* Reduced bottom padding for tighter spacing */
}

/* --- Project Gallery Section --- */
.project-gallery-section {
    padding-top: calc(var(--spacing-unit) * 8); /* Reduced top padding */
    padding-bottom: calc(var(--spacing-unit) * 12); /* Keep bottom padding for space before footer */
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: calc(var(--spacing-unit) * 5);
}

.project-card {
    display: block;
    background-color: var(--card-bg-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: all var(--transition-duration-normal) var(--transition-timing-function-cubic);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3), 0 0 30px var(--accent-glow-color);
    border-color: var(--border-highlight-color);
}

.project-image-wrapper {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: var(--secondary-bg-color);
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--transition-timing-function-expo), opacity 0.6s ease;
    opacity: 0.85;
}

.project-card:hover img {
    transform: scale(1.08);
    opacity: 1;
}

.project-info {
    padding: calc(var(--spacing-unit) * 3) calc(var(--spacing-unit) * 3.5);
}

.project-info h3 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--primary-text-color);
    margin-bottom: var(--spacing-unit);
}

.project-info p {
    font-size: var(--font-size-md);
    color: var(--secondary-text-color);
    font-weight: var(--font-weight-light);
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.project-tech {
    display: flex;
    gap: var(--spacing-unit);
    flex-wrap: wrap;
}

.project-tech span {
    background-color: rgba(3, 4, 9, 0.7);
    backdrop-filter: blur(5px);
    color: var(--accent-primary-color);
    padding: calc(var(--spacing-unit) * 0.5) var(--spacing-unit);
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Responsive adjustments for the grid */
@media (max-width: 767px) {
    .projects-grid {
        grid-template-columns: 1fr; /* Stack on mobile */
        gap: calc(var(--spacing-unit) * 4);
    }
}
