* {
  box-sizing: border-box;
  border: none;
  outline: none;
  font-family: "poppins", sans-serif;
}

body {
  background-color: black;
  width: 100%;
  height: 100vh;
  overflow-x: hidden;
  animation: fadeIn 1.5s forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px;
  margin: 20px;
}
.header h1 {
  color: white;
  margin: -8px;
  font-size: 40px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0px;
  padding: 0px;
}

nav ul li a {
  color: white;
  transition: 0.3s ease;
  text-decoration: none;
}

nav ul li a:hover {
  color: #3dca6c;
  transition: 0.3s ease-out;
}

nav ul li a {
  position: relative;
  transition: 0.3s ease;
}
nav ul li a::after {
  content: "";
  position: absolute;
  width: 0px;
  height: 2px;
  background-color: #3dca6c;
  left: 0;
  bottom: -5px;
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}
.txt h2 {
  font-size: 40px;
}

.txt h2 span {
  color: #3dca6c;
}
.home .content img {
  width: 40%;
  border-radius: 50%;
  transition: 0.3s ease;
}
.home .content {
  color: white;
}

.home .content .txt .namecolor {
  color: #3dca6c;
}

.home {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  padding: 20px;
  gap: 8rem;
}

.content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
}
.content {
  display: flex;
  align-items: center;
  gap: 30px;
  text-align: left;
}

.socialicone {
  display: flex;
  gap: 20px;
  width: 70%;
}

.socialicone a {
  display: inline-flex;
  width: 3rem;
  background-color: transparent;
  height: 3rem;
  border: 1px solid #3dca6c;
  align-items: center;
  border-radius: 50%;
  justify-content: center;
  font-size: 19px;
  transition: 0.3s ease;
}

.socialicone a:hover {
  background-color: #3dca6c;
  color: black;
  transform: scale(1.1) translateY(-5px);
  box-shadow: #3dca6c 0 0 25px;
}

.mybtn {
  margin-top: 30px;
  width: 200px;
  height: 45px;
  background-color: black;
  color: #3dca6c;
  border: 2px solid #3dca6c;
  border-radius: 30px;
  font-size: 1.4rem;
  padding: 0 15px;
  transition: 0.3s ease;
}

.mybtn:hover {
  background-color: #3dca6c;
  color: black;
  transform: scale(1.1);
  box-shadow: #3dca6c 0 0 25px;
}

.wave-container {
  position: relative;
  width: 100%;
  height: 100px;
  overflow: hidden;
  margin-top: 40px;
}

.wave {
  position: absolute;
  bottom: 0;
  width: 200%;
  height: 100%;
  animation: waveAnimation 6s linear infinite;
}

@keyframes waveAnimation {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Mobile devices */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    align-items: center;
    margin: 10px;
  }

  .header h1 {
    font-size: 30px;
    margin-bottom: 10px;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .home {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 10px;
  }

  .home .content img {
    width: 50%;
    max-width: 150px;
  }

  .content {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
  }

  .txt h2 {
    font-size: 60px;
  }

  .content h1 {
    font-size: 3rem;
  }

  .socialicone {
    width: 100%;
    justify-content: center;
  }

  .mybtn {
    width: 150px;
    font-size: 1.1rem;
    height: 40px;
    align-self: center;
  }
  nav ul li a:active,
  nav ul li a:focus {
    color: #3dca6c;
    outline: none;
  }

  .wave-container {
    display: inline;
    width: 100%;
    height: 100px;
    overflow: hidden;
    margin-top: 40px;
  }

  .wave {
    position: absolute;
    bottom: 0;
    width: 200%;
    height: 100%;
    animation: waveAnimation 6s linear infinite;
  }

  @keyframes waveAnimation {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }
}

/* Small phones */
@media (max-width: 480px) {
  .txt h2 {
    font-size: 40px;
  }

  .txt {
    font-size: larger;
    font-weight: bold;
  }
  .content h1 {
    font-size: 4rem;
  }

  .mybtn {
    width: 130px;
    font-size: 1rem;
    height: 35px;
  }

  .socialicone a {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 16px;
  }

  nav ul li a:active,
  nav ul li a:focus {
    color: #3dca6c;
    outline: none;
  }

  .wave-container {
    position: relative;
    width: 100%;
    height: 100px;
    overflow: hidden;
    margin-top: 40px;
  }

  .wave {
    position: absolute;
    bottom: 0;
    width: 200%;
    height: 100%;
    animation: waveAnimation 6s linear infinite;
  }

  @keyframes waveAnimation {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }
}

.services {
  text-align: center;
  color: white;
}
.services .serv {
  display: grid;
  grid-template-columns: repeat(2, 20rem);
  justify-content: center;
  gap: 10px;
  place-items: center;
  text-align: center;
}
/*
.serv .service-item{
  display: grid;
  grid-template-columns: repeat(1,17rem);
  place-items: center;
  text-align: center;
  background-color: #262b30;
  border: #262b30 1px solid;
  width: 20rem;
  height: 20rem;
  padding: 20px;
} */

.serv .service-item {
  display: flex;
  flex-direction: column;
  align-items: center; /* center horizontally */
  justify-content: center; /* center vertically */
  gap: -1px; /* space between texts */
  background-color: #072529;
  border: 1px solid #262b30;
  width: 285px;
  height: 20rem;
  padding: 20px;
  border-radius: 3%;
  transition: 0.3s ease;
}

.serv .service-item:hover {
  background-color: #1b9aaa;
  box-shadow: 0 0 25px #1b9aaa;
  transform: scale(1.1) translateY(-5px);
}

.body2::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(0, 255, 255, 0.15) 0%,
    transparent 60%
  );
  animation: floatWave 5s infinite ease-in-out;
  pointer-events: none;
}

@keyframes floatWave {
  0%,
  100% {
    transform: translateY(-100px);
  }
  50% {
    transform: translateY(-80px);
  }
}
.serv .service-item {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  animation: Cards 3s ease forwards;
}

.serv .service-item:nth-child(1) {
  animation-delay: 0.2s;
}
.serv .service-item:nth-child(2) {
  animation-delay: 0.4s;
}
.serv .service-item:nth-child(3) {
  animation-delay: 0.6s;
}
.serv .service-item:nth-child(4) {
  animation-delay: 0.8s;
}

@keyframes Cards {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.home .content img:hover {
  box-shadow: #3dca6c 0 0 25px;
  transition: 0.3s ease;
}

.projects {
  color: white;
}
.projects h1 {
  text-align: center;
}
.show {
  color: white;
  text-align: center;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  justify-content: center;
  background-color: dark;
  gap: 30px;
}
.show .project {
  color: white;
  width: 100%;
  overflow: hidden;
  border: 2px solid #3dca6c;
  box-shadow: #3dca6c 0 0 25px;
  height: 98%;
}

.show .project img {
  width: 100%;
  object-fit: cover;
  display: block;
}
