:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --accent: #3b82f6;
    --bg-dark: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.8);
    --text-main: #0f172a;
    --text-muted: #475569;
    --border: rgba(15, 23, 42, 0.1);
    --glass: rgba(255, 255, 255, 0.7);
    --gradient: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
    --shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.75rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(12px);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    opacity: 0.8;
}

.logo-icon-img {
    height: 60px;
    width: auto;
}

.logo-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.1rem;
    font-weight: 400;
    letter-spacing: -0.03em;
    color: #1e293b;
    line-height: 1;
    display: flex;
    align-items: center;
}

.logo-text span {
    font-weight: 700;
    color: var(--primary);
    margin-left: 4px;
}

.logo:hover .logo-text span {
    color: var(--primary-dark);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    padding: 0.5rem;
    transition: var(--transition);
}

.nav-toggle:hover {
    color: var(--primary);
}

@media (max-width: 992px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 4rem 3rem;
        gap: 2rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(15, 23, 42, 0.1);
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        width: 100%;
    }
}

/* Hero */
.hero {
    position: relative;
    min-height: auto;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 8rem 0 4.5rem;
    background: radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.05) 0%, transparent 50%);
}

.hero.sub-hero {
    min-height: auto;
    padding: 8rem 0 4.5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    text-align: left;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(14, 165, 233, 0.05);
    border: 1px solid rgba(14, 165, 233, 0.1);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 1.25rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 3.75rem);
    line-height: 1.1;
    margin-bottom: 1.25rem;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
}

.hero-visual {
    position: relative;
}

.visual-container {
    position: relative;
    z-index: 1;
}

.hero-image-main {
    width: 100%;
    aspect-ratio: 1.33 / 1;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
}

.visual-blob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
    z-index: -1;
    filter: blur(40px);
}

/* ── Centered no-image hero variant ── */
.hero.hero-centered {
    padding: 9rem 0 3.5rem;
    background: none;
    text-align: center;
}

/* Soft multi-point glow */
.hero-bg-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 60% 55% at 50% -5%, rgba(14, 165, 233, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 15% 80%, rgba(37, 99, 235, 0.07) 0%, transparent 60%),
        radial-gradient(ellipse 35% 35% at 85% 75%, rgba(14, 165, 233, 0.06) 0%, transparent 60%);
    z-index: 0;
}

/* Subtle animated dot grid */
.hero-bg-dots {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(14, 165, 233, 0.18) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
    animation: dotsDrift 18s linear infinite;
    z-index: 0;
}

@keyframes dotsDrift {
    0%   { background-position: 0 0; }
    100% { background-position: 36px 36px; }
}

.hero.hero-centered .container {
    position: relative;
    z-index: 1;
}

.hero-centered-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content-centered {
    text-align: center;
    max-width: 780px;
    margin: 0 auto;
    width: 100%;
}

.hero-content-centered h1 {
    text-align: center;
}

.hero-content-centered p {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content-centered .hero-actions {
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(14, 165, 233, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-dark);
}

.btn-outline {
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Sections */
.section {
    padding: 2.45rem 0 4.55rem;
}

.bg-alt {
    background-color: #f1f5f9;
}

.bg-dark {
    background-color: #edf2f7;
}

.section-header {
    text-align: left;
    max-width: 100%;
    margin: 0 auto 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.section-eyebrow {
    display: inline-block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.3rem, 2.2vw, 1.8rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.01em;
    margin-bottom: 0;
    white-space: nowrap;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Features */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 6rem;
}

.feature-card {
    background: white;
    border: 1px solid var(--border);
    padding: 3rem 2rem;
    border-radius: 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(14, 165, 233, 0.05);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.feature-card p {
    color: var(--text-muted);
}

/* Project Stack (Vertical) */
.project-stack {
    display: flex;
    flex-direction: column;
    gap: 6rem;
    margin-bottom: 8rem;
    position: relative;
}

.project-card-v {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: start;
    position: relative;
}

.project-card-v:nth-child(even) {
    grid-template-columns: 1.2fr 1fr;
}

.project-card-v:nth-child(even) .project-visual-icon {
    order: 2;
}

.project-card-v:nth-child(even) .project-info {
    order: 1;
}

.project-visual-icon {
    position: relative;
    height: 450px;
    margin-top: 65px;
    background: white;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

.project-visual-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(14, 165, 233, 0.08) 0%, transparent 70%);
    opacity: 0.5;
    transition: var(--transition);
}

.project-card-v:hover .project-visual-icon {
    border-color: var(--primary);
    box-shadow: 0 40px 80px -20px rgba(15, 23, 42, 0.15);
}


.project-visual-icon i,
.project-visual-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
}

.project-visual-icon i {
    width: 140px;
    height: 140px;
    object-fit: contain;
    color: var(--primary);
    filter: drop-shadow(0 10px 20px rgba(14, 165, 233, 0.2));
}

.project-info {
    padding: 1rem 0;
}

.project-info .tag-main {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 1rem;
}

.project-info h3 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
}

.project-info p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tag {
    padding: 0.5rem 1.25rem;
    background: rgba(14, 165, 233, 0.05);
    border: 1px solid rgba(14, 165, 233, 0.1);
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
}

.project-card-v:hover .tag {
    background: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.2);
    color: var(--primary);
}

.project-info .btn-outline {
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    border-width: 2px;
}

@media (max-width: 992px) {
    .project-card-v, .project-card-v:nth-child(even) {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .project-card-v .project-visual-icon,
    .project-card-v:nth-child(even) .project-visual-icon {
        order: 1;
        height: 300px;
    }

    .project-card-v .project-info,
    .project-card-v:nth-child(even) .project-info {
        order: 2;
    }

    .project-info h3 {
        font-size: 2.5rem;
    }

    .project-tags {
        justify-content: center;
    }
}

/* Content Blocks */
.content-block {
    display: flex;
    align-items: flex-start;
    gap: 4rem;
    margin-top: 4rem;
}

.content-block.reverse {
    flex-direction: row-reverse;
}

.text-content {
    flex: 1;
}

.text-content h3 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.check-list {
    list-style: none;
    margin: 2rem 0;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.check-list i {
    color: var(--primary);
    width: 20px;
}

.code-preview {
    flex: 1;
    margin-top: 50px;
    background: #0f172a;
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    box-shadow: var(--shadow);
}

.code-preview code {
    color: #38bdf8;
}

/* Admin Showcase */
.admin-showcase {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 5rem;
    align-items: start;
}

.admin-showcase.admin-showcase-rev {
    grid-template-columns: 1fr 1.5fr;
}

.admin-image img {
    width: 100%;
    display: block;
    margin: 0px auto 0;
    border-radius: 20px;
    box-shadow: 0 30px 60px -12px rgba(15, 23, 42, 0.1);
}

.admin-showcase-rev .admin-image {
    order: 2;
}

.admin-showcase-rev .admin-features {
    order: 1;
}

.glass-shadow {
    border: 1px solid rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 
        0 20px 40px -15px rgba(30, 41, 59, 0.12),
        0 10px 20px -5px rgba(30, 41, 59, 0.05);
    transition: var(--transition);
}

.glass-shadow:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 30px 60px -12px rgba(30, 41, 59, 0.18),
        0 15px 30px -5px rgba(30, 41, 59, 0.08);
}

.admin-feature-item {
    margin-bottom: 2.5rem;
}

.admin-feature-item h4 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.admin-feature-item p {
    color: var(--text-muted);
}

/* MCP Grid */
.mcp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.mcp-feature-list {
    margin-top: 3rem;
}

.mcp-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.mcp-item i {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(14, 165, 233, 0.05);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mcp-item h5 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--text-main);
}

.mcp-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.mcp-visual img {
    width: 100%;
    max-width: 500px;
    margin-top: 50px;
}

.floating {
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Article Cards */
.article-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.article-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.article-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
}

.article-img {
    height: 250px;
    position: relative;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-overlay {
    position: absolute;
    inset: 0;
    background: rgba(14, 165, 233, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    opacity: 0;
    transition: var(--transition);
}

.article-card:hover .article-overlay {
    opacity: 1;
}

.article-placeholder {
    color: rgba(15, 23, 42, 0.1);
}

.article-body {
    padding: 2rem;
}

.article-body h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.article-body p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* Footer */
.footer {
    padding: 6rem 0 3rem;
    border-top: 1px solid var(--border);
    background-color: white;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-muted);
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-grid, .feature-grid, .article-cards, .admin-showcase, .mcp-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 3rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-p {
        margin: 0 auto 2rem;
    }
    
    .content-block {
        flex-direction: column !important;
        text-align: center;
    }
    
    .check-list li {
        justify-content: center;
    }
    

}

/* Architecture Diagrams */
.architecture-diagram {
    margin-top: 4rem;
    text-align: center;
}

.full-width-image {
    width: 100%;
    max-width: 1000px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 24px;
}

.diagram-caption {
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.diagram-caption p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .full-width-image {
        border-radius: 12px;
    }
}
/* Story Section */
.story-content {
    max-width: 1200px;
    margin: 0 auto;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.story-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.story-text strong {
    color: var(--text-main);
}

.comparison-list {
    list-style: none;
    margin-top: 2rem;
}

.comparison-list li {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.comparison-list li strong {
    color: var(--primary);
    display: block;
    margin-bottom: 0.25rem;
}

.comparison-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.story-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 3rem;
    background: white;
    border-radius: 30px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.highlight-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.highlight-item i {
    width: 50px;
    height: 50px;
    background: rgba(14, 165, 233, 0.05);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.highlight-item span {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.4;
}

@media (max-width: 768px) {
    .story-grid, .story-highlights {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════
   HERO STATS STRIP
═══════════════════════════════════════════ */
.hero-stats {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 3.5rem;
    padding: 2rem 0 0;
    border-top: 1px solid rgba(14, 165, 233, 0.12);
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 3.5rem;
}

.stat-num {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.stat-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(14, 165, 233, 0.2);
}

/* ═══════════════════════════════════════════
   NEW EDITORIAL PROJECT CARDS (proj-row)
═══════════════════════════════════════════ */
.section {
    padding: 2.5rem 0 7rem;
}

/* Each project row */
.proj-row {
    display: grid;
    grid-template-columns: 80px 1fr 1.15fr;
    gap: 0 4rem;
    align-items: start;
    padding: 5rem 0;
    border-top: 1px solid var(--border);
    position: relative;
}

.proj-row:last-child {
    border-bottom: 1px solid var(--border);
}

/* Reversed layout (image on right → content on left) */
.proj-row-rev {
    grid-template-columns: 80px 1.15fr 1fr;
}

.proj-row-rev .proj-image-wrap {
    order: 3;
}

.proj-row-rev .proj-body {
    order: 2;
}

/* Project number */
.proj-num {
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(14, 165, 233, 0.45);
    padding-top: 0.5rem;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    align-self: center;
    height: 100%;
    display: flex;
    align-items: center;
}

/* Image panel */
.proj-image-wrap {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    background: white;
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px -8px rgba(15, 23, 42, 0.1);
    transition: var(--transition);
    aspect-ratio: 4 / 3;
}

.proj-image-wrap:hover {
    box-shadow: 0 24px 60px -12px rgba(15, 23, 42, 0.18);
    border-color: rgba(14, 165, 233, 0.3);
}

.proj-image-wrap-tall {
    aspect-ratio: 1 / 1.15;
}

.proj-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.proj-image-wrap:hover .proj-image {
    transform: scale(1.03);
}

.proj-image-badge {
    position: absolute;
    bottom: 1.25rem;
    left: 1.25rem;
    background: rgba(14, 165, 233, 0.9);
    backdrop-filter: blur(8px);
    color: white;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
}

/* Project body */
.proj-body {
    padding: 0.5rem 0;
}

.proj-category {
    display: inline-block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.proj-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.proj-body > p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.proj-body .proj-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1.5rem 0;
}

.proj-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    border-bottom: 1.5px solid rgba(14, 165, 233, 0.3);
    padding-bottom: 2px;
    transition: var(--transition);
    margin-top: 0.5rem;
}

.proj-link:hover {
    border-color: var(--primary);
    gap: 0.75rem;
}

.proj-link i {
    width: 16px;
    height: 16px;
}

/* ── Split body (two sub-projects in one row) ── */
.proj-body-split {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.proj-split-card {
    padding: 2rem 0;
}

.proj-split-card .proj-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    margin-bottom: 1rem;
}

.proj-split-card > p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.proj-split-divider {
    width: 100%;
    height: 1px;
    background: var(--border);
    margin: 0.5rem 0;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .proj-row,
    .proj-row-rev {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 3.5rem 0;
    }

    .proj-num {
        writing-mode: horizontal-tb;
        transform: none;
        height: auto;
        font-size: 0.68rem;
    }

    .proj-row-rev .proj-image-wrap,
    .proj-row-rev .proj-body {
        order: unset;
    }

    .proj-image-wrap {
        aspect-ratio: 16 / 9;
    }

    .proj-image-wrap-tall {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 640px) {
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero-stat-divider {
        width: 40px;
        height: 1px;
    }

    .hero-stat {
        padding: 0;
    }

    .proj-body-split {
        gap: 0;
    }
}
