/* ==========================================================
   Mutsa Mwanza – personal overrides on top of main.css
   ========================================================== */

/* Text logo */
.site-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--header);
    line-height: 1;
}
.site-logo span {
    color: var(--theme2);
}
.offcanvas__logo .site-logo {
    color: var(--white);
}
.offcanvas__logo .site-logo span {
    color: var(--theme);
}

/* Hero portrait circle */
.hero-section-3 .hero-circle-img img {
    border-radius: 50%;
}

/* Platforms (brand) tiles rendered as text */
.brand-items .brand-image .brand-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 34px;
    font-weight: 600;
    color: var(--white);
    opacity: .85;
    transition: all .3s ease;
}
.brand-items .brand-image:hover .brand-text {
    color: var(--theme);
    opacity: 1;
}
@media (max-width: 991px) {
    .brand-items .brand-image .brand-text {
        font-size: 26px;
    }
}

/* Process thumbs rendered as icons */
.process-box-items-3 .thumb .thumb-icon {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 84px;
    color: var(--theme);
}
.process-box-items-3.style-2 .thumb .thumb-icon {
    color: var(--white);
}

/* Certifications */
.cert-card {
    margin-top: 30px;
    border: 1px solid rgba(23, 23, 20, 1);
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--white);
    height: calc(100% - 30px);
    display: flex;
    flex-direction: column;
}
.cert-card .cert-thumb {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: #f1f1f1;
    border-bottom: 1px solid rgba(23, 23, 20, 1);
}
.cert-card .cert-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform .5s ease;
}
.cert-card:hover .cert-thumb img {
    transform: scale(1.04);
}
/* Credential with no certificate image: branded badge in place of the scan */
.cert-card .cert-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background:
        radial-gradient(circle at 85% 10%, rgba(104, 5, 241, .55), transparent 60%),
        radial-gradient(circle at 10% 100%, rgba(147, 242, 3, .22), transparent 55%),
        var(--bg);
    color: var(--theme);
}
.cert-card .cert-badge i {
    font-size: 56px;
    transition: transform .5s ease;
}
.cert-card:hover .cert-badge i {
    transform: scale(1.08);
}
.cert-card .cert-badge span {
    font-family: Consolas, 'Courier New', monospace;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--white);
}
.cert-card .cert-body {
    padding: 24px 28px 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.cert-card .issuer {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--theme2);
    font-weight: 600;
}
.cert-card .title {
    font-size: 24px;
    margin-top: 6px;
    line-height: 1.3;
}
.cert-card .meta {
    margin-top: 8px;
    font-size: 15px;
}
.cert-card .verify {
    margin-top: auto;
    padding-top: 16px;
    font-weight: 600;
    color: var(--header);
    text-decoration: underline;
    text-underline-offset: 4px;
}
.cert-card .verify:hover {
    color: var(--theme2);
}

.cert-subtitle {
    margin-top: 70px;
    font-size: 30px;
}
.cert-list-item {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border: 1px solid rgba(23, 23, 20, 1);
    border-radius: 8px;
    background-color: var(--white);
    height: calc(100% - 20px);
    transition: background-color .3s ease;
}
.cert-list-item:hover {
    background-color: var(--theme);
}
.cert-list-item img {
    width: 72px;
    height: 54px;
    object-fit: cover;
    object-position: top center;
    border-radius: 4px;
    flex-shrink: 0;
    border: 1px solid #e3e3e3;
}
.cert-list-item h4 {
    font-size: 17px;
    line-height: 1.35;
    color: var(--header);
}
.cert-list-item p {
    font-size: 14px;
    line-height: 1.4;
    margin-top: 2px;
}

/* Education & awards cards */
.testimonial-box-items-3 .edu-icon {
    font-size: 44px;
    color: var(--theme2);
    line-height: 1;
}

/* Contact chips: selected state */
.select-service .theme-btn.is-selected {
    background-color: var(--header);
    color: var(--white);
}

/* Keep multi-word button labels on one line */
.select-service {
    flex-wrap: wrap;
}
.select-service .theme-btn,
.hero-btn-area .theme-btn {
    white-space: nowrap;
    flex-shrink: 0;
}

/* Two-line hero title is shorter than the template's, so push the photo row
   down to clear the circular portrait */
@media (min-width: 1200px) {
    .hero-section-3 .hero-thumb-area {
        margin-top: 140px;
    }
}

/* Expertise: icon + skill tags */
.comprehensive-items .expertise-icon {
    font-size: 40px;
    line-height: 1;
    color: var(--theme);
}
.comprehensive-items .skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    max-width: 760px;
}
.comprehensive-items .skill-tags span {
    font-size: 14px;
    line-height: 1;
    padding: 9px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .25);
    color: var(--white);
}

/* Spacing between certification groups */
.cert-subtitle.mt-0 {
    margin-top: 10px !important;
}

/* Tools & Technologies: logo + label tiles */
.brand-items .brand-image .tech-tile {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    line-height: 1;
    vertical-align: middle;
}
.brand-items .brand-image .tech-icons {
    display: flex;
    gap: 18px;
}
.brand-items .brand-image .tech-icon {
    width: 64px;
    height: 64px;
    background-color: var(--white);
    -webkit-mask: var(--icon) center / contain no-repeat;
    mask: var(--icon) center / contain no-repeat;
    opacity: .85;
    transition: all .3s ease;
}
.brand-items .brand-image .brand-text {
    font-size: 24px;
}
.brand-items .brand-image:hover .tech-icon {
    background-color: var(--theme);
    opacity: 1;
    transform: translateY(-4px);
}
@media (max-width: 991px) {
    .brand-items .brand-image .tech-icon {
        width: 48px;
        height: 48px;
    }
    .brand-items .brand-image .brand-text {
        font-size: 20px;
    }
}
/* Wordmark logos (VMware, Veeam) need a wide box to be legible */
.brand-items .brand-image .tech-icon.is-wide {
    width: 190px;
}
@media (max-width: 991px) {
    .brand-items .brand-image .tech-icon.is-wide {
        width: 150px;
    }
}
.brand-items .brand-image .tech-icon.is-wide {
    -webkit-mask-size: 170px 170px;
    mask-size: 170px 170px;
}
@media (max-width: 991px) {
    .brand-items .brand-image .tech-icon.is-wide {
        -webkit-mask-size: 140px 140px;
        mask-size: 140px 140px;
    }
}

/* ==========================================================================
   Projects grid (featured card + filterable cards)
   ========================================================================== */
.projects-section .section-title-area {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}
.project-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 40px;
}
.project-filter {
    font-family: 'JetBrains Mono', Consolas, 'Courier New', monospace;
    font-size: 14px;
    letter-spacing: .5px;
    color: #C9CBD6;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 30px;
    padding: 10px 18px;
    transition: color .3s ease, background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.project-filter .count {
    display: inline-block;
    min-width: 22px;
    margin-left: 6px;
    padding: 0 6px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
    background: rgba(255, 255, 255, .08);
}
.project-filter:hover {
    color: var(--theme);
    border-color: rgba(147, 242, 3, .5);
}
.project-filter.is-active {
    color: #05060A;
    background: var(--theme);
    border-color: var(--theme);
    box-shadow: 0 0 22px rgba(147, 242, 3, .35);
}
.project-filter.is-active .count { background: rgba(0, 0, 0, .15); }

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin-top: 36px;
}
.project-card {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .09);
    background: rgba(12, 13, 20, .78);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transition: transform .4s ease, border-color .4s ease, box-shadow .4s ease;
}
.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(147, 242, 3, .45);
    box-shadow: 0 0 0 1px rgba(147, 242, 3, .15), 0 24px 60px rgba(139, 61, 255, .25);
}
.project-card.is-hidden { display: none; }

.project-thumb {
    display: block;
    aspect-ratio: 944 / 400;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
    background: #0B0C12;
}
.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.project-card:hover .project-thumb img { transform: scale(1.04); }

.project-body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 26px 28px 30px;
}
.project-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.project-cat {
    font-family: 'JetBrains Mono', Consolas, 'Courier New', monospace;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--theme);
}
.project-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: #C9CBD6;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 20px;
    padding: 3px 12px;
    white-space: nowrap;
}
.project-status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #8A8D9B;
}
.project-status.is-live { color: var(--theme); border-color: rgba(147, 242, 3, .4); }
.project-status.is-live::before { background: var(--theme); box-shadow: 0 0 8px var(--theme); animation: project-pulse 1.6s ease-in-out infinite; }
.project-status.is-progress { color: #B98CFF; border-color: rgba(139, 61, 255, .5); }
.project-status.is-progress::before { background: #8B3DFF; box-shadow: 0 0 8px #8B3DFF; }
@keyframes project-pulse { 50% { opacity: .35; } }

.project-title {
    margin-top: 14px;
    font-size: 28px;
    line-height: 1.25;
}
.project-role {
    margin-top: 6px;
    font-size: 15px;
    color: #D9DBE3;
}
.project-desc {
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.6;
}
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}
.project-tags span {
    font-size: 13px;
    color: #C9CBD6;
    border: 1px solid rgba(147, 242, 3, .25);
    background: rgba(147, 242, 3, .04);
    border-radius: 20px;
    padding: 4px 12px;
}
.project-link {
    align-self: flex-start;
    margin-top: auto;
    padding-top: 22px;
    font-weight: 600;
    color: var(--theme);
    text-decoration: underline;
    text-underline-offset: 5px;
}
.project-link i { margin-left: 4px; transition: transform .3s ease; }
.project-link:hover { color: var(--theme); }
.project-link:hover i { transform: translate(3px, -3px); }

/* Featured card: image beside text across the full row */
.project-card.is-featured {
    grid-column: 1 / -1;
    flex-direction: row;
}
.project-card.is-featured .project-thumb {
    flex: 0 0 56%;
    aspect-ratio: auto;
    border-bottom: 0;
    border-right: 1px solid rgba(255, 255, 255, .09);
}
.project-card.is-featured .project-thumb img { object-position: top center; }
.project-card.is-featured .project-body { padding: 36px 40px; justify-content: center; }
.project-card.is-featured .project-title { font-size: 36px; }

@media (max-width: 1199px) {
    .project-card.is-featured { flex-direction: column; }
    .project-card.is-featured .project-thumb {
        flex: none;
        aspect-ratio: 16 / 10;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .09);
    }
    .project-card.is-featured .project-body { padding: 26px 28px 30px; }
}
@media (max-width: 767px) {
    .project-grid { grid-template-columns: 1fr; gap: 20px; }
    .project-title, .project-card.is-featured .project-title { font-size: 24px; }
    .project-body, .project-card.is-featured .project-body { padding: 22px 20px 24px; }
}
@media (prefers-reduced-motion: reduce) {
    .project-card:hover { transform: none; }
    .project-status.is-live::before { animation: none; }
}
