:root {
    --cs-bg: #0f0f10;
    --cs-panel: #111827;
    --cs-term: #000;
    --cs-tab: #2b2b2f;
    --cs-text: #f8fafc;
    --cs-muted: #b7c9df;
    --cs-green: #00ff75;
    --cs-orange: #e68100;
    --cs-blue: #3b9cff;
    --cs-border: rgba(255,255,255,.08);
    --cs-max: 1850px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--cs-bg);
    color: var(--cs-text);
    font-family: "JetBrains Mono", Consolas, monospace;
    line-height: 1.55;
}
a { color: var(--cs-blue); text-decoration: underline; text-underline-offset: 3px; }
svg { width: 1em; height: 1em; vertical-align: -0.15em; }

.cs-top {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 16px 22px 10px;
    background: rgba(15,15,16,.94);
    backdrop-filter: blur(10px);
}
.cs-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--cs-text); font-size: clamp(1.1rem,2vw,1.75rem); font-weight: 800; text-decoration: none; white-space: nowrap; }
.cs-logo { color: var(--cs-blue); font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 800; letter-spacing: -1px; margin-right: 8px; }
.cs-nav { display: flex; gap: 14px; margin-left: auto; }
.cs-nav a { color: var(--cs-muted); font-size: .9rem; text-decoration: none; }
.cs-nav a:hover { color: var(--cs-green); }
.cs-socials { display: flex; gap: 12px; }
.cs-socials a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #4b5563;
    color: var(--cs-text);
    text-decoration: none;
    font-size: 1.35rem;
}

main { max-width: var(--cs-max); margin: 0 auto; padding: 0 20px 70px; }
.cs-hero {
    min-height: 600px;
    padding: 58px 60px;
    border-radius: 5px;
    background: var(--cs-panel);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 34px;
}
.cs-hero h1 { margin: 0; text-align: center; font-size: clamp(2.4rem,4vw,4rem); line-height: 1.1; }
.cs-cursor { animation: blink 1s steps(2,end) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.cs-hero p { width: 100%; margin: 0; font-size: clamp(1rem,1.35vw,1.28rem); }
.cs-mini-term {
    width: min(720px,100%);
    padding: 26px 14px;
    border-radius: 5px;
    background: var(--cs-term);
}
.cs-mini-line { color: var(--cs-green); font-weight: 700; font-size: 1.02rem; }
.cs-mini-meta { margin-top: 24px; color: var(--cs-text); }
.cs-mini-note { margin: 5px 0 22px; color: var(--cs-muted); font-size: .82rem; }
.cs-progress { height: 13px; margin-top: 6px; border-radius: 999px; overflow: hidden; background: #475569; }
.cs-progress i { display: block; height: 100%; border-radius: inherit; background: #7ed321; }

.cs-section { margin-top: 52px; }
.cs-section h2 { margin: 0 0 24px; font-size: clamp(1.9rem,3vw,2.7rem); }
.cs-skills { text-align: center; }
.cs-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.cs-pills span {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    padding: 0 22px;
    border-radius: 999px;
    background: var(--cs-orange);
    color: var(--cs-text);
    font-weight: 600;
}
.cs-skill-ic { width: 20px; height: 20px; margin-right: 8px; background: rgba(255,255,255,.92); border-radius: 5px; padding: 2px; box-sizing: border-box; }
.cs-pills.compact { justify-content: flex-start; gap: 10px; }
.cs-pills.compact span { min-height: 36px; padding: 0 14px; font-size: .86rem; }

.cs-window { overflow: hidden; border-radius: 9px; background: var(--cs-term); box-shadow: 0 0 0 1px var(--cs-border); }
.cs-win-head { height: 54px; display: flex; align-items: center; gap: 18px; padding: 0 22px; background: var(--cs-tab); color: var(--cs-text); }
.cs-tab { align-self: stretch; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; background: var(--cs-term); border-radius: 8px 8px 0 0; }
.cs-plus, .cs-chevron { color: var(--cs-text); }
.cs-window-actions { margin-left: auto; letter-spacing: 14px; white-space: nowrap; }
.cs-terminal { padding: 26px 20px 34px; min-height: 330px; }
.cs-command-card { margin-bottom: 28px; }
.cs-command-card:last-child { margin-bottom: 0; }
.cs-command-card h3 { margin: 0 0 4px; color: var(--cs-green); font-size: 1.05rem; }
.cs-command-card p { margin: 0 0 4px; color: var(--cs-muted); }
.cs-command-card ul { margin: 8px 0 0; padding-left: 22px; color: var(--cs-muted); }
.cs-command-card li { margin: 4px 0; }
.cs-muted { color: var(--cs-muted); }
.cs-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.cs-links a + a::before { content: "|"; color: var(--cs-text); margin-right: 12px; }

.cs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(330px,100%),1fr)); gap: 18px; }
.cs-card {
    min-height: 190px;
    padding: 24px;
    border-radius: 9px;
    background: var(--cs-term);
    box-shadow: 0 0 0 1px var(--cs-border);
}
.cs-card img { width: 100%; height: 150px; object-fit: cover; border-radius: 6px; margin-bottom: 16px; }
.cs-card h3 { margin: 0 0 8px; color: var(--cs-green); }
.cs-card p { margin: 0 0 8px; color: var(--cs-muted); }

.cs-contact { text-align: center; padding: 50px 20px; border-radius: 8px; background: var(--cs-panel); }
.cs-contact p { color: var(--cs-muted); }
.cs-contact-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 22px; }
.cs-contact-row a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--cs-orange);
    color: var(--cs-text);
    text-decoration: none;
}
.cs-footer { padding: 30px 20px 50px; text-align: center; color: var(--cs-muted); }

@media (max-width: 860px) {
    .cs-top { align-items: flex-start; flex-wrap: wrap; }
    .cs-nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; padding-bottom: 4px; }
    .cs-socials { margin-left: auto; }
    .cs-socials a { width: 40px; height: 40px; font-size: 1rem; }
    main { padding-left: 12px; padding-right: 12px; }
    .cs-hero { min-height: auto; padding: 44px 20px; }
    .cs-terminal { padding: 20px 14px 28px; }
    .cs-window-actions { display: none; }
}

@media (max-width: 520px) {
    .cs-brand { width: 100%; }
    .cs-socials { margin-left: 0; }
    .cs-hero h1 { text-align: left; width: 100%; }
    .cs-section h2 { font-size: 1.65rem; }
    .cs-win-head { padding: 0 10px; gap: 10px; }
    .cs-tab { padding: 0 10px; font-size: .82rem; }
}
