/* ===================================
       NAVBAR SELF-CONTAINED (COMPACT)
       (Style menempel di navbar, anti konflik)
       =================================== */
#siteNavbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: none !important;
    box-shadow: 0 4px 20px rgba(10, 31, 61, 0.1) !important;
    padding: 0.6rem 0 !important;
    transition: box-shadow 0.3s ease, background 0.3s ease !important;
}

/* Saat scroll: bayangan lebih dalam sebagai pemisah */
#siteNavbar.scrolled {
    background: #ffffff !important;
    box-shadow: 0 8px 30px rgba(10, 31, 61, 0.15) !important;
}

#siteNavbar .container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

#siteNavbar .logo {
    text-decoration: none;
}

#siteNavbar .logo img {
    height: 36px;
    width: auto;
}

#siteNavbar .logo-text {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0a1f3d !important;
    letter-spacing: -0.03em;
}

#siteNavbar .logo-text span {
    color: #14b8a6 !important;
    font-weight: 400;
}

/* Hamburger */
#mobileMenuToggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    gap: 5px;
    padding: 8px;
    z-index: 10000;
}

#mobileMenuToggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #0a1f3d !important;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ---------- DESKTOP (> 1024px) ---------- */
@media (min-width: 1025px) {
    #navLinks {
        display: flex !important;
        position: static !important;
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 0.3rem !important;
        align-items: center !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        flex-direction: row !important;
    }

    #navLinks li a {
        color: #1e293b !important;
        font-weight: 500;
        font-size: 0.9rem;
        padding: 0.45rem 1rem;
        border-radius: 100px;
        transition: all 0.3s ease;
        display: inline-block;
        text-decoration: none;
    }

    #navLinks li a:hover {
        background: #f8fafc !important;
        color: #0a1f3d !important;
    }

    #navLinks li a.active {
        background: #0a1f3d !important;
        color: #ffffff !important;
        font-weight: 600;
    }

    #navLinks li a.nav-cta {
        background: #0a1f3d !important;
        color: #ffffff !important;
        font-weight: 600;
        margin-left: 0.4rem;
        padding: 0.5rem 1.3rem !important;
    }

    #navLinks li a.nav-cta:hover {
        background: #132d52 !important;
        color: #ffffff !important;
    }
}

/* ---------- MOBILE (<= 1024px) ---------- */
@media (max-width: 1024px) {
    #mobileMenuToggle {
        display: flex !important;
    }

    #navLinks {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 100% !important;
        height: 100vh !important;
        background: #061229 !important;
        flex-direction: column !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 5rem 2rem 2rem !important;
        gap: 0.5rem !important;
        transition: left 0.35s ease !important;
        z-index: 9998 !important;
        overflow-y: auto;
        list-style: none !important;
    }

    #navLinks.active {
        left: 0 !important;
    }

    #navLinks li {
        width: 100%;
    }

    #navLinks li a {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        font-size: 1.15rem !important;
        color: rgba(255, 255, 255, 0.9) !important;
        padding: 1rem !important;
        border-radius: 12px !important;
        text-decoration: none !important;
    }

    #navLinks li a:hover {
        background: rgba(255, 255, 255, 0.08) !important;
        color: #ffffff !important;
    }

    #navLinks li a.active {
        background: #14b8a6 !important;
        color: #061229 !important;
    }

    #navLinks li a.nav-cta {
        background: #14b8a6 !important;
        color: #061229 !important;
        font-weight: 700 !important;
        margin-top: 1rem;
    }
}

/* ===================================
   PORTFOLIO SINGLE - LARGE CARD STYLE
   Clean & Premium Design
   =================================== */
.portfolio-single {
    max-width: 900px;
    margin: 0 auto;
}

.portfolio-card-large {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(10, 31, 61, 0.06);
}

.portfolio-card-large:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(10, 31, 61, 0.15);
    border-color: var(--teal);
}

/* Image Container - Fix untuk SVG Mockup */
.portfolio-card-image {
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    min-height: 320px;
    overflow: hidden;
}

.portfolio-mockup {
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(10, 31, 61, 0.2));
    transition: transform 0.4s ease;
}

.portfolio-card-large:hover .portfolio-mockup {
    transform: scale(1.04);
}

/* ===================================
   HOVER EFFECT - CINEMATIC REVEAL (PREMIUM)
   =================================== */
.portfolio-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top,
            rgba(6, 18, 41, 0.88) 0%,
            rgba(6, 18, 41, 0.35) 40%,
            transparent 70%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.45s ease;
}

.portfolio-card-large:hover .portfolio-hover-overlay {
    opacity: 1;
}

/* Badge panah ↗ di pojok kanan atas */
.portfolio-hover-overlay::after {
    content: '↗';
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--teal);
    color: var(--navy-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(20, 184, 166, 0.45);
    transform: translateY(-10px) scale(0.85);
    opacity: 0;
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.08s;
}

.portfolio-card-large:hover .portfolio-hover-overlay::after {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* CTA teks dengan garis teal memanjang */
.portfolio-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    transform: translateY(16px);
    opacity: 0;
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-btn::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 32px;
    height: 2px;
    background: var(--teal);
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.12s;
}

.portfolio-card-large:hover .portfolio-btn {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-card-large:hover .portfolio-btn::after {
    width: 100%;
}

/* Zoom sinematik pada mockup */
.portfolio-card-large:hover .portfolio-mockup {
    transform: scale(1.06);
}

/* Content Side */
.portfolio-card-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.portfolio-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.portfolio-badge {
    display: inline-block;
    padding: 5px 12px;
    background: var(--teal-glow);
    color: var(--teal-dark);
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.portfolio-status {
    font-size: 0.8rem;
    font-weight: 600;
    color: #10b981;
}

.portfolio-card-content h3 {
    font-size: 1.75rem;
    color: var(--navy);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.portfolio-card-content p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.portfolio-tech-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.portfolio-tech-preview span {
    padding: 4px 10px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-light);
}

/* Responsive */
@media (max-width: 768px) {
    .portfolio-card-large {
        grid-template-columns: 1fr;
    }

    .portfolio-card-image {
        min-height: 250px;
        padding: 1.5rem;
    }

    .portfolio-mockup {
        max-height: 200px;
    }

    .portfolio-card-content {
        padding: 2rem 1.5rem;
    }

    .portfolio-card-content h3 {
        font-size: 1.5rem;
    }
}

/* ===================================
   PROJECT DETAIL PAGE - PREMIUM DESIGN
   =================================== */

/* --- Project Hero --- */
.project-hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    position: relative;
    overflow: hidden;
}

.project-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2.5rem;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: var(--teal-light);
    gap: 12px;
}

.project-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.project-badges {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.project-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--teal);
    color: var(--navy-dark);
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-badge-live {
    color: #10b981;
    font-size: 0.85rem;
    font-weight: 600;
}

.project-hero h1 {
    color: white;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.25rem;
    line-height: 1.1;
}

.project-tagline {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 650px;
    margin-bottom: 2.5rem;
}

.project-hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.hero-stat-value {
    color: var(--teal-light);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.4rem;
}

.hero-stat-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-weight: 500;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
}

/* --- Project Showcase --- */
.project-showcase {
    padding: 0 0 80px;
    background: linear-gradient(180deg, var(--navy-dark) 0%, var(--bg) 100%);
    margin-top: -40px;
    position: relative;
}

.showcase-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.showcase-mockup {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-xl);
    box-shadow: 0 40px 80px rgba(10, 31, 61, 0.3);
    position: relative;
    z-index: 2;
}

.showcase-glow {
    position: absolute;
    top: 20%;
    left: 10%;
    right: 10%;
    bottom: -10%;
    background: radial-gradient(ellipse, rgba(20, 184, 166, 0.25) 0%, transparent 70%);
    filter: blur(60px);
    z-index: 1;
}

/* --- Project Details Grid --- */
.project-details {
    padding: 60px 0 100px;
}

.project-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Detail Blocks */
.detail-block {
    margin-bottom: 4rem;
}

.detail-block:last-child {
    margin-bottom: 0;
}

.detail-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--teal-dark);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.detail-block h2 {
    font-size: 2rem;
    color: var(--navy);
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.detail-block p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1.02rem;
}

.tech-intro {
    margin-bottom: 1.5rem !important;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-soft);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: white;
    border-color: var(--teal);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(10, 31, 61, 0.08);
}

.feature-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--teal-glow);
    color: var(--teal-dark);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-text h4 {
    color: var(--navy);
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.feature-text p {
    font-size: 0.88rem;
    margin: 0;
    line-height: 1.6;
}

/* Tech Stack Grid */
.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.tech-item {
    padding: 1.25rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.3s ease;
}

.tech-item:hover {
    border-color: var(--teal);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(10, 31, 61, 0.08);
}

.tech-name {
    display: block;
    color: var(--navy);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.tech-role {
    display: block;
    color: var(--text-muted);
    font-size: 0.78rem;
}

/* Process Timeline */
.process-timeline {
    margin-top: 1.5rem;
    position: relative;
}

.process-step {
    display: flex;
    gap: 1.5rem;
    padding-bottom: 2rem;
    position: relative;
}

.process-step:last-child {
    padding-bottom: 0;
}

.process-step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 50px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--teal) 0%, var(--border) 100%);
}

.step-number {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    background: var(--navy);
    color: var(--teal-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

.step-content h4 {
    color: var(--navy);
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    margin-top: 0.5rem;
}

.step-content p {
    font-size: 0.92rem;
    margin: 0;
}

/* --- Sidebar --- */
.project-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.sidebar-card h3 {
    color: var(--navy);
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
}

.info-list {
    display: flex;
    flex-direction: column;
}

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

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

.info-label {
    color: var(--text-light);
    font-size: 0.88rem;
}

.info-value {
    color: var(--navy);
    font-weight: 600;
    font-size: 0.9rem;
    text-align: right;
}

.status-live {
    color: #10b981;
}

/* Sidebar CTA Card */
.sidebar-cta {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    border: none;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sidebar-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.sidebar-cta>* {
    position: relative;
    z-index: 1;
}

.cta-icon {
    width: 56px;
    height: 56px;
    background: var(--teal-glow);
    color: var(--teal-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.sidebar-cta h3 {
    color: white;
    margin-bottom: 0.75rem;
}

.sidebar-cta p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.sidebar-cta .btn {
    background: var(--teal);
    color: var(--navy-dark);
    font-weight: 700;
    margin-bottom: 1rem;
}

.sidebar-cta .btn:hover {
    background: var(--teal-light);
    color: var(--navy-dark);
}

.cta-note {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.78rem;
}

/* --- Bottom CTA --- */
.project-bottom-cta {
    padding: 0 0 100px;
}

.bottom-cta-card {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    border-radius: var(--radius-xl);
    padding: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    overflow: hidden;
}

.bottom-cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.bottom-cta-text {
    position: relative;
    z-index: 1;
}

.bottom-cta-text h2 {
    color: white;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.bottom-cta-text p {
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

.bottom-cta-card .btn {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .project-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .project-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .sidebar-card {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .project-hero {
        padding: 120px 0 60px;
    }

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

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

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

    .bottom-cta-card {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem 1.5rem;
    }

    .project-hero-stats {
        gap: 1.5rem;
    }

    .hero-stat-divider {
        display: none;
    }
}

/* ===================================
   PROJECT DETAIL - ARTICLE STYLE (azriel-inspired)
   Light theme, premium Nexara design
   =================================== */

/* --- Project Hero --- */
.project-hero {
    padding: 130px 0 60px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    position: relative;
    overflow: hidden;
}

.project-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.back-link:hover {
    color: var(--teal-light);
    gap: 12px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.ptag {
    padding: 5px 14px;
    border: 1px solid rgba(20, 184, 166, 0.5);
    color: var(--teal-light);
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 100px;
    letter-spacing: 0.02em;
}

.project-hero h1 {
    color: white;
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 800;
    margin-bottom: 1.25rem;
    line-height: 1.1;
    position: relative;
    z-index: 1;
}

.project-tagline {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.12rem;
    line-height: 1.7;
    max-width: 720px;
    position: relative;
    z-index: 1;
}

/* --- Showcase --- */
.project-showcase {
    padding: 0 0 70px;
    background: linear-gradient(180deg, var(--navy-dark) 0%, var(--bg) 100%);
    margin-top: -30px;
}

.showcase-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.showcase-mockup {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-xl);
    box-shadow: 0 40px 80px rgba(10, 31, 61, 0.3);
    position: relative;
    z-index: 2;
}

.showcase-glow {
    position: absolute;
    top: 20%;
    left: 10%;
    right: 10%;
    bottom: -10%;
    background: radial-gradient(ellipse, rgba(20, 184, 166, 0.25) 0%, transparent 70%);
    filter: blur(60px);
    z-index: 1;
}

/* --- Content Layout (Article + Sticky Sidenav) --- */
.project-content-section {
    padding: 40px 0 100px;
}

.project-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 4rem;
    align-items: start;
}

/* Sticky Sidebar Navigation */
.project-sidenav {
    position: sticky;
    top: 100px;
}

.project-sidenav h4 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.project-sidenav nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    border-left: 2px solid var(--border);
    padding-left: 1.25rem;
}

.sidenav-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 0.4rem 0;
    line-height: 1.4;
    transition: all 0.25s ease;
    position: relative;
    margin-left: -1.25rem;
    padding-left: 1.25rem;
    border-left: 2px solid transparent;
}

.sidenav-link:hover {
    color: var(--navy);
}

.sidenav-link.active {
    color: var(--teal-dark);
    font-weight: 700;
    border-left-color: var(--teal);
}

/* --- Article Content --- */
.project-article {
    max-width: 760px;
}

.article-section {
    margin-bottom: 4rem;
    scroll-margin-top: 100px;
}

.article-section:last-child {
    margin-bottom: 0;
}

.article-section h2 {
    font-size: 2rem;
    color: var(--navy);
    margin-bottom: 1.75rem;
    line-height: 1.2;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-light);
}

.article-section p {
    color: var(--text);
    line-height: 1.85;
    margin-bottom: 1.25rem;
    font-size: 1.02rem;
}

.article-section em {
    color: var(--navy);
    font-style: italic;
}

.lead-note {
    color: var(--navy) !important;
    font-weight: 600;
    margin-top: 1.75rem !important;
    margin-bottom: 0.75rem !important;
}

.article-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem 0;
}

.article-list li {
    position: relative;
    padding: 0.5rem 0 0.5rem 1.75rem;
    color: var(--text);
    line-height: 1.7;
    font-size: 0.98rem;
}

.article-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.05rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--teal);
}

.article-list li em {
    color: var(--navy);
}

/* Development sub-blocks */
.dev-block {
    margin-top: 2.5rem;
}

.dev-block h3 {
    font-size: 1.4rem;
    color: var(--navy);
    margin-bottom: 1rem;
    display: inline-block;
    position: relative;
}

.dev-block h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 40px;
    height: 3px;
    background: var(--teal);
    border-radius: 2px;
}

.highlight-term {
    background: var(--teal-glow);
    color: var(--teal-dark);
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95em;
}

/* Screenshot Frame */
.screenshot-frame {
    margin: 1.75rem 0 0.5rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 15px 40px rgba(10, 31, 61, 0.12);
    transition: all 0.4s ease;
}

.screenshot-frame:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px rgba(10, 31, 61, 0.18);
}

.screenshot-frame img {
    width: 100%;
    height: auto;
    display: block;
}

/* Open Source Note */
.opensource-note {
    margin-top: 3rem;
    padding: 1.75rem;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-left: 4px solid var(--teal);
    border-radius: var(--radius);
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.oss-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: white;
    color: var(--navy);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.opensource-note p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.75;
}

/* --- Bottom CTA --- */
.project-bottom-cta {
    padding: 0 0 100px;
}

.bottom-cta-card {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    border-radius: var(--radius-xl);
    padding: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    overflow: hidden;
}

.bottom-cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.bottom-cta-text {
    position: relative;
    z-index: 1;
}

.bottom-cta-text h2 {
    color: white;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.bottom-cta-text p {
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

.bottom-cta-card .btn {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .project-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-sidenav {
        position: static;
        border-left: none;
        padding: 1.25rem;
        background: var(--bg-soft);
        border-radius: var(--radius);
    }

    .project-sidenav nav {
        flex-direction: row;
        flex-wrap: wrap;
        border-left: none;
        padding-left: 0;
        gap: 0.5rem;
    }

    .sidenav-link {
        margin-left: 0;
        padding: 0.5rem 1rem;
        border-left: none;
        border: 1px solid var(--border);
        border-radius: 100px;
        background: white;
    }

    .sidenav-link.active {
        border-left: none;
        border-color: var(--teal);
        background: var(--teal-glow);
    }
}

@media (max-width: 600px) {
    .project-hero {
        padding: 115px 0 50px;
    }

    .article-section h2 {
        font-size: 1.6rem;
    }

    .opensource-note {
        flex-direction: column;
        gap: 1rem;
    }

    .bottom-cta-card {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem 1.5rem;
    }
}