* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inconsolata", monospace;
  font-optical-sizing: auto;
  scroll-behavior: smooth;
}

:root {
  --mobile-padding: 20px;
}
/* ==============================header===============================*/
.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 100px 20px 100px;
  /* background-color: red; */
}
.nav-links {
  display: flex;
  gap: 40px;
  background-color: white;
  border-radius: 50px;
  padding: 10px 30px 10px 30px;
  position: fixed;
  top: 5%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px,
    rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
  z-index: 999;
}
.nav-links li a {
  text-decoration: none;
  color: black;
  font-size: 20px;
  font-weight: 700;
}
.nav-links li {
  list-style-type: none;
}
button {
  border: none;
  border-radius: 18px;
  padding: 10px;
  background-color: rgba(255, 255, 255, 0);
}
.logo a {
  text-decoration: none;
  color: black;
}
.c-t-a button {
  color: white;
  background-color: black;
  padding-inline: 20px;
}
button:hover {
  background-color: rgb(198, 198, 199);
  /* color: lightgray;  */
}
.c-t-a button:hover {
  background-color: rgb(49, 49, 49);
  color: rgb(255, 255, 255);
}
.c-t-a button a {
  text-decoration: none;
  color: white;
}
/* -------------------------hero section -----------------------------------------------*/

.container {
  background-image: url("../assets/images/heroo.png");
  height: 80vh;
  background-repeat: no-repeat;
  background-position: right;
  background-size: contain;
}
.hero-sec {
  display: flex;
  max-width: 1200px;
  gap: 20px;
  justify-content: start;
  align-items: center;
  margin-left: 120px;
  margin-top: 80px;
}
.headline {
  font-size: 90px;
  max-width: 500px;
}
.sub-headline {
  max-width: 500px;
  font-size: 40px;
}

img {
  height: 100%;
  width: 100%;
}
.sub-image {
  height: 200px;
  width: 200px;
}
.card1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  font-size: 30px;
}
.sub-card {
  display: flex;
  flex-direction: column;
  padding-inline: 200px;

  font-size: 20px;
  padding-top: 30px;
  text-align: center;
  font-style: italic;
  margin-bottom: 75px;
}
.sub-card p {
  line-height: 1.6;
}
.typewriter-animation {
  animation: 
    typewriter 5s steps(50) 1s 1 normal both, 
    blinkingCursor 500ms steps(50) infinite normal;
}
@keyframes typewriter {
  from { width: 0; }
  to { width: 100%; }
}
@keyframes blinkingCursor{
  from { border-right-color: rgba(255,255,255,.75); }
  to { border-right-color: transparent; }
}
.cursor{
    position: relative;
    width: 24em;
    margin: 0 auto;
    border-right: 2px solid rgba(255,255,255,.75);
    font-size: 30px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    transform: translateY(-50%);
}
.c-a button {
  color: white;
  background-color: black;
  padding-inline: 40px;
  margin: 10px;
  font-size: 20px;
}

/* Media Queries for Responsive Design */
@media screen and (max-width: 768px) {
  .nav-bar {
    padding: 20px var(--mobile-padding);
    flex-direction: column;
    gap: 20px;
  }

  .nav-links {
    /* position: static; */

    /* flex-wrap: wrap; */
    justify-content: center;
    /* width: 100%; */
    gap: 10px;
    position: fixed;
    left: 50%;
    bottom: 15px;
    top: unset !important;
    z-index: 999;
  }

  .c-t-a {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .hero-sec {
    margin-left: var(--mobile-padding);
    margin-right: var(--mobile-padding);
    text-align: center;
    flex-direction: column;
  }

  .headline {
    font-size: 40px;
    max-width: 100%;
  }

  .sub-headline {
    font-size: 20px;
    max-width: 100%;
  }

  .container {
    background-size: contain;
    background-position: right;
    height: auto;
    padding: 40px 0;
  }

  .sub-card {
    padding-inline: var(--mobile-padding);
  }

  .card1 {
    padding: 20px var(--mobile-padding);
  }

  .sub-image {
    height: 150px;
    width: 150px;
  }
}

/* Small mobile devices */
@media screen and (max-width: 480px) {
  .nav-links {
    gap: 5px;
    padding: 5px 10px;
  }

  .nav-links button {
    padding: 8px;
  }

  .headline {
    font-size: 32px;
  }

  .sub-headline {
    font-size: 18px;
  }
}

/* ================work=========== */
/* * {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
} */

.work {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  overflow: hidden;
}

.about-title {
  font-size: 7.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  /* position: absolute;
	top: 45px;
	left: 50%;
	transform: translateX(-50%); */
  pointer-events: none;
  white-space: nowrap;
  /* font-family: "Arial Black", "Arial Bold", Arial, sans-serif; */
  background: linear-gradient(
    to bottom,
    rgb(5 11 24 / 35%) 30%,
    rgb(255 255 255 / 0%) 76%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.carousel-container {
  width: 100%;
  max-width: 1200px;
  height: 450px;
  position: relative;
  perspective: 1000px;
  margin-top: -47px;
}

.carousel-track {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card {
  position: absolute;
  width: 280px;
  height: 380px;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card.center {
  z-index: 10;
  transform: scale(1.1) translateZ(0);
}

.card.center img {
  filter: none;
}

.card.left-2 {
  z-index: 1;
  transform: translateX(-400px) scale(0.8) translateZ(-300px);
  opacity: 0.7;
}

.card.left-2 img {
  filter: grayscale(100%);
}

.card.left-1 {
  z-index: 5;
  transform: translateX(-200px) scale(0.9) translateZ(-100px);
  opacity: 0.9;
}

.card.left-1 img {
  filter: grayscale(100%);
}

.card.right-1 {
  z-index: 5;
  transform: translateX(200px) scale(0.9) translateZ(-100px);
  opacity: 0.9;
}

.card.right-1 img {
  filter: grayscale(100%);
}

.card.right-2 {
  z-index: 1;
  transform: translateX(400px) scale(0.8) translateZ(-300px);
  opacity: 0.7;
}

.card.right-2 img {
  filter: grayscale(100%);
}

.card.hidden {
  opacity: 0;
  pointer-events: none;
}

.member-info {
  text-align: center;
  margin-top: 40px;
  transition: all 0.5s ease-out;
}

.member-name {
  color: rgb(20, 21, 24);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.member-name::before,
.member-name::after {
  content: "";
  position: absolute;
  top: 100%;
  width: 100px;
  height: 2px;
  background: rgb(57, 60, 66);
}

.member-name::before {
  left: -120px;
}

.member-name::after {
  right: -120px;
}

.member-role {
  color: #848696;
  font-size: 1.5rem;
  font-weight: 500;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 10px 0;
  margin-top: -15px;
  position: relative;
}
.dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 60px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(8, 42, 123, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: rgb(0, 0, 0);
  transform: scale(1.2);
}

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(17, 18, 20, 0.6);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s ease;
  font-size: 1.5rem;
  border: none;
  outline: none;
  padding-bottom: 4px;
}

.nav-arrow:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.nav-arrow.left {
  left: 20px;
  padding-right: 3px;
}

.nav-arrow.right {
  right: 20px;
  padding-left: 3px;
}

@media (max-width: 768px) {
  .about-title {
    font-size: 4.5rem;
  }

  .card {
    width: 200px;
    height: 280px;
  }

  .card.left-2 {
    transform: translateX(-250px) scale(0.8) translateZ(-300px);
  }

  .card.left-1 {
    transform: translateX(-120px) scale(0.9) translateZ(-100px);
  }

  .card.right-1 {
    transform: translateX(120px) scale(0.9) translateZ(-100px);
  }

  .card.right-2 {
    transform: translateX(250px) scale(0.8) translateZ(-300px);
  }

  .member-name {
    font-size: 2rem;
  }

  .member-role {
    font-size: 1.2rem;
  }

  .member-name::before,
  .member-name::after {
    width: 50px;
  }

  .member-name::before {
    left: -70px;
  }

  .member-name::after {
    right: -70px;
  }
}
/* ===============skill======================== */
.skill-section {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  /* height: 90vh; */
  margin-top: 70px !important;
  background-color: rgba(88, 88, 88, 0.13);
  border-radius: 50px;
  max-width: 1400px;
  margin: auto;
  padding: 20px 0px 20px 0px;
}
.skill-title {
  text-align: center;
  font-size: 25px;
  line-height: 2;
  margin-bottom: 50px;
}
.skill {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 200px 200px;
  gap: 15px;
}
.item2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* grid-template-rows: 10px; */
  align-items: center;
  justify-items: center;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 50px;
  border-radius: 25px;
  transition: transform 0.4s ease;
}
.item2-1:hover {
  transform: scale(1.2);
}
.item2:hover {
  transform: scale(1.2);
}
.item2-1 {
  height: 70px;
  width: 70px;
  /* box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 50px; */
  transition: transform 0.4s ease;
}
.item1 {
  transition: transform 0.4s ease;
}
.item1:hover {
  transform: scale(1.2);
}
@media screen and (max-width: 768px) {
  .skill {
    max-width: 350px;
    margin: auto;
  }
  .skill-section {
    margin-top: 20px !important;
    padding: 10px 18px 25px 18px;
    max-width: 370px;
  }
}
/* ================contact================= */
.contact {
  display: flex;
  justify-content: center;
  align-items: center;
}

.social-links {
  list-style: none;
  gap: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-items: center;
  padding: 50px 10px 110px 75px;
}

.out-contact {
  margin-top: 100px !important;
  border: 1px solid rgb(97, 95, 95);
  border-radius: 15px;
  max-width: 700px;
  margin: auto;
  background-image: url(../assets/images/contact.png);
  background-position: bottom;
  background-size: contain;
  background-repeat: no-repeat;
  padding-inline: 100px;
}

.out-contact h2 {
  font-size: 30px;
  margin-bottom: 20px;
  padding: 10px;
  position: absolute;
  translate: 40px -27px;
  background: white;
  border-radius: 10px;
}
.icon-img {
  height: 40px;
  width: 40px;
  /* display: flex;
  flex-direction: row; */
}

.in-contact {
  /* display: none; */
  flex: 2;
  box-shadow: rgba(0, 0, 0, 0.15) 2.4px 2.4px 3.2px;
  border-radius: 15px;
  padding: 40px 50px 40px 50px;
  background-color: rgba(0, 0, 0, 0.877);
  color: white;
}

.in-contact form {
  display: flex;
  flex-direction: column;
}

.in-contact label {
  margin-bottom: 5px;
  font-weight: bold;
}

.in-contact input,
.in-contact textarea {
  margin-bottom: 15px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.in-contact button {
  padding: 10px 15px;
  background-color: rgb(57, 60, 66);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.in-contact button:hover {
  background-color: rgb(20, 21, 24);
}
.contact-card {
  display: flex;

  margin-top: 50px;
  align-items: center;
  gap: 100px;
  /* font-size: 30px; */
  margin-bottom: 50px;
}
.in-contact h2 {
  font-size: 35px;
  text-align: center;
  margin-bottom: 20px;
}
@media screen and (max-width: 768px) {
  .contact-card {
    flex-direction: column;
    gap: 50px;
  }
  .out-contact {
    padding-inline: 80px;
  }
}

/*============================== footer========================== */
footer {
  background-color: rgba(0, 0, 0, 0.877);
  color: white;
  text-align: center;
  padding: 20px 0;
}

/* ---------productpage----------- */

.flip {
  position: relative;
  display: inline-block;
  margin-right: 2px;
  margin-bottom: 1em;
  width: 400px;
}

.flip .front,
.flip .back {
  display: block;
  color: white;
  width: 100%;
  height: 220px;
  padding: 1em 2em;
  background: #313131;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              opacity 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.flip .front {
  transform: rotateY(0deg);
}

.flip .back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: rotateY(-180deg);
}

.flip:hover .front {
  transform: rotateY(180deg);
}

.flip:hover .back {
  opacity: 1;
  transform: rotateY(0deg);
}

/* Vertical flip variation */
.flip.flip-vertical .back {
  transform: rotateX(-180deg);
}

.flip.flip-vertical:hover .front {
  transform: rotateX(180deg);
}

.flip.flip-vertical:hover .back {
  opacity: 1;
  transform: rotateX(0deg);
}

/* Paragraph inside card */
.flip p {
  font-size: 0.9125rem;
  line-height: 160%;
  color: #999;
}


.text-shadow {
  text-shadow: 1px 1px rgba(0, 0, 0, 0.04), 2px 2px rgba(0, 0, 0, 0.04),
    3px 3px rgba(0, 0, 0, 0.04), 4px 4px rgba(0, 0, 0, 0.04),
    0.125rem 0.125rem rgba(0, 0, 0, 0.04), 6px 6px rgba(0, 0, 0, 0.04),
    7px 7px rgba(0, 0, 0, 0.04), 8px 8px rgba(0, 0, 0, 0.04),
    9px 9px rgba(0, 0, 0, 0.04), 0.3125rem 0.3125rem rgba(0, 0, 0, 0.04),
    11px 11px rgba(0, 0, 0, 0.04), 12px 12px rgba(0, 0, 0, 0.04),
    13px 13px rgba(0, 0, 0, 0.04), 14px 14px rgba(0, 0, 0, 0.04),
    0.625rem 0.625rem rgba(0, 0, 0, 0.04), 16px 16px rgba(0, 0, 0, 0.04),
    17px 17px rgba(0, 0, 0, 0.04), 18px 18px rgba(0, 0, 0, 0.04),
    19px 19px rgba(0, 0, 0, 0.04), 1.25rem 1.25rem rgba(0, 0, 0, 0.04);
}
.project-page {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-top: 50px;
  /* gap: 20px; */
  margin-bottom: 20px;
}

.project-page h3 {
  font-size: 5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  white-space: nowrap;
  background: linear-gradient(90deg, #d8d8d8, #000, #e4e2e2);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  cursor: pointer;
  margin-bottom: 10px;
  text-wrap: auto
  ;
}

/* Trigger animation only on hover */
.project-page h3:hover {
  animation: sweep 1s linear forwards;
}

/* Define the sweep effect */
@keyframes sweep {
  0% {
    background-position: left center;
  }
  100% {
    background-position: right center;
  }
}

/* project-detail */
.project-detail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: background-color 0.3s ease-in-out;
}

.project-detail.active {
    background-color: rgba(0, 0, 0, 0.9);
}

.p-card {
    background: white;
    color: #333;
    max-width: 1200px;
    width: 90%;
    display: flex;
    gap: 50px;
    padding: 40px;
    border-radius: 20px;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.project-detail.active .p-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.p-sub-image {
    flex: 1;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
}

.p-sub-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.p-sub-image img:hover {
    transform: scale(1.05);
}

.p-sub-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.p-sub-text h2 {
    font-size: 2.5rem;
    color: #222;
    margin-bottom: 10px;
}

.p-sub-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
}

.p-sub-text button {
    margin-top: auto;
    align-self: flex-start;
    background-color: #333;
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.p-sub-text button:hover {
    background-color: #555;
    transform: translateY(-2px);
}

@media (max-width: 580px) {
    .p-card {
        flex-direction: column;
        padding: 25px;
        gap: 30px;
        margin: 20px;
    }

    .p-sub-image img {
        height: 200px;
         width: 100%;
    }

    .p-sub-text h2 {
        font-size: 2rem;
    }

    .p-sub-text {
        gap: 20px;
    }
    .p-sub-text p {
        font-size: 15px;
        line-height: 1.2;
    }
    .project-page {
      max-width: 350px;
      margin: auto;
    }
    .project-page h3 {
      font-size: 40px;
      text-align: center;
    }
    .flip  {
      /* height: 180px; */
      overflow: hidden;
      width: 350px;
      margin-right: 2px;
    }
}