/* =====================================================
   OMONDI REAGAN | PROFESSIONAL DASHBOARD
   Stylesheet — dashboard.css

   1.  Design tokens
   2.  Reset & base
   3.  Layout
   4.  Sidebar
   5.  Main content & top bar
   6.  Sections & headings
   7.  Hero / welcome card
   8.  Overview cards
   9.  Content cards, profile, skills
   10. Business
   11. Projects
   12. Experience & education
   13. Qualifications
   14. Contact
   15. Footer
   16. Accessibility
   17. Responsive (tablet, mobile, small phone)
   18. Print
===================================================== */


/* =====================================================
   1. DESIGN TOKENS
===================================================== */

:root {
    --navy-900: #0d1828;
    --navy-800: #142338;
    --navy-700: #1b3050;
    --navy-600: #263c57;

    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --blue-400: #60a5fa;
    --blue-300: #93c5fd;
    --blue-100: #dbeafe;
    --blue-50:  #eff6ff;

    --ink:      #142338;
    --text:     #334155;
    --muted:    #64748b;
    --line:     #e2e8f0;
    --surface:  #ffffff;
    --page:     #f1f5f9;

    --success-bg: #dcfce7;
    --success-tx: #166534;
    --warn-bg:    #fef3c7;
    --warn-tx:    #92400e;

    --radius-sm: 8px;
    --radius:    14px;
    --radius-lg: 22px;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 2px 8px rgba(15, 23, 42, .04);
    --shadow:    0 2px 4px rgba(15, 23, 42, .04), 0 12px 28px rgba(15, 23, 42, .07);
    --shadow-lg: 0 4px 8px rgba(15, 23, 42, .06), 0 20px 44px rgba(15, 23, 42, .12);

    --sidebar-w: 264px;
    --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}


/* =====================================================
   2. RESET & BASE
===================================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: var(--page);
    color: var(--text);
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
}

ul {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color .25s ease, background .25s ease,
                border-color .25s ease, transform .25s ease,
                box-shadow .25s ease;
}


/* =====================================================
   3. LAYOUT
===================================================== */

.dashboard {
    display: flex;
    min-height: 100vh;
}


/* =====================================================
   4. SIDEBAR
===================================================== */

.sidebar {
    width: var(--sidebar-w);
    height: 100vh;
    height: 100dvh;
    min-height: 0;

    background:
        radial-gradient(120% 60% at 0% 0%, rgba(37, 99, 235, .22) 0%, transparent 60%),
        linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
    color: #ffffff;

    padding: 28px 18px;

    position: fixed;
    top: 0;
    left: 0;

    display: flex;
    flex-direction: column;

    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;

    scrollbar-width: thin;
    scrollbar-color: #475569 transparent;

    z-index: 100;
}

.sidebar > * {
    flex-shrink: 0;
}

.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: #475569; border-radius: 10px; }
.sidebar::-webkit-scrollbar-thumb:hover { background: #64748b; }


/* Brand */

.brand {
    padding: 4px 10px 24px;
}

.brand h2 {
    font-size: 27px;
    font-weight: 800;
    letter-spacing: 3px;
    color: #ffffff;
    line-height: 1.2;
}

.brand h2 span {
    color: var(--blue-400);
}

.brand p {
    color: #94a3b8;
    font-size: 10px;
    letter-spacing: 2.5px;
    font-weight: 700;
    margin-top: 2px;
}


/* Mini profile */

.profile-mini {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 14px;
    margin-bottom: 26px;

    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--radius);
}

.profile-mini img,
.profile-mini .avatar-fallback {
    width: 46px;
    height: 46px;
    flex-shrink: 0;

    border-radius: 50%;
    object-fit: cover;

    border: 2px solid var(--blue-400);
}

.profile-mini h3 {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}

.profile-mini p {
    font-size: 11px;
    color: #94a3b8;
}


/* Avatar fallback (shown by script if the photo is missing) */

.avatar-fallback {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--blue-600), var(--navy-700));
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 1px;
}

.profile-mini .avatar-fallback { font-size: 15px; }


/* Navigation */

.nav-heading {
    color: #94a3b8;
    font-size: 10px;
    letter-spacing: 2.5px;
    font-weight: 700;

    padding: 0 12px;
    margin-bottom: 10px;
}

.navigation {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.navigation a {
    display: flex;
    align-items: center;
    gap: 13px;

    color: #cbd5e1;

    padding: 11px 14px;

    font-size: 13.5px;
    font-weight: 500;

    border-radius: 10px;
    border-left: 3px solid transparent;
}

.navigation a span {
    width: 20px;
    text-align: center;
    font-size: 16px;
    color: #94a3b8;
    transition: color .25s ease;
}

.navigation a:hover {
    background: rgba(255, 255, 255, .07);
    color: #ffffff;
    transform: translateX(3px);
}

.navigation a:hover span {
    color: var(--blue-400);
}

/* Active link — set by the script as you scroll */
.navigation a.active {
    background: var(--blue-600);
    color: #ffffff;
    border-left-color: var(--blue-300);
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(37, 99, 235, .35);
}

.navigation a.active span {
    color: #ffffff;
}


/* Sidebar bottom */

.sidebar-bottom {
    margin-top: auto;
    padding: 18px 14px;

    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--radius);
}

.sidebar-bottom p {
    color: #94a3b8;
    font-size: 11.5px;
    margin-bottom: 8px;
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: var(--blue-400);

    font-size: 13px;
    font-weight: 700;
}

.portfolio-link:hover {
    color: #ffffff;
}

.portfolio-link span {
    transition: transform .2s ease;
}

.portfolio-link:hover span {
    transform: translateX(5px);
}


/* Mobile top bar, close button and overlay (only shown on small screens) */

.mobile-bar {
    display: none;

    position: sticky;
    top: 0;
    z-index: 90;

    align-items: center;
    gap: 14px;

    height: 58px;
    padding: 0 16px;

    background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
    color: #ffffff;

    box-shadow: 0 2px 12px rgba(13, 24, 40, .25);
}

.mobile-brand {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 3px;
}

.mobile-brand span {
    color: var(--blue-400);
}

.menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;

    width: 42px;
    height: 42px;
    padding: 0 10px;

    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 10px;

    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: #ffffff;
}

.menu-toggle:focus-visible,
.sidebar-close:focus-visible {
    outline: 3px solid var(--blue-300);
    outline-offset: 2px;
}

.sidebar-close {
    display: none;
    place-items: center;

    position: absolute;
    top: 14px;
    right: 14px;

    width: 36px;
    height: 36px;

    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 10px;

    color: #ffffff;
    font-size: 20px;
    line-height: 1;

    cursor: pointer;
}

.sidebar-overlay {
    display: none;

    position: fixed;
    inset: 0;
    z-index: 250;

    background: rgba(13, 24, 40, .6);

    opacity: 0;
    pointer-events: none;

    transition: opacity .3s ease;
}

.sidebar-overlay.show {
    opacity: 1;
    pointer-events: auto;
}


/* =====================================================
   5. MAIN CONTENT & TOP BAR
===================================================== */

.main-content {
    width: calc(100% - var(--sidebar-w));
    margin-left: var(--sidebar-w);

    padding: 36px clamp(20px, 3.6vw, 52px) 28px;

    min-width: 0;
}

.main-content > * {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 34px;
}

.breadcrumb {
    font-size: 10.5px;
    letter-spacing: 2px;
    color: var(--muted);
    font-weight: 700;
}

.topbar h1 {
    font-size: clamp(26px, 3vw, 32px);
    font-weight: 800;
    color: var(--ink);
    margin: 4px 0;
    line-height: 1.25;
    letter-spacing: -.3px;
}

.top-description {
    font-size: 14px;
    color: var(--muted);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.contact-button,
.top-portfolio-button {
    display: inline-block;
    padding: 11px 20px;

    border-radius: 9px;

    font-size: 13px;
    font-weight: 700;

    white-space: nowrap;
}

.contact-button {
    background: var(--blue-600);
    color: #ffffff;
    border: 1px solid var(--blue-600);
    box-shadow: 0 6px 16px rgba(37, 99, 235, .28);
}

.contact-button:hover {
    background: var(--blue-700);
    border-color: var(--blue-700);
    transform: translateY(-2px);
}

.top-portfolio-button {
    background: var(--surface);
    color: var(--blue-600);
    border: 1px solid var(--blue-600);
}

.top-portfolio-button:hover {
    background: var(--blue-50);
    transform: translateY(-2px);
}


/* =====================================================
   6. SECTIONS & HEADINGS
===================================================== */

.section {
    margin-bottom: 56px;
    scroll-margin-top: 28px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 22px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    font-size: 10.5px;
    color: var(--blue-600);
    font-weight: 800;
    letter-spacing: 2.2px;
}

.section-title .eyebrow::before {
    content: "";
    width: 26px;
    height: 3px;
    border-radius: 3px;
    background: var(--blue-600);
}

.section-title h2 {
    font-size: clamp(22px, 2.4vw, 26px);
    font-weight: 800;
    color: var(--ink);
    line-height: 1.35;
    letter-spacing: -.2px;
    margin-top: 2px;
}


/* =====================================================
   7. HERO / WELCOME CARD
===================================================== */

.welcome-card {
    position: relative;
    overflow: hidden;

    background:
        radial-gradient(70% 120% at 100% 0%, rgba(96, 165, 250, .28) 0%, transparent 60%),
        linear-gradient(135deg, var(--navy-800) 0%, var(--navy-700) 100%);
    color: #ffffff;

    padding: clamp(26px, 4vw, 44px);

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;

    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);

    margin-bottom: 40px;
}

.welcome-card::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -90px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 38px solid rgba(255, 255, 255, .04);
    pointer-events: none;
}

.welcome-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.welcome-content .eyebrow {
    color: var(--blue-300);
}

.welcome-content h2 {
    font-size: clamp(28px, 3.6vw, 40px);
    font-weight: 800;
    color: #ffffff;
    margin: 10px 0 14px;
    line-height: 1.25;
    letter-spacing: -.5px;
}

.welcome-content h2 span {
    color: var(--blue-400);
}

.welcome-content > p:not(.eyebrow) {
    font-size: 15px;
    color: #cbd5e1;
    max-width: 560px;
    line-height: 1.8;
}

.welcome-image {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.welcome-image img,
.welcome-image .avatar-fallback {
    width: 176px;
    height: 176px;

    border-radius: 50%;
    object-fit: cover;

    border: 5px solid rgba(255, 255, 255, .22);
    box-shadow: 0 0 0 8px rgba(96, 165, 250, .16), 0 18px 40px rgba(0, 0, 0, .35);
}

.welcome-image .avatar-fallback { font-size: 44px; }

.welcome-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;

    margin-top: 26px;
}

.primary-button,
.secondary-button,
.portfolio-button {
    display: inline-block;

    padding: 12px 20px;

    border-radius: 9px;

    font-size: 13px;
    font-weight: 700;
}

.primary-button {
    background: var(--blue-600);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(37, 99, 235, .4);
}

.primary-button:hover {
    background: #3b82f6;
    transform: translateY(-2px);
}

.secondary-button {
    background: rgba(255, 255, 255, .1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, .28);
    padding: 11px 19px;
}

.secondary-button:hover {
    background: rgba(255, 255, 255, .18);
    transform: translateY(-2px);
}

.portfolio-button {
    color: var(--blue-300);
    padding-left: 6px;
    padding-right: 6px;
}

.portfolio-button:hover {
    color: #ffffff;
    transform: translateX(3px);
}


/* Hero stat strip */

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 34px;

    margin-top: 30px;
    padding-top: 22px;

    border-top: 1px solid rgba(255, 255, 255, .14);
}

.hero-stats div {
    display: flex;
    flex-direction: column;
}

.hero-stats strong {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}

.hero-stats span {
    font-size: 11.5px;
    color: #94a3b8;
    letter-spacing: .3px;
}


/* =====================================================
   8. OVERVIEW CARDS
===================================================== */

.overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.overview-card {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 18px;
    align-items: center;

    background: var(--surface);

    padding: 22px 24px;

    border-radius: var(--radius);
    border: 1px solid var(--line);

    box-shadow: var(--shadow-sm);

    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.overview-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--blue-100);
}

.card-icon {
    grid-row: span 2;

    display: grid;
    place-items: center;

    width: 52px;
    height: 52px;

    font-size: 24px;
    color: var(--blue-600);

    background: var(--blue-50);
    border-radius: 14px;
}

.overview-card h3 {
    color: var(--ink);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    align-self: end;
}

.overview-card p {
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.5;
    align-self: start;
}


/* =====================================================
   9. CONTENT CARDS, PROFILE, SKILLS
===================================================== */

.content-card {
    background: var(--surface);

    padding: clamp(22px, 3vw, 34px);

    border-radius: var(--radius);
    border: 1px solid var(--line);

    box-shadow: var(--shadow-sm);
}

.content-card h3 {
    color: var(--ink);
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.35;
}

.content-card h3:not(:first-child) {
    margin-top: 30px;
}

.content-card p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.85;
    margin-bottom: 13px;
}


/* Profile information */

.information-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;

    margin-top: 26px;
    padding-top: 26px;

    border-top: 1px solid var(--line);
}

.information-grid div {
    display: flex;
    flex-direction: column;
    gap: 4px;

    padding: 16px 18px;

    background: var(--page);
    border-radius: 10px;
    border-left: 3px solid var(--blue-600);
}

.information-grid span {
    font-size: 10.5px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
}

.information-grid strong {
    font-size: 15px;
    color: var(--ink);
}


/* Skills as chips */

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin: 14px 0 6px;
}

.skills-list li {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    font-size: 13px;
    font-weight: 500;
    color: var(--ink);

    background: var(--blue-50);
    border: 1px solid var(--blue-100);
    border-radius: 999px;

    padding: 7px 15px;
    line-height: 1.4;

    transition: background .2s ease, transform .2s ease;
}

.skills-list li::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--blue-600);
    flex-shrink: 0;
}

.skills-list li:hover {
    background: var(--blue-100);
    transform: translateY(-2px);
}


/* =====================================================
   10. BUSINESS
===================================================== */

.business-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;

    margin-top: 24px;
}

.business-item {
    background: var(--page);

    padding: 20px 22px;

    border-radius: 12px;
    border-left: 4px solid var(--blue-600);

    transition: background .2s ease, transform .2s ease;
}

.business-item:hover {
    background: var(--blue-50);
    transform: translateY(-3px);
}

.business-item h4 {
    color: var(--ink);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}

.business-item p {
    font-size: 13.5px;
    margin-bottom: 0;
}


/* Services: steps and call-to-action buttons */

.service-steps {
    counter-reset: step;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;

    margin-top: 14px;
}

.service-steps li {
    counter-increment: step;

    display: flex;
    flex-direction: column;
    gap: 12px;

    padding: 18px 20px;

    background: var(--blue-50);
    border: 1px solid var(--blue-100);
    border-radius: 12px;

    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
}

.service-steps li::before {
    content: counter(step);

    display: grid;
    place-items: center;

    width: 32px;
    height: 32px;

    background: var(--blue-600);
    color: #ffffff;

    border-radius: 50%;
    font-size: 14px;
    font-weight: 800;
}

.service-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    margin-top: 28px;
    padding-top: 24px;

    border-top: 1px solid var(--line);
}

.whatsapp-button,
.email-button {
    display: inline-block;

    padding: 13px 24px;

    border-radius: 9px;

    font-size: 14px;
    font-weight: 700;
}

.whatsapp-button {
    background: #16a34a;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(22, 163, 74, .3);
}

.whatsapp-button:hover {
    background: #15803d;
    transform: translateY(-2px);
}

.email-button {
    background: var(--surface);
    color: var(--blue-600);
    border: 1px solid var(--blue-600);
}

.email-button:hover {
    background: var(--blue-50);
    transform: translateY(-2px);
}

@media (max-width: 700px) {

    .service-steps {
        grid-template-columns: 1fr;
    }

    .service-cta a {
        flex: 1 1 100%;
        text-align: center;
    }

}


/* =====================================================
   11. PROJECTS
===================================================== */

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.project-card {
    display: flex;
    flex-direction: column;

    background: var(--surface);

    padding: 26px;

    border-radius: var(--radius);
    border: 1px solid var(--line);
    border-top: 4px solid var(--blue-600);

    box-shadow: var(--shadow-sm);

    transition: transform .25s ease, box-shadow .25s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.project-category {
    color: var(--blue-600);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 1.6px;
}

.project-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    margin: 8px 0 8px;
}

.project-card p:not(.project-category) {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 18px;
}

.project-tags span {
    background: var(--blue-50);
    color: var(--blue-600);

    padding: 5px 11px;

    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}


/* =====================================================
   12. EXPERIENCE & EDUCATION
===================================================== */

.experience-item {
    position: relative;
    border-left: 3px solid var(--blue-100);
    padding-left: 26px;
}

.experience-item::before {
    content: "";
    position: absolute;
    left: -9px;
    top: 4px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--blue-600);
    border: 3px solid var(--surface);
    box-shadow: 0 0 0 2px var(--blue-600);
}

.experience-item h3 {
    font-size: 21px;
    margin-top: 4px;
}

.experience-item h4 {
    color: var(--ink);
    font-size: 15px;
    margin-top: 22px;
    margin-bottom: 4px;
}

.content-card .job-title {
    color: var(--blue-600);
    font-weight: 700;
    font-size: 14.5px;
}

.education-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.education-item:first-child { padding-top: 0; }

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

.education-item h3 {
    margin: 0 0 6px;
}

.education-item p {
    margin-bottom: 10px;
}

.education-status,
.qualification-status {
    display: inline-block;

    background: var(--blue-50);
    color: var(--blue-600);

    padding: 6px 12px;

    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.education-status {
    background: var(--warn-bg);
    color: var(--warn-tx);
}

.qualification-status {
    background: var(--success-bg);
    color: var(--success-tx);
}


/* =====================================================
   13. QUALIFICATIONS
===================================================== */

.qualification-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.qualification-card {
    background: var(--surface);

    padding: 26px;

    border-radius: var(--radius);
    border: 1px solid var(--line);
    border-left: 4px solid var(--blue-600);

    box-shadow: var(--shadow-sm);

    transition: transform .25s ease, box-shadow .25s ease;
}

.qualification-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.qualification-card .card-icon {
    margin-bottom: 14px;
}

.qualification-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 6px;
}

.qualification-card p {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 14px;
}


/* =====================================================
   14. CONTACT
===================================================== */

.contact-list {
    margin-top: 22px;
}

.contact-list p {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;

    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    margin-bottom: 0;

    color: var(--text);
}

.contact-list p:last-child {
    border-bottom: none;
}

.contact-list strong {
    flex: 0 0 110px;
    color: var(--ink);
}

.contact-list a {
    color: var(--blue-600);
    font-weight: 600;
    word-break: break-word;
}

.contact-list a:hover {
    color: var(--blue-700);
    text-decoration: underline;
}


/* =====================================================
   15. FOOTER
===================================================== */

.main-footer {
    background: linear-gradient(135deg, var(--navy-800), var(--navy-700));

    padding: 30px 32px 22px;

    margin-top: 48px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;

    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.main-footer h3 {
    color: #ffffff;
    font-size: 15px;
    letter-spacing: 2px;
}

.main-footer p {
    color: #94a3b8;
    font-size: 12px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

.footer-links a {
    color: var(--blue-300);
    font-size: 13px;
    font-weight: 700;
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.main-footer .copyright {
    width: 100%;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    margin-bottom: 0;
    text-align: center;
}


/* =====================================================
   16. ACCESSIBILITY
===================================================== */

a:focus-visible {
    outline: 3px solid var(--blue-300);
    outline-offset: 3px;
    border-radius: 6px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
}

.skip-link:focus {
    left: 14px;
    top: 14px;
    z-index: 1000;

    background: #ffffff;
    color: var(--ink);

    padding: 10px 16px;

    border-radius: 8px;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}


/* =====================================================
   17. RESPONSIVE
===================================================== */

/* ---------- Laptop / small desktop ---------- */

@media (max-width: 1100px) {

    .welcome-image img,
    .welcome-image .avatar-fallback {
        width: 148px;
        height: 148px;
    }

}


/* ---------- Tablet & phone: sidebar becomes a slide-in menu from the left ---------- */

@media (max-width: 900px) {

    .dashboard {
        display: block;
    }

    /* Top bar with the menu button */
    .mobile-bar {
        display: flex;
    }

    /* The full sidebar, hidden off-screen to the left until opened */
    .sidebar {
        width: min(282px, 86vw);
        height: 100vh;
        height: 100dvh;

        transform: translateX(-105%);
        visibility: hidden;

        transition: transform .3s ease, visibility .3s ease;

        z-index: 300;
    }

    .sidebar.open {
        transform: translateX(0);
        visibility: visible;
        box-shadow: 0 0 44px rgba(0, 0, 0, .5);
    }

    .sidebar-close {
        display: grid;
    }

    .sidebar-overlay {
        display: block;
    }

    body.menu-open {
        overflow: hidden;
    }

    .main-content {
        width: 100%;
        margin-left: 0;
        padding: 24px 22px;
    }

    .section {
        scroll-margin-top: 80px;
    }

    .welcome-card {
        padding: 28px;
    }

}


/* ---------- Mobile ---------- */

@media (max-width: 600px) {

    body {
        font-size: 14px;
    }

    .main-content {
        padding: 20px 14px;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
        margin-bottom: 26px;
    }

    .topbar-actions {
        width: 100%;
    }

    .topbar-actions a {
        flex: 1;
        text-align: center;
    }

    .welcome-card {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 24px;
        padding: 24px 22px;
    }

    .welcome-image img,
    .welcome-image .avatar-fallback {
        width: 118px;
        height: 118px;
    }

    .welcome-image .avatar-fallback { font-size: 32px; }

    .welcome-content > p:not(.eyebrow) {
        font-size: 14px;
    }

    .hero-stats {
        gap: 14px 26px;
    }

    .hero-stats strong { font-size: 21px; }

    .overview-grid,
    .project-grid,
    .business-grid,
    .qualification-grid,
    .information-grid {
        grid-template-columns: 1fr;
    }

    .overview-card {
        padding: 18px 20px;
    }

    .content-card {
        padding: 22px 20px;
    }

    .contact-list strong {
        flex-basis: 100%;
    }

    .main-footer {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 22px 18px;
    }

    .main-footer .copyright {
        text-align: left;
    }

}


/* ---------- Small phone ---------- */

@media (max-width: 380px) {

    .welcome-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .welcome-actions a {
        text-align: center;
    }

}


/* =====================================================
   18. PRINT
===================================================== */

@media print {

    body {
        background: #ffffff;
        font-size: 12px;
    }

    .sidebar,
    .mobile-bar,
    .sidebar-overlay,
    .topbar-actions,
    .welcome-actions,
    .skip-link,
    .footer-links {
        display: none !important;
    }

    .main-content {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .welcome-card,
    .main-footer {
        background: #ffffff;
        color: #000000;
        box-shadow: none;
        border: 1px solid var(--line);
    }

    .welcome-content h2,
    .welcome-content > p:not(.eyebrow),
    .hero-stats strong,
    .main-footer h3 {
        color: #000000;
    }

    .overview-card,
    .content-card,
    .project-card,
    .qualification-card {
        box-shadow: none;
        break-inside: avoid;
    }

    .section {
        break-inside: avoid;
        margin-bottom: 28px;
    }

}
