html, body {
  height: 100%;
  margin: 0px auto;
  font-family: "Montserrat", sans-serif;
  background-color: #f7f3ed;
  color: #1c2021;
  display: flex;
  flex-direction: column;
}


.container {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: 1rem;
}

.logo a {
  display: block;
  width: 150px;
  height: auto;
  aspect-ratio: 1 / 1;
  background-image: url('black-logo.webp');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: background-image 0.3s ease;
}

.logo a:hover {
  background-image: url('yellow-logo.webp');
}

nav {
  display: flex;
  gap: 2rem;
}

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

nav a.active,
nav a:hover {
  color: #d9b52c;
}

.carousel {
  width: 100%;
  height: 70vh;
  position: relative;
  overflow: hidden;
  margin-bottom: 3rem;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

.carousel-slide img {
  width: auto;
  height: 100%;
  object-fit: cover;
  transition: transform 6s ease-in-out;
}

.caption {
  position: absolute;
  bottom: 7%;
  left: 5%;
  z-index: 2;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  transition: transform 0.4s ease, font-size 0.3s ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.caption span {
  font-size: 0.8rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-top: 0.25rem;
}

.carousel-slide::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, .8), transparent);
  z-index: 1;
  pointer-events: none;
}

.carousel-slide:hover .caption {
  transform: scale(1.05);
}

.carousel-dots {
  position: absolute;
  bottom: 3%;
  left: 5%;
  display: flex;
  gap: 0.5rem;
  z-index: 3;
}

.dot {
  height: 8px;
  width: 8px;
  margin: 0 6px;
  background-color: #fff;
  border-radius: 50%;
  display: inline-block;
  opacity: 0.4;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.dot.active,
.dot:hover {
  opacity: 1;
  background-color: #d9b52c;
}

.section-title.intro {
  max-width: 800px;
}

.section-title.intro p {
  line-height: 1.8;
  font-size: 1.05rem;
  font-weight: 300;
  color: #1c2021;
  max-width: 850px;
}

.section-title.intro p strong {
  font-weight: 600;
  color: #d9b52c;
}

.highlight {
  font-weight: 600;
  color: #1c2021;
  letter-spacing: 0.5px;
}

.section-title h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: -.75rem;  tighten space below h2 */
}


.category {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #d9b52c;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.section-title p {
  font-size: 1rem;
  color: #1c2021;
  font-weight: 50;
  line-height: 1.75;
}

.description {
  max-width: 800px;
  margin-top: 2rem;
  margin-bottom: 2rem;
  font-weight: 100;
}

.deliverables {
  margin-bottom: 2rem;
}

.deliverables strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 600;
  color: #1c2021;
  margin-bottom: 0.75rem;
  letter-spacing: 0.5px;
}

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

.deliverables li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: .9rem;
  font-weight: 300;
  color: #1c2021;
  transition: color 0.3s ease;
}

.section-title .line {
  width: 40px;
  height: 2px;
  background: #d9b52c;
  margin-top: 1rem;
}

.gallery {
  column-count: 3;
  column-gap: 1.5rem;
  width: 100%;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  break-inside: avoid;
  display: block;
  margin-bottom: 1.5rem;
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.gallery-caption .title {
  font-size: 1rem;
  font-weight: 600;
}

.gallery-caption .subtitle {
  font-size: 0.75rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.25rem;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
}

.gallery-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* semi-transparent black */
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.gallery-item:hover::after {
  opacity: 1;
}


footer {
  text-align: center;
  font-size: 0.9rem;
  color: #1c2021;
  padding: 2rem 0;
}

.resume-button {
  display: inline-block;
  padding: 1rem 2rem;
  border: 1px solid #1c2021;
  color: #1c2021;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
  font-weight: 200;
  margin-bottom: 2rem;
  max-width: 150px;
  max-height: 50px;
  margin-top: 2rem;
  text-align: center;
}

.resume-button:hover {
  border-color: #d9b52c;
  color: #d9b52c;
  transform: scale(1.08);
}

.email-link {
  color: #d9b52c;
  font-size: 1.2rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 2rem;
}

.offset-divider {
  max-width: 1430px;
  height: 1px;
  background: #d9b52c;
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

#toTopBtn {
  position: fixed;
  bottom: 25px;
  right: 20px;
  z-index: 1000;
  background-color: transparent;
  color: #d9b52c;
  border: 1.5px solid #d9b52c;
  border-radius: 10%;
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

#toTopBtn.show {
  opacity: 1;
  pointer-events: auto;
}

#toTopBtn:hover {
  color: #1c2021;
  transform: scale(1.08);
  border-color: #1c2021;
}

.project-image {
  width: 100%;
  height: auto;
  margin-bottom: 2rem;
  border-radius: 4px;
  display: block;
  object-fit: cover;
}


   .contact-form {
    width: 100%;
    max-width: 550px;
  }
  
  .form-group {
    position: relative;
    margin-bottom: 2rem;
  }
  
  label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 1rem;
    font-weight: 500;
    color: #1c2021;
  }
  
  input,
  textarea {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-family: "Montserrat", sans-serif;
    color: #1c2021;
    resize: none;
    overflow: hidden;
    padding: 0;
    line-height: 1.4;
  }
  
  input:focus,
  textarea:focus {
    outline: none;
  }
  
  .underline {
    display: block;
    height: 1.5px;
    background-color: #d9b52c;
    margin-top: 0.25rem;
    transition: background-color 0.3s;
  }
  
  input:focus + .underline,
  textarea:focus + .underline {
    background-color: #1c2021;
  }

  .about-flex {
    display: flex;
    align-items: flex-start;
    max-width: 1440px;
  }
  
  .about-text {
    flex: 1;
    min-width: 300px;
  }
  
  .about-image {
    flex: 1;
    min-width: 300px;
    text-align: left;
  }
  
  .about-image img {
    max-width: 90%;
    height: auto;
    border-radius: 0.5rem;
    padding: 2rem 0rem;
    padding-right: 2rem;
  }
  
  .description {
    font-size: 1rem;
    line-height: 1.7;
    max-width: 600px;
  }

  .about-content {
    max-width: 1440px;
    width: 100%;
    padding: 2rem 1.5rem;
    margin: 0 auto;
  }

  .image-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    justify-content: center;
    flex-wrap: wrap;
  }

  
  .image-row img {
    width: calc(50% - 1rem); /* subtract half the gap to account for spacing */
    height: auto;
  }
  
/* Responsive */
@media (max-width: 1024px) {
  .container{
    margin: 0px auto;

  }
  .gallery {
    column-count: 2;
  }
  .container {
    padding: 1.5rem;
  }

  .logo a {
    width: 100px;
  }
}

@media (max-width: 900px) {
  .image-row img {
    width: calc(50% - 1rem);
  }
}

@media (max-width: 820px) {
  .container{
    margin: 0px auto;

  }
  nav {
    gap: 1.5rem;
    padding: 3rem;
    flex-wrap: wrap;
  }

  nav a {
    font-size: 0.85rem;
  }

  .logo{
    width: 100px;

  }

  .carousel {
    height: 50vh;
    max-width: 94%;
  }

  .section-title h2 {
    font-size: 1.8rem;
  }

  .section-title p {
    font-size: 1rem;
  }

  .gallery {
    column-count: 2;
    max-width: 94%;
  }

  .about-flex {
    gap: 2rem;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .about-image img {
    max-width: 100%;
  }

  .description {
    max-width: 90%;
    font-size: 0.98rem;
  }

  .project-image {
    margin-bottom: 1.5rem;
    max-width: 95%;
  }

  .resume-button {
    font-size: 0.9rem;
    padding: 0.85rem 1.5rem;
  }

  .email-link {
    font-size: 1.1rem;
  }

  .offset-divider {
    max-width: 95%;
  }

  .image-row{
    max-width: 780px;
  }

}

@media (max-width: 768px) {
  .carousel {
    height: 25vh;
  }

  .caption {
    font-size: 0.8rem;
    left: 5%;
    bottom: 15%;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  }

  .caption span {
    font-size: 0.7rem;
  }

  .gallery {
    column-count: 1;
    max-width: 100%;
  }

  .section-title h2 {
    font-size: 1.5rem;
  }

  .section-title p {
    font-size: 0.95rem;
  }

  nav {
    gap: 1rem;
    padding: 2rem;
  }
  nav a {
    font-size: 0.8rem;
  }

  .carousel-dots {
    bottom: 1rem;
  }

  .project-image {
    margin-bottom: 1.5rem;
    max-width: 90%;
  }

  .description {
    padding-right: 2 rem;
    font-size: 0.95rem;
  }

  .section-title p{
    padding-right: 2rem;
  }

  .about-flex {
    flex-direction: column;
  }

  .about-image img {
    padding-top: 1rem;
    max-width: 87%;
  }

  .about-text {
    padding-right: 2rem;
  }

  .carousel {
    height: 40vh;
  }

  .carousel-slide img {
    object-fit: cover;
    height: 100%;
    width: 100%;
  }

  .caption {
    display: none; /* Hide caption on tablets and mobile */
  }

  .image-row{
    max-width: 90%;
  }
}



@media (max-width: 480px) {
  .container{
    padding-right: 2rem;
  }
  .carousel {
    height: 30vh;
    padding-right: -6rem;
  }

  .offset-divider {
    max-width: 90%;
  }


  @media (max-width: 480px) {
    .logo a {
      width: 100px;
    }
  
    .site-nav a {
      font-size: 0.8rem;
    }
  }

  .gallery-item {
    margin-bottom: 1rem;
    max-width: 90%;
  }

  .carousel {
    max-width: 90%;
  }

  .caption {
    font-size: 0.6rem;
    left: 2%;
    bottom: 20%;
  }

  .description{
    margin-right: 2rem;
  }

  .section-title p{
    padding-right: 2rem;
  }

  .caption span {
    font-size: 0.6rem;
  }

  .section-title h2 {
    font-size: 1.2rem;
  }

  .email-link {
    font-size: 1rem;
  }

  .gallery-caption .title {
    font-size: 0.9rem;
  }

  .gallery-caption .subtitle {
    font-size: 0.65rem;
  }

  .carousel-dots {
    bottom: .9rem;
    left: 2%;
  }


  .form-group {
    margin-bottom: 1.5rem;
    padding-right: 2rem;
  }

  label {
    font-size: 0.9rem;
  }

  input,
  textarea {
    font-size: 0.95rem;
  }

  .image-row{
    justify-content: center;
  }
}



