/* 
   Projects Page Styles
   Our Latest Projects Page
   Franklin Engineering Ltd.
*/

/* Projects Hero Section */
.projects-hero {
    height: 80vh;
    background-image: url('../assets/img/hero-bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 26, 65, 0.85) 0%, rgba(13, 26, 65, 0.7) 100%);
    z-index: 1;
}

.projects-hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    text-align: center;
}

.breadcrumb {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.breadcrumb a {
    color: var(--white);
    text-decoration: none;
    transition: color var(--transition-medium);
}

.breadcrumb a:hover {
    color: var(--gold);
}

.breadcrumb-separator {
    margin: 0 0.75rem;
    color: var(--gold);
}

.projects-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.projects-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.projects-hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 2rem;
}

.hero-stat {
    text-align: center;
}

.hero-stat .stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold);
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

.hero-stat .stat-label {
    font-size: 1rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* Project Filter Section */
.project-filter-section {
    padding: 2rem 0 0 0;
    background-color: var(--white);
    position: relative;
}

.filter-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-tab {
    padding: 0.75rem 1.5rem;
    border: 2px solid transparent;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all var(--transition-medium);
}

.filter-tab:hover {
    color: var(--gold);
    border-color: var(--gold);
}

.filter-tab.active {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

.view-toggle {
    display: none;
}

/* Featured Project Section */
.featured-project {
    padding: 6rem 0;
    background-color: var(--off-white);
}

.featured-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.featured-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-lg);
}

.featured-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-image:hover img {
    transform: scale(1.05);
}

.featured-overlay {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 2;
}

.project-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.project-badge {
    padding: 0.5rem 1rem;
    background: var(--gold);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--border-radius-sm);
}

.featured-details {
    padding: 2rem 0;
}

.featured-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--navy);
}

.featured-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.project-specs {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.spec-icon {
    width: 60px;
    height: 60px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    flex-shrink: 0;
}

.spec-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    color: var(--navy);
}

.spec-content p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

.featured-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Projects Grid Section */
.projects-grid-section {
    padding: 6rem 0;
    background-color: var(--white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow-sm);
    transition: all var(--transition-medium);
    border: 1px solid rgba(209, 150, 42, 0.1);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
    border-color: var(--gold);
}

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

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 26, 65, 0.9) 0%, rgba(13, 26, 65, 0.7) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-medium);
}

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

.overlay-content {
    text-align: center;
    color: var(--white);
    padding: 2rem;
}

.project-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--gold);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1rem;
}

.overlay-content .project-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.project-summary {
    margin-bottom: 1.5rem;
    opacity: 0.9;
    line-height: 1.6;
}

.project-actions {
    display: flex;
    justify-content: center;
}

.project-info {
    padding: 1.5rem;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.project-date {
    font-weight: 600;
    color: var(--gold);
}

.project-location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.project-location::before {
    content: "📍";
    font-size: 0.8rem;
}

.project-name {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--navy);
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.25rem 0.75rem;
    background: rgba(209, 150, 42, 0.1);
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(209, 150, 42, 0.2);
}

/* Pagination */
.projects-pagination {
    text-align: center;
    margin-top: 3rem;
}

.pagination-btn {
    padding: 1rem 2rem;
    background: var(--gold);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius-md);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-medium);
}

.pagination-btn:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
}

/* Project Statistics */
.project-stats {
    padding: 6rem 0;
    background-color: var(--off-white);
    position: relative;
}

.project-stats .section-heading .section-tag {
    color: var(--gold);
}

.project-stats .section-heading .section-title {
    color: var(--navy);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-sm);
    border: 1px solid rgba(209, 150, 42, 0.1);
    transition: all var(--transition-medium);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
    border-color: var(--gold);
}

.stat-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--gold), var(--gold-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
}

.stat-card .stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold);
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

.stat-card .stat-label {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--navy);
}

.stat-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Projects CTA */
.projects-cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    text-align: center;
}

.projects-cta .cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.projects-cta .cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--white);
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.projects-cta .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.projects-cta .btn-primary {
    background: var(--white);
    color: var(--navy);
}

.projects-cta .btn-primary:hover {
    background: var(--off-white);
    color: var(--navy);
}

.projects-cta .btn-outline {
    border-color: var(--white);
    color: var(--white);
}

.projects-cta .btn-outline:hover {
    background: var(--white);
    color: var(--navy);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .projects-hero-stats {
        gap: 2rem;
    }
    
    .featured-content {
        gap: 3rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

@media (max-width: 992px) {
    .projects-title {
        font-size: 3rem;
    }
    
    .projects-hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .featured-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-tabs {
        justify-content: center;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .projects-hero {
        height: 60vh;
        background-attachment: scroll;
    }
    
    .projects-title {
        font-size: 2.5rem;
    }
    
    .projects-subtitle {
        font-size: 1.1rem;
    }
    
    .projects-hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-stat .stat-number {
        font-size: 2rem;
    }
    
    .filter-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .filter-tab {
        text-align: center;
    }
    
    .featured-title {
        font-size: 2rem;
    }
    
    .project-specs {
        gap: 1rem;
    }
    
    .spec-item {
        flex-direction: column;
        text-align: center;
    }
    
    .spec-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .featured-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-image {
        height: 220px;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .stat-card .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .projects-hero {
        height: 50vh;
    }
    
    .projects-title {
        font-size: 2rem;
    }
    
    .breadcrumb {
        font-size: 0.8rem;
    }
    
    .featured-image {
        height: 300px;
    }
    
    .project-info {
        padding: 1.25rem;
    }
    
    .projects-cta .cta-content h2 {
        font-size: 2rem;
    }
    
    .projects-cta .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-card {
    animation: fadeInUp 0.6s ease forwards;
}

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

/* Filter Animation */
.project-card.hidden {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-card.visible {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
