/* @import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Playwrite+CU:wght@100..400&display=swap'); */

* {
  box-sizing: border-box;
  margin: 0%;
  padding: 0%;
  transition: all 0.5s linear;
  color: rgba(255, 255, 255, 0.5);
  text-transform: capitalize;
}

html {
  scroll-behavior: smooth;
  user-select: none;
}

body {
  background-color: #1a1110;
  font-family: "thedarkestpearl", system-ui;
  font-weight: 400;
  font-style: normal;
}
header {
  position: relative;
  padding: 2em 0;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3)), url(../img/bg.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  height: 100vh;
}
.logo {
  font-size: 2em;
  font-weight: 600;
  flex: 1;
  color: #fff;
  display: flex;
  align-items: center;
}
.logo img {
  border-radius: 50%;
  width: 70px;
  margin-right: 1%;
}
.logo span {
  color: #777;
}
.navbar {
  width: 100%;
  padding: 2rem 3rem;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 999;
  top: 0;
  position: fixed;
}
.navbar.scrolled {
  background-color: #000;
  box-shadow: rgba(0, 0, 0, 0.35) 0 5px 15px;
}
.nav_items {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
}
.item {
  display: flex;
  justify-content: center;
}
.nav_items li {
  list-style: none;
  padding: 1em;
}
.nav_items li a {
  text-decoration: none;
  transition: 0.3s;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
}
.nav_items li::before {
  content: "";
  width: 0;
  height: 2px;
  background: orangered;
  display: block;
  margin: auto;
  transition: 0.5s;
}
.nav_items li:hover::before {
  width: 100%;
}
.btn {
  padding: 9px 15px;
  font-size: 18px;
  letter-spacing: 2px;
  cursor: pointer;
  background-color: orangered;
  border: 2px solid orangered;
  transition: all 0.5s ease-out;
}
.nav_menu {
  display: none;
}
.main {
  width: 80%;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%);
  position: absolute;
  color: #fff;
}
.heading_1 {
  font-size: 2.3em;
}
.heading {
  font-size: 3.5em;
  padding: 1.5% 0;
  font-family: "Playwrite CU", cursive;
}
.para_large{
  font-size: 1.8em;
  padding: 1.5% 0;
  font-family: "Playwrite CU", cursive;
}
.main_btn {
  display: flex;
}
.btn1:hover {
  background-color: transparent;
}
.btn2 {
  background-color: transparent;
  margin-left: 1%;
  align-items: center;
  display: flex;
}
.btn2 i {
  font-size: 2em;
  margin-right: 6px;
  color: orangered;
}
.btn2:hover {
  background-color: orangered;
}
.btn2:hover i {
  color: #fff;
}

/* lightbox modal */
.modal {
  display: none;
  position: fixed;
  z-index: 99999;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.3);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.modal-content {
  position: relative;
  background-color: #fefefe;
  margin: auto;
  padding: 0;
  width: 90% !important;
  height: 90% !important;
  max-width: 1000px;
  transform: translateY(-50px);
  transition: transform 0.3s ease-in-out;
}

.modal-content img {
  width:100%;
  height: 100%; 
  object-fit:fill;
}

.modal.show {
  display: block; /* Make visible */
  opacity: 1; /* Fade in */
}

.modal.show .modal-content {
  transform: translateY(0);
}

@keyframes zoomIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.modal.show .modal-content {
  animation: zoomIn 0.3s ease-out forwards;
}

.close {
  color: white;
  position: absolute;
  top: 10px;
  right: 25px;
  font-size: 35px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #999;
  text-decoration: none;
  cursor: pointer;
}

.cursor {
  cursor: pointer;
}

img.hover-shadow {
  transition: 0.3s;
}

.hover-shadow:hover {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

/* --- Carousel --- */

.carousel-container {
  width: 100% !important;
  height: 600px !important;
  overflow: hidden; /* Hides the duplicated content until needed */
   -webkit-mask: linear-gradient(90deg,#0000,#000 10% 90%,#0000);
}

.carousel-track {
  display: flex;
  /* Double the width of the original content to accommodate the duplicate set */
  width: 200%; 
  animation: scroll 30s linear infinite; /* Adjust duration as needed */
}

.carousel-item {
  /* Ensure items don't shrink and have a responsive width */
  flex-shrink: 0;
  width: 23%; /* Example: 4 items visible at a time (100% / 4) */
  box-sizing: border-box;
  padding: 10px;
  text-align: center;
  /* Add other styling for items (e.g., background, height) */
}

.carousel-item img {
  object-fit: cover !important;
  max-height: 500px !important;
}


@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    /* Translate the width of one full set of items (50% of the track) */
    transform: translateX(-170%);
  }
}

/* Optional: Pause animation on hover */
.carousel-track:hover {
  animation-play-state: paused;
}

/* services */
.sec {
  padding: 8% 0 3% 0;
  width: 85%;
  margin: auto;
}
.head {
  text-align: center;
}
.heading span {
  color: orangered;
}
.head .heading {
  font-family: "lato", sans-serif;
}
/* .head .heading_1 {
  font-family: "playwrite CU", cursive;
  color: aliceblue;
  font-size: 1.4em;
} */

.boxes {
  margin-top: 4rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(3, 1fr);
}
.box {
  text-align: center;
  padding: 5% 0;
  box-shadow: rgba(0, 0, 0, 1.35) 0 5px 15px;
  border: 2px solid transparent;
}
.box img {
  width: 150px;
}
.box p {
  max-width: 275px;
  margin-inline: auto;
  text-align: center;
  line-height: 1.75rem;
  color: #888;
}
.box h4 {
  margin: 1rem;
  font-size: 1.7rem;
  font-weight: 700;
}
.box:hover {
  border: 2px solid #fff;
  cursor: pointer;
  border-radius: 10px;
}
/*.gallery */
.gallery-grid {
  width: 90%;
  background-color: #000;
  font-size: 0;
  margin: 2rem auto;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.8);
}

.gallery-grid figure {
  margin: 0;
  width: 33.333%;
  height: auto;
  -webkit-transition: 1s;
  -moz-transition: 1s;
  transition: 1s;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.gallery-grid figure:hover video, 
.gallery-grid figure:hover img {
  scale: 1.125 !important;
  -webkit-transition: 1s;
  -moz-transition: 1s;
  transition: 1s;
}

.gallery-grid figure:hover {
  cursor: pointer;
  z-index: 4;
}

.gallery-grid figure:hover figcaption {
  opacity: 1;
}

.gallery-grid figure img,
.gallery-grid figure video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}


.gallery-grid figure figcaption {
  margin: 0;
  opacity: 0;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  padding: 0.3rem;
  font-size: 1.2rem;
  position: absolute;
  bottom: 0;
  width: 100%;
  transition: 1s opacity;
}

/* about */
.about_heading {
  align-items: center;
}
.about .para {
  margin-top: 1em;
  display: block;
  text-align: justify;
  color: #777;
}
.about_box {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2em;
  margin-top: 5%;
}
.para1 {
  color: #888;
  padding-bottom: 5%;
}
.box1 {
  background-color: #ffeedc;
  box-shadow: rgba(0, 0, 0, 2.24) 0 3px 8px;
  border: 5px solid chocolate;
}
.box1 img {
  width: 100%;
}
.box1_text {
  padding: 4%;
}
.box1_text button:hover {
  color: #000;
}
/* contact */
.contact {
  margin-top: 6%;
  width: 100%;
  background-color: #312c2a;
}
.contact_box {
  display: grid;
  width: 85%;
  margin: auto;
  align-items: center;
  grid-gap: 2rem;
  grid-template-columns: 1fr 1fr;
}
.right_box .heading_1,
.left_box .heading_1 {
  color: orangered;
}
.right_box {
  margin-top: -60vh !important;
  text-align: right;
}
.right_box img {
  width: 100%;
}
/* footer */
.footer_container {
  display: grid;
  gap: 4rem 2rem;
  grid-template-columns: repeat(4, 1fr);
}
.footer_logo img {
  max-width: 40px;
}
.footer_logo span {
  display: flex;
  font-size: 1.8rem;
  font-weight: 800;
  margin-top: -0.5rem;
}
.footer_col .footer_text {
  max-width: 350px;
  color: #999;
  margin: -0.8rem 3rem;
}
.footer_socials {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}
.footer_socials a {
  font-size: 1.8rem;
  text-decoration: none;
  padding: 3%;
}
.footer_socials a:hover {
  background-color: orangered;
}
.footer_col h4 {
  margin-bottom: 2rem;
  font-size: 1.8rem;
  font-weight: 600;
}
.footer_links {
  display: grid;
  gap: 1rem;
  list-style: none;
}
.footer_links a {
  text-decoration: none;
  color: #999;
}
.footer_links a:hover {
  color: orangered;
}
.footer_bar {
  padding: 1rem;
  font-size: 1rem;
  text-align: center;
}
/* scroll-up */
.top {
  background-color: orangered;
  font-size: 40px;
  padding: 0.5rem;
  position: fixed;
  border-radius: 10%;
  right: 5%;
  cursor: pointer;
  bottom: -50%;
}
.top:hover {
  transform: translateY(-0.6rem);
}
.top.show {
  bottom: 8%;
}

@media only screen and (max-width: 1050px) {
  .about_heading {
    gap: 0 2em;
  }
  .about_box,
  .boxes {
    gap: 1em;
  }
  .box1_text .btn {
    padding: 9px;
    font-size: 15px;
  }
  .left_box .heading {
    font-size: 2.5em;
  }

  .carousel-track {
    animation: scroll 60s linear infinite; /* Adjust duration as needed */
  }


  .carousel-item {
    margin-top: 50px !important;
    width: 33%;
  }
  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      /* Translate the width of one full set of items (50% of the track) */
      transform: translateX(-260%);
    }
  }
}
@media only screen and (max-width: 850px) {
  .nav_items {
    position: absolute;
    top: -1%;
    left: 0;
    width: 100%;
    padding: 5em 0em 2em 0;
    display: flex;
    align-items: center;
    text-align: center;
    flex-direction: column;
    gap: 0.9rem;
    background-color: #000;
    transition: 0.5s;
    z-index: -1;
    transform: translateY(-100%);
  }
  .nav_items.open {
    transform: translateY(0);
  }
  .item {
    flex-direction: column;
  }
  .nav_menu {
    display: block;
    font-size: 2em;
  }
  .boxes,
  .about_box {
    grid-template-columns: repeat(2, 1fr);
  }
.right_box {
  margin-top: 0vh !important;
  text-align: right;
}
  .contact_box {
    grid-template-columns: 1fr;
  }
  .footer_container {
    grid-template-columns: repeat(3, 1fr);
  }

  .carousel-item {
    margin-top: 50px !important;
    width: 70%;
  }
  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      /* Translate the width of one full set of items (50% of the track) */
      transform: translateX(-570%);
    }
  }
}
@media only screen and (max-width: 660px) {
  .about_heading {
    grid-template-columns: 1fr;
  }
  .about .para {
    grid-column: 1;
  }
  .boxes,
  .about_box {
    grid-template-columns: repeat(1, 1fr);
  }
  .footer_container {
    grid-template-columns: repeat(2, 1fr);
  }
  .navbar {
    padding: 2rem 2rem;
  }
  .heading {
    font-size: 3em;
  }
  .heading_1 {
    font-size: 2em;
  }

  .gallery-grid figure {
    margin: 0;
    width: 500%;
    height: auto;
    -webkit-transition: 1s;
    -moz-transition: 1s;
    transition: 1s;
    display: inline-block;
    position: relative;
    overflow: hidden;
  }
}
@media only screen and (max-width: 480px) {
  .footer_container {
    grid-template-columns: repeat(1, 1fr);
  }
  .btn {
    padding: 9px;
    font-size: 15px;
  }
  .main {
    width: 90%;
  }

  .gallery-grid figure {
    margin: 0;
    width: 100%;
    height: auto;
    -webkit-transition: 1s;
    -moz-transition: 1s;
    transition: 1s;
    display: inline-block;
    position: relative;
    overflow: hidden;
  }
}
