/* =========================================
   JUSTWEB OS - PORTFOLIO PROJECT PAGE
   portfolio-project.css - portfolio-project.php
   ========================================= */

:root {
    --red: #D93025;
    --red-glow: rgba(217, 48, 37, 0.24);
    --blue: #1A56E8;
    --dark: #0F1117;
    --dark-2: #161B27;
    --off-white: #F7F6F2;
    --white: #FFFFFF;
    --ink: #0E1018;
    --ink-soft: #6B7280;
    --ink-mid: #374151;
    --font-b: 'Plus Jakarta Sans', sans-serif;
    --font-m: 'IBM Plex Mono', monospace;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

body {
    font-family: var(--font-b);
    overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.mono { font-family: var(--font-m); }

.container-wide {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 44px;
}

.pp-main {
    background: var(--off-white);
    color: var(--ink);
}

.pp-hero {
    position: relative;
    background: var(--dark);
    color: #fff;
    padding: 182px 0 86px;
    overflow: hidden;
}

.pp-hero__media,
.pp-hero__media img,
.pp-hero__scrim {
    position: absolute;
    inset: 0;
}

.pp-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.pp-hero__scrim {
    background:
        linear-gradient(180deg, rgba(15, 17, 23, 0.78) 0%, rgba(15, 17, 23, 0.88) 100%),
        radial-gradient(circle at 80% 10%, rgba(26, 86, 232, 0.16), transparent 38%);
}

.pp-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 880px;
}

.pp-back {
    display: inline-flex;
    color: rgba(255, 255, 255, 0.68);
    font-size: 10px;
    letter-spacing: 0.15em;
    margin-bottom: 16px;
}

.pp-chip {
    display: inline-flex;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 10px;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 16px;
}

.pp-title {
    font-size: clamp(42px, 6vw, 88px);
    line-height: 0.98;
    letter-spacing: -0.04em;
    margin: 0 0 16px;
}

.pp-sub {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.66);
    max-width: 760px;
}

.pp-hero__actions {
    margin-top: 32px;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.pp-btn-red {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--red);
    color: #fff;
    border-radius: 8px;
    padding: 14px 24px;
    font-size: 13px;
    font-weight: 700;
    transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.pp-btn-red:hover {
    background: #b82920;
    transform: translateY(-2px);
    box-shadow: 0 14px 34px var(--red-glow);
}

.pp-btn-ghost {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.74);
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.32);
}

.pp-video,
.pp-details,
.pp-gallery,
.pp-related {
    padding: 78px 0;
}

.pp-head {
    margin-bottom: 24px;
}

.pp-h2 {
    margin: 0 0 10px;
    font-size: clamp(28px, 3.4vw, 52px);
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.pp-head p {
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.8;
}

.pp-video__frame {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #05070b;
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.1);
}

.pp-video__frame video {
    width: 100%;
    display: block;
}

.pp-details {
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.pp-details__grid {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 20px;
}

.pp-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.06);
}

.pp-case + .pp-case {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.pp-case h3 {
    margin: 0 0 8px;
    font-size: 15px;
    color: var(--ink-mid);
}

.pp-case p {
    margin: 0;
    line-height: 1.8;
    color: var(--ink-soft);
    font-size: 15px;
}

.pp-meta + .pp-meta {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.pp-meta span {
    display: block;
    font-size: 10px;
    letter-spacing: 0.12em;
    color: var(--ink-soft);
    margin-bottom: 10px;
}

.pp-meta strong {
    display: block;
    font-size: 20px;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.pp-meta p {
    margin: 8px 0 0;
    color: var(--ink-soft);
    line-height: 1.7;
    font-size: 13px;
}

.pp-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.pp-list li {
    position: relative;
    padding-left: 16px;
    color: var(--ink-soft);
    font-size: 14px;
}

.pp-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue);
}

.pp-gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.pp-gallery__item {
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.09);
    background: #f2f4f8;
}

.pp-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 220px;
}

.pp-related {
    background: var(--dark-2);
}

.pp-related .pp-h2,
.pp-related .pp-head p {
    color: #fff;
}

.pp-related .pp-head p {
    color: rgba(255, 255, 255, 0.62);
}

.pp-related__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.pp-related__card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
}

.pp-related__media {
    display: block;
    aspect-ratio: 16 / 10;
}

.pp-related__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pp-related__body {
    padding: 18px;
}

.pp-related__body span {
    display: block;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
    letter-spacing: 0.13em;
}

.pp-related__body h3 {
    margin: 0 0 12px;
    color: #fff;
    line-height: 1.25;
    font-size: 20px;
    letter-spacing: -0.02em;
}

.pp-link {
    color: #9ec0ff;
    border-bottom: 1px solid rgba(158, 192, 255, 0.44);
    font-size: 12px;
}

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    transition-delay: var(--reveal-delay, 0ms);
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1100px) {
    .container-wide { padding: 0 28px; }
    .pp-details__grid { grid-template-columns: 1fr; }
    .pp-gallery__grid,
    .pp-related__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .container-wide { padding: 0 20px; }
    .pp-hero { padding: 160px 0 70px; }
    .pp-hero__actions { flex-direction: column; align-items: flex-start; }
    .pp-video,
    .pp-details,
    .pp-gallery,
    .pp-related { padding: 64px 0; }
    .pp-gallery__grid,
    .pp-related__grid { grid-template-columns: 1fr; }
    .pp-card { padding: 20px; }
}
