/* =======================
   Core Layout
   ======================= */
:root {
  --primary-color: #212529;
  --secondary-color: #adb5bd;
  --dark-text: #2c3e50;
}
body {
  overflow: auto; /* Prevent the whole page from scrolling */
  scroll-behavior: smooth;
  min-height: 100vh;
  flex-direction: column;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark-text);
  background-color: #000;
}

.navbar-brand {
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
}

.page-body {
  display: flex;
  flex: 1; /* Allow this container to grow and fill available space */
  min-height: calc(100vh-60px);
}
.page-body > aside {
  width: 250px;
  flex-shrink: 0;
  background-color: var(--primary-color); /* Dark gray */
  color: white;
  padding: 15px;
  position: fixed;
  overflow-y: auto;
  z-index: 1000;
  box-sizing: border-box;
  height: 85vh;
}

.content-wrapper {
  flex: 1; /* Allow the content to grow and fill available space */
  height: calc(100vh - 60px);
  margin-left: 250px;
  overflow-y: auto;
  padding: 15px;
}

/* =======================
   Sidebar Widgets Styling (Same as before, for looks)
   ======================= */
.sidebar-widget {
  margin-bottom: 25px;
}

.sidebar-widget h4 {
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #dee2e6;
  font-size: 1.1rem;
  font-weight: 600;
}

.sidebar-widget ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.sidebar-widget ul li a {
  text-decoration: none;
  color: #ffffff;
  display: block;
  padding: 5px 0;
}

.sidebar-widget ul li a:hover {
  text-decoration: underline;
}

.category-list span {
  float: right;
  /* background-color: #e9ecef; */
  border-radius: 5px;
  padding: 2px 8px;
  font-size: 0.8em;
}

.recent-posts small {
  display: block;
  color: #000;
  font-size: 0.8em;
  margin-top: 2px;
}

.tags .tag {
  display: inline-block;
  background-color: #000;
  color: white;
  padding: 5px 10px;
  border-radius: 15px;
  margin-right: 5px;
  margin-bottom: 5px;
  font-size: 0.9em;
  text-decoration: none;
  transition: background-color 0.2s;
}

.tags .tag:hover {
  background-color: #000;
}

a {
  color: #000;
}

/* Global pagination secondary styling */
.pagination.pagination-secondary .page-link {
  color: #000;
  border-color: #dee2e6;
}

.pagination.pagination-secondary .page-link:hover {
  color: #495057;
  background-color: #e9ecef;
  border-color: #dee2e6;
}

.pagination.pagination-secondary .page-item.active .page-link {
  background-color: #000;
  border-color: #000;
  color: white;
}

.pagination.pagination-secondary .page-item.disabled .page-link {
  color: #adb5bd;
  background-color: #fff;
  border-color: #dee2e6;
}

footer {
  background-color: var(--primary-color);
  color: white;
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 1001;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

footer a {
  color: #3498db;

  transition: color 0.3s ease;
}

/* Image Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
  margin: 2rem 0;
}
.gallery figure {
  margin: 0;
}
.gallery img {
  width: 100%;
  height: auto;
  display: block;
}
.gallery figcaption {
  font-size: 0.9em;
  text-align: center;
  padding: 5px;
}

.about-container {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  /* margin: 2rem auto;  */
  max-width: 1200px;
}

.profile-header {
  background: var(--primary-color);
  color: white;
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
}

.profile-image {
  /* width: 150px;
            height: 150px; */
  /* border-radius: 50%;
            border: 5px solid white; */
  margin: 0 auto 1.5rem;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--secondary-color);
}

.name-title h1 {
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 2.5rem;
}

.name-title .lead {
  font-size: 1.4rem;
  opacity: 0.9;
  font-weight: 300;
}

.social-links {
  margin-top: 1.5rem;
}

.social-links a {
  color: white;
  font-size: 1.5rem;
  margin: 0 0.5rem;
  transition: transform 0.3s ease;
}

.social-links a:hover {
  transform: translateY(-3px);
  color: var(--light-bg);
}

.content-section {
  padding: 3rem 2rem;
}

.section-title {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--secondary-color);
  border-radius: 2px;
}

.timeline-section {
  position: relative;
  padding-left: 2rem;
}

.timeline-section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--secondary-color);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  padding-left: 2rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.4rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-color);
  border: 3px solid white;
  box-shadow: 0 0 0 3px var(--secondary-color);
}

.skill-badge {
  background: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  margin: 0.3rem;
  display: inline-block;
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.skill-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.tech-category {
  margin-bottom: 2rem;
}

.category-title {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.blog-highlights {
  background: var(--light-bg);
  padding: 2rem;
  border-radius: 15px;
  margin-top: 2rem;
}

.highlight-item {
  padding: 1rem;
  border-left: 4px solid var(--secondary-color);
  background: white;
  margin-bottom: 1rem;
  border-radius: 0 8px 8px 0;
  transition: transform 0.3s ease;
}

.highlight-item:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stats-card {
  background: var(--primary-color);
  color: white;
  padding: 2rem 1rem;
  border-radius: 15px;
  text-align: center;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.stats-card:hover {
  transform: translateY(-5px);
}

.stats-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stats-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .profile-header {
    padding: 2rem 1rem;
  }

  .name-title h1 {
    font-size: 2rem;
  }

  .content-section {
    padding: 2rem 1rem;
  }

  .timeline-section {
    padding-left: 1rem;
  }
}
