/* Akash Nishad Resume — Pixel-Perfect Styles (see docs/UI-SPECIFICATION.md) */

/* ── LIGHT MODE (default) ── */
:root {
    --page-bg:     #EEF2F7;
    --white:       #FFFFFF;
    --card-bg:     #FFFFFF;
    --sidebar-bg:  #ECEDF9;
    --slate-50:    #F8FAFC;
    --slate-100:   #F1F5F9;
    --slate-200:   #E2E8F0;
    --slate-300:   #CBD5E1;
    --slate-400:   #94A3B8;
    --slate-500:   #64748B;
    --slate-600:   #475569;
    --slate-700:   #334155;
    --slate-800:   #1E293B;
    --slate-900:   #0F172A;
    --text-body:   #1E293B;
    --text-muted:  #64748B;
    --text-heading:#0F172A;
    --border:      #E2E8F0;
    --tag-bg:      #F1F5F9;
    --tag-color:   #475569;

    --blue-500:    #3B82F6;
    --blue-600:    #2563EB;
    --indigo-500:  #6366F1;
    --violet-500:  #8B5CF6;
    --violet-600:  #7C3AED;
    --green-500:   #22C55E;
    --green-600:   #16A34A;
    --red-500:     #EF4444;
    --container:   1100px;
    --sidebar-w:   320px;
    --gradient-brand: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
    --gradient-skill: linear-gradient(90deg, #6366F1 0%, #8B5CF6 100%);
    --shadow-navbar: 0 1px 3px rgba(15,23,42,.06);
    --shadow-card:   0 4px 24px rgba(15,23,42,.08);
    --font: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ── DARK MODE — Premium ── */
html.dark {
    --page-bg:     #070B14;
    --white:       #0E1420;
    --card-bg:     #0E1420;
    --sidebar-bg:  #080C16;
    --slate-50:    #111827;
    --slate-100:   #1C2333;
    --slate-200:   #243047;
    --slate-300:   #2E3D5A;
    --slate-400:   #5C6E8A;
    --slate-500:   #8694A8;
    --slate-600:   #A8B8CC;
    --slate-700:   #C5D3E0;
    --slate-800:   #DCE6F0;
    --slate-900:   #F0F5FA;
    --text-body:   #B8C8DC;
    --text-muted:  #6B7E96;
    --text-heading:#E8F0F8;
    --border:      rgba(99,120,160,.18);
    --tag-bg:      rgba(99,120,160,.12);
    --tag-color:   #8694A8;
    --shadow-navbar: 0 1px 20px rgba(0,0,0,.5);
    --shadow-card:   0 8px 40px rgba(0,0,0,.5);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-body);
    background: var(--page-bg);
    -webkit-font-smoothing: antialiased;
    transition: background .3s, color .3s;
}

/* ── Dark Mode — Premium Styles ── */
html.dark .site-navbar {
    background: rgba(10,14,24,.85);
    border-color: rgba(99,120,160,.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 30px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.05);
}
html.dark .navbar-name  { color: #E8F0F8; }
html.dark .btn-nav       { background: rgba(255,255,255,.04); border-color: rgba(99,120,160,.2); color: #A8B8CC; }
html.dark .btn-nav:hover { background: rgba(255,255,255,.08); }
html.dark .btn-nav-primary { box-shadow: none; color: #ffffff; }
html.dark .btn-nav-primary i { color: #ffffff; }

html.dark .layout-card {
    background: #0E1420;
    border-color: rgba(99,120,160,.15);
    box-shadow: 0 8px 40px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04);
}
html.dark .resume-main { background: #0E1420; }

html.dark .sidebar-card {
    background: #111827;
    border-color: rgba(99,120,160,.14);
    box-shadow: 0 4px 20px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.03);
}
html.dark .sidebar-card--profile {
    background: linear-gradient(135deg, #0B1020 0%, #0E1630 100%);
    border-color: rgba(99,102,241,.2);
}

html.dark .profile-name          { color: #E8F0F8; }
html.dark .profile-title         { color: #7C8FF0; }
html.dark .profile-bio           { color: #6B7E96; }
html.dark .profile-divider       { background: rgba(99,120,160,.15); }
html.dark .sidebar-card-title    { color: #4A5E78; }
html.dark .contact-item          { color: #8A9AB0; }
html.dark .contact-item a        { color: #8A9AB0; }
html.dark .contact-icon--purple  { background: rgba(99,102,241,.12); }

html.dark .glance-icon    { background: rgba(99,102,241,.1); }
html.dark .glance-icon i  { color: #7C8FF0; }
html.dark .glance-num     { color: #E8F0F8; }
html.dark .glance-label   { color: #4A5E78; }

html.dark .skill-track      { background: rgba(255,255,255,.05); }
html.dark .skill-label      { color: #8A9AB0; }
html.dark .skill-label span { color: #3E5068; }

html.dark .avail-pill {
    background: rgba(16,185,129,.08);
    border-color: rgba(16,185,129,.2);
    color: #8A9AB0;
}

html.dark .section-header  { border-bottom-color: rgba(99,120,160,.15); }
html.dark .section-title   { color: #C5D3E0; }
html.dark .section-icon    { background: rgba(99,102,241,.1); }
html.dark .section-icon i  { color: #7C8FF0; }
html.dark .section-link    { color: #7C8FF0; }

html.dark .summary-content p,
html.dark .summary-content ul li { color: #7A8EA8; }
html.dark .summary-content strong { color: #C5D3E0; }
html.dark .summary-content ul li::before { background: #4A6080; }

html.dark .skill-card {
    background: #111827;
    border-color: rgba(99,120,160,.14);
}
html.dark .skill-card-name { color: #C5D3E0; }
html.dark .skill-tag       { background: rgba(99,120,160,.1); color: #5C6E8A; }

html.dark .exp-item         { border-bottom-color: rgba(99,120,160,.1); }
html.dark .exp-item::before { background: linear-gradient(to bottom, #4A5AF0, rgba(74,90,240,.1)); }
html.dark .exp-role         { color: #DCE6F0; }
html.dark .exp-company      { color: #7C8FF0; }
html.dark .exp-date         { color: #3E5068; }
html.dark .exp-description p,
html.dark .exp-description li { color: #7A8EA8; }
html.dark .exp-description strong { color: #C5D3E0; }
html.dark .exp-description ul li::before { background: #4A5AF0; }

html.dark .proj-rich-desc p,
html.dark .proj-rich-desc li { color: #7A8EA8; }
html.dark .proj-rich-desc strong { color: #C5D3E0; }
html.dark .proj-rich-desc ul li::before { background: #4A5AF0; }

html.dark .edu-degree    { color: #DCE6F0; }
html.dark .edu-institute { color: #4A5E78; }
html.dark .edu-year      { color: #3E5068; }

/* Dark Footer */
html.dark .site-footer {
    background: #0A0E1A;
    border-color: rgba(99,120,160,.15);
    box-shadow: 0 4px 30px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.03);
}
html.dark .sf-bottom   { background: #070B12; border-top-color: rgba(99,120,160,.12); }
html.dark .sf-name     { color: #DCE6F0; }
html.dark .sf-title    { color: #4A5E78; }
html.dark .sf-copy     { color: #2E3D5A; }
html.dark .sf-social   { background: rgba(255,255,255,.04); border-color: rgba(99,120,160,.15); color: #4A5E78; }
html.dark .sf-social:hover { background: rgba(99,102,241,.12); color: #7C8FF0; }
html.dark .sf-feat-title { color: #C5D3E0; }
html.dark .sf-feat-sub   { color: #3E5068; }
html.dark .sf-feature    { border-left-color: rgba(99,120,160,.12); }

/* ── Dark/Light Slider Toggle ── */
.dm-slider {
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
}

.dm-track {
    position: relative;
    width: 64px; height: 32px;
    background: #EEF0F5;
    border: 1.5px solid #E2E8F0;
    border-radius: 999px;
    transition: background .3s, border-color .3s;
    box-shadow: inset 0 2px 4px rgba(0,0,0,.07);
}

/* Sliding circle (thumb) */
.dm-thumb {
    position: absolute;
    top: 3px; left: 3px;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1), background .3s;
    box-shadow: 0 2px 6px rgba(99,102,241,.4);
    z-index: 1;
}

/* Icons — centered exactly over thumb position */
/* Thumb left center  = 3 + 12 = 15px from left  */
/* Thumb right center = 3 + 32 + 12 = 47px from left */
.dm-icon {
    position: absolute;
    top: 50%;
    font-size: 13px;
    line-height: 1;
    transition: color .3s, opacity .3s;
    z-index: 2;
    pointer-events: none;
}

.dm-icon--sun {
    left: 15px;
    transform: translate(-50%, -50%);
    color: #fff;
}

.dm-icon--moon {
    left: 47px;
    transform: translate(-50%, -50%);
    color: #94A3B8;
    opacity: .7;
}

/* ── Dark mode ── */
html.dark .dm-track {
    background: #0A0E1A;
    border-color: rgba(99,120,160,.2);
    box-shadow: inset 0 2px 6px rgba(0,0,0,.5);
}

html.dark .dm-thumb {
    transform: translateX(32px);
    background: linear-gradient(135deg, #1E2535 0%, #334155 100%);
    box-shadow: 0 2px 8px rgba(0,0,0,.5);
}

html.dark .dm-icon--sun  { color: #3E5068; opacity: .6; }
html.dark .dm-icon--moon { color: #7C8FF0; opacity: 1; }

/* Smooth transitions — only when NOT initial load */
:not(.no-transition) .site-navbar,
:not(.no-transition) .layout-card,
:not(.no-transition) .resume-main,
:not(.no-transition) .sidebar-card,
:not(.no-transition) .section-header,
:not(.no-transition) .exp-item,
:not(.no-transition) .skill-card,
:not(.no-transition) .site-footer,
:not(.no-transition) .sf-feature,
:not(.no-transition) .sf-bottom { transition: background .25s, border-color .25s, color .25s; }

html:not(.no-transition) body { transition: background .25s, color .25s; }

/* Kill ALL transitions on page load to prevent flash */
html.no-transition *,
html.no-transition *::before,
html.no-transition *::after {
    transition: none !important;
    animation: none !important;
}

a { color: inherit; }

.page-frame {
    width: 100%;
    max-width: var(--container);
    margin: 24px auto 48px;
    padding: 0 20px;
}

/* ── NAVBAR ── */
.site-navbar {
    position: sticky;
    top: 16px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    margin-bottom: 24px;
    padding: 0 24px;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    box-shadow: var(--shadow-navbar);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.navbar-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: var(--white);
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.navbar-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--slate-900);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-nav {
    height: 36px;
    padding: 0 16px;
    border-radius: 8px;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid var(--slate-200);
    background: var(--white);
    color: #374151;
    transition: background 0.15s;
}

.btn-nav:hover { background: var(--slate-50); color: var(--slate-900); }

.btn-nav-primary {
    border: none;
    background: var(--gradient-brand);
    color: var(--white);
}

.btn-nav-primary:hover { opacity: 0.92; color: var(--white); background: var(--gradient-brand); }

.btn-label-short { display: none; }

.project-content { min-width: 0; }

.glance-list { display: block; }

/* ── TWO-COLUMN LAYOUT (equal height cards) ── */
.resume-layout {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.layout-card {
    background: var(--white);
    border: 1px solid #F1F5F9;
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.layout-card--main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* ── SIDEBAR ── */
.profile-sidebar {
    width: var(--sidebar-w);
    min-width: var(--sidebar-w);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-card {
    background: var(--white);
    border: 1px solid #F1F5F9;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05), 0 4px 14px rgba(15, 23, 42, 0.04);
}

.sidebar-card-title {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--slate-900);
    margin: 0 0 20px;
}

.profile-header {
    text-align: center;
}

.profile-photo-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white);
    display: block;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.1);
}

.profile-online {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 16px;
    height: 16px;
    background: #10B981;
    border-radius: 50%;
    border: 3px solid var(--white);
}

.profile-name {
    font-size: 26px;
    font-weight: 700;
    color: #0F172A;
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin: 0 0 8px;
}

.profile-title {
    font-size: 18px;
    font-weight: 600;
    color: #5A57FF;
    line-height: 1.3;
    margin: 0 0 12px;
}

.profile-live {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #10B981;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #E6F9F1;
    border-radius: 999px;
    padding: 5px 14px;
    margin: 0 0 20px;
}

.profile-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10B981;
}

.profile-bio {
    font-size: 13.5px;
    color: #4B5563;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 100%;
}

.profile-divider {
    height: 1px;
    background: var(--slate-200);
    border: none;
    margin: 24px 0;
}

.profile-contact {
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 500;
    color: #1F2937;
    line-height: 1.4;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 16px;
}

.contact-icon--purple {
    background: #F0F2FF;
}

.contact-icon--purple i {
    color: #5A57FF;
}

.contact-icon--linkedin {
    background: transparent;
    width: 36px;
}

.contact-icon--linkedin i {
    font-size: 22px;
    color: #0A66C2;
}

.contact-icon--github {
    background: transparent;
    width: 36px;
}

.contact-icon--github i {
    font-size: 22px;
    color: #1F2937;
}

.contact-item a {
    text-decoration: none;
    color: #1F2937;
    word-break: break-all;
}

.contact-item a:hover {
    color: #5A57FF;
}

.glance-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.glance-row:last-child {
    margin-bottom: 0;
}

.glance-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #F0F2FF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.glance-icon i {
    font-size: 18px;
    color: #5A57FF;
}

.glance-num {
    font-size: 18px;
    font-weight: 800;
    color: var(--slate-900);
    line-height: 1.1;
}

.glance-label {
    font-size: 12px;
    color: #6B7280;
    margin-top: 2px;
}

.skill-row {
    margin-bottom: 18px;
}

.skill-row:last-child {
    margin-bottom: 0;
}

.skill-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--slate-900);
    margin-bottom: 8px;
}

.skill-label span {
    font-weight: 500;
    color: #6B7280;
    font-size: 12px;
}

.skill-track {
    height: 4px;
    background: #F3F4F6;
    border-radius: 3px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    border-radius: 3px;
    background: #4F46E5;
}

.avail-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ECFDF5;
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #1F2937;
}

.avail-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #10B981;
    flex-shrink: 0;
}

/* ── MAIN CONTENT ── */
.resume-main {
    flex: 1;
    min-width: 0;
    padding: 32px 32px 36px;
    background: var(--white);
}

.resume-section { margin-bottom: 32px; }
.resume-section:last-child { margin-bottom: 0; }

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1.5px solid var(--slate-200);
    margin-bottom: 16px;
}

.section-header--split {
    justify-content: space-between;
}

.section-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #EFF6FF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.section-icon i {
    font-size: 14px;
    color: var(--blue-600);
}

.section-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--slate-800);
    margin: 0;
}

.section-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--blue-600);
    text-decoration: none;
    white-space: nowrap;
}

.section-link:hover { text-decoration: underline; }

/* Summary */
.summary-list { margin: 0; padding: 0; list-style: none; }

.summary-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #374151;
    line-height: 1.65;
}

.summary-item:last-child { margin-bottom: 0; }

.summary-item i {
    color: var(--blue-600);
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
}

.summary-item strong { font-weight: 700; color: var(--slate-800); }

/* ── Quill-rendered rich content (summary + experience) ── */
.summary-content p,
.exp-description p {
    font-size: 13px;
    color: #374151;
    line-height: 1.7;
    margin-bottom: 8px;
}

.summary-content p:last-child,
.exp-description p:last-child { margin-bottom: 0; }

.summary-content strong,
.exp-description strong { font-weight: 700; color: #1E293B; }

.summary-content em,
.exp-description em { font-style: italic; }

.summary-content ul,
.exp-description ul {
    list-style: none;
    padding: 0;
    margin: 0 0 6px;
}

.summary-content ul li,
.exp-description ul li {
    position: relative;
    padding-left: 14px;
    margin-bottom: 5px;
    font-size: 13px;
    color: #475569;
    line-height: 1.65;
}

.summary-content ul li::before,
.exp-description ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--blue-500);
}

.summary-content ol,
.exp-description ol {
    padding-left: 20px;
    margin: 0 0 6px;
}

.summary-content ol li,
.exp-description ol li {
    font-size: 13px;
    color: #475569;
    line-height: 1.65;
    margin-bottom: 4px;
}

.summary-content a,
.exp-description a {
    color: var(--blue-600);
    text-decoration: underline;
}

/* Reset Quill default wrapper styles */
.summary-content .ql-editor,
.exp-description .ql-editor { padding: 0; }

/* Skills grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.skill-card {
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    padding: 12px;
    background: var(--white);
}

.skill-card--full { grid-column: 1 / -1; }

/* Auto full-width only when last row has exactly one item (desktop 3-col grid). */
.skills-grid > .skill-card:last-child:nth-child(3n + 1) {
    grid-column: 1 / -1;
}

.skill-card-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 9px;
}

.skill-card-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.skill-card-icon i { font-size: 13px; }

.skill-card-icon--blue { background: #EFF6FF; }
.skill-card-icon--blue i { color: var(--blue-600); }
.skill-card-icon--green { background: #F0FDF4; }
.skill-card-icon--green i { color: var(--green-600); }
.skill-card-icon--purple { background: #F5F3FF; }
.skill-card-icon--purple i { color: var(--violet-600); }
.skill-card-icon--pink { background: #FDF2F8; }
.skill-card-icon--pink i { color: #DB2777; }
.skill-card-icon--orange { background: #FFF7ED; }
.skill-card-icon--orange i { color: #EA580C; }
.skill-card-icon--teal { background: #F0FDFA; }
.skill-card-icon--teal i { color: #0D9488; }
.skill-card-icon--sky { background: #F0F9FF; }
.skill-card-icon--sky i { color: #0284C7; }

.skill-card-name {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--slate-800);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.skill-tag {
    font-size: 11px;
    font-weight: 500;
    padding: 2px 7px;
    border-radius: 4px;
    background: var(--slate-100);
    color: var(--slate-600);
}

/* Experience */
.exp-item {
    position: relative;
    padding-left: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--slate-100);
}

.exp-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 0;
    width: 2.5px;
    border-radius: 2px;
    background: linear-gradient(to bottom, var(--blue-600), rgba(147, 197, 253, 0.4));
}

.exp-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.exp-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 2px;
}

.exp-role {
    font-size: 14px;
    font-weight: 800;
    color: var(--slate-900);
    margin: 0;
}

.exp-role-note {
    font-size: 12px;
    font-weight: 500;
    color: var(--slate-500);
}

.exp-date {
    font-size: 11.5px;
    font-weight: 500;
    color: var(--slate-500);
    white-space: nowrap;
    flex-shrink: 0;
}

.exp-company-row {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
}

.exp-company {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--blue-600);
}

.exp-remote {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--red-500);
    background: #FEF2F2;
    padding: 1px 7px;
    border-radius: 4px;
}

.exp-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.exp-list li {
    position: relative;
    padding-left: 13px;
    margin-bottom: 4px;
    font-size: 12.5px;
    color: var(--slate-600);
    line-height: 1.65;
}

.exp-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--blue-500);
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.project-card {
    border: 1px solid var(--slate-200);
    border-radius: 9px;
    padding: 14px 12px 12px;
    background: var(--white);
}

.project-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.project-icon i { font-size: 19px; }

.project-name {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--slate-900);
    line-height: 1.4;
    margin: 0 0 5px;
}

.project-desc {
    font-size: 11.5px;
    color: var(--slate-500);
    line-height: 1.55;
    margin: 0 0 10px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.project-tag {
    font-size: 10.5px;
    font-weight: 600;
    padding: 1.5px 7px;
    border-radius: 4px;
}

/* Education */
.edu-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.edu-degree {
    font-size: 14px;
    font-weight: 700;
    color: var(--slate-900);
    margin: 0 0 3px;
}

.edu-institute {
    font-size: 12px;
    color: var(--slate-500);
    margin: 0;
}

.edu-year {
    font-size: 12px;
    font-weight: 500;
    color: var(--slate-500);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Footer */
/* ── SITE FOOTER ── */
.site-footer {
    margin-top: 16px;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: 14px;
    box-shadow: var(--shadow-navbar);
    overflow: hidden;
}

/* Top row */
.sf-top {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0;
}

/* Profile block */
.sf-profile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 28px;
    flex-shrink: 0;
}

.sf-avatar {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 800; color: #fff;
    flex-shrink: 0;
}

.sf-name  { font-size: 14px; font-weight: 800; color: #0F172A; line-height: 1.2; margin-bottom: 2px; }
.sf-title { font-size: 12px; color: #64748B; margin-bottom: 7px; }

.sf-avail {
    display: inline-flex; align-items: center; gap: 6px;
    background: #ECFDF5; border: 1px solid #A7F3D0;
    border-radius: 999px; padding: 3px 10px;
    font-size: 11px; font-weight: 700; color: #059669;
}

.sf-avail-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #10B981;
    animation: sfPulse 1.5s infinite;
}

@keyframes sfPulse { 0%,100%{opacity:1} 50%{opacity:.4} }

/* Vertical divider */
.sf-vdiv {
    width: 1px;
    align-self: stretch;
    background: var(--slate-200);
    flex-shrink: 0;
}

/* Feature items */
.sf-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 24px;
    flex: 1;
    border-left: 1px solid var(--slate-200);
}

.sf-feat-ico {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-size: 18px;
}

.sf-feat-title { font-size: 13px; font-weight: 700; color: #0F172A; margin-bottom: 3px; }
.sf-feat-sub   { font-size: 11.5px; color: #64748B; line-height: 1.4; }

/* Bottom bar */
.sf-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 28px;
    border-top: 1px solid var(--slate-100);
    background: var(--slate-50);
}

.sf-copy { font-size: 12px; color: #94A3B8; }

.sf-socials { display: flex; gap: 8px; }

.sf-social {
    width: 32px; height: 32px;
    border-radius: 8px;
    border: 1px solid var(--slate-200);
    background: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; color: #64748B;
    text-decoration: none;
    transition: all .15s;
}

.sf-social:hover { background: #EEF2FF; color: #6366F1; border-color: #c7d2fe; }

/* Print */
@media print {
    body { background: var(--white); }
    .page-frame { max-width: 100%; margin: 0; padding: 0; }
    .site-navbar { position: static; box-shadow: none; margin-bottom: 0; border-radius: 0; }
    .resume-layout { gap: 0; }
    .layout-card { border-radius: 0; box-shadow: none; border: none; }
}

/* ── TABLET ── */
@media (max-width: 1024px) {
    .resume-layout {
        flex-direction: column;
        gap: 16px;
    }

    .profile-sidebar {
        width: 100%;
        min-width: 100%;
    }

    .layout-card--main {
        width: 100%;
    }

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

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

    .skill-card--full {
        grid-column: 1 / -1;
    }

    /* Tablet 2-col grid: if only one item in last row, make it full width. */
    .skills-grid > .skill-card:last-child:nth-child(2n + 1) {
        grid-column: 1 / -1;
    }
}

/* ── MOBILE ── */
@media (max-width: 768px) {
    html {
        -webkit-text-size-adjust: 100%;
    }

    body {
        overflow-x: hidden;
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }

    .page-frame {
        max-width: 100%;
        padding: max(12px, env(safe-area-inset-top)) 14px calc(24px + env(safe-area-inset-bottom));
        margin-top: 0;
        margin-bottom: 0;
    }

    .site-navbar {
        position: sticky;
        top: 10px;
        z-index: 1000;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        height: 56px;
        gap: 8px;
        padding: 0 12px;
        margin-bottom: 14px;
        border-radius: 12px;
        border: 1px solid var(--border, #E2E8F0);
        overflow: visible;
    }

    /* Brand: avatar only on small screens */
    .navbar-brand {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
        text-decoration: none;
    }

    .navbar-name {
        display: none; /* hide name on mobile — saves space */
    }

    .navbar-avatar {
        width: 34px;
        height: 34px;
        font-size: 11px;
    }

    .navbar-actions {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    /* Toggle smaller on mobile */
    .dm-track {
        width: 56px;
        height: 28px;
    }

    .dm-thumb {
        width: 20px;
        height: 20px;
        top: 3px;
        left: 3px;
    }

    html.dark .dm-thumb { transform: translateX(28px); }

    .dm-icon { font-size: 11px; }
    .dm-icon--sun  { left: 13px; }
    .dm-icon--moon { left: 41px; }

    /* Download PDF button on mobile */
    .btn-nav-primary {
        height: 36px;
        padding: 0 12px;
        font-size: 12.5px;
        gap: 5px;
        white-space: nowrap;
    }

    .btn-nav {
        height: 36px;
        padding: 0 10px;
        font-size: 12px;
        font-weight: 500;
        gap: 5px;
        border: 1px solid var(--slate-200);
        background: var(--white);
        border-radius: 8px;
        flex-shrink: 0;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        white-space: nowrap;
    }

    .btn-nav i {
        font-size: 14px;
        color: #374151;
    }

    /* Hide text on Share and Print, show only icon */
    .btn-nav:not(.btn-nav-primary) .btn-label,
    .btn-nav:not(.btn-nav-primary) .btn-label-full,
    .btn-nav:not(.btn-nav-primary) .btn-label-short {
        display: none;
    }

    .btn-nav:not(.btn-nav-primary) {
        width: 36px;
        padding: 0;
        justify-content: center;
    }

    .btn-nav:active {
        background: var(--slate-50);
    }

    /* PDF button shows icon + text */
    .btn-nav-primary {
        padding: 0 12px;
        gap: 5px;
        font-size: 12px;
        font-weight: 700;
        border: none;
        color: var(--white);
        background: var(--gradient-brand);
    }

    .btn-nav-primary i {
        font-size: 14px;
        color: var(--white);
    }

    .btn-nav-primary .btn-label-full {
        display: none;
    }

    .btn-nav-primary .btn-label-short {
        display: inline;
        font-size: 12px;
        font-weight: 700;
        color: var(--white);
    }

    .btn-nav-primary:active {
        opacity: 0.92;
    }

    .resume-layout {
        gap: 12px;
    }

    .sidebar-card {
        padding: 20px 16px;
        border-radius: 14px;
    }

    .layout-card {
        border-radius: 14px;
    }

    .resume-main {
        padding: 20px 16px 24px;
    }

    .resume-section {
        margin-bottom: 24px;
    }

    .profile-name {
        font-size: 23px;
    }

    .profile-title {
        font-size: 16px;
    }

    .profile-bio {
        font-size: 13.5px;
        line-height: 1.65;
    }

    .profile-divider {
        margin: 20px 0;
    }

    .contact-item {
        min-height: 44px;
        align-items: center;
        margin-bottom: 12px;
    }

    .contact-item a {
        word-break: break-word;
    }

    .sidebar-card--glance .sidebar-card-title {
        margin-bottom: 14px;
    }

    .glance-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .glance-row {
        margin-bottom: 0;
        gap: 10px;
    }

    .glance-icon {
        width: 36px;
        height: 36px;
    }

    .glance-num {
        font-size: 17px;
    }

    .glance-label {
        font-size: 11px;
        line-height: 1.3;
    }

    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .skill-card--full {
        grid-column: auto;
    }

    .skill-card,
    .project-card {
        padding: 14px;
    }

    .project-card {
        display: flex;
        align-items: flex-start;
        gap: 14px;
    }

    .project-icon {
        margin-bottom: 0;
        flex-shrink: 0;
        width: 42px;
        height: 42px;
    }

    .project-content {
        flex: 1;
        min-width: 0;
    }

    .summary-item {
        font-size: 14px;
        line-height: 1.6;
    }

    .exp-item {
        background: var(--slate-50);
        border: 1px solid var(--slate-100);
        border-radius: 12px;
        padding: 16px 14px 16px 18px;
        margin-bottom: 12px;
        padding-bottom: 16px;
        border-bottom: none;
    }

    .exp-item::before {
        top: 16px;
        bottom: 16px;
    }

    .exp-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .exp-date {
        white-space: normal;
        font-size: 12px;
    }

    .exp-role {
        font-size: 14px;
        line-height: 1.35;
    }

    .exp-list li {
        font-size: 13px;
    }

    .section-header--split {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
    }

    .section-link {
        margin-left: auto;
    }

    .edu-row {
        flex-direction: column;
        gap: 6px;
    }

    .edu-year {
        white-space: normal;
    }

    .sf-top {
        flex-direction: column;
        align-items: stretch;
    }

    .sf-profile { padding: 18px 20px; }
    .sf-vdiv { width: auto; height: 1px; align-self: auto; }
    .sf-feature { border-left: none; border-top: 1px solid var(--slate-200); padding: 14px 20px; }
    .sf-bottom { padding: 10px 20px; }
    .site-footer { margin-top: 12px; }
}

/* ── SMALL MOBILE ── */
@media (max-width: 480px) {
    .page-frame {
        padding-left: 10px;
        padding-right: 10px;
    }

    .navbar-avatar {
        width: 32px;
        height: 32px;
        font-size: 10px;
    }

    .navbar-name {
        font-size: 13px;
    }

    .profile-photo-wrap,
    .profile-photo {
        width: 96px;
        height: 96px;
    }

    .profile-name {
        font-size: 21px;
    }

    .sidebar-card {
        padding: 18px 14px;
    }

    .resume-main {
        padding: 16px 14px 20px;
    }

    .section-title {
        font-size: 11.5px;
    }

    .glance-list {
        grid-template-columns: 1fr;
    }

    .glance-row {
        background: var(--slate-50);
        border: 1px solid var(--slate-100);
        border-radius: 10px;
        padding: 10px 12px;
    }

    .contact-item {
        font-size: 12.5px;
    }

    .avail-pill {
        width: 100%;
        justify-content: center;
    }
}

/* ── VERY SMALL ── */
@media (max-width: 360px) {
    .navbar-name {
        font-size: 13px;
    }

    .btn-nav-primary .btn-label-short {
        font-size: 11px;
    }
}



/* Project rich text description — matches experience style */
.proj-rich-desc { margin: 6px 0 8px; }

.proj-rich-desc p {
    font-size: 13px;
    color: #374151;
    line-height: 1.7;
    margin-bottom: 8px;
}
.proj-rich-desc p:last-child { margin-bottom: 0; }

.proj-rich-desc strong { font-weight: 700; color: #1E293B; }
.proj-rich-desc em     { font-style: italic; }

.proj-rich-desc ul {
    list-style: none;
    margin: 4px 0 6px;
    padding: 0;
}

.proj-rich-desc ul li {
    position: relative;
    padding-left: 13px;
    margin-bottom: 4px;
    font-size: 13px;
    color: #475569;
    line-height: 1.65;
}

.proj-rich-desc ul li::before {
    content: '';
    position: absolute;
    left: 0; top: 7px;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--blue-500);
}

.proj-rich-desc ol {
    list-style: decimal;
    margin: 4px 0 6px;
    padding-left: 18px;
}

.proj-rich-desc ol li {
    font-size: 13px;
    color: #475569;
    line-height: 1.65;
    margin-bottom: 4px;
}

.proj-rich-desc a { color: #2563EB; text-decoration: underline; }

