/* static/projects/css/category_projects.css */

/* ========================= */
/*     MAIN CONTAINER       */
/* ========================= */

.category-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
    background: linear-gradient(to bottom, #0a0a0a, #1a1a1a);
    min-height: 100vh;
    overflow: hidden;
}

/* ========================= */
/*    CATEGORY HEADER       */
/* ========================= */

.category-header {
    position: relative;
    padding: 4rem 2rem;
    border-radius: 30px;
    overflow: hidden;
    margin-bottom: 3rem;
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.category-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(255, 87, 34, 0.5);
    background: linear-gradient(45deg, #fff, #ff5722);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titlePulse 2s ease-in-out infinite alternate;
    width: 100%;
    text-align: center;
}

.category-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: #fff;
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: center;
    width: 100%;
}

.category-stats {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
    justify-content: center;
    margin: 0 auto;
}

.category-stats:hover {
    transform: scale(1.05);
}

.project-count {
    font-size: 1.1rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-count::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #ff5722;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

/* Header Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================= */
/*    CATEGORY NAVIGATION   */
/* ========================= */

.categories-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    margin: -2rem -2rem 2rem;
    padding: 1rem 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.5rem;
}

.nav-wrapper::-webkit-scrollbar {
    display: none;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link:hover {
    background: rgba(255, 87, 34, 0.2);
    transform: translateY(-2px);
}

.nav-link.active {
    background: #ff5722;
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 87, 34, 0.3);
}

/* Projects Grid styling */
.projects-wrapper {
    position: relative;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.project-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    transform-style: preserve-3d;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-image {
    position: relative;
    padding-top: 60%;
}

.card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    transform: translateY(100px);
    transition: all 0.4s ease;
}

.project-card:hover .card-overlay {
    transform: translateY(0);
}

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

.project-type {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: #ff5722;
    color: #fff;
    border-radius: 25px;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.1s;
}

.project-card:hover .project-type {
    transform: translateY(0);
    opacity: 1;
}

.overlay-content h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.2s;
}

.overlay-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.3s;
}

.project-card:hover .overlay-content h3,
.project-card:hover .overlay-content p {
    transform: translateY(0);
    opacity: 1;
}

.view-details {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #ff5722;
    text-decoration: none;
    font-size: 0.9rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.4s;
}

.project-card:hover .view-details {
    transform: translateY(0);
    opacity: 1;
}

.arrow {
    transition: transform 0.3s ease;
}

.view-details:hover .arrow {
    transform: translateX(5px);
}

.no-projects {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.empty-message {
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.empty-message i {
    font-size: 3rem;
    color: #ff5722;
    margin-bottom: 1rem;
}

.empty-message p {
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.back-to-all {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: #ff5722;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.back-to-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 87, 34, 0.3);
}

.pagination-container {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-link {
    color: #fff;
    text-decoration: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.page-link:hover {
    background: rgba(255, 87, 34, 0.2);
}

.current-page {
    color: #fff;
    padding: 0 1rem;
}

@keyframes titlePulse {
    from {
        text-shadow: 0 0 20px rgba(255, 87, 34, 0.5);
    }
    to {
        text-shadow: 0 0 40px rgba(255, 87, 34, 0.8);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 87, 34, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 87, 34, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 87, 34, 0);
    }
}

@media (max-width: 768px) {
    .category-container {
        padding: 1rem;
    }

    .category-title {
        font-size: 2.5rem;
    }

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

    .categories-nav {
        margin: -1rem -1rem 1rem;
        padding: 0.5rem 1rem;
    }

    .nav-wrapper {
        padding: 0.5rem 0;
    }
}