
.grid {
  display: flex;
  flex-wrap: wrap; /* Allows wrapping to the next row */
  gap: 20px; /* Space between cards */
  justify-content: space-between; /* Distribute cards evenly */
}

.button-link {
  display: inline-block;
  padding: 10px 20px;
  background-color: #007bff; /* Blue background */
  color: #fff; /* White text */
  text-decoration: none; /* Remove underline */
  border-radius: 5px; /* Rounded corners */
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s ease;
  margin-bottom: 40px; /* Add some space below the button */
}

.button-link:hover {
  background-color: #0056b3; /* Darker blue on hover */
}

.card {
  flex: 1 1 calc(20% - 20px); /* Adjust width for 3 cards per row */
  max-width: calc(20% - 20px); /* Prevent cards from growing too large */
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden; /* Hide overflowing content */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  height: 300px; /* Set a fixed height for all cards */
  display: flex;
  flex-direction: column; /* Ensure content stacks vertically */
  justify-content: space-between; /* Distribute content evenly */
  color: black;
  }

.card img {
    width: 100%;
    height: 250px;
    object-fit: cover; /* Ensure the image covers the area without distortion */
    object-position: center; /* Center the image within the card */
  }

.filters {
    margin-bottom: 20px;
  }
  
  .filter-btn {
    padding: 8px 14px;
    margin: 5px;
    border: 1px solid #ddd;
    background: yellow;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.2s ease;
  }
  
  .filter-btn:hover {
    background: #f0f0f0;
  }
  
  .filter-btn.active {
    background: black;
    color: white;
    border-color: black;
  }

 .logo-container {
    position: absolute; /* Position it relative to the page */
    top: 20px; /* Distance from the top of the page */
    left: 50%; /* Start positioning from the center */
    transform: translateX(-50%); /* Center the logo horizontally */
    text-align: right; /* Ensure the logo is on the right */
    margin-top: 40px; /* Add some space above the logo */
    margin-bottom: 40px; /* Add some space below the logo */
 }
  
  .logo {
    width: 300px; /* Adjust the size of the logo */
    height: auto; /* Maintain aspect ratio */
  }

  body {
      font-family: 'Space Grotesk', sans-serif;
      font-weight: 400; /* Regular */
      padding: 20px;
  }
  
  h1 {
    margin-top: 140px; /* Add space above the heading to accommodate the logo */
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 1rem;
  }

  h2 {
    font-size: 2rem;
    font-weight: 500;
  }

  h3 {
    margin-top: 20px;
    font-weight: lighter;
  }

  a {
    text-decoration: none;
    color: inherit;
  }

  .card-link {
    text-decoration: none;
    color: inherit;
  }
  
  .filters {
    position: relative;
    z-index: 10;
  }
  
  .card:hover {
    transform: translateY(-4px);
  }

  .card-link {
    display: block;
  }

.gallery {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
}

.project-description {
  max-width: 680px;
  margin: 40px auto 60px;
  font-family: Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.75;
  color: #111;
  text-align: right;
}

.project-description p:first-of-type {
  font-size: 1.45rem;
}

.project-credits {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #ddd;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.credits-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.project-image,
.project-video {
    width: 90%;
    max-width: 800px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.project-image:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.project-audio {
    width: 100%;
    max-width: 500px;
}

.pdf-link {
    display: inline-block;
    padding: 12px 18px;
    background: black;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    width: fit-content;
}

.pdf-link:hover {
    opacity: 0.8;
}
  
.back-button {
  display: inline-block;
  padding: 10px 20px;
  margin: 20px 0;
  background-color: #007bff; /* Blue background */
  color: #fff; /* White text */
  text-decoration: none; /* Remove underline */
  border-radius: 5px; /* Rounded corners */
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s ease;
}
  
.back-button:hover {
  background-color: #0056b3; /* Darker blue on hover */
}

.back-button2 {
  display: inline-block;
  padding: 10px 20px;
  margin: 20px 0;
  background-color: #2596be; /* Blue background */
  color: #fff; /* White text */
  text-decoration: none; /* Remove underline */
  border-radius: 5px; /* Rounded corners */
  font-size: 25px;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s ease;
  margin-bottom: 40px; /* Add some space below the button */
}

.back-button2:hover {
  background-color: #2596be; /* Darker blue on hover */
}

.about-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;
}

.about-content {
  display: grid;
  grid-template-columns: minmax(0, 650px) 260px;
  gap: 80px;
  align-items: start;
}

.about-description {
  max-width: 650px;
  font-size: 1.05rem;
  line-height: 1.75;
}

.about-sidebar {
  font-size: 0.85rem;
  line-height: 1.5;
}

.contact-box {
  margin-bottom: 40px;
}

.contact-box a {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-decoration: none;
}

.sidebar-section {
  margin-bottom: 32px;
}

.sidebar-section h3,
.contact-box h3 {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.sidebar-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-section li {
  margin-bottom: 8px;
}

@media (max-width: 850px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.profile-photo img {
  width: 450px; /* Set a fixed width for the image */
  height: 450px; /* Automatically adjust the height to maintain aspect ratio */
  border-radius: 50%; /* Make the image circular */
  object-fit: cover; /* Ensure the image covers the area without distortion */
  display: block; /* Ensure the image behaves like a block element */
  margin: 0 auto; /* Center the image horizontally */
}

/* Media query for medium screens (tablets, 768px and up) */
/* Medium screens */
@media (max-width: 1024px) {
  .card {
    flex: 1 1 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
  }
}

/* Tablets */
@media (max-width: 768px) {
  .grid {
    gap: 10px;
  }

  .card {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .card img {
    height: auto;
    object-fit: unset;
  }

  .logo-container {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 20px;
  }

  .logo {
    width: 220px;
  }

  .profile-photo img {
    width: 300px;
    height: 300px;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Phones */
@media (max-width: 480px) {
  h1 {
    font-size: 24px;
    text-align: center;
    margin-top: 110px;
  }

  .filters {
    text-align: center;
  }

  .filter-btn {
    margin: 5px;
    padding: 8px 12px;
  }

  .logo-container {
    position: static;
    transform: none;
    margin: 20px auto 30px;
    text-align: center;
    display: block;
    clear: both;
  }

  .logo {
    width: 120px;
    display: block;
    margin: 0 auto;
  }

  .back-button2 {
    display: block;
    width: fit-content;
    margin: 0 auto 20px;
    font-size: 12px;
    padding: 6px 10px;
  }

  .profile-photo img {
    width: 170px;
    height: 170px;
  }
}

  .button-link,
  .back-button,
  .back-button2 {
    font-size: 14px;
    padding: 8px 12px;
  }


/* Very small phones */
@media (max-width: 320px) {

  .logo-container {
    position: static;
    transform: none;
    margin: 20px auto 30px;
    text-align: center;
    display: block;
    clear: both;
  }

  .logo {
    width: 120px;
    display: block;
    margin: 0 auto;
  }

  .back-button2 {
    display: block;
    width: fit-content;
    margin: 0 auto 20px;
    font-size: 12px;
    padding: 6px 10px;
  }

  .profile-photo img {
    width: 170px;
    height: 170px;
  }
}