@font-face {
    font-family: 'Bitcount';
    src: url('assets/fonts/Bitcount.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

html {
    overscroll-behavior: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Bitcount", system-ui, sans-serif;
    min-height: 100vh;
    background: radial-gradient(ellipse at bottom right, #400202 0%, #050000 50%, #000000 100%);
    background-attachment: fixed;
    background-size: cover;
    color: white;
    padding: 60px 0 140px 0;
    overflow-x: hidden;
    overscroll-behavior: none;
}

.portfolio-hero {
    max-width: 1300px;
    width: 85vw;
    margin: 0 auto 40px auto;
    padding: 0 10px;
}

.title {
    font-size: 4rem;
    font-weight: 400;
    letter-spacing: -1px;
    text-shadow: 3px 3px 0px #ff3c3c;
    animation: heroEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.subtitle {
    font-size: 1.5rem;
    color: #a0a0a0;
    margin-top: 8px;
    line-height: 1.4;
    text-shadow: 1px 1px 2px #000000;
    animation: heroEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.filter-container {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    flex-wrap: wrap;
    animation: heroEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #b8b8b8;
    padding: 8px 20px;
    border-radius: 30px;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.2s;
}

.filter-btn:hover {
    background: rgba(255, 92, 92, 0.1);
    border-color: rgba(255, 92, 92, 0.3);
    color: #ffffff;
}

.filter-btn.active {
    background: #ff5c5c;
    border-color: #ff5c5c;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 92, 92, 0.4);
}

a,
a:visited,
a:hover,
a:active {
    text-decoration: none !important;
    border: none !important;
}

.projects-grid {
    width: 85vw;
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 25px;
    animation: viewerEntrance 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.project-card {
    background: rgba(15, 2, 2, 0.35);
    backdrop-filter: blur(50px) saturate(140%);
    -webkit-backdrop-filter: blur(50px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0px rgba(255, 255, 255, 0.1);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s, box-shadow 0.4s, opacity 0.4s ease, visibility 0.4s;
    will-change: transform, opacity;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 92, 92, 0.4);
    box-shadow: 0 30px 60px rgba(255, 92, 92, 0.1), 0 20px 40px rgba(0, 0, 0, 0.7);
}

.project-card.hidden {
    display: none;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.title-status-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.project-status {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.35);
    flex-shrink: 0;
}

.project-status::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 3px;
    width: 65%;
    height: 35%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0));
    border-radius: 50% / 40% 40% 20% 20%;
}

.status-not-started {
    background: radial-gradient(circle at 35% 35%, rgba(130, 130, 130, 0.4) 0%, rgba(40, 40, 40, 0.5) 70%, rgba(10, 10, 10, 0.6) 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 -1px 3px rgba(0, 0, 0, 0.5);
}

.status-working {
    background: radial-gradient(circle at 35% 35%, rgba(255, 230, 128, 0.45) 0%, rgba(255, 157, 0, 0.35) 60%, rgba(140, 80, 0, 0.45) 100%);
    box-shadow: 0 2px 10px rgba(255, 157, 0, 0.2), inset 0 -1px 3px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 180, 50, 0.45);
}

.status-done {
    background: radial-gradient(circle at 35% 35%, rgba(163, 255, 223, 0.45) 0%, rgba(0, 230, 118, 0.35) 60%, rgba(0, 100, 40, 0.45) 100%);
    box-shadow: 0 2px 10px rgba(0, 230, 118, 0.2), inset 0 -1px 3px rgba(0, 0, 0, 0.4);
    border-color: rgba(50, 255, 150, 0.45);
}

.meta-bubble {
    font-size: 0.9rem;
    padding: 3px 12px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #a0a0a0;
}

.card-title {
    font-size: 2rem;
    font-weight: 400;
    color: #ffffff;
    transition: color 0.3s;
}

.project-card:hover .card-title {
    color: #ff5c5c;
}

.card-description {
    font-size: 1.1rem;
    line-height: 1.5;
    color: #b8b8b8;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
    gap: 10px;
}

.tech-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tech-tag {
    font-size: 0.95rem;
    color: #ff5c5c;
}

.price-tag {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.4);
}

.view-link {
    font-size: 1rem;
    color: #ffffff;
    transition: color 0.2s, transform 0.2s;
}

.project-card:hover .view-link {
    color: #ff5c5c;
    transform: translateX(3px);
}

.action-dock {
    position: fixed;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 3, 3, 0.6);
    backdrop-filter: blur(30px) saturate(120%);
    -webkit-backdrop-filter: blur(30px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 40px;
    height: 64px;
    width: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    transition: width 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        height 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        border-radius 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        background-color 0.3s;
    z-index: 1000;
}

.action-dock.expanded {
    width: 420px;
    background: rgba(28, 4, 4, 0.85);
    border-color: rgba(255, 92, 92, 0.2);
}

.dock-trigger {
    width: 64px;
    height: 64px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 10;
}

.trigger-dot {
    width: 12px;
    height: 12px;
    background: #ff5c5c;
    border-radius: 50%;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s;
    box-shadow: 0 0 10px rgba(255, 92, 92, 0.6);
}

.action-dock.expanded .trigger-dot {
    transform: scale(0.6) rotate(45deg);
    background: #ffffff;
    box-shadow: none;
}

.dock-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    padding-left: 74px;
    padding-right: 30px;
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
    width: 100%;
}

.action-dock.expanded .dock-menu {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}

.dock-item {
    color: #b0b0b0;
    font-size: 1.1rem;
    transition: color 0.2s, transform 0.2s;
}

.dock-item:hover {
    color: #ff5c5c;
    transform: translateY(-2px);
}

.font-special {
    font-size: 1.3rem;
    font-weight: bold;
}

@keyframes heroEntrance {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes viewerEntrance {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    body {
        padding-top: 40px;
    }

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

    .action-dock.expanded {
        width: 180px;
        height: 180px;
        border-radius: 24px;
    }

    .action-dock.expanded .dock-menu {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 12px;
        padding: 20px 20px 20px 64px;
    }
}