/* ============================================================
   ABOUT PAGE STYLES - CALEB MUIRURI PORTFOLIO
   Design matching the exact layout, typography & aesthetics
============================================================ */

:root {
    --about-bg: #fbf9f5;
    --about-cream: #faf7f2;
    --about-orange: #ea490c;
    --about-orange-bright: #f97316;
    --about-orange-light: #ffedd5;
    --about-orange-subtle: #fff7ed;
    --about-dark: #0f172a;
    --about-dark-card: #0d1527;
    --about-text-heading: #111827;
    --about-text-body: #4b5563;
    --about-text-muted: #94a3b8;
    --about-border: rgba(15, 23, 42, 0.08);

    --font-heading: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
    background-color: var(--about-bg);
}

body.about-page {
    background-color: var(--about-bg);
    color: var(--about-text-body);
    font-family: var(--font-body);
    font-size: 15.5px;
    line-height: 1.68;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden !important;
}

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

/* Container */
.about-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Orange highlighted text */
.text-orange {
    color: var(--about-orange) !important;
}

/* Section Eyebrow Label with horizontal line */
.about-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--about-orange);
    margin-bottom: 18px;
}

.about-eyebrow::after {
    content: "";
    display: inline-block;
    width: 54px;
    height: 1.5px;
    background-color: var(--about-orange);
}

/* Dark variant eyebrow (for dark cards) */
.about-eyebrow-dark {
    color: #e2e8f0;
}

.about-eyebrow-dark::after {
    background-color: var(--about-orange);
}

/* ============================================================
   TOP NAVIGATION
============================================================ */
.about-header {
    width: 100%;
    padding: 26px 0;
    position: relative;
    z-index: 50;
}

.about-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Logo: CM. */
.about-logo {
    display: inline-flex;
    align-items: baseline;
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--about-text-heading);
    text-decoration: none;
    transition: opacity 0.2s;
}

.about-logo:hover {
    opacity: 0.85;
}

.about-logo .logo-dot {
    color: var(--about-orange);
    font-size: 28px;
    line-height: 0;
}

/* Center Links */
.about-nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.about-nav-link {
    font-family: var(--font-body);
    font-size: 14.5px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    position: relative;
    padding: 6px 0;
    transition: color 0.2s;
}

.about-nav-link:hover {
    color: var(--about-orange);
}

/* Active link: About (underlined in orange as in screenshot) */
.about-nav-link.active {
    color: #111827;
    font-weight: 600;
}

.about-nav-link.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--about-orange);
    border-radius: 2px;
}

/* Right Action Button: Let's Talk → */
.about-nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--about-dark);
    color: #ffffff !important;
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 9999px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.14);
    transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.about-nav-cta:hover {
    background-color: #1e293b;
    transform: translateY(-1.5px);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.22);
}

.about-nav-cta .cta-arrow {
    transition: transform 0.2s;
    font-size: 15px;
}

.about-nav-cta:hover .cta-arrow {
    transform: translateX(3px);
}

/* Mobile Nav Toggle */
.about-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--about-text-heading);
}

/* ============================================================
   HERO SECTION ("ABOUT ME")
============================================================ */
.about-hero-section {
    padding: 42px 0 76px;
    position: relative;
}

.about-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.95fr;
    gap: 56px;
    align-items: center;
}

/* Left Hero Column */
.about-hero-content {
    display: flex;
    flex-direction: column;
}

.about-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(38px, 4.4vw, 62px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--about-text-heading);
    margin-bottom: 24px;
}

.about-hero-desc {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: #4b5563;
    max-width: 520px;
    margin-bottom: 34px;
}

/* Scroll indicator */
.about-scroll-indicator {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: #4b5563;
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 600;
    transition: color 0.2s;
    width: fit-content;
}

.about-scroll-indicator:hover {
    color: var(--about-orange);
}

.scroll-circle-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid var(--about-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--about-orange);
    transition: transform 0.2s, background-color 0.2s, color 0.2s;
}

.about-scroll-indicator:hover .scroll-circle-btn {
    background-color: var(--about-orange);
    color: #ffffff;
    transform: translateY(2px);
}

/* Right Hero Graphic */
.about-hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Warm radial halo background */
.about-hero-halo {
    position: absolute;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(254, 215, 170, 0.45) 0%, rgba(254, 215, 170, 0.12) 55%, transparent 75%);
    pointer-events: none;
    z-index: 0;
    top: 50%;
    left: 50%;
    transform: translate(-45%, -50%);
}

.about-visual-cluster {
    position: relative;
    display: flex;
    align-items: center;
    gap: 24px;
    z-index: 1;
}

/* Arched / Capsule mountain frame container */
.about-mountain-arch {
    width: 255px;
    height: 395px;
    border-radius: 9999px;
    overflow: hidden;
    position: relative;
    box-shadow:
        0 24px 48px -12px rgba(0, 0, 0, 0.18),
        0 0 0 1px rgba(0, 0, 0, 0.04);
    background-color: #e2e8f0;
    z-index: 2;
}

.about-mountain-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: none;
    border-radius: inherit;
}

/* Overlapping orange circle behind the capsule */
.about-orange-circle {
    position: absolute;
    top: -16px;
    right: 40px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f97316 0%, #ea490c 100%);
    opacity: 0.96;
    box-shadow: 0 12px 32px rgba(234, 73, 12, 0.28);
    pointer-events: none;
    z-index: 1;
}

/* Vertical Tracked Words: CODE DESIGN CREATE IMPACT */
.about-visual-vertical-words {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 6px;
    position: relative;
}

.about-vertical-line {
    position: absolute;
    left: -12px;
    top: 4px;
    width: 1.5px;
    height: 120px;
    background-color: var(--about-orange);
}

.vertical-word-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.26em;
    color: #1f2937;
    text-transform: uppercase;
}

.vertical-word-dash {
    margin-top: 10px;
    width: 24px;
    height: 1.5px;
    background-color: var(--about-orange);
}

/* ============================================================
   SECTION 2: WHO I AM
============================================================ */
.about-who-section {
    padding: 70px 0 64px;
    position: relative;
}

.about-who-grid {
    display: grid;
    grid-template-columns: 1fr 1.18fr;
    gap: 56px;
    align-items: flex-start;
}

.who-title {
    font-family: var(--font-heading);
    font-size: clamp(34px, 3.8vw, 48px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--about-text-heading);
}

.who-bio-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.who-bio-text {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.74;
    color: #4b5563;
}

.who-bio-text strong {
    color: #111827;
    font-weight: 600;
}

/* ============================================================
   SECTION 3: MY SKILLS
============================================================ */
.about-skills-section {
    padding: 50px 0 64px;
    position: relative;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 12px;
}

.skill-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: transparent;
    padding: 6px 0;
    transition: transform 0.2s ease;
}

.skill-card:hover {
    transform: translateY(-2px);
}

.skill-icon-wrap {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 50%;
    background-color: var(--about-orange-light);
    color: var(--about-orange);
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-info {
    display: flex;
    flex-direction: column;
}

.skill-title {
    font-family: var(--font-heading);
    font-size: 15.5px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
    line-height: 1.3;
}

.skill-tags {
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.48;
    color: #64748b;
}

/* ============================================================
   SECTION 4: PROJECTS & IMPACT vs WHAT DRIVES ME
============================================================ */
.about-split-section {
    padding: 54px 0 86px;
    position: relative;
}

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

/* Left Dark Card: PROJECTS & IMPACT */
.impact-dark-card {
    background-color: var(--about-dark);
    border-radius: 20px;
    padding: 44px 40px 38px;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    box-shadow:
        0 24px 50px -15px rgba(15, 23, 42, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.06);
}

.impact-metrics-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 28px 0 38px;
    position: relative;
    z-index: 2;
}

.impact-metric-col {
    display: flex;
    flex-direction: column;
}

.impact-metric-num {
    font-family: var(--font-heading);
    font-size: clamp(34px, 3.4vw, 44px);
    font-weight: 700;
    color: var(--about-orange-bright);
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.impact-metric-label {
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.4;
    color: #94a3b8;
}

/* View My Work button */
.impact-work-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    position: relative;
    z-index: 2;
    transition: opacity 0.2s, transform 0.2s;
}

.impact-work-link:hover {
    opacity: 0.92;
    transform: translateX(3px);
}

.impact-arrow-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--about-orange);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 14px rgba(234, 73, 12, 0.4);
    transition: transform 0.2s, background-color 0.2s;
}

.impact-work-link:hover .impact-arrow-circle {
    background-color: #d83f08;
    transform: scale(1.05);
}

/* Glowing curved line graphic in dark card */
.impact-card-graphic {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 280px;
    height: 160px;
    pointer-events: none;
    z-index: 1;
}

/* Right Column: WHAT DRIVES ME */
.drives-column {
    display: flex;
    flex-direction: column;
}

.drives-title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 3.5vw, 46px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--about-text-heading);
    margin-bottom: 22px;
}

.drives-desc {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.74;
    color: #4b5563;
    max-width: 500px;
}

/* ============================================================
   SECTION 5: FOOTER CTA BANNER ("LET'S BUILD TOGETHER")
============================================================ */
.about-cta-banner {
    width: 100%;
    background: linear-gradient(135deg, #fff2eb 0%, #fde6dc 100%);
    border-top: 1px solid rgba(234, 73, 12, 0.14);
    padding: 72px 0 76px;
    position: relative;
    overflow: hidden;
}

/* Warm wave decor in background */
.about-cta-wave-decor {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 45%;
    background: radial-gradient(circle at 100% 100%, rgba(249, 115, 22, 0.22) 0%, rgba(254, 215, 170, 0.15) 50%, transparent 80%);
    pointer-events: none;
}

.about-cta-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr 0.65fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Left part: Heading */
.cta-left {
    display: flex;
    flex-direction: column;
}

.cta-eyebrow {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #1f2937;
    margin-bottom: 14px;
}

.cta-heading {
    font-family: var(--font-heading);
    font-size: clamp(36px, 4.2vw, 54px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--about-text-heading);
}

/* Center part: Text & Button */
.cta-center {
    display: flex;
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
}

.cta-text {
    font-family: var(--font-body);
    font-size: 15.5px;
    line-height: 1.68;
    color: #4b5563;
}

.cta-dark-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--about-dark);
    color: #ffffff !important;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    padding: 12px 26px;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
    transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

/* Selected element: Get In Touch CTA button */
main#aboutMainContent:nth-of-type(1) > section#ctaBannerSection:nth-of-type(5) > div:nth-of-type(2) > div:nth-of-type(1) > div:nth-of-type(2) > button#ctaGetInTouchBtn:nth-of-type(1) {
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s ease, box-shadow 0.2s ease;
}

main#aboutMainContent:nth-of-type(1) > section#ctaBannerSection:nth-of-type(5) > div:nth-of-type(2) > div:nth-of-type(1) > div:nth-of-type(2) > button#ctaGetInTouchBtn:nth-of-type(1):hover {
    background-color: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.26);
}

main#aboutMainContent:nth-of-type(1) > section#ctaBannerSection:nth-of-type(5) > div:nth-of-type(2) > div:nth-of-type(1) > div:nth-of-type(2) > button#ctaGetInTouchBtn:nth-of-type(1):active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.2);
}

/* Container of the image shaped to match the screenshot capsule/pill */
main#aboutMainContent:nth-of-type(1) > section#heroSection:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1) > div#aboutHeroVisual:nth-of-type(2) > div:nth-of-type(2) > div#aboutMountainArch:nth-of-type(2) {
    width: 255px;
    height: 395px;
    border-radius: 9999px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.04);
    background-color: #e2e8f0;
    z-index: 2;
}

/* Selected element: About Hero Image */
main#aboutMainContent:nth-of-type(1) > section#heroSection:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1) > div#aboutHeroVisual:nth-of-type(2) > div:nth-of-type(2) > div#aboutMountainArch:nth-of-type(2) > img#mountainHeroImg:nth-of-type(1) {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: inherit;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-dark-btn:hover {
    background-color: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.26);
}

.cta-dark-btn .cta-arrow {
    transition: transform 0.2s;
}

.cta-dark-btn:hover .cta-arrow {
    transform: translateX(4px);
}

/* Right part: Motto Tagline with vertical bar */
.cta-right {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: flex-end;
}

.cta-vertical-bar {
    width: 2px;
    height: 48px;
    background-color: var(--about-orange);
}

.cta-motto-text {
    display: flex;
    flex-direction: column;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #1f2937;
    line-height: 1.55;
    text-transform: uppercase;
}

/* ============================================================
   RESPONSIVE DESIGN BREAKPOINTS
============================================================ */
@media (max-width: 1080px) {
    .about-hero-grid {
        gap: 36px;
    }

    .about-who-grid {
        gap: 36px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .about-split-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-cta-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .cta-right {
        grid-column: span 2;
        justify-content: flex-start;
        margin-top: 10px;
    }
}

@media (max-width: 820px) {
    .about-hero-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .about-hero-visual {
        justify-content: flex-start;
    }

    .about-who-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .about-nav-links {
        display: none;
    }

    .about-nav-links.mobile-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: #ffffff;
        padding: 24px;
        border-radius: 16px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        gap: 18px;
        z-index: 100;
    }

    .about-mobile-toggle {
        display: block;
    }

    .about-cta-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .cta-right {
        grid-column: span 1;
    }
}

@media (max-width: 560px) {
    .about-container {
        padding: 0 20px;
    }

    .about-hero-section {
        padding: 24px 0 48px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .impact-metrics-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .impact-dark-card {
        padding: 32px 22px;
    }

    .about-mountain-arch {
        width: 200px;
        height: 300px;
    }

    .about-orange-circle {
        width: 100px;
        height: 100px;
        top: -16px;
        right: 28px;
    }

    .about-cta-banner {
        padding: 48px 0 56px;
    }
}
