@import url(main_css.css);

* {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  scroll-behavior: smooth;
}

body {
  background-image: var(--bg-img);
  background-repeat: repeat;
  background-size: contain;
  overflow-x: hidden;
}

/* font awesome tweaks */
.fa-arrow-right {
  transform: rotate(-45deg);
}
.fa-solid {
  margin-left: 8px;
  font-size: 10px;
  line-height: 20px !important;
}

/* scroll to top */
.scroll-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  padding: 0.95rem 1.2rem;
  background-color: var(--white);
  color: var(--primary-text);
  transition: 0.3s ease-in-out;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
}
.scroll-to-top:hover {
  background-color: var(--muted-color);
}
.scroll-to-top .fa-solid {
  margin-left: 0;
  font-size: 0.85rem;
}

/* modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  padding: 1rem;
  z-index: 999;
}
.modal {
  background: #fff;
  border-radius: 10px;
  max-width: 600px;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 90vh;
}
.modal-header {
  padding: 0.75rem 1rem;
  background: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  color: var(--primary-text);
  box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.05);
}
.modal-header .fa-xmark {
  font-size: 0.75rem;
  line-height: 30px !important;
}
.close-btn {
  cursor: pointer;
  font-size: 1.5rem;
  border: none;
  background: none;
}
.modal-body {
  padding: 1rem;
  overflow-y: auto;
  flex: 1 1 auto;
  color: var(--secondary-text);
  font-size: 0.85rem;
  line-height: 150%;
}
.modal-footer {
  padding: 1rem;
  background: var(--white);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.05);
}
.modal-footer a {
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  background: var(--white);
  color: var(--primary-text);
  transition: 0.3s;
  border: 1px solid var(--primary-text);
}
@media (max-width: 480px) {
  .modal {
    max-width: 100%;
  }
  .modal-body {
    max-height: 60vh;
  }
}

/* navbar */
.menu-btn {
  text-align: center;
  padding: 0.6rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: none;
}
.fa-bars {
  font-size: 1.2rem !important;
  color: var(--primary-text);
  margin-left: 0;
}

.navbar-responsive {
  width: 100%;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: absolute;
  top: 75px;
  background: var(--white);
  box-shadow: 0 10px 5px 2px rgba(0, 0, 0, 0.05);
  transition: 0.3s;
}
.navbar-responsive ul {
  width: 100%;
}
.navbar-responsive li {
  list-style: none;
  display: block;
  margin: 1rem;
}
.navbar-responsive a {
  width: 100%;
  text-decoration: none;
  color: var(--primary-text);
  padding: 12px 16px;
  display: block;
}
.nav_header {
  width: 100%;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.65);
  backdrop-filter: saturate(180%) blur(20px);
  position: fixed;
  z-index: 9;
}
.header_all {
  width: calc(100% + 20px);
  max-width: 1440px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar {
  display: flex;
  align-items: center;
  gap: 16px;
}
.logo span {
  font-size: 24px;
  line-height: 24px;
}
.navbar ul li {
  list-style: none;
  display: inline-flex;
  margin-left: 16px;
}
.navbar a {
  text-decoration: none;
  color: var(--primary-text);
  padding: 12px 16px;
  display: inline-block;
  position: relative;
}
.navbar a::before {
  content: "";
  position: absolute;
  width: 0;
  height: 1px;
  left: 0;
  bottom: 0;
  background-color: var(--primary-text);
  transition: 0.3s;
}
.navbar a:hover::before {
  width: 100%;
}

/* banner */
.banner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.banner_container {
  width: 100%;
  max-width: 1440px;
  margin: 90px auto 0;
  display: flex;
  flex-flow: column;
  gap: 36px;
  padding: 3.125rem;
}
.banner_container p {
  color: var(--secondary-text);
  line-height: 170%;
  font-size: 20px;
}
.text-part {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.text-part span {
  color: var(--secondary-text);
}
.banner_container h3 {
  font-size: 72px;
  font-weight: 400;
  color: var(--primary-text);
}

/* parallax */
.img-parallax {
  position: relative;
  height: 50vh;
  background-image: url("/images_final/ForWebsite/GraphicBG.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: background-position;
}

/* portfolio section starts here */
.portfolio {
  width: 100%;
  padding: 1rem;
}

.portfolio-container {
  width: 100%;
  max-width: 1440px;
  padding: 1rem;
  margin: 0 auto;
}

.portfolio-container h2 {
  font-size: 2.575rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
  color: var(--primary-text);
}

.portfolio-container h2::before {
  content: "";
  display: block;
  background-color: var(--primary-color);
  height: 3px;
  width: 60px;
  margin-bottom: 5px;
  border-radius: 3px;
}

.portfolio-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Filter buttons */
.filters {
  text-align: center;
  margin-bottom: 20px;
}

.filters button.sort-buttons {
  margin: 0.5rem 1rem;
  padding: 10px 18px;
  border: none;
  background: transparent;
  color: var(--secondary-text);
  font-weight: 400;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  margin-bottom: 1rem;
  position: relative;
}

div.filters button.sort-buttons::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  width: 0;
  background-color: var(--primary-color);
  transition: all 0.3s ease-in-out;
}

.filters button.sort-buttons:hover::after,
.filters button.sort-buttons.active::after {
  width: 100%;
}

/* Filter dropdown for mobile */
.portfolio-heading select {
  display: none;
  padding: 10px;
  border-radius: 25px;
  border: 1px solid #ddd;
  font-size: 16px;
}

.portfolio-heading select {
  padding: 10px 35px 10px 12px; /* make space for custom arrow */
  border-radius: 25px;
  border: 1px solid #ddd;
  font-size: 16px;
  appearance: none; /* remove default arrow */
  background: white
    url("data:image/svg+xml;utf8,<svg fill='black' height='12' width='12' xmlns='http://www.w3.org/2000/svg'><path d='M2 4l4 4 4-4'/></svg>")
    no-repeat right 12px center;
  background-size: 12px;
}

/* Gallery grid */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 15px;
  padding: 0 20px 40px;
  max-width: 1200px;
  margin: auto;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.gallery-item.hiding {
  opacity: 0;
  transform: scale(0.8);
}

.gallery-item.hidden {
  display: none !important;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

.gallery-item:hover {
  transform: scale(1.05);
}

.gallery-item h3 {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 10px;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  text-align: center;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  box-sizing: border-box;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 85%;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.3s ease;
}

.lightbox-content img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 0;
}

.lightbox-content img.show {
  opacity: 1;
}

.lightbox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
  background-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.8),
    rgba(0, 0, 0, 0.4),
    rgba(0, 0, 0, 0.05)
  );
  padding: 0.8rem 1rem;
  position: absolute;
}

.lightbox h3 {
  margin: 0;
  font-size: 1.2rem;
  color: white;
  font-weight: 400;
}

/* Lightbox controls */
.close {
  background: transparent;
  border: none;
  color: white;
  font-size: 1rem;
  cursor: pointer;
}

.prev,
.next {
  width: 40px;
  height: 40px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  font-size: 26px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1001;
  transition: background 0.3s;
}

.prev:hover,
.next:hover {
  background: rgba(0, 0, 0, 0.8);
}

.prev {
  left: -60px;
}
.next {
  right: -60px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .prev {
    left: 10px;
  }
  .next {
    right: 10px;
  }
}
/* portfolio section ends here */

/* footer */
footer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--muted-color);
}
.footer-container {
  width: 100%;
  max-width: 1440px;
  padding: 3rem 2rem;
}
.footer-container p {
  font-size: 1rem;
  line-height: 150%;
  color: var(--secondary-text);
}
.footer-container h2 {
  font-size: 2.225rem;
  line-height: 150%;
  color: var(--primary-text);
  font-weight: 500;
  margin: 0.55rem 0;
}
.footer-container a:hover {
  transform: translateX(5px);
}
.footer-btm-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-bottom {
  width: 100%;
  max-width: 1440px;
  padding: 0.75rem 2rem;
}
.footer-bottom h3 {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--primary-text);
  text-align: center;
  margin: 0.55rem 0;
  line-height: 150%;
}

/* responsive */
@media (max-width: 800px) {
  .nav_header {
    padding: 1rem;
  }

  .navbar ul {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .banner_container h3 {
    font-size: 2.5rem;
  }

  .banner_container p {
    font-size: 0.7rem;
  }

  .filters button {
    display: none;
  }
  .portfolio-heading select {
    display: inline-block;
  }

  .gallery {
    padding: 0;
  }

  .portfolio,
  .gallery-container {
    padding: 0;
  }

  .portfolio-heading {
    margin-bottom: 1rem;
  }

  .portfolio-container h2 {
    font-size: 1.85rem;
    margin-bottom: 0;
  }

  .footer-container h2 {
    font-size: 1.25rem;
  }

  .footer-container {
    padding: 1rem;
  }
}
