/* General Body Styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background: #f0f2f5;
  color: #333;
  line-height: 1.6;
  padding-top: 60px; /* Space for fixed navbar */
}

/* Navbar Styles */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #2c3e50;
  color: white;
  padding: 10px 0; /* Removing left/right padding here */
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.navbar-brand {
  font-size: 1.6em;
  font-weight: 700;
  color: white;
  margin-left: 30px; /* Pushing the brand away from the left edge */
}

.navbar-nav {
  list-style: none;
  margin: 0 30px 0 0; /* Added a right margin to create space */
  padding: 0;
  display: flex;
  gap: 30px;
}

.navbar-nav li {
  margin-left: 0;
}

.navbar-nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1em;
  padding: 5px 0;
  transition: color 0.3s ease, border-bottom 0.3s ease;
}

.navbar-nav a:hover {
  color: #3498db;
  border-bottom: 2px solid #3498db;
  text-decoration: none;
}
/* Main Container for Layout */
.container {
  display: flex;
  max-width: 1200px; /* Max width for content */
  margin: 20px auto; /* Center the container */
  gap: 30px; /* Space between sidebar and main content */
}

/* Sidebar Styles */
.sidebar {
  flex: 0 0 300px; /* Fixed width sidebar */
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
  text-align: center;
  position: sticky; /* Makes sidebar stick while scrolling main content */
  top: 80px; /* Adjust based on navbar height + desired top margin */
  height: fit-content; /* Only take up necessary height */
}

.sidebar .profile-photo {
  width: 150px; /* Smaller photo in sidebar */
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #ecf0f1;
  margin-bottom: 15px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.sidebar h2 {
  font-size: 2em;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 5px;
}

.sidebar .role {
  font-size: 1.1em;
  color: #555;
  margin-bottom: 30px;
}

.sidebar-contact {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.sidebar-contact h3 {
  font-size: 1.3em;
  color: #34495e;
  margin-bottom: 15px;
}

.sidebar-contact p {
  margin-bottom: 10px;
}

/* Main Content Styles */
.main-content {
  flex: 1; /* Takes up remaining space */
}

/* Section Styling (from previous steps, adapted) */
section {
  padding: 30px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
  margin-bottom: 25px; /* Space between sections */
}

section h2 {
  border-bottom: 2px solid #aeb6bf;
  padding-bottom: 15px;
  margin-bottom: 20px;
  color: #2c3e50;
  font-size: 2em; /* Slightly larger for main content headings */
  font-weight: 600;
}

ul {
  list-style: none;
  padding: 0;
}

ul li {
  margin: 12px 0;
}

a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #2980b9;
  text-decoration: underline;
}

/* Skills Section Styling */
.skills-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 25px;
}

.skill-category {
  flex: 1 1 280px;
  background: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  border: 1px solid #e0e0e0;
}

.skill-category h3 {
  margin-top: 0;
  color: #34495e;
  font-size: 1.25em;
  border-bottom: 1px dashed #d0d0d0;
  padding-bottom: 8px;
  margin-bottom: 15px;
}

.skill-category ul {
  padding-left: 20px;
  list-style-type: '👉 ';
}

/* Project Categories Styling */
.project-category {
  margin-bottom: 30px;
}

.project-category h3 {
  margin: 0 0 15px 0;
  font-size: 1.5em;
  color: #34495e;
  border-left: 5px solid #3498db;
  padding-left: 15px;
}

.project-category ul li a {
  font-weight: 500;
}

/* Download CV button styling (now in sidebar) */
.download-cv a {
  display: inline-block;
  background-color: #28a745;
  color: white;
  padding: 12px 25px;
  border-radius: 8px;
  margin-top: 20px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.download-cv a:hover {
  background-color: #218838;
  text-decoration: none;
  transform: translateY(-2px);
}

/* Footer Styling */
.site-footer {
  text-align: center;
  padding: 25px;
  background: #2c3e50;
  color: #ecf0f1;
  margin-top: 25px;
}

.site-footer p {
  margin: 0;
  font-size: 0.9em;
}

/* Responsive Adjustments */
@media (max-width: 900px) {
  .container {
    flex-direction: column; /* Stack sidebar and main content vertically */
    margin: 20px; /* Adjust margin for smaller screens */
  }

  .sidebar {
    position: static; /* No longer sticky */
    width: auto; /* Allow sidebar to take full width */
    margin-bottom: 20px; /* Space between sidebar and main content */
  }

  .navbar-nav {
    display: none; /* Hide nav links on very small screens, could add a hamburger menu */
  }

  .navbar {
    justify-content: center; /* Center brand if no nav links */
  }

  body {
    padding-top: 0; /* No fixed navbar padding */
  }
}