@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  scroll-behavior: smooth;
  font-family: "Poppins", sans-serif;
}

:root {
  --bg-color: #1f242d;
  --second-bg-color: #323946;
  --text-color: #fff;
  --main-color: #0ef;
}

*::selection {
  background: var(--main-color);
  color: var(--bg-color);
}

body::-webkit-scrollbar {
  display: none; /* للـ Chrome و Safari و Edge الحديث */
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
}

section {
  min-height: 100vh;
  padding: 10rem 9% 2rem;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 9%;
  background: var(--bg-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.header.sticky {
  border-bottom: 0.1rem solid rgba(0, 0, 0, 0.2);
}
.logo {
  font-size: 2.5rem;
  color: var(--text-color);
  font-weight: 600;
  cursor: default;
}
.navbar a {
  font-size: 1.7rem;
  color: var(--text-color);
  margin-left: 4rem;
  transition: all 0.3s ease;
}

.navbar a:hover,
.navbar a.active {
  color: var(--main-color);
}
#menu-icon {
  font-size: 3.6rem;
  color: var(--text-color);
  display: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
#menu-icon.bx-x {
  transform: rotate(180deg);
}

.home {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Skills Start */

/*==================== LAYOUT ====================*/

.grid {
  display: grid;
  gap: 1.5rem;
}

/* .heading {
  text-align: center;
  font-size: 4.5rem;
  margin-bottom: 5rem;
} */

/*==================== BUTTONS ====================*/

/*==================== SKILLS ====================*/
.skills-section {
  min-height: 100vh;
  background: var(--first-bg-color);
}

.skills-section .image {
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  width: 600px;
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -0%);
  margin-top: 50px;
  margin-bottom: 50px;
}

.skills__container {
  row-gap: 0;
}

.skills__header {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  cursor: pointer;
}

.skills__header:hover {
  color: var(--main-color);
  transition: color 0.3s ease;
}

.skills__icon,
.skills__arrow {
  font-size: 2rem;
  color: var(--main-color);
}

.skills__icon {
  margin-right: 1rem;
  font-size: 50px;
  transition: transform 0.3s ease;
}

.skills__icon:hover {
  transform: scale(1.1);
}

.skills__title {
  font-size: 20px;
  /* color: var(--main-color); */
}

.skills__subtitle {
  font-size: 16px;
  color: var(--text-color-light);
}

.skills__arrow {
  margin-left: auto;
  transition: all 0.3s ease;
}



.skills__list {
  row-gap: 1.5rem;
  padding-left: 2.7rem;
}

.skills__titles {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.skills__name {
  font-size: 1.6rem;
  font-weight: 500;
}

.skills__bar,
.skills__percentage {
  height: 5px;
  border-radius: 0.25rem;
}

.skills__bar {
  background-color: rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

.skills__percentage {
  display: block;
  background-color: var(--main-color);
  transition: width 0.5s ease-in-out;
}

.skills__html {
  width: 90%;
}

.skills__css {
  width: 70%;
}

.skills__js {
  width: 60%;
}

.skills__react {
  width: 40%;
}

.skills__php {
  width: 60%;
}

.skills__mysql {
  width: 50%;
}

.skills__node {
  width: 60%;
}

.skills__python {
  width: 70%;
}

.skills__blender {
  width: 50%;
}

.skills__photoshop {
  width: 42%;
}
/* Secutity Start*/
.skills__red {
  width: 80%;
}
.skills__p-t {
  width: 60%;
}
.skills__fw {
  width: 50%;
}

.skills__i-f {
  width: 40%;
}
/* Secutity End */

/* Development Start */
.skills__vs{
  width: 90%;

}

.skills__gb{
  width: 85%;
}

.skills__git{
  width: 70%;
}

.skills__docker{
  width: 60%;
}
/* Development End */
.skills__adobeillustrator {
  width: 62%;
}

.skills__close .skills__list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.skills__open .skills__list {
  max-height: 1000px; /* Exceeds actual content height */
  margin-bottom: 2rem;
  animation: listFadeIn 1s ease forwards;
}

.skills__open .skills__arrow {
  transform: rotate(-180deg);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes listFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.skills__arrow {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* .skills__header:hover .skills__arrow {
  transform: scale(1.1);
} */

/*==================== QUALIFICATION ====================*/
.uil-arrow-right:before {
  color: var(--bg-color);
 }
.services__moda-icon {
  font-size: 30px;
}

.qualification__section {
  min-height: 100vh;
}
/*==================== MEDIA QUERIES ====================*/
/* For small devices */
@media screen and (max-width: 350px) {
  .skills__title {
    font-size: 1.6rem;
  }
}

/* For medium devices */
@media screen and (min-width: 568px) {
  .skills__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .skills-section .image {
    width: 300px;
  }
}

/*==================== Waving hand  ====================*/
.wave {
  animation-name: wave-animation;
  /* Refers to the name of your @keyframes element below */
  animation-duration: 2.5s;
  /* Change to speed up or slow down */
  animation-iteration-count: infinite;
  /* Never stop waving :) */
  transform-origin: 70% 70%;
  /* Pivot around the bottom-left palm */
  display: inline-block;
}

@keyframes wave-animation {
  0% {
    transform: rotate(0deg);
  }

  10% {
    transform: rotate(14deg);
  }

  /* The following five values can be played with to make the waving more or less extreme */
  20% {
    transform: rotate(-8deg);
  }

  30% {
    transform: rotate(14deg);
  }

  40% {
    transform: rotate(-4deg);
  }

  50% {
    transform: rotate(10deg);
  }

  60% {
    transform: rotate(0deg);
  }

  /* Reset for the last half to pause */
  100% {
    transform: rotate(0deg);
  }
}

/*==================== Skills logo ====================*/
.skills__logo:hover {
  transform: translateY(-0.25rem);
  transition: all 0.3s ease;
}

/* Skills End */


/*==================== Qualifications ====================*/
.qualification__section .heading {
  margin-bottom: 5rem;
}
.qualification__section{
  min-height: auto !important;
  background-color: var(--second-bg-color);
}

.qualification__section p{

  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 2rem;
}
.qualification__section .button{
  height: 30px;
}
.qualification__tabs {
  display: flex;
  justify-content: space-evenly;
  margin-bottom: 2rem;
}

.qualification__button {
  font-size: 1.25rem;
  font-weight: medium;
  cursor: pointer;
}
.qualification__section .services__modal-title{
  color: var(--main-color);
}
.qualification__section .services__modal-title ul,i {
  color: var(--main-color);
}
.qualification__button:hover {
  color: var(--main-color);
}

.qualification__icon {
  font-size: 1.8rem;
  margin-right: 0.25rem;
}

.qualification__data {
  display: grid;
  grid-template-columns: 1fr max-content 1fr;
  column-gap: 1.5rem;
}

.qualification__title {
  font-size: 2rem;
  font-weight: medium;
  margin-bottom: 0.5rem;
color: var(--main-color);}

.qualification__subtitle {
  display: inline-block;
  font-size:  normal;
  margin-bottom: 1rem;
  color: var(--text-color);
  
}
.qualification__section ul {
  list-style: none;
}
 .qualification__icon {
  font-size: 7rem;
  color: var(--main-color);
}
.qualification__icon span {
  font-size: 3rem;
  color: var(--main-color);
}
.qualification__calender {
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
  visibility: hidden;
}

.qualification__rounder {
  display: inline-block;
  width: 13px;
  height: 13px;
  background-color: var(--main-color);
  border-radius: 50%;
}

.qualification__line {
  display: block;
  width: 1px;
  height: 100%;
  background-color: var(--main-color);
  transform: translate(6px, -7px);
}

.qualification [data-content] {
  display: none;
}

.qualification__active[data-content] {
  display: none;
}

.qualification__button.qualification__active {
  color: var(--first-color);
}





.certificate-section .portfolio__data {
  font-size: 2rem;
  text-align: center;
}

.certificate-section .portfolio__data i{
color: var(--second-bg-color);
}
.section__subtitle{
  font-weight: bold;
  display: flex;
  justify-content: center;  
  font-size: 1.8rem;
  color: var(--text-color);
  margin-bottom: 4rem

}

.portfolio__data i:hover {
  background: var(--second-bg-color);
  color: var(--main-color);
  box-shadow: 0 0 1rem var(--main-color);
}

.portfolio_-button{
  text-decoration: none;
  color: var(--text-color);
  margin-top: 20px;
  color: var(--main-color);
  display: inline-block;
  padding: 1rem 2.8rem;
  background: var(--main-color);
  border-radius: 4rem;
  box-shadow: 0 0 1rem var(--main-color);
  font-size: 1.6rem;
  color: var(--second-bg-color);
  letter-spacing: 0.1rem;
  font-weight: 600;
  transition: 0.5s ease;

}

@media screen and (max-width: 500px) {
  .certificate-section {
    min-height: auto !important;
  }
}

@media screen and (max-width: 768px) {
  .certificate-section {
    min-height: auto !important;
  }
}
@media screen and (max-width: 991px) {
  .certificate-section {
    min-height: auto !important;
  }
}

.certificate-section  .center-qulify{
  text-align: center;
}

/* End */

.home-img img {
  width: 30vw;
  animation: floatImage 4s ease-in-out infinite;
  max-width: 100%;
  height: auto;
}

@keyframes floatImage {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2.4rem);
  }
  100% {
    transform: translateY(0);
  }
}

.home-content h3 {
  font-size: 3.2rem;
  font-weight: 700;
  display: inline;
  margin-right: 10px;
}

.home-content h3:nth-of-type(2) {
  margin-bottom: 0.5rem;
}

span {
  color: var(--main-color);
}

.home-content h1 {
  font-size: 5.6rem;
  font-weight: 800;
  line-height: 1.3;
}

.home-content p {
  margin-top: 1rem;
  font-size: 1.6rem;
}

.social-media a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 4rem;
  height: 4rem;
  background: transparent;
  border: 0.2rem solid var(--main-color);
  border-radius: 50%;
  font-size: 2rem;
  color: var(--main-color);
  margin: 3rem 1.5rem 3rem 0;
  transition: all 0.3s ease;
}

.social-media a:hover {
  /* background: var(--main-color); */
  color: white;  
  box-shadow: 0 0 1rem var(--main-color);
}

.btn {
  display: inline-block;
  padding: 1rem 2.8rem;
  background: var(--main-color);
  border-radius: 4rem;
  box-shadow: 0 0 1rem var(--main-color);
  font-size: 1.6rem;
  color: var(--second-bg-color);
  letter-spacing: 0.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn:hover {
  box-shadow: none;
  background-color: var(--main-color);
  color: var(--text-color);
}

.about {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  background: var(--second-bg-color);
}

.about img {
  width: 100vw;
  max-width: 100%;
  height: auto;
}

.heading {
  text-align: center;
  font-size: 4.5rem;
}

.about-content h2 {
  text-align: left;
  line-height: 1.2;
}

.about-content h3 {
  font-size: 2.6rem;
}

.about-content p {
  font-size: 1.6rem;
  line-height: 1.5;
  margin: 2rem 0 3rem;
}

.services h2 {
  margin-bottom: 5rem;
}

/*==================== SERVICES ====================*/

.services__container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.services-section p{

  font-size: 1.6rem;
  line-height: 1.5;
  margin: 2rem 0 3rem;

}

.services-section .services__modal-icon {
  font-size: 30px;
  color: var(--main-color);
}

.services-section .services__modal-title {
  font-size: 2.6rem;
  margin-top: 1rem;
  margin-bottom: 2.5rem;
  color: var(--main-color);
}

.services-section li {
  list-style: none;
}
.services__content {
  flex: 1 1 30rem;
  background: var(--second-bg-color);
  padding: 3rem 2rem 4rem;
  border-radius: 2rem;
  text-align: center;
  border: 0.2rem solid var(--bg-color);
  transition: all 0.3s ease;
}

.services__content:hover {
  border: solid var(--main-color);
  /* transform: scale(1.02); */
}

.services__icon {
  font-size: 7rem;
  color: var(--main-color);
}

.services__title {
  font-size: 2.6rem;
  margin-top: 1rem;
  margin-bottom: 2.5rem;
}

.services__button {
  display: inline-block;
  padding: 1.2rem 2.8rem;
  font-size: 1.6rem;
  border-radius: 4rem;
  background: var(--main-color);
  box-shadow: 0 0 1rem var(--main-color);
  color: var(--second-bg-color);
  letter-spacing: 0.1rem;
  font-weight: 600;
  transition: 0.5s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.services__button:hover .button__icon {
  transform: translateX(0.25rem);
}

.services__modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

.services__modal-content {
  position: relative;
  width: 100%;
  max-width: 50rem;
  background-color: var(--second-bg-color);
  padding: 1.5rem;
  border-radius: 0.5rem;
}

.services__modal-services {
  row-gap: 1rem;
}

.service__modal-service {
  display: flex;
}

.services__modal-title {
  font-size: 2.6rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.services__modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  color: var(--main-color);
  cursor: pointer;
}

.services__modal-icon {
  color: var(--main-color);
  margin-right: 0.5rem;
}

/* Active Modal */
.active-modal {
  opacity: 1;
  visibility: visible;
}
@media screen and (max-width: 350px) {
  .services__container {
    grid-template-columns: max-content;
    justify-content: center;
  }

  .services__content {
    padding-right: 3.5rem;
  }

  .services__modal {
    padding: 0 0.5rem;
  }
}

@media screen and (min-width: 768px) {
  .services__container {
    grid-template-columns: repeat(3, 218px);
    justify-content: center;
  }

  .services__content {
    padding: 50px;
  }

  .services__modal-content {
    width: 450px;
  }

  .swiper-error {
    visibility: hidden;
  }
}

@media screen and (min-width: 1024px) {
  .services__container {
    grid-template-columns: repeat(3, 238px);
  }

  .swiper-error {
    visibility: visible;
  }
}

/* Services End */

/*==================== PORTFOLIO ====================*/
.portfolio__container {
  overflow: hidden;
}
.portfolio-section{
  background-color: var(--second-bg-color) !important;
  min-height: auto;
}
.portfolio__content {
  padding: 1.5rem;
  border-radius: 6px;
  display: grid;
  row-gap: 1.5rem;
}

.portfolio-section .portfolio__description{
  text-align: center;
  margin-top: 10px;
  font-weight: bolder;
  font-size: 20px;
  
}
.portfolio__img {
  width: 70%;
  border-radius: 0.5rem;
  transition: transform 0.3s ease;
  justify-self: center;
}

.portfolio__title {
  font-size: 2.5rem;
  text-align: center;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--main-color);
}

.portfolio-section .portfolio__description {
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.portfolio__button:hover .button__icon {
  transform: translateX(0.25rem);
}

.swiper-button-prev::after,
.swiper-button-next::after {
  content: "";
  display: none;
}

.swiper-portfolio-icon {
  font-size: 2rem;
  color: var(--main-color);
}

.swiper-button-prev {
  left: -0.5rem;
}

.swiper-button-next {
  right: -0.5rem;
}

.swiper-container-horizontal > .swiper-pagination-bullets {
  bottom: -2.5rem;
}

.swiper-pagination-bullet-active {
  background-color: var(--main-color);
}

.swiper-button-prev,
.swiper-button-next,
.swiper-pagination-bullet {
  outline: none;
  margin-bottom:  1000px;
}

.button--small {
  padding: 0.75rem 1rem;
}
.button--flex {
  display: inline-flex;
  align-items: center;
}
.omar-button {
  display: inline-block;
  background-color: var(--main-color);
  color: var(--second-bg-color);
  padding: 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: 0.3s;
  cursor: pointer;
  border: none;
  justify-content: center;
  text-align: center;
  align-items: center;
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -220%);
  margin-bottom: 20px;
}

/* @media screen and (min-width: 568px) {
    .portfolio__content{
          grid-template-columns: repeat(2, 1fr);

    } */


/* End */

.contact h2 {
  margin-bottom: 3rem;
}

.contact form {
  max-width: 70rem;
  margin: 1rem auto 3rem;
  text-align: center;
}

.contact form .input-box {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.contact form .input-box input,
.contact form textarea {
  width: 100%;
  padding: 1.5rem;
  font-size: 1.6rem;
  border-radius: 0.8rem;
  background: var(--second-bg-color);
  color: var(--text-color);
  margin: 0.7rem 0;
}

.contact form .input-box input {
  width: 49%;
}

.contact form textarea {
  resize: none;
}

.contact form .btn {
  margin-top: 2rem;
  cursor: pointer;
}

footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 2rem 9%;
  background: var(--second-bg-color);
}

.footer-text p {
  font-size: 1.6rem;
}

.footer-iconTop a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.8rem;
  background: var(--main-color);
  border-radius: 0.8rem;
  transition: 0.5s ease;
}

.footer-iconTop a:hover {
  box-shadow: 0 0 1rem var(--main-color);
}

.footer-iconTop a i {
  font-size: 2.4rem;
  color: var(--second-bg-color);
}

/* BREAKPOINTS */
@media (max-width: 1200px) {
  html {
    font-size: 55%;
  }
}

@media (max-width: 991px) {
  .header {
    padding: 2rem 3%;
  }
  /* section {
  } */
  .services {
    padding-bottom: 7rem;
  }
  .portfolio {
    min-height: 70vh;
  }
  .contact {
    min-height: auto;
  }
  .footer {
    padding: 2rem 3%;
  }
}

@media (max-width: 768px) {
  #menu-icon {
    display: block;
  }
  .navbar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1rem 3%;
    background: var(--bg-color);
    border-top: 0.1rem solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
    position: absolute;
  }
  .navbar.active {
    display: flex;
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .navbar {
    display: flex;
    flex-direction: column;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-15px);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.3s linear;
    will-change: transform, opacity;
  }
  .navbar a {
    display: block;
    font-size: 2rem;
    margin: 3rem 0;
  }
  .home,
  .about {
    flex-direction: column;
  }
  .home-content h3 {
    font-size: 2.6rem;
  }
  .home-content h1 {
    font-size: 3.5rem;
  }
  .home-img img,
  .about img {
    width: 70vw;
    margin-top: 4rem;
    max-width: 100%;
    height: auto;
  }
  .services h2,
  .portfolio h2 {
    margin-bottom: 3rem;
  }
  .portfolio-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .home .home-content {
    margin: auto;
    text-align: center;
  }

  .home-content h3 {
    display: block;
  }
}

@media (max-width: 617px) {
  .portfolio-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 450px) {
  html {
    font-size: 50%;
  }
  .contact form .input-box input {
    width: 100%;
  }
}

@media (max-width: 365px) {
  .home-img img,
  .about img {
    width: 90vw;
  }
  .footer {
    flex-direction: column-reverse;
    text-align: center;
  }
  .footer p {
    text-align: center;
    margin-top: 2rem;
  }
}

/* The End */



