/* ════════════════════════════════════════════
   PROJECT DETAIL - shared styles
════════════════════════════════════════════ */

/* ── Hero ─────────────────────────────────── */
.pd-hero {
    background: #0b0e13;
    position: relative;
    overflow: hidden;
    padding: 140px 0 72px;
}
.pd-hero__bg { position: absolute; inset: 0; pointer-events: none; }
.pd-hero__glow {
    position: absolute; border-radius: 50%; filter: blur(90px);
}
.pd-hero__glow--1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(8,214,101,.14) 0%, transparent 70%);
    top: -120px; left: -80px;
}
.pd-hero__glow--2 {
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(99,102,241,.1) 0%, transparent 70%);
    bottom: -80px; right: 4%;
}
.pd-hero__grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.026) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,.026) 1px, transparent 1px);
    background-size: 44px 44px;
}
.pd-hero__ring {
    position: absolute; border-radius: 50%;
    border: 1px solid rgba(8,214,101,.07);
}
.pd-hero__ring--1 { width: 480px; height: 480px; top: -180px; right: 5%; }
.pd-hero__ring--2 { width: 260px; height: 260px; top: -50px; right: 12%; }

.pd-hero__inner { position: relative; z-index: 1; }

.pd-hero__label {
    display: inline-block;
    font-family: 'Raleway', sans-serif;
    font-size: 10px; font-weight: 700; letter-spacing: 3px;
    color: #08d665;
    background: rgba(8,214,101,.08);
    border: 1px solid rgba(8,214,101,.2);
    border-radius: 999px;
    padding: 6px 16px;
    margin-bottom: 20px;
    text-transform: uppercase;
}
.pd-hero__title {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900; color: #fff;
    line-height: 1.08; margin: 0 0 16px;
    letter-spacing: -1.8px;
}
.pd-hero__title span { color: #08d665; }
.pd-hero__tagline {
    font-family: 'Raleway', sans-serif;
    font-size: 15px; color: rgba(255,255,255,.5);
    max-width: 560px; line-height: 1.7; margin: 0 0 24px;
}
.pd-hero__meta {
    display: flex; flex-wrap: wrap; gap: 10px;
    margin-bottom: 28px;
}
.pd-hero__chip {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: 'Raleway', sans-serif;
    font-size: 12px; font-weight: 600;
    color: rgba(255,255,255,.65);
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 999px;
    padding: 6px 14px;
}
.pd-hero__chip i { color: #08d665; font-size: 11px; }
.pd-hero__live {
    display: inline-flex; align-items: center; gap: 9px;
    font-family: 'Raleway', sans-serif;
    font-size: 13px; font-weight: 700;
    color: #08d665;
    background: rgba(8,214,101,.08);
    border: 1px solid rgba(8,214,101,.28);
    border-radius: 999px;
    padding: 8px 20px;
    text-decoration: none;
    transition: background .22s, color .22s, border-color .22s, box-shadow .22s;
}
.pd-hero__live:hover {
    background: #08d665; color: #fff;
    border-color: #08d665;
    box-shadow: 0 4px 18px rgba(8,214,101,.32);
}
.pd-hero__live i { font-size: 12px; }
.pd-breadcrumb {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: 'Raleway', sans-serif;
    font-size: 13px; font-weight: 600;
}
.pd-breadcrumb a { color: #08d665; text-decoration: none; }
.pd-breadcrumb a:hover { color: #fff; }
.pd-breadcrumb i { color: rgba(255,255,255,.25); font-size: 10px; }
.pd-breadcrumb span { color: rgba(255,255,255,.35); }

/* ── Gallery ──────────────────────────────── */
.pd-gallery {
    background: #ffffff;
    padding: 72px 0;
    border-top: 1px solid rgba(0,0,0,.06);
}
.pd-gallery__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 20px;
    align-items: stretch;
}
.pd-gallery__main {
    border-radius: 20px;
    overflow: hidden;
    height: 420px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 8px 32px rgba(0,0,0,.1);
    transition: transform .4s ease, box-shadow .4s ease;
    cursor: zoom-in;
    position: relative;
}
.pd-gallery__main:hover { transform: scale(1.01); box-shadow: 0 16px 44px rgba(0,0,0,.14); }
.pd-gallery__main::after,
.pd-gallery__sm::after {
    content: '\f065';
    font-family: 'Font Awesome 5 Pro';
    font-weight: 300;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    background: rgba(8,214,101,.0);
    border-radius: inherit;
    opacity: 0;
    transition: opacity .25s ease, background .25s ease;
    pointer-events: none;
}
.pd-gallery__main:hover::after,
.pd-gallery__sm:hover::after {
    opacity: 1;
    background: rgba(5,5,12,.45);
}
.pd-gallery__side {
    display: flex; flex-direction: column; gap: 20px;
}
.pd-gallery__sm {
    border-radius: 16px;
    overflow: hidden;
    flex: 1;
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 18px rgba(0,0,0,.08);
    transition: transform .4s ease, box-shadow .4s ease;
    min-height: 140px;
    cursor: zoom-in;
    position: relative;
}
.pd-gallery__sm:hover { transform: scale(1.015); box-shadow: 0 8px 28px rgba(0,0,0,.12); }
/* Single image - full width */
.pd-gallery__grid--single { grid-template-columns: 1fr; }
.pd-gallery__grid--single .pd-gallery__main { height: 460px; }

/* ── Body ─────────────────────────────────── */
.pd-body {
    background: #f5f7fa;
    padding: 80px 0 88px;
    border-top: 1px solid rgba(0,0,0,.06);
}

/* Description (left) */
.pd-desc { padding-right: 24px; }
.pd-desc__label {
    display: inline-block;
    font-family: 'Raleway', sans-serif;
    font-size: 10px; font-weight: 700; letter-spacing: 3px;
    color: #08d665; margin-bottom: 10px;
    text-transform: uppercase;
}
.pd-desc__title {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(22px, 2.8vw, 32px); font-weight: 900;
    color: #0d1117; margin: 0 0 24px; letter-spacing: -.8px;
    line-height: 1.15;
}
.pd-desc p {
    font-family: 'Raleway', sans-serif;
    font-size: 15px; color: #4b5563;
    line-height: 1.8; margin-bottom: 16px;
}
.pd-desc ul {
    list-style: none; padding: 0; margin: 0 0 20px;
}
.pd-desc ul li {
    font-family: 'Raleway', sans-serif;
    font-size: 14px; color: #4b5563;
    line-height: 1.65; margin-bottom: 10px;
    padding-left: 24px; position: relative;
}
.pd-desc ul li::before {
    content: '';
    position: absolute; left: 0; top: 8px;
    width: 8px; height: 8px; border-radius: 50%;
    background: #08d665;
}

/* Sidebar info card (right) */
.pd-sidebar { position: sticky; top: 100px; }
.pd-sidebar__card {
    background: #0d1117;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: 0 12px 40px rgba(0,0,0,.12);
}
.pd-sidebar__title {
    font-family: 'Raleway', sans-serif;
    font-size: 13px; font-weight: 700;
    letter-spacing: 2.5px; text-transform: uppercase;
    color: rgba(255,255,255,.35);
    margin: 0 0 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.pd-sidebar__row {
    display: flex; flex-direction: column; gap: 3px;
    margin-bottom: 18px;
}
.pd-sidebar__row:last-of-type { margin-bottom: 0; }
.pd-sidebar__rlabel {
    font-family: 'Raleway', sans-serif;
    font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
    color: rgba(255,255,255,.3); text-transform: uppercase;
}
.pd-sidebar__rval {
    font-family: 'Poppins', sans-serif;
    font-size: 14px; font-weight: 500;
    color: rgba(255,255,255,.8); line-height: 1.5;
}
.pd-sidebar__rval a {
    color: #08d665; text-decoration: none; font-weight: 600;
}
.pd-sidebar__rval a:hover { color: #fff; }
.pd-sidebar__divider {
    height: 1px;
    background: rgba(255,255,255,.06);
    margin: 20px 0;
}
/* Tech stack tags */
.pd-sidebar__tags {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-bottom: 24px;
}
.pd-sidebar__tag {
    font-family: 'Raleway', sans-serif;
    font-size: 12px; font-weight: 700; letter-spacing: .5px;
    color: #08d665;
    background: rgba(8,214,101,.1);
    border: 1px solid rgba(8,214,101,.2);
    border-radius: 999px;
    padding: 5px 13px;
}
/* CTA buttons in sidebar */
.pd-sidebar__links {
    display: flex; flex-direction: column; gap: 10px;
    margin-top: 24px;
}
.pd-sidebar__btn {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    padding: 13px 20px;
    border-radius: 12px;
    font-family: 'Raleway', sans-serif;
    font-size: 13px; font-weight: 700;
    text-decoration: none;
    transition: background .22s, transform .22s, box-shadow .22s;
}
.pd-sidebar__btn--primary {
    background: #08d665; color: #fff;
    box-shadow: 0 4px 18px rgba(8,214,101,.25);
}
.pd-sidebar__btn--primary:hover {
    background: #06c05a; color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(8,214,101,.35);
}
.pd-sidebar__btn--outline {
    background: transparent; color: rgba(255,255,255,.7);
    border: 1px solid rgba(255,255,255,.12);
}
.pd-sidebar__btn--outline:hover {
    background: rgba(255,255,255,.06); color: #fff;
    border-color: rgba(255,255,255,.2);
}

/* ── Bottom CTA ───────────────────────────── */
.pd-cta {
    background: #ffffff;
    padding: 64px 0;
    border-top: 1px solid rgba(0,0,0,.06);
}
.pd-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px; flex-wrap: wrap;
    background: #0d1117;
    border: 1px solid rgba(8,214,101,.12);
    border-radius: 24px;
    padding: 40px 48px;
    position: relative; overflow: hidden;
}
.pd-cta__inner::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(8,214,101,.06) 0%, transparent 65%);
    pointer-events: none;
}
.pd-cta__text {
    font-family: 'Raleway', sans-serif;
    font-size: 18px; font-weight: 800; color: #fff;
    margin: 0; letter-spacing: -.3px;
    position: relative; z-index: 1;
}
.pd-cta__text span { color: #08d665; }
.pd-cta__actions {
    display: flex; gap: 12px; flex-wrap: wrap;
    position: relative; z-index: 1;
}
.pd-cta__btn-back {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 22px;
    font-family: 'Raleway', sans-serif;
    font-size: 14px; font-weight: 700;
    color: rgba(255,255,255,.65);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px; text-decoration: none;
    transition: color .2s, border-color .2s, background .2s;
}
.pd-cta__btn-back:hover {
    color: #fff; border-color: rgba(255,255,255,.25);
    background: rgba(255,255,255,.05);
}
.pd-cta__btn-contact {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 26px;
    font-family: 'Raleway', sans-serif;
    font-size: 14px; font-weight: 700;
    background: #08d665; color: #fff;
    border-radius: 12px; text-decoration: none;
    transition: background .22s, transform .22s, box-shadow .22s;
    box-shadow: 0 4px 18px rgba(8,214,101,.28);
}
.pd-cta__btn-contact:hover {
    background: #06c05a; color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(8,214,101,.38);
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 991px) {
    .pd-gallery__grid { grid-template-columns: 1fr; }
    .pd-gallery__main { height: 300px; }
    .pd-gallery__side { flex-direction: row; }
    .pd-gallery__sm { min-height: 160px; }
    .pd-sidebar { position: static; margin-top: 48px; }
    .pd-desc { padding-right: 0; }
}
@media (max-width: 767px) {
    .pd-hero { padding: 120px 0 56px; }
    .pd-gallery { padding: 48px 0; }
    .pd-gallery__main { height: 240px; }
    .pd-gallery__side { flex-direction: column; }
    .pd-gallery__sm { min-height: 140px; }
    .pd-body { padding: 56px 0 64px; }
    .pd-cta__inner { flex-direction: column; text-align: center; padding: 32px 24px; }
    .pd-cta__actions { justify-content: center; }
}
