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

*{
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth; 
}


header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 200px;

  background: rgba(31, 36, 45, 0.7); /* شفاف */
  backdrop-filter: blur(10px);        /* تأثير زجاج */
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease, padding 0.3s ease;
}

header.scrolled {
  background: #1f242d;   /* لون ثابت كي تسكرول */
  padding: 10px 150px;   /* يقل شوية */
}

/* روابط التنقل */
header nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 30px;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

/* خط متحرك تحت الرابط */
header nav a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: rgb(247, 209, 126);  /* لون متباين */
  transition: width 0.3s ease;
}

header nav a:hover {
  color: #0ef;
}

header nav a:hover::after {
  width: 100%;
}

/* Responsive */
@media (max-width: 992px) {
  header {
    padding: 10px 40px;
  }
}


.text {
  flex: 1 1 400px;
}

.profile-image {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-border {
  width: 260px;
  height: 260px;
  padding: 5px;
  border-radius: 50%;
  background: linear-gradient(270deg, #ffe9c8, #ff8a41, #ff9b04, #ff3c00, #ff8a41);
  background-size: 400% 400%;
  animation: borderShift 6s ease infinite;
  
  display: flex;
  align-items: center;
  justify-content: center;
  
  transition: transform 0.5s ease, filter 0.5s ease, box-shadow 0.5s ease;
  box-shadow: 0 0 20px rgba(255, 138, 65, 0.3);
}

/* تأثير Hover */
.image-border:hover {
  transform: scale(1.1) rotate(3deg);
  filter: brightness(1.15);
  box-shadow: 0 0 40px rgba(255, 138, 65, 0.6),
              0 0 80px rgba(255, 155, 4, 0.4);
}

/* الصورة داخل الغلاف */
.image-border img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  animation: float 4s ease-in-out infinite;
}

/* Animation: الخلفية تتحرك */
@keyframes borderShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Animation: الصورة تعوم */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}



.logo{
    text-decoration: none;
    color: #f4aa3a;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.8em;
}

.logo:hover{
    color: #fddba9;
    text-shadow: 0 0 20px #f4aa3a,0 0 20px #f4aa3a;
}

.navigation a{
    color: #f4aa3a;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 500;
    padding-left: 30px;

}

.navigation a:hover{
    color: #ffdaa3;
    text-shadow: 0 0 20px #f4aa3a,0 0 20px #f4aa3a;
}

section {
    padding: 100px 200px;
}

.main {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: url(pexels-harold-vasquez-853421-2653362.jpg) no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.main h2 {
    color: #fff;
    font-size: 1.4em;
    font-weight: 500;
}

.typing {
  color: #f4aa3a;
  font-size: 3em;
  font-weight: 600;
}

.typing span {
  opacity: 0;
  display: inline-block;
  white-space: pre; /* يخلي المسافات يبانوا */
}

.cursor {
  display: inline-block;
  width: 3px;
  background: #f4aa3a;
  margin-left: 2px;
  animation: blink 0.7s infinite;
}

@keyframes blink {
  50% { background: transparent; }
}





.main h3 {
    color: #fff;
    font-size: 2em;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 10px;
    margin-bottom: 30px;
}

.main-btn {
    color: #fff;
    background-color: #f4aa3a;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 600;
    display: inline-block;
    padding: 0.9375em 2.1875em;
    letter-spacing: 1px;
    border-radius: 15px;
    margin-bottom: 40px;
    transition: 0.7s ease;
}

.main-btn:hover {
    background-color: #f4aa3a;
    transform: scale(1.1);
    color: #f39e1d;
    background: #fff;
    box-shadow: 0 0 30px #f4aa3a;
}

.social-icons a {
    color: #fff;
    font-size: 2.7em;
    padding-right: 30px;
}

.social-icons a i:hover{
    transform: scale(1.1);
    background: #f4aa3a;
    box-shadow: 0 0 20px #f4aa3a;
    border: 2px #f4aa3a solid;
    border-radius: 15% ;
    color: #000;
}

.title {
    display: flex;
    justify-content: center; /* يوسط النص */
    gap: 3px;                /* مسافة صغيرة بين الحروف */
    color: #f4aa3a;
    font-size: 2.2em;
    font-weight: 800;
    margin-bottom: 30px;
}

.title span {
    display: inline-block;
    animation: wave 1s ease-in-out infinite;
}

/* تأخير لكل حرف */
.title span:nth-child(1) { animation-delay: 0s; }
.title span:nth-child(2) { animation-delay: 0.1s; }
.title span:nth-child(3) { animation-delay: 0.2s; }
.title span:nth-child(4) { animation-delay: 0.3s; }
.title span:nth-child(5) { animation-delay: 0.4s; }
.title span:nth-child(6) { animation-delay: 0.5s; }
.title span:nth-child(7) { animation-delay: 0.6s; }

@keyframes wave {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}


.titlee {
  font-size: 3em;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 2px #f4aa3a;
  position: relative;
  overflow: hidden;
  animation: fill 3s forwards;
}

@keyframes fill {
  from { color: transparent; }
  to { color: #b6b5b4; }
}


.content {
    display: flex;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
}

.card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 21.25em;
    border-radius: 20px;
    padding: 25px;
    margin: 15px;
    transition: all 0.5s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* تأثير ضوء متحرك */
.card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(120deg, transparent, rgba(244, 170, 58, 0.3), transparent);
    transform: rotate(25deg);
    animation: shine 4s infinite;
}

@keyframes shine {
    0% { transform: rotate(25deg) translateX(-200%); }
    100% { transform: rotate(25deg) translateX(200%); }
}

.card:hover {
    transform: scale(1.08) translateY(-10px);
    box-shadow: 0 15px 35px rgba(244, 170, 58, 0.6);
}

.card .icon {
    color: #f4aa3a;
    font-size: 6em;
    text-align: center;
    display: block;
    transition: transform 0.5s ease, text-shadow 0.5s ease;
}

.card:hover .icon {
    transform: scale(1.2) rotate(10deg);
   
}

.info {
    text-align: center;
    margin-top: 15px;
}

.info h3 {
    color: #f4aa3a;
    font-size: 1.3em;
    font-weight: 700;
    margin: 10px 0;
    letter-spacing: 1px;
    transition: color 0.4s ease;
}



.projects {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  color: #252222;

  /* خلفية مجرة غامقة مع ديقرادي من الخارج للوسط */
  background: radial-gradient(circle at center, #1a1a2e 0%, #0f0f1a 60%, #000 100%);
  background-size: cover;
  animation: galaxyMove 30s ease infinite;

  
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* حركة خفيفة للخلفية باش تبان حية */
@keyframes galaxyMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* النجوم الثابتة */
.projects::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: transparent url("https://www.transparenttextures.com/patterns/stardust.png") repeat;
  opacity: 0.5;
  z-index: 1;
}


.projects1 {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  color: #333;

  /* خلفية سماوية فاتحة مع شمس */
  background: radial-gradient(circle at 50% 20%, #fffae3 0%, #a8e6ff 40%, #87cefa 70%, #d0f0c0 100%);
  background-size: cover;
  animation: skyMove 20s ease infinite;

 
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* حركة خفيفة باش تحس بالجو */
@keyframes skyMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* سحب خفيفة */
.projects1::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: transparent url("https://www.transparenttextures.com/patterns/clouds.png") repeat;
  opacity: 0.3;
  z-index: 1;
}

/* الأيقونات العائمة */
.floating-icons {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* يخليهم فالخلفية */
  pointer-events: none; /* باش ما يعيقوش الكليك */
}

.floating-icons .icon {
  position: absolute;
  width: 60px;
  height: 60px;
  animation: float 6s ease-in-out infinite;
}

/* أنيميشن الطفو */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* نخلي الـ content ديما فوق */
.projects1 .title,
.projects1 .content {
  position: relative;
  z-index: 2; /* ديما قدام */
}

/* نزيد نعدل النجوم باش يكونو تحت الأيقونات */
.projects1::before {
  z-index: -1; /* النجوم يرجعو تحت كلش */
}



/* العناصر العائمة */
.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* باش ما يغطيوش على الكروت */
    z-index: 0;
}
.floating-icons .icon {
  position: absolute;
  width: 60px;
  opacity: 0.35;
  animation: floatIcon 10s linear infinite;
}

.icon.html     { top: 10%; left: 10%; animation-delay: 0s; }
.icon.css      { top: 30%; left: 20%; animation-delay: 2s; }
.icon.js       { top: 20%; left: 70%; animation-delay: 3s; }
.icon.php      { top: 60%; left: 15%; animation-delay: 1s; }
.icon.react    { top: 80%; left: 50%; animation-delay: 3s; }
.icon.figma    { top: 45%; left: 75%; animation-delay: 2s; }
.icon.xd       { top: 65%; left: 85%; animation-delay: 4s; }
.icon.python   { top: 50%; left: 30%; animation-delay: 2s; }
.icon.code     { top: 25%; left: 55%; animation-delay: 3.5s; }
.icon.ux       { top: 5%;  left: 90%; animation-delay: 2.5s; }


.icon.photoshop   { top: 10%; left: 10%; animation-delay: 0s; }
.icon.illustrator { top: 30%; left: 20%; animation-delay: 2s; }
.icon.indesign    { top: 20%; left: 70%; animation-delay: 3s; }
.icon.coreldraw   { top: 60%; left: 15%; animation-delay: 1s; }
.icon.canva       { top: 80%; left: 50%; animation-delay: 3s; }
.icon.figma       { top: 45%; left: 75%; animation-delay: 2s; }
.icon.xd          { top: 65%; left: 85%; animation-delay: 4s; }
.icon.affinity    { top: 50%; left: 30%; animation-delay: 2s; }
.icon.gimp        { top: 25%; left: 55%; animation-delay: 3.5s; }
.icon.blender     { top: 5%;  left: 90%; animation-delay: 2.5s; }

@keyframes floatIcon {
  0% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.25;
  }
  50% {
    transform: translateY(-40px) rotate(20deg);
    opacity: 0.35;
  }
  100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.15;
  }
}
.projects .content {
    position: relative;
    z-index: 2;
}

.projects .content{
    margin-top: 30px;
}

.project-card {
    background-color: #fff;
    border: 1px solid #fff;
    min-height: 14em;
    width: 23em;
    overflow: hidden;
    border-radius: 10px;
    margin: 20px;
    transition: 0.7s ease;
}

.project-card:hover {
   transform: scale(1.1);
}

.project-card:hover .project-image {
    opacity: 0.9;
 }

.project-image img{
    width: 100%
}

.project-info {
    padding: 1em;
}

.project-category {
    font-size: 0.8em;
    color: #000;
}

.project-title {
    display: flex;
    justify-content: space-between;
    text-transform: uppercase;
    font-weight: 800;
    margin-top: 10px;
}

.more-details {
    text-decoration: none;
    color: #f4aa3a;
}

.more-details:hover {
    color: #ff9900;
    text-shadow: 0 0 20px #f4aa3a,0 0 20px #f4aa3a;
}

.contact .icon{
    font-size: 4.5em;
}

.contact .info h3 {
    color: #000;
}

.contact .info p {
    font-size: 1.5em;
}

.footer {
  background: rgba(31, 36, 45, 0.95);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 2em 3em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, #ff9b04, #ff3c00, #ff8a41) 1;
  box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.4);
}

.footer-title {
  font-size: 1.5em;
  font-weight: 700;
  letter-spacing: 1px;
  position: relative;
}

.footer-title span {
  background: linear-gradient(90deg, #ff9b04, #ff3c00, #ff8a41);
  -webkit-text-fill-color: transparent;
}
.footer .social-icons a{
    font-size: 1.3em;
    padding: 0 12px 0 0;
}

@media (max-width:1023px){
    header{
        padding: 12px 20px;
    }

    .navigation a{
        padding-left: 10px;
    }

    .title{
        font-size: 1.8em;
    }

    section{
        padding: 80px 20px;
    }

    .main-content h2{
        font-size: 1em;
    }

    .main-content h3{
        font-size: 1.6em;
    }

    .content{
        flex-direction: column;
        align-items: center;
    }

}

@media (max-width:641px){
    body{
        font-size: 12px;
    }

    .main-content h2{
        font-size: 0.8em;
    }

    .main-content h3{
        font-size: 1.4em;
    }
}

@media (max-width:300px){
    body{
        font-size: 10px;
     
    }
}






.project-details {
  padding: 60px 20px;
  background: url(wp13153958.png) no-repeat center center;
  background-size: cover;
  color: #333;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.project-details .title {
  text-align: center;
  font-size: 2.2rem;
  color: #1a1a1a;
  margin-bottom: 40px;
  position: relative;
}

.project-details .title::after {
  content: '';
  width: 60px;
  height: 4px;
  display: block;
  margin: 10px auto 0;
  border-radius: 2px;
}

.project-details-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: flex-start;
  justify-content: center;
}

.project-gallery {
  flex: 1 1 500px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.project-gallery .main-image img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-gallery .main-image img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 35px rgba(0, 0, 0, 0.2);
  text-shadow: 0 0 50px #f4aa3a,0 0 50px #f4aa3a;
}

.thumbnail-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
}

.thumbnail-images img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.thumbnail-images img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.project-description {
  flex: 1 1 400px;
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
}

.project-description p {
  margin-bottom: 20px;
}

.project-description ul {
  padding-left: 20px;
  list-style: disc;
}

.project-description li {
  margin-bottom: 10px;
}

.project-description {
    background: #f9f9f9;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.7;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.project-description:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.project-description .title {
    font-size: 26px;
    color: #2c3e50;
    margin-bottom: 15px;
    position: relative;
}

.project-description .title::after {
    content: '';
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    position: absolute;
    left: 0;
    bottom: -8px;
    border-radius: 5px;
}

.project-description p {
    margin-bottom: 15px;
}

.project-description ul {
    list-style: none;
    padding-left: 0;
}

.project-description ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: #444;
    transition: color 0.3s ease;
}

.project-description ul li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

.project-description ul li:hover {
    color: #2c3e50;
}

@keyframes fadeInUp {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}




