@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap");

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  list-style: none;
  scroll-behavior: smooth;
  text-decoration: none;
}

:root {
  --text-color: #f5f5f5;
  --hover-color: #12d7dd;
  --bg-color: #250821;
  --secon-bg-color: #292e33;
  --big-font: 2.5rem;
  --normal-font: 2rem;
  --neon-box-shadow: 0 0 0.5rem #12f7ff;
  --h2-font: 3rem;
  --font-neon-text-shadow: 0 0 10px rgba(18, 247, 255, 0.3),
    0 0 20px rgba(18, 247, 255, 0.3), 0 0 30px rgba(18, 247, 255, 0.3),
    0 0 40px rgba(18, 247, 255, 0.3), 0 0 70px rgba(18, 247, 255, 0.3),
    0 0 80px rgba(18, 247, 255, 0.3), 0 0 100px rgba(18, 247, 255, 0.3),
    0 0 150px rgba(18, 247, 255, 0.3);
}

::-webkit-scrollbar {
  height: 0;
  width: 0.5rem;
}

::-webkit-scrollbar-track {
  background: var(--secon-bg-color);
}

::-webkit-scrollbar-thumb {
  background: var(--hover-color);
  border-radius: 5rem;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
}
/* -------------------------------------Start Header --------------------------*/

header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 10%;
}

header.sticky {
  background: var(--bg-color);
  border-bottom: 1px solid var(--secon-bg-color);
  padding: 12px 10%;
}

.logo {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
}


.logo a {
  color: var(--hover-color);
}


span {
  color: var(--hover-color);
}

.navlist {
  display: flex;
}

.navlist a {
  display: inline-block;
  color: var(--text-color);
  font-weight: 500;
  padding: 10px 20px;
  animation: slideAnimation 1s ease forwards;
  animation-delay: calc(0.3s * var(--i));
  opacity: 0;
}

.navlist a:hover {
  color: var(--hover-color);
  text-shadow: 0 0 10px rgba(18, 247, 255, 0.6),
    0 0 20px rgba(18, 247, 255, 0.6), 0 0 30px rgba(18, 247, 255, 0.6),
    0 0 40px rgba(18, 247, 255, 0.6), 0 0 70px rgba(18, 247, 255, 0.6),
    0 0 80px rgba(18, 247, 255, 0.6), 0 0 100px rgba(18, 247, 255, 0.6),
    0 0 150px rgba(18, 247, 255, 0.6);
}

.navlist a.active {
  color: var(--hover-color);
}

#menu-icon {
  font-size: 1.8rem;
  z-index: 10001;
  cursor: pointer;
  margin-left: 25px;
  background: var(--hover-color);
  border-radius: 3px;
  color: var(--secon-bg-color);
  display: none;
}

/* //////////////1 */
section {
  padding: 100px 10%;
}

.home {
  min-height: 100vh;
  height: 100%;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  grid-gap: 4em;
}

.home-content {
  max-width: 600px;
}

.home-content h1 {
  font-size: var(--big-font);
  font-weight: 700;
}

.change-text {
  font-size: 1.5rem;
  font-weight: 600;
}

.change-text h3 {
  display: inline-flex;
  margin: 0;
  vertical-align: top;
}

.change-text h3 .word {
  position: absolute;
  display: flex;
  opacity: 0;
}

.change-text h3 .word .letter {
  transform-origin: center center 25px;
}

.change-text h3 .word .letter.out {
  transform: rotateX(90deg);
  transition: 0.32s cubic-bezier(0.6, 0, 0.7, 0.2);
}

.change-text h3 .word .letter.in {
  transition: 0.38s ease;
}

.change-text h3 .word .letter.behind {
  transform: rotateX(-90deg);
}

.btn-box {
  display: flex;
  justify-content: space-between;
  width: 320px;
  height: 45px;
}

.btn-box .btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 150px;
  height: 100%;
  background: var(--hover-color);
  color: var(--bg-color);
  font-size: 1rem;
  letter-spacing: 1px;
  font-weight: 600;
  transition: 0.6s;
  box-shadow: var(--neon-box-shadow);
  border-radius: 5px;
  position: relative;
  overflow: hidden;
  overflow: hidden;
  z-index: 1;
  border: 2px solid var(--hover-color);
}

.btn:hover {
  color: var(--hover-color);
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  background: var(--bg-color);
  width: 0;
  height: 100%;
  z-index: -1;
  transition: 0.4s;
}

.btn:hover::before {
  width: 100%;
}

.btn:nth-child(2) {
  background: var(--bg-color);
  color: var(--hover-color);
}

.btn:nth-child(2):hover {
  color: var(--bg-color);
}

.btn:nth-child(2)::before {
  background: var(--hover-color);
}

.social-icon {
  margin-top: 4rem;
  display: flex;
  justify-content: space-between;
  width: 220px;
  height: 40px;
}

.social-icon a {
  display: inline-flex;
  width: 50px;
  height: 100%;
  justify-content: center;
  align-items: center;
  background: var(--bg-color);
  color: var(--hover-color);
  border: 2px solid var(--hover-color);
  transition: 6s;
  box-shadow: 0 0 0.3rem #12f7ff;
  border-radius: 5px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.social-icon a i {
  font-size: 1.5rem;
}

.social-icon a:hover {
  color: var(--bg-color);
}

.social-icon a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100px;
  background: var(--hover-color);
  transition: 0.6s;
  z-index: -1;
}

.social-icon a:hover::before {
  width: 100px;
}

.home-image {
  position: relative;
}

.img-about {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-img {
  width: 450px;
  height: 450px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}

.liquid-shape {
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.liquid-shape:nth-child(2) {
  filter: blur(50px);
}

/*About Section Css ---------------------------------------------------------  */
.about-content {
  width: 100%;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--hover-color);
}

.about {
  display: flex;
  justify-content: center;
  align-items: center;
  grid-gap: 2em;
  background: var(--secon-bg-color);
}

.img-box img {
  width: 400px; 
  height: auto; 
  object-fit: cover; 
  border-radius: 8px;
}


.about-content span {
  color: #fdfdfd;
  font-size: 0.8rem;
  font-weight: 200;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.about-content h2 {
  color: var(--hover-color);
  font-weight: 700;
  font-size: var(--normal-font);
}

.about-content h3 {
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 0.2rem;
}

.about-content p {
  color: #fdfdfd;
  font-weight: 600;
  margin-bottom: 2rem;
}

.about {
  display: flex;
  justify-content: center;
  align-items: center;
  grid-gap: 3em;
  background: var(--secon-bg-color);
  padding: 60px 10%;
  flex-wrap: wrap;
}



.about-content {
  flex: 2;
  text-align: left;
  color: var(--hover-color);
}

.about-content p {
  color: #fdfdfd;
  font-weight: 500;
  margin-bottom: 1.5rem;
  margin-top: 20px;
  line-height: 1.7;
}

/*Skills Section Css ---------------------------------------------------------  */

.skills {
  text-align: center;
  padding: 80px 10%;
  background: linear-gradient(135deg, #0a0a0a, #111); 
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--hover-color);
  margin-bottom: 30px;
  position: relative;
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.skill-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(18, 247, 255, 0.3);
  border-radius: 12px;
  padding: 25px 30px;
  width: 480px;
  max-width: 90%;
  box-shadow: 0 0 15px rgba(18, 247, 255, 0.15);
  transition: 0.3s ease;
}

.skill-card:hover {
  box-shadow: 0 0 25px rgba(18, 247, 255, 0.35);
  transform: translateY(-5px);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  font-size: 1.3rem;
  color: var(--hover-color);
}

.card-header i {
  font-size: 1.8rem;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.card-tags span {
  background: rgba(18, 247, 255, 0.1);
  color: var(--hover-color);
  border: 1px solid var(--hover-color);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: 0.3s ease;
}

.card-tags span:hover {
  background: var(--hover-color);
  color: var(--bg-color);
}

/* Header each Section */
.main-text {
  width: 100%;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--hover-color);
}

.main-text span {
  color: #fdfdfd;
  font-size: 0.8rem;
  font-weight: 200;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.main-text h2 {
  color: var(--hover-color);
  font-weight: 700;
  font-size: var(--normal-font);
}

/* Project Section --------------------------------- */
.project-box {
    display: block;
    animation: fadeIn 0.5s ease forwards;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-buttons .btn {
    padding: 10px 25px;
    background: var(--secon-bg-color);
    color: var(--text-color);
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-buttons .btn.active, .filter-buttons .btn:hover {
    background: transparent;
    color: var(--hover-color);
    border-color: var(--hover-color);
    box-shadow: var(--neon-box-shadow);
}

.project-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 2.5rem;
}

@media (max-width: 1024px) {
    .project-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .project-container {
        grid-template-columns: 1fr;
    }
}

.project-box {
    background: var(--secon-bg-color);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(18, 247, 255, 0.1);
    transition: transform 0.3s ease;
}

.project-box:hover {
    transform: translateY(-10px);
    border-color: var(--hover-color);
    box-shadow: var(--neon-box-shadow);
}

.project-img {
    width: 100%;
    height: 260px; 
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.5rem;
    color: var(--hover-color);
    margin-bottom: 1rem;
}

.project-content p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #bdbdbd;
    margin-bottom: 1.2rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.tag {
    background: #323946;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--text-color);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.link-btn {
    padding: 8px 18px;
    border-radius: 5px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: 0.3s;
}

.link-btn.source {
    border: 1px solid var(--text-color);
    color: var(--text-color);
}

.link-btn.live {
    background: var(--hover-color);
    color: var(--bg-color);
    font-weight: 600;
}

.link-btn:hover {
    opacity: 0.8;
}

/* End Project */


.center-btn {
  text-align: center;
  margin-top: 40px;
}

.main-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--hover-color);
  color: #fff;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 0 12px rgba(18, 247, 255, 0.3);
  transition: all 0.3s ease-in-out;
}

.main-btn i {
  font-size: 1.2rem;
}

.main-btn:hover {
  background: #0df1ff;
  color: #000;
  transform: translateY(-3px) scale(1.03);
}



/* Contact section css *----------------? */
.contact {
  padding: 80px 10%;
  background: linear-gradient(135deg, #101820, #0b0f24);
  text-align: center;
}

.contact .main-text span {
  font-size: 1rem;
  color: var(--hover-color);
  display: block;
  margin-bottom: 10px;
}

.contact h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  font-weight: 700;
  color: #fff;
}

.contact-intro {
  font-size: 1rem;
  color: #ccc;
  max-width: 600px;
  margin: 0 auto 30px auto;
  line-height: 1.6;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: #fff;
  transition: transform 0.3s ease;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--hover-color);
}

.contact-item a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: var(--hover-color);
}

.contact-item:hover {
  transform: scale(1.05);
}


/*-------------------------- footer css ----------------------------*/
.footer {
  background: linear-gradient(135deg, #0b0f24, #04293a);
  padding: 25px 20%; 
  color: #fff;
  font-family: 'Poppins', sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px; 
  margin-bottom: 15px;
}

.footer-profile {
  display: flex;
  gap: 12px;
  max-width: 280px; 
}

.footer-profile-text h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.footer-profile-text h3 span {
  color: var(--hover-color);
}

.footer-profile-text p {
  font-size: 0.88rem;
  line-height: 1.4;
  color: #ddd;
}

.footer-nav h4,
.footer-connect h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.footer-nav .nav-columns {
  display: flex;
  gap: 15px; 
}

.footer-nav ul {
  list-style: none;
  padding: 0;
}

.footer-nav ul li {
  margin-bottom: 5px;
}

.footer-nav ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-nav ul li a:hover {
  color: var(--hover-color);
}

.social-icons a {
  font-size: 1.3rem;
  margin-right: 8px;
  color: #ccc;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  color: var(--hover-color);
  transform: scale(1.2);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #aaa;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
  margin: 0 5px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--hover-color);
}


/*---porallax---------------------*/
.scroll-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 2s;
}

.scroll-bottom {
  opacity: 0;
  transform: translateY(300px);
  transition: 3s;
}

.scroll-bottom {
  opacity: 0;
  transform: translateY(-300px);
  transition: 3s;
}

.show-items {
  opacity: 1;
  transform: translateX(0);
}

/*---------------------------------*/

@keyframes morph {
  0%,
  100% {
    border-radius: 40% 60% 70% 30% / 40% 40% 60% 50%;
  }

  30% {
    border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
  }

  60% {
    border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%;
  }

  80% {
    border-radius: 69% 31% 66% 34% / 21% 30% 70% 79%;
  }
}

@keyframes sql {
  0% {
    width: 0%;
  }

  100% {
    width: 72%;
  }
}

@keyframes python {
  0% {
    width: 0%;
  }

  100% {
    width: 90%;
  }
}

@keyframes datavisualization {
  0% {
    width: 0%;
  }

  100% {
    width: 80%;
  }
}

@keyframes statisticalanalysis {
  0% {
    width: 0%;
  }

  100% {
    width: 62%;
  }
}

@keyframes glow {
  0% {
    background: var(--bg-color);
    box-shadow: none;
  }

  100% {
    background: var(--hover-color);
    box-shadow: var(--neon-box-shadow);
  }
}

@keyframes slideAnimation {
  0% {
    opacity: 0;
    transform: translateY(100px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Break Points */
@media (max-width: 991px) {
  header,
  header.sticky {
    padding: 15px 5%;
  }

  footer {
    padding: 15px 5%;
  }

  section {
    padding: 50px 5%;
  }

  .navlist a {
    padding: 8px 15px;
  }

  :root {
    --big-font: 2.2rem;
    --normal-font: 1.8rem;
    --neon-box-shadow: 0 0 0.8rem #12f7ff;
    --h2-font: 3rem;
  }

  .home-content {
    margin-top: 5rem;
  }

  .social-icon {
    margin-top: 2rem;
  }

  img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 768px) {
  .port-image img {
    max-width: 200px;
    /* يقلل حجم الصورة على الشاشات الصغيرة */
  }

  .home-content h1 {
    font-size: 2rem;
  }

  .btn {
    font-size: 0.9rem;
  }

  #menu-icon {
    display: block;
    transition: all 0.4s ease;
  }

  #menu-icon.bx-x {
    transform: rotate(-180deg);
  }

  .navlist {
    display: flex;
    position: absolute;
    top: -1000px;
    right: 0;
    left: 0;
    flex-direction: column;
    background: var(--bg-color);
    text-align: left;
    padding: 0 5%;
    transition: all 0.45s ease;
  }

  .navlist a {
    display: block;
    padding-bottom: 1rem;
    font-size: 1rem;
  }

  .navlist.open {
    top: 65px;
  }

  .home {
    grid-template-columns: 1fr;
  }

  .home-image {
    margin-bottom: 5rem;
  }

  .liquid-shape {
    width: 80%;
    left: 10%;
    top: 13%;
  }

  .about {
    flex-direction: column-reverse;
  }

  .skills-main {
    grid-template-columns: 1fr;
  }

  footer p {
    font-size: 0.8rem;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  .skills-main {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .skill-left,
  .skill-right {
    width: 100%;
  }

  .skill-bar .bar {
    width: 100%;
  }

  .professional {
    grid-template-columns: 1fr;
  }

  .box .text big {
    font-size: 1.2rem;
  }

  .box .text small {
    font-size: 0.9rem;
  }

  .portfolio-gallery {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .port-box {
    width: 100%;
    margin: 10px 0;
  }
}

@media (max-width: 420px) {
  html {
    font-size: 80%;
  }

  footer p {
    font-size: 0.6rem;
  }
}
/* Scroll to top */

#scrollTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--hover-color);
    color: rgb(0, 0, 0);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

#scrollTopBtn:hover {
    background-color: #257bdd;
    transform: scale(1.1); 
}
#scrollTopBtn i {
    color: rgb(0, 3, 3);
    font-size: 24px;
}

/* Section Education and experience */

.experience-education {
    background: var(--bg-color);
    color: var(--text-color);
    padding: 100px 10%;
}

.main-text {
    text-align: center;
    margin-bottom: 5rem;
}

.main-text h2 {
    font-size: var(--h2-font);
}

.experience-education .container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.column {
    flex: 1 1 400px;
}

.column .title {
    font-size: var(--normal-font);
    margin-bottom: 2rem;
    color: var(--hover-color); 
}

.column .box {
    border-left: 2px solid var(--hover-color);
    padding-left: 20px;
    position: relative;
}

.column .box::before {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background: var(--hover-color);
    border-radius: 50%;
    left: -9px;
    top: 5px;
}

.content h4 {
    font-size: 1.5rem;
    color: var(--text-color);
}

.content .company, .content .university {
    color: var(--hover-color);
    font-weight: 600;
    margin: 5px 0;
}

.details {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #bdbdbd;
    margin-bottom: 15px;
}

.content ul {
    list-style: none;
}

.content ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.content ul li::before {
    content: '•';
    color: var(--hover-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.content a {
    color: var(--hover-color);
    text-decoration: underline;
}
