
/* ==========================
   BRIAN KAANZO PORTFOLIO
   ========================== */

:root {
    --background: #0b0f19;
    --surface: #141a28;
    --accent: #ff8a24;
    --text: #f5f7fb;
    --muted: #a5afc2;
    --border: #273044;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

.navbar {
    min-height: 76px;
    padding: 18px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    border-bottom: 1px solid var(--border);
    background: #0b0f19;
}

.logo {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo span,
.hero h1 span {
    color: var(--accent);
}

.navbar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.navbar nav a {
    color: var(--muted);
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.navbar nav a:hover {
    color: var(--accent);
}

.hero {
    min-height: 580px;
    padding: 110px 8% 90px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    background:
        radial-gradient(
            ellipse at 85% 20%,
            rgba(255, 138, 36, 0.12),
            transparent 45%
        );
}

.eyebrow {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.hero h1 {
    max-width: 850px;
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.12;
    letter-spacing: -2px;
    margin-bottom: 25px;
}

.hero-text {
    max-width: 650px;
    color: var(--muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 28px;
}

.btn {
    display: inline-block;
    padding: 13px 25px;
    border-radius: 6px;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--accent);
    color: #15100b;
}

.btn-primary:hover {
    background: #ffa34f;
}

.btn-secondary {
    border: 1px solid var(--border);
    background: var(--surface);
}

.tech-stack {
    color: var(--muted);
    font-size: 0.9rem;
}

.section {
    padding: 85px 8%;
    border-top: 1px solid var(--border);
}

.section h2 {
    max-width: 800px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    margin-bottom: 22px;
}

.section > p:not(.eyebrow) {
    max-width: 750px;
    color: var(--muted);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 35px;
}

.service-card,
.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
}

.service-card {
    transition: border-color 0.2s ease,
                transform 0.2s ease;
}

.service-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.service-card h3,
.project-content h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.service-card p,
.project-content > p:not(.project-label) {
    color: var(--muted);
}

.project-card {
    margin-top: 30px;
    max-width: 850px;
    background:
        linear-gradient(135deg, #191f30, #111622);
}

.project-label {
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.project-content h3 {
    font-size: 2rem;
}

.project-link {
    display: inline-block;
    color: var(--accent);
    font-weight: 700;
    margin-top: 22px;
}

.project-link:hover {
    text-decoration: underline;
}

.contact-section {
    background: #101522;
}

.contact-section .btn {
    margin-top: 25px;
}

footer {
    padding: 25px 8%;
    text-align: center;
    color: var(--muted);
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
}

/* Tablet and mobile layouts */

@media (max-width: 760px) {
    .navbar {
        padding: 18px 5%;
        align-items: flex-start;
        flex-direction: column;
    }

    .navbar nav {
        gap: 12px 18px;
    }

    .navbar nav a {
        font-size: 0.9rem;
    }

    .hero {
        min-height: auto;
        padding: 85px 6%;
    }

    .hero h1 {
        letter-spacing: -1px;
    }

    .section {
        padding: 65px 6%;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}

/* Project showcase */

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.project-card {
    margin-top: 0;
    min-width: 0;
}

.project-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.project-number,
.project-type {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.project-number {
    color: var(--accent);
}

.project-type {
    color: var(--muted);
}

.project-features {
    padding-left: 20px;
    margin: 15px 0 22px;
    color: var(--muted);
}

.project-features li {
    margin-bottom: 7px;
}

.project-content h4,
.project-card h4 {
    margin-top: 24px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.project-tech span {
    padding: 5px 10px;
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--muted);
    font-size: 0.8rem;
}

.project-coming {
    border-style: dashed;
    background: transparent;
}

@media (max-width: 760px) {
    .project-grid {
        grid-template-columns: 1fr;
    }
}

/* Contact section */

.contact-section {
    background:
        radial-gradient(
            ellipse at 90% 10%,
            rgba(255, 138, 36, 0.10),
            transparent 55%
        ),
        #101522;
}

.contact-section > p:not(.eyebrow) {
    max-width: 650px;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.contact-note {
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--muted);
}

@media (max-width: 480px) {
    .contact-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-actions .btn {
        text-align: center;
    }
}


/* Technical skills */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 32px;
}

.skill-card {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    transition: border-color 0.2s ease,
                transform 0.2s ease;
}

.skill-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.skill-card h3 {
    color: var(--accent);
    margin-bottom: 8px;
}

.skill-card p {
    color: var(--muted);
    font-size: 0.95rem;
}

@media (max-width: 760px) {
    .skills-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 420px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}


.nav-profile-photo {
    width: 58px;
    height: 58px;
    object-fit: cover;
    object-position: center top;
    border-radius: 6px;
    border: 2px solid #ff6b00;
    flex-shrink: 0;
}


.logo-text {
    display: inline-block;
}
/* Profile photo beside the portfolio logo */
.navbar .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-profile-photo {
    display: block;
    width: 58px;
    height: 58px;
    object-fit: cover;
    object-position: center top;
    border-radius: 6px;
    border: 2px solid var(--accent);
    flex-shrink: 0;
}

.logo-text {
    display: inline-block;
}

/* Mobile navigation and header */
@media screen and (max-width: 760px) {
    .navbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
        padding: 12px 14px;
        min-height: auto;
    }

    .navbar .logo {
        min-width: 0;
        gap: 8px;
        font-size: 21px;
        white-space: nowrap;
        letter-spacing: -1px;
    }

    .nav-profile-photo {
        width: 46px;
        height: 46px;
    }

    .menu-toggle {
        display: block;
        justify-self: end;
        margin: 0;
        flex-shrink: 0;
    }

    .navbar nav {
        display: none;
        grid-column: 1 / -1;
        width: 100%;
        flex-direction: column;
        gap: 0;
    }

    .navbar nav.open {
        display: flex;
    }

    .navbar nav a {
        padding: 10px 0;
        border-top: 1px solid var(--border);
    }
}

/* Project website screenshot */
.project-screenshot {
    width: 100%;
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
}

.project-screenshot a {
    display: block;
}

.project-screenshot img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.project-screenshot a:hover img {
    transform: scale(1.02);
}

