@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: #f9532d;
  --primary-dark: #1f252e;
}

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

body {
  font-family: "Outfit", sans-serif;
}
/* Genral */
.container {
  padding: 0 8.4rem;
}

.img-w {
  width: 100%;
}
/* 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;
}
.main .hero-h3 {
  font-size: 1.5rem;
  opacity: 0;
  animation: topSideAni 1s ease forwards;
}
.main .hero-h1 {
  font-size: 4rem;
  font-weight: 600;
  opacity: 0;
  animation: leftSideAni 0.5s ease forwards;
  animation-delay: 0.5s;
}

.main .hero-p {
  line-height: 1.7;
  font-size: 1.15rem;
  opacity: 0;
  animation: topSideAni 1.5s ease forwards;
}
.main .hero-typed {
  font-size: 1.5rem;
  font-weight: 600;
  opacity: 0;
  animation: topSideAni 1s ease forwards;
  animation-delay: 0.4s;
  margin-bottom: 5px;
}
.main .hero-typed span {
  color: orange;
}

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

.social a {
  display: grid;
  place-items: center;
  text-decoration: none;
  color: #244d61;
  font-size: 1.5rem;
  border: 1.6px solid #244d61;
  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: #fff;
  background-color: #244d61;
  box-shadow: 0 0 20px #244d61;
  transition: all 0.3s ease-in-out;
}
.images img {
  position: relative;
}

.images::before {
  content: "";
  position: absolute;
  width: 100%;
  height: calc(100% - 130px);
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  border-radius: 6px;
}

.images::before {
  background: linear-gradient(145deg, #e2e8ec, #ffffff);
  box-shadow: 5px 5px 15px #d1d9e6, -5px -5px 15px #ffffff;
}

.images {
  width: 80%;
  margin-left: auto;
  position: relative;
  z-index: -1;
}
.images {
  opacity: 0;
  animation: imageAni 1s ease forwards;
  animation-delay: 1.5s;
}

/* Section 1 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;
  }

  .images::before {
    background: linear-gradient(145deg, #1f252e, #2e3239);
    box-shadow: 10px 10px 19px #1c1e22, -10px -10px 19px #1b1f27;
  }
}

.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;
  }
}

/* Projects Container Styles */
.projects-container {
  margin-top: 20px;
  padding-bottom: 40px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
  position: relative;
  color: var(--primary-color);
}

.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 100px;
  height: 3px;
  background-color: var(--primary-color);
  transform: translateX(-50%);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.project-card {
  background-color: var(--bg-card);
  border-radius: 10px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  /* animation: topSideAni 1s ease forwards; */
  /* animation-delay: 0.4s; */
  transition: all 0.3s ease-in-out;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}
.project-card img:hover {
  transform: scale(1.1);
}

.project-content {
  padding: 20px;
}

.project-content h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--primary-color);
  cursor: crosshair;
}

.project-content p {
  font-size: 16px;
  margin-bottom: 15px;
  line-height: 1.6;
  color: rgba(245, 245, 245, 0.8);
}

.project-technologies {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
  cursor: pointer;
}

.technology-tag {
  background-color: rgba(255, 87, 51, 0.2);
  color: var(--primary-color);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 14px;
}

.project-links {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.project-links a {
  text-decoration: none;
  color: var(--text-color);
  background-color: var(--primary-color);
  padding: 8px 15px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
}

.project-links a:hover {
  background-color: #e74c3c;
  transform: translateY(-3px);
}

.project-links a i {
  font-size: 18px;
}

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

  .menu {
    font-size: 22px;
  }

  ul {
    position: fixed;
    top: 80px;
    left: -100%;
    background-color: var(--bg-dark);
    height: 100vh;
    width: 100%;
    display: block;
    text-align: center;
    transition: var(--transition);
  }

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

  ul li {
    margin: 40px 0;
  }

  ul li a {
    font-size: 20px;
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@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;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 28px;
  }

  .project-content h3 {
    font-size: 20px;
  }
}
