/* Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
  text-transform: capitalize;
  font-family: "Poppins", sans-serif;
  scroll-behavior: smooth;
}
body::-webkit-scrollbar {
  width: 0.25rem;
}
body::-webkit-scrollbar-track {
  background: #2c3e50;
}
body::-webkit-scrollbar-thumb {
  background: var(--primary);
}
:root {
  /* Colors */
  --bg-color: whitesmoke;
  --primary: #00dddd;
  --secondary: #00aaaa;
  --hover: #32373C;
  --white: #ffffff;

  /* Fonts */
  --font-color: #3d4449;
  --h1-font: 2.2rem;
  --h2-font: 1.1rem;
  --p-font: 0.9rem;
  --spacing: 1px;
  /* Margins */
  --m-1: 0.4rem;
  --m-4: 2rem;
}
a{
  text-decoration: none;
}
p{
  color: var(--font-color);
}
html {
  background: var(--bg-color);
  color: #fff;
}
header,.home_bg,.skills_bg,.contact_bg{
  background: white;
  width: 100%;
}
.about_bg,.projects_bg {
  background: whitesmoke;
}
.header_bg,.home,.about,.skills,.projects,.contact{
  margin: 0 auto;
  max-width: 1280px;
}

section{
  padding: 50px 100px;
}
.header_bg {
  width: 100%;
  height: 57px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  padding: 18px 100px;
}
.logo-name{
  width: fit-content;
  height: 100%;
  display: flex;
  gap: 5px;
  align-items: center;
}
.logo-name img{
  height: 100%;
}
.logo {
  text-transform: uppercase;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary);
}
.logo span{
  text-transform: uppercase;
  color: var(--font-color);
}
.navbar {
  display: flex;
}
.navbar a {
  font-size: 1rem;
  padding: 0px 20px;
  color: #222435;
  font-weight: 500;
}
.header_bg .navbar a:hover {
  background: var(--primary);
  color: #fff;
}
#menu-icon {
  font-size: 2rem;
  cursor: pointer;
  display: none;
}
/* Home */
.home_bg{
    height: 700px;
}
.home {
  position: relative;
  width: 100%;
  height: 100%;
  color: #222435;
  display: flex;
  align-items: center;
  background: white;
  
}
.home-text {
  max-width: 500px;
}
.home-text h1 {
  font-size: var(--h1-font);
  letter-spacing: var(--spacing);
}
.home-text span {
  color: var(--primary);
}
.home-text h2 {
  font-size: var(--h2-font);
  margin: var(--m-1) 0;
  letter-spacing: var(--spacing);
}
.home-text p {
  font-size: var(--p-font);
  margin-bottom: var(--m-4);
  line-height: 22px;
  max-width: 71%;
}
.btn {
  padding: 10px 22px;
  background: var(--white);
  color: var(--font-color);
  font-weight: bolder;
  border: 2px solid var(--font-color);
  border-radius: 2px;
  transition:.3s ease-in-out;
}
.btn:hover {
  background: var(--hover);
  color: white;
}
.home-image{
    display: flex;
    justify-content: right;
    align-content: center;
    min-height: 80vh;
    width: 50%;
}
.image{
    margin: auto 0;
    width: 380px;
    height: 380px;
    border-radius: 55% 45% 55% 45%;
    overflow: hidden;
    animation: imgFloat 7s ease-in-out infinite;
}
.image img{
    width: 380px;
    height: 380px;
    object-fit: cover;
}
@keyframes imgFloat {
    50%{
        transform: translateY(10px);
        border-radius: 45% 55% 45% 55%;
    }
}

/*--- about css ---*/

.about {
  width: 100%;
  height: 600px;
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
}
.about-img {
  width: 500px;
  height: 400px;
}
.about-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.about-text {
  max-width: 500px;
}
.about-text h3 {
  font-size: var(--h2-font);
  color: var(--primary);
}
.about-text h2 {
  font-size: var(--h1-font);
  font-weight: 600;
  color: var(--font-color);
}
.about-text p {
  font-size: var(--p-font);
  margin: 1rem 0 var(--m-4);
  text-align: justify;
  font-weight: 300;
}

/*--- skills css ---*/

.skills {
  width: 100%;
  background: white;
}
.heading {
  display: flex;
  justify-content: center;
  padding: 1.4rem 0;
}
.heading h2 {
  color: black;
  font-size: var(--h1-font);
  font-weight: 600;
  border-bottom: 2px solid var(--primary);
}
.skills-content {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
}
.skills-img {
  display: flex;
  width: 500px;
  border-radius: 10px;
  overflow: hidden;
}
.skills-img img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  object-position: center;
}
.skills-bars-left,.skills-bars-right {
  display: flex;
  flex-direction: column;
  max-width: 500px;
  width: 100%;
}
.skills-box {
  position: relative;
  background: white;
  margin: 1rem 0;
  height: 3.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  border-radius: 10px;
  box-shadow: 1px 5px 10px 2px rgba(0,0,0,.1);
}
.skills-box i {
  display: flex;
  align-items: center;
  font-size: 20px;
  font-weight: 600;
  color: var(--secondary);
}
.skills-box h3 {
  margin-left: 1rem;
  font-size: 1rem;
  font-weight: 600;
}
.skills-box span{
  color: var(--font-color);
}
.percent-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  background: var(--primary);
  height: 0.34rem;
  border-radius: 10px;
}
.html-bar {
  width: 95%;
}
.css-bar {
  width: 95%;
}
.js-bar {
  width: 80%;
}
.php-bar {
  width: 50%;
}
.nodejs-bar{
  width: 50%;
}
.reactjs-bar{
  width: 80%;
}
.tailwind-bar{
  width: 90%;
}
.sql-bar{
  width: 10%;
}

/*-- Project --*/

.project-content {
  margin-top: 40px;
  display: flex;
  width: 100%;
  justify-content: space-evenly;
  gap: 40px;
  flex-wrap: wrap;
}
.p-box {
  padding: 1.2rem;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 30%;
  height: fit-content;
  background: white;
  border-radius: 20px;
  box-shadow: 1px 4px 10px 2px rgba(0,0,0,.1);
  transition:.3s;
}
.p-box:hover{
  transform: scale(1.05);
}

.p-img {
  margin-top: -40px;
  display: flex;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratip: 16/9;
}
.p-img img {
  width: 100%;
}
.p-box h2 {
  font-size: var(--h2-font);
  font-weight: 600;
  margin: 10px 0;
}
.p-box p {
  font-size: var(--p-font);
  font-weight: 400;
}
.projects .more{
  margin-top: 50px;
  display: grid;
  place-items: center;
  width: 100%;
}
/*--- contact css ---*/
.contact{
  background: white;
}
.contact-content {
  display: flex;
  align-items: center;
  justify-content: space-around;
}
.contact-info {
  max-width: 500px;
}
.info-box {
  display: flex;
  align-items: center;
  margin: 1rem 0;
}
.info-box i {
  font-size: 20px;
  color: var(--primary);
}
.info-box p {
  margin-left: 1rem;
  font-weight: 400;
}
.info-box p a{
  color: var(--font-color);
}
.social {
  display: flex;
  align-items: center;
}
.social a {
  margin-right: 1rem;
}
form {
  max-width: 360px;
  margin-top: 4rem;
}
form input,
form textarea {
  width: 100%;
  font-size: 14px;
  padding: 1rem;
  border-radius: 0.5rem;
  border: none;
  outline: none;
  margin-bottom: 12px;
  background: #2c3e50;
  color: var(--primary);
  border-bottom: 1px solid var(--primary);
}
form textarea {
  height: 200px;
  resize: none;
}
.contact-button {
  max-width: 100px;
  font-weight: 600;
  background: var(--primary);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
}
.copyright {
  padding: 20px;
  text-align: center;
  background: var(--primary);
}
.copyright a{
  color: var(--font-color);
  text-transform: uppercase;
}
/* Making Responsive */
@media only screen and (max-width: 1024px){
    .image, .image img{
        width: 320px;
        height: 320px;
    }
}
@media (max-width: 991px) {
  .header_bg {
    padding: 15px 80px;
  }
  section {
    padding: 50px 80px;
  }
  .about-text {
    max-width: 444px;
  }
  .about-img {
    width: 300px;
    height: 300px;
  }
  .skills-bars {
    max-width: 420px;
  }
  .skills-img {
    width: 400px;
  }
}
@media only screen and (max-width: 900px) {
    .home{
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }
    .home-text{
      order: 2
    }
    .home-image{
        order: 1;
        justify-content: center;
        min-height: 150px;
        width: 100%;
    }
    .image, .image img{
        width: 150px;
        height: 150px;
    }

}
@media (max-width: 820px) {
  :root {
    --h1-font: 2rem;
    --h2-font: 1rem;
    --m-4: 1.4rem;
  }
  .header_bg {
    padding: 13px 65px;
  }
  section {
    padding: 50px 65px;
  }
  .about {
    height: 700px;
    flex-direction: column;
    gap: 0;
  }
  .about-img {
    width: 240px;
    height: 300px;
  }
  .skills-content {
    flex-direction: column;
    gap: 0px;
  }
  .p-box{
      width: 100%;
  }
  
}
@media (max-width: 768px) {
  #menu-icon {
    display: initial;
    color: #222435;
  }
  .header_bg .navbar {
    position: absolute;
    top: 8%;
    left: 0;
    right: 0;
    z-index: 999;
    display: flex;
    flex-direction: column;
    text-align: center;
    background: rgba(250, 250, 250,.5);
    backdrop-filter: blur(10px);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: 0.5s ease;
  }
  .header_bg .navbar.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  .navbar a {
    margin:.5rem;
    padding:.5rem;
    display: block;
    font-weight: bolder;
  }
  .home {
    background: white;
    justify-content: space-evenly;
  }
  .home-text {
    max-width: 410px;
  }
  .contact-content {
    flex-direction: column;
  }
}
@media (max-width: 670px) {
  .header_bg {
    padding: 10px 34px;
  }
  section {
    padding: 50px 34px;
  }
  .skills-img {
    width: 320px;
  }
  .p-box{
    width: 100%;
  }
}
@media (max-width: 360px) {
  .header_bg{
    padding: 10px 20px;
  }
  .home-text {
    max-width: 225px;
  }
  .skills-img {
    width: 280px;
  }
  .about-text {
    margin-top: 1rem;
  }
}