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

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

@font-face {
  font-family: "MyFont";
  src: url(./Font/wow.woff2);
}

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

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

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 50px;
  position: fixed;
  width: 100%;
  background-color: #fff;
  z-index: 100;
}

#zaz {
  text-decoration: none;
  color: #000;
  font-family: "Roboto", sans-serif;
}

#menu-open {
  position: absolute;
  right: 25px;
  display: none;
  font-size: 25px;
  cursor: pointer;
}

#menu-close {
  position: absolute;
  right: 25px;
  display: none;
  font-size: 30px;
  cursor: pointer;
}

nav ul {
  display: flex;
}

nav ul li {
  list-style-type: none;
  margin: 0 30px;
  font-size: 16.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  position: relative;
  color: #333;
  transition: color 0.3s ease, transform 0.3s ease;
}

nav ul li:hover {
  transform: skewY(-5deg);
}

nav ul li:hover {
  text-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

nav ul li a {
  text-decoration: none;
  color: #000;
}

nav ul li a:hover {
  color: #7453fe;
}

#bulb {
  font-size: 25px;
  cursor: pointer;
  margin: 0 20px;
}

#home {
  height: 100vh;
  display: flex;
  padding-top: 50px;
}

#iAm {
  font-family: "myFont";
}

#home-left {
  height: 100%;
  width: 60%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

#triangle {
  position: absolute;
  top: 7%;
  left: 10%;
  z-index: -1;
  height: 150px;
  animation: triangle-rotates 6s linear infinite;
}

#triangle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes triangle-rotates {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#home-left h1 {
  font-size: 80px;
  font-family: "Roboto", sans-serif;
}

#developer {
  font-size: 18px;
  text-align: center;
}

#home-left button {
  padding: 10px 15px;
  font-size: 15px;
  border-radius: 5px;
  cursor: pointer;
  background-color: #7453fe;
  color: white;
  border: 2px solid #7453fe;
  transition: background-color 0.3s, color 0.3s;
}

#home-left #portfolio {
  padding: 10px 21.5px;
}

#home-left button:hover {
  background-color: transparent;
  color: #7453fe;
  border-color: #7453fe;
}

button:active {
  outline: none;
  box-shadow: 0 0 10px rgba(116, 83, 254, 0.6);
}

#home-right {
  height: 100%;
  width: 40%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#home-right-img img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  animation: person-animate 5s ease-in-out infinite;
}

@keyframes person-animate {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-30px, -30px);
  }
  100% {
    transform: translate(0, 0);
  }
}

.h2 {
  text-align: center;
  font-size: 50px;
  margin: 30px 0;
}

#services-text {
  width: 60%;
  margin: 0 auto;
  letter-spacing: 0.4px;
  font-size: 16.5px;
}

#cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin: 40px 0;
}

.card {
  height: 320px;
  width: 280px;
  border-radius: 6px;
  overflow: hidden;
  background-color: #f5f5f5;
  box-shadow: 0 0 10px 1px rgba(116, 83, 254, 0.4);
  transition: all 0.5s ease-in-out;
}

.card:hover {
  background-color: rgba(116, 83, 254, 0.3);
  transform: translate(0, -5px);
  cursor: pointer;
}

.card-img {
  height: 25%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-img i {
  font-size: 35px;
  color: #7453fe;
}

.card h3 {
  height: 20%;
  width: 100%;
  display: flex;
  font-size: 25px;
  color: #171616;
  justify-content: center;
  align-items: center;
}

.card p {
  height: 55%;
  width: 100%;
  padding: 15px 8px;
  text-align: justify;
  font-size: 16.5px;
  letter-spacing: 0.4;
}

#projects-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin: 50px 0;
}

.project {
  width: 90%;
  height: 350px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  box-shadow: 0 0 10px 1px rgba(116, 83, 254, 0.4);
}

.project-text {
  width: 50%;
  height: 100%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.project-text p {
  font-size: 16.5px;
  letter-spacing: 0.4;
}

.project-text h3 {
  font-size: 33px;
}

.project-img {
  width: 50%;
  height: 100%;
  overflow: hidden;
}

.project-img img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  transition: transform 0.5s ease-in-out;
}

.project-img img:hover {
  transform: scale(1.03);
}

.check-project {
  padding: 10px 12px;
  border-radius: 5px;
  margin: 0 auto;
  font-size: 16px;
  cursor: pointer;
  background-color: #7453fe;
  color: white;
  border: 2px solid #7453fe;
  transition: background-color 0.3s, color 0.3s;
}

.check-project:hover {
  background-color: transparent;
  color: #7453fe;
  border-color: #7453fe;
}

#about-container {
  width: 90%;
  margin: 50px auto 100px auto;
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 10px 1px rgba(116, 83, 254, 0.4);
}

#about-pic {
  width: 40%;
}

#about-pic img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}

#about-me {
  font-size: 40px;
  text-decoration: underline;
}

#about-info {
  height: 100%;
  width: 60%;
  padding: 30px;
  gap: 15px;
}

#about-info p {
  letter-spacing: 0.4px;
  font-size: 16.5px;
}

#about-info h4 {
  font-size: 30px;
  margin: 15px 0;
  color: #171616;
}

#about-info button {
  border-style: none;
  padding: 12px 20px;
  margin: 20px 0;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  background-color: #7453fe;
  color: white;
  border: 2px solid #7453fe;
  transition: background-color 0.3s, color 0.3s;
}

#about-info button:hover {
  background-color: transparent;
  color: #7453fe;
  border-color: #7453fe;
}

#contact {
  margin: 100px 0;
}

#contacts {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 50px;
}

.contact-info {
  overflow: hidden;
  width: 320px;
  padding: 15px;
  display: flex;
  border-radius: 5px;
  box-shadow: 0 0 10px 1px rgba(116, 83, 254, 0.4);
}

.contact-img {
  width: 20%;
  height: 100%;
}

.contact-img {
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-img i {
  font-size: 30px;
  color: #7453fe;
}

.contact-info .contact-real {
  width: 80%;
  height: 100%;
  display: flex;
  gap: 5px;
  padding: 0 20px;
  justify-content: center;
  flex-direction: column;
}

.contact-real h4 {
  font-size: 20px;
}

footer {
  padding: 70px 0;
  background-color: #7553fe13;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

#footer-info {
  display: flex;
  flex-direction: column;
  justify-self: unset;
  align-items: center;
}

#footer-info strong {
  display: flex;
  justify-content: center;
  margin: 10px 0;
  font-size: 25px;
}

#social-icons {
  display: flex;
  gap: 15px;
}

#social-icons i {
  font-size: 30px;
  color: #7453fe;
  cursor: pointer;
  transition: color 0.15s ease-in-out;
}

#social-icons i:hover {
  color: #6347d3;
}

body.dark-theme {
  background-color: #0D1117;
  color: #ffffff;
}

body.dark-theme header {
  background-color: #0D1117;
}

body.dark-theme #zaz{
  color: #ffffff;
}

body.dark-theme nav ul li a {
  color: #ffffff;
}

body.dark-theme nav ul li a:hover{
  color: #7453fe;
}

body.dark-theme .card,
body.dark-theme .project,
body.dark-theme #about-container,
body.dark-theme .contact-info {
  background-color: #161B22;
  box-shadow: 0 0 10px 1px rgba(156, 130, 255, 0.3);
}

body.dark-theme #about-info h4 {
  color: #fff;
}

body.dark-theme #services-text{
  color: #fff;
}

body.dark-theme .card h3 {
  color: #fff;
}

body.dark-theme .card:hover {
  background-color: rgba(156, 130, 255, 0.3);
}

body.dark-theme footer {
  background-color: #2c2142;
}

body.dark-theme #moon {
  display: none;
}

body.dark-theme #sun {
  display: inline-block;
  font-size: 25px;
  cursor: pointer;
}

body.dark-theme footer{
  background-color: #161B22;
}