.hero { max-width: 1100px; margin: 0 auto; padding: 70px 20px 40px; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 3.7rem); font-weight: 700; line-height: 1.12; margin-bottom: 16px; }
.hero h1 span { color: var(--accent2); }
.hero p { max-width: 620px; color: var(--muted); font-size: 1.05rem; margin-bottom: 40px; }

.filter-bar { max-width: 1100px; margin: 0 auto; padding: 0 20px 36px; display: flex; gap: 10px; flex-wrap: wrap; }

.filter-btn { padding: 7px 18px; border-radius: 999px; font-size: 0.85rem; cursor: pointer; border: 1px solid var(--border); background: var(--card); color: var(--muted); transition: all 0.2s ease; letter-spacing: 0.04em; }
.filter-btn:hover,
.filter-btn.active { background: rgba(34,211,238,0.1); border-color: rgba(34,211,238,0.35); color: var(--accent2); }

.portfolio-grid { max-width: 1100px; margin: 0 auto; padding: 0 20px 80px; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }

.project-card {
    position: relative; display: flex; flex-direction: column;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.025), rgba(255,255,255,0.03));
    border: 1px solid var(--border); border-radius: 20px; padding: 28px; overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none; color: var(--text);
}

.project-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 0%, rgba(34,211,238,0.06) 50%, transparent 100%); opacity: 0; transition: opacity 0.2s ease; }
.project-card::after  { content: ''; position: absolute; inset: 12px; border: 1px dashed rgba(255,255,255,0.06); border-radius: 14px; pointer-events: none; }
.project-card:hover { transform: translateY(-4px); border-color: rgba(34,211,238,0.28); box-shadow: 0 16px 35px rgba(0,0,0,0.2); }
.project-card:hover::before { opacity: 1; }

.card-icon { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 12px; background: rgba(34,211,238,0.1); border: 1px solid rgba(34,211,238,0.2); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 18px; }
.card-tags { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }

.tag { padding: 4px 10px; border-radius: 999px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.2); color: #b9d7ff; }
.tag.cyan  { background: rgba(34,211,238,0.1);  border-color: rgba(34,211,238,0.2);  color: #a5f3fc; }
.tag.green { background: rgba(34,197,94,0.1);   border-color: rgba(34,197,94,0.2);   color: #bbf7d0; }
.tag.red   { background: rgba(239,68,68,0.1);   border-color: rgba(239,68,68,0.2);   color: #fecaca; }

.project-card h3 { position: relative; z-index: 1; font-size: 1.2rem; margin-bottom: 10px; }
.project-card p  { position: relative; z-index: 1; color: var(--muted); font-size: 0.95rem; flex: 1; margin-bottom: 20px; }

.card-footer { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.card-status { font-size: 0.78rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }

.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 6px rgba(34,211,238,0.7); animation: pulse 2s ease-in-out infinite; }
.status-dot.offline { background: var(--muted); box-shadow: none; animation: none; }
.status-dot.wip     { background: #f59e0b; box-shadow: 0 0 6px rgba(245,158,11,0.7); }

@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.card-link { font-size: 0.82rem; color: var(--accent2); display: flex; align-items: center; gap: 4px; transition: gap 0.2s ease; }
.project-card:hover .card-link { gap: 8px; }

.card-badge { position: absolute; top: 16px; right: 16px; z-index: 2; padding: 4px 10px; border-radius: 999px; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; background: rgba(34,211,238,0.12); border: 1px solid rgba(34,211,238,0.25); color: var(--accent2); }

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