/* ==========================================
   PROJECTS PAGE STYLES
   ========================================== */

/* Active nav link */
.nav-link--active {
    color: var(--text-primary) !important;
}

.nav-link--active::after {
    width: 100% !important;
}

.page-wrapper {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    padding: calc(var(--nav-height) + 64px) 32px 100px;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 48px;
    animation: fadeSlideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.page-eyebrow {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}

.page-heading {
    font-size: clamp(36px, 6vw, 60px);
    font-weight: 700;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #ffffff 0%, #c8c8d2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    line-height: 1.05;
}

.page-subheading {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.65;
}

/* ==========================================
   PROJECT CARDS GRID
   ========================================== */
.projects-grid-section {
    animation: fadeSlideUp 1s cubic-bezier(0.4, 0, 0.2, 1) both;
    animation-delay: 0.2s;
    margin-bottom: 40px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

/* Base project card */
.project-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(41, 151, 255, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.project-card:hover {
    border-color: rgba(41, 151, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.project-card:hover::before {
    opacity: 1;
}

/* Card Top Bar */
.project-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 0;
}

.project-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(41, 151, 255, 0.1);
    color: var(--accent);
    border: 1px solid rgba(41, 151, 255, 0.2);
}

.project-icon svg {
    width: 24px;
    height: 24px;
}

.project-status {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
    padding: 4px 10px;
    border-radius: 980px;
    border: 1px solid rgba(74, 222, 128, 0.2);
}

/* Card Body */
.project-card-body {
    padding: 20px 24px 16px;
    flex: 1;
}

.project-name {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 12px;
}

.project-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Card Footer */
.project-card-footer {
    padding: 0 24px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tag {
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-tertiary);
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
}

.project-tag:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 12px 2px var(--accent-glow);
    transform: translateY(-2px);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 640px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .page-wrapper {
        padding-left: 20px;
        padding-right: 20px;
    }
}