/*old css*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@200;300;400;500;600;700;800&family=Roboto:wght@100;300;400&display=swap");

:root {
  --primary-color: #45a9e7;
  --primary-dark: #1f252e;
  --footer:  #464647;
}

* {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: "Outfit", sans-serif;
}

/* Genral */
.container {
  padding: 0 8.4rem;
}

.img-w {
  width: 100%;
  height: auto;
}
#front {
  padding: 4.5rem;
}

/* Nav */
header {
  position: relative;
  box-shadow: 0 4px 17px rgba(0, 0, 0, 0.1);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  opacity: 0;
  animation: leftSideAni 1s ease forwards;
}

.logo a {
  color: #244d61;
  text-decoration: none;
}

ul {
  display: flex;
  gap: 0.6rem;
  list-style-type: none;
  background-color: transparent;
  overflow: hidden;
}

li a {
  display: inline-block;
  padding: 0.3rem 1rem;
  color: var(--nav-text);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.7px;
  border-radius: 36px;
  line-height: 2;
  transition: 0.3s;
  opacity: 0;
  animation: navani 0.3s ease forwards;
  animation-delay: calc(0.15s * var(--navAni));
}

li a.active,
li a:hover {
  color: var(--primary-color);
}

#click {
  display: none;
}

.menu {
  display: none;
}

/* Nav End */

/* Section 1 */
.mode i {
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--primary-color);
  opacity: 0;
  animation: rightSideAni 1.5s ease forwards;
}

.main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(277px, 1fr));
  row-gap: 2rem;
  align-items: center;
  margin-top: 3rem;
}

.main h3 {
  font-size: 1.5rem;
  opacity: 0;
  animation: topSideAni 1s ease forwards;
}

.main h1 {
  font-size: 4rem;
  font-weight: 600;
  opacity: 0;
  animation: leftSideAni 1s ease forwards;
  animation-delay: 1s;
}

.main p {
  line-height: 1.7;
  font-size: 1.15rem;
  opacity: 0;
  animation: topSideAni 1.5s ease forwards;
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 1.7rem;
}

.social a {
  display: grid;
  place-items: center;
  text-decoration: none;
  color: #000000;
  font-size: 1.5rem;
  border: 1.6px solid #000000;
  border-radius: 50%;
  padding: 0.39rem;
  text-align: center;
  opacity: 0;
  animation: SocialAni 1s ease forwards;
  animation-delay: calc(0.2s * var(--socialAni));
}

.social a:hover {
  color: var(--primary-dark);
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 0 20px var(--primary-color);
  transition: all 0.3s ease-in-out;
}

.images img {
  position: relative;
  border-radius: 6px;
}

.images::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  left: 55%;
  top: -16px;
  transform: translateX(-50%);
  border-radius: 6px;
}

.images::before {
  background: var(--primary-color);
}

.images {
  width: 60%;
  margin-left: auto;
  position: relative;
  z-index: -1;
}

.images {
  opacity: 0;
  animation: imageAni 1s ease forwards;
  animation-delay: 1.5s;
}

/* Section 1 End */
/* other body*/

.project,
p {
  margin: auto;
  text-align: center;
}

.projImg {
  width: 20%;
  height: 30%;
  display: flex;
  justify-content: center;
  margin: auto;
}
.projimg {
  display: flex;
  justify-content: center;
  margin: auto;
}
.container-desc {
  margin: auto;
  align-content: center;
  width: 900px;
  height: auto;
  background: #727477;
  border-radius: 45px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.container-desc,
p {
  padding: 10px;
  align-content: center;
  text-align: center;
  display: flex;
  justify-content: center;
}
#me {
  border-radius: 100px;
  width: 20vb;
  margin: auto;
}
footer {
  margin: auto;
  align-content: center;
  background-color: #727477;
  padding: 10px;
  text-align: center;
  display: flex;
  justify-content: center;
}
.p-text {
  color: #ffffff;
}
.social {
  text-align: center;
  display: flex;
  justify-content: center;
}
/* other body end */
/* Dark Mode */

.dark-mode {
  background-color: var(--primary-dark);
  color: #ffffff;
}

.mode input {
  display: none;
}

:is(.dark-mode) {
  .social a {
    color: var(--primary-color);
    border: 1.6px solid var(--primary-color);
  }

  .social a:hover {
    color: var(--primary-dark);
    background-color: var(--primary-color);
    box-shadow: 0 0 20px var(--primary-color);
  }

  .logo a {
    color: #fff;
  }
  footer {
    background-color: var(--footer);
  }
  .container-desc {
    background-color: var(--footer);
  }
}

.dark-mode header {
  box-shadow: 0 4px 17px rgb(80 80 80 / 31%);
  background: var(--primary-dark);
}

/* Animation */
@keyframes leftSideAni {
  0% {
    transform: translateX(-100px);
    opacity: 0;
  }

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

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

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

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

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

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

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

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

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes imageAni {
  0% {
    opacity: 0;
    transform: scale(0);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@media screen and (max-width: 1024px) {
  .container {
    padding: 0 4.4rem;
  }
}

@media screen and (max-width: 768px) {
  .container {
    padding: 0 1.6rem;
  }
}

@media screen and (max-width: 600px) {
  header {
    height: auto;
  }

  ul {
    background: #fff;
    width: 100%;
    height: 100vh;
    position: absolute;
    display: flex;
    flex-direction: column;
    text-align: center;
    top: 3.4rem;
    left: -100%;
    z-index: 111111;
  }

  .menu {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #244d61;
  }

  #click:checked ~ ul {
    left: 0%;
    transition: all 0.3s ease;
  }

  .dark-mode .menu {
    color: var(--primary-color);
  }

  .dark-mode ul {
    background: var(--primary-dark);
  }

  .mode {
    position: absolute;
    right: 4rem;
  }

  .images {
    width: 100%;
    margin: auto;
  }

  .main {
    margin-top: 2rem;
  }
  .container-desc {
    width: 200px;
    height: 700px;
    display: flex;
    align-content: center;
    justify-content: center;
  }
}
/*old css end*/
/*neon css*/
.actbtn {
    background-color: var(--primary-dark);
    color: white;
    font-weight: bold;
    /* text-shadow: 0 0 5px #45a9e7, 0 0 10px #45a9e7, 0 0 15px #45a9e7, 0 0 20px #007acc, 0 0 25px #007acc, 0 0 30px #007acc; */
    border: 2px solid #45a9e7;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  
  .actbtn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px #45a9e7, 0 0 20px #45a9e7, 0 0 30px #007acc, 0 0 40px #007acc;
  }
  /*neon css end*/
  .box{
    background-color: var(--footer);
  }