/* ================================================
   HAMNA-STYLE THEME OVERRIDE
   Clean, minimal portfolio — professional ATS-friendly design
   Option C: Purple Tech — #312E81 primary · #6366f1 accent
   ================================================ */

/* ── Keyboard skip link visible on focus ── */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    background: #312E81;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0 0 6px 6px;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 9999;
    text-decoration: none;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 0;
}

/* ── Reset body to clean white background ── */
body {
    background: #F9FAFB !important;
    background-attachment: unset !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: #111827;
}

/* ── Global paragraph baseline ── */
p {
    line-height: 1.75;
    color: #374151;
    margin-bottom: 1rem;
}

p:last-child { margin-bottom: 0; }

/* ── Career profile override — fix justify + off-system color from styles.css ── */
.career-profile {
    font-size: 1rem !important;
    color: #374151 !important;
    line-height: 1.8 !important;
    text-align: left !important;
}

.career-profile strong {
    color: #312E81;
    font-weight: 600;
}

/* ── Experience badge & tooltip ── */
.exp-badge-wrap {
    position: relative;
    display: inline-block;
}

.exp-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    background: linear-gradient(135deg, #312E81 0%, #4f46e5 100%);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 0.18em 0.75em;
    border-radius: 2em;
    border: none;
    cursor: default;
    letter-spacing: 0.03em;
    box-shadow: 0 1px 6px rgba(99,102,241,0.35);
    transition: box-shadow 0.2s ease, transform 0.15s ease;
    vertical-align: middle;
    line-height: 1.6;
    font-family: inherit;
}

.exp-badge:hover,
.exp-badge:focus {
    box-shadow: 0 3px 14px rgba(99,102,241,0.5);
    transform: translateY(-1px);
    outline: none;
}

.exp-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) scale(0.92);
    background: #1e1b4b;
    color: #e0e7ff;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    padding: 0.4em 0.85em;
    border-radius: 8px;
    border: 1px solid rgba(129,140,248,0.3);
    box-shadow: 0 6px 20px rgba(49,46,129,0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 100;
}

/* Arrow */
.exp-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1e1b4b;
}

.exp-tooltip--visible {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .exp-badge { transition: none; }
    .exp-tooltip { transition: none; }
}

/* ── Branded text selection ── */
::selection {
    background: #c7d2fe;
    color: #312E81;
}

/* ── Accessible focus rings ── */
a:focus-visible,
button:focus-visible,
[tabindex="0"]:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 3px;
    border-radius: 4px;
}

/* ── Keyboard skip link visible on focus ── */

/* ── Typography — Plus Jakarta Sans for headings ── */
h1, h2, h3, h4, h5, h6,
.section-title, .stats-title, .logo-text,
.hero-content h1, .footer-logo-text {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif !important;
    letter-spacing: -0.02em;
}

/* ── Container ── */
.container {
    max-width: 1100px;
}

/* ── Section cards ── */
.section,
.portfolio-stats {
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid #e8ecf0;
}

/* ── Section header — centered with short purple underline ── */
.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.section-header::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #6366f1;
    border-radius: 2px;
    margin: 0.6rem auto 0;
}

.section-title {
    font-size: 1.9rem !important;
    font-weight: 700 !important;
    color: #111827 !important;
    border-bottom: none !important;
    border-image: none !important;
    padding-bottom: 0 !important;
    display: block !important;
    margin-bottom: 0 !important;
    background: none !important;
    -webkit-text-fill-color: #111827 !important;
}

.section-subtitle {
    color: #64748b;
    font-size: 0.95rem;
    margin-top: 0.4rem;
    max-width: none !important;
}

/* ── Stats section title ── */
.stats-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.stats-header::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #6366f1;
    border-radius: 2px;
    margin: 0.6rem auto 0;
}

.stats-title {
    font-size: 1.9rem !important;
    font-weight: 700 !important;
    color: #111827 !important;
    background: none !important;
    -webkit-text-fill-color: #111827 !important;
}

/* ── HERO: Two-column layout ── */
.header {
    background: white !important;
    border-radius: 16px;
    text-align: left !important;
}

.hero-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

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

.hero-content h1 {
    font-size: 2.6rem !important;
    font-weight: 800 !important;
    color: #111827 !important;
    background: none !important;
    -webkit-text-fill-color: #111827 !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.2;
}

/* Legal name + online handle, so "Viipiin" links back to "Vipin Kumar" */
.hero-handle {
    font-size: 0.9rem;
    color: #64748B;
    font-weight: 500;
    margin-bottom: 0.75rem;
    font-family: 'Inter', sans-serif;
}

.hero-handle span {
    color: #374151;
    font-weight: 600;
    white-space: nowrap;
}

html.dark-theme .hero-handle { color: #94a3b8; }
html.dark-theme .hero-handle span { color: #cbd5e1; }

/* Static subtitle replacing typing animation */
.hero-subtitle {
    font-size: 1.05rem;
    color: #6366f1;
    font-weight: 600;
    margin-bottom: 1.2rem;
    letter-spacing: 0.01em;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

.hero-bio {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.75;
    max-width: 520px;
    margin-bottom: 1.5rem;
}

/* ── Hero role badges ── */
.hero-badges {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.hero-badge.green {
    background: rgba(16, 185, 129, 0.1);
    color: #0f766e;
    border: 1.5px solid rgba(16, 185, 129, 0.3);
}

.hero-badge.amber {
    background: rgba(245, 158, 11, 0.1);
    color: #b45309;
    border: 1.5px solid rgba(245, 158, 11, 0.3);
}

.hero-badge.indigo {
    background: rgba(99, 102, 241, 0.1);
    color: #4338ca;
    border: 1.5px solid rgba(99, 102, 241, 0.3);
}

/* ── Hero CTA buttons ── */
.hero-cta {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    align-items: center;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.72rem 1.5rem;
    background: #6366f1;
    color: white !important;
    text-decoration: none !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.25s ease;
    border: 2px solid #6366f1;
    line-height: 1;
}

.btn-cta:hover {
    background: #4f46e5;
    border-color: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
    color: white !important;
}

.btn-cta-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.72rem 1.5rem;
    background: transparent;
    color: #6366f1 !important;
    text-decoration: none !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.92rem;
    border: 2px solid #6366f1;
    transition: all 0.25s ease;
    line-height: 1;
}

.btn-cta-outline:hover {
    background: #6366f1;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

/* ── Hero avatar ── */
.hero-avatar-wrap {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* ════════════════════════════════════
   AVATAR FRAME — spinning aurora ring
   ════════════════════════════════════ */
.avatar-frame {
    position: relative;
    display: inline-flex;
    border-radius: 50%;
    padding: 4px;       /* visible ring gap between gradient and photo */
    isolation: isolate;
}

/* Spinning conic-gradient aurora ring */
.avatar-frame::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #818cf8 0deg,
        #6366f1 60deg,
        #a78bfa 130deg,
        #38bdf8 200deg,
        #2dd4bf 270deg,
        #6366f1 330deg,
        #818cf8 360deg
    );
    animation: avatarRingSpin 5s linear infinite;
    z-index: -1;
    filter: blur(0.5px);
}

/* Outer ambient glow bloom */
.avatar-frame::after {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.22) 0%, transparent 65%);
    z-index: -2;
    animation: avatarGlowBloom 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes avatarRingSpin {
    to { transform: rotate(360deg); }
}

@keyframes avatarGlowBloom {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50%       { opacity: 1;    transform: scale(1.1); }
}

/* Pause ring on hover — reveal full rainbow stopped */
.avatar-frame:hover::before {
    animation-play-state: paused;
}

/* ── Photo circle inside the frame ── */
.hero-avatar-circle {
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    font-weight: 800;
    border: none;
    box-shadow: 0 8px 30px rgba(49, 46, 129, 0.3);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.hero-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    display: block;
}

.hero-avatar-circle:hover {
    transform: scale(1.05);
    box-shadow:
        0 0 0 2px rgba(99, 102, 241, 0.12),
        0 16px 40px rgba(99, 102, 241, 0.35);
}

/* ── Hero contact chips (below avatar) ── */
.hero-contact-chips {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #475569;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.hero-chip:hover {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
    transform: translateY(-1px);
}

/* ── Skills table — recruiter-friendly row layout ── */
.skills-table {
    display: flex;
    flex-direction: column;
}

.skill-row {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f5f9;
}

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

.skill-row-label {
    min-width: 150px;
    max-width: 150px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #312E81;
    font-family: 'Plus Jakarta Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding-top: 0.3rem;
    line-height: 1.4;
}

.skill-row-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    flex: 1;
}

.skill-chip {
    display: inline-block;
    padding: 0.28rem 0.75rem;
    background: #f8fafc;
    color: #475569;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
    line-height: 1.5;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.skill-chip:hover {
    background: #eef2ff;
    color: #4338ca;
    border-color: #c7d2fe;
}

.skill-chip.hi {
    background: #eef2ff;
    color: #4338ca;
    border-color: #c7d2fe;
    font-weight: 600;
}

@media (max-width: 640px) {
    .skill-row {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.875rem 0;
    }
    .skill-row-label {
        min-width: auto;
        max-width: none;
    }
}

.cert-item {
    background: white !important;
    color: #2c3e50 !important;
    border: 2px solid rgba(99, 102, 241, 0.4) !important;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.08) !important;
    font-weight: 500 !important;
}

.cert-item:hover {
    background: #6366f1 !important;
    color: white !important;
    border-color: #6366f1 !important;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35) !important;
    transform: translateY(-4px) !important;
}

/* Cert cards are links to the Microsoft Learn credential */
a.cert-item {
    display: block;
    text-decoration: none;
}

a.cert-item:focus-visible {
    outline: 3px solid #6366f1;
    outline-offset: 3px;
}

.cert-verify {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #4f46e5;
}

a.cert-item:hover .cert-verify {
    color: #e0e7ff;
}

html.dark-theme .cert-verify {
    color: #a5b4fc;
}

/* ── h1 in sections ── */
h1 {
    background: none !important;
    -webkit-text-fill-color: inherit !important;
    background-clip: unset !important;
    color: #111827 !important;
}

/* ── Timeline cards — cleaner ── */
.tl-card {
    border: 1px solid #e8ecf0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    background: white !important;
}

/* ── Education cards ── */
.edu-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.edu-card {
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 1.4rem 1.75rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.edu-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.08);
}

.edu-card-left {
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.edu-card-icon {
    width: 36px;
    height: 36px;
    background: #eef2ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6366f1;
}

.edu-card-body {
    flex: 1;
}

.edu-card-level {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #6366f1;
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin-bottom: 0.3rem;
}

.edu-card-degree {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0 0 0.35rem;
    line-height: 1.3;
}

.edu-card-meta {
    font-size: 0.82rem;
    color: #64748b;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.edu-card-institution {
    font-weight: 600;
    color: #475569;
}

.edu-card-sep {
    color: #cbd5e1;
}

.edu-card-year {
    color: #94a3b8;
    font-weight: 500;
}

/* ── Stats items on white bg ── */
.stat-item {
    background: #f8f9ff !important;
    border: 1px solid #e8ecf0 !important;
}

.stat-icon svg {
    stroke: #6366f1;
}

/* ── Stat description ── */
.stat-description {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 0.25rem;
}

/* ── Footer stays dark ── */
.creative-footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .hero-layout {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
    }

    .hero-bio {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-badges,
    .hero-cta {
        justify-content: center;
    }

    .hero-avatar-circle {
        width: 160px;
        height: 160px;
        font-size: 3rem;
    }
    .avatar-frame {
        padding: 3px;
    }

    .hero-contact-chips {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 2rem !important;
    }
}

@media (max-width: 600px) {
    .skill-icons-grid {
        gap: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn-cta,
    .btn-cta-outline {
        width: 100%;
        justify-content: center;
    }
}

/* ================================================
   FOOTER — Minimal single-bar
   ================================================ */

.creative-footer { display: none !important; }

.site-footer {
    background: #f8f9fa;
    border-top: 1px solid #e8ecf0;
    font-family: 'Inter', sans-serif;
}

.footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.1rem 2rem;
    color: #94a3b8;
    font-size: 0.8rem;
}

.footer-location {
    color: #b0bac8;
    font-size: 0.78rem;
}

@media (max-width: 600px) {
    .footer-bar {
        flex-direction: column;
        gap: 0.3rem;
        text-align: center;
        padding: 1rem 1.25rem;
    }
}

/* ================================================
   EXPERIENCE CARDS
   Clean card layout matching Projects section style
   ================================================ */

.exp-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.exp-card {
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 1.75rem 2rem;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.exp-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
}

.exp-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.exp-card-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: #e0e7ff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1;
    flex-shrink: 0;
    min-width: 2rem;
}

.exp-card-info {
    flex: 1;
    min-width: 0;
}

.exp-card-top-row {
    margin-bottom: 0.35rem;
}

.exp-badge-current {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #059669;
    background: #d1fae5;
    border: 1px solid #a7f3d0;
    border-radius: 20px;
    padding: 0.2rem 0.6rem;
}

.exp-card-role {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0 0 0.3rem;
    line-height: 1.3;
}

.exp-card-meta {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    margin-bottom: 0.5rem;
}

.exp-card-company {
    font-weight: 600;
    color: #475569;
}

.exp-card-period {
    color: #94a3b8;
}

.exp-card-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    color: #6366f1;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 6px;
    padding: 0.2rem 0.65rem;
    margin-top: 0.1rem;
}

.exp-card-bullets {
    margin: 0;
    padding-left: 1.25rem;
    list-style: none;
}

.exp-card-bullets li {
    position: relative;
    font-size: 0.9rem;
    color: #374151;
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    padding-left: 0.75rem;
    margin-bottom: 0.5rem;
}

.exp-card-bullets li:last-child {
    margin-bottom: 0;
}

.exp-card-bullets li::before {
    content: '';
    position: absolute;
    left: -0.25rem;
    top: 0.65em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #c7d2fe;
    flex-shrink: 0;
}

.exp-card-bullets li strong {
    color: #312E81;
    font-weight: 600;
}

.exp-project-heading {
    font-size: 0.95rem;
    font-weight: 700;
    color: #312E81;
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 1.25rem 0 0.25rem;
    padding-top: 1.1rem;
    border-top: 1px dashed #e2e8f0;
}

.exp-project-heading:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.exp-project-period {
    font-weight: 500;
    color: #94a3b8;
    font-size: 0.8rem;
}

.exp-project-intro {
    font-size: 0.85rem;
    color: #64748b;
    font-family: 'Inter', sans-serif;
    margin: 0 0 0.6rem;
    font-style: italic;
}

@media (max-width: 600px) {
    .exp-card { padding: 1.25rem; }
    .exp-card-number { font-size: 1.2rem; }
}

/* ================================================
   PROJECTS SECTION
   ================================================ */

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-card {
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 1.75rem 2rem;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.project-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
}

.project-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.project-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: #e0e7ff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1;
    flex-shrink: 0;
    min-width: 2rem;
}

.project-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0 0 0.25rem;
    line-height: 1.3;
}

.project-meta {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

.project-details {
    margin: 0;
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 0.5rem 1rem;
    align-items: baseline;
}

.project-details dt {
    font-size: 0.72rem;
    font-weight: 700;
    color: #312E81;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-family: 'Plus Jakarta Sans', sans-serif;
    padding-top: 0.1rem;
}

.project-details dd {
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.65;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.project-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.1rem;
}

.project-tools span {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    background: #f1f5f9;
    color: #475569;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    font-family: 'Inter', sans-serif;
}

@media (max-width: 640px) {
    .project-card { padding: 1.25rem; }
    .project-details {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
    .project-details dt { margin-top: 0.75rem; }
    .project-details dt:first-child { margin-top: 0; }
}

/* ================================================
   CONTACT SECTION
   ================================================ */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 700px;
    margin: 0 auto;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.contact-card:hover {
    border-color: #6366f1;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.12);
    transform: translateY(-2px);
}

.contact-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #eef2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #312E81;
}

.contact-card-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin-bottom: 0.1rem;
}

.contact-card-value {
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
    font-family: 'Inter', sans-serif;
}

@media (max-width: 600px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================================
   BACK-TO-TOP — Kill styles.css circle artifacts
   styles.css adds ::before gradient ring + overflow:hidden
   These overrides neutralise them so the clean button shows
   ================================================ */

.back-to-top {
    border-radius: 10px !important;
    overflow: visible !important;
    background: #ffffff !important;
    border: 1.5px solid #c7d2fe !important;
    width: 42px !important;
    height: 42px !important;
    bottom: 28px !important;
    right: 28px !important;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.12) !important;
    color: #6366f1 !important;
}

.back-to-top::before,
.back-to-top:hover::before {
    display: none !important;
    content: none !important;
}

.back-to-top:hover {
    border-color: #6366f1 !important;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.18) !important;
    background: #eef2ff !important;
    transform: translateY(-2px) !important;
}

.back-to-top.pulse {
    animation: none !important;
}

.back-to-top-inner {
    border-radius: 0 !important;
}

.back-to-top-progress { display: none !important; }
.back-to-top-percentage { display: none !important; }

/* ================================================
   SUBTLE AI & CREATIVE TOUCHES
   Tasteful motion — hero reveal, stats counter,
   availability indicator, section underlines
   ================================================ */

/* ── Hero staggered entrance animations ── */
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-content h1 {
    animation: heroFadeUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.05s both;
}

.hero-subtitle {
    animation: heroFadeUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

.hero-bio {
    animation: heroFadeUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.35s both;
}

.hero-badges {
    animation: heroFadeUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.5s both;
}

.hero-cta {
    animation: heroFadeUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.65s both;
}

.hero-avatar-wrap {
    animation: heroFadeUp 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.15s both;
}

/* ── Avatar slow ambient glow — replaced by .avatar-frame ring ── */
@keyframes avatarGlow {
    0%, 100% {
        box-shadow:
            0 0 0 12px rgba(99, 102, 241, 0.07),
            0 20px 40px rgba(99, 102, 241, 0.22);
    }
    50% {
        box-shadow:
            0 0 0 18px rgba(99, 102, 241, 0.11),
            0 25px 50px rgba(99, 102, 241, 0.32);
    }
}

.hero-avatar-wrap {
    animation: heroFadeUp 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.15s both;
}

.hero-avatar-circle:hover {
    animation-play-state: paused;
}

/* ── Green availability pulse dot on "Targeting..." badge ── */
.hero-badge.green::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    min-width: 6px;
    background: #10b981;
    border-radius: 50%;
    animation: availDot 2.2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes availDot {
    0%, 100% { opacity: 1;   transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.8); }
}

/* ── Section title underline — animated slide-in ──
   Base: scaleX(0); JS adds .underline-in → scaleX(1)       */
.section-header::after {
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-header.underline-in::after {
    transform: scaleX(1);
}

/* ── Stats numbers — subtle scale pop when counter fires ── */
@keyframes statPop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.08); }
    100% { transform: scale(1); }
}

.stat-number.counting {
    animation: statPop 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ── Current role badge — soft green shimmer ── */
@keyframes roleShimmer {
    0%, 100% { background: #d1fae5; border-color: #a7f3d0; }
    50%       { background: #a7f3d0; border-color: #6ee7b7; }
}

.exp-badge-current {
    animation: roleShimmer 3.5s ease-in-out infinite;
}

/* ── Skill chip hi — glow lift on hover ── */
.skill-chip.hi {
    transition: background 0.15s, color 0.15s, border-color 0.15s,
                box-shadow 0.2s, transform 0.2s;
}

.skill-chip.hi:hover {
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.22);
    transform: translateY(-1px);
}

/* ── Respect user motion preferences ── */
@media (prefers-reduced-motion: reduce) {
    .hero-content h1,
    .hero-subtitle,
    .hero-bio,
    .hero-badges,
    .hero-cta,
    .hero-avatar-wrap,
    .hero-avatar-circle,
    .hero-badge.green::before,
    .exp-badge-current {
        animation: none !important;
    }
    .avatar-frame::before,
    .avatar-frame::after {
        animation: none !important;
    }

    .section-header::after {
        transform: scaleX(1) !important;
        transition: none !important;
    }
}

/* ================================================
   DARK THEME OVERRIDES
   Applied when <html class="dark-theme"> is set.
   All overrides go here — never modify styles.css.
   ================================================ */

/* ── Body & page background ── */
html.dark-theme body {
    background: #0f172a !important;
    color: #f1f5f9;
}

html.dark-theme p {
    color: #cbd5e1;
}

html.dark-theme .career-profile {
    color: #cbd5e1 !important;
}

html.dark-theme .career-profile strong {
    color: #818cf8;
}

/* ── Headings ── */
html.dark-theme h1,
html.dark-theme h2,
html.dark-theme h3,
html.dark-theme h4,
html.dark-theme h5,
html.dark-theme h6,
html.dark-theme .section-title,
html.dark-theme .stats-title {
    color: #f1f5f9 !important;
}

/* ── Section cards (white → dark slate) ── */
html.dark-theme .section,
html.dark-theme .portfolio-stats {
    background: #1e293b !important;
    border-color: #334155 !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3) !important;
}

/* ── Hero section ── */
html.dark-theme .hero-content h1 {
    color: #f1f5f9 !important;
    -webkit-text-fill-color: #f1f5f9 !important;
}

html.dark-theme .hero-subtitle {
    color: #a5b4fc !important;
}

html.dark-theme .hero-bio {
    color: #94a3b8 !important;
}

html.dark-theme .hero-avatar-circle {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45) !important;
}
html.dark-theme .avatar-frame::after {
    background: radial-gradient(circle, rgba(129, 140, 248, 0.28) 0%, transparent 65%) !important;
}

html.dark-theme .hero-contact-chip {
    background: #1e293b;
    color: #94a3b8;
    border-color: #334155;
}

html.dark-theme .hero-badge {
    background: #1e293b;
    color: #94a3b8;
    border-color: #334155;
}

html.dark-theme .hero-badge.blue {
    background: #1e1b4b;
    color: #a5b4fc;
    border-color: #3730a3;
}

html.dark-theme .hero-badge.green {
    background: #064e3b;
    color: #6ee7b7;
    border-color: #065f46;
}

/* ── Skill chips ── */
html.dark-theme .skill-chip {
    background: #1e1b4b !important;
    color: #a5b4fc !important;
    border-color: #3730a3 !important;
}

html.dark-theme .skill-chip.hi:hover {
    background: #312e81 !important;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25) !important;
}

/* ── Stats section ── */
html.dark-theme .stat-number {
    color: #818cf8 !important;
}

html.dark-theme .stat-label {
    color: #94a3b8 !important;
}

/* ── Certifications section ── */
html.dark-theme .cert-item {
    background: #1e293b !important;
    color: #e2e8f0 !important;
    border-color: rgba(99, 102, 241, 0.35) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
}

html.dark-theme .cert-item:hover {
    background: #6366f1 !important;
    color: #ffffff !important;
    border-color: #6366f1 !important;
}

html.dark-theme .cert-badge-name {
    color: #f1f5f9 !important;
}

html.dark-theme .cert-badge-issuer,
html.dark-theme .cert-badge-date {
    color: #94a3b8 !important;
}

/* ── Experience cards ── */
html.dark-theme .exp-card {
    background: #1e293b !important;
    border-color: #334155 !important;
}

html.dark-theme .exp-card:hover {
    border-color: #4f46e5 !important;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15) !important;
}

html.dark-theme .exp-card-role {
    color: #f1f5f9 !important;
}

html.dark-theme .exp-card-meta {
    color: #94a3b8 !important;
}

html.dark-theme .exp-card-company {
    color: #cbd5e1 !important;
}

html.dark-theme .exp-card-period {
    color: #64748b !important;
}

html.dark-theme .exp-card-tag {
    background: #1e1b4b !important;
    color: #a5b4fc !important;
    border-color: #3730a3 !important;
}

html.dark-theme .exp-project-heading {
    color: #a5b4fc !important;
    border-top-color: #334155 !important;
}

html.dark-theme .exp-project-period {
    color: #64748b !important;
}

html.dark-theme .exp-project-intro {
    color: #94a3b8 !important;
}

html.dark-theme .exp-card-bullets li {
    color: #cbd5e1 !important;
}

html.dark-theme .exp-card-bullets li strong {
    color: #818cf8 !important;
}

html.dark-theme .exp-card-bullets li::before {
    background: #4f46e5 !important;
}

html.dark-theme .exp-card-number {
    color: #3730a3 !important;
}

html.dark-theme .exp-badge-current {
    background: #064e3b !important;
    color: #6ee7b7 !important;
    border-color: #065f46 !important;
}

/* ── Projects cards ── */
html.dark-theme .project-card {
    background: #1e293b !important;
    border-color: #334155 !important;
}

html.dark-theme .project-card:hover {
    border-color: #4f46e5 !important;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15) !important;
}

html.dark-theme .project-title {
    color: #f1f5f9 !important;
}

html.dark-theme .project-meta {
    color: #94a3b8 !important;
}

html.dark-theme .project-number {
    color: #3730a3 !important;
}

html.dark-theme .project-details dt {
    color: #818cf8 !important;
}

html.dark-theme .project-details dd {
    color: #cbd5e1 !important;
}

html.dark-theme .project-tools span {
    background: #0f172a !important;
    color: #94a3b8 !important;
    border-color: #334155 !important;
}

/* ── Contact cards ── */
html.dark-theme .contact-card {
    background: #1e293b !important;
    border-color: #334155 !important;
}

html.dark-theme .contact-card:hover {
    border-color: #6366f1 !important;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.2) !important;
}

html.dark-theme .contact-card-icon {
    background: #1e1b4b !important;
    color: #818cf8 !important;
}

html.dark-theme .contact-card-label {
    color: #64748b !important;
}

html.dark-theme .contact-card-value {
    color: #f1f5f9 !important;
}

/* ── Education cards ── */
html.dark-theme .edu-card {
    background: #1e293b !important;
    border-color: #334155 !important;
}

html.dark-theme .edu-degree {
    color: #f1f5f9 !important;
}

html.dark-theme .edu-institution {
    color: #a5b4fc !important;
}

html.dark-theme .edu-meta {
    color: #94a3b8 !important;
}

/* ── Section subtitles / muted text ── */
html.dark-theme .section-subtitle {
    color: #94a3b8 !important;
}

/* ── Footer ── */
html.dark-theme .site-footer {
    background: #0f172a !important;
    border-top-color: #1e293b !important;
}

html.dark-theme .footer-bar {
    color: #475569 !important;
}

html.dark-theme .footer-location {
    color: #334155 !important;
}

/* ── Back-to-top button ── */
html.dark-theme .back-to-top {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #818cf8 !important;
}

html.dark-theme .back-to-top:hover {
    background: #1e1b4b !important;
    border-color: #6366f1 !important;
}

/* ── Skip link ── */
html.dark-theme .skip-link {
    background: #4f46e5;
}

/* ── Text selection ── */
html.dark-theme ::selection {
    background: #3730a3;
    color: #e0e7ff;
}

/* ── Hero card wrapper (.header div) — fix white card shadow in dark mode ── */
html.dark-theme .header {
    background: #1e293b !important;
    border-color: #334155 !important;
}

/* ── Section title + stats title webkit fill override ── */
html.dark-theme .section-title {
    color: #f1f5f9 !important;
    -webkit-text-fill-color: #f1f5f9 !important;
}

html.dark-theme .stats-title {
    color: #f1f5f9 !important;
    -webkit-text-fill-color: #f1f5f9 !important;
}

/* ================================================
   AI-AUGMENTED DEVELOPMENT SECTION
   ================================================ */

.ai-philosophy {
    background: #f8f9ff;
    border-left: 4px solid #6366f1;
    border-radius: 0 10px 10px 0;
    padding: 1.1rem 1.5rem;
    margin-bottom: 2rem;
}

.ai-philosophy p {
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.8;
    margin: 0;
}

.ai-caps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.ai-cap-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.4rem 1.5rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ai-cap-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.08);
}

.ai-cap-icon {
    width: 38px;
    height: 38px;
    background: #eef2ff;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6366f1;
    margin-bottom: 0.9rem;
}

.ai-cap-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0 0 0.75rem;
    line-height: 1.3;
}

.ai-cap-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.ai-cap-list li {
    font-size: 0.84rem;
    color: #475569;
    line-height: 1.65;
    padding-left: 1rem;
    position: relative;
    font-family: 'Inter', sans-serif;
}

.ai-cap-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #a5b4fc;
}

.ai-lifecycle {
    background: #f8f9ff;
    border: 1px solid #e0e7ff;
    border-radius: 12px;
    padding: 1.25rem 1.75rem;
    margin-bottom: 1.5rem;
}

.ai-lifecycle-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6366f1;
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin-bottom: 1rem;
}

.ai-lifecycle-steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.ai-lc-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0;
}

.ai-lc-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #6366f1;
    border: 2px solid #c7d2fe;
    margin-bottom: 0.5rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.ai-lc-connector {
    flex: 1;
    height: 2px;
    background: #c7d2fe;
    margin-top: 5px;
    min-width: 12px;
    max-width: 60px;
}

.ai-lc-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: #312E81;
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin-bottom: 0.2rem;
    white-space: nowrap;
}

.ai-lc-detail {
    font-size: 0.72rem;
    color: #64748b;
    font-family: 'Inter', sans-serif;
    line-height: 1.4;
    padding: 0 0.2rem;
}

.ai-tools-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ai-tool-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.85rem;
    background: #eef2ff;
    color: #4338ca;
    border: 1.5px solid #c7d2fe;
    border-radius: 20px;
    font-size: 0.79rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.ai-tool-tag:hover {
    background: #6366f1;
    color: #ffffff;
    border-color: #6366f1;
    transform: translateY(-1px);
}

@media (max-width: 860px) {
    .ai-caps-grid {
        grid-template-columns: 1fr;
    }

    .ai-lifecycle-steps {
        flex-wrap: wrap;
        gap: 0.75rem;
        justify-content: center;
    }

    .ai-lc-connector {
        display: none;
    }

    .ai-lc-step {
        flex: 0 0 auto;
        min-width: 90px;
    }
}

/* ── Dark mode — AI section ── */
html.dark-theme .ai-philosophy {
    background: #1e1b4b;
    border-left-color: #818cf8;
}

html.dark-theme .ai-philosophy p {
    color: #cbd5e1;
}

html.dark-theme .ai-cap-card {
    background: #1e293b !important;
    border-color: #334155 !important;
}

html.dark-theme .ai-cap-card:hover {
    border-color: #6366f1 !important;
}

html.dark-theme .ai-cap-icon {
    background: #1e1b4b !important;
    color: #818cf8 !important;
}

html.dark-theme .ai-cap-title {
    color: #f1f5f9 !important;
}

html.dark-theme .ai-cap-list li {
    color: #94a3b8;
}

html.dark-theme .ai-cap-list li::before {
    background: #6366f1;
}

html.dark-theme .ai-lifecycle {
    background: #1e1b4b;
    border-color: #3730a3;
}

html.dark-theme .ai-lifecycle-label {
    color: #a5b4fc;
}

html.dark-theme .ai-lc-name {
    color: #c7d2fe;
}

html.dark-theme .ai-lc-detail {
    color: #64748b;
}

html.dark-theme .ai-lc-dot {
    background: #818cf8;
    border-color: #4f46e5;
}

html.dark-theme .ai-lc-connector {
    background: #3730a3;
}

html.dark-theme .ai-tool-tag {
    background: #1e1b4b;
    color: #a5b4fc;
    border-color: #4f46e5;
}

html.dark-theme .ai-tool-tag:hover {
    background: #6366f1;
    color: #ffffff;
    border-color: #6366f1;
}

/* ── Hero contact chips (email / phone below avatar) ── */
html.dark-theme .hero-chip {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #94a3b8 !important;
}

html.dark-theme .hero-chip:hover {
    background: #6366f1 !important;
    border-color: #6366f1 !important;
    color: #ffffff !important;
}

/* ── Hero badge — amber variant ── */
html.dark-theme .hero-badge.amber {
    background: rgba(217, 119, 6, 0.15) !important;
    color: #fbbf24 !important;
    border-color: rgba(217, 119, 6, 0.35) !important;
}

/* ── Hero badge — indigo variant ── */
html.dark-theme .hero-badge.indigo {
    background: rgba(99, 102, 241, 0.15) !important;
    color: #a5b4fc !important;
    border-color: rgba(99, 102, 241, 0.35) !important;
}

/* ── Hero CTA outline button ── */
html.dark-theme .btn-cta-outline {
    color: #818cf8 !important;
    border-color: #818cf8 !important;
    background: transparent !important;
}

html.dark-theme .btn-cta-outline:hover {
    background: #818cf8 !important;
    color: #ffffff !important;
    border-color: #818cf8 !important;
}

/* ── Skills table row dividers ── */
html.dark-theme .skill-row {
    border-bottom-color: #1e293b !important;
}

html.dark-theme .skill-row-label {
    color: #94a3b8 !important;
}

/* ── Sun/Moon icon toggle ──
   Light mode → show sun, hide moon
   Dark mode  → hide sun, show moon          ── */
.theme-toggle .sun-icon  { display: block; }
.theme-toggle .moon-icon { display: none;  }

html.dark-theme .theme-toggle .sun-icon  { display: none;  }
html.dark-theme .theme-toggle .moon-icon { display: block; }

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
    width: 18px;
    height: 18px;
    transition: opacity 0.2s ease;
}

/* ══════════════════════════════════════════════════════
   COMMUNITY BADGES — COMPACT STRIP
   One row of small badges with verify links
   ══════════════════════════════════════════════════════ */

/* ── Source links in section subtitle ── */
.badge-source-link {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(99, 102, 241, 0.3);
    transition: color 0.2s ease, border-color 0.2s ease;
}
.badge-source-link:hover {
    color: #312E81;
    border-bottom-color: #312E81;
}

/* ── Compact badge strip: small image, name, verify link ── */
.badge-strip {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 0.75rem;
}

.badge-mini {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.9rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.badge-mini img {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.badge-mini-name {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
}

.badge-mini-verify {
    font-size: 0.78rem;
    font-weight: 600;
    color: #4f46e5;
    text-decoration: none;
    white-space: nowrap;
}

.badge-mini-verify:hover { text-decoration: underline; }

.badge-mini-verify:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
    border-radius: 4px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

html.dark-theme .badge-mini {
    background: #1e293b;
    border-color: rgba(99, 102, 241, 0.25);
}
html.dark-theme .badge-mini-name { color: #f1f5f9; }
html.dark-theme .badge-mini-verify { color: #a5b4fc; }
html.dark-theme .badge-source-link {
    color: #818cf8 !important;
    border-bottom-color: rgba(129, 140, 248, 0.3) !important;
}
html.dark-theme .badge-source-link:hover {
    color: #c7d2fe !important;
    border-bottom-color: #c7d2fe !important;
}

/* ================================================
   WHY-ME DIFFERENTIATOR CARDS (Career Profile)
   ================================================ */

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0 0;
}

.why-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem 1.35rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.why-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.08);
}

.why-icon {
    width: 34px;
    height: 34px;
    background: #eef2ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6366f1;
    margin-bottom: 0.75rem;
}

.why-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #111827;
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.why-text {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.65;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

@media (max-width: 700px) {
    .why-grid { grid-template-columns: 1fr; }
}

html.dark-theme .why-card {
    background: #1e293b !important;
    border-color: #334155 !important;
}

html.dark-theme .why-card:hover {
    border-color: #6366f1 !important;
}

html.dark-theme .why-icon {
    background: #1e1b4b !important;
    color: #818cf8 !important;
}

html.dark-theme .why-title {
    color: #f1f5f9 !important;
}

html.dark-theme .why-text {
    color: #94a3b8 !important;
}

/* ================================================
   CERTIFICATIONS — IN-PROGRESS ROW
   ================================================ */

.cert-pursuing {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding: 0.75rem 1.25rem;
    background: #f8f9ff;
    border: 1px solid #e0e7ff;
    border-radius: 10px;
}

.cert-pursuing-label {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.7rem;
    background: #eef2ff;
    color: #4338ca;
    border: 1.5px solid #c7d2fe;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    flex-shrink: 0;
}

.cert-pursuing-items {
    font-size: 0.85rem;
    color: #475569;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    line-height: 1.5;
}

html.dark-theme .cert-pursuing {
    background: #1e1b4b;
    border-color: #3730a3;
}

html.dark-theme .cert-pursuing-label {
    background: #312E81;
    color: #c7d2fe;
    border-color: #4f46e5;
}

html.dark-theme .cert-pursuing-items {
    color: #94a3b8;
}

/* ================================================
   CONTACT — AVAILABILITY BAR
   ================================================ */

.availability-bar {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1.25rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.88rem;
    color: #166534;
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
}

.availability-bar strong {
    color: #166534;
    font-weight: 700;
}

.avail-dot {
    width: 10px;
    height: 10px;
    min-width: 10px;
    background: #22c55e;
    border-radius: 50%;
    animation: availPulse 2.2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes availPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50%       { opacity: 0.8; box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .avail-dot { animation: none; }
}

html.dark-theme .availability-bar {
    background: #052e16;
    border-color: #166534;
    color: #86efac;
}

html.dark-theme .availability-bar strong {
    color: #4ade80;
}

/* ================================================
   WRITING & GUIDES — cards linking to public essays and cheat sheets
   ================================================ */

.writing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 1rem;
}

.writing-card {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1.1rem 1.25rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.writing-card:hover {
    border-color: #6366f1;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.15);
    transform: translateY(-2px);
}

.writing-card:focus-visible {
    outline: 3px solid #6366f1;
    outline-offset: 3px;
}

.writing-kind {
    align-self: flex-start;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #4338ca;
    background: #eef2ff;
    border-radius: 999px;
    padding: 0.15rem 0.6rem;
}

.writing-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    color: #111827;
}

.writing-desc {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: #475569;
}

.writing-more {
    margin-top: 1.25rem;
    text-align: center;
}

.writing-more a {
    font-weight: 600;
    color: #4f46e5;
    text-decoration: none;
}

.writing-more a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
    .writing-card { transition: none; }
    .writing-card:hover { transform: none; }
}

html.dark-theme .writing-card {
    background: #1e293b;
    border-color: rgba(99, 102, 241, 0.25);
}
html.dark-theme .writing-card:hover { border-color: #818cf8; }
html.dark-theme .writing-kind { background: #312E81; color: #c7d2fe; }
html.dark-theme .writing-title { color: #f1f5f9; }
html.dark-theme .writing-desc { color: #94a3b8; }
html.dark-theme .writing-more a { color: #a5b4fc; }

/* In-text links inside experience bullets (e.g. "detail in the ABB case study") */
.exp-card-bullets a {
    color: #4f46e5;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
html.dark-theme .exp-card-bullets a { color: #a5b4fc; }

/* ================================================
   RECOMMENDATIONS — LinkedIn quotes, verbatim
   ================================================ */

.rec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 1rem;
}

.rec-card {
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.4rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #6366f1;
    border-radius: 12px;
}

.rec-quote {
    margin: 0;
    padding: 0;
    border: 0;
}

.rec-quote p {
    margin: 0;
    font-size: 0.93rem;
    line-height: 1.65;
    color: #374151;
}

.rec-quote p::before { content: "\201C"; }
.rec-quote p::after  { content: "\201D"; }

.rec-by {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.rec-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: #111827;
}

.rec-role,
.rec-meta {
    font-size: 0.8rem;
    color: #64748B;
}

.rec-more {
    margin-top: 1.25rem;
    text-align: center;
}

.rec-more a {
    font-weight: 600;
    color: #4f46e5;
    text-decoration: none;
}

.rec-more a:hover { text-decoration: underline; }

html.dark-theme .rec-card {
    background: #1e293b;
    border-color: rgba(99, 102, 241, 0.25);
    border-left-color: #818cf8;
}
html.dark-theme .rec-quote p { color: #cbd5e1; }
html.dark-theme .rec-name { color: #f1f5f9; }
html.dark-theme .rec-role,
html.dark-theme .rec-meta { color: #94a3b8; }
html.dark-theme .rec-more a { color: #a5b4fc; }
