/* =============================================
   PORTFOLIO PAGE CSS - PT. AFNAN DEVA TEKHNIK
   ============================================= */

/* ── PAGE HERO ── */
.page-hero {
    background: var(--dark);
    padding: 140px 5% 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(232, 119, 34, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(232, 119, 34, 0.06) 1px, transparent 1px);
    background-size: 40px 40px;
}
.page-hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--orange), transparent);
}
.page-hero-inner {
    position: relative;
    z-index: 1;
}
.page-hero h1 {
    font-size: clamp(36px, 5vw, 60px);
    color: var(--white);
    letter-spacing: 2px;
    margin: 12px 0;
}
.page-hero h1 span {
    color: var(--orange);
}
.page-hero p {
    font-size: 16px;
    color: #aaa;
    max-width: 600px;
    margin: 14px auto 0;
    line-height: 1.7;
}
.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}
.breadcrumb a {
    color: var(--orange);
    font-size: 13px;
    font-family: "Oswald", sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.breadcrumb span {
    color: #555;
    font-size: 13px;
}
.breadcrumb .current {
    color: #aaa;
}

/* ── STATS HERO STRIP ── */
.portfolio-stats {
    background: var(--orange);
    padding: 36px 5%;
}
.portfolio-stats-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}
.pstat-num {
    font-family: "Oswald", sans-serif;
    font-size: 44px;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}
.pstat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 6px;
}

/* ── FILTER TABS ── */
.filter-section {
    padding: 50px 5% 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.filter-btn {
    font-family: "Oswald", sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 10px 22px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.25s;
    border: 1px solid var(--light-gray);
    background: var(--white);
    color: var(--gray);
}
.filter-btn:hover,
.filter-btn.active {
    background: var(--orange);
    color: var(--white);
    border-color: var(--orange);
}

/* ── PROJECT TABLE ── */
.projects-section {
    padding: 40px 5% 90px;
    max-width: 1200px;
    margin: 0 auto;
}
.projects-table-wrap {
    overflow-x: auto;
    border-radius: 6px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}
.projects-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}
.projects-table thead {
    background: var(--dark);
    color: var(--white);
}
.projects-table thead th {
    font-family: "Oswald", sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 18px 20px;
    text-align: left;
    white-space: nowrap;
}
.projects-table thead th:first-child {
    color: var(--orange);
    width: 50px;
}
.projects-table tbody tr {
    border-bottom: 1px solid var(--light-gray);
    transition: background 0.2s;
}
.projects-table tbody tr:hover {
    background: var(--off-white);
}
.projects-table tbody tr.hidden {
    display: none;
}
.projects-table td {
    padding: 16px 20px;
    font-size: 14px;
    color: var(--dark2);
    vertical-align: middle;
}
.projects-table td:first-child {
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    color: var(--orange);
    font-size: 16px;
}
.projects-table td.project-name {
    font-weight: 700;
    color: var(--dark);
    font-size: 14.5px;
}
.year-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-family: "Oswald", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
}
.year-2022 {
    background: rgba(100, 150, 255, 0.12);
    color: #5588ee;
}
.year-2023 {
    background: rgba(100, 200, 100, 0.12);
    color: #44aa55;
}
.year-2024 {
    background: rgba(232, 119, 34, 0.12);
    color: var(--orange);
}
.year-2025 {
    background: rgba(220, 50, 50, 0.12);
    color: #cc4444;
}

.scope-tag {
    display: inline-block;
    background: var(--off-white);
    color: var(--gray);
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 3px;
    border-left: 2px solid var(--orange);
}

/* ── PROJECT CARDS GRID ── */
.projects-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin-top: 40px;
}
.project-card {
    background: var(--white);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
    transition: all 0.3s;
    border-bottom: 4px solid transparent;
}
.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    border-bottom-color: var(--orange);
}
.project-card.hidden {
    display: none;
}
.project-card-head {
    background: var(--dark);
    padding: 22px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.project-card-icon {
    width: 50px;
    height: 50px;
    background: var(--orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.project-card-title {
    font-family: "Oswald", sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.5px;
    line-height: 1.3;
}
.project-card-body {
    padding: 20px 24px;
}
.project-card-scope {
    font-size: 13.5px;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 14px;
}
.project-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--light-gray);
}
.project-location {
    font-size: 12px;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 4px;
}
.project-location::before {
    content: "📍";
    font-size: 11px;
}

/* ── VIEW TOGGLE ── */
.view-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    justify-content: flex-end;
}
.view-btn {
    width: 38px;
    height: 38px;
    border: 1px solid var(--light-gray);
    background: var(--white);
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s;
    color: var(--gray);
}
.view-btn.active,
.view-btn:hover {
    background: var(--orange);
    color: var(--white);
    border-color: var(--orange);
}

/* ── TIMELINE ── */
.timeline-section {
    background: var(--off-white);
    padding: 80px 5%;
}
.timeline-inner {
    max-width: 900px;
    margin: 0 auto;
}
.timeline {
    position: relative;
    margin-top: 50px;
}
.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(
        to bottom,
        var(--orange),
        rgba(232, 119, 34, 0.2)
    );
    transform: translateX(-50%);
}
.timeline-year {
    margin-bottom: 50px;
}
.timeline-year-label {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}
.timeline-year-badge {
    background: var(--orange);
    color: var(--white);
    font-family: "Oswald", sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 3px;
    padding: 8px 28px;
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(232, 119, 34, 0.4);
}
.timeline-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.timeline-item {
    display: flex;
    gap: 0;
    position: relative;
    align-items: flex-start;
}
.timeline-item:nth-child(odd) {
    flex-direction: row;
}
.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}
.timeline-content {
    width: calc(50% - 30px);
    background: var(--white);
    border-radius: 6px;
    padding: 18px 22px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
    border-left: 4px solid var(--orange);
}
.timeline-item:nth-child(even) .timeline-content {
    border-left: none;
    border-right: 4px solid var(--orange);
}
.timeline-content:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
    transform: translateX(4px);
}
.timeline-item:nth-child(even) .timeline-content:hover {
    transform: translateX(-4px);
}
.timeline-dot {
    width: 18px;
    height: 18px;
    background: var(--orange);
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px var(--orange);
    position: absolute;
    left: calc(50% - 9px);
    top: 18px;
    z-index: 2;
    flex-shrink: 0;
}
.timeline-spacer {
    width: calc(50% - 30px);
}
.timeline-content h4 {
    font-size: 15px;
    color: var(--dark);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}
.timeline-content p {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.6;
}

/* ── CLIENTS / PARTNERS ── */
.clients-section {
    background: var(--dark);
    padding: 80px 5%;
}
.clients-inner {
    max-width: 1100px;
    margin: 0 auto;
}
.clients-inner .section-header h2 {
    color: var(--white);
}
.clients-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 10px;
}
.client-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 28px 20px;
    text-align: center;
    transition: all 0.3s;
    cursor: default;
}
.client-card:hover {
    background: rgba(232, 119, 34, 0.1);
    border-color: var(--orange);
    transform: translateY(-4px);
}
.client-logo {
    font-size: 36px;
    margin-bottom: 12px;
    display: block;
}
.client-name {
    font-family: "Oswald", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.client-type {
    font-size: 11px;
    color: #666;
    letter-spacing: 1px;
}

/* ── COVERAGE MAP ── */
.coverage-section {
    padding: 80px 5%;
    background: var(--section-bg);
}
.coverage-inner {
    max-width: 1100px;
    margin: 0 auto;
}
.coverage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
    margin-top: 30px;
}
.coverage-list h3 {
    font-size: 20px;
    color: var(--dark);
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--orange);
}
.coverage-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.coverage-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--white);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    border-left: 4px solid transparent;
}
.coverage-item:hover {
    border-left-color: var(--orange);
    transform: translateX(6px);
}
.coverage-pin {
    font-size: 22px;
    flex-shrink: 0;
}
.coverage-item p {
    font-family: "Oswald", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    letter-spacing: 0.5px;
}
.coverage-item small {
    display: block;
    font-size: 12px;
    color: var(--gray);
    font-family: "Lato", sans-serif;
    font-weight: 400;
    margin-top: 2px;
}
.coverage-highlight {
    background: var(--dark);
    border-radius: 8px;
    padding: 36px;
    color: var(--white);
}
.coverage-highlight h3 {
    font-size: 22px;
    color: var(--white);
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 3px solid var(--orange);
}
.highlight-item {
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.highlight-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.highlight-icon {
    width: 46px;
    height: 46px;
    background: var(--orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.highlight-item h4 {
    font-size: 15px;
    color: var(--white);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.highlight-item p {
    font-size: 13px;
    color: #999;
    line-height: 1.5;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .projects-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .portfolio-stats-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .projects-cards {
        grid-template-columns: 1fr;
    }
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .coverage-grid {
        grid-template-columns: 1fr;
    }
    .timeline::before {
        left: 20px;
    }
    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: row;
    }
    .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: calc(100% - 50px);
        border-left: 4px solid var(--orange);
        border-right: none;
        margin-left: 50px;
    }
    .timeline-dot {
        left: 11px;
    }
    .timeline-spacer {
        display: none;
    }
    .timeline-content:hover,
    .timeline-item:nth-child(even) .timeline-content:hover {
        transform: none;
    }
}
@media (max-width: 480px) {
    .clients-grid {
        grid-template-columns: 1fr 1fr;
    }
    .portfolio-stats-inner {
        grid-template-columns: 1fr 1fr;
    }
}

/* ── CARD THUMBNAIL (NEW) ── */
.project-card-thumb {
    position: relative;
    width: 100%;
    height: 190px;
    overflow: hidden;
    background: var(--dark2);
}
.project-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.project-card:hover .project-card-thumb img {
    transform: scale(1.06);
}
.project-card-thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(232, 119, 34, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}
.project-card:hover .project-card-thumb-overlay {
    opacity: 1;
}
.project-card-thumb-cta {
    color: var(--white);
    font-family: "Oswald", sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ── STATUS BADGE ── */
.project-status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-family: "Oswald", sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 3px;
}
.status-selesai {
    background: #16a34a;
    color: #fff;
}
.status-sedang-berlangsung {
    background: #e87722;
    color: #fff;
}
.status-tertunda {
    background: #e84022;
    color: #fff;
}

/* ── DETAIL LINK BUTTON (TABLE) ── */
.detail-link-btn {
    display: inline-block;
    padding: 6px 14px;
    background: var(--orange);
    color: var(--white);
    font-family: "Oswald", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 3px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}
.detail-link-btn:hover {
    background: var(--orange-dark);
}
