/* بسم الله الرحمن الرحيم */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Cairo", sans-serif;
  scroll-behavior: smooth;
}

/* البداية مخفية */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  /* يتحرك من تحت */
  transition: all 0.8s ease-out;
}

/* لما يظهر */
.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* Bot */
.lang-btn {
  /* font-size: 24px; */
  padding: 13px;
  border-radius: 10px;
  border: none;
  background-color: #000000;
  color: #fff;
  cursor: pointer;
  z-index: 1000;
  transition: all 0.4s;
  margin: 0px 5px;
}

/* Any Section */

section {
  min-height: 100vh;
  /* overflow: hidden; */
}

/* Navbar */

.navbar {
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  padding: 14px 30px;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  z-index: 1000;
}

.logo {
  width: 0%;
  font-size: 1rem;
  font-weight: 900;
  color: #fff;
}

.navbar .nav-item .nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.navbar .nav-item .nav-links a {
  position: relative;
  text-decoration: none;
  color: #fff;
  font-size: 1rem;
  transition: 0.3s;
}

.navbar .nav-item .nav-link {
  position: relative;
  color: #fff;
  transition: color 0.3s ease;
}

.navbar .nav-item .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 2px;
  background: #f1f1f1;
  transition: width 0.3s ease;
}

.navbar .nav-item .nav-link:hover::after,
.navbar .nav-item .nav-link.active::after {
  width: 100%;
}

.navbar .nav-item .nav-link:hover {
  color: #4facfe;
}

.navbar .nav-item .nav-link:hover::after {
  box-shadow: 0 0 10px #4facfe;
}

#bg {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  pointer-events: none;
}

/* Header */

header {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 40px;
  position: relative;
  flex-wrap: wrap;
}

header .contant {
  /* width: 50%; */
  margin-top: 30px;
  max-width: 600px;
  text-align: left;
  color: #fff;
}

header .contant h1 {
  font-size: 3rem;
}

header .contant h1 span {
  color: #3b82f6;
}

header .Words {
  line-height: 1.7;
  opacity: 0.9;
}

header .img-box {
  width: 50%;
  display: flex;
  justify-content: center;
}

.about .img {
  position: relative;
  width: fit-content;
  margin: auto;
}


header img {
  margin-top: 60px;
  width: 290px;
  height: 290px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid transparent;
  background:
    linear-gradient(#000, #000) padding-box,
    linear-gradient(135deg, #3b82f6, #22d3ee, #6366f1) border-box;
  box-shadow:
    0 0 25px rgba(59, 130, 246, .6),
    0 0 50px rgba(34, 211, 238, .3);
  transition: transform .6s ease, box-shadow .6s ease;
}

.About .dot {
  position: absolute;
  z-index: 3;
  bottom: 0px;
  right: 0rem;
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #16a34a;
  box-shadow: 0 0 15px rgba(22, 163, 74, .7);
}

.About span i {
  font-size: 0.7rem;
  animation: pulse 1.4s infinite;
}

/* الهالة */
.About .dot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: rgba(34, 197, 94, .5);
  animation: wave 1.5s infinite ease-out;
}

@keyframes wave {
  0% {
    transform: scale(0.5);
    opacity: 0.9;
  }

  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}


header img:hover {
  transform: scale(1.08);
  box-shadow:
    0 0 40px rgba(59, 130, 246, .9),
    0 0 80px rgba(99, 102, 241, .6);
}

header .contant .Words {
  font-size: 1.1rem;
  color: #eee;
  opacity: 0.8;
  width: 70%;
  margin-right: auto;
}

header .contant h1 {
  font-size: 28px;
  color: #eee;
  font-weight: 600;
}

header .contant h1 span {
  font-size: 67px;
  color: blue;
  font-weight: 900;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  text-transform: uppercase;
}

header .contant a i {
  font-size: 25px;
  margin: 0px 10px;
  transition: all 0.9s;
  bottom: 0;
}

header .contant i:hover {
  transform: scale(1.4) rotate(360deg);
  color: #f6f6f6;
}

header .contant p {
  font-size: 22px;
  color: #ffffff;
  height: 40px;
}

#typing {
  padding-right: 5px;
  white-space: nowrap;
}

@media (max-width: 1200px) {
  header .img-box span {
    right: 50%;
    transform: translateX(50%);
  }
}

@media (max-width: 992px) {
  header {
    flex-direction: column;
    justify-content: center;
  }

  header .img-box {
    margin-bottom: 20px;
  }

  header .img-box span {
    bottom: 10px;
    right: 50%;
    transform: translateX(50%);
    font-size: 0.8rem;
  }

  header .contant .Words {
    width: 100%;
    text-align: center;
  }

  header img {
    width: 200px;
    height: 200px;
  }

  header .contant {
    margin-top: 100px;
    text-align: center;
  }
}

@media (max-width: 576px) {
  header img {
    width: 150px;
    height: 150px;
    margin-top: -150px;
  }

  header .img-box span {
    bottom: 5px;
    padding: 5px 12px;
    font-size: 0.75rem;
  }

  header .contant h1 {
    font-size: 1.8rem;
  }

  header .contant h1 span {
    font-size: 3rem;
  }

  header .contant p {
    font-size: 16px;
  }
}

@media (max-width: 400px) {
  header img {
    width: 170px;
    height: 170px;
  }

  header .img-box span {
    font-size: 0.7rem;
  }
}

/* About */

.About {
  text-align: center;
  margin-bottom: 200px;
  background: linear-gradient(to top, #1e1e1eb3, rgba(0, 0, 0, 0.721));
}

.About .img {
  position: relative;
  width: fit-content;
  margin: auto;
}

.About .img img {
  border-radius: 20px;
  box-shadow: 0 0 25px rgba(59, 130, 246, .4);
  transition: .4s ease;
}

.About .img img:hover {
  transform: scale(1.05);
}

.about-badges {
  margin: 80px auto 50px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.about-badges .badge {
  background: rgba(0, 0, 0, 0.7);
  padding: 2rem 2.5rem;
  border-radius: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 190px;
}

.about-badges .badge:hover {
  transform: translateY(-12px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 123, 255, 0.7);
}

.about-badges .badge i {
  font-size: 2.2rem;
  color: #8b5cf6;
  margin-bottom: 12px;
}

.about-badges .badge h2 {
  color: #22d3ee;
  font-size: 1.8rem;
  margin-bottom: 5px;
}

.about-badges .badge p {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 500;
}


.About .content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
}

.About .content p {
  max-width: 600px;
  line-height: 1.7;
  color: #e0e0e0;
  font-size: 1.05rem;
}

.About .content .img {
  text-align: center;
  position: relative;
}

.About .content .img img {
  max-width: 250px;
  border-radius: 50%;
  border: 4px solid #22d3ee;
  transition: all 0.3s;
}

.About .content .img .dot {
  position: absolute;
  bottom: 210px;
  right: 40px;
  background: #8b5cf6;
  color: #000;
  padding: 3px 8px;
  border-radius: 50px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.About .img span.dot {
  position: absolute;
  bottom: 200px;
  left: -230px;
  background: #16a34a;
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  width: 40%;
  margin: auto;
  gap: 6px;
  box-shadow: 0 0 15px rgba(22, 163, 74, .7);
}

.About .img span.dot i {
  font-size: 0.7rem;
  animation: pulse 1.4s infinite;
}

/* Pulse Animation */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.4);
    opacity: .6;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 576px) {
  .About .img span.dot {
    font-size: 0.7rem;
    padding: 4px 10px;
  }
}

.About .text span {
  display: inline-block;
  font-size: 30px;
  font-weight: bolder;
  font-family: Georgia, 'Times New Roman', Times, serif;
  /* animation: letters 1.5s infinite ease-in-out; */
}

.About .text {
  /* background-color: #eeeeee61; */
  width: fit-content;
  margin: auto;
  padding: 10px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 1px 1px 10px blue;
  font-weight: 900;
}


.About .text span:nth-child(1) {
  /* animation-delay: 0s; */
  color: White;
  font-size: 60px;
}

.About .text span:nth-child(2) {
  /* animation-delay: 0.1s; */
  color: White;
  font-size: 60px;
}

.About .text span:nth-child(3) {
  /* animation-delay: 0.2s; */
  color: White;
  font-size: 60px;
}

.About .text span:nth-child(4) {
  /* animation-delay: 0.3s; */
  color: White;
  font-size: 60px;
}


.About .text span:nth-child(5) {
  /* animation-delay: 0.4s; */
  color: White;
  font-size: 60px;
}



.About .text span:nth-child(7) {
  animation-delay: 0.5s;
  color: blue;
  font-size: 60px;
}

.About .text span:nth-child(8) {
  animation-delay: 0.6s;
  color: blue;
  font-size: 60px;
}

@keyframes letters {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
    color: #ffffff8e;
  }
}


.About .content {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-wrap: wrap;
  padding: 20px;
  min-height: 70vh;
}

.About .content p {
  width: 70%;
  margin: 10px auto;
  color: #ffffff;
  letter-spacing: 1.2px;
  word-spacing: 2.2px;
  font-weight: 600;
  line-height: 40px;
  text-transform: capitalize;
  font-family: Georgia, 'Times New Roman', Times, serif;
  /* animation: typing steps(1000) 2s; */
  /* animation-iteration-count: 1; */
}

@keyframes typing {
  from {
    display: none;
    width: 0%;
  }

  to {
    display: block;
    width: 100%;
  }
}

.About .content .imgs {
  flex-shrink: 0;
  flex-grow: 1;
}

.About .content img {
  width: 250px;
  height: 250px;
  margin: 100px auto;
  border-radius: 50%;
  border: 10px dashed blue;
  box-shadow: 0px 0px 15px blue;
  transition: all 1.3s;
  animation: translatY 2.1s infinite ease-in-out;
}

@keyframes translatY {
  0%, 100% {
    transform: translateY(10)rotate(0deg);
  }

  50% {
    transform: translateY(-20px)rotate(1deg);
  }
}

.About .content img:hover {
  transform: scale(1.1);
  border: 5px dashed blue;
  box-shadow: 0px 0px 10px blue;
}


/* Skills */

.Skills, .tools {
  margin: 100px auto;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px;
  gap: 100px;
}

.Language, .Tools {
  color: #ffffff;
  text-align: center;
  margin: 20px auto;
  font-weight: 900;
  font-size: 40px;
  position: relative;
  /* outline: 1px solid blue; */
  width: 100%;
  z-index: 1;
}

.Language::after, .Tools::after {
  content: "";
  position: absolute;
  left: 0%;
  right: 0%;
  top: -7%;
  bottom: -10px;
  /* height: 40px; */
  background-color: rgba(0, 0, 255, 0.574);
  border-radius: 20022px;
  width: 0%;
  margin: auto;
  transition: all 2s;
  z-index: -11;
}

.Language:hover::after, .Tools:hover::after {
  width: 70%;
}

.Skills .item {
  background-color: rgba(0, 0, 0, 0.792);
  padding: 5rem;
  height: 300px;
  width: fit-content;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: block;
  transition: all 0.9s;
}

.tools .item {
  background-color: rgba(0, 0, 0, 0.792);
  padding: 5rem;
  height: 300px;
  width: fit-content;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: block;
  transition: all 0.9s !important;
}

.Skills .item h2, .tools .item h2 {
  color: #eee;
  font-weight: 600;
  font-size: 30px;
  transition: all 0.1s ease;
  position: relative;
  color: #fff;
}

.Skills .item h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -35px;
  width: 0%;
  height: 2px;
  background: blue;
  transition: width 0.3s ease;
}

.Skills .item i, .tools .item i {
  font-size: 100px;
  z-index: 1;
  transform: translateY(-100px);
  transition: transform 0.3s, filter 0.3s;
}

.fa-html5 {
  color: #e34f26;
}

.fa-css3,
.fa-css3-alt {
  color: #1572b6;
}

.fa-bootstrap {
  color: #6328bc;
}

/* JavaScript */
.fa-js {
  color: #f7df1e;
  /* JS Yellow */
}

/* Python */
.fa-python {
  color: #3776ab;
  /* Python Blue */
}

/* React */
.fa-react {
  color: #61dafb;
  /* React Light Blue */
}

/* Flutter */
.fa-flutter {
  color: #02569B;
  /* Flutter Blue */
}

/* Dart */
.fa-dart-lang,
.fa-dart {
  color: #0175C2;
  /* Dart Blue */
}


.badge.waiting {
  background-color: red;
  position: relative;
}

.badge.waiting::after {
  content: "...";
  animation: dots 1.9s steps(3, end) infinite;
}

@keyframes dots {
  0% {
    content: "";
  }

  33% {
    content: ".";
  }

  66% {
    content: "..";
  }

  100% {
    content: "...";
  }
}

/* Tools Color */

.fa-git-alt {
  color: #f34f29;
}

.fa-github {
  color: #fff;
}

.fa-code {
  color: #007acc;
}

.fa-figma {
  color: #f24e1e;
}

.fa-node-js {
  color: #3c873a;
}

.fa-bug {
  color: #e5533d;
}

.fa-cloud-arrow-up {
  color: #38bdf8;
}

.fa-database {
  color: #4db33d;
}

/* Hover */

.Skills .item:hover h2::after {
  width: 100%;
}

.Skills .item:hover {
  transform: translateY(-15px)scale(1.1);
  box-shadow: 1px 1px 10px blue;
}

.tools .item:hover {
  transform: translateY(-15px)scale(1.1);
  box-shadow: 1px 1px 10px blue;
}

.tools .item:hover i {
  transform: translateY(0px);
  filter: drop-shadow(0 0 10px currentColor);
}

.Skills .item:hover i {
  transform: scale(1.2);
  filter: drop-shadow(0 0 10px currentColor);
}


/* tools */

.tools .item {
  transition: all;
}

.tools .item i {
  transform: translateY(-120px);
}


/* Project */

.project {
  padding: 60px 20px;
  background: linear-gradient(center, #1e1e1e, #000);
  color: #fff;
  text-align: center;
}

.section-title {
  color: #ffffff;
  text-align: center;
  margin: 20px auto;
  font-weight: 900;
  font-size: 40px;
  position: relative;
  width: 100%;
  z-index: 1;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 25%;
  right: 25%;
  bottom: -10px;
  width: 0%;
  height: 60px;
  background: blue;
  transition: width 0.3s ease;
  z-index: -1;
  border-radius: 100000px 0px 100000px 0px;
}

.section-title:hover::after {
  width: 50%;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.project-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 25px 20px;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.project-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #00c6ff;
}

.project-card p {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 15px;
}

.tech-icons span {
  display: inline-block;
  background: #ffd700;
  color: #000;
  font-weight: bold;
  padding: 5px 10px;
  margin: 5px 5px 0 0;
  border-radius: 10px;
  font-size: 0.9rem;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 198, 255, 0.3);
}


/* contact */

.contact-header {
  text-align: center;
}

.contact-header>span {
  color: #eee;
  font-weight: 900;
  font-size: 10px;
  padding: 10px;
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.331);
  color: rgba(0, 0, 255, 0.764);
}

.contact-header h3 {
  font-size: 3rem;
  color: white;
  font-weight: 700;
  margin: 10px auto;
  text-align: center;
}

.contact-header h3 span {
  color: blue;
  font-weight: 900;
  text-align: center;
}

.contact-header p {
  text-align: center;
  color: #ffffff;
  width: 70%;
  margin: 10px auto;
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  letter-spacing: 1.4px;
}

.contact .contact-items {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0px 10px;
}

.contact .contact-items .contact-item {
  flex-shrink: 0;
  flex-grow: 1;
  background: linear-gradient(to top, #00000076, rgb(0, 0, 0));
  backdrop-filter: blur(20px);
  padding: 25px;
  border-radius: 10px;
  transition: all 0.6s;
}

.contact .contact-items .contact-item a i {
  background-color: #1e1e1e;
  width: fit-content;
  padding: 15px;
  border-radius: 10px;
  transition: all 0.4s;
}

.contact-icons a {
  color: inherit;
  transition: color 0.3s;
}

.contact-icons a:nth-child(1) i {
  color: #25D366;
}

.contact-icons a:nth-child(2) i {
  color: #D44638;
}

.contact-icons a:nth-child(3) i {
  color: #0077B5;
}

.contact-icons a:nth-child(4) i {
  color: #1877F2;
}

.contact-icons a:hover i {
  opacity: 0.8;
}


.contact .contact-items .contact-item a i:hover {
  transform: translateY(-10px);
  filter: drop-shadow(0 0 10px currentColor)
}

.contact .form {
  background: linear-gradient(to top, #00000093, rgba(0, 0, 0, 0.801));
  backdrop-filter: blur(20px);
  padding: 25px;
  border-radius: 10px;
  transition: all 0.6s;
  margin: 12px;
}

.contact .form {
  margin-top: 150px;
}

.contact .form>h2 {
  color: #eee;
}

.contact .form input {
  color: white;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  font-weight: 600;
  outline: none;
  transition: all 0.9s;
  outline: 1px solid rgb(66, 66, 72);
  border-radius: 5px;
  border: none !important;
}

.contact .form textarea {
  resize: none;
  transition: all 0.4s;
  outline: 1px solid rgb(66, 66, 72);
  border-radius: 10px;
  border: none !important;
}

.contact .contact-items .contact-item:hover {
  transform: translateY(-15px);
  box-shadow: 1px 1px 10px blue;
}

footer {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 70px;
  font-size: 1rem;
  background-color: black;
  padding: 10px;
  color: #ffffff;
}


/* =========================
   GLOBAL RESPONSIVE 
========================= */

html, body {
  overflow-x: hidden;
}

@media (max-width: 768px) {
  section {
    min-height: auto;
    padding-top: 80px;
    padding-bottom: 80px;
  }
}

@media (max-width: 576px) {
  .navbar {
    justify-content: space-between;
    padding: 10px 15px;
  }

  .navbar .nav-item .nav-links {
    gap: 15px;
  }
}

@media (max-width: 778px) {
  header {
    /* flex-direction: column; */
    text-align: center;
    gap: 20px;
  }

  header .img-box {
    order: 1;
  }

  header .contant {
    order: 2;
    margin-top: 0;
    text-align: center;
  }

  header img {
    margin-top: 0;
  }

  header .contant .Words {
    width: 100%;
    margin: auto;
  }
}

@media (max-width: 480px) {
  header img {
    width: 140px;
    height: 140px;
  }

  header .contant h1 span {
    font-size: 2.5rem;
  }

  header .contant p {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .About .img span.dot {
    position: absolute;
    bottom: 220px;
    left: -50%;
    transform: translateX(-50%);
    width: 35%;
  }

  header .contant .Words {
    line-height: 30px;
    font-size: 0.85rem;
  }

  header .contant p {
    font-size: 1.3rem;
    font-weight: 600;
  }

  header .contant h1 span {
    font-weight: 900;
  }

  .About .content p {
    line-height: 30px;
    font-size: 0.85rem;
  }
}

@media (max-width: 576px) {

  .Skills,
  .tools {
    gap: 30px;
  }

  .Skills .item,
  .tools .item {
    width: 90%;
    height: auto;
    padding: 2rem;
  }

  .Skills .item i,
  .tools .item i {
    transform: translateY(0);
    margin-bottom: 20px;
  }
}


@media (max-width: 768px) {
  .contact .form {
    margin-top: 40px;
  }

  .contact-header p {
    width: 95%;
  }
}


@media screen and (max-width:383px) {
  .About .content p {
    width: 100% !important;
  }


  .About .content .img .dot {
    position: absolute;
    bottom: 150px;
    right: -20px;
    background: #8b5cf6;
    color: #000;
    padding: 3px 8px;
    border-radius: 50px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
  }
}

/* Thans Programing */
/* Ahm3d Walid */