/* ===================================
   PROJECTS PAGE STYLES
   =================================== */

/* Page Header */
.page-header {
    position: relative;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    background-image: url('https://images.unsplash.com/photo-1600607687644-aac4c3eac7f4?w=1920&h=800&fit=crop');
    background-size: cover;
    background-position: center;
    margin-top: 76px;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.page-title {
    position: relative;
    z-index: 2;
    color: var(--bg-white);
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-subtitle {
    position: relative;
    z-index: 2;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Filter Section */
.filter-section {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--border-color);
    padding: 0.75rem 1.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-dark);
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bg-white);
}

/* Search */
.search-wrapper {
    position: relative;
}

.search-input {
    padding: 0.75rem 1.25rem 0.75rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: 0;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: none;
    outline: none;
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.results-info {
    font-size: 0.95rem;
}

/* Projects Grid */
.projects-grid-section {
    background: var(--bg-light);
}

.project-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.project-item:nth-child(1) { animation-delay: 0.1s; }
.project-item:nth-child(2) { animation-delay: 0.2s; }
.project-item:nth-child(3) { animation-delay: 0.3s; }
.project-item:nth-child(4) { animation-delay: 0.4s; }
.project-item:nth-child(5) { animation-delay: 0.5s; }
.project-item:nth-child(6) { animation-delay: 0.6s; }
.project-item:nth-child(7) { animation-delay: 0.7s; }
.project-item:nth-child(8) { animation-delay: 0.8s; }
.project-item:nth-child(9) { animation-delay: 0.9s; }
.project-item:nth-child(10) { animation-delay: 1s; }
.project-item:nth-child(11) { animation-delay: 1.1s; }
.project-item:nth-child(12) { animation-delay: 1.2s; }

.project-item.hide {
    display: none !important;
}

/* Project Card */
.project-card {
    position: relative;
    overflow: hidden;
    background: var(--bg-white);
    height: 100%;
    cursor: pointer;
}

.project-card-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.project-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.project-card:hover .project-card-overlay {
    opacity: 1;
}

.project-card-content {
    transform: translateY(30px);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.project-card-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.project-card-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--bg-white);
    margin-bottom: 0.5rem;
}

.project-card-location {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.project-card-location i {
    margin-right: 0.5rem;
}

.project-card-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.project-card-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--bg-white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-card-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.project-card-link i {
    transition: transform 0.3s ease;
}

.project-card-link:hover i {
    transform: translateX(5px);
}

/* Filter Animation */
@keyframes filterFadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.8);
    }
}

@keyframes filterFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.project-item.filtering-out {
    animation: filterFadeOut 0.3s ease forwards;
}

.project-item.filtering-in {
    animation: filterFadeIn 0.4s ease forwards;
}

/* Responsive */
@media (max-width: 991px) {
    .filter-buttons {
        justify-content: center;
    }
    
    .filter-btn {
        font-size: 0.8rem;
        padding: 0.625rem 1.25rem;
    }
}

@media (max-width: 767px) {
    .page-header {
        height: 40vh;
        min-height: 300px;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
    }
    
    .project-card-image {
        height: 320px;
    }
    
    .project-card-title {
        font-size: 1.5rem;
    }
    
    .search-wrapper {
        margin-top: 1rem;
    }
}

@media (max-width: 575px) {
    .filter-buttons {
        flex-direction: column;
    }
    
    .filter-btn {
        width: 100%;
        text-align: center;
    }
    
    .project-card-overlay {
        opacity: 1;
        padding: 1.5rem;
    }
    
    .project-card-content {
        transform: translateY(0);
    }
    
    .project-card-image {
        height: 280px;
    }
}
