/*===== GOOGLE FONTS =====*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");

/*===== VARIABLES CSS =====*/
:root {
  --header-height: 3rem;
  --font-semi: 600;
}

/*===== Colors =====*/
:root {
  /*--first-color: #8A2BE2;*/
  --first-color: #2be2df;
  --second-color: #0E2431;
}


:root {
  --body-font: 'Poppins', sans-serif;
  --big-font-size: 2rem;
  --h2-font-size: 1.25rem;
  --normal-font-size: 0.938rem;
}

@media screen and (min-width: 768px) {
  :root {
    --big-font-size: 3.5rem;
    --h2-font-size: 2rem;
    --normal-font-size: 1rem;
  }
}

/*===== Margins =====*/
:root {
  --mb-1: 0.5rem;
  --mb-2: 1rem;
  --mb-3: 1.5rem;
  --mb-4: 2rem;
  --mb-5: 2.5rem;
  --mb-6: 3rem;
}

/*===== BASE =====*/
*,
::before,
::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: lavenderblush;
}

body {
  margin: var(--header-height) 0 0 0;
  /* font-family: var(--body-font); */
  /* font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif; */
  font-family: "Poppins", sans-serif;
  font-size: var(--normal-font-size);
  color: var(--second-color);
  line-height: 1.5;

  margin: 0;
  padding: 0;
  overflow-x: hidden;

}

h1,
h2,
p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  text-decoration: none;
}

.round-image {
  width: 800px;
  height: 350px;
  border-radius: 50%;
  object-fit: cover;
}

/*===== CLASS CSS ===== */
.section-title {
  position: relative;
  font-size: var(--h2-font-size);
  color: var(--first-color);
  margin-top: var(--mb-1);
  margin-bottom: var(--mb-4);
  text-align: center;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 0.18rem;
  right: 0;
  margin: auto;
  top: 2rem;
  background-color: var(--first-color);
}

.section {
  padding-top: 2rem;
  padding-bottom: 1rem;
  margin-left: 1rem;
  margin-right: 1rem;

}

/*===== LAYOUT =====*/
.bd-grid {
  max-width: 1024px;
  display: grid;
  grid-template-columns: 100%;
  grid-column-gap: 2rem;
  width: calc(100% - 2rem);
  margin-left: var(--mb-2);
  margin-right: var(--mb-2);
  margin-top: var(--mb-1);

}

.l-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  background-color: #fff;
  box-shadow: 0 1px 4px rgba(146, 161, 176, .15);
  padding-bottom: 5px;
}

/*===== NAV =====*/
.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: var(--font-semi);


}

@media screen and (max-width: 768px) {
  .nav__menu {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 80%;
    height: 100%;
    padding: 2rem;
    background-color: var(--second-color);
    transition: .5s;
  }
}

.nav__item {
  margin-bottom: var(--mb-4);
}

.nav__link {
  position: relative;
  color: #fff;
}

.nav__link:hover {
  position: relative;
}

.nav__link:hover::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 0.18rem;
  left: 0;
  top: 2rem;
  background-color: var(--first-color);
}

.nav__link:hover {
  color: #2be2df;
}

.nav__logo {
  color: var(--second-color);
}

.nav__toggle {
  color: var(--second-color);
  font-size: 1.5rem;
  cursor: pointer;
}

.logo {
  display: flex;
  gap: 5px;
}

/*Active menu*/
.active::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 0.18rem;
  left: 0;
  top: 2rem;
  background-color: var(--first-color);
}

/*=== Show menu ===*/
.show {
  right: 0;
}


/*===== HOME =====*/

.home {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  min-height: 100vh;
  align-items: center;
}

.home::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}

.home .content {
  flex: 1 1 40rem;
  padding-top: 1rem;
  z-index: 1;
}

.home .image {
  flex: 1 1 20rem;
  z-index: 1;
  margin-top: 4.5rem;
}

.home .image img {
  width: 85%;
  margin-left: 0rem;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.home .image img:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.home .content {
  padding-left: 120px;
}

.home .content h2 {
  margin-top: 100px;
}

.home .content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: rgb(10, 11, 11);
}

.home .content h2 span {
  font-size: 3rem;
  font-weight: 800;
}

.home .content span {
  font-family: bold;
}


.home .content p {
  font-size: 2rem;
  color: rgb(2, 2, 2);
  font-weight: 600;
  padding: 1rem 0;
}

/* typing-tex */
.home .content p span {
  font-size: 2rem;
  color: #00fbff;
  font-weight: 600;
  padding: 1rem 0;
}

.home .btn {
  margin-top: 1rem;
  position: absolute;
  line-height: 0;
  padding: 1.6rem 3rem;
  border-radius: 4em;
  transition: 0.5s;
  color: #fff;
  background: #00d9ff;
  /* box-shadow: 0px 5px 18px rgba(48, 68, 247, 0.6); */
  font-family: "Nunito", sans-serif;
}

.home .btn span {
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: 0.1rem;
}

.home .btn i {
  margin-left: 0.3rem;
  font-size: 1.5rem;
  transition: 0.3s;
}

.home .btn:hover {
  background: #1a047e;
}

.home .btn:hover i {
  transform: translateX(5px);
}

/* social icons start */
.socials {
  position: relative;
  margin-top: 9rem;
}

.socials .social-icons {
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.socials .social-icons li {
  display: inline-block;
  margin-bottom: 14px;
}

.social-icons a {
  font-size: 2rem;
  display: inline-block;
  line-height: 44px;
  color: #00d9ff;
  background-color: hsl(189, 18%, 47%);
  width: 44px;
  height: 44px;
  text-align: center;
  margin-right: 8px;
  border-radius: 100%;
  -webkit-transition: all 0.2s linear;
  -o-transition: all 0.2s linear;
  transition: all 0.2s linear;
}

.social-icons a:active,
.social-icons a:focus,
.social-icons a:hover {
  color: #fff;
  background-color: #0e0e0e;
}

.social-icons a.github:hover {
  background-color: #0e0e0e;
}

.social-icons a.linkedin:hover {
  background-color: #0c0c0c;
}

.social-icons a.dev:hover {
  background-color: #070707;
}

/* social icons end */

/* hero media queries starts*/
@media (max-width: 450px) {
  .home .btn {
    margin: 4rem 0;
  }

  .socials {
    margin-top: 12rem;
  }

  .home .image img {
    margin-top: -12rem;
  }

  .home .content p {
    font-size: 2.2rem;
  }

  .home .content p span {
    font-size: 2.2rem;
  }
}

/* hero media queries ends*/


/* ===== ABOUT =====*/
.about {
  margin-bottom: 1rem;
}

.about__container {
  row-gap: 2rem;
  text-align: center;
}

.about__subtitle,
.about__text {
  margin-bottom: var(--mb-2);
}

.about__img {
  justify-self: center;
  max-width: 500px;
}

.about__img img {
  border-radius: .5rem;
  box-shadow: 0 1px 4px 10px rgba(146, 161, 176, .15);
  transform: scale(1.1);
}

.button {
  display: inline-block;
  background-color: var(--first-color);
  color: #fff;
  padding: .75rem 2.5rem;
  font-weight: var(--font-semi);
  border-radius: .5rem;
  border: none;
}

.button:hover {
  box-shadow: 0 10px 36px rgba(0, 0, 0, .15);
}

/* ===== SKILLS =====*/

.skills {
  box-shadow: 0 4px 10px 5px rgba(0, 0, 0, 0.2);
}

.skills__container {
  row-gap: 2rem;
  text-align: center;
}

.skills__subtitle {
  margin-bottom: var(--mb-1);
}

.skills__text {
  margin-bottom: var(--mb-4);
}

.skills__data {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  font-weight: var(--font-semi);
  padding: .5rem 1rem;
  margin-bottom: var(--mb-4);
  border-radius: .5rem;
  box-shadow: 0 4px 25px rgba(14, 36, 49, .15);
}

.skills__icon {
  font-size: 2rem;
  margin-right: var(--mb-2);
}

.skills__icon1 {
  color: #E44D26;
}

.skills__icon2 {
  color: skyblue;
}

.skills__icon3 {
  color: yellow;
}

.skills__icon4 {
  color: #7526e4;
}

.skills__icon5 {
  color: rgb(235, 138, 135);
}

.skills__icon6 {
  color: rgb(0, 255, 51);
}

.skills__names {
  display: flex;
  align-items: center;
}

.skills__bar {
  position: absolute;
  left: 0;
  bottom: 0;
  background-color: var(--first-color);
  height: .25rem;
  border-radius: .5rem;
  z-index: -10;
}

.skills__html {
  width: 90%;
}

.skills__css {
  width: 60%;
}

.skills__js {
  width: 20%;
}

.skills__java {
  width: 80%;
}

.skills__mysql {
  width: 50%;
}

.skills__ds {
  width: 40%;
}

.skills__ux {
  width: 50%;
}

.skills__img {
  border-radius: .5rem;
}

.flex-container {
  display: flex;
  gap: 50px;
  justify-content: space-between;
  align-items: end;
  padding: 20px;
}

.flex-container .data_flex1 {
  width: 400px;
}

.flex-container .data_flex2 {
  width: 400px;
}

/*========EDUCATION===== */

.education {
  margin-top: var(--mb-6);
}

.card {
  padding: 10px;
  /* background-color: white; */
  margin: 25px auto;
  width: 60%;
  box-shadow: 0 1px 4px 5px rgba(146, 161, 176, .15);
}

.card .year {
  color: #8A2BE2;

}

/* ===== CONTACT =====*/
.contact__input {
  width: 100%;
  font-size: var(--normal-font-size);
  font-weight: var(--font-semi);
  padding: 1rem;
  border-radius: .5rem;
  border: 1.5px solid var(--second-color);
  outline: none;
  margin-bottom: var(--mb-4);
}

.contact__button {
  display: block;
  border: none;
  outline: none;
  font-size: var(--normal-font-size);
  cursor: pointer;
  margin-left: auto;
}

.contact_span {
  color: #0c0c0c;
}

/* ===== FOOTER =====*/
.footer {
  background-color: black;
  color: #fff;
  text-align: center;
  font-weight: var(--font-semi);
  padding: 2rem 0;
}

.foot {
  display: flex;
  justify-content: space-around;
}

.footer__title {
  font-size: 1.5rem;
  margin-bottom: var(--mb-4);
}

.footer__social {
  margin-bottom: var(--mb-4);
}

.footer__icon {
  font-size: 1.5rem;
  color: #fff;
  margin: 0 var(--mb-2)
}

hr {
  width: 1150px;
  height: 1.5px;
  background-color: rgb(23, 34, 84);
  margin: 10 auto;
}

/* Back to Top Button */
#back-to-top:hover {
  background-color: #555;
  opacity: 0.8;
}

/* ===== MEDIA QUERIES=====*/
@media screen and (min-width: 768px) {
  body {
    margin: 0;
  }

  .section {
    padding-top: 4rem;
    padding-bottom: 3rem;
  }

  .section-title {
    margin-bottom: var(--mb-6);
  }

  .section-title::after {
    width: 80px;
    top: 3rem;
  }

  .nav {
    height: calc(var(--header-height) + 1rem);
  }

  .nav__list {
    display: flex;
    padding-top: 0;
  }

  .nav__item {
    margin-left: var(--mb-6);
    margin-bottom: 0;
  }

  .nav__toggle {
    display: none;
  }

  .nav__link {
    color: var(--second-color);
  }

  .home {
    height: 100vh;
  }

  .home__data {
    align-self: flex-end;
  }

  .home__social {
    padding-top: 0;
    padding-bottom: 2.5rem;
    flex-direction: row;
    align-self: flex-end;
  }

  .home__social-icon {
    margin-bottom: 0;
    margin-right: var(--mb-4);
  }

  .home__img {
    width: 457px;
    bottom: 15%;
  }

  .about__container,
  .skills__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    text-align: initial;
  }

  .about__img img {
    width: 300px;
  }

  .work__container {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    column-gap: 2rem;
  }

  .contact__form {
    width: 360px;
  }

  .contact__container {
    justify-items: center;
  }
}

@media screen and (min-width: 1024px) {
  .bd-grid {
    margin-left: auto;
    margin-right: auto;
  }

  .home__img {
    right: 10%;
  }
}