/* style.css */
body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto Condensed', sans-serif;
  background-color: #ffffff;
  color: #000000;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
  padding: 0 5vw;
  gap: 4vw; /* adds spacing between columns */
}
.left, .right {
  flex: 1;
  max-width: 600px;
  padding: 1vw 2vw; /* Tightened up from 2vw or more */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.left h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.about {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 500px;
}

.right {
  flex: 1;
  max-width: 750px;
  align-items: center;
  justify-content: center;
}


.slideshow {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  max-height: 80vh;
}

.slide {
  position: absolute;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background-color: white;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.portfolio-button {
  margin-top: 1.5rem;
  text-align: center; /* Aligns with rest of left column */
}

.portfolio-button a {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 1.1rem;
  padding: 0.6rem 1.5rem;
  background-color: black;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  display: inline-block;
}
.portfolio-button a:hover {
  background-color: #333;
}

.portfolio-nav {
  text-align: center;
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-size: 1rem;
}

.portfolio-nav a {
  text-decoration: none;
  color: black;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.portfolio-nav a:hover {
  border-color: black;
  color: #333;
}


.portfolio-container {
  padding: 4vw;
  font-family: 'Roboto Condensed', sans-serif;
  background: white;
  color: black;
}

.portfolio-container h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  text-transform: uppercase;
 
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.grid-item {
  text-decoration: none;
  color: black;
  transition: filter 0.3s ease;
}

.grid-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  transition: filter 0.3s ease;
}

.grid-item span {
  display: block;
  margin-top: 0.5rem;
  font-size: 1.1rem;
  text-align: center;
}

.grid-item:hover img {
  filter: brightness(1.2);
}


.project-container {
  padding: 4vw;
  font-family: 'Roboto Condensed', sans-serif;
  color: black;
  background: white;
  max-width: 1000px;
  margin: 0 auto;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  text-decoration: none;
  color: black;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.back-link:hover {
  border-color: black;
}

.project-container h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.hero-image img {
  width: 100%;
  max-width: 800px;
  max-height: 60vh;
  object-fit: contain;
  margin: 0 auto 2rem;
  display: block;
  border-radius: 6px;
}

.description p {
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 3rem;
  text-align: center;
}

.gallery {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.gallery img {
  max-width: 30%;
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.03);
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
    padding: 4vw 6vw;
    height: auto;
  }

  .left, .right {
    max-width: 100%;
    padding: 1rem 0;
  }

  .left {
    order: 1;
  }

  .right {
    order: 2;
    margin-top: 2rem;
    align-items: center;
  }

  .slideshow {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 3 / 4; /* keep portrait orientation looking good */
  }
}

