:root {
    --pc-bg: #0b0b0f;
    --pc-bg-light: #ffffff;
    --pc-text: #1a1a1f;
    --pc-text-muted: #6b6b76;
    --pc-text-light: #f4f4f6;
    --pc-text-light-muted: #b3b3bd;
    --pc-primary: #6d5dfc;
    --pc-secondary: #ff6b9d;
    --pc-gradient: linear-gradient(135deg, var(--pc-primary), var(--pc-secondary));
    --pc-border: #ececf1;
    --pc-border-dark: rgba(255, 255, 255, 0.08);
    --pc-radius: 18px;
    --pc-radius-sm: 10px;
    --pc-shadow: 0 20px 50px rgba(20, 20, 40, 0.08);
    --pc-container: 1180px;
}

.container {
    max-width: var(--pc-container);
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 90px 0; }
.dark-section {
    background: var(--pc-bg);
    color: var(--pc-text-light);
}
.text-center { text-align: center; }

.glass-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--pc-border-dark);
    backdrop-filter: blur(16px);
    border-radius: var(--pc-radius);
}

.hero-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}
.hero-glow.primary-glow { background: var(--pc-primary); top: -100px; left: 50%; transform: translateX(-50%); }

.gradient-title {
    background: var(--pc-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
}
.btn-gradient {
    background: var(--pc-gradient);
    color: #fff;
}
.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(109, 93, 252, 0.4);
}
.btn-lg { padding: 16px 36px; font-size: 17px; }
.btn-sm { padding: 8px 18px; font-size: 14px; }

/* ===== Hero ===== */
.single-hero-section {
    padding: 60px 0 40px;
    background: var(--pc-bg-light);
    text-align: center;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: var(--pc-text-muted);
    margin-bottom: 24px;
}
.breadcrumb a { color: var(--pc-text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--pc-primary); }
.breadcrumb .current { color: var(--pc-text); font-weight: 600; }

.single-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.3;
}

.single-subtitle {
    max-width: 640px;
    margin: 0 auto 40px;
    font-size: 18px;
    color: var(--pc-text-muted);
    line-height: 1.9;
}

/* Meta bar */
.project-meta-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    padding: 28px;
    border: 1px solid var(--pc-border);
    border-radius: var(--pc-radius);
    margin: 0 auto 50px;
    max-width: 900px;
}
.meta-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
}
.meta-col .label {
    font-size: 13px;
    color: var(--pc-text-muted);
}
.meta-col .val {
    font-weight: 700;
    font-size: 15px;
}

/* Browser mockup */
.browser-mockup-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: var(--pc-radius);
    overflow: hidden;
    box-shadow: var(--pc-shadow);
    border: 1px solid var(--pc-border);
}
.browser-top-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: #eeeef2;
}
.dots { display: flex; gap: 8px; }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.browser-url-bar {
    flex: 1;
    background: #fff;
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 13px;
    color: var(--pc-text-muted);
    direction: ltr;
    text-align: center;
}
.browser-content img.hero-mockup-img {
    width: 100%;
    display: block;
}

/* ===== Sticky Nav ===== */
.sticky-nav-bar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--pc-border);
}
.sticky-nav-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    gap: 24px;
}
.sticky-title { font-weight: 700; white-space: nowrap; }
.nav-anchors {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.anchor-link {
    color: var(--pc-text-muted);
    text-decoration: none;
    font-size: 14px;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}
.anchor-link:hover,
.anchor-link.active {
    color: var(--pc-primary);
    border-color: var(--pc-primary);
}

/* ===== Case Sections ===== */
.case-section .grid-2 {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 60px;
}
.section-side { display: flex; flex-direction: column; gap: 10px; }
.section-num {
    font-size: 14px;
    font-weight: 700;
    color: var(--pc-primary);
}
.section-side h2 { font-size: 26px; font-weight: 800; }

.section-main p { line-height: 2; margin-bottom: 18px; color: var(--pc-text-muted); }
.dark-section .section-main p { color: var(--pc-text-light-muted); }
.section-main .large-text {
    font-size: 22px;
    font-weight: 600;
    color: var(--pc-text);
    line-height: 1.8;
    margin-bottom: 24px;
}
.dark-section .section-main .large-text { color: var(--pc-text-light); }

.styled-list { padding-right: 20px; }
.styled-list li {
    margin-bottom: 12px;
    line-height: 1.9;
    color: var(--pc-text-light-muted);
    position: relative;
    padding-right: 20px;
}
.styled-list li::before {
    content: "";
    position: absolute;
    right: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--pc-primary);
}

/* ===== Showcase ===== */
.showcase-section { background: #fafafc; }
.section-header { max-width: 600px; margin: 0 auto 50px; }
.section-header h2 { font-size: 30px; font-weight: 800; margin-bottom: 12px; }
.section-header p { color: var(--pc-text-muted); }

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.showcase-item {
    border-radius: var(--pc-radius-sm);
    overflow: hidden;
    position: relative;
    box-shadow: var(--pc-shadow);
}
.showcase-item.full-width { grid-column: 1 / -1; }
.showcase-item img { width: 100%; display: block; }
.showcase-item .caption {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 14px;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    color: #fff;
    font-size: 13px;
}

/* ===== Results / Stats ===== */
.results-section { position: relative; overflow: hidden; padding: 100px 0; }
.results-section .container { position: relative; z-index: 1; }

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}
.stat-card {
    padding: 32px 20px;
    text-align: center;
    border-radius: var(--pc-radius);
}
.stat-number {
    font-size: 34px;
    font-weight: 800;
    background: var(--pc-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 8px;
}
.stat-label { font-size: 14px; color: var(--pc-text-light-muted); }

.tech-stack-wrap { margin-bottom: 60px; }
.tech-stack-wrap h4 { margin-bottom: 18px; font-weight: 700; }
.tech-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.tech-tag {
    padding: 8px 18px;
    border: 1px solid var(--pc-border-dark);
    border-radius: 999px;
    font-size: 13px;
    color: var(--pc-text-light-muted);
}

.testimonial-card {
    max-width: 700px;
    margin: 0 auto 40px;
    padding: 40px;
    text-align: center;
}
.quote-text {
    font-size: 19px;
    line-height: 2;
    color: var(--pc-text-light);
    margin-bottom: 20px;
}
.author-info strong { display: block; color: #fff; }
.author-info span { font-size: 13px; color: var(--pc-text-light-muted); }

.live-btn-wrap { margin-top: 20px; }

/* ===== Prev / Next Nav ===== */
.project-nav-section { border-top: 1px solid var(--pc-border); }
.project-nav-flex {
    display: flex;
    justify-content: space-between;
    padding: 40px 0;
}
.nav-proj-card {
    text-decoration: none;
    color: var(--pc-text);
    max-width: 45%;
}
.nav-proj-card .nav-dir {
    display: block;
    font-size: 13px;
    color: var(--pc-text-muted);
    margin-bottom: 6px;
}
.nav-proj-card.next { text-align: left; }
.nav-proj-title { font-size: 18px; font-weight: 700; transition: color 0.2s; }
.nav-proj-card:hover .nav-proj-title { color: var(--pc-primary); }

/* ===== Final CTA ===== */
.cta-section {
    background: #fafafc;
    text-align: center;
}
.cta-section h2 { font-size: 30px; font-weight: 800; margin-bottom: 12px; }
.cta-section p { color: var(--pc-text-muted); margin-bottom: 28px; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .case-section .grid-2 { grid-template-columns: 1fr; gap: 24px; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .showcase-grid { grid-template-columns: 1fr; }
    .sticky-nav-flex { flex-wrap: wrap; }
    .nav-anchors { order: 3; width: 100%; justify-content: center; }
}
@media (max-width: 600px) {
    .stats-row { grid-template-columns: 1fr; }
    .project-nav-flex { flex-direction: column; gap: 20px; }
    .nav-proj-card, .nav-proj-card.next { max-width: 100%; text-align: right; }
}
