@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

html {
  scroll-behavior: smooth;
}

#scrollTopBtn {
  position: fixed;
  z-index: 199;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(10px);
  transition: 0.3s ease;
}

#scrollTopBtn.show {
  opacity: 1;
  transform: translateY(0);
}

.arrow {
  position: absolute;
  color: white;
  font-size: 18px;
  font-weight: bold;
}

/* SVG circle */
.progress-ring {
  width: 60px;
  height: 60px;
  position: absolute;
  transform: rotate(-90deg);
}

.ring-bg {
  cx: 30;
  cy: 30;
  r: 26;
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 4;
}

.ring-progress {
  cx: 30;
  cy: 30;
  r: 26;
  fill: none;
  stroke: #ffffff;
  stroke-width: 4;
  stroke-dasharray: 163.36;
  stroke-dashoffset: 163.36;
  transition: stroke-dashoffset 0.1s linear;
}

.main {
  height: 240px;
  position: relative;
  /* top: 160px; */
  width: 100%;
}

.main-heading {
  font-size: 80px;
  margin: 0 auto;
  text-align: center;
  font-weight: 600;
  display: flex;
  justify-content: center;
  padding-bottom: 80px;
  padding-top: 160px;
  animation: fadeUp 1.8s;
  color: #b57600;
  background-color: rgba(51, 51, 51, 0.08);
}

/* BG PARTICLES */
canvas {
  display: block;
}

#tsparticles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: -1;
}

.count-particles {
  position: fixed;
  top: 10px;
  left: 10px;
  padding: 8px 12px;
  background: white;
  color: #d4af37;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
}

.js-count-particles {
  font-size: 1.1em;
}

#stats,
.count-particles {
  user-select: none;
  margin-top: 5px;
  margin-left: 5px;
}

#stats {
  border-radius: 3px 3px 0 0;
  overflow: hidden;
}

.count-particles {
  border-radius: 0 0 3px 3px;
}

#tsparticles canvas {
  filter: blur(0.2px) drop-shadow(0 0 5px rgba(212, 175, 55, 0.5));
}

.company-info {
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 70px 15px 0;
  background-color: white;
}

.company-info h4 {
  font-size: 40px;
}

.company-info p {
  text-align: justify;
  font-size: 17px;
  line-height: 1.8;
  color: #555;
}

.img-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 70px 15px;
  overflow: hidden;
  /* background-color: rgba(175, 123, 26, 0.1); */
  background-color: white;
  animation: fadeUp 2s ease;
}

.img-box {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* background design elements */

.bg-circle {
  position: absolute;
  width: 300px;
  height: 300px;
  background: linear-gradient(
    135deg,
    rgba(181, 118, 0, 0.25),
    rgba(181, 118, 0, 0.05)
  );
  border-radius: 50%;
  top: -50px;
  left: -60px;
  z-index: 0;
}

.bg-square {
  position: absolute;
  width: 180px;
  height: 180px;
  border: 3px dashed rgba(181, 118, 0, 0.25);
  border-radius: 25px;
  right: -20px;
  bottom: -30px;
  transform: rotate(20deg);
}

/* image */

.img-box img {
  position: relative;
  width: 100%;
  /* max-width: 500px; */
  border-radius: 30px;
  z-index: 2;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transition: 0.5s;
}

.img-box img:hover {
  transform: translateY(-10px);
}

/* content */

.content h2 {
  margin-bottom: 20px;
}

.content h2,
.why-choose-us h3,
.expertise-left h2,
.tools h2 {
  font-size: 48px;
}

.content p {
  text-align: justify;
  font-size: 17px;
  line-height: 1.8;
  color: #555;
}

.gallery {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 15px 70px;
}

.gallery-heading {
  text-align: center;
  margin-bottom: 60px;
}

.gallery-heading h2 {
  font-size: 42px;
  margin-bottom: 12px;
  font-size: 56px;
}

.gallery-heading p {
  color: #666;
  font-size: 17px;
  width: 70%;
  justify-self: center;
}

/* Grid */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

/* Image Card */

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  height: 440px;
}
.gallery-item .overlay p {
    display: none;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
  image-rendering: auto;
}

/* .gallery-item:hover img {
  transform: scale(1.10);
} */

/* Black Gradient */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 25px;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.25) 35%,
    rgba(0, 0, 0, 0) 100%
  );
  transform: translateY(-100%);
  transition: 0.45s ease;
}

.overlay h3 {
  color: #fff;
  font-size: 24px;
  margin: 0;
  font-weight: 600;
}

.overlay p {
  color: #ddd;
  margin-top: 8px;
  font-size: 15px;
}

.gallery-item:hover .overlay {
  transform: translateY(0);
}

.gallery-item:hover img {
  transform: scale(1.05);
}
/* ---------------- RESPONSIVE ---------------- */

@media (max-width: 1024px) {
  .main-heading {
    font-size: clamp(38px, 7vw, 60px);
    padding: 136px 24px 72px;
  }

  .company-info {
    padding: 70px 15px;
  }

  .company-info h4 {
    font-size: clamp(28px, 4.5vw, 42px);
  }
  .bg-circle {
    width: 260px;
    height: 260px;
    top: -60px;
    left: -40px;
}

  .img-content {
    gap: 48px;
    padding: 70px 15px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-heading p {
    width: 90%;
  }
}

@media (max-width: 991px) {
  .img-content {
    padding: 48px 15px 40px;
  }
}

@media (max-width: 768px) {
  .main-heading {
    padding: 100px 20px 48px;
    font-size: clamp(32px, 9vw, 48px);
  }

  .company-info {
    padding: 40px 15px;
    gap: 12px;
  }

  .company-info h4 {
    font-size: clamp(24px, 6vw, 34px);
  }

  .company-info p {
    font-size: 15px;
  }

  .img-content {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .img-content.img-flex{
    display: flex;
    gap: 44px;
    flex-direction: column-reverse;
  }

  .img-box {
    width: min(90%, 460px);
    margin: 0 auto;
  }

  .bg-circle {
    width: 260px;
    height: 260px;
    top: -35px;
    left: -35px;
  }

  .bg-square {
    width: 130px;
    height: 130px;
    right: -10px;
    bottom: -20px;
  }

  .content h2 {
    font-size: clamp(26px, 7vw, 36px);
  }

  .content p {
    font-size: 15px;
    text-align: left;
  }

  .gallery {
    padding: 0 15px 40px;
  }

  .gallery-heading {
    margin-bottom: 36px;
  }

  .gallery-heading h2 {
    font-size: clamp(26px, 7vw, 36px);
  }

  .gallery-heading p {
    width: 100%;
    font-size: 15px;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .gallery-item{
    height: 100%;
  }
  .gallery-item img {
    height: 256px;
  }
  

  .overlay {
    transform: translateY(0);
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.75) 0%,
      rgba(0, 0, 0, 0.1) 60%,
      rgba(0, 0, 0, 0) 100%
    );
  }

  .overlay h3 {
    font-size: 18px;
  }
}

@media (max-width: 767px) {
  .company-info {
    padding: 40px 15px;
  }
  .img-flex {
    display: flex;
    flex-direction: column-reverse;
  }
  .gallery {
    padding: 0 15px 40px;
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .img-box, .img-box2 {
    width: min(90%, 460px);
    margin: 0 auto;
  }
  .overlay {
    padding: 15px 20px;
  }
  .overlay h3 {
    font-size: 14px;
  }
  .overlay p {
    font-size: 13px;
    margin-top: 3px;
  }
  .gallery-item:hover img{
    transform: unset;
  }
}

@media (max-width: 480px) {
  .main-heading {
    padding: 100px 18px 40px;
    font-size: clamp(28px, 9vw, 38px);
  }

  .bg-circle {
    width: 160px;
    height: 160px;
    left: -24px;
  }

  .gallery-grid {
    gap: 8px;
  }

  .bg-square {
    width: 100px;
    height: 100px;
  }

  .gallery-item img {
    height: 248px;
  }

  #scrollTopBtn {
    width: 44px;
    height: 44px;
    right: 14px;
    bottom: 14px;
  }

  .progress-ring {
    width: 44px;
    height: 44px;
  }
}

/* ---------------- LIGHTBOX ---------------- */
.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.lightbox-content {
  position: relative;
  max-width: 85%;
  max-height: 85vh;
  text-align: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-caption {
  margin-top: 16px;
  color: #fff;
}

.lightbox-caption h3 {
  font-size: 22px;
  font-weight: 600;
}

.lightbox-caption p {
  color: #ccc;
  margin-top: 4px;
  display: none;
  font-size: 15px;
}

.lightbox-close {
  position: absolute;
  top: 25px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1000;
  transition: 0.2s;
}

.lightbox-close:hover {
  color: #b57600;
  transform: rotate(90deg);
}

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 16px;
  padding: 9px 15px;
  cursor: pointer;
  border-radius: 50%;
  border: none;
  user-select: none;
  background: rgba(255, 255, 255, 0.08);
  transition: 0.25s;
}

.lightbox-prev {
  left: 10px;
}
.lightbox-next {
  right: 10px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: #b57600;
}

@media (max-width: 768px) {
  .lightbox-content {
    max-width: 95%;
  }
   .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 80px;
    transform: none;
    position: absolute;
  }

  .lightbox-prev {
    left: 50%;
    transform: translateX(-60px);
  }

  .lightbox-next {
    right: auto;
    left: 50%;
    transform: translateX(20px);
  }
  .lightbox-close {
    top: 14px;
    right: 18px;
    font-size: 32px;
  }
  .lightbox-caption h3 {
    font-size: 17px;
  }
  .lightbox-caption p {
    font-size: 13px;
  }
}

@media (max-width: 543px) {
 .img-box {
    width: min(90%, 460px);
    margin: 0 auto;
  }
  .lightbox-content img {
    max-height: 65vh;
  }
}