/* Reset & Layout */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', Arial, sans-serif;
  background: var(--bg, #181b22);
  color: var(--text, #eef2fa);
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
#main-content {
  flex: 1 0 auto;
  width: 100%;
}

/* =================== HEADER =================== */
.navbar {
  background: var(--nav, #212336);
  min-height: 56px;
  padding: 0.5rem 2rem;
  box-sizing: border-box;
  display: flex;
  align-items: center;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-left: 1.2rem;
}
.profile-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent, #5e99ff);
}
.navbar-brand {
  font-size: 1.04rem;
  font-weight: bold;
  color: var(--accent, #5e99ff);
  margin-left: 0.3rem;
}
.nav-actions {
  display: flex;
  align-items: center;
  margin-left: auto;
}
.navbar-links {
  display: flex;
  gap: 1.13rem;
  list-style: none;
  padding: 0;
  margin: 0 1.08rem 0 0;
}
.navbar-links a {
  color: var(--text, #eef2fa);
  padding: 0.19rem 0.85rem;
  font-size: 1rem;
  border-radius: 7px;
  transition: background 0.13s, color 0.13s;
  text-decoration: none;
}
.navbar-links a.active, .navbar-links a:hover {
  background: var(--accent, #5e99ff);
  color: #fff;
}
.settings-btn {
  background: none;
  border: none;
  color: var(--accent, #5e99ff);
  font-size: 1.3rem;
  padding: 6px;
  border-radius: 50%;
  cursor: pointer;
}
.settings-btn:focus, .settings-btn:hover {
  background: var(--accent, #5e99ff);
  color: #fff;
}

/* =================== HERO =================== */
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 2.1rem;
}
.hero h1 { margin-bottom: 0.36em; }
.hero h2 { margin-bottom: 1em; font-weight: 500; font-size: 1.13rem; }
.hero p { max-width: 600px; margin-bottom: 0.8em; }
.hero-links { margin-top: 1rem; }
.hero-links a { color: var(--text, #eef2fa); font-size: 1.22rem; margin: 0 0.43rem; }
.hero-links a:hover { color: var(--accent, #5e99ff); }

/* =================== SKILLS SECTION =================== */
.skills-section {
  text-align: center;
  margin-top: 2.6rem;
}
.skills-section h2 { margin-bottom: 1.2rem; }
.skill-group {
  margin-bottom: 1.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.skill-group-label {
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--accent, #5e99ff);
  margin-bottom: 0.45em;
}
.skills-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.1em 1.38em;
  margin-bottom: 1.1rem;
}
.skill-badge {
  display: flex;
  align-items: center;
  background: var(--badge, #32395c);
  color: var(--badge-txt, #e6e6e6);
  border-radius: 14px;
  padding: 0.47em 1.12em;
  font-size: 1.04rem;
  font-weight: 600;
  margin-bottom: 0.15em;
}
.skill-badge img {
  width: 1.14em;
  height: 1.14em;
  object-fit: contain;
  margin-right: 0.35em;
  border-radius: 6px;
}

/* =================== PROJECT CARDS & GRID =================== */
.featured-projects-container {
  text-align: center;
  margin-top: 3.1rem;
  margin-bottom: 3.1rem;
}
.featured-projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.1rem;
  justify-content: center;
  padding: 0;
}
@media (max-width: 900px) { .featured-projects-grid { grid-template-columns: 1fr; } }
.project-card {
  background: var(--bg,#181b22);
  border-radius: 16px;
  box-shadow: 0 2px 16px #0002;
  overflow: hidden;
  min-height: 370px;
  display: flex;
  flex-direction: column;
}
.project-banner {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
}
.project-title-row {
  margin: 1.04em 1em 0.10em 1em;
}
.project-title-row h3 { margin: 0; font-size: 1.15rem; }
.project-title-row a { color: var(--accent, #5e99ff); }
.project-title-row a:hover { text-decoration: underline; }
.project-short {
  padding: 0.42em 1.01em 0.38em 1.01em;
  font-size: 1rem;
  color: var(--text, #eef2fa);
}
.project-badge-list {
  margin: 0.18em 1em 0.30em 1em;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.33em 0.70em;
}
.project-badge {
  background: var(--badge, #32395c);
  color: var(--badge-txt, #e6e6e6);
  padding: 0.19em 1.09em;
  border-radius: 12px;
  font-size: 0.99rem;
  font-weight: 500;
}
.project-divider {
  border: none;
  border-top: 1.2px dashed var(--badge, #32395c);
  margin: 0.35em 10% 0.55em 10%;
}
@media (max-width: 600px) {
  .featured-projects-grid { grid-template-columns: 1fr;}
}

section > .container > h2, section > .container > p {
  text-align: center;
}

/* =================== SLIM STICKY FOOTER =================== */
.site-footer {
  background: var(--nav, #212336);
  color: #eee;
  padding: 0.32rem 0 0.20rem 0;
  text-align: center;
  font-size: 0.97rem;
  width: 100vw;
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 100;
  line-height: 1.4;
}
.site-footer a { color: var(--accent, #5e99ff); margin: 0 0.5rem; font-size: 1.13rem;}
