/* There is collapsing margins behavior in CSS. When two vertical margins meet, they collapse into one, taking the larger of the two margins. */
/* 
SOL - 
1. Either use padding for one fo the elements
2. (or) Have a clearing element between them
*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Lato', sans-serif;
  color: #f9f6e0;
  line-height: 28px;
  background-color: #080808;
}

@font-face {
  font-family: 'MyCustomFont';
  src: url('fonts/Florsn39.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'MyCustomFont2';
  src: url('fonts/Florsn35.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

.note{
  font-style: italic;
  font-weight: 100;
}

section{
  padding: 2em 0;
}

.container {
  text-align: center;
}

h3, .key_head{
  padding-bottom: 1em;
}

.key_head{
  text-align: left;
}

.gray{
  color: #bababa;
  padding-bottom: 1em;
}

.project-title {
  font-family: 'MyCustomFont2', sans-serif;
  margin: 1em 0 2em;
  font-size: 2em;
  line-height: 60px;
}

.project-overview {
  display: flex;
  width: 100%;
  height: auto;
  margin: 20px 0;
  gap: 40px;
}

.image-container {
  flex: 1;
  height: 100%;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.description {
  flex: 1;
  padding: 20px;
  display: flex;
  text-align: left;
  justify-content: center; /* So teh paragraph is centered to the image */
  flex-direction: column;
  
  p{
    padding-right: 4em;
  }
}

.key{
  display: flex;
  justify-content: center; /* Center align the content horizontally */
  margin: 20px auto; /* Auto margin to center the section */
  width: 80%; /* Limit the width */
  flex-direction: column;

  ul{
    padding-left: 3em;
    text-align: left;
  }
}

.case-studies {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.card {
  padding: 10px;
  border-radius: 8px;
  text-align: center;
}

.card img {
  max-width: 400px;
  height: auto;
  border-radius: 10px;
}

.card h2 {
  margin: 10px 0;
  font-weight: 400;
}

.card a {
  display: inline-block;
  margin-top: 10px;
  text-decoration: underline;
  color: #f9f6e0;
}

.card a:hover {
  color: white;
}

.second-part{
  color: #bababa;
}

.first-part{
  font-size: 22px;
}

.footer{
  padding-top: 20px;
  padding-bottom: 20px;
}

.contact-section a {
  padding-right: 10px;
}

.contact-section a img{
  width: 30px;
  height: 30px;
}

.contact-section {
  text-align: center;
  margin-top: 50px;
}

.contact-section h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.contact-section p {
  font-size: 16px;
  margin: 30px;
}

.last{
  margin-bottom: 0px !important;
  color: #bababa;
}

nav {
  background-color: #333;
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav a {
  font-size: 1rem;
  color: #bababa;
  text-decoration: none;
  transition: color 0.3s ease;
}

nav a:hover {
  color: white;
}

nav a:active {
  color: #aaa;
}


.navbar {
  position: sticky;
  background-color: rgba(
    255,
    255,
    255,
    0.1
  ); /* Adjust transparency as needed */
  backdrop-filter: blur(10px); /* Apply backdrop blur for the glass effect */
  -webkit-backdrop-filter: blur(10px);
  padding: 1em 2em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000; /* Ensure the navbar stays on top of other content */
  transition: background-color 0.3s ease; /* Add smooth transition for background color change */
}

.logo {
  img{
    width: 30px;
  }
}


.navbar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  margin-left: auto; /* Move the navbar-nav items to the right */
}

.nav-item {
  margin-left: 20px;
}

@media (max-width: 1140px) {
  .project-overview {
      flex-direction: column; /* Stack the image and text vertically */
  }

  .image-container, .description {
      min-width: 100%; /* Ensure they take full width */
  }
}