@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

*,*::before,*::after {
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #4f6f80; /* background color */
    padding: 1rem 2rem;
    color: white;
  }
  
  .nav-title {
    font-size: 1.5rem;
    font-weight: bold;
  }
  
  .nav-menu {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
  }
  
  .nav-menu li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
  }
  
  .nav-menu li a:hover {
    text-decoration: underline;
  }
  

body {
    background-image: url(pics/paper.jpeg);
    background-repeat: no-repeat;
    background-size: cover;
    margin: 0;
}

.row {
    display: flex;
}
.container {
    margin: 20px auto; /* vertical margin: 20px, horizontal margin: auto */
    width: 96%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
#Projects {
    font-size: clamp(60px, 10vw, 72px);
    color: #4f6f80;
    text-transform: uppercase;
    margin: 0;
}
.gallery-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 equal-width columns */
  gap: 20px; /* space between items */
  justify-items: center; /* center images horizontally */
  max-width: 1400px; /* optional, for centering on page */
  margin: 0 auto; /* center the whole grid on the page */
  padding: 20px;
}
@media (max-width: 768px) {
  .gallery-container {
    grid-template-columns: 1fr; /* stack in one column */
  }
}
#Projects {
  font-size: 60px;
  color: #4f6f80;
  text-transform: uppercase;
  margin: 0;
  text-align: center;
  margin-top: 25px;
}


.gallery {
  position: relative;
  display: grid;
  border: 1px solid #4f6f80;
  margin: 5px;
  overflow: hidden;
  width: 650px;
  height: 350px;
}
.gallery img {
  display: flex;
  width: 100%;
  height: auto;
}
.gallery .desc {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(92, 141, 122, 0.7);
  color: #F8F4F5;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.gallery:hover {
    border: 2px solid #1da1f2;
}
.gallery img:hover {
  background-color: rgba(92, 141, 122, .2);
  transition: .2s;
  color: #F8F4F5;
  }

.desc {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(92, 141, 122, 0.7);
  color: #F8F4F5;
  font-family: 'montserrat_alternates', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 2;
  }

  .gallery:hover .desc {
    opacity: 1;
    }


.footer {
    background-color: #222;
    color: #f1f1f1;
    padding: 2rem 1rem;
    text-align: center;
  }
  
  .footer-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
  }
  
  .footer-content p {
    margin-bottom: 1rem;
    font-size: 1rem;
  }
  
  .socials a {
    margin: 0 10px;
    color: #f1f1f1;
    font-size: 1.2rem;
    transition: color 0.3s ease;
  }
  
  .socials a:hover {
    color: #1da1f2; /* light blue highlight */
  }
  
  .footer-text {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.7;
  }
  