/* General reset */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

/* Body styling */
body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

/* Header and navigation styling */
header {
  background-color: #03080D;
}

li {
  list-style: none;
}

a {
  color: white;
  text-decoration: none;
}

.navbar {
  min-height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 24px;
  text-align: center;
  list-style: none;
  z-index: 1;
}

.nav-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
}

.nav-link {
  transition: color 0.7s ease;
}

.nav-link:hover {
  color: dodgerblue;
}

/* Hamburger menu for smaller screens */
.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: white;
  transition: all 0.3s ease-in-out;
}

/* Main content styling */
main {
  display: flex;
  flex-direction: row;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

aside {
  background-color: white;
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.image img {
  max-width: 100%;
  height: auto;
  border-radius: 50%;
  width: 200px;
  height: 200px;
  margin-bottom: 2px;
}

.icons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 5px 0;
}

.icons a {
  text-decoration: none;
  font-size: 24px;
}

.icons img {
  width: 24px;
  height: 24px;
}

.resume-link {
  text-align: center;
  margin-top: 4px;
}

.resume-link a {
  text-decoration: none;
  color: black;
  font-weight: bold;
}

.content {
  flex: 3;
  background-color: white;
  padding: 20px;
  margin-left: 20px;
}

.content p {
  text-align: justify;
}

.banner {
  width: 100%;
  text-align: center;
  overflow: hidden;
}

.banner img {
  width: 100%;
  height: auto;
  max-width: 100%;
}

/* Media queries for mobile devices */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: #03080D;
    width: 100%;
    text-align: center;
    transition: left 0.3s;
    z-index: 999;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-item {
    margin: 16px 0;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
  }

  main {
    flex-direction: column;
    padding: 10px;
  }

  aside {
    width: 100%;
    margin-bottom: 20px;
  }

  .content {
    margin-left: 0;
  }

  .image img {
    width: 150px;
    height: 150px;
  }

  .icons img {
    width: 20px;
    height: 20px;
  }

  .content h2 {
    text-align: center;
  }

  .content p {
    text-align: left;
  }

  .banner img {
    width: 100%;
    height: auto;
  }
}

/* Headings styling */
h1 {
  color: #473c38;
  font-size: x-large;
  font-family: Arial, Helvetica, sans-serif;
}

h2 {
  color: #4783a5;
  font-size: large;
  font-family: Arial, Helvetica, sans-serif;
}

h3 {
  color: #1d3851;
  font-size: medium;
  font-family: Arial, Helvetica, sans-serif;
}

h4 {
  color: #78888f;
  font-size: large;
  font-family: "Lucida Grande";
  font-style: italic;
  text-align: center;
}

h5 {
  color: #fbeec1;
  font-size: x-small;
  font-family: Arial, Helvetica, sans-serif;
}

h6 {
  color: black;
  font-size: xx-small;
  font-family: Arial, Helvetica, sans-serif;
}

/* Paragraph styling */
p {
  color: black;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

/* Footer styling */
footer {
  text-align: center;
  padding: 3px;
  background-color: #03080d;
  color: white;
}

/* Banner styling */
.banner {
  width: 100%;
}

.banner img {
  width: 100%;
  object-fit: cover;
  z-index: 2;
}

/* Centered links styling */
.center-links {
  display: flex;
  justify-content: center;
  align-items: center;
}

.center-links a {
  display: inline-block;
  margin: 0 1rem;
  color: #473c38;
  text-decoration: none;
  font-weight: lighter;
  font-size: 1.2rem;
}

/* Iframe styling */
.iframe {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* Wrapper styling */
.wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1em;
}

/* Individual title-wrapper styling */
.title-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  height: 100%;
  min-height: 400px;
  padding: 1em;
  background: #eee;
  position: relative;
  /* Add relative positioning */
}

/* Ensure h2 and h4 align properly */
.title-wrapper h2,
.title-wrapper h4 {
  margin-bottom: 0.5em;
  width: 100%;
  text-align: center;
}

/* Paragraph and link styling */
.title-wrapper p {
  margin-bottom: 1em;
  text-align: left;
  width: 100%;
}

.title-wrapper a {
  margin-top: 1em;
  width: 100%;
  text-align: left;
}

/* Spacer div to push the image to the bottom */
.title-wrapper .spacer {
  flex-grow: 1;
}

/* Image styling */
.title-wrapper img {
  max-width: 100%;
  width: 300px;
  height: 300px;
  object-fit: contain;
  align-self: center;
}

/* Grid background colors for alternating items */
.wrapper>div:nth-child(odd) {
  background: #ccc;
}

.wrapper>div:nth-child(even) {
  background-color: #f0f0f0;
}

/* Container styling */
.container {
  display: flex;
  background-color: #b3d2e4;
  padding: 20px;
  max-width: 75%;
  margin: 0 auto;
}

.image {
  flex: 0 0 auto;
  margin-right: 20px;
}

.image img {
  max-width: 100%;
  height: auto;
}

.content {
  flex: 1 1 auto;
}

.content h2 {
  font-size: 1.5rem;
  margin-top: 0;
}

.content p {
  line-height: 1.6;
}

/* Counter number styling */
.counter-number {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
  color: #dbdbdc;
  font-size: 10px;
}

/* Link styling */
#myLink {
  color: #099ff5;
  font-weight: bold;
}

/* Table styling left alignment */
.left {
  text-align: left;
}