/* ============================================================
   TED ADAMS OGOLA — PORTFOLIO
   Design language borrowed from GuardDog / BitCred dashboards:
   deep navy control-room background, blue→orange signal gradient,
   monospace status readouts, scored/graded data cards.
   ============================================================ */

:root {
    --bg: #080d17;
    --bg-grid: #0a1122;
    --panel: #0e1626;
    --panel-2: #121d33;
    --border: rgba(148, 163, 184, 0.12);
    --border-strong: rgba(148, 163, 184, 0.22);

    --blue: #3b82f6;
    --blue-light: #60a5fa;
    --orange: #f97316;
    --orange-light: #fb923c;
    --green: #22c55e;
    --gradient: linear-gradient(90deg, var(--blue) 0%, var(--orange) 100%);
    --gradient-soft: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(249, 115, 22, 0.16));

    --text: #e7ecf6;
    --text-dim: #a7b0c3;
    --text-faint: #5c6680;

    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --radius: 10px;
    --container: 1120px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(1100px 600px at 15% -10%, rgba(59, 130, 246, 0.10), transparent 60%),
        radial-gradient(900px 500px at 100% 0%, rgba(249, 115, 22, 0.08), transparent 55%),
        var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

::selection {
    background: var(--orange);
    color: #0a0f1a;
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}

.wrap {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 28px;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--orange-light);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.eyebrow::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.section-head h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.section-head .idx {
    font-family: var(--font-mono);
    color: var(--text-faint);
    font-size: 13px;
}

section {
    padding: 96px 0;
    position: relative;
}

section.tight {
    padding: 72px 0;
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
    max-width: var(--container);
    margin: 0 auto;
}

/* ---------------- NAV ---------------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 13, 23, 0.82);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
}

.brand .mark {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--gradient);
    display: grid;
    place-items: center;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    color: #0a0f1a;
}

.brand .sub {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 1px;
}

.brand-text {
    line-height: 1.1;
}

.nav-links {
    display: flex;
    gap: 32px;
    font-size: 14px;
    color: var(--text-dim);
}

.nav-links a {
    transition: color 0.15s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-cta {
    font-family: var(--font-mono);
    font-size: 13px;
    padding: 9px 18px;
    border-radius: 7px;
    background: var(--gradient);
    color: #0a0f1a;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: filter 0.15s ease, transform 0.15s ease;
}

.nav-cta:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
}

/* ---------------- HERO ---------------- */
.hero {
    padding: 88px 0 80px;
    position: relative;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, black, transparent);
    pointer-events: none;
}

.scanline {
    position: absolute;
    left: 0;
    right: 0;
    height: 120px;
    top: -120px;
    background: linear-gradient(180deg, transparent, rgba(59, 130, 246, 0.09), rgba(249, 115, 22, 0.06), transparent);
    animation: scan 7s linear infinite;
    pointer-events: none;
}

@keyframes scan {
    0% {
        top: -120px;
    }

    100% {
        top: 100%;
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
    align-items: center;
    position: relative;
}

.hero-name {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 0.94;
    font-size: clamp(46px, 7vw, 84px);
    letter-spacing: -0.02em;
}

.hero-name .last {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-roles {
    margin-top: 20px;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--blue-light);
    letter-spacing: 0.02em;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
}

.hero-roles span:not(:last-child)::after {
    content: '/';
    color: var(--text-faint);
    margin-left: 14px;
}

.hero-desc {
    margin-top: 26px;
    color: var(--text-dim);
    font-size: 16.5px;
    max-width: 54ch;
}

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

.btn {
    font-family: var(--font-mono);
    font-size: 13.5px;
    padding: 13px 24px;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: transform 0.15s ease, filter 0.15s ease, border-color 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.btn-primary {
    background: var(--gradient);
    color: #0a0f1a;
}

.btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.btn-ghost {
    border: 1px solid var(--border-strong);
    color: var(--text);
    background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
    border-color: var(--blue-light);
    transform: translateY(-2px);
}

.hero-socials {
    margin-top: 32px;
    display: flex;
    gap: 16px;
}

.social-btn {
    width: 38px;
    height: 38px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: var(--text-dim);
    transition: all 0.15s ease;
}

.social-btn:hover {
    color: var(--text);
    border-color: var(--orange-light);
    transform: translateY(-2px);
}

.social-btn svg {
    width: 17px;
    height: 17px;
}

/* status panel */
.status-panel {
    background: var(--panel);
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    overflow: hidden;
    position: relative;
}

.status-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
}

.status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.status-dots {
    display: flex;
    gap: 6px;
}

.status-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.25);
}

.status-dots span:first-child {
    background: var(--green);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.status-photo {
    padding: 26px 26px 0;
    display: flex;
    gap: 16px;
    align-items: center;
}

.status-photo img {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--border-strong);
}

.status-photo .who .name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 16px;
}

.status-photo .who .role {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--green);
    margin-top: 3px;
}

.status-stats {
    padding: 22px 26px 26px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 22px;
}

.stat-item .label {
    font-family: var(--font-mono);
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-faint);
    margin-bottom: 6px;
}

.stat-item .value {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
}

.stat-item .value .u {
    font-size: 12px;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-weight: 400;
}

.status-feed {
    border-top: 1px solid var(--border);
    padding: 16px 26px 20px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--text-faint);
}

.status-feed .line {
    display: flex;
    gap: 10px;
    padding: 3px 0;
}

.status-feed .line .ok {
    color: var(--green);
}

.status-feed .line .warn {
    color: var(--orange-light);
}

/* ---------------- ABOUT ---------------- */
.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.4fr;
    gap: 60px;
    align-items: start;
}

.about-text p {
    color: var(--text-dim);
    font-size: 16px;
    margin-bottom: 16px;
    max-width: 62ch;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.contact-card {
    background: var(--panel);
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    padding: 22px;
}

.contact-card h3 {
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-faint);
    margin-bottom: 16px;
}

.contact-row {
    display: flex;
    justify-content: space-between;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

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

.contact-row .k {
    color: var(--text-faint);
    font-family: var(--font-mono);
    font-size: 12.5px;
}

.contact-row .v {
    color: var(--text);
    text-align: right;
}

.contact-row a.v:hover {
    color: var(--orange-light);
}

.lang-list {
    margin-top: 18px;
}

.lang-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 0;
}

.lang-row .name {
    width: 78px;
    font-size: 13.5px;
    flex-shrink: 0;
}

.lang-bar {
    flex: 1;
    height: 6px;
    background: rgba(148, 163, 184, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.lang-bar>span {
    display: block;
    height: 100%;
    background: var(--gradient);
    border-radius: 4px;
}

.lang-row .pct {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-faint);
    width: 30px;
    text-align: right;
}

/* ---------------- SKILLS ---------------- */
.skills-note {
    color: var(--text-dim);
    max-width: 60ch;
    margin: -18px 0 40px;
    font-size: 15px;
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
}

.skill-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 20px;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.skill-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-3px);
}

.skill-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
}

.skill-top .name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 16.5px;
}

.skill-top .score {
    font-family: var(--font-mono);
    font-size: 13px;
}

.skill-bar {
    height: 5px;
    background: rgba(148, 163, 184, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.skill-bar>span {
    display: block;
    height: 100%;
    border-radius: 3px;
    background: var(--gradient);
}

.skill-tier {
    font-family: var(--font-mono);
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.tier-expert {
    color: var(--orange-light);
}

.tier-advanced {
    color: var(--blue-light);
}

.tier-growing {
    color: var(--text-faint);
}

.softskills {
    margin-top: 44px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill {
    font-family: var(--font-mono);
    font-size: 12.5px;
    padding: 8px 14px;
    border-radius: 100px;
    border: 1px solid var(--border-strong);
    color: var(--text-dim);
}

/* ---------------- PROJECTS ---------------- */
.project-card {
    background: var(--panel);
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 26px;
    display: grid;
    grid-template-columns: 1fr;
}

.project-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 26px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 12px;
}

.project-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.project-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
    color: #0a0f1a;
}

.icon-guarddog {
    background: linear-gradient(135deg, var(--blue), var(--orange));
}

.icon-bitcred {
    background: linear-gradient(135deg, var(--orange), #eab308);
}

.project-title {
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 600;
}

.project-tag {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--text-faint);
    margin-top: 2px;
}

.badge {
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 6px 12px;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.badge-green {
    background: rgba(34, 197, 94, 0.1);
    color: var(--green);
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.badge-green::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
}

.badge-orange {
    background: rgba(249, 115, 22, 0.1);
    color: var(--orange-light);
    border: 1px solid rgba(249, 115, 22, 0.25);
}

.badge-orange::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--orange);
}

.project-body {
    padding: 24px 26px 26px;
}

.project-body p {
    color: var(--text-dim);
    font-size: 15px;
    max-width: 76ch;
    margin-bottom: 18px;
}

.project-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.metric {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 13px 15px;
}

.metric .label {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-faint);
    margin-bottom: 5px;
}

.metric .val {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
}

.tech-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.tech-chip {
    font-family: var(--font-mono);
    font-size: 11.5px;
    padding: 5px 11px;
    border-radius: 6px;
    background: rgba(148, 163, 184, 0.06);
    border: 1px solid var(--border);
    color: var(--text-dim);
}

.project-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.link-btn {
    font-family: var(--font-mono);
    font-size: 12.5px;
    padding: 9px 16px;
    border-radius: 7px;
    border: 1px solid var(--border-strong);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.15s ease;
}

.link-btn:hover {
    border-color: var(--orange-light);
    color: var(--orange-light);
    transform: translateY(-1px);
}

/* add-project placeholder */
.project-add {
    border: 1px dashed var(--border-strong);
    border-radius: 16px;
    padding: 40px 26px;
    text-align: center;
    color: var(--text-faint);
    transition: border-color 0.15s ease, color 0.15s ease;
}

.project-add:hover {
    border-color: var(--blue-light);
    color: var(--text-dim);
}

.project-add .plus {
    width: 42px;
    height: 42px;
    margin: 0 auto 14px;
    border-radius: 10px;
    border: 1px dashed var(--border-strong);
    display: grid;
    place-items: center;
    font-size: 20px;
    font-family: var(--font-mono);
}

.project-add h4 {
    font-family: var(--font-display);
    font-size: 16px;
    color: var(--text-dim);
    margin-bottom: 6px;
    font-weight: 600;
}

.project-add p {
    font-family: var(--font-mono);
    font-size: 12px;
    max-width: 46ch;
    margin: 0 auto;
    line-height: 1.7;
}

/* ---------------- EXPERIENCE ---------------- */
.timeline {
    position: relative;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 6px;
    bottom: 6px;
    width: 1px;
    background: linear-gradient(180deg, var(--blue), var(--orange), transparent);
}

.tl-item {
    position: relative;
    padding-bottom: 40px;
}

.tl-item:last-child {
    padding-bottom: 0;
}

.tl-dot {
    position: absolute;
    left: -32px;
    top: 4px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--blue-light);
}

.tl-item:nth-child(odd) .tl-dot {
    border-color: var(--orange-light);
}

.tl-date {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.tl-role {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 4px;
}

.tl-org {
    font-size: 13.5px;
    color: var(--blue-light);
    margin-bottom: 10px;
    font-family: var(--font-mono);
}

.tl-desc {
    color: var(--text-dim);
    font-size: 14.5px;
    max-width: 68ch;
}

/* ---------------- EDUCATION + ACHIEVEMENTS ---------------- */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.edu-item {
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border);
}

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

.edu-item .deg {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15.5px;
}

.edu-item .school {
    color: var(--blue-light);
    font-size: 13.5px;
    margin-top: 3px;
    font-family: var(--font-mono);
}

.edu-item .yr {
    color: var(--text-faint);
    font-size: 12px;
    margin-top: 3px;
    font-family: var(--font-mono);
}

.ach-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ach-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 18px;
}

.ach-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 7px;
    background: var(--gradient-soft);
    display: grid;
    place-items: center;
    color: var(--orange-light);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
}

.ach-item p {
    font-size: 14px;
    color: var(--text-dim);
}

/* ---------------- CONTACT / FOOTER ---------------- */
.contact-cta {
    text-align: center;
    padding: 90px 0 60px;
}

.contact-cta h2 {
    font-family: var(--font-display);
    font-size: clamp(30px, 5vw, 46px);
    font-weight: 600;
    max-width: 16ch;
    margin: 0 auto 18px;
    line-height: 1.15;
}

.contact-cta .grad {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.contact-cta p {
    color: var(--text-dim);
    max-width: 50ch;
    margin: 0 auto 34px;
}

.contact-cta .btn-primary {
    font-size: 15px;
    padding: 15px 32px;
}

.contact-meta {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-top: 40px;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text-faint);
}

.contact-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

footer {
    border-top: 1px solid var(--border);
    padding: 30px 0;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-faint);
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 880px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

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

    .two-col {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .nav-links {
        display: none;
    }

    .status-stats {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .wrap {
        padding: 0 18px;
    }

    section {
        padding: 64px 0;
    }

    .hero {
        padding: 48px 0 56px;
    }

    .project-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* focus visibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--orange-light);
    outline-offset: 2px;
}