
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-Regular.woff2') format('woff2'),
  url('fonts/Inter-Regular.woff') format('woff');
}

@font-face {
  font-family: 'Inter-light';
  src: url('fonts/Inter-Light.woff2') format('woff2'),
  url('fonts/Inter-Light.woff') format('woff');
}

@font-face {
  font-family: 'Inter-medium';
  src: url('fonts/Inter-Medium.woff2') format('woff2'),
  url('fonts/Inter-Medium.woff') format('woff');
}

@font-face {
  font-family: 'Inter-thin';
  src: url('fonts/Inter-Thin.woff2') format('woff2'),
  url('fonts/Inter-Thin.woff') format('woff');
}

@font-face {
  font-family: 'Inter-bold';
  src: url('fonts/Inter-Bold.woff2') format('woff2'),
  url('fonts/Inter-Bold.woff') format('woff');
}


@font-face {
  font-family: 'Inter-semi-bold';
  src: url('fonts/Inter-SemiBold.woff2') format('woff2'),
  url('fonts/Inter-SemiBold.woff') format('woff');
}



body {
  font-family: 'Inter-semi-bold', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: #000;
  font-size: 14px;
}

header {
  background-color: #003366; /* Blue background color */
  color: white;
  text-align: center; /* Centers the inline content like text and inline-block elements */
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.header-content {
  display: inline-block; /* Allows block-level structure while being centered by text-align */
  position: relative; /* For the stacking context */
  width:100%;
}

#logo {
  display: block; /* Makes the image a block-level element to take the width properties */
  max-width: 400px; /* Ensures the image is responsive and fits its container */
  height: auto; /* Keeps the image aspect ratio */
  margin: 0 auto; /* Centers the image */
}

#intro-line {
  font-family: 'Inter-thin', sans-serif;
  margin-top: 20px; /* Adds space between the logo and the intro line */
  font-size: 1.4em;
  text-align: center;
  margin: 20px 0;
  color: #fff;
}

header:before {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  right: 0; /* Ensures that the pseudo-element does not extend beyond the header */
  bottom: 0;
  background: url('img/dots.png') repeat; /* The path to your dots image */
  opacity: 0.5; /* Adjust the opacity to make the pattern more or less visible */
  z-index: -1; /* Positions the pseudo-element behind the header content */
}


#projects {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  background-color: #e8e8e8; /* Light background for the projects section */
  padding-bottom: 140px; /* Added padding between projects and footer */
  padding-top: 140px; /* Added padding between projects and footer */

}

.project {
  flex-basis: 22%; /* Adjust width of the project */
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #f4f4f4; /* Light grey background */
  border-radius: 5px; /* Rounded corners for the project divs */
  overflow: hidden; /* Ensures the images don't overflow the div boundaries */
  box-shadow: 0 14px 18px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px; /* Add some space at the bottom of each project */
}

#projects a {  /* This targets the anchor tags inside your projects section */
  text-decoration: none;  /* Removes the underline from links */
  color: inherit;  /* Keeps the text color the same as your .project text color */
  display: flex;  /* Makes the link block-level to contain the .project div */
}

#projects a:hover {  /* This targets the .project div on hover of the anchor tag */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);  /* Adds a shadow to lift the project div */
  transform: translateY(-2px);  /* Optional: raises the div slightly to give a "lift" effect */
}


.project img {
  width: 100%;
  height: auto;
  display: block; /* Remove any extra space beneath the image */
}

.project p {
  font-size: 1rem;
  padding: 10px;
  margin: 0;
  text-align: center;
  flex-grow: 1; /* Makes the paragraph expand to fill the container */
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px; /* Fixed height for vertical alignment */
}

footer {
  font-family: 'Inter-light', sans-serif;
  background-color: #000;
  color: lightgray;
  text-align: center;
  width: 100%;
  padding-top: 90px;
  padding-bottom: 90px;
}

footer a {
  color: lightgray;
  text-decoration: none;
}

@media (max-width: 768px) {
  #logo {
    max-width: 80%; /* Adjust for mobile */
  }

  #projects {
    flex-direction: column;
    align-items: center;
  }

  .project {
    width: 80%;
  }

  .project p {
    height: auto; /* Allow the text to determine the height on mobile */
  }
}
