/* =============================================
   OPEYEMI MOMODU — PORTFOLIO v2
   Aesthetic: Dark Editorial / Bold Typographic
   Inspired by modern AI engineer portfolios
   
   UPDATE GUIDE:
   - Colors: Change CSS variables in :root
   - Fonts:  Swap imports in HTML <head> and here
   - Accent: Change --accent-* variables
   ============================================= */

:root {
    --bg:              #080810;
    --bg-elevated:     #0e0e1a;
    --bg-card:         #111120;
    --bg-hover:        #16162a;

    --text:            #eae8e4;
    --text-secondary:  #9896a4;
    --text-muted:      #5c5a6e;

    /* UPDATE: Main accent color */
    --accent:          #c8ff2e;
    --accent-dim:      #a5d624;
    --accent-glow:     rgba(200, 255, 46, 0.08);
    --accent-glow-strong: rgba(200, 255, 46, 0.18);

    --border:          rgba(255, 255, 255, 0.06);
    --border-hover:    rgba(255, 255, 255, 0.12);

    --font-display:    'Syne', sans-serif;
    --font-body:       'Instrument Sans', sans-serif;
    --font-mono:       'DM Mono', monospace;

    --nav-h:           72px;
    --max-w:           1200px;
    --side-pad:        clamp(20px, 4vw, 48px);

    --ease-out:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-spring:     cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-dim) var(--bg);
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent-dim); border-radius: 10px; }

a { color: inherit; text-decoration: none; }
em { font-style: italic; color: var(--accent); }
img { display: block; max-width: 100%; }
ul { list-style: none; }

::selection {
    background: var(--accent);
    color: var(--bg);
}

/* ── GRAIN ── */
.grain {
    position: fixed;
    inset: 0;
    z-index: 10000;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── SCROLL PROGRESS ── */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), #fff);
    z-index: 10001;
    transition: width 0.1s linear;
}

/* ── NAVIGATION ── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    z-index: 9000;
    transition: all 0.4s var(--ease-out);
}

.nav.scrolled {
    background: rgba(8, 8, 16, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--side-pad);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    transition: color 0.3s;
}

.nav-logo:hover { color: var(--accent); }

.accent-dot { color: var(--accent); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: color 0.3s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s var(--ease-out);
}

.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }

.nav-link--cta {
    color: var(--bg);
    background: var(--accent);
    padding: 8px 20px;
    border-radius: 100px;
    font-weight: 500;
    transition: all 0.3s;
}

.nav-link--cta::after { display: none; }

.nav-link--cta:hover {
    background: #fff;
    color: var(--bg);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(200, 255, 46, 0.25);
}

/* Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 24px;
    position: relative;
    z-index: 9001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    position: absolute;
    left: 0;
    transition: all 0.3s var(--ease-out);
}

.hamburger span:first-child { top: 4px; }
.hamburger span:last-child { bottom: 4px; }

.hamburger.active span:first-child {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.hamburger.active span:last-child {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* Mobile nav */
.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 8999;
    background: rgba(8, 8, 16, 0.98);
    backdrop-filter: blur(30px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out);
}

.mobile-nav.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-link {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.mobile-nav-link:hover { color: var(--accent); }

/* ── HERO ── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 var(--side-pad);
    max-width: var(--max-w);
    margin: 0 auto;
    position: relative;
    gap: 60px;
}

.hero-bg-lines {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.04;
    background:
        repeating-linear-gradient(90deg, var(--text) 0px, var(--text) 1px, transparent 1px, transparent 200px);
}

.hero-content {
    flex: 1;
    position: relative;
    z-index: 1;
    padding-top: var(--nav-h);
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
    letter-spacing: 0.03em;
}

.eyebrow-line {
    display: block;
    width: 48px;
    height: 1px;
    background: var(--accent);
}

.hero-name {
    margin-bottom: 28px;
}

.hero-name-line {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(3.2rem, 8vw, 6.5rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: var(--text);
}

.hero-name-line--outline {
    -webkit-text-stroke: 2px var(--text);
    color: transparent;
    transition: all 0.4s var(--ease-out);
}

.hero-name-line--outline:hover {
    color: var(--accent);
    -webkit-text-stroke: 2px var(--accent);
}

.hero-description {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
}

.btn {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    padding: 14px 32px;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.35s var(--ease-out);
    cursor: pointer;
    border: none;
}

.btn--primary {
    background: var(--accent);
    color: var(--bg);
    font-weight: 500;
}

.btn--primary:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(200, 255, 46, 0.2);
}

.btn--ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-hover);
}

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

.hero-scroll-hint {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50%      { opacity: 0.4; transform: scaleY(0.6); }
}

.hero-aside {
    position: relative;
    z-index: 1;
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: var(--nav-h);
}

.hero-meta-item {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-elevated);
    transition: all 0.3s;
}

.hero-meta-item:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.meta-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.meta-value {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.status-available {
    color: var(--accent);
}

/* ── SECTIONS ── */
.section {
    padding: 120px 0;
    position: relative;
    z-index: 1;
}

.section--dark {
    background: var(--bg-elevated);
}

.section--contact {
    padding-bottom: 0;
}

.section-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--side-pad);
}

.section-inner--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.section-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.section-heading {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 20px;
}

.section-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

.text-accent { color: var(--accent); }

.body-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.75;
}

/* ── STATS ── */
.stats-row {
    display: flex;
    gap: 40px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.03em;
    line-height: 1;
}

.stat-text {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* ── SKILLS ── */
.skills-masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.skill-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.skill-block::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.skill-block:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.skill-block:hover::after { opacity: 1; }

.skill-block-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: all 0.3s;
}

.skill-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
}

/* ── PROJECTS ── */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.project {
    display: flex;
    gap: 32px;
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
    transition: all 0.4s var(--ease-out);
    position: relative;
}

.project:first-child {
    border-top: 1px solid var(--border);
}

.project::before {
    content: '';
    position: absolute;
    left: -var(--side-pad);
    right: -var(--side-pad);
    top: 0;
    bottom: 0;
    background: var(--accent-glow);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    z-index: -1;
}

.project:hover::before { opacity: 1; }

.project:hover {
    padding-left: 12px;
}

.project-index {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-shrink: 0;
    width: 36px;
    padding-top: 4px;
}

.project-body { flex: 1; }

.project-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 12px;
}

.project-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

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

.project-ext-link {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 100px;
    transition: all 0.3s;
    white-space: nowrap;
}

.project-ext-link:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-glow);
}

.project-ext-link--live {
    color: var(--accent);
    border-color: var(--accent-dim);
    background: var(--accent-glow);
}

.project-ext-link--live:hover {
    background: var(--accent);
    color: var(--bg);
}

.project-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 14px;
    max-width: 700px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tags span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
}

.projects-more {
    margin-top: 40px;
}

.link-arrow {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s var(--ease-out);
}

.link-arrow:hover { gap: 16px; }

.arrow-icon {
    transition: transform 0.3s var(--ease-out);
}

.link-arrow:hover .arrow-icon {
    transform: translateX(4px);
}

/* ── EXPERIENCE ── */
.experience-list {
    margin-top: 48px;
    margin-bottom: 64px;
}

.exp-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    padding: 36px 0;
    border-bottom: 1px solid var(--border);
}

.exp-item:first-child {
    border-top: 1px solid var(--border);
}

.exp-date {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    padding-top: 4px;
}

.exp-role {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.exp-company {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-dim);
    margin-bottom: 16px;
}

.exp-details {
    margin-bottom: 16px;
}

.exp-details li {
    position: relative;
    padding-left: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.6;
}

.exp-details li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 0.85rem;
}

.exp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.exp-tags span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
}

/* ── CERTIFICATIONS ── */
.certs-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 24px;
}

.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 12px;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
}

/* Only clickable cert links get the pointer + hover lift */
a.cert-item {
    cursor: pointer;
}

a.cert-item:hover {
    border-color: var(--border-hover);
    transform: translateX(4px);
}

/* Show a "↗" cue on hover for clickable certs */
a.cert-item::after {
    content: "↗";
    margin-left: auto;
    color: var(--text-muted);
    opacity: 0;
    transition: opacity 0.3s;
}

a.cert-item:hover::after {
    opacity: 1;
    color: var(--accent);
}

.cert-status {
    font-size: 1rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.cert-status--done {
    background: var(--accent-glow-strong);
    color: var(--accent);
}

.cert-status--progress {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.cert-name {
    display: block;
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
}

.cert-issuer {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ── CONTACT ── */
.section--contact {
    background: var(--bg);
    text-align: center;
}

.contact-heading {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: var(--text);
    margin-bottom: 24px;
}

.contact-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.contact-links { margin-bottom: 24px; }

.contact-link-big {
    font-family: var(--font-mono);
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    color: var(--accent);
    padding: 14px 36px;
    border: 1px solid var(--accent-dim);
    border-radius: 100px;
    display: inline-block;
    transition: all 0.35s var(--ease-out);
}

.contact-link-big:hover {
    background: var(--accent);
    color: var(--bg);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(200, 255, 46, 0.2);
}

.contact-socials {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 80px;
}

.social-link {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color 0.3s;
    position: relative;
}

.social-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s;
}

.social-link:hover { color: var(--accent); }
.social-link:hover::after { width: 100%; }

/* ── FOOTER ── */
.footer {
    border-top: 1px solid var(--border);
    padding: 32px var(--side-pad);
}

.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ── REVEAL ANIMATION ── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
    .nav-links { display: none; }
    .hamburger { display: block; }

    .hero {
        flex-direction: column;
        gap: 40px;
        padding-top: 120px;
        min-height: auto;
        padding-bottom: 80px;
    }

    .hero-aside {
        width: 100%;
        flex-direction: row;
        padding-top: 0;
    }

    .hero-meta-item { flex: 1; }

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

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

    .exp-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .project-top {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 640px) {
    .section { padding: 80px 0; }

    .hero-name-line {
        font-size: clamp(2.6rem, 12vw, 3.8rem);
    }

    .skills-masonry {
        grid-template-columns: 1fr;
    }

    .stats-row {
        flex-direction: column;
        gap: 20px;
    }

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

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

    .btn { text-align: center; justify-content: center; }

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

    .footer-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .contact-heading {
        font-size: 2.2rem;
    }

    .project {
        flex-direction: column;
        gap: 8px;
    }

    .project-index { width: auto; }
}
