* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background-color: #1f1f1f;
  color: #e8e8e8;
  display: flex;
  justify-content: center;
  padding: 20px;
}

.container {
  width: 90%;
}

.search-results {
  width: 90%;
  margin-right: 20px;
}

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

header {
  display: flex;
  align-items: center;
}

header h1 {
  margin-right: 20px;
  color: #99c3ff;
}

header input {
  width: 30rem;
  padding: 10px;
  background-color: #303134;
  border: none;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  color: #e8e8e8;
}

header img {
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
  height: 40px;
}

.account-icon img {
  width: 40px;
  height: 40px;
}

.header-items a {
  color: #9aa0a6;
}

hr {
  color: #68696a;
  background-color: #68696a;
  border: #68696a;
  height: 0.5px;
}

.results {
  background-color: #1F1F1F;
  padding: 20px;
  border-radius: 5px;
}

.result a {
  color: #99c3ff;
  text-decoration: none;
}

.result p {
  margin: 10px 0;
}

.title {
  font-weight: bold;
  color: #e8e8e8;
}

.work-experience {
  margin-top: 20px;
}

.work-experience h2 {
  color: #99c3ff;
  margin-bottom: 10px;
}

.job {
  margin-bottom: 20px;
}

.job h3 {
  color: #e8e8e8;
  margin-bottom: 5px;
}

.job p {
  margin-bottom: 10px;
}

.job ul {
  list-style-type: disc;
  padding-left: 20px;
}

.sidebar {
  background-color: #1F1F1F;
  padding: 20px;
  border-radius: 5px;
}

.sidebar h2,
.sidebar h3 {
  color: #99c3ff;
  margin-bottom: 10px;
}

.profile {
  border: solid #68696a 1px;
  padding: 20px;
  border-radius: 10px;
  padding-right: 40px;
}

.profile a {
  color: #e8e8e8;
}

.profile a:visited {
  color: #e8e8e8;
  background-color: transparent;
  text-decoration: none;
}

.profile a:hover {
  color: #e8e8e8;
  background-color: transparent;
  text-decoration: none;
}

.profile a:active {
  color: #e8e8e8;
  background-color: transparent;
  text-decoration: none;
}

.profile p {
  margin: 5px 0;
}

.related-searches,
.skills,
.academic-projects,
.achievements {
  margin-top: 20px;
}

.related-searches ul,
.skills ul,
.academic-projects ul,
.achievements ul {
  padding-left: 20px;
}

.skills li {
  margin: 5px 0;
  list-style-type: none;
  margin: 10px;
  background-color: #1F1F1F;
  border-radius: 5px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.skills li:hover {
  box-shadow: 0 0 20px 5px rgba(225, 225, 225, 0.7);
  transform: translate(-2px, -2px);
}

.skills img {
  height: 50px;
  width: 50px;
  border-radius: 10px;
  margin: 10px;
}

.academic-projects a:visited {
  color: #e8e8e8;
  background-color: transparent;
  text-decoration: none;
}

.academic-projects a:hover {
  color: #e8e8e8;
  background-color: transparent;
  text-decoration: none;
}

.academic-projects a:active {
  color: #e8e8e8;
  background-color: transparent;
  text-decoration: none;
}

.spinner {
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-left-color: #99c3ff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
  display: none;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#results,
#sidebar {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

#infoLabel {
  position: fixed;
  display: none;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
  pointer-events: none;
  z-index: 1000;
  transition: all 0.2s ease;
}

#nav-menu {
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.hidden {
  display: none;
}

#nav-menu {
  position: absolute;
  top: 60px;
  right: 20px;
  background-color: rgba(31, 31, 31, 0.9);
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  width: 150px;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#nav-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#nav-menu li {
  margin: 10px 0;
}

#nav-menu a {
  color: #e8e8e8;
  text-decoration: none;
  padding: 8px 10px;
  display: block;
  border-radius: 5px;
  transition: background-color 0.3s, transform 0.2s ease;
}

#nav-menu a:hover {
  background-color: rgba(153, 195, 255, 0.2);
  transform: scale(1.05);
}

html {
  scroll-behavior: smooth;
}

header ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: space-around;
}

header li {
  display: inline;
}

header a {
  text-decoration: none;
  color: #333;
  font-size: 16px;
  padding: 10px 20px;
  transition: color 0.3s ease;
}

header a:hover {
  color: #007bff;
}

.header-items a {
  text-decoration: none;
}

@media screen and (max-width: 768px) {
  .container {
    width: 100%;
    padding: 10px;
  }

  .search-results {
    width: 100%; /* Ensures full width in mobile view */
    margin-right: 0;
    flex-direction: column;
  }

  .header-container {
    flex-direction: column;
    align-items: center;
  }

  .account-icon {
    display: none;
  }

  .header-items {
    display: none;
  }

  header {
    flex-direction: column;
    width: 100%;
  }

  header h1 {
    margin-right: 0;
    margin-bottom: 10px;
  }

  header input {
    width: 100%;
    max-width: 100%;
  }

  #hamburger-menu {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
  }

  #nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(31, 31, 31, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }

  #nav-menu a {
    font-size: 1.5rem;
    margin: 15px 0;
    text-align: center;
  }

  .skills {
    display: none;
  }

  .sidebar .profile p {
    display: none;
  }

  .sidebar {
    width: 100%;
    margin-top: 20px;
  }

  .logostack1, .logostack2 {
    flex-wrap: wrap;
    justify-content: center;
  }

  .job {
    text-align: center;
  }

  .job h3 {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .job img {
    margin-bottom: 10px;
  }

  .profile-icons {
    justify-content: center;
  }

  .profile-icons a {
    margin: 0 10px;
  }

  body {
    padding: 10px;
  }

  h1, h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  .profile {
    padding: 10px;
  }

  .profile p {
    font-size: 0.9rem;
  }
}
@media screen and (max-width: 768px) {
  #nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent; /* Removed grey overlay */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }
}

@media screen and (max-width: 768px) {
  .container {
    width: 100%;
    padding: 10px;
  }

  .search-results {
    width: 100%;
    margin-right: 0;
    flex-direction: column;
  }

  /* Remove hamburger menu's floating window */
  #nav-menu {
    display: none !important;
  }

  /* Remove hamburger menu button */
  #hamburger-menu {
    display: none !important;
  }

  /* Remove entire sidebar/profile section */
  .sidebar {
    display: none !important;
  }

  .header-container {
    flex-direction: column;
    align-items: center;
  }

  .account-icon {
    display: none;
  }

  .header-items {
    display: none;
  }

  header {
    flex-direction: column;
    width: 100%;
  }

  header h1 {
    margin-right: 0;
    margin-bottom: 10px;
  }

  header input {
    width: 100%;
    max-width: 100%;
  }

  body {
    padding: 10px;
  }

  h1, h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.2rem;
  }
}
@media screen and (max-width: 768px) {
  .container {
    width: 100%;
    padding: 10px;
  }

  .search-results {
    width: 100%;
    margin-right: 0;
    flex-direction: column;
  }


  /* Adjust job experience to left-aligned */
  .job {
    text-align: left; /* Changed from center */
  }

  .job h3 {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align to start */
  }

  .job img {
    margin-bottom: 10px;
    align-self: flex-start; /* Align image to start */
  }

  /* Remove hamburger menu and sidebar */
  #nav-menu, #hamburger-menu, .sidebar {
    display: none !important;
  }

  header {
    flex-direction: column;
    width: 100%;
  }

  header h1 {
    margin-right: 0;
    margin-bottom: 10px;
  }

  body {
    padding: 10px;
  }

  h1, h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.2rem;
  }
}
@media screen and (max-width: 768px) {
  .job {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .job h3 {
    display: flex;
    flex-direction: row; /* Horizontal alignment */
    align-items: center; /* Vertically center logo and text */
    margin-bottom: 10px;
  }

  .job h3 img {
    margin-right: 10px; /* Space between logo and text */
    width: 50px; /* Consistent logo size */
    height: 50px; /* Consistent logo size */
    object-fit: contain; /* Ensure logo maintains aspect ratio */
  }

  .logostack1, .logostack2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* Align to left */
    align-items: center;
    width: 100%;
  }

  .job img {
    margin-bottom: 0; /* Remove bottom margin */
  }
}