/* ==========================================================================
   Sarvesh Mishra — Portfolio front-end (premium CMS-driven theme)
   ========================================================================== */

:root {
    --ink: #070b16;
    --ink-soft: #10182b;
    --ink-mid: #172038;
    --panel: #ffffff;
    --panel-alt: #f4f6fb;
    --text: #121826;
    --text-muted: #5c667a;
    --border: #e4e8f2;
    --accent: #5b6cff;
    --accent-2: #8b5cf6;
    --accent-dark: #3f4cd4;
    --accent-soft: #eef0ff;
    --glow: rgba(91, 108, 255, 0.35);
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 18px 50px rgba(12, 18, 40, 0.08);
    --shadow-lg: 0 28px 70px rgba(12, 18, 40, 0.14);
    --container: 1160px;
    --header-h: 74px;
    --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background: var(--panel);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
    margin: 0;
    line-height: 1.2;
    font-family: 'Syne', 'DM Sans', system-ui, sans-serif;
    letter-spacing: -0.02em;
}
p { margin: 0; }
button, input, textarea, select { font: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 22px; }

.section { padding: 88px 0; }
.section-alt { background: var(--panel-alt); }
.section-tight { padding: 56px 0; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}
.eyebrow::before {
    content: '';
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.section-heading { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-heading h2 {
    font-size: clamp(26px, 3.4vw, 38px);
    font-weight: 700;
}
.section-heading p {
    color: var(--text-muted);
    margin-top: 14px;
    font-size: 16px;
}

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14.5px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s ease, border-color .2s ease, color .2s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #fff;
    box-shadow: 0 10px 28px var(--glow);
}
.btn-primary:hover { box-shadow: 0 16px 36px var(--glow); }
.btn-outline {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.18);
    color: #fff;
}
.btn-ghost:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 13px; border-radius: 10px; }

/* Header / Nav */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(14px) saturate(1.2);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.site-header.scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 8px 30px rgba(12, 18, 40, 0.05);
    background: rgba(255,255,255,.94);
}
.site-header .nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-h);
    gap: 16px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Syne', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.02em;
}
.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 8px 18px var(--glow);
}
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-muted);
    padding: 8px 12px;
    border-radius: 10px;
    transition: color .15s ease, background .15s ease;
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
    background: var(--accent-soft);
}
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
    width: 42px;
    height: 42px;
    border-radius: 10px;
}
.nav-toggle:hover { background: var(--panel-alt); }
.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
    margin: 0 auto;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
    .nav-links {
        position: fixed;
        inset: var(--header-h) 0 0 0;
        background: rgba(255,255,255,.98);
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 18px 20px 40px;
        transform: translateX(100%);
        transition: transform .28s var(--ease);
        overflow-y: auto;
        border-top: 1px solid var(--border);
    }
    .nav-links.open { transform: translateX(0); }
    .nav-links a {
        display: block;
        padding: 14px 12px;
        font-size: 16px;
        border-radius: 12px;
    }
    .nav-toggle { display: flex; }
    .nav-actions .btn { display: none; }
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1000px 500px at 85% 10%, rgba(139, 92, 246, .22), transparent 55%),
        radial-gradient(800px 420px at 10% 80%, rgba(91, 108, 255, .18), transparent 50%),
        linear-gradient(160deg, var(--ink) 0%, var(--ink-soft) 55%, #0c1426 100%);
    color: #fff;
    padding: 84px 0 96px;
}
.hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 80px;
    background: linear-gradient(to top, rgba(7,11,22,.4), transparent);
    pointer-events: none;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 52px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #c5cbff;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    padding: 8px 14px;
    border-radius: 999px;
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
}
.hero-eyebrow .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, .2);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .35); }
    50% { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
}
.hero h1 {
    font-size: clamp(34px, 5.2vw, 56px);
    font-weight: 800;
    margin-bottom: 18px;
    letter-spacing: -0.03em;
}
.hero h1 .accent {
    background: linear-gradient(135deg, #a5b4fc 0%, #c4b5fd 45%, #f0abfc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-lead {
    color: rgba(255,255,255,.72);
    font-size: 17.5px;
    max-width: 540px;
    margin-bottom: 30px;
    line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual {
    position: relative;
    border-radius: 24px;
    padding: 8px;
    background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.03));
    border: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.hero-visual-inner {
    border-radius: 18px;
    overflow: hidden;
    background: rgba(8, 12, 24, .65);
}
.hero-visual img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}
.hero-visual .code-window {
    padding: 22px 22px 26px;
    text-align: left;
    font-family: ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
    color: #a5b4fc;
    font-size: 13.5px;
    line-height: 1.65;
}
.hero-visual .code-window .dots { margin-bottom: 14px; }
.hero-visual .code-window .dots span {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
}
.hero-visual .code-window .dots .r { background: #ff5f56; }
.hero-visual .code-window .dots .y { background: #ffbd2e; }
.hero-visual .code-window .dots .g { background: #27c93f; }
.hero-visual .code-window pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}
.hero-visual .code-window .kw { color: #c4b5fd; }
.hero-visual .code-window .str { color: #86efac; }
.hero-visual .code-window .fn { color: #7dd3fc; }
.hero-visual .code-window .cm { color: #64748b; }

/* Tech marquee / stack row */
.tech-row {
    position: relative;
    margin-top: -28px;
    z-index: 2;
}
.tech-row-inner {
    background: rgba(255,255,255,.96);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 18px 20px;
}
.tech-row ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.tech-row li {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-mid);
    background: var(--panel-alt);
    border: 1px solid var(--border);
    padding: 8px 14px;
    border-radius: 999px;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.service-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s ease;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    opacity: 0;
    transition: opacity .2s ease;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: #d7dbf5;
}
.service-card:hover::before { opacity: 1; }
.service-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(145deg, var(--accent-soft), #f3e8ff);
    color: var(--accent);
    display: grid;
    place-items: center;
    margin-bottom: 18px;
}
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}
.service-card p {
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.65;
}

/* Cards: project / blog */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.pf-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--panel);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.pf-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: #d7dbf5;
}
.pf-card-thumb {
    position: relative;
    aspect-ratio: 16/10;
    background:
        radial-gradient(circle at 30% 20%, rgba(139,92,246,.35), transparent 45%),
        linear-gradient(145deg, var(--ink), var(--ink-mid));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 34px;
    font-weight: 800;
    font-family: 'Syne', sans-serif;
    overflow: hidden;
}
.pf-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s var(--ease);
}
.pf-card:hover .pf-card-thumb img { transform: scale(1.05); }
.pf-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    background: rgba(255,255,255,.95);
    color: var(--accent);
    padding: 5px 10px;
    border-radius: 999px;
}
.pf-card-body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.pf-card-body h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}
.pf-card-body p {
    color: var(--text-muted);
    font-size: 14.5px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pf-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 16px;
}
.pf-tag {
    font-size: 11.5px;
    font-weight: 700;
    background: var(--accent-soft);
    color: var(--accent-dark);
    padding: 5px 10px;
    border-radius: 999px;
}
.pf-card-link {
    font-weight: 800;
    color: var(--accent);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}
.pf-card-link:hover { gap: 10px; }

/* Stats */
.stats-bar {
    background:
        radial-gradient(500px 200px at 90% 0%, rgba(139,92,246,.25), transparent 50%),
        linear-gradient(135deg, var(--ink) 0%, var(--ink-mid) 100%);
    color: #fff;
    border-radius: 24px;
    padding: 36px 28px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    box-shadow: var(--shadow-lg);
}
.stats-bar .stat { text-align: center; position: relative; }
.stats-bar .stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: rgba(255,255,255,.1);
}
.stats-bar .stat h3 {
    font-size: clamp(26px, 3.2vw, 36px);
    font-weight: 800;
    background: linear-gradient(135deg, #a5b4fc, #e9d5ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.stats-bar .stat span {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: rgba(255,255,255,.68);
    font-weight: 600;
}

/* CTA banner */
.cta-banner {
    background:
        radial-gradient(500px 180px at 0% 100%, rgba(255,255,255,.18), transparent 50%),
        linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #fff;
    border-radius: 24px;
    padding: 40px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: 0 20px 50px var(--glow);
}
.cta-banner p {
    font-size: clamp(18px, 2.2vw, 22px);
    font-weight: 700;
    margin: 0;
    max-width: 640px;
    font-family: 'Syne', sans-serif;
    line-height: 1.35;
}
.cta-banner .btn-dark {
    background: #fff;
    color: var(--ink);
}
.cta-banner .btn-dark:hover {
    background: #f1f5f9;
}

/* Footer */
.site-footer {
    background: var(--ink);
    color: rgba(255,255,255,.72);
    padding: 72px 0 28px;
    position: relative;
    overflow: hidden;
}
.site-footer::before {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(91,108,255,.18), transparent 65%);
    top: -120px;
    right: -80px;
    pointer-events: none;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.15fr;
    gap: 36px;
    margin-bottom: 42px;
    position: relative;
    z-index: 1;
}
.footer-grid h4 {
    color: #fff;
    font-size: 14px;
    margin-bottom: 16px;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.footer-grid ul li { margin-bottom: 11px; font-size: 14.5px; }
.footer-grid ul li a {
    color: rgba(255,255,255,.68);
    transition: color .15s ease;
}
.footer-grid ul li a:hover { color: #fff; }
.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Syne', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 14px;
}
.footer-brand .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 12px;
}
.footer-about {
    font-size: 14.5px;
    line-height: 1.7;
    max-width: 320px;
    color: rgba(255,255,255,.62);
}
.footer-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.08);
    display: grid;
    place-items: center;
    color: #fff;
    transition: background .15s ease, transform .15s ease;
}
.footer-social a:hover {
    background: var(--accent);
    transform: translateY(-2px);
}
.footer-social a svg { width: 16px; height: 16px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
    color: rgba(255,255,255,.48);
    position: relative;
    z-index: 1;
}
.footer-bottom a:hover { color: #fff; }

/* Forms */
.form-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}
.form-field { margin-bottom: 16px; }
.form-field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 7px;
    color: var(--text);
}
.form-field input,
.form-field textarea {
    width: 100%;
    padding: 13px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(91, 108, 255, .12);
}
.form-field .hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}
.alert {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 18px;
    font-size: 14.5px;
    font-weight: 600;
}
.alert-success { background: #e8faf0; color: #166534; border: 1px solid #bbf7d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* Layout helpers */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.two-col-about { grid-template-columns: .9fr 1.1fr; align-items: center; }
.side-panel {
    background: var(--panel-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}
.contact-info-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
}
.contact-info-item:last-child { margin-bottom: 0; }
.contact-info-item .icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--accent-soft), #f3e8ff);
    color: var(--accent);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.contact-info-item .icon svg { width: 18px; height: 18px; }
.contact-info-item strong {
    display: block;
    font-size: 13px;
    margin-bottom: 2px;
}
.contact-info-item a:hover { color: var(--accent); }

/* About */
.about-photo {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    position: relative;
}
.about-photo img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
}
.about-photo-placeholder {
    aspect-ratio: 4/5;
    border-radius: 24px;
    background:
        radial-gradient(circle at 30% 20%, rgba(139,92,246,.4), transparent 45%),
        linear-gradient(160deg, var(--ink), var(--ink-mid));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 72px;
    font-weight: 800;
    font-family: 'Syne', sans-serif;
    box-shadow: var(--shadow-lg);
}
.about-years {
    display: inline-flex;
    flex-direction: column;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px 18px;
    box-shadow: var(--shadow);
    margin-top: 22px;
}
.about-years strong {
    font-family: 'Syne', sans-serif;
    font-size: 28px;
    color: var(--accent);
    line-height: 1;
}
.about-years span {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    margin-top: 4px;
}
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}
.skill-chip {
    font-size: 13px;
    font-weight: 700;
    padding: 9px 14px;
    border-radius: 999px;
    background: var(--panel);
    border: 1px solid var(--border);
    color: var(--ink-mid);
}
.highlights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 14px;
}
.highlight-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 14px;
    font-size: 14px;
    font-weight: 600;
}
.highlight-item::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

/* Video */
.video-card {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--panel);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.video-embed { aspect-ratio: 16/9; background: var(--ink); }
.video-embed iframe { width: 100%; height: 100%; border: 0; }
.video-card-body { padding: 18px 20px; }
.video-card-body h3 { font-size: 16px; margin-bottom: 6px; }
.video-card-body p { color: var(--text-muted); font-size: 14px; }

/* Blog / prose */
.prose {
    font-size: 16.5px;
    line-height: 1.85;
    color: var(--text);
}
.prose img { border-radius: 14px; margin: 22px 0; }
.prose h2, .prose h3 { margin: 30px 0 14px; font-family: 'Syne', sans-serif; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px 1.2em; padding: 0; list-style: disc; }
.prose a { color: var(--accent); text-decoration: underline; }
.project-side-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    background: var(--panel);
    box-shadow: var(--shadow);
    position: sticky;
    top: calc(var(--header-h) + 20px);
}
.project-side-card h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 12px;
    color: var(--text-muted);
}

/* Pagination */
.pf-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 44px;
}
.pf-pagination a,
.pf-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--border);
    font-weight: 700;
    font-size: 14px;
    background: #fff;
}
.pf-pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pf-pagination .active {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    border-color: transparent;
}

/* Page header */
.page-header {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(700px 280px at 90% 0%, rgba(139,92,246,.22), transparent 55%),
        linear-gradient(160deg, var(--ink) 0%, var(--ink-soft) 100%);
    color: #fff;
    padding: 64px 0 72px;
    text-align: center;
}
.page-header .eyebrow {
    color: #c5cbff;
    justify-content: center;
}
.page-header .eyebrow::before { background: #c5cbff; }
.page-header h1 {
    font-size: clamp(28px, 4.2vw, 44px);
    font-weight: 800;
}
.page-header p {
    color: rgba(255,255,255,.68);
    margin: 12px auto 0;
    max-width: 560px;
    font-size: 16px;
}

.empty-state {
    text-align: center;
    padding: 72px 20px;
    color: var(--text-muted);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    background: var(--panel-alt);
}
.empty-state strong {
    display: block;
    color: var(--text);
    font-size: 18px;
    margin-bottom: 8px;
    font-family: 'Syne', sans-serif;
}

/* Floating actions */
.float-actions {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 150;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.float-btn {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    border: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
    color: #fff;
    box-shadow: 0 12px 28px rgba(0,0,0,.18);
    transition: transform .15s ease, opacity .2s ease;
}
.float-btn:hover { transform: translateY(-2px); }
.float-btn svg { width: 20px; height: 20px; }
.float-btn.wa { background: #25d366; }
.float-btn.top {
    background: var(--ink);
    opacity: 0;
    pointer-events: none;
}
.float-btn.top.show {
    opacity: 1;
    pointer-events: auto;
}

/* Section footer link */
.section-more {
    text-align: center;
    margin-top: 36px;
}

/* CMS preview badge */
.cms-preview-badge {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background: #f59e0b;
    color: #111;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 8px 14px;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

/* Responsive */
@media (max-width: 1000px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
    .two-col,
    .two-col-about { grid-template-columns: 1fr; }
    .hero-grid { grid-template-columns: 1fr; gap: 36px; }
    .hero { padding: 56px 0 72px; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); padding: 28px 18px; }
    .stats-bar .stat:not(:last-child)::after { display: none; }
    .highlights-grid { grid-template-columns: 1fr; }
    .project-side-card { position: static; }
}
@media (max-width: 640px) {
    .section { padding: 64px 0; }
    .card-grid,
    .services-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .cta-banner { padding: 28px 22px; }
    .form-card { padding: 20px; }
}

/* ==========================================================================
   Dark mode + language/theme chrome
   ========================================================================== */

html[data-theme="dark"] {
    --ink: #e8ecf8;
    --ink-soft: #0b1020;
    --ink-mid: #c5cee3;
    --panel: #0b1020;
    --panel-alt: #121a2e;
    --text: #e7ebf7;
    --text-muted: #9aa6c0;
    --border: #243049;
    --accent: #8b97ff;
    --accent-2: #c084fc;
    --accent-dark: #a5b0ff;
    --accent-soft: rgba(139, 151, 255, 0.14);
    --glow: rgba(139, 151, 255, 0.28);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
}

html[data-theme="dark"] body { background: var(--panel); color: var(--text); }
html[data-theme="dark"] .site-header {
    background: rgba(11, 16, 32, 0.88);
    border-bottom-color: transparent;
}
html[data-theme="dark"] .site-header.scrolled {
    border-bottom-color: var(--border);
    background: rgba(11, 16, 32, 0.96);
}
html[data-theme="dark"] .brand { color: #fff; }
html[data-theme="dark"] .nav-links a { color: var(--text-muted); }
html[data-theme="dark"] .nav-links a:hover,
html[data-theme="dark"] .nav-links a.active {
    color: var(--accent);
    background: var(--accent-soft);
}
html[data-theme="dark"] .nav-toggle span { background: #fff; }
html[data-theme="dark"] .btn-outline {
    border-color: var(--border);
    color: var(--text);
}
html[data-theme="dark"] .service-card,
html[data-theme="dark"] .pf-card,
html[data-theme="dark"] .video-card,
html[data-theme="dark"] .form-card,
html[data-theme="dark"] .side-panel,
html[data-theme="dark"] .project-side-card,
html[data-theme="dark"] .skill-chip,
html[data-theme="dark"] .highlight-item,
html[data-theme="dark"] .about-years,
html[data-theme="dark"] .tech-row-inner {
    background: var(--panel-alt);
    border-color: var(--border);
}
html[data-theme="dark"] .form-field input,
html[data-theme="dark"] .form-field textarea {
    background: #0b1020;
    border-color: var(--border);
    color: var(--text);
}
html[data-theme="dark"] .pf-pagination a,
html[data-theme="dark"] .pf-pagination span {
    background: var(--panel-alt);
    border-color: var(--border);
    color: var(--text);
}
html[data-theme="dark"] .empty-state {
    background: var(--panel-alt);
    border-color: var(--border);
}
html[data-theme="dark"] .cta-banner .btn-dark {
    background: #fff;
    color: #0b1020;
}

body.lang-hi {
    font-family: "Noto Sans Devanagari", "DM Sans", system-ui, sans-serif;
}
body.lang-hi h1,
body.lang-hi h2,
body.lang-hi h3,
body.lang-hi h4,
body.lang-hi .brand,
body.lang-hi .footer-brand {
    font-family: "Noto Sans Devanagari", Syne, system-ui, sans-serif;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
    background: var(--panel);
}
.lang-switch a {
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 800;
    color: var(--text-muted);
    line-height: 1;
}
.lang-switch a.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
}
.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--panel);
    color: var(--text);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.icon-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .icon-moon { display: none; }
html[data-theme="dark"] .icon-btn .icon-sun { display: none; }
html[data-theme="dark"] .icon-btn .icon-moon { display: block; }

@media (max-width: 980px) {
    html[data-theme="dark"] .nav-links {
        background: rgba(11, 16, 32, 0.98);
        border-top-color: var(--border);
    }
    .nav-actions .hire-btn { display: none; }
    .lang-switch { order: -1; }
}
