@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap");
:root {
  --textColor: rgb(146, 146, 146);
  --bgColor: #0B1120;
  --mainColor: #fff;
  --cardColor:#10182b;
  --textGradient: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.53) 0%,
    rgba(255, 255, 255, 0.695312) 46.88%,
    rgba(255, 255, 255, 0.35) 100%
  );
}
@font-face {
  font-family: "grifter";
  src: url(../fonts/grifterbold.otf) format("opentype");
}

* {
  color: var(--textColor);
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  font-family: "poppins",Arial, Helvetica, sans-serif;
}
html {
  scroll-behavior: smooth;
  background: var(--bgColor);
}

.phone,
.noneInPc,
.phoneImageGradient {
  display: none !important;
}

button,
a {
  cursor: pointer;
}
.main-btn,
.sec-btn {
  width: fit-content;
  color: var(--bgColor);
  background-color: var(--mainColor);
  padding: 0.6rem 1rem;
  font-family: "grifter";
  border-radius: 30px;
  letter-spacing: 1px;
}
.main-btn:hover {
  background-color: rgb(238, 238, 238);
}
.main-btns{
  width: fit-content;
  color: white;
  background-color: transparent;
  padding: 0.6rem 1rem;
  font-family: "grifter";
  border-radius: 30px;
  border: 2px solid white;
  letter-spacing: 1px;
}
.sec-btn {
  border: 1px solid var(--mainColor);
  color: var(--mainColor);
  background-color: transparent;
  letter-spacing: 2px;
}

.topNav {
  padding: 1rem 5rem;
  display: flex;
  position: fixed;
  background-color: red;
  z-index: 99;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bgColor);
  box-shadow: 1px 1px 1px rgba(255, 255, 255, 0.212);
  animation: revealTopnav 1.6s; 
  
}

@keyframes revealTopnav {
    0%{
      transform: translateY(-100px);
    }
    50%{
      transform: translateY(-100px);
    }
    100%{
      transform: translateY(0);
    }
}
  
.links {
  display: flex;
  gap: 1rem;
  font-size: 14px;
}
.links a:hover {
  transition: 1s;
  color: var(--mainColor);
}

.cta {
  background-color: var(--cardColor);
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  align-items: center;
  padding: 4rem 6rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.cta p {
  font-size: 18px;
  font-weight: 500;
  color: rgb(219, 213, 213);
}
.cta button {
  font-size: 16px;
  padding: 0.7rem 1.7rem;
}
.socialMedia p {
  background: var(--textGradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}
.smIcons {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 2rem;
}
.smIcons img {
  opacity: 0.6;
}
.smIcons img:hover {
  opacity: 1;
}
.footer {
  text-align: center !important;
  margin-top: 4rem;
  padding: 1rem 1rem 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
}
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1.2rem;
  width: 100%;
}
.activeNav {
  color: var(--mainColor);
  text-decoration: underline;
}


.footerHidden {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(400px);
  transition: all 1s;
}

.footerShow {
  transform: translateY(0);
  opacity: 1;
  filter: blur(0);
}



/* for smart phones */
@media (max-width: 620px) {
  .pc,
  .noneInPhone {
    display: none !important;
  }
  .phone {
    display: flex !important;
    padding: 1rem !important;
  }
  .menu {
    width: 20px;
  }
  .topNav {
    
    padding: 1.5rem 1rem;
    background-color:#0b1120ef ;


  }
  .cta {
    padding: 3rem 1.2rem;
  }
  .cta p {
    font-size: 16px;
  }
  .socialMedia p {
    font-size: 14px;
  }
}



.work__card {
  width: 100%;
  height: 100%;
  background-color: #10182b;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  position: relative;
  overflow: hidden; /* Ensures the image doesn't zoom outside the container */
}

.work__card img {
  width: 100%;
  margin-bottom: 10px;
  transition: transform 0.3s ease; /* Smooth zoom effect */
}



.work__card .work__icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -120%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.work__card:hover .work__icons {
  opacity: 1;
  transform: translate(-50%, -120%); /* Centers the icons on hover */
}

.work__icons i {
  font-size: 1rem;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.7);
  padding: 15px;
  border-radius: 50%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work__icons i:hover {
  transform: scale(1.1);
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
}

.private {
   color: white !important;
   background: rgba(0, 0, 0, 0.7);
   padding: 15px;
   border-radius: 30px;

}



.dec{
  padding: 14px 16px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.144);
}

.dec h3{
  font-size: 18px;
  font-weight: 500;
  color: rgb(219, 213, 213);
  margin-bottom: 15px;
}



.custom-timeline {
  --col-gap: 2rem;
  --row-gap: 2rem;
  --line-w: 0.25rem;
  display: grid;
  grid-template-columns: var(--line-w) 1fr;
  grid-auto-columns: max-content;
  column-gap: var(--col-gap);
  list-style: none;
  width: min(60rem, 100%);
  margin-inline: auto;
}

.custom-timeline::before {
  content: "";
  grid-column: 1;
  grid-row: 1 / span 20;
  background: rgb(225, 225, 225);
  border-radius: calc(var(--line-w) / 2);
}

.custom-timeline li:not(:last-child) {
  margin-bottom: var(--row-gap);
}

.custom-timeline li {
  grid-column: 2;
  --inlineP: 1.5rem;
  margin-inline: var(--inlineP);
  grid-row: span 2;
  display: grid;
  grid-template-rows: min-content min-content min-content;
}

.custom-timeline li .date {
  --dateH: 3rem;
  height: var(--dateH);
  margin-inline: calc(var(--inlineP) * -1);
  text-align: center;
  background-color: var(--accent-color);
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  display: grid;
  place-content: center;
  position: relative;
  border-radius: calc(var(--dateH) / 2) 0 0 calc(var(--dateH) / 2);
}

.custom-timeline li .date::before {
  content: "";
  width: var(--inlineP);
  aspect-ratio: 1;
  background: var(--accent-color);
  background-image: linear-gradient(rgba(0, 0, 0, 0.2) 100%, transparent);
  position: absolute;
  top: 100%;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  right: 0;
}

.custom-timeline li .date::after {
  content: "";
  position: absolute;
  width: 2rem;
  aspect-ratio: 1;
  background: var(--bgColor);
  border: 0.3rem solid var(--accent-color);
  border-radius: 50%;
  top: 50%;
  transform: translate(50%, -50%);
  right: calc(100% + var(--col-gap) + var(--line-w) / 2);
}

.custom-timeline li .title,
.custom-timeline li .descr {
  background: var(--bgColor);
  position: relative;
  padding-inline: 1.5rem;
}

.custom-timeline li .title {
  overflow: hidden;
  padding-block-start: 1.5rem;
  padding-block-end: 1rem;
  font-weight: 500;
}

.custom-timeline li .descr {
  padding-block-end: 1.5rem;
  font-weight: 300;
}

.custom-timeline li .title::before,
.custom-timeline li .descr::before {
  content: "";
  position: absolute;
  width: 90%;
  height: 0.5rem;
  background: rgba(0, 0, 0, 0.5);
  left: 50%;
  border-radius: 50%;
  filter: blur(4px);
  transform: translate(-50%, 50%);
}

.custom-timeline li .title::before {
  bottom: calc(100% + 0.125rem);
}

.custom-timeline li .descr::before {
  z-index: -1;
  bottom: 0.25rem;
}

@media (min-width: 40rem) {
  .custom-timeline {
    grid-template-columns: 1fr var(--line-w) 1fr;
  }
  .custom-timeline::before {
    grid-column: 2;
  }
  .custom-timeline li:nth-child(odd) {
    grid-column: 1;
  }
  .custom-timeline li:nth-child(even) {
    grid-column: 3;
  }

  .custom-timeline li:nth-child(2) {
    grid-row: 2/4;
  }

  .custom-timeline li:nth-child(odd) .date::before {
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    left: 0;
  }

  .custom-timeline li:nth-child(odd) .date::after {
    transform: translate(-50%, -50%);
    left: calc(100% + var(--col-gap) + var(--line-w) / 2);
  }
  .custom-timeline li:nth-child(odd) .date {
    border-radius: 0 calc(var(--dateH) / 2) calc(var(--dateH) / 2) 0;
  }
}







/* Preloader Container */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bgColor); /* Background color (white in this case) */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow: hidden;
}


.loader {
  width: 48px;
  height: 48px;
  border: 3px dotted #FFF;
  border-style: solid solid dotted dotted;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  box-sizing: border-box;
  animation: rotation 2s linear infinite;
}
.loader::after {
  content: '';  
  box-sizing: border-box;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  border: 3px dotted #0a2ddc;
  border-style: solid solid dotted;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  animation: rotationBack 1s linear infinite;
  transform-origin: center center;
}
    
@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
} 
@keyframes rotationBack {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-360deg);
  }
} 


/* End Preloader */



