:root {
    --pd-bg: #050816;
    --pd-bg-2: #071024;
    --pd-card: rgba(255, 255, 255, 0.078);
    --pd-card-2: rgba(255, 255, 255, 0.055);
    --pd-border: rgba(255, 255, 255, 0.12);
    --pd-border-blue: rgba(34, 211, 238, 0.26);
    --pd-text: #eef5ff;
    --pd-muted: #a8b7d2;
    --pd-soft: #dce7f8;
    --pd-blue: #22d3ee;
    --pd-primary: #3b82f6;
    --pd-purple: #8b5cf6;
    --pd-radius: 30px;
}

.project-details-page {
    min-height: 100vh;
    color: var(--pd-text);
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 0%, rgba(59, 130, 246, 0.26), transparent 32%),
        radial-gradient(circle at 92% 8%, rgba(34, 211, 238, 0.18), transparent 30%),
        radial-gradient(circle at 50% 100%, rgba(139, 92, 246, 0.13), transparent 35%),
        linear-gradient(180deg, #050816 0%, #071025 48%, #050816 100%);
}

.project-details-page * {
    box-sizing: border-box;
}

.pd-container {
    width: min(1220px, calc(100% - 36px));
    margin: 0 auto;
}

/* ===============================
   HERO
================================ */
.pd-hero {
    position: relative;
    padding: 86px 0 62px;
    background-image:
        linear-gradient(90deg, rgba(5, 8, 22, 0.97), rgba(5, 8, 22, 0.72)),
        var(--pd-banner);
    background-size: cover;
    background-position: center;
}

.pd-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5, 8, 22, 0.04), #050816 100%),
        radial-gradient(circle at 85% 20%, rgba(34, 211, 238, 0.18), transparent 35%);
    pointer-events: none;
}

.pd-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.25;
    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, #000, transparent 80%);
    pointer-events: none;
}

.pd-hero-card {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    align-items: end;
    padding: 42px;
    border-radius: 38px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0.045)),
        rgba(255, 255, 255, 0.065);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255,255,255,0.10);
}

.pd-kicker {
    width: fit-content;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 15px;
    border-radius: 999px;
    color: #dcfbff;
    background: rgba(34, 211, 238, 0.11);
    border: 1px solid rgba(34, 211, 238, 0.28);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.pd-kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--pd-blue);
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.9);
}

.pd-hero-content h1 {
    margin: 20px 0 16px;
    max-width: 820px;
    color: #ffffff;
    font-family: 'Space Grotesk', 'Manrope', sans-serif;
    font-size: clamp(46px, 5vw, 78px);
    line-height: 1.02;
    font-weight: 700;
    letter-spacing: -2.4px;
}

.pd-hero-content p {
    max-width: 790px;
    margin: 0;
    color: #b9c6dd;
    font-size: 17px;
    line-height: 1.9;
    font-weight: 500;
}

.pd-tech-list,
.project-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 24px;
}

.pd-tech-list span,
.project-tech-list span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 13px;
    border-radius: 999px;
    color: #dce7f8;
    background: rgba(255, 255, 255, 0.078);
    border: 1px solid rgba(255, 255, 255, 0.105);
    font-size: 12px;
    font-weight: 850;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.pd-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 30px;
}

.pd-btn {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 17px;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 900;
    transition: 0.25s ease;
    border: 0;
    position: relative;
    overflow: hidden;
}

.pd-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.18), transparent);
    transform: translateX(-120%);
    transition: 0.5s ease;
}

.pd-btn:hover::after {
    transform: translateX(120%);
}

.pd-btn:hover {
    transform: translateY(-3px);
}

.pd-btn-primary {
    color: #ffffff !important;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    box-shadow: 0 18px 45px rgba(59, 130, 246, 0.34);
}

.pd-btn-outline {
    color: #eef5ff !important;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.13);
}

.pd-price-card {
    position: relative;
    overflow: hidden;
    padding: 26px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.19), transparent 42%),
        linear-gradient(135deg, rgba(255,255,255,0.09), rgba(255,255,255,0.035)),
        rgba(8, 13, 31, 0.86);
    border: 1px solid rgba(34, 211, 238, 0.24);
    box-shadow:
        0 22px 60px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255,255,255,0.09);
}

.pd-price-card::after {
    content: "";
    position: absolute;
    right: -44px;
    bottom: -44px;
    width: 130px;
    height: 130px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.16);
    filter: blur(4px);
}

.pd-price-card span {
    display: block;
    color: var(--pd-blue);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.pd-price-card strong {
    position: relative;
    z-index: 2;
    display: block;
    color: #ffffff;
    font-family: 'Space Grotesk', 'Manrope', sans-serif;
    font-size: 38px;
    line-height: 1.1;
    font-weight: 700;
}

.pd-price-card p {
    position: relative;
    z-index: 2;
    margin: 13px 0 0;
    color: #a8b7d2;
    font-size: 14px;
    line-height: 1.7;
}

.pd-price-hidden strong {
    font-size: 29px;
}

/* ===============================
   SECTIONS
================================ */
.pd-section {
    padding: 78px 0;
}

.pd-section-head {
    max-width: 850px;
    text-align: center;
    margin: 0 auto 40px;
}

.pd-section-head h2,
.pd-content-card h2 {
    margin: 14px 0;
    color: #ffffff;
    font-family: 'Space Grotesk', 'Manrope', sans-serif;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -1.3px;
}

.pd-section-head p {
    margin: 0;
    color: #9aa8c3;
    font-size: 16px;
    line-height: 1.85;
}

/* ===============================
   PROJECT LIST
================================ */
.project-list-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}

.project-list-card {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.095), rgba(255,255,255,0.035));
    border: 1px solid rgba(255, 255, 255, 0.13);
    box-shadow: 0 24px 65px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(17px);
    transition: 0.28s ease;
}

.project-list-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background:
        radial-gradient(circle at 20% 10%, rgba(34, 211, 238, 0.14), transparent 30%),
        radial-gradient(circle at 80% 0%, rgba(139, 92, 246, 0.14), transparent 30%);
    transition: 0.28s ease;
    pointer-events: none;
}

.project-list-card:hover {
    transform: translateY(-7px);
    border-color: rgba(34, 211, 238, 0.30);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.42);
}

.project-list-card:hover::before {
    opacity: 1;
}

.project-list-img {
    position: relative;
    display: block;
    height: 310px;
    overflow: hidden;
    background:
        radial-gradient(circle at 30% 20%, rgba(34, 211, 238, 0.12), transparent 35%),
        #0b1224;
}

.project-list-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 44%, rgba(5, 8, 22, 0.88) 100%),
        linear-gradient(90deg, rgba(5, 8, 22, 0.15), transparent 55%);
    pointer-events: none;
}

.project-list-img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: 0.38s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.project-list-card:hover .project-list-img img {
    transform: scale(1.055);
}

.project-list-body {
    position: relative;
    z-index: 2;
    padding: 26px;
}

.project-list-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.project-price {
    color: var(--pd-blue);
    font-size: 15px;
    font-weight: 950;
    white-space: nowrap;
}

.project-list-body h2 {
    margin: 0 0 12px;
    font-family: 'Space Grotesk', 'Manrope', sans-serif;
    font-size: 30px;
    line-height: 1.14;
    font-weight: 700;
    letter-spacing: -0.8px;
}

.project-list-body h2 a {
    color: #ffffff;
    text-decoration: none;
}

.project-list-body h2 a:hover {
    color: var(--pd-blue);
}

.project-list-body p {
    margin: 0;
    color: #aebbd4;
    font-size: 15px;
    line-height: 1.78;
}

.project-view-btn {
    width: 100%;
    margin-top: 24px;
}

/* ===============================
   DETAILS SLIDER
================================ */
.pd-slider-wrap {
    padding: 13px;
    border-radius: 36px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.11), rgba(255,255,255,0.045));
    border: 1px solid rgba(255, 255, 255, 0.13);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.40);
    backdrop-filter: blur(20px);
}

.pd-slider {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    border-radius: 27px;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 32%),
        radial-gradient(circle at bottom right, rgba(34, 211, 238, 0.13), transparent 32%),
        #081022;
}

.pd-slide {
    display: none;
    position: relative;
    min-height: 650px;
}

.pd-slide.active {
    display: block;
    animation: pdFade 0.45s ease both;
}

.pd-slide img {
    width: 100%;
    height: 650px;
    display: block;
    object-fit: contain;
    object-position: center;
    padding: 36px 36px 132px;
    user-select: none;
    -webkit-user-drag: none;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
}

.pd-slide::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 245px;
    background: linear-gradient(180deg, transparent 0%, rgba(5, 8, 22, 0.98) 76%);
    pointer-events: none;
}

.pd-slide-content {
    position: absolute;
    left: 30px;
    right: 30px;
    bottom: 28px;
    z-index: 3;
    padding: 23px 24px;
    border-radius: 25px;
    background:
        linear-gradient(135deg, rgba(5, 8, 22, 0.84), rgba(10, 18, 38, 0.68));
    border: 1px solid rgba(255, 255, 255, 0.115);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 50px rgba(0,0,0,0.35);
}

.pd-slide-content h3 {
    margin: 0 0 8px;
    color: #ffffff;
    font-family: 'Space Grotesk', 'Manrope', sans-serif;
    font-size: 30px;
    font-weight: 700;
}

.pd-slide-content p {
    max-width: 790px;
    margin: 0;
    color: #dce7f8;
    font-size: 15px;
    line-height: 1.72;
}

.pd-slider-dots {
    position: absolute;
    z-index: 5;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    padding: 9px;
    border-radius: 999px;
    background: rgba(5, 8, 22, 0.64);
    border: 1px solid rgba(255, 255, 255, 0.115);
    backdrop-filter: blur(13px);
}

.pd-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    padding: 0;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.32);
    transition: 0.25s ease;
}

.pd-dot.active {
    width: 32px;
    background: var(--pd-blue);
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.55);
}

/* ===============================
   INFO
================================ */
.pd-info-section {
    padding-top: 26px;
}

.pd-info-grid {
    display: grid;
    grid-template-columns: 1fr 370px;
    gap: 26px;
    align-items: start;
}

.pd-content-card,
.pd-meta-card,
.pd-not-found {
    position: relative;
    padding: 36px;
    border-radius: 32px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.095), rgba(255,255,255,0.04));
    border: 1px solid rgba(255, 255, 255, 0.13);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(17px);
}

.pd-description {
    color: #b9c6dd;
    font-size: 16px;
    line-height: 1.95;
    font-weight: 500;
}

.pd-meta-card h3 {
    margin: 0 0 22px;
    color: #ffffff;
    font-family: 'Space Grotesk', 'Manrope', sans-serif;
    font-size: 25px;
    font-weight: 700;
}

.pd-meta-list {
    display: grid;
    gap: 14px;
}

.pd-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 16px;
    border-radius: 19px;
    background: rgba(255, 255, 255, 0.058);
    border: 1px solid rgba(255, 255, 255, 0.085);
    transition: 0.25s ease;
}

.pd-meta-item:hover {
    transform: translateX(4px);
    border-color: rgba(34, 211, 238, 0.20);
}

.pd-meta-item i {
    width: 44px;
    height: 44px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: var(--pd-blue);
    background: rgba(34, 211, 238, 0.11);
    font-size: 20px;
}

.pd-meta-item span {
    display: block;
    color: #9aa8c3;
    font-size: 12px;
    font-weight: 850;
    margin-bottom: 4px;
}

.pd-meta-item strong {
    display: block;
    color: #ffffff;
    font-size: 15px;
    font-weight: 850;
    line-height: 1.38;
}

.pd-not-found {
    max-width: 620px;
    margin: 40px auto;
    text-align: center;
}

.pd-not-found h1 {
    margin: 0 0 12px;
    color: #ffffff;
    font-family: 'Space Grotesk', 'Manrope', sans-serif;
}

.pd-not-found p {
    color: #aebbd4;
}

.pd-not-found a {
    display: inline-flex;
    margin-top: 14px;
    color: var(--pd-blue);
    text-decoration: none;
    font-weight: 900;
}

@keyframes pdFade {
    from {
        opacity: 0;
        transform: scale(1.012);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 991px) {
    .pd-hero-card,
    .pd-info-grid {
        grid-template-columns: 1fr;
    }

    .pd-hero-card {
        padding: 30px;
    }

    .pd-price-card {
        max-width: 470px;
    }

    .project-list-grid {
        grid-template-columns: 1fr;
    }

    .project-list-img {
        height: 340px;
    }
}

@media (max-width: 767px) {
    .pd-container {
        width: min(100% - 18px, 1220px);
    }

    .pd-hero {
        padding: 46px 0 36px;
    }

    .pd-hero-card {
        padding: 22px;
        border-radius: 27px;
    }

    .pd-hero-content h1 {
        font-size: clamp(35px, 10vw, 48px);
        letter-spacing: -1.3px;
    }

    .pd-hero-content p,
    .pd-section-head p,
    .pd-description {
        font-size: 15px;
    }

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

    .pd-btn {
        width: 100%;
        min-height: 52px;
    }

    .pd-price-card {
        padding: 22px;
        border-radius: 23px;
    }

    .pd-price-card strong {
        font-size: 31px;
    }

    .pd-section {
        padding: 56px 0;
    }

    .pd-section-head {
        margin-bottom: 30px;
    }

    .pd-section-head h2,
    .pd-content-card h2 {
        font-size: clamp(30px, 9vw, 40px);
    }

    .project-list-img {
        height: 260px;
    }

    .project-list-body {
        padding: 21px;
    }

    .project-list-body h2 {
        font-size: 25px;
    }

    .project-list-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .pd-slider-wrap {
        padding: 8px;
        border-radius: 25px;
    }

    .pd-slider,
    .pd-slide {
        min-height: 520px;
        border-radius: 19px;
    }

    .pd-slide img {
        height: 520px;
        padding: 24px 14px 150px;
    }

    .pd-slide-content {
        left: 14px;
        right: 14px;
        bottom: 14px;
        padding: 18px;
        border-radius: 19px;
    }

    .pd-slide-content h3 {
        font-size: 22px;
    }

    .pd-slide-content p {
        font-size: 14px;
    }

    .pd-slider-dots {
        top: 14px;
        right: 14px;
    }

    .pd-content-card,
    .pd-meta-card {
        padding: 23px;
        border-radius: 25px;
    }
}

@media (max-width: 420px) {
    .pd-hero-card {
        padding: 18px;
    }

    .pd-slide img {
        height: 480px;
        padding: 22px 10px 150px;
    }

    .pd-slider,
    .pd-slide {
        min-height: 480px;
    }
}