/* ── Projects Page — Developer Workshop ── */

.projects-page {
    --proj-bg: #0a0a0f;
    --proj-surface: rgba(18, 18, 28, 0.85);
    --proj-border: rgba(255, 255, 255, 0.08);
    --proj-border-hover: rgba(255, 255, 255, 0.18);
    --proj-text: #f0f0f5;
    --proj-muted: #8b8b9e;
    --proj-accent-1: #ff243f;
    --proj-accent-2: #7c3aed;
    --proj-accent-3: #06b6d4;
    --proj-glow: rgba(255, 36, 63, 0.25);
    --proj-mono: 'JetBrains Mono', ui-monospace, monospace;
}

body.projects-page {
    background:
        radial-gradient(ellipse 80% 50% at 20% -10%, rgba(124, 58, 237, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 90% 10%, rgba(255, 36, 63, 0.12), transparent),
        radial-gradient(ellipse 50% 30% at 50% 100%, rgba(6, 182, 212, 0.08), transparent),
        var(--proj-bg);
}

.projects-main {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 4.6rem;
    overflow-x: hidden;
}

.nav-links a.nav-active {
    color: #fff;
    position: relative;
}

.nav-links a.nav-active::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--proj-accent-1), var(--proj-accent-2));
    border-radius: 2px;
}

/* ── Hero ── */

.projects-hero {
    position: relative;
    padding: 3.5rem 1.25rem 4rem;
    min-height: 520px;
    display: flex;
    align-items: center;
}

.projects-ambient {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    border-radius: 0 0 32px 32px;
}

.projects-glow {
    position: absolute;
    width: 28rem;
    height: 28rem;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    animation: projGlowPulse 8s ease-in-out infinite;
}

.projects-glow--left {
    left: -8rem;
    top: 0;
    background: var(--proj-accent-1);
}

.projects-glow--right {
    right: -6rem;
    bottom: -2rem;
    background: var(--proj-accent-2);
    animation-delay: -4s;
}

.projects-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
}

.projects-particles {
    position: absolute;
    inset: 0;
}

.particle {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    animation: particleFloat var(--duration) var(--delay) ease-in-out infinite;
}

.projects-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    width: 100%;
}

.projects-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--proj-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    font-family: var(--proj-mono);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80;
    animation: pulseDot 2s ease-in-out infinite;
}

.projects-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--proj-accent-1), var(--proj-accent-2), var(--proj-accent-3));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 6s ease infinite;
}

.projects-hero-lead {
    color: var(--proj-muted);
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 32rem;
    margin-bottom: 1.5rem;
}

.projects-github-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    border: 1px solid var(--proj-border);
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none;
    font-size: 0.9rem;
    font-family: var(--proj-mono);
    color: var(--proj-text);
    transition: border-color 0.25s, background 0.25s, transform 0.25s;
}

.projects-github-cta:hover {
    border-color: var(--proj-border-hover);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

/* ── Stats Grid ── */

.projects-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
}

.projects-stat-card {
    background: var(--proj-surface);
    border: 1px solid var(--proj-border);
    border-radius: 16px;
    padding: 1.15rem 1.25rem;
    backdrop-filter: blur(12px);
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.projects-stat-card:hover {
    border-color: var(--proj-border-hover);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 36, 63, 0.08);
    transform: translateY(-2px);
}

.projects-stat-card--wide {
    grid-column: 1 / -1;
}

.projects-stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--proj-mono);
    background: linear-gradient(135deg, #fff, #c4c4d4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.projects-stat-label {
    display: block;
    font-size: 0.78rem;
    color: var(--proj-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.25rem;
}

.projects-tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.65rem;
}

/* ── Section Headers ── */

.projects-section {
    padding: 3rem 1.25rem;
}

.projects-section-header {
    margin-bottom: 2rem;
}

.projects-section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--proj-accent-1);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-family: var(--proj-mono);
    margin-bottom: 0.6rem;
}

.projects-section-header h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.projects-section-header p {
    color: var(--proj-muted);
    font-size: 0.95rem;
    max-width: 36rem;
}

/* ── Tech Pills & Status Badges ── */

.tech-pill {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--proj-border);
    color: var(--proj-text);
    font-family: var(--proj-mono);
    transition: background 0.2s, border-color 0.2s;
}

.tech-pill--sm {
    font-size: 0.68rem;
    padding: 0.2rem 0.5rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0.75rem 0;
}

.status-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-family: var(--proj-mono);
}

.status-badge--live {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.status-badge--in-progress {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.status-badge--archived {
    color: var(--proj-muted);
    background: rgba(139, 139, 158, 0.12);
    border: 1px solid rgba(139, 139, 158, 0.25);
}

.status-badge--open-source {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.3);
}

/* ── Currently Building ── */

.projects-building-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.building-card {
    display: flex;
    flex-direction: column;
    background: var(--proj-surface);
    border: 1px solid var(--proj-border);
    border-radius: 20px;
    overflow: hidden;
    transition: border-color 0.35s, box-shadow 0.35s, transform 0.35s;
}

.building-card:hover {
    border-color: rgba(255, 36, 63, 0.35);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(255, 36, 63, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transform: translateY(-4px);
}

.building-card-body {
    padding: 1.25rem 1.35rem 1.35rem;
}

.building-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.building-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    animation: pulseDot 1.5s ease-in-out infinite;
}

.building-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.building-impact {
    color: var(--proj-muted);
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 0.25rem;
}

/* ── Activity Feed ── */

.projects-activity-feed {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--proj-surface);
    border: 1px solid var(--proj-border);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.3s, background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.activity-item:hover {
    border-color: var(--proj-border-hover);
    background: rgba(255, 255, 255, 0.04);
    transform: translateX(6px);
    box-shadow: -4px 0 0 var(--proj-accent-1);
}

.activity-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    background: rgba(255, 36, 63, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--proj-accent-1);
    flex-shrink: 0;
    font-size: 0.9rem;
}

.activity-body {
    flex: 1;
    min-width: 0;
}

.activity-action {
    display: block;
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 0.15rem;
}

.activity-context {
    display: block;
    font-size: 0.8rem;
    color: var(--proj-muted);
    font-family: var(--proj-mono);
}

.activity-date {
    font-size: 0.75rem;
    color: var(--proj-muted);
    font-family: var(--proj-mono);
    flex-shrink: 0;
}

.activity-arrow {
    color: var(--proj-muted);
    font-size: 0.75rem;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.25s, transform 0.25s;
}

.activity-item:hover .activity-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ── Project Cards ── */

.projects-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.35rem;
}

.project-card-v2 {
    display: flex;
    flex-direction: column;
    background: var(--proj-surface);
    border: 1px solid var(--proj-border);
    border-radius: 20px;
    overflow: hidden;
    transform: perspective(800px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
    transition: border-color 0.35s, box-shadow 0.35s, transform 0.15s ease-out;
    will-change: transform;
}

.project-card-v2:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.45),
        0 0 60px rgba(124, 58, 237, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.project-card-v2--featured {
    border-color: rgba(255, 36, 63, 0.25);
    background:
        linear-gradient(160deg, rgba(255, 36, 63, 0.06) 0%, transparent 50%),
        var(--proj-surface);
}

.project-card-v2-preview-wrap {
    display: block;
    text-decoration: none;
    overflow: hidden;
}

.project-card-v2-body {
    padding: 1.2rem 1.3rem 1.35rem;
}

.project-card-v2-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.project-card-v2 h3 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.project-card-v2-meta {
    font-size: 0.78rem;
    color: var(--proj-muted);
    font-family: var(--proj-mono);
    margin-bottom: 0.5rem;
}

.project-card-v2-impact {
    color: var(--proj-muted);
    font-size: 0.86rem;
    line-height: 1.55;
    margin-bottom: 0.25rem;
}

.github-stats {
    display: flex;
    gap: 0.65rem;
    font-size: 0.75rem;
    color: var(--proj-muted);
    font-family: var(--proj-mono);
}

.github-stats span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.project-card-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.project-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: 10px;
    border: 1px solid var(--proj-border);
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--proj-text);
    transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.project-link-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--proj-border-hover);
    transform: translateY(-1px);
}

.project-link-btn--primary {
    background: linear-gradient(135deg, rgba(255, 36, 63, 0.2), rgba(124, 58, 237, 0.15));
    border-color: rgba(255, 36, 63, 0.35);
}

.project-link-btn--primary:hover {
    background: linear-gradient(135deg, rgba(255, 36, 63, 0.3), rgba(124, 58, 237, 0.25));
}

/* ── Animated Previews ── */

.project-preview {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.project-preview--building {
    height: 160px;
}

.project-preview--thumbnail {
    background: #0a0a0f;
}

.project-preview-gif {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.project-preview-vignette {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.05) 0%,
        rgba(0, 0, 0, 0.35) 100%
    );
    pointer-events: none;
}

.project-preview-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        var(--preview-c1) 0%,
        var(--preview-c2) 50%,
        var(--preview-c3) 100%
    );
    background-size: 200% 200%;
    animation: previewGradient 8s ease infinite;
}

.project-preview-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.06) 50%,
        transparent 60%
    );
    background-size: 200% 100%;
    animation: shimmer 4s ease-in-out infinite;
}

.project-preview-mock {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0.5;
    color: var(--preview-accent);
}

.mock-bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 60px;
}

.mock-bars span {
    display: block;
    width: 12px;
    height: var(--h);
    background: currentColor;
    border-radius: 3px 3px 0 0;
    animation: barPulse 3s ease-in-out infinite;
}

.mock-bars span:nth-child(2) { animation-delay: -0.5s; }
.mock-bars span:nth-child(3) { animation-delay: -1s; }
.mock-bars span:nth-child(4) { animation-delay: -1.5s; }
.mock-bars span:nth-child(5) { animation-delay: -2s; }
.mock-bars span:nth-child(6) { animation-delay: -2.5s; }

.mock-wave {
    width: 100%;
    height: 40px;
    animation: waveMove 4s ease-in-out infinite;
}

.mock-wave svg {
    width: 100%;
    height: 100%;
}

.mock-data {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    width: 80%;
}

.mock-data span {
    height: 8px;
    border-radius: 4px;
    background: currentColor;
    opacity: 0.6;
    animation: dataFlicker 2.5s ease-in-out infinite;
}

.mock-data span:nth-child(odd) { animation-delay: -0.8s; }

.mock-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 60%;
}

.mock-grid span {
    height: 36px;
    border-radius: 6px;
    border: 1px solid currentColor;
    opacity: 0.4;
    animation: gridPulse 3s ease-in-out infinite;
}

.mock-grid span:nth-child(2) { animation-delay: -1s; }
.mock-grid span:nth-child(3) { animation-delay: -2s; }

.project-preview-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.2rem;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    z-index: 2;
    animation: iconFloat 5s ease-in-out infinite;
}

/* ── GitHub Dashboard ── */

.github-dashboard {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.15rem;
}

.github-panel {
    background: var(--proj-surface);
    border: 1px solid var(--proj-border);
    border-radius: 18px;
    padding: 1.35rem;
    transition: border-color 0.3s;
}

.github-panel:hover {
    border-color: var(--proj-border-hover);
}

.github-panel--profile {
    grid-column: 1 / -1;
}

.github-panel--heatmap {
    grid-column: 1 / -1;
}

.github-panel-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--proj-muted);
    margin-bottom: 1rem;
    font-family: var(--proj-mono);
}

.github-profile-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.github-avatar {
    border-radius: 50%;
    border: 2px solid var(--proj-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.github-profile-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.15rem;
}

.github-handle {
    font-family: var(--proj-mono);
    font-size: 0.85rem;
    color: var(--proj-muted);
    margin-bottom: 0.65rem;
}

.github-profile-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.82rem;
    color: var(--proj-muted);
    margin-bottom: 0.85rem;
}

.github-profile-stats strong {
    color: var(--proj-text);
    font-family: var(--proj-mono);
}

/* Heatmap */

.github-heatmap-wrap {
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.github-heatmap {
    display: flex;
    gap: 3px;
}

.github-heatmap-week {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.github-heatmap-cell {
    width: 11px;
    height: 11px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.06);
    transition: transform 0.15s;
}

.github-heatmap-cell:hover {
    transform: scale(1.3);
}

.github-heatmap-cell--empty {
    background: transparent;
}

.github-heatmap-cell[data-level="1"] { background: rgba(74, 222, 128, 0.25); }
.github-heatmap-cell[data-level="2"] { background: rgba(74, 222, 128, 0.45); }
.github-heatmap-cell[data-level="3"] { background: rgba(74, 222, 128, 0.65); }
.github-heatmap-cell[data-level="4"] { background: rgba(74, 222, 128, 0.9); }

.github-heatmap-legend {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    color: var(--proj-muted);
    margin-top: 0.75rem;
    font-family: var(--proj-mono);
}

.github-legend-cells {
    display: flex;
    gap: 3px;
}

.github-legend-cells span {
    width: 11px;
    height: 11px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.06);
}

.github-legend-cells span[data-level="1"] { background: rgba(74, 222, 128, 0.25); }
.github-legend-cells span[data-level="2"] { background: rgba(74, 222, 128, 0.45); }
.github-legend-cells span[data-level="3"] { background: rgba(74, 222, 128, 0.65); }
.github-legend-cells span[data-level="4"] { background: rgba(74, 222, 128, 0.9); }

/* Languages */

.github-lang-bar {
    display: flex;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.06);
}

.github-lang-bar span {
    display: block;
    height: 100%;
    transition: width 0.6s ease;
}

.github-lang-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.github-lang-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.github-lang-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.github-lang-pct {
    margin-left: auto;
    font-family: var(--proj-mono);
    font-size: 0.78rem;
    color: var(--proj-muted);
}

/* Repos */

.github-repo-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.github-repo-item a {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid transparent;
    text-decoration: none;
    color: inherit;
    transition: background 0.25s, border-color 0.25s;
}

.github-repo-item a:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--proj-border);
}

.github-repo-item--highlight a {
    border-color: rgba(255, 36, 63, 0.2);
    background: rgba(255, 36, 63, 0.04);
}

.github-repo-name {
    font-weight: 600;
    font-size: 0.92rem;
    font-family: var(--proj-mono);
}

.github-repo-name i {
    color: var(--proj-muted);
    margin-right: 0.35rem;
}

.github-repo-desc {
    font-size: 0.82rem;
    color: var(--proj-muted);
    line-height: 1.4;
}

.github-repo-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.75rem;
    color: var(--proj-muted);
    font-family: var(--proj-mono);
}

.github-repo-updated {
    margin-left: auto;
}

/* Commits */

.github-commit-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.github-commit-item a {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.5rem 0.75rem;
    align-items: center;
    padding: 0.7rem 0.85rem;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background 0.25s;
}

.github-commit-item a:hover {
    background: rgba(255, 255, 255, 0.04);
}

.github-commit-repo {
    font-family: var(--proj-mono);
    font-size: 0.75rem;
    color: var(--proj-accent-1);
    font-weight: 500;
}

.github-commit-msg {
    font-size: 0.84rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.github-commit-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    color: var(--proj-muted);
    font-family: var(--proj-mono);
}

.github-commit-meta code {
    background: rgba(255, 255, 255, 0.06);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

/* Skeletons */

.github-panel-skeleton,
.github-heatmap-skeleton,
.github-languages-skeleton,
.github-repos-skeleton,
.github-commits-skeleton {
    height: 60px;
    border-radius: 10px;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.04) 25%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.04) 75%
    );
    background-size: 200% 100%;
    animation: skeletonPulse 1.5s ease-in-out infinite;
}

.github-heatmap-skeleton {
    height: 100px;
}

/* ── Scroll Reveal ── */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Misc ── */

.projects-empty {
    color: var(--proj-muted);
    font-size: 0.9rem;
    padding: 1rem 0;
}

.projects-error {
    margin: 1rem 1.25rem;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 36, 63, 0.12);
    border: 1px solid rgba(255, 36, 63, 0.3);
    color: #ffb3bc;
}

.projects-page .contact {
    padding: 2rem 1.25rem 3rem;
}

/* ── Keyframes ── */

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes projGlowPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(1.05); }
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

@keyframes particleFloat {
    0%, 100% { transform: translate(0, 0); opacity: 0.2; }
    25% { transform: translate(10px, -20px); opacity: 0.6; }
    50% { transform: translate(-5px, -35px); opacity: 0.3; }
    75% { transform: translate(15px, -15px); opacity: 0.5; }
}

@keyframes previewGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes barPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes waveMove {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-8px); }
}

@keyframes dataFlicker {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

@keyframes iconFloat {
    0%, 100% { transform: translate(-50%, -50%); }
    50% { transform: translate(-50%, calc(-50% - 6px)); }
}

@keyframes skeletonPulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Responsive ── */

@media (max-width: 900px) {
    .projects-hero-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .github-dashboard {
        grid-template-columns: 1fr;
    }

    .github-commit-item a {
        grid-template-columns: 1fr;
    }

    .github-commit-meta {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .projects-hero {
        padding: 2.5rem 1rem 3rem;
        min-height: auto;
    }

    .projects-stats {
        grid-template-columns: 1fr 1fr;
    }

    .projects-building-grid,
    .projects-gallery {
        grid-template-columns: 1fr;
    }

    .activity-date {
        display: none;
    }

    .github-profile-card {
        flex-direction: column;
        text-align: center;
    }

    .github-profile-stats {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .particle,
    .projects-glow,
    .gradient-text,
    .project-preview-gradient,
    .project-preview-shimmer,
    .mock-bars span,
    .mock-wave,
    .mock-data span,
    .mock-grid span,
    .project-preview-icon,
    .pulse-dot,
    .building-pulse {
        animation: none !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .project-card-v2 {
        transform: none !important;
    }
}
