/* =====================================================
   Project Detail Page - Menara Simfoni
   IT Muhibbah Jaya Sdn Bhd
   ===================================================== */

/* ---------- HERO ---------- */
.project-detail-hero {
    padding: 90px 0 70px;
    position: relative;
    overflow: hidden;
    background: #1a1a2e;
}
.project-detail-hero .hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('https://muhibbahjaya.my/wp-content/uploads/2026/08/menara-simfoni/page1_img2.jpeg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
}
.project-detail-hero .auto-container {
    position: relative;
    z-index: 2;
}
.project-hero-badge {
    display: inline-block;
    background: #eb7e24;
    color: #fff;
    padding: 6px 20px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 22px;
}
.project-hero-title {
    font-size: 44px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 10px;
}
.project-hero-subtitle {
    font-size: 22px;
    font-weight: 400;
    color: rgba(255,255,255,0.7);
    margin-bottom: 30px;
}
.project-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 30px;
    margin-bottom: 25px;
}
.project-hero-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255,255,255,0.8);
}
.project-hero-meta-item .icon {
    color: #eb7e24;
    font-size: 20px;
    margin-top: 2px;
}
.project-hero-meta-item .meta-label {
    font-size: 10px;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3px;
}
.project-hero-meta-item .meta-value {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}
.project-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(76,175,80,0.15);
    border: 1px solid rgba(76,175,80,0.4);
    color: #6fcf73;
    padding: 9px 22px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
}
.project-status-dot {
    width: 8px;
    height: 8px;
    background: #4caf50;
    border-radius: 50%;
    animation: itm-pulse 1.5s infinite;
    flex-shrink: 0;
}
@keyframes itm-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

/* ---------- OVERVIEW ---------- */
.project-overview-section {
    padding: 75px 0;
    background: #f8f9fa;
}
.project-overview-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 45px;
    align-items: start;
}
.project-overview-content h2 {
    font-size: 34px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 18px;
}
.project-overview-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 55px;
    height: 3px;
    background: #eb7e24;
    border-radius: 2px;
}
.project-overview-content p {
    font-size: 16px;
    line-height: 1.85;
    color: #555;
    margin-bottom: 18px;
}
.project-info-card {
    background: #fff;
    border-radius: 14px;
    padding: 32px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.09);
    border-top: 4px solid #eb7e24;
    position: sticky;
    top: 100px;
}
.project-info-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}
.project-info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 13px 0;
    border-bottom: 1px solid #f5f5f5;
    gap: 12px;
}
.project-info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.project-info-label {
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 10.5px;
    letter-spacing: 0.8px;
    min-width: 75px;
    padding-top: 2px;
}
.project-info-value {
    color: #1a1a2e;
    font-weight: 500;
    font-size: 14px;
    text-align: right;
    line-height: 1.4;
}
.project-info-value.status-complete {
    color: #4caf50;
    font-weight: 700;
}

/* ---------- PHOTOS SECTION ---------- */
.project-photos-section {
    padding: 75px 0;
    background: #fff;
}
.itm-sec-title {
    text-align: center;
    margin-bottom: 55px;
}
.itm-sec-title .sub-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #eb7e24;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}
.itm-sec-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
}
.itm-sec-title p {
    font-size: 16px;
    color: #888;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.photo-phase-label {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 40px 0 20px;
}
.photo-phase-label::before,
.photo-phase-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e5e5;
}
.photo-phase-label::before {
    flex: 0 0 30px;
    background: #eb7e24;
}
.photo-phase-label span {
    white-space: nowrap;
    background: #fff3e8;
    color: #eb7e24;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 13px;
    border: 1px solid rgba(235,126,36,0.25);
}

.itm-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}
.itm-photo-grid.col-2 {
    grid-template-columns: repeat(2, 1fr);
}
.itm-photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #eee;
    aspect-ratio: 4 / 3;
    display: block;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.itm-photo-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.18);
}
.itm-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.itm-photo-item:hover img {
    transform: scale(1.05);
}
.itm-photo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}
.itm-photo-item:hover .itm-photo-overlay {
    background: rgba(0,0,0,0.35);
}
.itm-photo-overlay-icon {
    color: #fff;
    font-size: 28px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.itm-photo-item:hover .itm-photo-overlay-icon {
    opacity: 1;
}

.itm-photo-divider {
    border: none;
    border-top: 1px dashed #ddd;
    margin: 35px 0 5px;
}

/* ---------- EARTHING SECTION ---------- */
.earthing-results-section {
    padding: 80px 0;
    background: #0f1923;
}
.earthing-results-section .itm-sec-title h2 {
    color: #fff;
}
.earthing-results-section .itm-sec-title p {
    color: rgba(255,255,255,0.55);
}
.earthing-results-section .itm-sec-title .sub-label {
    color: #eb7e24;
}

.chambers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.chamber-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 26px;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.chamber-card:hover {
    transform: translateY(-6px);
    border-color: #eb7e24;
    box-shadow: 0 12px 30px rgba(235,126,36,0.15);
}
.chamber-tag {
    font-size: 11px;
    font-weight: 700;
    color: #eb7e24;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
}
.chamber-location {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 20px;
    line-height: 1.5;
}
.chamber-readings-row {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}
.reading-pill {
    flex: 1;
    background: rgba(0,0,0,0.35);
    border-radius: 10px;
    padding: 12px 10px;
    text-align: center;
}
.reading-pill .pill-label {
    font-size: 9.5px;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 5px;
}
.reading-pill .pill-value {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}
.reading-pill.before .pill-value { color: #ff6b6b; }
.reading-pill.after .pill-value { color: #4caf50; }

.chamber-photo-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.chamber-photo-pair img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    border: 1px solid rgba(255,255,255,0.08);
}
.chamber-photo-label {
    font-size: 10px;
    color: rgba(255,255,255,0.35);
    text-align: center;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---------- RESULTS SUMMARY ---------- */
.results-summary {
    margin-top: 50px;
    background: rgba(76,175,80,0.08);
    border: 1px solid rgba(76,175,80,0.2);
    border-radius: 14px;
    padding: 30px 35px;
    text-align: center;
}
.results-summary h3 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}
.results-summary p {
    font-size: 15px;
    color: rgba(255,255,255,0.6);
    margin: 0;
    line-height: 1.7;
}
.results-summary .check-icon {
    font-size: 40px;
    color: #4caf50;
    margin-bottom: 12px;
    display: block;
}

/* ---------- BACK BUTTON ---------- */
.project-back-wrap {
    padding: 50px 0;
    background: #f8f9fa;
    text-align: center;
}
.btn-back-projects {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #eb7e24;
    color: #fff;
    padding: 15px 38px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.3s, transform 0.25s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(235,126,36,0.35);
}
.btn-back-projects:hover {
    background: #cf6f1e;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(235,126,36,0.45);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .project-overview-grid {
        grid-template-columns: 1fr;
    }
    .project-info-card {
        position: static;
    }
    .chambers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .project-hero-title { font-size: 30px; }
    .project-hero-subtitle { font-size: 18px; }
    .itm-photo-grid { grid-template-columns: repeat(2, 1fr); }
    .chambers-grid { grid-template-columns: 1fr; }
    .project-hero-meta { gap: 18px; }
}
@media (max-width: 480px) {
    .project-hero-title { font-size: 24px; }
    .itm-photo-grid { grid-template-columns: 1fr; }
    .chamber-readings-row { flex-direction: column; }
}
