/* =====================================================
   PROJECT DETAIL PAGE — Dedicated Stylesheet
   Premium university-grade project showcase
   ===================================================== */

/* ---- Page Layout ---- */
.pd-page-wrapper {
    min-height: 100vh;
    background: var(--paper-white);
    padding-top: 85px;
    padding-bottom: 4rem;
}

/* ---- Hero Section ---- */
.pd-hero {
    position: relative;
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 0 1.5rem;
}

.pd-hero-banner {
    position: relative;
    width: 100%;
    border-radius: 24px;
    background: var(--portal-canvas);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 44, 73, 0.25);
    overflow: hidden;
    margin-bottom: 2rem;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.pd-hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(39, 163, 255, 0.15), transparent 70%);
    pointer-events: none;
}

.pd-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.pd-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--cloud-blue);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
}

.pd-meta-status {
    font-size: 0.75rem;
}

.pd-meta-status.status-deployed {
    background: rgba(67, 174, 71, 0.15); /* Transformation */
    color: var(--transformation);
    border: 1px solid rgba(67, 174, 71, 0.3);
}

.pd-meta-status.status-in-development {
    background: rgba(249, 68, 13, 0.15); /* Catalyst Orange */
    color: var(--catalyst-orange);
    border: 1px solid rgba(249, 68, 13, 0.3);
}

.pd-meta-status.status-completed {
    background: rgba(14, 165, 233, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(14, 165, 233, 0.18);
}

.pd-hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.75rem;
    line-height: 1.15;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 2;
}

.pd-hero-tagline {
    color: var(--cloud-blue);
    font-size: 1.1rem;
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.pd-hero-actions {
    margin-top: 1.5rem;
    position: relative;
    z-index: 2;
}

.pd-visit-website-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--digital-blue);
    color: var(--white);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
    border: none;
    box-shadow: 0 4px 12px rgba(39, 163, 255, 0.2);
}

.pd-visit-website-btn:hover {
    background-color: #1a8ce6;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(39, 163, 255, 0.3);
}


/* ---- Navigation Buttons ---- */
.pd-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 2.5rem;
    padding: 0 1.5rem;
    gap: 1rem;
}

.pd-nav-left,
.pd-nav-right {
    display: flex;
    gap: 0.75rem;
}

.pd-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: var(--white);
    border: 1px solid var(--hairline-slate);
    border-radius: 8px;
    color: var(--slate-text);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.pd-nav-btn:hover {
    background: var(--paper-white);
    border-color: var(--steel-slate);
    color: var(--crucible-core);
}

.pd-nav-btn i {
    font-size: 0.75rem;
}

.pd-nav-btn.disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* ---- Content Layout ---- */
.pd-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.pd-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.pd-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* ---- Card Base ---- */
.pd-card {
    background: var(--white);
    border: 1px solid var(--hairline-slate);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,44,73,0.03);
    transition: box-shadow 0.3s ease;
}

.pd-card:hover {
    box-shadow: 0 8px 24px rgba(0,44,73,0.08);
}

.pd-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.pd-card-header i {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.9rem;
    background: var(--paper-white);
    color: var(--crucible-core);
}

.pd-card-header.blue i { background: rgba(39, 163, 255, 0.15); color: var(--digital-flow); }
.pd-card-header.green i { background: rgba(67, 174, 71, 0.15); color: var(--transformation); }
.pd-card-header.amber i { background: rgba(249, 68, 13, 0.15); color: var(--catalyst-orange); }
.pd-card-header.teal i { background: rgba(0, 44, 73, 0.1); color: var(--crucible-core); }

.pd-card-header h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--crucible-core);
}

/* ---- Overview Section ---- */
.pd-overview-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pd-overview-block h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--steel-slate);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pd-overview-block p {
    color: var(--slate-text);
    font-size: 0.95rem;
    line-height: 1.7;
    font-family: 'Outfit', sans-serif;
}

/* ---- Project Timeline ---- */
.pd-timeline {
    position: relative;
    padding-left: 2rem;
}
.pd-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: var(--hairline-slate);
}
.pd-timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}
.pd-timeline-item:last-child {
    margin-bottom: 0;
}
.pd-timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--steel-slate);
    z-index: 1;
}
.pd-timeline-item.status-Completed::before {
    border-color: var(--transformation);
    background: var(--transformation);
}
.pd-timeline-item.status-Current::before {
    border-color: var(--digital-flow);
    background: var(--white);
}
.pd-timeline-date {
    font-size: 0.8rem;
    color: var(--steel-slate);
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.pd-timeline-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--crucible-core);
    font-family: 'Space Grotesk', sans-serif;
}
.pd-timeline-item.status-Upcoming .pd-timeline-title {
    color: var(--steel-slate);
}
.pd-timeline-empty {
    font-size: 0.9rem;
    color: var(--steel-slate);
    font-style: italic;
}

/* ---- Screenshots Gallery ---- */
.pd-screenshots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.pd-screenshot-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--hairline-slate);
    background: var(--paper-white);
    transition: all 0.3s ease;
}

.pd-screenshot-item:hover {
    border-color: var(--digital-flow);
    box-shadow: 0 4px 12px rgba(39, 163, 255, 0.15);
}

.pd-screenshot-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.pd-screenshot-item:hover img {
    transform: scale(1.05);
}

.pd-screenshot-item::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    inset: 0;
    background: rgba(0, 44, 73, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.pd-screenshot-item:hover::after {
    opacity: 1;
}

/* ---- Team Section ---- */
.pd-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}

.pd-hero-visit-btn {
    display: inline-block;
    padding: 10px 24px;
    background: #27A3FF;
    color: white;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background-color 0.2s ease, transform 0.2s ease;
    margin-top: 20px;
    box-shadow: 0 4px 6px rgba(39, 163, 255, 0.2);
}

.pd-hero-visit-btn:hover {
    background: #1F8BE0;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(39, 163, 255, 0.3);
    color: white;
}

.pd-team-card {
    background: var(--paper-white);
    border: 1px solid var(--hairline-slate);
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.2s ease;
}

.pd-team-card:hover {
    border-color: var(--digital-flow);
    transform: translateY(-2px);
}

.pd-team-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 0.85rem;
    display: block;
    border: 2px solid var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.pd-team-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--crucible-core);
    margin-bottom: 0.25rem;
}

.pd-team-role {
    color: var(--slate-text);
    font-size: 0.75rem;
    font-family: 'Outfit', sans-serif;
}

.pd-team-reg {
    color: var(--steel-slate);
    font-size: 0.7rem;
    font-family: 'Outfit', sans-serif;
    margin-top: 0.2rem;
}

.pd-team-empty {
    color: var(--steel-slate);
    font-size: 0.9rem;
    font-family: 'Outfit', sans-serif;
    text-align: center;
    padding: 1.5rem;
}

/* ---- Faculty Section ---- */
.pd-faculty-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.pd-faculty-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.pd-faculty-info h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--crucible-core);
    margin-bottom: 0.25rem;
}

.pd-faculty-designation {
    color: var(--slate-text);
    font-size: 0.85rem;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 0.35rem;
}

.pd-faculty-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.65rem;
    background: var(--paper-white);
    border: 1px solid var(--hairline-slate);
    border-radius: 50px;
    color: var(--steel-slate);
    font-size: 0.7rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
}

/* ---- Technologies Section ---- */
.pd-tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pd-tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    background: var(--paper-white);
    color: var(--crucible-core);
    border: 1px solid var(--hairline-slate);
    transition: all 0.2s ease;
}

.pd-tech-badge:hover {
    background: var(--digital-flow);
    color: var(--white);
    border-color: var(--digital-flow);
    transform: translateY(-1px);
}

/* ---- Info Table ---- */
.pd-info-table {
    width: 100%;
}

.pd-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--hairline-slate);
}

.pd-info-row:last-child {
    border-bottom: none;
}

.pd-info-label {
    color: var(--slate-text);
    font-size: 0.85rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

.pd-info-value {
    color: var(--crucible-core);
    font-size: 0.85rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    text-align: right;
}

.pd-info-value a {
    color: var(--digital-flow);
    text-decoration: none;
    transition: color 0.2s;
}

.pd-info-value a:hover {
    color: var(--crucible-core);
}

/* ---- Features Section ---- */
.pd-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
}

.pd-feature-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 0.85rem;
    background: var(--paper-white);
    border: 1px solid var(--hairline-slate);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.pd-feature-item:hover {
    border-color: var(--digital-flow);
}

.pd-feature-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(67, 174, 71, 0.15);
    color: var(--transformation);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    flex-shrink: 0;
}

.pd-feature-text {
    color: var(--slate-text);
    font-size: 0.85rem;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
}

/* ---- Footer Navigation ---- */
.pd-footer-nav {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding: 2rem 1.5rem 0;
    border-top: 1px solid var(--hairline-slate);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pd-footer-nav-group {
    display: flex;
    gap: 0.75rem;
}

/* ---- Lightbox ---- */
.pd-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.pd-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.pd-lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.pd-lightbox.active .pd-lightbox-img {
    transform: scale(1);
}

.pd-lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.pd-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.pd-lightbox-prev,
.pd-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.pd-lightbox-prev { left: 1.5rem; }
.pd-lightbox-next { right: 1.5rem; }

.pd-lightbox-prev:hover,
.pd-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.15);
}

.pd-lightbox-counter {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    font-family: 'Outfit', sans-serif;
}

/* ---- 404 / Not Found State ---- */
.pd-not-found {
    text-align: center;
    padding: 8rem 2rem;
}

.pd-not-found i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.08);
    margin-bottom: 1.5rem;
}

.pd-not-found h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.75rem;
}

.pd-not-found p {
    color: rgba(255, 255, 255, 0.3);
    font-size: 1rem;
    margin-bottom: 2rem;
    font-family: 'Outfit', sans-serif;
}

.pd-not-found a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(14, 165, 233, 0.25);
    border-radius: 50px;
    color: #7dd3fc;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.pd-not-found a:hover {
    background: rgba(14, 165, 233, 0.2);
    transform: translateY(-2px);
}

/* ---- Responsive ---- */
@media (max-width: 992px) {
    .pd-content {
        grid-template-columns: 1fr;
    }

    .pd-hero-title {
        font-size: 2.2rem;
    }

    .pd-hero-banner {
        min-height: 280px;
    }
}

@media (max-width: 768px) {
    .pd-page-wrapper {
        padding-top: 90px;
    }

    .pd-hero-banner {
        min-height: 220px;
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }

    .pd-hero-overlay {
        padding: 1.25rem 1.5rem;
    }

    .pd-hero-title {
        font-size: 1.8rem;
    }

    .pd-hero-tagline {
        font-size: 0.9rem;
    }

    .pd-nav-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .pd-nav-left,
    .pd-nav-right {
        justify-content: center;
    }

    .pd-card {
        padding: 1.5rem;
        border-radius: 14px;
    }

    .pd-screenshots-grid {
        grid-template-columns: 1fr;
    }

    .pd-team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pd-features-grid {
        grid-template-columns: 1fr;
    }

    .pd-footer-nav {
        flex-direction: column;
        gap: 1rem;
    }

    .pd-footer-nav-group {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .pd-hero-banner {
        min-height: 180px;
    }

    .pd-hero-title {
        font-size: 1.5rem;
    }

    .pd-team-grid {
        grid-template-columns: 1fr 1fr;
    }

    .pd-faculty-card {
        flex-direction: column;
        text-align: center;
    }

    .pd-nav-btn {
        padding: 0.5rem 0.85rem;
        font-size: 0.75rem;
    }
}
