:root {
  --primary: #d56e00;
  --primary-d: #e1a867;
  --dark: #2c1900;
  --light-bg: #f5f0e6;
  --white: #ffffff;
  --text: #444b5a;
  --text-light: #6c757d;
  --border: #e2e8f0;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Nunito", sans-serif;
  color: var(--text);
  background: var(--light-bg) url("../bg-pattern.png") repeat;
  background-size: 60px 60px;
  font-size: 15px;
  line-height: 1.7;
}
a {
  text-decoration: none;
  color: var(--primary);
  transition: color 0.25s;
}
a:hover {
  color: var(--primary-d);
}
#app {
  display: flex;
  min-height: 100vh;
}
#sidebar {
  width: 280px;
  min-width: 280px;
  background: var(--dark);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 1.5rem 2rem;
  overflow-y: auto;
  z-index: 100;
}
.avatar-circuit {
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.avatar-circuit img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.sidebar-name {
  font-family: "Raleway", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  text-align: center;
  margin-top: 1rem;
  line-height: 1.4;
}
nav#nav {
  width: 100%;
  margin-top: 2.5rem;
}
nav#nav ul {
  list-style: none;
  width: 100%;
}
nav#nav ul li a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.2rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 0.4rem;
  transition: background 0.25s, color 0.25s;
  position: relative;
  margin-bottom: 2px;
}
nav#nav ul li a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 3px;
  background: var(--primary);
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.25s;
}
nav#nav ul li a:hover,
nav#nav ul li a.active {
  background: rgba(213, 110, 0, 0.1);
  color: var(--primary);
}
nav#nav ul li a:hover::before,
nav#nav ul li a.active::before {
  opacity: 1;
}
.nav-icon {
  font-size: 1rem;
  width: 20px;
  text-align: center;
}
#main {
  margin-left: 280px;
  flex: 1;
  min-height: 100vh;
}
.section {
  padding: 4rem 3.5rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.section-title {
  font-family: "Raleway", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.35rem;
  position: relative;
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}
.about-grid {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2.5rem;
}
.about-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 4px solid var(--primary);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 8px 28px rgba(213,110,0,0.18);
}
.about-profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-role {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.about-bio {
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}
.btn-outline {
  display: inline-block;
  padding: 0.65rem 1.8rem;
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: 2rem;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  transition: all 0.25s;
}
.btn-outline:hover {
  background: var(--primary);
  color: white;
}
.skills-title {
  font-family: "Raleway", sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--dark);
  margin: 3rem 0 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}
.skills-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.skill-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.9rem 1rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 0.75rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: border-color 0.25s, color 0.25s, transform 0.25s;
  min-width: 82px;
  text-align: center;
  cursor: default;
}
.skill-badge:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
}
.skill-badge .sk-icon {
  font-size: 1.7rem;
}
footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
footer span {
  color: var(--primary);
}

/* ─── Tablet (769px – 1024px) ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  #sidebar {
    width: 240px;
    min-width: 240px;
  }
  #main {
    margin-left: 240px;
  }
  .section {
    padding: 3rem 2.5rem;
  }
}

/* ─── Small tablet / large phone landscape (651px – 768px) ──────────────── */
@media (max-width: 768px) {
  #sidebar {
    width: 200px;
    min-width: 200px;
  }
  #main {
    margin-left: 200px;
  }
  .section {
    padding: 2.5rem 1.8rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ─── Mobile (≤ 650px) — sidebar hidden, topbar shown ───────────────────── */
@media (max-width: 650px) {
  #sidebar {
    display: none !important;
  }
  #main {
    margin-left: 0 !important;
    padding-top: 56px !important;
  }
  .section {
    padding: 1.8rem 1rem !important;
    min-height: calc(100vh - 56px) !important;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
  }
  .about-photo {
    width: 140px;
    height: 140px;
    margin: 0 auto;
  }
  .skills-grid {
    gap: 0.6rem;
  }
  .skill-badge {
    min-width: 70px;
    padding: 0.6rem 0.7rem;
  }
}
