/* Portfolio Section */
.portfolio {
    position: relative;
    z-index: 1;
}

.portfolio::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(124, 240, 255, 0.14), transparent 40%), radial-gradient(circle at 80% 10%, rgba(162, 165, 255, 0.12), transparent 38%);
    filter: blur(32px);
    opacity: 0.65;
    pointer-events: none;
    z-index: -1;
}


/* Filter Styles */
.filters {
    list-style: none;
    padding: 0;
    margin: 0 auto 30px;
    display: flex;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 12px 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    position: relative;
}

.filters li {
    display: inline-flex;
    padding: 10px 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 12px;
    background: transparent;
    border: 1px solid transparent;
    color: #fff;
}

.filters li:hover,
.filters li.active {
    background: linear-gradient(135deg, rgba(124, 240, 255, 0.12), rgba(162, 165, 255, 0.12));
    transform: translateY(-2px) scale(1.01);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.filters li a {
    color: inherit;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.04em;
    font-weight: 600;
}

/* Project Cards */
.project-card {
    position: relative;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    overflow: hidden;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
    border-color: rgba(255, 255, 255, 0.28);
}

.card-head {
    position: relative;
    overflow: hidden;
    height: 260px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.5s ease;
}

.project-card:hover .card-img {
    transform: scale(1.06);
}

.project-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(124, 240, 255, 0.12), rgba(255, 156, 245, 0.12), transparent 65%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.project-card:hover::after {
    opacity: 0.35;
}

.card-hover {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 10, 22, 0.7) 0%, rgba(7, 10, 22, 0.98) 100%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-align: left;
}

.card-hover h3 {
    color: #fff;
    margin-bottom: 8px;
    font-size: 1.2rem;
    letter-spacing: -0.01em;
}

.project-category {
    display: inline-flex;
    align-self: flex-start;
    color: var(--accent);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 10px;
    opacity: 0.95;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.project-title {
    color: #fff;
    font-size: 21px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.project-details {
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
    line-height: 1.6;
}

.project-subtitle {
    color: var(--muted);
    font-size: 13px;
    margin: 6px 0 14px;
}

/* Project Links */
.project-links {
    margin-top: 15px;
}

.btn-outline-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid rgba(124, 240, 255, 0.55);
    padding: 10px 18px;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.btn-outline-light:hover {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #05060d;
    transform: translateY(-2px) scale(1.01);
    border-color: transparent;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .portfolio {
        padding: 40px 0;
    }

    .filters {
        width: 100%;
        justify-content: center;
    }

    .filters li {
        margin: 5px;
        padding: 6px 15px;
        font-size: 13px;
    }

    .card-head {
        height: 200px;
    }

    .project-title {
        font-size: 18px;
    }
}
