/* =============================
   Reset and Base
============================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f7f9fc;
  color: #222;
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.container {
  display: flex;
  width: 100%;
}

/* =============================
   Sidebar
============================= */
.sidebar {
  width: 250px;
  background-color: #0e141b;  /* Dark premium */
  color: #fff;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.sidebar h2 {
  font-size: 1.4rem;
  color: #9ab3ff;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
}

/* Sidebar Menu Links */
.sidebar nav ul {
  list-style: none;
  padding: 0;
}

.sidebar nav ul li {
  margin: 15px 0;
}

.sidebar nav ul li a {
  color: #cfd6e4;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  display: block;
  padding: 10px 15px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.sidebar nav ul li a.active,
.sidebar nav ul li a:hover {
  background: #1e2a3b;
  color: #9ab3ff;
  font-weight: 600;
  transform: translateX(5px);
  box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}

/* Visitor count */
.visitor {
  font-size: 0.9rem;
  border-top: 1px solid #2a2a2a;
  padding-top: 20px;
  color: #bbb;
}

/* =============================
   Content
============================= */
.content {
  flex: 1;
  padding: 60px;
  overflow-y: auto;
  background-color: #f7f9fc;
  transition: all 0.4s ease-in-out;
  line-height: 1.6;
  color: #222;
}

/* Section fade-in */
.section {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.section.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* About section */
.about-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

#about h1 {
  font-size: 2.2rem;
  color: #0e141b;
}

#about p {
  font-size: 1rem;
  margin-bottom: 10px;
  color: #333;
}

#about a {
  color: #2a68ff;
  text-decoration: none;
}

#about a:hover {
  text-decoration: underline;
}

/* Mobile menu toggle button next to name */
.menu-toggle {
  background-color: #0e141b;
  color: #fff;
  border: none;
  font-size: 1.8rem;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.menu-toggle:hover {
  background-color: #1e2a3b;
}

/* Jobs / Work Experience */
.job {
  margin-bottom: 20px;
}

.job h3 {
  font-size: 1.3rem;
  color: #0e141b;
  margin-bottom: 5px;
}

.job h3 span {
  color: #2a68ff;
}

.job p strong {
  display: block;
  font-weight: 600;
  color: #555;
  margin-bottom: 10px;
}

.job ul {
  list-style: none;
  margin-top: 10px;
  margin-bottom: 15px;
  padding-left: 0;
}

.job ul li {
  position: relative;
  padding-left: 15px;
  margin-bottom: 8px;
  line-height: 1.5;
  color: #333;
}

.job ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #2a68ff;
  font-weight: bold;
}

/* Section headings */
.section h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #0e141b;
  border-bottom: 2px solid #9ab3ff;
  padding-bottom: 5px;
}

/* Links inside sections */
.section a {
  color: #2a68ff;
  text-decoration: none;
}

.section a:hover {
  text-decoration: underline;
}

/* =============================
   Mobile / Responsive
============================= */
@media (max-width: 768px) {
  body {
    overflow: visible;
  }

  /* Hide the sidebar by default on mobile */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 250px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 998;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  /* Content padding on mobile */
  .content {
    padding: 20px;
  }
}
