/* ============================================
   PROJECTS PAGE
   projects.css
============================================ */

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ---------- HERO ---------- */
.projects-hero {
    position: relative;
    height: 520px;
    display: flex;
    align-items: center;
    background: #070e1c;
    overflow: hidden;
}

.projects-hero::after {
    content: '';
    position: absolute;
    bottom: -120px; right: -80px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(226,79,6,0.2) 0%, transparent 65%);
    pointer-events: none;
}

.ph-glow-blue {
    position: absolute;
    top: -80px; left: -60px;
    width: 460px; height: 460px;
    background: radial-gradient(circle, rgba(41,121,196,0.16) 0%, transparent 65%);
    pointer-events: none;
}

.ph-accent-bar {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, transparent, #e24f06 30%, #e24f06 70%, transparent);
}

.projects-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 5rem;
}

.ph-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #e24f06;
    margin-bottom: 18px;
    animation: heroFadeIn 0.6s ease forwards;
    animation-delay: 0.1s;
    opacity: 0;
}
.ph-eyebrow-line { width: 32px; height: 1px; background: #e24f06; }

.projects-hero-content h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(48px, 7vw, 82px);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 0.95;
    color: #ffffff;
    letter-spacing: -0.01em;
    margin-bottom: 20px;
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}
.projects-hero-content h1 span { color: #e24f06; }

.projects-hero-content p {
    font-family: 'Barlow', sans-serif;
    font-size: 15px;
    font-weight: 300;
    color: rgba(255,255,255,0.5);
    max-width: 460px;
    line-height: 1.8;
    border-left: 2px solid rgba(226,79,6,0.4);
    padding-left: 1rem;
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 0.55s;
    opacity: 0;
}

.ph-clip {
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    height: 80px;
    background: #f7f4f0;
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
    z-index: 3;
}

/* ---------- STATS STRIP ---------- */
.proj-stats-strip {
    background: #ffffff;
    border-bottom: 1px solid #ebebeb;
    padding: 0;
}

.proj-stats-inner {
    display: flex;
    align-items: stretch;
}

.proj-stat {
    flex: 1;
    padding: 32px 24px;
    text-align: center;
    border-right: 1px solid #ebebeb;
    transition: background 0.3s ease;
}
.proj-stat:last-child { border-right: none; }
.proj-stat:hover { background: #fdf8f5; }

.proj-stat-num {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: #e24f06;
    line-height: 1;
    margin-bottom: 4px;
}

.proj-stat-label {
    font-family: 'Barlow', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #aaa;
}

/* ---------- FILTER BAR ---------- */
.proj-filter-bar {
    background: #f7f4f0;
    padding: 28px 0;
    border-bottom: 1px solid #e8e5e1;
    position: sticky;
    top: 60px;
    z-index: 100;
}

.proj-filter-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pf-label {
    font-family: 'Barlow', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #999;
    margin-right: 6px;
}

.pf-btn {
    background: transparent;
    border: 1px solid #ddd;
    color: #555;
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.pf-btn:hover {
    border-color: #e24f06;
    color: #e24f06;
}

.pf-btn.active {
    background: #e24f06;
    border-color: #e24f06;
    color: #fff;
}

/* ---------- PROJECTS GRID ---------- */
.projects-section {
    background: #f7f4f0;
    padding: 72px 0 100px;
}

.projects-masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.proj-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
}

.proj-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.proj-card.featured {
    grid-column: span 2;
}

.proj-img {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #1a2a4a;
}

.proj-card.featured .proj-img { height: 300px; }

.proj-img-fill {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}
.proj-card:hover .proj-img-fill { transform: scale(1.05); }

/* Placeholder gradient backgrounds for project images */
.pimg-1 { background-image: url('../assets/images/societyBG.jpeg'); background-color: #1a3a5a; }
.pimg-2 { background-image: url('../assets/images/officeBG.webp');  background-color: #2a1a0a; }
.pimg-3 { background-image: url('../assets/images/residenceBG.jpg'); background-color: #1a2a1a; }
.pimg-4 { background: linear-gradient(135deg, #0b1528 0%, #1a2a4a 60%, #e24f06 100%); }
.pimg-5 { background: linear-gradient(135deg, #e24f06 0%, #c43e00 50%, #0b1528 100%); }
.pimg-6 { background: linear-gradient(135deg, #0b1528 0%, #2979c4 60%, #e24f06 100%); }

.proj-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7,14,28,0.65) 0%, transparent 60%);
    z-index: 1;
}

.proj-cat-tag {
    position: absolute;
    top: 16px; left: 16px;
    z-index: 2;
    background: #e24f06;
    color: #fff;
    font-family: 'Barlow', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 3px;
}

.proj-year-tag {
    position: absolute;
    top: 16px; right: 16px;
    z-index: 2;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(4px);
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 3px;
}

.proj-body {
    padding: 24px 28px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.proj-body h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    color: #00227e;
    letter-spacing: -0.01em;
    line-height: 1.05;
    margin-bottom: 8px;
}

.proj-location {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #e24f06;
    margin-bottom: 12px;
}
.proj-location i { font-size: 13px; }

.proj-body p {
    font-family: 'Barlow', sans-serif;
    font-size: 13.5px;
    font-weight: 300;
    color: #777;
    line-height: 1.8;
    flex: 1;
    margin-bottom: 20px;
}

.proj-meta {
    display: flex;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0ece8;
}

.pm-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pm-label {
    font-family: 'Barlow', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #bbb;
}

.pm-val {
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

/* ---------- CTA ---------- */
.projects-cta {
    background: #0b1528;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.projects-cta::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #e24f06 30%, #2979c4 70%, transparent);
}

.projects-cta::after {
    content: '';
    position: absolute;
    top: -100px; right: -80px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(226,79,6,0.12) 0%, transparent 65%);
    pointer-events: none;
}

.projects-cta h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(32px, 5vw, 54px);
    font-weight: 800;
    text-transform: uppercase;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 16px;
    position: relative; z-index: 1;
}

.projects-cta h2 span { color: #e24f06; }

.projects-cta p {
    font-family: 'Barlow', sans-serif;
    font-size: 15px;
    font-weight: 300;
    color: rgba(255,255,255,0.5);
    max-width: 420px;
    margin: 0 auto 36px;
    line-height: 1.8;
    position: relative; z-index: 1;
}

.cta-btn-proj {
    display: inline-block;
    background: #e24f06;
    color: #fff;
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 15px 48px 15px 32px;
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
    transition: background 0.25s, transform 0.2s;
    position: relative; z-index: 1;
}
.cta-btn-proj:hover { background: #c43e00; transform: translateX(4px); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
    .projects-masonry { grid-template-columns: 1fr 1fr; }
    .proj-card.featured { grid-column: span 2; }
    .projects-hero-content { padding: 0 2rem; }
    .proj-stats-inner { flex-wrap: wrap; }
    .proj-stat { flex: 1 1 48%; border-bottom: 1px solid #ebebeb; }
}

@media (max-width: 600px) {
    .projects-masonry { grid-template-columns: 1fr; }
    .proj-card.featured { grid-column: span 1; }
}
