
/* =========================================
   MAJOR CHIROMBE — PORTFOLIO STYLESHEET
   ========================================= */

/* 1. GLOBAL SETTINGS */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --navy: #071321;
    --navy-light: #0c2941;
    --blue: #2f80ed;
    --cyan: #39c6d8;
    --lime: #b8ef63;
    --white: #ffffff;
    --paper: #f4f7fa;
    --text: #172638;
    --muted: #9db0c2;
    --border: rgba(255,255,255,0.13);
    --radius: 22px;
    --shadow: 0 22px 70px rgba(2,13,26,0.16);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--paper);
    color: var(--text);
    line-height: 1.7;
}

h1, h2, h3, h4 {
    font-family: 'Manrope', sans-serif;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

h1 {
    font-size: clamp(2.8rem, 7vw, 6rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
}

h3 {
    font-size: 1.3rem;
}

p {
    color: #5c6b79;
    margin-bottom: 16px;
}

a {
    text-decoration: none;
    color: inherit;
}

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

.container {
    width: min(1160px, calc(100% - 44px));
    margin: auto;
}

.section {
    padding: 105px 0;
}


/* 2. NAVIGATION BAR */

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(5,19,33,0.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--cyan);
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    white-space: nowrap;
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: var(--navy);
    font-weight: 900;
}

.navlinks {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #d7e2ed;
    font-size: 0.84rem;
}

.navlinks a {
    transition: 0.3s;
}

.navlinks a:hover,
.navlinks a.active {
    color: var(--lime);
}

.nav-cta {
    background: var(--lime);
    color: var(--navy);
    padding: 11px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: 0.3s;
}

.nav-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(184,239,99,0.2);
}

.menu-btn {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--cyan);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 1.2rem;
    cursor: pointer;
}


/* 3. HERO SECTION */

.hero {
    min-height: 790px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: var(--cyan);

    background:
        linear-gradient(
            105deg,
            rgba(4,17,30,0.97) 0%,
            rgba(5,26,45,0.91) 55%,
            rgba(5,24,40,0.65) 100%
        ),
        url('https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=2200&q=85')
        center/cover;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: linear-gradient(90deg, black, transparent 90%);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 2;
    padding-top: 130px;
    padding-bottom: 80px;
}

.hero-content {
    max-width: 690px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #2789d8;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero .eyebrow {
    color: var(--lime);
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: currentColor;
}

.hero h1 {
    color: var(--cyan);
}

.hero h1 span {
    color: var(--cyan);
}

.hero-lead {
    max-width: 650px;
    color: #c2d0dd;
    font-size: 1.15rem;
    margin: 25px 0 32px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 21px;
    border-radius: 50px;
    background: var(--lime);
    color: #101b22;
    font-size: 0.9rem;
    font-weight: 700;
    border: 0;
    cursor: pointer;
    transition: 0.3s;
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(184,239,99,0.2);
}

.btn-outline {
    background: transparent;
    color: var(--cyan);
    border: 1px solid rgba(255,255,255,0.35);
}

.btn-outline:hover {
    background: white;
    color: var(--navy);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    margin-top: 65px;
}

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

.hero-meta strong {
    color: var(--cyan);
    font-family: 'Manrope', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
}

.hero-meta span {
    color: #a9bac8;
    font-size: 0.78rem;
}


/* 4. ANIMATED HERO VISUAL */

.hero-visual {
    position: relative;
    width: 390px;
    height: 390px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    animation: float 7s ease-in-out infinite;
}

.visual-core {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: radial-gradient(
        circle at 30% 25%,
        rgba(57,198,216,0.9),
        rgba(47,128,237,0.45) 55%,
        rgba(7,19,33,0.9) 100%
    );
    border: 1px solid rgba(57,198,216,0.6);
    box-shadow:
        0 0 40px rgba(57,198,216,0.3),
        0 0 100px rgba(47,128,237,0.2);
    text-align: center;
    z-index: 2;
}

.visual-core span {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: #d9faff;
}

.visual-core strong {
    color: var(--cyan);
    font-family: 'Manrope', sans-serif;
    font-size: 1.15rem;
}

.orbit {
    position: absolute;
    border: 1px solid rgba(57,198,216,0.25);
    border-radius: 50%;
}

.orbit-one {
    width: 300px;
    height: 300px;
    animation: rotate 22s linear infinite;
}

.orbit-two {
    width: 390px;
    height: 390px;
    border-style: dashed;
    animation: rotate 35s linear infinite reverse;
}

.floating-label {
    position: absolute;
    z-index: 3;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 12px;
    background: rgba(7,25,42,0.85);
    backdrop-filter: blur(12px);
    color: var(--cyan);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.label-one {
    top: 35px;
    left: 0;
}

.label-two {
    right: -15px;
    top: 110px;
}

.label-three {
    bottom: 30px;
    left: 35px;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--lime);
    border-radius: 50%;
    margin-right: 6px;
    box-shadow: 0 0 10px var(--lime);
}

.hero-bottom-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--cyan), var(--blue), transparent);
}


/* 5. INTRODUCTION */

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 65px;
    align-items: center;
}

.intro-content h2 {
    margin-bottom: 24px;
}

.intro-content p {
    font-size: 1rem;
}

.text-link {
    display: inline-block;
    margin-top: 12px;
    color: #1479b3;
    font-weight: 800;
}

.text-link:hover {
    color: var(--blue);
}

.intro-image {
    position: relative;
    min-height: 420px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.intro-image img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    inset: 0;
    transition: transform 0.7s;
}

.intro-image:hover img {
    transform: scale(1.07);
}

.image-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    padding: 18px;
    border-radius: 15px;
    background: rgba(5,20,34,0.85);
    backdrop-filter: blur(12px);
    color: var(--cyan);
}

.image-caption span {
    display: block;
    color: var(--cyan);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    margin-bottom: 5px;
}

.image-caption strong {
    font-family: 'Manrope', sans-serif;
}


/* 6. EXPERTISE SECTION */

.expertise-section {
    background: var(--navy);
    color: var(--cyan);
}

.section-heading {
    max-width: 720px;
    margin-bottom: 48px;
}

.section-heading h2 {
    margin-bottom: 18px;
}

.section-heading p {
    color: #a8b8c7;
    font-size: 1.05rem;
}

.expertise-section .section-heading h2 {
    color: var(--cyan);
}

.expertise-section .eyebrow {
    color: var(--lime);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.expertise-card {
    padding: 30px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.055);
    border-radius: var(--radius);
    transition: 0.35s;
}

.expertise-card:hover {
    transform: translateY(-8px);
    background: rgba(255,255,255,0.09);
    border-color: rgba(57,198,216,0.4);
    box-shadow: 0 20px 45px rgba(0,0,0,0.2);
}

.expertise-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: rgba(57,198,216,0.14);
    color: var(--cyan);
    font-size: 1.5rem;
    margin-bottom: 22px;
}

.expertise-card h3 {
    color: var(--cyan);
    margin-bottom: 14px;
}

.expertise-card p {
    color: #a8b8c7;
    font-size: 0.92rem;
    min-height: 105px;
}

.expertise-card a {
    color: var(--lime);
    font-weight: 700;
    font-size: 0.85rem;
}


/* 7. STATISTICS */

.statistics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    margin-top: 55px;
    background: rgba(255,255,255,0.12);
    border-radius: 20px;
    overflow: hidden;
}

.stat-item {
    padding: 25px;
    background: rgba(255,255,255,0.045);
}

.stat-item strong {
    display: block;
    color: var(--lime);
    font-family: 'Manrope', sans-serif;
    font-size: 2rem;
    font-weight: 800;
}

.stat-item span {
    color: #aab9c6;
    font-size: 0.8rem;
}


/* 8. PROJECTS */

.projects-section {
    background: var(--paper);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.project-card {
    overflow: hidden;
    background: white;
    border: 1px solid #e6ebef;
    border-radius: var(--radius);
    box-shadow: 0 8px 30px rgba(15,40,60,0.04);
    transition: 0.35s;
}

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

.project-image {
    height: 220px;
    overflow: hidden;
    background: var(--navy-light);
}

.project-image img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s;
}

.project-card:hover .project-image img {
    transform: scale(1.08);
}

.project-content {
    padding: 25px;
}

.project-content > span {
    display: block;
    color: #2483bb;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.project-content h3 {
    margin-bottom: 12px;
}

.project-content p {
    font-size: 0.9rem;
    min-height: 75px;
}

.project-content a {
    color: #146fa7;
    font-weight: 800;
    font-size: 0.85rem;
}

.center-action {
    text-align: center;
    margin-top: 40px;
}


/* 9. CONTACT BANNER */

.contact-banner-section {
    padding-top: 50px;
    padding-bottom: 100px;
}

.contact-banner {
    position: relative;
    overflow: hidden;
    padding: 60px;
    border-radius: 28px;
    color: var(--cyan);
    background: linear-gradient(125deg, #0a2034, #0c3b5a);
}

.contact-banner::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    border: 1px solid rgba(57,198,216,0.25);
    border-radius: 50%;
    right: -60px;
    top: -130px;
    box-shadow:
        0 0 0 45px rgba(57,198,216,0.04),
        0 0 0 90px rgba(57,198,216,0.025);
}

.contact-banner > * {
    position: relative;
    z-index: 1;
}

.contact-banner .eyebrow {
    color: var(--lime);
}

.contact-banner h2 {
    max-width: 700px;
    margin-bottom: 20px;
}

.contact-banner p {
    color: #b8c8d5;
    max-width: 600px;
    margin-bottom: 28px;
}


/* 10. FOOTER */

.footer {
    background: #04111e;
    color: #aab9c7;
    padding: 55px 0 25px;
}

.footer-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 35px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-content p {
    color: #aab9c7;
    margin-top: 16px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.85rem;
}

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

.copyright {
    padding-top: 22px;
    font-size: 0.78rem;
}


/* 11. ANIMATIONS */

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-22px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


/* 12. TABLET RESPONSIVENESS */

@media (max-width: 1050px) {

    .navlinks {
        gap: 12px;
        font-size: 0.76rem;
    }

    .nav-cta {
        display: none;
    }

    .hero-visual {
        width: 310px;
        height: 310px;
    }

    .orbit-two {
        width: 310px;
        height: 310px;
    }

    .orbit-one {
        width: 240px;
        height: 240px;
    }

    .visual-core {
        width: 155px;
        height: 155px;
    }

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

}


/* 13. MOBILE RESPONSIVENESS */

@media (max-width: 760px) {

    .menu-btn {
        display: block;
    }

    .navlinks {
        display: none;
        position: absolute;
        top: 65px;
        left: 22px;
        right: 22px;
        padding: 20px;
        border: 1px solid var(--border);
        border-radius: 18px;
        background: #071a2b;
        flex-direction: column;
        align-items: stretch;
    }

    .navlinks.open {
        display: flex;
    }

    .navlinks a {
        padding: 8px;
    }

    .hero {
        min-height: auto;
    }

    .hero-container {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 145px;
        padding-bottom: 70px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-visual {
        align-self: center;
        width: 290px;
        height: 290px;
        margin-top: 25px;
    }

    .orbit-two {
        width: 280px;
        height: 280px;
    }

    .orbit-one {
        width: 220px;
        height: 220px;
    }

    .visual-core {
        width: 145px;
        height: 145px;
    }

    .hero-meta {
        gap: 20px;
        margin-top: 42px;
    }

    .hero-meta strong {
        font-size: 1.2rem;
    }

    .section {
        padding: 75px 0;
    }

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

    .intro-image {
        min-height: 320px;
    }

    .expertise-card p,
    .project-content p {
        min-height: auto;
    }

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

    .contact-banner {
        padding: 35px 25px;
    }

    .footer-content {
        flex-direction: column;
    }

}


/* 14. SMALL MOBILE SCREENS */

@media (max-width: 420px) {

    .container {
        width: calc(100% - 32px);
    }

    .brand {
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 2.7rem;
    }

    .hero-meta {
        flex-direction: column;
    }

    .statistics {
        grid-template-columns: 1fr 1fr;
    }

    .stat-item {
        padding: 17px;
    }

    .stat-item strong {
        font-size: 1.5rem;
    }

}


/* 15. REDUCED MOTION ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation: none !important;
        transition: none !important;
    }

}


/* PORTFOLIO VISUAL AND TYPOGRAPHY REFINEMENT */

/* Core expertise photography */
.expertise-image {
    width: 100%;
    height: 155px;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 12px;
    background: #142b40;
}

.expertise-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.expertise-card:hover .expertise-image img {
    transform: scale(1.05);
}

/* Certification issuer logos */
.expertise-icon.certification-logo {
    width: 100%;
    max-width: 150px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    background: transparent;
    margin-bottom: 18px;
}

.expertise-icon.certification-logo img {
    display: block;
    max-width: 145px;
    max-height: 62px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* More consistent certification-card typography */
.expertise-card h3 {
    font-family: 'Manrope', sans-serif;
    font-size: 1.08rem;
    font-weight: 750;
    line-height: 1.35;
    letter-spacing: -0.025em;
    margin-bottom: 8px;
}

.expertise-card h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.expertise-card p {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.91rem;
    line-height: 1.7;
    letter-spacing: 0;
}

/* Keep the impact figures evenly spaced */
.statistics {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.stat-item strong {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.stat-item span {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    line-height: 1.45;
}


/* Contact social buttons: ensure readable text contrast */
.contact-social-link,
.contact-social-link:visited,
.contact-social-link:hover,
.contact-social-link:focus {
    color: #04111e !important;
    text-decoration: none;
}

.contact-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}


/* Contact page platform logos */
.contact-platform-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-platform-icon svg {
    display: block;
    width: 30px;
    height: 30px;
}


/* =========================================
   DARK SECTION FIX — TECHNOLOGY, CERTIFICATIONS
   AND PROFESSIONAL BACKGROUND
   ========================================= */

#technology-stack,
#credentials,
#career-history {
    background: var(--navy);
    color: var(--cyan);
}

/* Section headings */
#technology-stack .section-heading h2,
#technology-stack .section-heading h2 span,
#credentials .section-heading h2,
#credentials .section-heading h2 span,
#career-history .section-heading h2,
#career-history .section-heading h2 span {
    color: var(--cyan);
}

/* Section labels */
#technology-stack .section-heading .eyebrow,
#credentials .section-heading .eyebrow,
#career-history .section-heading .eyebrow {
    color: var(--cyan);
}

/* Introductory text */
#technology-stack .section-heading p,
#credentials .section-heading p,
#career-history .section-heading p {
    color: #b8c9d8;
}

/* Dark cards */
#technology-stack .expertise-card,
#credentials .expertise-card,
#career-history .expertise-card {
    background: rgba(12, 41, 65, 0.88);
    border: 1px solid rgba(57, 198, 216, 0.2);
    color: #b8c9d8;
}

/* Card headings */
#technology-stack .expertise-card h3,
#credentials .expertise-card h3,
#career-history .expertise-card h3 {
    color: var(--cyan);
}

#technology-stack .expertise-card h4,
#credentials .expertise-card h4,
#career-history .expertise-card h4 {
    color: var(--lime);
}

/* Card descriptions and lists */
#technology-stack .expertise-card p,
#technology-stack .expertise-card li,
#credentials .expertise-card p,
#credentials .expertise-card li,
#career-history .expertise-card p,
#career-history .expertise-card li {
    color: #b8c9d8;
}

/* Dates and card labels */
#technology-stack .expertise-card .eyebrow,
#credentials .expertise-card .eyebrow,
#career-history .expertise-card .eyebrow {
    color: var(--cyan);
}

/* Hover treatment */
#technology-stack .expertise-card:hover,
#credentials .expertise-card:hover,
#career-history .expertise-card:hover {
    background: rgba(12, 41, 65, 0.98);
    border-color: rgba(57, 198, 216, 0.55);
}

