/*=============================================================
    PROJECTS PAGE - PIXEL PERFECT CSS
    File: projects.css
    Author: Wshyah Engineering Consultancy
=============================================================*/

/*=============================================================
    1. PROJECTS PAGE CONTAINER
=============================================================*/
.Projects_page {
    padding: 20px 0 10px;
    background: var(--white);
}

/*=============================================================
    2. PROJECT ITEM CARD
=============================================================*/
.project_item {
    margin-bottom: 45px;
    transition: var(--transition-smooth);
}

.project_item:hover {
    transform: translateY(-8px);
}

.project_item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 10px;
    transition: var(--transition-smooth);
}

.project_item:hover img {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/*=============================================================
    3. PROJECT METADATA (Location & Type)
=============================================================*/
.project_item .grid-wrap-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 11px;
}

.project_item .grid-wrap-text-rt {
    font-size: 16px;
    font-weight: var(--font-weight-regular);
    color: #576468;
}

.project_item .grid-wrap-text-lft {
    font-size: 16px;
    font-weight: var(--font-weight-medium);
    color: #576468;
}

/*=============================================================
    4. PROJECT TITLE & DESCRIPTION
=============================================================*/
.project_item h2 {
    font-size: 28px;
    font-weight: var(--font-weight-regular);
    color: #1D3B4C;
    margin-bottom: 8px;
    line-height: 1.4;
    transition: var(--transition-smooth);
}

.project_item:hover h2 {
    /* color: var(--primary-color); */
}

.project_item p {
    font-size: 15px;
    font-weight: var(--font-weight-regular);
    color: #576468;
    line-height: 1.7;
    /* max-width: 407px; */
}

/*=============================================================
    5. BREADCRUMB FOR PROJECTS PAGE
=============================================================*/
.Projects_page + .breadcrumb .page_small_ded {
    font-size: 48px;
    font-weight: var(--font-weight-black);
    color: var(--text-dark);
    margin-bottom: 20px;
}

.breadcrumb.projects_bread .page_small_ded {
    margin-bottom: 55px;
    margin-top: 22px;
    color: #1D3B4C;
    font-weight: var(--font-weight-black);
    font-size: 51px;
}

.breadcrumb.projects_bread .page_des {
    font-size: 16px;
    font-weight: var(--font-weight-bold);
    max-width: 717px;
    line-height: 2;
}


/*=============================================================
    6. GRID LAYOUT
=============================================================*/
.Projects_page .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.Projects_page .col-md-6 {
    width: 50%;
    padding: 0 15px;
}

/*=============================================================
    7. HOVER EFFECTS
=============================================================*/
.project_item {
    cursor: pointer;
    position: relative;
}

.project_item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15px;
    right: 15px;
    height: 0;
    background: linear-gradient(to bottom, rgba(26, 77, 111, 0.05), transparent);
    border-radius: 16px;
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
}

.project_item:hover::before {
    height: 100%;
    opacity: 1;
}

/*=============================================================
    8. RESPONSIVE DESIGN - PROJECTS PAGE
=============================================================*/

/* Tablets and below (max-width: 991px) */
@media (max-width: 991px) {
    .Projects_page {
        padding: 60px 0;
    }
    
    .project_item {
        margin-bottom: 30px;
    }
    
    .project_item h2 {
        font-size: 22px;
    }
    
    .project_item p {
        font-size: 14px;
    }
}

/* Mobile devices (max-width: 767px) */
@media (max-width: 767px) {
    .Projects_page {
        padding: 50px 0;
    }
    
    .Projects_page .col-md-6 {
        width: 100%;
    }
    
    .project_item {
        margin-bottom: 40px;
    }
    
    .project_item:last-child {
        margin-bottom: 0;
    }
    
    .project_item h2 {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .project_item p {
        font-size: 14px;
    }
    
    .project_item img {
        margin-bottom: 16px;
    }
}

/* Small mobile devices (max-width: 480px) */
@media (max-width: 480px) {
    .Projects_page {
        padding: 40px 0;
    }
    
    .project_item h2 {
        font-size: 18px;
    }
    
    .project_item .grid-wrap-text-rt,
    .project_item .grid-wrap-text-lft {
        font-size: 12px;
    }
    
    .project_item img {
        border-radius: 12px;
    }
}

/*=============================================================
    9. LOADING ANIMATION (OPTIONAL)
=============================================================*/
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project_item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.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; }

/* Disable animation on mobile for performance */
@media (max-width: 767px) {
    .project_item {
        animation: none;
        opacity: 1;
    }
}

/*=============================================================
    10. ACCESSIBILITY
=============================================================*/
.project_item:focus-within {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
    border-radius: 16px;
}

/*=============================================================
    11. PRINT STYLES
=============================================================*/
@media print {
    .project_item {
        page-break-inside: avoid;
        margin-bottom: 20px;
    }
    
    .project_item img {
        box-shadow: none;
    }
    
    .project_item:hover {
        transform: none;
    }
}

/*=============================================================
    END OF PROJECTS PAGE CSS
=============================================================*/