@import url('./styles.css');

:root {
    --bg: #1a1a1d;
    --bg2: #222226;
    --bg3: #2a2a2e;
    --card: #222226;
    --border: #333338;
    --accent: #c3073f;
    --accent2: #950740;
    --accent3: #6f2232;
    --muted: #888;
    --mono: 'Space Mono', monospace;
}

.hero {
    padding: 80px 40px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: unset;
    display: block;
    position: relative;
}

.hero-tag {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: fadeUp 0.6s ease 0.1s forwards;
}
.hero-tag::before {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: var(--accent);
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;

    text-align: left;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease 0.2s forwards;
}
.hero-title span {
    color: var(--accent);
    display: block;
}

.hero-sub {
    margin-top: 24px;
    color: var(--muted);
    font-size: 1.125rem;
    max-width: 520px;
    line-height: 1.7;
    opacity: 0;
    animation: fadeUp 0.6s ease 0.3s forwards;
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 56px;
    opacity: 0;
    animation: fadeUp 0.6s ease 0.4s forwards;
}
.stat-num {
    font-family: var(--mono);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}
.stat-label {
    font-size: 0.75rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 4px;
}

.filters-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px 48px;
    opacity: 0;
    animation: fadeUp 0.6s ease 0.5s forwards;
}
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    font-family: var(--mono);
    font-size: 0.75rem;
    padding: 8px 18px;
    border-radius: 4px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.05em;
}
.filter-btn:hover {
    border-color: var(--accent);
    color: var(--text);
}
.filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.grid-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px 120px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

@media (max-width: 600px) {
    .hero {
        padding: 60px 20px;
    }
    .filters-wrap,
    .grid-wrap {
        padding-left: 20px;
        padding-right: 20px;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--card);
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: background 0.25s;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
}
.card.visible {
    animation: fadeUp 0.5s ease forwards;
}
.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}
.card:hover {
    background: var(--bg3);
}
.card:hover::before {
    opacity: 0.04;
}

.card-num {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--border);
    letter-spacing: 0.1em;
    transition: color 0.2s;
}
.card:hover .card-num {
    color: var(--accent3);
}

.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s;
}
.card:hover .card-icon {
    border-color: var(--accent);
    background: rgba(195, 7, 63, 0.1);
}
.card-icon svg {
    width: 38px;
    height: 38px;
    color: var(--accent);
}

.card-links {
    display: flex;
    gap: 8px;
}

.card-link {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    transition: all 0.2s;
}
.card-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(195, 7, 63, 0.08);
}
.card-link svg {
    width: 15px;
    height: 15px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.card-desc {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.65;
    flex: 1;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
}

.tag {
    font-family: var(--mono);
    font-size: 0.68rem;
    padding: 4px 10px;
    border-radius: 4px;
    background: var(--bg);
    color: var(--muted);
    border: 1px solid var(--border);
    letter-spacing: 0.04em;
    transition: all 0.2s;
}
.card:hover .tag {
    border-color: #444;
    color: #aaa;
}

.card-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

.card-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.card.featured {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: 48px;
    padding: 48px;
}
.card.featured .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.card.featured .card-visual {
    width: 280px;
    height: 160px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.card.featured .card-title {
    font-size: 1.75rem;
}

@media (max-width: 768px) {
    .card.featured {
        flex-direction: column;
    }
    .card.featured .card-visual {
        width: 100%;
    }
}

.vis-bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 80px;
    padding: 0 20px;
}
.vis-bar {
    width: 12px;
    border-radius: 3px 3px 0 0;
    background: var(--accent3);
    animation: barPulse 1.8s ease-in-out infinite;
}
.vis-bar:nth-child(1) {
    height: 40%;
    animation-delay: 0s;
}
.vis-bar:nth-child(2) {
    height: 70%;
    animation-delay: 0.15s;
    background: var(--accent2);
}
.vis-bar:nth-child(3) {
    height: 55%;
    animation-delay: 0.3s;
}
.vis-bar:nth-child(4) {
    height: 90%;
    animation-delay: 0.45s;
    background: var(--accent);
}
.vis-bar:nth-child(5) {
    height: 65%;
    animation-delay: 0.6s;
}
.vis-bar:nth-child(6) {
    height: 80%;
    animation-delay: 0.75s;
    background: var(--accent2);
}
.vis-bar:nth-child(7) {
    height: 45%;
    animation-delay: 0.9s;
}
.vis-bar:nth-child(8) {
    height: 60%;
    animation-delay: 1.05s;
    background: var(--accent);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--mono);
    font-size: 0.65rem;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(195, 7, 63, 0.15);
    border: 1px solid var(--accent3);
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: blink 1.5s infinite;
}

.card-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--muted);
    letter-spacing: 0.08em;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #555;
}
.status-dot.live {
    background: #4ade80;
    box-shadow: 0 0 6px #4ade8088;
    animation: blink 2s infinite;
}
.status-dot.wip {
    background: #facc15;
}

footer {
    border-top: 1px solid var(--border);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-back {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--muted);
    transition: color 0.2s;
}
.footer-back:hover {
    color: var(--text);
}
.footer-back svg {
    width: 16px;
    height: 16px;
}
.footer-copy {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--border);
    letter-spacing: 0.05em;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes barPulse {
    0%,
    100% {
        opacity: 0.4;
        transform: scaleY(1);
    }
    50% {
        opacity: 1;
        transform: scaleY(1.15);
    }
}

@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

.card-links {
    position: relative;
    z-index: 2;
    cursor: pointer;
}
