@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: #1f242d;
}

a {
  color: #fff;
  text-decoration: none;
}

.navbar {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  padding: 25px 9%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  visibility: hidden;
  opacity: 0;
  animation: show-content 1.5s linear forwards;
  animation-delay: 1.2s;
}

@keyframes show-content {
  100% {
    visibility: visible;
    opacity: 1;
  }
}

.logo {
  font-size: 30px;
  font-weight: 700;
}

.navbar ul {
  display: flex;
  gap: 35px;
}

.navbar ul li {
  list-style: none;
}
.navbar ul li a {
  font-size: 20px;
  font-weight: 500;
  transition: 5s;
}

.navbar ul li:hover a,
.navbar ul li.active a {
  color: #7cf03d;
}

.home {
  display: flex;
  align-items: center;
  height: 100vh;
  padding: 60px 9%;
  color: #fff;
  visibility: hidden;
  opacity: 0;
  animation: show-content 1.5s linear forwards;
  animation-delay: 1.6s;
  gap: 50px;
}

.home-info h1 {
  font-size: 56px;
}
.home-info h2 {
  display: inline-block;
  font-size: 32px;
  margin-top: -10px;
}

.home-info h2 span {
  display: inline-block;
  position: relative;
  color: transparent;
  -webkit-text-stroke: 0.7px #7cf03d;
  animation: display-text 16s linear infinite;
  animation-delay: calc(-4s * var(--i));
}

@keyframes display-text {
  25%,
  100% {
    display: none;
  }
}

.home-info h2 span::before {
  content: attr(data-text);
  position: absolute;
  width: 100%;
  border-right: 2px solid #7cf03d;
  color: #7cf03d;
  white-space: nowrap;
  overflow: hidden;
  animation: fill-text 16s linear infinite;
}

@keyframes fill-text {
  10%,
  100% {
    width: 0;
  }

  70%,
  90% {
    width: 100%;
  }
}

.home-info p {
  font-size: 16px;
  margin: 10px 0 25px;
}

.btn-social {
  display: flex;
  align-items: center;
}

.btn {
  display: inline-block;
  padding: 10px 30px;
  background: #7cf03d;
  border: 2px solid #7cf03d;
  border-radius: 40px;
  box-shadow: 0 0 10px #7cf03d;
  font-size: 16px;
  color: #1f242d;
  font-weight: 600;
  transition: 0.5s;
}

.btn:hover {
  background: transparent;
  color: #7cf03d;
  box-shadow: none;
}

.sci {
  margin-left: 20px;
}

.sci a {
  display: inline-flex;
  padding: 8px 13px;
  border: 2px solid #7cf03d;
  border-radius: 50%;
  font-size: 15px;
  color: #7cf03d;
  margin: 0 8px;
  transition: 0.5s;
}

.sci a:hover {
  background: #7cf03d;
  color: #1f242d;
  box-shadow: none;
  box-shadow: 0 0 10px #7cf03d;
}

.img-box {
  position: relative;
  width: 32vw;
  height: 32vw;
  border-radius: 50%;
  padding: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.img-box:before,
.img-box:after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: conic-gradient(transparent, transparent, transparent, #7cf03d);
  transform: rotate(0deg);
  animation: rotate-border 10s linear infinite;
}

.img-box:after {
  animation-delay: -5s;
}

@keyframes rotate-border {
  100% {
    transform: rotate(360deg);
  }
}

.img-box .img-item {
  position: relative;
  width: 100%;
  height: 100%;
  background: #1f242d;
  border-radius: 50%;
  border: 0.1px solid #1f242d;
  display: flex;
  justify-content: center;
  z-index: 1;
  overflow: hidden;
}

.img-box .img-item img {
  position: absolute;
  display: block;
  top: 30px;
  width: 160%;
  object-fit: cover;
  mix-blend-mode: lighten;
}

.bars-animation {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  z-index: -1;
}

.bars-animation .bar {
  width: 100%;
  height: 100%;
  background: #1f242d;
  transform: translateY(-100%);
  animation: show-bars 0.5s ease-in-out forwards;
  animation-delay: calc(0.1s * var(--i));
}

@keyframes show-bars {
  100% {
    transform: translateY(0%);
  }
}

html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 90px;
}

.section-title {
  text-align: center;
  color: #fff;
  font-size: 36px;
  margin-bottom: 40px;
}

.about,
.portfolio,
.service,
.contact {
  padding: 80px 9%;
  color: #fff;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  color: #d1d1d1;
  line-height: 1.7;
  margin-bottom: 20px;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.skill-tag {
  padding: 8px 18px;
  border: 1px solid #7cf03d;
  border-radius: 30px;
  color: #7cf03d;
  font-size: 14px;
}

.portfolio-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.portfolio-card {
  background: #262b35;
  border-radius: 12px;
  padding: 30px;
  transition: 0.4s;
}

.portfolio-card:hover {
  transform: translateY(-8px);
}

.portfolio-card h3 {
  color: #7cf03d;
  margin-bottom: 12px;
}

.portfolio-card p {
  color: #d1d1d1;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.portfolio-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.portfolio-card .tags span {
  font-size: 12px;
  padding: 4px 10px;
  background: #1f242d;
  border-radius: 20px;
  color: #d1d1d1;
}

.btn.small {
  padding: 8px 22px;
  font-size: 14px;
  box-shadow: none;
}

.service-card {
  background: #262b35;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: 0.4s;
}

.service-card:hover {
  transform: translateY(-8px);
}

.service-card i {
  font-size: 34px;
  color: #7cf03d;
  margin-bottom: 16px;
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 18px;
}

.service-card p {
  color: #d1d1d1;
  font-size: 14px;
  line-height: 1.6;
}

.contact-content {
  display: flex;
  gap: 60px;
  max-width: 900px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.contact-info,
.contact-form {
  flex: 1;
  min-width: 260px;
}

.contact-info p {
  color: #d1d1d1;
  margin-bottom: 16px;
  font-size: 16px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 16px;
  background: #262b35;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #7cf03d;
}

.contact-form button {
  align-self: flex-start;
  cursor: pointer;
}

@media (max-width: 768px) {
  .home {
    flex-direction: column;
    text-align: center;
    padding-top: 120px;
  }
  .img-box {
    width: 60vw;
    height: 60vw;
  }
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: #7cf03d;
  font-size: 28px;
  cursor: pointer;
  padding: 4px 8px;
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .navbar ul {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    gap: 0;
    background: #1f242d;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .navbar ul.open {
    max-height: 300px;
  }

  .navbar ul li {
    width: 100%;
    text-align: center;
  }

  .navbar ul li a {
    display: block;
    padding: 16px 9%;
  }
}
