@import url("https://fonts.googleapis.com/css2?family=Alexandria:wght@100;200;300;400;500;600;700;800;900&family=Audiowide&family=Barlow:wght@200;300;400;500;600;700;800;900&family=Cairo:wght@200;300;400;500;600;700;800;900;1000&family=Kenia&family=Lato:wght@300;400;700;900&family=Nunito:wght@200;300;400;500;600;700;800&family=Poppins:wght@100;200;300;400;500;600;700;800;900&family=Roboto:wght@100;300;400;500;700;900&display=swap");
/* =============== GLOBAL TAGS 
====================================================== */
* {
  margin: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  scroll-behavior: smooth;
}
:root {
  --white: #ffff;
  --black: #000000;
  --bg: #20272f;
  --main-color: #00bd95;
  --bg2: #171c22;
  --hovered: #009a79;
  --p-color: #eeeeee;
}
.light_mode {
  --white: #000000;
  --black: #ffffff;
  --bg: #fcfbff;
  --main-color: #28a4bd;
  --bg2: rgb(242, 242, 242);
  --hovered: #0f7787;
  --p-color: #111111;
}
body {
  text-rendering: optimizeSpeed;
}
.sub_title h2 {
  font-size: 1.6rem;
}
i,
img,
svg,
a {
  cursor: pointer;
}
p {
  color: var(--p-color);
}
section {
  padding: 8rem 0px;
  color: var(--white);
}
hr {
  height: 1px;
  background-color: var(--main-color);
  border: none;
  width: 100px;
  margin-bottom: 15px;
}
h1 {
  font-size: 2.5rem;
}
.container {
  width: 70%;
  margin: auto;
}
a {
  text-decoration: none;
  color: var(--white);
  background-color: var(--main-color);
  border: none;
  font-size: 1.05rem;
  padding: 8px 12px;
  border-radius: 10px;
  transition: ease-in-out 0.4s;
  color: var(--white);
  display: flex;
  place-content: center;
}
a:hover {
  background-color: var(--main-color);
  transform: scale(1);
  background-color: var(--hovered);
  box-shadow: 0px 8px 15px var(--bg2);
}
.scroll_nav {
  position: fixed;
  box-shadow: 0px 5px 10px -6.5px #00000074;
}
/* =============== BUTTON SCROLL UP 
====================================================== */
#btn_up {
  position: fixed;
  right: 325px;
  bottom: 70px;
  font-size: 2.6rem;
  color: var(--white);
  background-color: var(--main-color);
  border-radius: 50%;
  padding: 4px;
  font-size: 2.2rem;
  font-weight: 700;
  z-index: 100;
}
/* =============== NAV BAR 
======================================================*/
.navbar {
  width: 100%;
  background-color: var(--bg);
  height: 80px;
  color: var(--white);
  z-index: 999;
}
.nav__content {
  display: flex;
  justify-content: space-between;
  padding: 20px 0px;
  align-items: center;
}
#logo__type{
  all: revert;
}
.nav__logo {
  width: 110px;
}
.nav__content ul {
  display: flex;
  gap: 20px;
  align-items: center;
}
.nav__content ul li {
  list-style: none;
}
.nav__content ul li a {
  font-size: 1.05rem;
  background-color: transparent;
}
.nav__content ul li a:hover {
  color: var(--main-color);
  box-shadow: 0px 0px;
}
.nav__content ul li a i {
  transition: ease-in 0.4s;
  font-size: 1.35rem;
  color: var(--white);
}
.nav__content ul li a i:hover {
  color: var(--white);
}
.nav__btn__mode {
  font-size: 1.25rem;
  box-shadow: none;
  border-radius: 50%;
  padding: 7px;
}
#toggleBtn {
  /* hide hamburger menu  */
  display: none;
}
.active_link {
  color: var(--main-color);
}
/* ================== HERO 
======================================================  */
#home {
  background-color: var(--bg);
  min-height: calc(100vh - 70px);
  color: var(--white);
}
.home__content {
  display: grid;
  grid-template-areas:
    "social-icons text pic"
    "scroll scroll scroll";
  gap: 2.5rem;
  place-items: center;
}
.home__social__media {
  grid-area: social-icons;
}
.home__social__media a {
  all: revert;
  color: var(--white);
}
.home__social__media i {
  font-size: 1.7rem;
  width: 100%;
  margin-bottom: 10px;
  transition: ease-in-out 0.4s;
}
.home__social__media i:hover {
  color: var(--main-color);
  transform: scale(1.1);
}
.home__text {
  grid-area: text;
}
.home__text a:last-child {
  background-color: transparent;
}
.home__text h2 {
  color: var(--main-color);
  letter-spacing: 1.5px;
  text-transform: capitalize;
  font-size: 2.2rem;
}
.home__text h1 {
  letter-spacing: 1.5px;
  text-transform: capitalize;
  font-size: 2.8rem;
}
.home__text h3 {
  color: var(--white);
  font-size: 1.55rem;
  margin-bottom: 10px;
  font-weight: 500;
}
.home__text h3 span {
  color: var(--main-color);
  font-size: 1.35rem;
}
.home__text p {
  line-height: 25px;
  margin-bottom: 15px;
  font-size: 1.1rem;
}
.home__btns {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.home__btns a:last-child {
  box-shadow: none;
}
.home__btns i {
  margin-left: 10px;
  font-size: 1.5rem;
}
.home__content img {
  width: 450px;
  grid-area: pic;
}
.home__scroll__down {
  margin-top: 80px;
  grid-area: scroll;
}
.home__scroll__down a {
  background-color: transparent;
  color: var(--main-color);
  font-size: 1.15rem;
}
.home__scroll__down a span {
  color: var(--white);
  padding-right: 5px;
  font-size: 1.15rem;
}
.home__scroll__down a:hover {
  box-shadow: 0px 0px;
}
.home__scroll__down i {
  font-size: 2rem;
}
/* ================== SERVICES 
======================================================  */
#services {
  background-color: var(--bg2);
}
.services__sub__title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--main-color);
  margin-bottom: 25px;
}
.services__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  margin-top: 3rem;
  gap: 20px;
}
.services__card {
  background-color: var(--bg);
  padding: 40px;
  border-radius: 10px;
  display: grid;
  gap: 10px;
  place-items: center;
  text-align: center;
  transition: 0.55s;
}
.services__card:hover {
  transform: scale(1.05);
}
.services__card h2 {
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--main-color);
}
.services__card p {
  font-size: 1.15rem;
}
.services__card svg {
  fill: var(--main-color);
  width: 100px;
  height: 100px;
}
.services__card i {
  font-size: 1.7rem;
}
/* ================== PORTFOLIO 
======================================================  */
#portfolio {
  background-color: var(--bg);
}
/* ================== WEBDEV ==================  */
.portfolio__sub__title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--main-color);
  margin-bottom: 25px;
}
.title__category__prj {
  margin-top: 2rem;
  font-size: 2.1rem;
  font-weight: 700;
  text-align: center;
}
.title__category__prj span {
  font-size: 2.1rem;
  color: var(--main-color);
}
.portfolio__cards__prj {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  align-content: center;
  margin: 3rem 0;
  gap: 20px;
}
.portfolio__card {
  border-radius: 10px;
  display: grid;
  text-align: center;
  transition: 0.55s;
  background-color: var(--bg2);
}
.portfolio__card:hover {
  transform: scale(1.05);
}
.portfolio__card h2 {
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--main-color);
}
.portfolio__card h4 {
  font-weight: 300;
  font-size: 1rem;
}
.portfolio__card p {
  font-size: 1.15rem;
}
.portfolio__infos__card {
  padding: 1rem;
  display: grid;
  gap: 20px;
  grid-template-rows: 230px auto;
  place-items: center;
}
.portfolio__card img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  transition: all 0.4s;
  object-fit: cover;
}

.portfolio__card i {
  font-size: 1.5rem;
  margin-left: 10px;
}
/* ================== PHOTOSHOP ==================  */
.portfolio__glb__ps__cont {
  display: grid;
  grid-template-columns: 1fr 9fr 1fr;
  gap: 15px;
  justify-content: center;
  margin-top: 3rem;
}
.portfolio__ps__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 35px;
  align-items: center;
}
.portfolio__ps__images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1fr 90px;
  gap: 10px;
}
.portfolio__ps__main_pic {
  object-position: center;
  border-radius: 10px;
  grid-column: 1/5;
  width: 100%;
  height: 350px;
}
.portfolio__ps__images img {
  width: 100%;
  object-fit: cover;
  height: 100%;
  border-radius: 10px;
  background-color: #0f7787;
  transition: 0.4s;
}
.portfolio__ps__images img:not(.portfolio__ps__main_pic):hover {
  transform: scale(1.15);
}
.portfolio__infos__ps {
  display: grid;
  align-items: center;
  justify-content: center;
  grid-template-rows: repeat(4, 60px);
}
.portfolio__infos__ps h1 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  font-weight: 500;
}
.portfolio__infos__ps h1 span {
  color: var(--main-color);
  font-size: 2.5rem;
}
.portfolio__infos__ps h3 {
  font-size: 1.35rem;
}
.portfolio__ps__avatar {
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: center;
}
.portfolio_stars i {
  color: yellow;
}
.portfolio__title__avatar h3 {
  font-weight: 500;
}
.portfolio__title__avatar a {
  all: revert;
  color: var(--p-color);
}
.portfolio__ps__avatar img {
  width: 50px;
  background-color: var(--main-color);
  border-radius: 50%;
  padding: 2px;
  object-fit: cover;
}
.portfolio__infos__ps p {
  place-self: start;
  font-size: 1.2rem;
  text-align: justify;
}
.portfolio__glb__ps__cont .bxs-chevron-right,
.bxs-chevron-left {
  place-self: center;
  background-color: var(--main-color);
  padding: 7px;
  font-size: 1.85rem;
  border-radius: 50%;
}
/* ================== SKILLS 
======================================================  */
#skills {
  background-color: var(--bg2);
}
.skills__sub__title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--main-color);
  margin-bottom: 25px;
}
.skills__glb {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-content: center;
  gap: 2rem;
}
.skill {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 1rem;
  align-items: center;
  background-color: var(--bg);
  padding: 10px 20px;
  border-radius: 10px;
}
.skill i {
  font-size: 3.5rem;
  color: var(--main-color);
}
.skill svg {
  fill: var(--main-color);
}
.skill h2 {
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--white);
}
/* ================== CONTACT 
====================================================== */
#contact {
  background-color: var(--bg);
}
.contact__sub__title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--main-color);
  margin-bottom: 25px;
}
.contact__infos__glb {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
  gap: 5rem;
  margin-top: 2rem;
  background-color: var(--bg2);
  padding: 40px;
  border-radius: 10px;
  align-items: center;
}
.contact__infos__glb form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}
.contact__infos__glb form input,
textarea {
  padding: 10px;
  outline: none;
  border: none;
  border-radius: 10px;
  border: 2px solid transparent;
  background-color: var(--bg);
  color: var(--p-color);
  font-size: 0.95rem;
  resize: vertical;
}
.contact__infos__glb form input:focus,
.contact__infos__glb form textarea:focus {
  border: 2px solid var(--main-color);
}
.contact__infos__glb form #submit {
  border: 2px solid var(--main-color);
  cursor: pointer;
  background-color: var(--main-color);
}
.contact__infos__glb form input::placeholder,
.contact__infos__glb form textarea::placeholder {
  color: var(--p-color);
  opacity: 0.5;
}
.contact__infos {
  display: flex;
  gap: 1.7rem;
  flex-direction: column;
}
.contact__title {
  background-color: var(--bg);
  padding: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  flex-direction: column;
}
.contact__title h3 {
  color: var(--p-color);
  font-weight: 400;
  font-size: 1.05rem;
  text-align: center;
}
.contact__title h4 {
  color: var(--main-color);
  font-weight: 400;
  margin: 15px 0px;
  text-align: center;
}
.contact__avatar {
  width: 80px;
  height: 80px;
  background-color: var(--bg2);
  border-radius: 50%;
  padding: 2px;
}
.contact__cord h3,
h4 {
  color: var(--p-color);
  font-weight: 500;
}
.contact__cord {
  display: grid;
  align-items: center;
  grid-template-columns: 50px 1fr;
}
.contact__cord i {
  font-size: 1.7rem;
  color: var(--main-color);
}
.contact__social__media i {
  font-size: 1.5rem;
  margin-bottom: 10px;
  transition: ease-in-out 0.4s;
  color: var(--p-color);
}
.contact__social__media i:hover {
  color: var(--main-color);
  transform: scale(1.1);
}
.contact__social__media {
  display: flex;
  margin-top: 1rem;
  gap: 1rem;
}
.contact__social__media a {
  all: revert;
}
.contact__social__media i {
  padding: 5px;
  border-radius: 50%;
}
.contact__more__inf {
  align-items: center;
  justify-content: center;
}
/* ================== FOOTER 
======================================================  */
#footer {
  background-color: var(--bg);
  text-align: center;
  padding: 1rem 0;
  background-color: var(--bg2);
}
#footer h4 {
  font-weight: 400;
  text-transform: capitalize;
  color: var(--p-color);
}
/* ================== BARE SCROLL 
====================================================== */
/* width */
::-webkit-scrollbar {
  width: 10px;
}
/* Track */
::-webkit-scrollbar-track {
  background: var(--bg);
}
/* Handle */
::-webkit-scrollbar-thumb {
  background: var(--main-color);
}
::selection {
  background: var(--main-color);
}
/* ================== MEDIA QUERIES 
====================================================== */
/* ================== NAVBAR PHONE ================== */
@media screen and (max-width: 991px) {
  .navbar .container {
    width: 100%;
  }
  .navbar #toggleBtn {
    /* show hamburger menu  */
    display: block;
    font-size: 2.7rem;
    padding: 6px;
    position: absolute;
    z-index: 200;
    right: 10px;
    top: 15px;
  }
  .navbar {
    height: 65px;
  }
  .nav__logo {
    display: none;
  }
  .nav__content {
    position: fixed;
    z-index: 100;
    background-color: var(--bg2);
    min-height: 100vh;
    width: 100%;
    display: none;
    padding: 20px;
  }
 .menu_active {
    display: block;
  }
  .nav__content ul {
    display: flex;
    flex-direction: column;
    padding: 0;
  }
  .nav__content ul li {
    background-color: var(--bg);
    border-radius: 10px;
    width: 100%;
  }
  .nav__content ul li a {
    font-size: 1.5rem;
  }
  .nav__btn__mode {
    font-size: 2.7rem;
  }
  .nav__content i {
    font-size: 2.7rem;
  }
  .nav__content .btn_mode{
    font-size: 2rem;
  }
}
/* ================== SM PHONE ================== */
@media screen and (max-width: 350px) {
  * {
    font-size: 11.5px;
  }
  .container {
    width: 95%;
  }
  #btn_up {
    right: 7px;
    bottom: 65px;
  }
  .nav__content {
    padding-top: 150px;
  }
  .home__content {
    grid-template-areas:
      "social-icons  pic"
      "text text"
      "scroll scroll";
    column-gap: 0;
  }
  .home__content img {
    width: 220px;
    justify-self: start;
  }
  .services__cards {
    grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  }
  .services__card svg {
    width: 93px;
    height: 78px;
  }
  .portfolio__cards__prj {
    grid-template-columns: repeat(auto-fit, minmax(253px, 1fr));
  }
  .portfolio__ps__images {
    gap: 5px;
    grid-template-rows: 1fr 50px;
  }
  .portfolio__ps__images img {
    width: 40px;
    height: 40px;
  }
  .portfolio__ps__images .portfolio__ps__main_pic {
    width: 100%;
    height: 250px;
  }
  .portfolio__ps__content {
    grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
    margin-bottom: 8rem;
  }
  .skill i {
    font-size: 2.8rem;
  }
  .skill svg {
    width: 2.8rem;
  }
  .skill {
    grid-template-columns: 50px 1fr;
    gap: 0.5rem;
  }
  .skills__glb {
    grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  }
  .contact__infos__glb {
    gap: 2rem;
  }
  .contact__infos__glb {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
  .contact__infos__glb {
    padding: 20px;
  }
  .contact__cord {
    grid-template-columns: 30px 1fr;
  }
  #footer {
    padding: 10px 20px;
  }
}
/* ================== PHONE ================== */
@media screen and (min-width: 351px) and (max-width: 574px) {
  * {
    font-size: 13.5px;
  }
  .container {
    width: 92%;
  }
  #btn_up {
    right: 15px;
    bottom: 70px;
  }
  .nav__content {
    padding-top: 80px;
  }
  .home__content img {
    width: 300px;
    justify-self: start;
  }
  .home__content {
    grid-template-areas:
      "social-icons  pic"
      "text text"
      "scroll scroll";
  }
  .skill {
    grid-template-columns: 50px 1fr;
    gap: 0.5rem;
  }
  .skill i {
    font-size: 2.8rem;
  }
  .skill svg {
    width: 2.8rem;
  }
  .contact__infos__glb {
    gap: 2rem;
  }
  #footer {
    padding: 10px 40px;
  }
}
/* ================== PHONE ROTATE ================== */
@media screen and (min-width: 575px) and (max-width: 767px) {
  * {
    font-size: 13px;
  }
  .container {
    width: 90%;
  }
  #btn_up {
    right: 28px;
    bottom: 55px;
  }
  .nav__content {
    padding-top: 20px;
  }
  .nav__content ul {
    gap: 10px;
  }
  .nav__content ul li {
    width: 50%;
  }
  .nav__content ul li a {
    font-size: 15px;
    padding: 5px;
  }
  .nav__btn__mode {
    padding: 0px;
  }
  .home__content {
    grid-template-areas:
      "social-icons pic"
      "text text"
      "scroll scroll";
    column-gap: 0;
    row-gap: 2rem;
    place-items: center;
  }
  .home__content img {
    width: 300px;
    justify-self: start;
  }
  .skill {
    grid-template-columns: 50px 1fr;
    gap: 0.5rem;
  }
  .skill i {
    font-size: 2.8rem;
  }
  .skill svg {
    width: 2.8rem;
  }
  .contact__infos__glb {
    gap: 2rem;
  }
}
/* ================== IPAD ================== */
@media screen and (min-width: 768px) and (max-width: 991px) {
  * {
    font-size: 15px;
  }
  .container {
    width: 95%;
  }
  #btn_up {
    right: 15px;
    bottom: 70px;
  }
  .nav__content {
    padding-top: 290px;
    height: 50px;
  }
  .nav__content ul li a {
    font-size: 2.4rem;
  }
  .home__content {
    grid-template-areas:
      "social-icons pic"
      "text text"
      "scroll scroll";
    column-gap: 0;
    row-gap: 2rem;
    place-items: center;
  }
  .home__content img {
    width: 380px;
    justify-self: start;
  }
  .skill {
    grid-template-columns: 50px 1fr;
    gap: 1.5rem;
  }
  .skill i {
    font-size: 3rem;
  }
  .skill svg {
    width: 3rem;
  }

  #skills .content_skills .gbl_skills {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact__infos__glb {
    gap: 2rem;
  }
  .nav__content .btn_mode{
    font-size:3rem;
  }
  .navbar {
    height: 85px;
  }
}
/* ================== IPAD ROTATE ================== */
@media screen and (min-width: 992px) and (max-width: 1279px) {
  * {
    font-size: 15px;
  }
  .container {
    width: 85%;
  }
  #btn_up {
    right: 75px;
    bottom: 70px;
  }
  .home__content {
    grid-template-areas:
      "social-icons text pic"
      "scroll scroll scroll";
    column-gap: 0;
    row-gap: 2rem;
    place-items: center;
  }
  .home__content img {
    width: 400px;
    justify-self: start;
  }
  .services__cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .skill i {
    font-size: 3rem;
  }
  .skill svg {
    width: 3rem;
  }
  .skill {
    grid-template-columns: 50px 1fr;
    gap: 1.5rem;
  }
  .contact__infos__glb {
    gap: 2rem;
  }
}