k5bss.com/css/style.css

526 lines
10 KiB
CSS

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
--bg: #0a0c10;
--bg2: #0f1218;
--bg3: #151a22;
--border: #1e2530;
--accent: #00d4aa;
--accent2: #0088ff;
--dim: #4a5568;
--mid: #8892a4;
--text: #c9d1e0;
--bright: #e8edf5;
--red: #ff4d6a;
--yellow: #ffd166;
--font-mono: 'IBM Plex Mono', monospace;
--font-sans: 'IBM Plex Sans', sans-serif;
}
html { scroll-behavior: smooth; }
body {
background: var(--bg);
color: var(--text);
font-family: var(--font-sans);
font-size: 15px;
line-height: 1.7;
min-height: 100vh;
}
/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
/* ── Layout ── */
.layout {
display: grid;
grid-template-columns: 280px 1fr;
min-height: 100vh;
}
/* ── Sidebar ── */
aside {
position: sticky;
top: 0;
height: 100vh;
background: var(--bg2);
border-right: 1px solid var(--border);
display: flex;
flex-direction: column;
padding: 2.5rem 1.8rem;
overflow-y: auto;
}
.profile-photo {
width: 80px;
height: 80px;
border-radius: 50%;
border: 2px solid var(--accent);
object-fit: cover;
margin-bottom: 1rem;
}
.profile-name {
font-family: var(--font-mono);
font-size: 1.15rem;
font-weight: 600;
color: var(--bright);
letter-spacing: -0.02em;
}
.profile-title {
font-family: var(--font-mono);
font-size: 0.72rem;
color: var(--accent);
text-transform: uppercase;
letter-spacing: 0.12em;
margin-top: 0.25rem;
}
.profile-loc {
font-size: 0.78rem;
color: var(--dim);
margin-top: 0.5rem;
}
.divider {
border: none;
border-top: 1px solid var(--border);
margin: 1.5rem 0;
}
nav { flex: 1; }
nav a {
display: flex;
align-items: center;
gap: 0.6rem;
padding: 0.45rem 0.6rem;
border-radius: 4px;
color: var(--mid);
text-decoration: none;
font-family: var(--font-mono);
font-size: 0.78rem;
letter-spacing: 0.04em;
transition: color 0.15s, background 0.15s;
margin-bottom: 0.1rem;
}
nav a:hover, nav a.active {
color: var(--accent);
background: rgba(0, 212, 170, 0.07);
}
nav a .dot {
width: 5px; height: 5px;
border-radius: 50%;
background: var(--border);
flex-shrink: 0;
transition: background 0.15s;
}
nav a:hover .dot, nav a.active .dot { background: var(--accent); }
.socials {
display: flex;
gap: 0.7rem;
flex-wrap: wrap;
margin-top: auto;
padding-top: 1.5rem;
}
.socials a {
color: var(--dim);
text-decoration: none;
font-family: var(--font-mono);
font-size: 0.7rem;
letter-spacing: 0.05em;
transition: color 0.15s;
border: 1px solid var(--border);
padding: 0.2rem 0.5rem;
border-radius: 3px;
}
.socials a:hover { color: var(--accent); border-color: var(--accent); }
/* ── Main Content ── */
main {
padding: 3rem 3.5rem;
max-width: 860px;
}
/* ── Prompt header ── */
.prompt {
font-family: var(--font-mono);
font-size: 0.72rem;
color: var(--dim);
margin-bottom: 0.4rem;
}
.prompt span { color: var(--accent); }
/* ── Section ── */
section {
margin-bottom: 4rem;
scroll-margin-top: 2rem;
}
.section-label {
font-family: var(--font-mono);
font-size: 0.65rem;
text-transform: uppercase;
letter-spacing: 0.18em;
color: var(--accent);
margin-bottom: 0.5rem;
}
h1 {
font-family: var(--font-mono);
font-size: 2.4rem;
font-weight: 600;
color: var(--bright);
line-height: 1.15;
letter-spacing: -0.03em;
}
h2 {
font-family: var(--font-mono);
font-size: 1.25rem;
font-weight: 500;
color: var(--bright);
margin-bottom: 1.5rem;
padding-bottom: 0.5rem;
border-bottom: 1px solid var(--border);
}
h2 .hash { color: var(--accent); margin-right: 0.3rem; }
.hero-sub {
font-size: 1.05rem;
color: var(--mid);
max-width: 540px;
margin-top: 1.2rem;
line-height: 1.8;
}
.hero-sub strong { color: var(--text); font-weight: 500; }
/* ── Tags ── */
.tags {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
margin-top: 1.2rem;
}
.tag {
font-family: var(--font-mono);
font-size: 0.7rem;
padding: 0.25rem 0.7rem;
border-radius: 3px;
border: 1px solid var(--border);
color: var(--mid);
letter-spacing: 0.04em;
background: var(--bg2);
}
.tag.accent { border-color: rgba(0,212,170,0.4); color: var(--accent); }
.tag.blue { border-color: rgba(0,136,255,0.35); color: var(--accent2); }
/* ── Experience cards ── */
.exp-item {
border-left: 2px solid var(--border);
padding: 0 0 2rem 1.5rem;
position: relative;
transition: border-color 0.2s;
}
.exp-item:last-child { padding-bottom: 0; }
.exp-item::before {
content: '';
position: absolute;
left: -5px;
top: 6px;
width: 8px; height: 8px;
border-radius: 50%;
background: var(--border);
border: 2px solid var(--bg);
transition: background 0.2s;
}
.exp-item:hover { border-color: var(--accent); }
.exp-item:hover::before { background: var(--accent); }
.exp-role {
font-family: var(--font-mono);
font-size: 0.9rem;
font-weight: 600;
color: var(--bright);
}
.exp-company {
font-size: 0.85rem;
color: var(--accent2);
margin-top: 0.1rem;
}
.exp-meta {
font-family: var(--font-mono);
font-size: 0.7rem;
color: var(--dim);
margin: 0.3rem 0 0.8rem;
}
.exp-list {
list-style: none;
font-size: 0.86rem;
color: var(--mid);
}
.exp-list li {
padding: 0.2rem 0;
padding-left: 1.1rem;
position: relative;
}
.exp-list li::before {
content: '→';
position: absolute;
left: 0;
color: var(--dim);
font-size: 0.75rem;
}
/* ── Skills grid ── */
.skills-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 1px;
border: 1px solid var(--border);
border-radius: 6px;
overflow: hidden;
background: var(--border);
margin-bottom: 1.5rem;
}
.skill-cell {
background: var(--bg2);
padding: 0.9rem 1.1rem;
font-family: var(--font-mono);
font-size: 0.75rem;
color: var(--mid);
transition: background 0.15s, color 0.15s;
cursor: default;
}
.skill-cell:hover { background: var(--bg3); color: var(--text); }
.skill-cell .skill-icon { color: var(--accent); margin-right: 0.4rem; font-size: 0.7rem; }
/* ── Education ── */
.edu-card {
background: var(--bg2);
border: 1px solid var(--border);
border-radius: 6px;
padding: 1.2rem 1.4rem;
margin-bottom: 1rem;
transition: border-color 0.2s;
}
.edu-card:hover { border-color: rgba(0,212,170,0.3); }
.edu-school {
font-family: var(--font-mono);
font-size: 0.88rem;
font-weight: 600;
color: var(--bright);
}
.edu-degree {
font-size: 0.84rem;
color: var(--mid);
margin-top: 0.2rem;
}
.edu-meta {
font-family: var(--font-mono);
font-size: 0.68rem;
color: var(--dim);
margin-top: 0.4rem;
}
.edu-honor {
display: inline-block;
margin-top: 0.5rem;
font-family: var(--font-mono);
font-size: 0.68rem;
padding: 0.15rem 0.5rem;
border: 1px solid rgba(255, 209, 102, 0.4);
color: var(--yellow);
border-radius: 3px;
}
/* ── Certs ── */
.cert-group { margin-bottom: 1.5rem; }
.cert-group-title {
font-family: var(--font-mono);
font-size: 0.68rem;
text-transform: uppercase;
letter-spacing: 0.14em;
color: var(--dim);
margin-bottom: 0.7rem;
}
.cert-list { list-style: none; }
.cert-list li {
font-size: 0.84rem;
color: var(--mid);
padding: 0.3rem 0;
border-bottom: 1px solid var(--border);
display: flex;
align-items: center;
gap: 0.5rem;
}
.cert-list li:last-child { border-bottom: none; }
.cert-list li::before {
content: '✓';
font-family: var(--font-mono);
font-size: 0.7rem;
color: var(--accent);
}
/* ── Contact ── */
.contact-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1rem;
}
.contact-item {
background: var(--bg2);
border: 1px solid var(--border);
border-radius: 6px;
padding: 1rem 1.2rem;
transition: border-color 0.2s;
}
.contact-item:hover { border-color: rgba(0,212,170,0.35); }
.contact-label {
font-family: var(--font-mono);
font-size: 0.65rem;
text-transform: uppercase;
letter-spacing: 0.12em;
color: var(--dim);
margin-bottom: 0.3rem;
}
.contact-val {
font-size: 0.85rem;
color: var(--text);
}
.contact-val a {
color: var(--accent2);
text-decoration: none;
}
.contact-val a:hover { text-decoration: underline; }
/* ── Footer ── */
footer {
font-family: var(--font-mono);
font-size: 0.7rem;
color: var(--dim);
margin-top: 3rem;
padding-top: 1.5rem;
border-top: 1px solid var(--border);
}
/* ── Blinking cursor ── */
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.cursor {
display: inline-block;
width: 2px; height: 1.1em;
background: var(--accent);
vertical-align: middle;
animation: blink 1.1s step-end infinite;
margin-left: 3px;
}
/* ── Tablet ── */
@media (max-width: 1024px) {
.layout { grid-template-columns: 230px 1fr; }
main { padding: 2.5rem 2rem; }
}
/* ── Mobile ── */
@media (max-width: 768px) {
.layout { grid-template-columns: 1fr; }
aside {
position: relative;
height: auto;
border-right: none;
border-bottom: 1px solid var(--border);
padding: 1.5rem 1.2rem;
}
/* Flatten the nav into a horizontal wrapping row to save vertical space */
nav {
display: flex;
flex-wrap: wrap;
gap: 0.3rem;
flex: none;
margin: 0.8rem 0;
}
nav a {
display: inline-flex;
font-size: 0.72rem;
padding: 0.3rem 0.6rem;
margin-bottom: 0;
}
.socials { padding-top: 1rem; }
main { padding: 2rem 1.5rem; }
h1 { font-size: 1.7rem; }
.contact-grid { grid-template-columns: 1fr; }
}
/* ── Small mobile (≤480 px) ── */
@media (max-width: 480px) {
main { padding: 1.5rem 1rem; }
h1 { font-size: 1.4rem; }
section { margin-bottom: 2.5rem; }
.hero-sub { font-size: 0.92rem; }
.skills-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
/* ── Fade-in animation ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
section { animation: fadeUp 0.5s ease both; }
section:nth-child(2) { animation-delay: 0.05s; }
section:nth-child(3) { animation-delay: 0.1s; }
section:nth-child(4) { animation-delay: 0.15s; }
section:nth-child(5) { animation-delay: 0.2s; }
section:nth-child(6) { animation-delay: 0.25s; }
/* ── Skills subheading ── */
.skills-subheading {
margin-bottom: 0.6rem;
font-family: var(--font-mono);
font-size: 0.68rem;
text-transform: uppercase;
letter-spacing: 0.12em;
color: var(--dim);
}