/* ==========================================================================
   THEME LAYER — loaded after style.css
   Minimal, IT-style: near-black surfaces, one blue accent, one green "ok" accent.
   Delete this file (and its <link>) to return to the original black & white look.
   ========================================================================== */

:root {
    --ink:        #0d1117;   /* dark surfaces (GitHub dark) */
    --ink-2:      #161b22;   /* raised dark surfaces */
    --ink-line:   #30363d;   /* borders on dark */
    --paper:      #ffffff;
    --paper-2:    #f6f8fa;   /* light section background */
    --paper-line: #d0d7de;   /* borders on light */
    --text:       #1f2328;
    --text-soft:  #59636e;
    --blue:       #0969da;   /* accent on light */
    --blue-lite:  #58a6ff;   /* accent on dark */
    --green:      #2da44e;   /* accent on light */
    --green-lite: #3fb950;   /* accent on dark */
    --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    /* Variables the original stylesheet referenced but never defined */
    --bg-dark: var(--ink);
    --bg-primary: var(--paper);
    --text-white: #e6edf3;
    --accent-light: var(--blue-lite);
    --primary-light: var(--paper-line);

    /* Re-map the original palette */
    --primary-color: var(--ink);
    --secondary-color: var(--blue);
    --accent-color: var(--blue);
    --accent-secondary: var(--green);
    --text-primary: var(--text);
    --text-muted: var(--text-soft);
    --text-secondary: var(--text-soft);
    --light-bg: var(--paper);
    --bg-secondary: var(--paper-2);
    --border-color: var(--paper-line);
    --gradient-primary: linear-gradient(135deg, var(--ink) 0%, var(--ink) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--blue) 0%, var(--blue) 100%);
    --shadow-subtle: 0 1px 2px rgba(1,4,9,.08);
    --shadow-light: 0 2px 8px rgba(1,4,9,.10);
    --shadow-medium: 0 6px 18px rgba(1,4,9,.16);
}

/* ---------- Base ---------- */
body { color: var(--text); background: var(--paper); }
a { color: var(--blue); }
a:hover, a:focus { color: var(--blue); text-decoration: none; }
::selection { background: var(--blue); color: #fff; }

/* Section titles: small accent bar instead of heavy black */
.section-title { font-weight: 700; letter-spacing: -0.5px; }
.section-title span { color: var(--blue); }
.section-title::after {
    content: "";
    display: block;
    width: 44px; height: 3px;
    margin: 14px auto 0;
    background: var(--blue);
    border-radius: 2px;
}
#about .section-title, #skillset .section-title, #github .section-title, #contact .section-title { color: #e6edf3 !important; }
#about .section-title::after, #skillset .section-title::after,
#github .section-title::after, #contact .section-title::after { background: var(--green-lite); }
#about .section-title span, #skillset .section-title span, #github .section-title span { color: var(--blue-lite) !important; }

h1.arrow { color: var(--text); }
h1.arrow span { color: var(--blue); }

/* ---------- Hero ---------- */
.hero-title { letter-spacing: -1px; }
.hero-prompt {
    font-family: var(--mono);
    font-size: .95rem;
    color: var(--text-soft);
    margin-bottom: 1.2rem;
}
.hero-prompt .p  { color: var(--green); }
.hero-prompt .c  { color: var(--blue); }
.hero-prompt .cursor {
    display: inline-block; width: .55em; height: 1.05em;
    background: var(--green); vertical-align: -2px; margin-left: 3px;
    animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hero-subtitle { font-family: var(--mono); font-size: 1rem; color: var(--text-soft); }

.hero-badges { margin: 0 0 2rem; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero-badge {
    font-family: var(--mono); font-size: .78rem;
    padding: 4px 12px; border-radius: 999px;
    border: 1px solid var(--paper-line); background: rgba(255,255,255,.85);
    color: var(--text);
}
.hero-badge i { margin-right: 6px; color: var(--green); }

/* Social buttons */
.social-buttons li a {
    background: var(--ink);
    border: 1px solid var(--ink);
    border-radius: 8px;
}
.social-buttons li a:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
}

/* ---------- Cards, tags, buttons ---------- */
.modern-card {
    border: 1px solid var(--paper-line);
    border-radius: 10px;
    box-shadow: none;
}
.modern-card:hover { transform: none; border-color: var(--blue); box-shadow: var(--shadow-light); }

.btn-modern {
    background: var(--ink);
    border: 1px solid var(--ink);
    border-radius: 8px;
}
.btn-modern:hover { background: var(--blue); border-color: var(--blue); }

.skill-tag {
    border: 1px solid var(--paper-line);
    border-radius: 6px;
    font-family: var(--mono);
    font-size: .8rem;
    font-weight: 500;
    padding: 6px 12px;
}
.skill-tag:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.skill-tag.primary, .skill-tag.accent { border-color: var(--green); color: var(--green); }
.skill-tag.primary:hover, .skill-tag.accent:hover { background: var(--green); color: #fff; }

/* ---------- About (dark) ---------- */
#about, #skillset, #github { background: var(--ink) !important; color: #e6edf3 !important; }
#about .modern-card, #skillset .modern-card {
    background: var(--ink-2) !important;
    border: 1px solid var(--ink-line) !important;
}
#about .modern-card:hover, #skillset .modern-card:hover { border-color: var(--blue-lite) !important; }
#about p, #about h3, #about .modern-card p, #about .modern-card h3 { color: #e6edf3 !important; }
#skillset .skill-tag {
    background: transparent; color: #c9d1d9; border-color: var(--ink-line);
}
#skillset .skill-tag:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
#skillset .skill-tag.primary, #skillset .skill-tag.accent { border-color: var(--green-lite); color: var(--green-lite); }
#skillset .skill-tag.primary:hover, #skillset .skill-tag.accent:hover { background: var(--green-lite); color: var(--ink); }
#skillset .service-item { border-left: 3px solid var(--green-lite) !important; background: transparent !important; }
#skillset .service-item h4 i { color: var(--blue-lite) !important; }
#skillset .service-item p { color: #8b949e !important; margin-bottom: 1rem; }
#skillset .contact-cta { background: transparent; border: 1px dashed var(--ink-line); }
#skillset .contact-cta p { color: #8b949e !important; font-family: var(--mono); font-size: .85rem; }
#skillset .modern-card h3 i, #about .modern-card h3 i { color: var(--blue-lite); }

/* "Facts" block in About: key: value, like a config file */
.facts {
    font-family: var(--mono); font-size: .92rem; text-align: left;
    margin: 0; padding: 0; list-style: none;
}
.facts li { padding: 6px 0; border-bottom: 1px dashed var(--ink-line); color: #c9d1d9; }
.facts li:last-child { border-bottom: 0; }
.facts .k { color: var(--blue-lite); display: inline-block; min-width: 110px; }
.facts .v { color: #e6edf3; }
#about p.lead-copy { font-size: 1.05rem; line-height: 1.7; }

/* ---------- Education ---------- */
.services .icon { color: var(--blue); }
.features .item h2 { font-size: 1.15rem; font-weight: 600; }

/* ---------- Image/text rows ---------- */
.color-bg { background: var(--ink) !important; }
.color-bg h6, .color-bg p { color: #e6edf3; }
.color-bg h6 { font-family: var(--mono); color: var(--green-lite); letter-spacing: 1.5px; }
.color-bg h6::after { border-color: var(--green-lite); }
.about-text h6 { font-family: var(--mono); letter-spacing: 1.5px; color: var(--blue); }
.about-text h6::after { border-color: var(--blue); }
.about-image { filter: grayscale(.25); transition: filter .4s; }
.about-image:hover { filter: none; }

/* ---------- Portfolio (light) ---------- */
#portfolio { background: var(--paper-2) !important; }
#portfolio .projects-inline a {
    font-family: var(--mono); font-size: .82rem; font-weight: 500;
    border: 1px solid var(--paper-line); border-radius: 6px; padding: 8px 14px;
    background: var(--paper) !important; color: var(--text) !important;
}
#portfolio .projects-inline a:hover {
    background: var(--paper) !important; color: var(--blue) !important;
    border-color: var(--blue); transform: translateY(-1px);
}

/* ---------- GitHub section ---------- */
#github { padding: 90px 0; }
#github .gh-sub { color: #8b949e; font-family: var(--mono); font-size: .9rem; margin: 18px 0 40px; }

.gh-profile {
    display: flex; align-items: center; gap: 18px; justify-content: center;
    margin-bottom: 28px; flex-wrap: wrap;
}
.gh-profile img {
    width: 64px; height: 64px; border-radius: 50%;
    border: 2px solid var(--green-lite); background: var(--ink-2);
}
.gh-profile .gh-name { text-align: left; }
.gh-profile .gh-name b { display: block; font-size: 1.15rem; color: #e6edf3; }
.gh-profile .gh-name a { font-family: var(--mono); font-size: .85rem; color: var(--blue-lite); }

.gh-stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
    max-width: 760px; margin: 0 auto 36px;
}
.gh-stat {
    background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 10px;
    padding: 18px 10px;
}
.gh-stat .n { display: block; font-family: var(--mono); font-size: 1.7rem; font-weight: 500; color: var(--green-lite); }
.gh-stat .l { font-size: .78rem; letter-spacing: 1.2px; text-transform: uppercase; color: #8b949e; }

.gh-graph {
    background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 10px;
    padding: 18px; margin: 0 auto 36px; max-width: 900px; overflow-x: auto;
}
.gh-graph img { display: block; margin: 0 auto; min-width: 640px; width: 100%; }
.gh-graph .cap { font-family: var(--mono); font-size: .75rem; color: #8b949e; text-align: left; margin-bottom: 10px; }

.gh-langs { max-width: 900px; margin: 0 auto 40px; text-align: left; }
.gh-langbar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--ink-2); }
.gh-langbar span { display: block; height: 100%; }
.gh-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-family: var(--mono); font-size: .78rem; color: #c9d1d9; }
.gh-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }

.gh-repos {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
    max-width: 1000px; margin: 0 auto 34px; text-align: left;
}
.gh-repo {
    display: flex; flex-direction: column;
    background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 10px;
    padding: 18px; color: #c9d1d9; transition: border-color .2s, transform .2s;
}
.gh-repo:hover { border-color: var(--blue-lite); transform: translateY(-2px); color: #c9d1d9; }
.gh-repo .t { font-family: var(--mono); font-size: .95rem; font-weight: 500; color: var(--blue-lite); word-break: break-word; }
.gh-repo .t i { color: #8b949e; margin-right: 6px; }
.gh-repo .d { font-size: .85rem; color: #8b949e; margin: 8px 0 14px; flex: 1; }
.gh-repo .m { display: flex; gap: 16px; font-family: var(--mono); font-size: .75rem; color: #8b949e; flex-wrap: wrap; }
.gh-repo .m .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; }

.gh-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.gh-btn {
    font-family: var(--mono); font-size: .85rem; padding: 10px 18px; border-radius: 8px;
    border: 1px solid var(--ink-line); color: #e6edf3; background: var(--ink-2);
}
.gh-btn:hover { border-color: var(--blue-lite); color: #fff; }
.gh-btn.primary { background: var(--green); border-color: var(--green); color: #fff; }
.gh-btn.primary:hover { background: var(--green-lite); border-color: var(--green-lite); color: var(--ink); }
.gh-btn i { margin-right: 8px; }

.gh-skel { color: #8b949e; font-family: var(--mono); font-size: .85rem; grid-column: 1 / -1; text-align: center; }

@media (max-width: 860px) {
    .gh-stats { grid-template-columns: repeat(2, 1fr); }
    .gh-repos { grid-template-columns: 1fr; }
}

/* ---------- News ---------- */
#blog { background: var(--ink-2) !important; }
#blog .arrow span { color: var(--blue-lite) !important; }
#blog p { color: #8b949e !important; font-size: .9rem; }
#blog h1 { font-size: 1.05rem !important; }
.color-bg .flex-control-paging li a.flex-active { background: var(--green-lite); border-color: var(--green-lite); }

/* ---------- Contact ---------- */
#contact { background: var(--ink) !important; }
#contact .modern-card.contact-card { background: var(--ink-2) !important; border: 1px solid var(--ink-line) !important; }
#contact .modern-card.contact-card:hover { border-color: var(--blue-lite) !important; }
#contact .contact-card i { color: var(--blue-lite); }
#contact a[href*="mailto"] { color: var(--blue-lite) !important; }
.contact .form-control {
    border-radius: 8px !important; background: var(--ink-2); color: #e6edf3;
    border: 1px solid var(--ink-line);
}
.contact .form-control:focus { border-color: var(--blue-lite); }
.contact .form-control::placeholder { color: #6e7681; }
.btn-send { background: var(--green); border-radius: 8px; border: 0; }
.btn-send:hover { background: var(--green-lite); color: var(--ink); }

/* ---------- Misc ---------- */
.up-btn { background: var(--blue) !important; border-radius: 8px !important; }
.up-btn:hover { background: var(--green) !important; }
.icon-list a:hover { color: var(--blue) !important; }
.menu-wrap { border-bottom: 1px solid var(--paper-line); }
footer { background: var(--ink); border-top: 1px solid var(--ink-line); }
footer p { color: #8b949e; }
footer a { color: var(--blue-lite); }

@media (prefers-reduced-motion: reduce) {
    .hero-prompt .cursor { animation: none; }
    .gh-repo { transition: none; }
}

/* Hero: keep the name dark; accent only on the prompt line */
.hero-title { color: var(--ink) !important; }
.hero-subtitle { color: var(--text-soft) !important; }

/* Education icons: one color each */
.services .item:nth-child(1) .icon i { color: #d29922; }  /* high school */
.services .item:nth-child(2) .icon i { color: var(--blue); }   /* bachelor's */
.services .item:nth-child(3) .icon i { color: var(--green); }  /* master's */
