@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  scroll-behavior: smooth;
  font-family: "Poppins", "sans-serif";
}

:root {
  --bg-color: #1f242d;
  --second-bg-color: #323946;
  --text-color: #FFF;
  --main-color: #00ff33;
  --footer-text-color: #6b7078;
}


main {
  width: 100%;
}


html {
  font-size: 65.2%;
  overflow-x: hidden;
  width: 100%;
}

body {
  position: relative;
  background-color: var(--bg-color);
  color: var(--text-color);
  width: 100%;
  height: 100%;
}


section {
  min-height: 80vh;
  padding: 10rem 9%;
}

span {
  color: var(--main-color);
}


h3 {
  font-size: 2rem;
  font-weight: 500;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 9%;
  background: var(--bg-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.logo {
  font-size: 2.5rem;
  color: var(--text-color);
  font-weight: 600;
  cursor: default;
}

.navbar a {
  font-size: 1.5rem;
  color: var(--text-color);
  margin-left: 4rem;
  transition: 0.3s;
}

.navbar a:hover,
.navbar a.active {
  color: var(--main-color);
  transition: 0.4s;
}

.home {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem
}

.home-content {
  padding-right: 5rem;
}

.home-content h3 {
  font-size: 3.2rem;
  font-weight: 700;
}

.home-content h3:nth-of-type(2) {
  margin-bottom: 2rem;
}

.home-content h1 {
  font-size: 5.1rem;
  font-weight: 700;
  line-height: 1.3;
}

.home-content p {
  font-size: 1.6rem;
}

.social-media a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 4rem;
  font-size: 2.8rem;
  height: 4rem;
  background: transparent;
  border: .2rem solid var(--main-color);
  border-radius: 50%;
  color: var(--main-color);
  margin: 3rem 1.5rem 3rem 0;
  transition: .5s;
}

.social-media a:hover {
  color: var(--bg-color);
  background-color: var(--main-color);
  box-shadow: 0 0 1rem var(--main-color);
  transition: .6s;
}

.home-image img {
  width: 35vw;
}

.btn {
  display: inline-block;
  padding: 1rem 2.8rem;
  background: var(--main-color);
  border-radius: 4rem;
  box-shadow: 0 0 1rem var(--main-color);
  font-size: 1.6rem;
  color: var(--second-bg-color);
  font-weight: 600;
  transition: .5s ease;
}

.btn:hover {
  box-shadow: none;
  transition: .6s ease;
}

.about {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  background: var(--second-bg-color);
}

.about-image img {
  width: 35vw;
}

.heading {
  text-align: center;
  font-size: 4.5rem;
}

.heading::before {
  transform: translateX(-100%);
  color: rgba(0, 0, 0, 0);
  transition: 0.8s;
}

.sub-heading {
  font-size: 2.5rem;
}

.sub-heading::before {
  transform: translateX(-100%);
  color: rgba(0, 0, 0, 0);
  transition: 0.8s;
}

.about-content h2 {
  text-align: left;
  line-height: 1.2;
}

.about-content h3 {
  font-size: 2.5rem;
}

.about-content p {
  font-size: 1.6rem;
  margin: 2rem 0 3rem;
}

.projects {
  display: flex;
  flex-direction: column;
}

.projects h2 {
  margin-bottom: 5rem;
}

.projects-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.projects-container .project-box {
  flex: 1 1 30rem;
  background: var(--second-bg-color);
  padding: 3rem 2rem 4rem;
  border-radius: 2rem;
  text-align: center;
  border: .2rem solid var(--bg-color);
  transition: 0.5s;
  min-height: 15rem;
  max-width: 100vw;
  min-width: 50rem;
}


.project-box i {
  font-size: 7rem;
  color: var(--main-color);
}

.project-box .icon-svg {
  width: 7rem;
  height: 7rem;
  fill: var(--main-color);
  /* Ensure the color is inherited */
  display: inline-block;
  color: var(--main-color);
  /* Set the color to your --main-color variable */
}

.project-box h3 {
  font-size: 2.6rem;
}

.project-box p {
  font-size: 1.6rem;
  margin: 1rem 0 3rem;
}

.projects-container .project-box:hover {
  border-color: var(--main-color);
  transform: scale(1.02);
  transition: 0.5s;
}


.portfolio {
  background: var(--second-bg-color);
}

.portfolio h2 {
  margin-bottom: 4rem;
}

.portfolio-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 2.5rem;
}

.portfolio-container .portfolio-box {
  position: relative;
  border-radius: 2rem;
  box-shadow: 0 0 1rem var(--bg-color);
  overflow: hidden;
  display: flex;
}

.portfolio-box img {
  width: 100%;
  transition: .5s;
}

.portfolio-box:hover img {
  transform: scale(1.1);
  transition: .5s;
}

.portfolio-box .portfolio-layer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0), var(--main-color));
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: 0 4rem;
  transform: translateY(100%);
  transition: .5s;
}

.portfolio-box:hover .portfolio-layer {
  transform: translateY(0%);
  transition: .5s;
}

.portfolio-layer h4 {
  font-size: 3rem;
}

.portfolio-layer p {
  font-size: 1.6rem;
  margin: .3rem 0 1rem;
}



.portfolio-layer a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 5rem;
  height: 5rem;
  background-color: var(--text-color);
  border-radius: 50%;
}

.portfolio-layer a i {
  font-size: 2rem;
  color: var(--second-bg-color);
}

.contact h2 {
  margin-bottom: 3rem;
}

.contact form {
  max-width: 70rem;
  margin: 1rem auto;
  text-align: center;
  margin-bottom: 3rem;
}

form .input-box {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}


.input-box .input-field {
  width: 48.5%;
}

.field .item {
  width: 100%;
  padding: 1.5rem;
  font-size: 1.6rem;
  color: var(--text-color);
  background: var(--second-bg-color);
  border-radius: .8rem;
  margin: .7rem 0;
}

.contact form textarea {
  resize: none;
}

.field .error-msg {
  font-size: 1.4rem;
  color: #d93025;
  text-align: left;
  margin: -.5rem 0 1rem;
  display: none;
}

.text-area .field {
  margin-top: -.4rem;
}

.contact form .btn {
  margin-top: 2rem;
  cursor: pointer;
}

.footer {
  left: 0;
  bottom: 0;
  display: flex;
  width: 100vw;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 2rem 9%;
  background-color: var(--second-bg-color);
}

.footer-text p {
  font-size: 1.5rem;
  color: var(--footer-text-color);
}

.footer-iconTop a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: .8rem;
  font-size: 4rem;
  background: var(--main-color);
  border-radius: .8rem;
  color: var(--second-bg-color);
  transition: .5s ease;
}

.footer-iconTop a:hover {
  box-shadow: 0 0 1rem var(--main-color);
  transition: .5s;
}

.footer-IconTop a i {
  color: var(--second-bg-color);
  text-decoration: none;
}

#menu-icon {
  font-size: 3.6rem;
  color: var(--text-color);
  transition: .3s;
  display: none;
}

#menu-icon:hover {
  color: var(--main-color);
  transition: .4s;
}

/*BREAKPOINTS*/
@media (max-width: 1200px) {
  html {
    font-size: 55%;
  }
}

@media (max-width: 991px) {
  .header {
    padding: 2rem 3%;
  }

  section {
    padding: 8rem 3%;
  }

  .contact {
    min-height: auto;
  }

  .footer {
    padding: 2rem 3%;
  }
}

@media (max-width: 768px) {
  #menu-icon {
    display: block;
  }

  .navbar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1rem 3%;
    background: var(--bg-color);
    border-top: .1rem solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, 0.2);
    display: none;
    transition: .5s;
  }

  .navbar a {
    display: block;
    font-size: 2rem;
    margin: 3rem 0;
  }

  .navbar.active {
    display: block;
    transition: .5s;
  }

  .home {
    flex-direction: column;
  }

  .home-content h1 {
    font-size: 5rem;
  }



  .home-image img {
    width: 70vw;
    margin-top: 4rem;
  }

  .about {
    flex-direction: column-reverse;
  }

  .about-image img {
    width: 70vw;
    margin-top: 4rem;
  }

  .projects h2 {
    margin-bottom: 3rem;
  }

  .projects h3 {
    font-size: 3.2rem;
    font-weight: 700;
  }

  .portfolio h2 {
    margin-bottom: 3rem;
  }

  .portfolio-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 617px) {
  .portfolio-container {
    grid-template-columns: 1fr;
  }

  .footer-text p {
    font-size: 1.6rem;
  }
}

@media (max-width: 450px) {
  html {
    font-size: 50%;
  }


  .projects-container .project-box {
    min-width: 90vw;
    max-width: 100%;
  }

  .input-box .input-field {
    width: 100%;
  }
}

@media (max-width: 365px) {
  .home-image img {
    width: 90vw;
  }

  .about-image img {
    width: 90vw;
  }

  .footer {
    flex-direction: column-reverse;
  }

  .footer p {
    text-align: center;
    margin-top: 2rem;
  }
}