/* Projects Page Specific Styles */

.projects-hero {
    position: relative;
    padding: 9rem 1rem 6rem;
    overflow: hidden;
    border-bottom: 1px solid hsl(var(--border));
}

@media (min-width: 768px) {
    .projects-hero {
        padding: 11rem 1rem 8rem;
    }
}

.projects-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem 3rem;
    margin-top: 2.5rem;
}

.stat-item-inline {
    text-align: center;
}

.stat-value-inline {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: hsl(var(--primary));
}

@media (min-width: 768px) {
    .stat-value-inline {
        font-size: 2.5rem;
    }
}

.stat-label-inline {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: hsl(var(--muted-foreground));
    margin-top: 0.25rem;
}

.projects-section {
    padding: 4rem 0;
    background-color: hsl(var(--muted) / 0.3);
    border-top: 1px solid hsl(var(--border));
}

@media (min-width: 768px) {
    .projects-section {
        padding: 5rem 0;
    }
}

.projects-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.project-card {
    display: block;
    height: 100%;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-4px);
}

.project-image {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    overflow: hidden;
    background-color: hsl(var(--muted));
    border: 1px solid hsl(var(--border) / 0.6);
    margin-bottom: 1.25rem;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.06);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, hsl(var(--foreground) / 0.5), transparent);
    opacity: 0.6;
    transition: opacity 0.5s ease;
}

.project-card:hover .project-overlay {
    opacity: 0.9;
}

.project-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 20;
    padding: 0.375rem 0.75rem;
    background-color: hsl(var(--background) / 0.95);
    backdrop-filter: blur(8px);
    color: hsl(var(--foreground));
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: var(--shadow-sm);
}

.project-arrow {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    z-index: 20;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transform: translateY(0.5rem);
    opacity: 0;
    transition: all 0.5s ease;
}

.project-card:hover .project-arrow {
    transform: translateY(0);
    opacity: 1;
}

.project-content {
    padding: 0 0.25rem;
}

.project-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.project-card:hover .project-title {
    color: hsl(var(--primary));
}

.project-year {
    font-size: 0.75rem;
    font-family: monospace;
    color: hsl(var(--muted-foreground));
    flex-shrink: 0;
}

.project-client {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.cta-section-projects {
    position: relative;
    padding: 6rem 0;
    background-color: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    overflow: hidden;
}

@media (min-width: 768px) {
    .cta-section-projects {
        padding: 8rem 0;
    }
}

.cta-section-projects .radial-gradient {
    background: radial-gradient(ellipse 60% 50% at 50% 50%, hsl(var(--primary) / 0.18), transparent 60%);
}

.cta-section-projects .grid-bg {
    opacity: 0.05;
}

.cta-section-projects .section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.05;
}

@media (min-width: 768px) {
    .cta-section-projects .section-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .cta-section-projects .section-title {
        font-size: 3.75rem;
    }
}

.cta-section-projects .section-description {
    font-size: 1.125rem;
    opacity: 0.8;
    max-width: 32rem;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

@media (min-width: 768px) {
    .cta-section-projects .section-description {
        font-size: 1.25rem;
    }
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
    }
}

.cta-section-projects .btn-primary {
    box-shadow: var(--shadow-xl), 0 0 25px hsla(var(--primary), 0.25);
}

.cta-section-projects .btn-outline {
    background-color: transparent;
    border-color: hsl(var(--secondary-foreground) / 0.2);
    color: hsl(var(--secondary-foreground));
}

.cta-section-projects .btn-outline:hover {
    background-color: hsl(var(--secondary-foreground));
    color: hsl(var(--secondary));
}
