* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

}

body {
  color: #ededed;
  background: #081b29;
  
  font-family: "Libre Baskerville", serif;
  font-optical-sizing: auto;
  /* font-weight: <weight>; */
  /* font-style: normal; */
}

img {
  width: 100%;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: #051129;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.logo {
  position: relative;
  font-size: 1.5em;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  cursor: default;
  opacity: 0;
  animation: slideRight 1s ease forwards;
}

.navbar a {
  display: inline;
  font-size: 1.5em;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  margin-left: 2.25em;
  transition: 0.3s;
  opacity: 0;
  animation: slideTop 0.5s ease forwards;
  animation-delay: calc(0.2s * var(--i));
}
.navbar a:hover {
  color: #0ef;
}

.highlight {
  position: relative;
  font-weight: 600;
}

.highlight::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 3px;
  background: #0071e3;
  border-radius: 2px;
}

.home {
  position: relative;
  justify-content: space-between;
  height: 100vh;
  background: #030d16;
  background-size: cover;
  display: flex;
  align-items: center;
  padding: 4.5em 10% 0;
}

.home-content {
  max-width: 600px;
}
.home-content h3 {
  font-size: 2em;
  font-weight: 600;
  opacity: 0;
  animation: slideBottom 1s ease forwards;
  animation-delay: 0.7s;
}

.home-content h3:nth-of-type(2) {
  margin-bottom: 30px;
  animation: slideLeft 1s ease forwards;
  animation-delay: 0.7s;
}
.home-content h3 span {
  color: #0ef;
}

.home-content h1 {
  font-size: 2em;
  font-weight: 700;
  margin: -3px 0;
  opacity: 0;
  animation: slideBottom 1s ease forwards;
  animation-delay: 1s;
}

.home-content p {
  font-size: 1.25em;
  opacity: 0;
  animation: slideLeft 1s ease forwards;
  animation-delay: 0.7s;
}
.home-sci a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 2px solid #0ef;
  color: #0ef;
  border-radius: 50%;
  font-size: 1.25em;
  text-decoration: none;
  margin: 30px 15px 30px 0;
  transition: 0.5s ease;
  opacity: 0;
  animation: slideLeft 1s ease forwards;
  animation-delay: calc(0.2s * var(--i));
}

.home-sci a:hover {
  background-color: #0ef;
  color: #081b29;
  box-shadow: 0 0 20px #0ef;
}

.btn-box {
  display: inline-block;
  padding: 12px 28px;
  background: #0ef;
  border-radius: 999px;
  font-size: 1em;
  color: #081b29;
  letter-spacing: 1px;
  text-decoration: none;
  font-weight: 600;
  opacity: 0;
  animation: slideTop 1s ease forwards;
  animation-delay: calc(0.2s * var(--i));
  box-shadow: 0 0 5px #0ef;
}

.btn-box:hover {
  box-shadow:
    0 0 10px #0ef,
    0 0 30px #0ef,
    0 0 60px #0ef;
  transform: translateY(-3px) scale(1.03);
}

.about {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  justify-content: center;
  align-items: center;
  gap: 1.5em;
  padding-bottom: 6em;
}

.about-img {
  display: flex;
  justify-content: center;
}
.about-img img {
  width: 350px;
  height: 350px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #0ef;
  box-shadow:
    0 0 10px #0ef,
    0 0 30px #0ef,
    0 0 60px #0ef;
}

.about-text h2 {
  font-size: 2em;
  padding: 16px;
}

.about-text h2 span {
  color: #0ef;
}

.about-text h4 {
  font-size: 1.5em;
  font-weight: 600;
  color: #fff;
  line-height: 1.7;
  margin: 1em 0 2.5em;
}

.about-text p {
  color: aliceblue;
  font-size: 1.25em;
  line-height: 1.4;
  margin-bottom: 2em;
}

#services {
  color: aliceblue;
  font-size: 1.5em;
  line-height: 1.5;
}

.sub-title {
  text-align: center;
  font-size: 2.5em;
  padding-bottom: 70px;
}

.sub-title span {
  color: #0ef;
}

.container {
  padding: 90px;
}

.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(259px, 1fr));
  margin-top: 2em;
}

.services-list div {
  background: transparent;
  padding: 40px;
  font-size: 0.75em;
  font-weight: 600;
  border-right: 10px solid transparent;
  border-radius: 20px;
  transition:
    background 0.5s ease,
    transform 0.5s ease;
  box-shadow:
    1px 1px 20px #012290f7,
    1px 1px 40px #0053b8f7;
}

.services-list div i {
  font-size: 50px;
  margin-bottom: 15px;
  transition: transform 0.5s ease;
}

.services-list div h2 {
  font-size: 2.25em;
  font-weight: 500;
  margin-bottom: 15px;
}

/* .services-list div a{
    text-decoration: none;
    color: #000000;
    font-size: .75em;
    margin-top: 20px;
    display: inline-block;
} */

.read {
  display: inline-block;
  padding: 12px 20px;
  background: #0ef;
  font-size: 1em;
  border-radius: 40px;
  color: #081b29;
  letter-spacing: 1px;
  text-decoration: none;
  margin-top: 20px;
  font-weight: 600;
  opacity: 0;
  animation: slideTop 0.5s ease forwards;
  animation-delay: 2s;
  box-shadow:
    0 0 5px #0ef,
    0 0 25px #0ef;
}

.read:hover {
  box-shadow:
    0 0 5px cyan,
    0 0 25px cyan,
    0 0 200px cyan;
}

.services-list div:hover {
  transform: translateY(-10px);
}

/* section {
  display: flex;
  flex-wrap: wrap;
} */

.container1 {
  width: 600px;
  height: 500px;
  padding: 75px 90px;
  margin-left: 120px;
}

.heading1 {
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 10px;
  text-decoration-thickness: 5px;
  margin-bottom: 30px;
}

.bar {
  font-size: 1.5em;
}

.technical-bars .bar {
  margin: 40px 0;
}

.technical-bars .bar:first-child {
  margin-top: 0;
}

.technical-bars .bar:last-child {
  margin-bottom: 0;
}

.technical-bars .bar .info {
  margin-bottom: 5px;
}
.technical-bars .bar .info span {
  font-size: 17px;
  font-weight: 500;
  animation: showText 0.5s 1s linear forwards;
  opacity: 0;
}
.technical-bars .bar .progress-line {
  position: relative;
  border-radius: 10px;
  height: 5px;
  background-color: #000000;
  animation: animate 1s cubic-bezier(1, 0, 0.5, 1) forwards;
  transform: scaleX(0);
  transform-origin: left;
}

@keyframes animate {
  100% {
    transform: scaleX(1);
  }
}

.technical-bars .bar .progress-line span {
  height: 100%;
  background-color: #0ef;
  position: absolute;
  border-radius: 10px;
  animation: animate 1s 1s cubic-bezier(1, 0, 0.5, 1) forwards;
  transform-origin: left;
}

.progress-line.html span {
  width: 98%;
}

.progress-line.css span {
  width: 95%;
}

.progress-line.javascript span {
  width: 91%;
}

.progress-line.react span {
  width: 88%;
}

.progress-line.node span {
  width: 85%;
}

.progress-line span::after {
  content: "";
  position: absolute;
  right: 0; /* aligns label to end */
  padding: 1px 8px;
  background-color: #000;
  color: #fff;
  font-size: 0.75em;
  border-radius: 3px;
  top: -28px;
  animation: showText 0.5s 1.5s linear forwards;
  opacity: 0;
}

.progress-line.html span::after {
  content: "98%";
}

.progress-line.css span::after {
  content: "95%";
}

.progress-line.javascript span::after {
  content: "91%";
}

.progress-line.react span::after {
  content: "88%";
}

.progress-line.node span::after {
  content: "85%";
}

.progress-line span::before {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border: 7px solid transparent;
  border-bottom-width: 0%;
  border-right-width: 0%;
  border-top-color: #000;
  top: -10px;
  right: 0;
  animation: showText 0.5s 1.5s linear forwards;
  opacity: 0;
}
@keyframes showText {
  100% {
    opacity: 1;
  }
}

.radial-bars {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: flex-start;
}

.radial-bars .radial-bar {
  width: 50%;
  height: 170px;
  margin-bottom: 10px;
  position: relative;
}
.radial-bars .radial-bar svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  width: 120px;
  height: 160px;
}

.radial-bars .radial-bar .progress-bar {
  stroke-width: 10;
  stroke: #000;
  fill: transparent;
  stroke-dasharray: 502;
  stroke-dashoffset: 502;
  stroke-linecap: round;
  animation: animation-bar 1s linear forwards;
}

@keyframes animation-bar {
  100% {
    stroke-dashoffset: -1;
  }
}

.path {
  stroke-width: 10;
  stroke: #0ef;
  fill: transparent;
  stroke-dasharray: 502;
  stroke-dashoffset: 502;
  stroke-linecap: round;
}

.path-1 {
  animation: animation-path1 1s linear forwards;
}

.path-2 {
  animation: animation-path2 1s linear forwards;
}

.path-3 {
  animation: animation-path3 1s linear forwards;
}

.path-4 {
  animation: animation-path4 1s linear forwards;
}

.path-5 {
  animation: animation-path5 1s linear forwards;
}

@keyframes animation-path1 {
  100% {
    stroke-dashoffset: 90;
  }
}

@keyframes animation-path2 {
  100% {
    stroke-dashoffset: 95;
  }
}

@keyframes animation-path3 {
  100% {
    stroke-dashoffset: 90;
  }
}

@keyframes animation-path4 {
  100% {
    stroke-dashoffset: 90;
  }
}

@keyframes animation-path5 {
  100% {
    stroke-dashoffset: 90;
  }
}

.skills-section {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 50px;
}

.container1{
    max-width: 100%;
    width: 600px;
}
.radial-bar .persentage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.25em;
  font-weight: 500;
  animation: showText 0.5s 1.5s linear forwards;
  opacity: 0;
}

.radial-bar .text {
  width: 100%;
  position: absolute;
  text-align: center;
  left: 50%;
  bottom: -5px;
  transform: translateX(-50px);
  font-size: 1.25em;
  font-weight: 500;
  animation: showText 0.5s 1.5s linear forwards;
  opacity: 0;
}

.main-text {
  padding-top: 130px;
  margin-top: 100px;
}

.main-text h2 {
  font-size: 2em;
  line-height: 1;
  text-align: center;

}

.main-text h2 span {
  color: #0ef;
}

#portfolio {
  width: 100%;
}

.portfolio-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 350px));
  justify-content: center;   /* centers horizontally */
  gap: 30px;                 /* space between cards */
  padding: 0 20px;           /* optional side spacing */
}

.portfolio-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 350px));
  justify-content: center;
  gap: 30px;
}

.row {
    width: 100%;
    max-width: 350px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}

.row img {
  width: 100%;
  border-radius: 8px;
  display: block;
  transition: transform 0.5s;
}

.layer {
  width: 100%;
  height: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.1), #0ef);
  position: absolute;
  border-radius: 8px;
  left: 0;
  bottom: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 40px;
  transition: height 0.5s;
}

.layer h5 {
  color: #000;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
}

.layer p {
  color: #000;
  font-size: 1em;
  line-height: 1.8;
}

.layer i {
  color: #ff004f;
  margin-top: 20px;
  font-size: 1.25em;
  background: #fff;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.row:hover img {
  transform: scale(1.1);
}

.row:hover .layer {
  height: 100%;
}

.contact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 48px;
  padding-left: 30px;
  margin-top: 130px;
}

.contact-text h2 {
  font-size: 2em;
  line-height: 1;
  text-align: left;
}
.contact-text h2 span {
  color: #0ef;
}

.contact-text h4 {
  margin: 15px;
  color: #e4e4e4;
  font-size: 20px;
  font-weight: 600;
}

.contact-text p {
  color: #757575;
  font-size: 20px;
  line-height: 30px;
  margin-bottom: 2em;
}

.contact-list {
  margin-bottom: 48px;
}

.contact-list li {
  margin-bottom: 10px;
  display: block;
}

.contact-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.contact-list i {
  color: #0ef;
  display: inline-block;
  font-size: 1.25em;
  font-weight: 600;
  transition: all 0.4s ease;
}
.contact-icons i {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 2px solid #0ef;
  border-radius: 50%;
  font-size: 20px;
  color: #0ef;
  text-decoration: none;
  margin: 30px 15px 30px 0;
  transition: 0.5s ease;
  opacity: 0;
  animation: slideLeft 1s ease forwards;
  animation-delay: calc(0.2s * var(--i));
}

.contact-icons i:hover {
  background: #0ef;
  color: #000;
  box-shadow: 0 0 20px #0ef;
}

.contact-form form {
  position: relative;
}

.contact-form input:focus,
.contact-form textarea:focus {
  box-shadow: 0 0 10px #0ef;
}
.contact-form form input,
form textarea {
  border: none;
  outline: none;
  width: 90%;
  padding: 18px;
  font-size: 1em;
  font-weight: 600;
  margin-bottom: 10px;
  border-radius: 10px;
}
.contact-form textarea {
  resize: none;
  height: 220px;
}

.contact-form form .send {
  display: inline;
  padding: 14px 60px;
  background: #0ef;
  text-decoration: none;
  font-size: 1em;
  font-weight: 600;
  opacity: 0;
  animation: slideTop 1s ease forwards;
  animation-delay: 2s;
  box-shadow:
    0 0 5px #0ef,
    0 0 20px #0ef;
}

.contact-form form .send:hover {
  box-shadow:
    0 0 5px cyan,
    0 0 25px cyan,
    0 0 200px cyan;
}

.last-text p {
  width: 100%;
  text-align: center;
  padding: 25px 0;
  background: rgb(7, 85, 91);
  font-weight: 300;
  margin-top: 70px;
}

.top i {
  position: fixed;
  right: 25px;
  bottom: 25px;
  font-size: 1.5em;
  color: #0ef;
}

@keyframes slideRight {
  0% {
    transform: translateX(-100px);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideTop {
  0% {
    transform: translateY(-100px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideBottom {
  0% {
    transform: translateY(-100px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* @keyframes slideRight {
  0% {
    transform: translateY(-100px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
} */

@keyframes slideLeft {
  0% {
    transform: translateX(100px);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .contact {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .contact-text h2 {
    text-align: center;
  }
}
