:root {
  --bg: #09090b;
  --surface: #18181b;
  --surface-2: #27272a;
  --border: #3f3f46;
  --text: #fafafa;
  --muted: #a1a1aa;
  --accent: #850000;
  --accent-2: #a40602;
  --green: #4ade80;
  --red: #ab0300;
  --red-hover: #d40602;
  --radius: 10px;
}
    .btn-special{
    text-decoration: none;
    color: white;
    background: #11141f;
    background: #BF0000;
    padding: 5px 20px;
    border-radius:25px;
    border: 2px solid grey;
    margin: 20px;
    font-size: 1.3rem;
}
.btn-special:hover{
    cursor: pointer;
    background: #690000;
    color: grey;
}
.title{
    display:flex;
    flex-direction:row;
    color: var(--accent-2);
    font-weight: 700;
    font-size: 1.1rem;
}
.title .chess{
    color: white;

}
.title .chess:hover{
    color: var(--muted);
}
.custom-row{
    display:flex;
    flex-direction:column;
    align-items: center;
}
.logo-img{
    max-width: 15%;
    margin:20px;
}
.inline-icon{
    height: 2rem;
    vertical-align: middle; /* Aligns the icon nicely with text */
    margin-right: none;
}
.img{
    max-width:100%;
    border: 3px solid var(--border);
    border-radius: 20px;
  }
* { margin: 0; padding: 0; box-sizing: border-box; }
html {
    scroll-behavior: smooth;
}
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { color: #850000; }

/* Layout shell */
.shell {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Top bar */
.title{
    display:flex;
    flex-direction:row;
    align-items:center;
}
.navbar {
    width: 100%;
    padding: 1.5rem 0 0.5rem;
    justify-content: space-between;
}
.navbar-item{
    color: white;
    padding: 0 20px 0 0
}
.header-left{
    display: flex;
    flex-direction: row;
}
.header-right{
    display: flex;
    flex-direction: row;
}
.logo {
    color: var(--accent-2);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.logo span { color: var(--text); }
.top-links {
  display: flex; gap: 1.4rem; font-size: 0.875rem;
}
.top-links a { color: var(--muted); }
.top-links a:hover { color: var(--text); }

/* Hero */
.hero {
  padding: 3.5rem 0 2.5rem;
}
.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0.9rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 1.75rem;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}
.meta-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
}
.actions {
  display: flex; gap: 0.75rem; flex-wrap: wrap;
}
.btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.6rem 1.15rem;
  border-radius: 8px;
  font-weight: 600; font-size: 0.9rem;
  transition: all 0.15s;
}
.btn-primary {
  background: var(--accent);
  color: #1e1b4b;
}
.btn-primary:hover {
  background: var(--accent-2);
}
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--text);
}
.btn-del{
    color: var(--red);
}
.btn-del:hover {
  color: var(--red-hover);
  cursor: pointer;
}

/* Sections */
.section {
  padding: 2.75rem 0;
  border-top: 1px solid var(--border);
}
.small-section{
    display: flex;
    flex-direction: column;
    align-items:center;
    justify-self:center;
    width: 80%;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 20px;
}
.section-head {
  display: flex;
    flex-direction:column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.section-head h2 {
  font-size: 1.15rem;
  font-weight: 600;
}
.section-head span {
  font-size: 0.8rem;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}

/* About */
.about-text {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 620px;
}
.about-text p + p { margin-top: 0.9rem; }
.about-text strong { color: var(--text); font-weight: 600; }

/* Skills */
.skill-rows {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.skill-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  align-items: start;
}
.skill-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  padding-top: 0.35rem;
  font-family: 'JetBrains Mono', monospace;
}
.skill-tags {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
}
.tag {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.78rem;
  padding: 0.28rem 0.65rem;
  border-radius: 6px;
}

/* Projects */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.project {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
  transition: border-color 0.15s;
}
.project:hover {
  border-color: #5b21b6;
}
.project h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.project p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.project-tech {
  display: flex; flex-wrap: wrap; gap: 0.35rem;
}
.project-tech span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted);
  background: var(--bg);
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
}
.project-side {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}
.status {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--green);
  background: rgba(74, 222, 128, 0.1);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}
.project-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-2);
  white-space: nowrap;
}

/* Hobbies */
.hobby-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.hobby {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
}

/* CTA */
.cta-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
}
.cta-block h2 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.cta-block p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

/* Footer */
footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.comment {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  gap: 1rem;
  align-items: start;
  transition: border-color 0.15s;
  margin: 10px;
}

.comment:hover {
  border-color: #5b21b6;
}
.replies{
    border-radius: 20px;
    background: var(--bg);
    padding: 20px;
}
.reply{
    background: var(--surface);
    border-radius: 20px;
    padding: 5px;
    margin: 20px;
}
.reply-btn{
    margin-right: 10px;
    padding: 5px;
    border-radius: 10px;
    border: 0 solid black;
}
@media (max-width: 640px) {
  .skill-row {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
  .project {
    grid-template-columns: 1fr;
  }
  .project-side {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
  }
  .top-links { display: none; }

}