/* ============================================
   Projects Page Styles
   ============================================ */

/* Main container */
.projects-main {
    width: 100%;
    min-height: 100vh;
}

/* ============================================
   Banner Section
   ============================================ */
.projects-banner {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    /* background-image removed to support inline styles */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dark overlay for better text readability */
.projects-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.banner-title {
    font-family: 'Alibaba PuHuiTi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(40px, 5vw + 30px, 100px);
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    letter-spacing: 0.1em;
    margin: 0;
    z-index: 2;
    position: relative;
}

/* Mobile and Tablet adjustments */
@media (max-width: 1024px) {
    .projects-banner {
        height: 60vh;
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .banner-title {
        letter-spacing: 0.05em;
        font-size: clamp(24px, 6vw, 40px);
    }

    .projects-banner {
        aspect-ratio: 16 / 9;
        height: auto !important;
        min-height: unset !important;
    }
}

/* ============================================
   Category Menu
   ============================================ */
.category-menu {
    position: absolute;
    bottom: clamp(40px, 6vh, 80px);
    left: clamp(40px, 6vw, 100px);
    display: flex;
    gap: clamp(30px, 4vw, 60px);
    z-index: 3;
}

.category-link {
    font-family: 'Alibaba PuHuiTi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(16px, 1.5vw + 0.5rem, 30px);
    font-weight: 600;
    color: white;
    text-decoration: none;
    padding-bottom: 8px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.category-link:hover {
    color: #FF6B35;
    border-bottom-color: #FF6B35 !important;

}

.category-link.active {
    border-bottom-color: white;
}

/* Mobile category menu */
@media (max-width: 768px) {
    .category-menu {
        bottom: 30px;
        left: 20px;
        gap: 20px;
    }

    .category-link {
        font-size: 14px;
        padding-bottom: 6px;
        border-bottom-width: 2px;
    }
}

/* ============================================
   Projects Grid Section
   ============================================ */
.development-cases {
    width: 100%;
    overflow: hidden;
}

.projects-grid {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.project-item {
    position: relative;
    width: 50%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    cursor: pointer;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    text-align: center;
}

.project-title {
    color: white;
    font-family: 'Alibaba PuHuiTi', sans-serif;
    font-size: clamp(20px, 2.5vw + 0.5rem, 40px);
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.project-title a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.project-title a:hover {
    color: #FF6B35;
    text-decoration: underline;
    text-underline-offset: 10px;
    text-decoration-thickness: 2px;
}

.project-subtitle {
    color: #ffffff;
    font-family: 'Alibaba PuHuiTi', sans-serif;
    font-size: clamp(14px, 1.25vw + 0.25rem, 20px);
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: translateY(20px);
    transition: transform 0.3s ease 0.1s;
}

.project-badge {
    position: absolute;
    top: 40px;
    left: 100px;
    width: 60px;
    height: auto;
    z-index: 5;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    object-fit: contain;
}

/* Hover Effects */
.project-item:hover .project-overlay {
    opacity: 1;
}

.project-item:hover .project-image {
    transform: scale(1.05);
}

.project-item:hover .project-title,
.project-item:hover .project-subtitle {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .project-item {
        width: 100%;
    }

    .project-badge {
        width: 30px;
        top: 10px;
        left: 20px;
    }
}

/* ============================================
   Pagination
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(8px, 1vw, 15px);
    padding: clamp(40px, 6vh, 80px) clamp(20px, 5vw, 40px);
    background-color: #f5f5f5;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: clamp(35px, 4vw, 50px);
    height: clamp(35px, 4vw, 50px);
    padding: 0 clamp(8px, 1vw, 12px);
    background-color: white;
    color: #333;
    text-decoration: none;
    font-family: 'Alibaba PuHuiTi', sans-serif;
    font-size: clamp(14px, 1.5vw, 18px);
    font-weight: 500;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.page-link:hover {
    background-color: var(--primary-orange);
    color: white;
    border-color: var(--primary-orange);
}

.page-link.active {
    background-color: var(--primary-orange);
    color: white;
    border-color: var(--primary-orange);
}

.page-prev,
.page-next {
    font-size: clamp(12px, 1.2vw, 16px);
}

/* Mobile pagination adjustments */
@media (max-width: 768px) {
    .pagination {
        gap: 6px;
        padding: 30px 15px;
    }

    .page-link {
        min-width: 32px;
        height: 32px;
        font-size: 14px;
    }
}