/* --- PROJECT PAGE SPECIFIC STYLES --- */

/* Project Hero */
.project-hero {
    background: linear-gradient(135deg, #090909 0%, #1c1c1c 100%);
    color: white;
    padding: 100px 8% 120px 8%;
    position: relative;
    text-align: center;
}

.project-hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.project-hero h1 span {
    color: var(--primary-red);
}

.project-hero p {
    font-size: 1.2rem;
    color: #aaa;
    max-width: 700px;
    margin: 0 auto 30px auto;
    font-weight: 300;
}

/* Filter Tabs Layout */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    border: 1px solid #333;
    background: transparent;
    color: #ccc;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 14px;
}

.filter-btn:hover,
.filter-btn.active {
    background: #fff;
    color: var(--dark-bg);
    border-color: #fff;
    transform: translateY(-2px);
}

/* Portfolio Display Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    padding: 0 8% 100px 8%;
    max-width: 1400px;
    margin: -50px auto 0 auto;
    position: relative;
    z-index: 5;
}

.project-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0,0,0,0.06);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    opacity: 1;
    transform: scale(1);
}

.project-card.hidden {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
    position: absolute;
    width: 0;
    height: 0;
    padding: 0;
    margin: 0;
    border: none;
    overflow: hidden;
}

/* Micro-interactions & Zoom Configurations */
.project-img-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: #000;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
    opacity: 0.9;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 55px rgba(0,0,0,0.12);
    border-color: #ddd;
}

.project-card:hover img {
    transform: scale(1.08);
    opacity: 1;
}

.tag-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    color: white;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255,255,255,0.1);
}

.project-info {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    font-size: 22px;
    color: var(--dark-bg);
    margin-bottom: 12px;
    font-weight: 700;
    transition: color 0.3s;
}

.project-card:hover .project-info h3 {
    color: var(--accent-blue);
}

.project-info p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Key Metrics Alignment */
.project-metrics {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.metric-block span {
    display: block;
}

.metric-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.metric-value {
    font-size: 15px;
    color: var(--dark-bg);
    font-weight: 700;
}

/* Impact Summary Section */
.impact-summary {
    padding: 100px 8%;
    background: var(--light-grey);
    text-align: center;
}

.impact-summary h2 {
    font-size: 2.5rem;
    color: var(--dark-bg);
    margin-bottom: 15px;
    font-weight: 800;
}

.impact-summary p {
    color: var(--text-muted);
    max-width: 750px;
    margin: 0 auto 50px auto;
    font-size: 1.1rem;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.impact-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    border-bottom: 4px solid var(--border-color);
    transition: var(--transition-smooth);
}

.impact-card:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--primary-red);
}

.impact-num {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--dark-bg);
    margin-bottom: 5px;
    line-height: 1;
}

.impact-card h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Action Gateway Panel */
.project-cta {
    background: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.85)), url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=1920&q=80') center center/cover;
    color: white;
    padding: 90px 8%;
    text-align: center;
}

.project-cta h2 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.project-cta p {
    font-size: 1.1rem;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto 35px auto;
    font-weight: 300;
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 768px) {
    .project-hero h1 {
        font-size: 2.3rem;
    }
    .projects-grid {
        grid-template-columns: 1fr;
        padding: 0 4% 60px 4%;
    }
}
