@import url('https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@0,100..900;1,100..900&family=Montserrat+Alternates:wght@400;600;700&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/* --- Base and Mobile-First Styles --- */
:root {
  --body-font: "Roboto", sans-serif;
}

  html, body {
    height: 100%;
    margin: 0;
  }

body {
  font-family: var(--body-font);
  background-color: #f0eeeb;
  color: #333;
  line-height: 1.6;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}


/* keep footer bottom */
main {
  flex: 1;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  z-index: 1000;
}

.header.scrolled-header {
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
  padding: 0 1rem;
}

.nav__logo img {
  width: 140px;
  height: auto;
  display: block;
  margin: 1rem 0 1rem 1rem;
    filter: brightness(0) invert(0);
}

/* Mobile Menu */
.nav__menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 70%;
  height: 100%;
  background:transparent;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  padding: 6rem 2rem;
  transition: right 0.3s ease;
}

.nav__menu.show-menu {
  right: 0;
}

.nav__toggle,
.nav__close {
  font-size: 1.3rem;
  cursor: pointer;
  padding-right: 1rem;
}

.nav__close {
  position: absolute;
  top: 1rem;
  right: 0rem;
  font-size: 2rem;
}

.nav__list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.nav__link {
  color: #000;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.nav__link:hover {
  color: orange;
}

/* Gallery Section (Mobile-First) */
.project-gallery-section {
  padding: 4rem 1.5rem;
  background-color: #f0eeeb;
  text-align: center;
  flex: 1;

}

.gallery-header {
  margin-bottom: 1.5rem;
}

.gallery-header h2 {
  font-size: 1.5rem;
  color: #333;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
  gap: 10px;
  max-width: 100%;
  margin: 0 ;
}

.gallery-item {
  width: 100%;
  padding-bottom: 75%;

  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Modal (Mobile-First) */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 95%;
  max-height: 80vh;
  object-fit: contain;
}

.close-button,
.prev-button,
.next-button {
  position: absolute;
  color: white;
  cursor: pointer;
  z-index: 2000;
}

.close-button {
  top: 10px;
  right: 20px;
  font-size: 15px;
  color: rgb(243, 237, 237);
  cursor: pointer;
}

.prev-button {
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.next-button {
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

/* Arrows style */
.prev-button,
.next-button {
  height: 25px;
  width: 25px;
  box-sizing: border-box;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.8); /* off-white */
  color: black;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%; /* round button */
  cursor: pointer;
  transition: background 0.3s ease;
  user-select: none;
  border: none;
  line-height: 1;
  text-align: center;
  margin: 0;
  padding: 0;
}

.prev-button:hover,
.next-button:hover {
  background: #3b3939; /* ash color */
  color:#eee
}
footer{
  text-align: center;
  background-color: #e7e5e2;
  color:rgb(0, 0, 0);
  padding: 0;
  font-size:10px ;
}


@media (min-width: 768px){
 .nav__logo img {
    padding-left: 1.5rem;
    padding-top: 3px;
  }
    .nav__toggle{
    font-size: 1.8rem;
    padding-right: 3rem;
    padding-top: 10px;
  }
.nav__close{
  font-size:2.5rem;
  padding-right: 2.5rem;
  padding-top: -1px;
}
  .nav__menu {
    width: 40%;
  }
}

@media (min-width: 1024px) {
.nav{
    height: 5rem;
  }
  .nav__logo img {
    width: 180px;
    padding-left: 4rem;
    padding-top: 3px;
  }
  .nav__toggle{
    font-size: 2rem;
    padding-right: 3rem;
    padding-top: 10px;
  }
.nav__close{
  font-size:2.5rem;
  padding-right: 2.5rem;
  padding-top: -10px;
}
  .nav__menu {
    width: 20%;
  }
  .nav__list {
  gap: 2.5rem;
}
  .main-content-section {
    padding: 3rem 1.5rem;
  }


  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* More columns on tablet */
  }

  .gallery-item img {
    height: 150px;
  }
 
.prev-button,
 .next-button{
  font-size: 24px;
 height: 30px;
 width: 30px;
}

 .close-button{
  font-size: 25px;
 }

.prev-button{
  padding-right: 2px;
}
 .next-button{
  padding-left: 2px;
 }
 footer{
  font-size: 15px;
 }
}



/* --- Desktop Media Query (1440px+) --- */
@media screen and (min-width: 1440px) {
   .nav__logo img {
    width: 180px;
  }
  .nav__toggle{
    padding-right: 8.5rem;
  }

  .nav__logo{
    padding-left: 5rem;
  }

  .main-content-section {
    padding:  0;
    max-width: 1400px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
       padding-left: 5rem;
    padding-right: 5rem;
  }
  
  .gallery-item img {
    height: 180px;
  }

.close-button,
.prev-button,
.next-button{
font-size: 25px;
line-height: 1;

}
.close-button{
  right:35px;
  top:20px;
  font-size: 27px;
}

.next-button{
  right: 35px;
  padding-left: 3px;
}
.prev-button{
  left: 35px;
  padding-left: 1.5px;

}

 footer{
  padding: 3px;
    font-size: 15px;
  }
}