body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  padding-top:80px ;
}
header {
  position: fixed;
  padding: 15px;
  top: 0;
  left: 0;
  width: 100%;
  background:black; /* أو اللون اللي يناسبك */
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
}
nav ul li {
  margin: 0 15px;
}
nav ul li a {
  color:white;
  text-decoration: none;
  cursor: pointer;
}
/* nav ul li a:hover{
  cursor: progress;
  box-shadow: 0px 0px 7px white;
} */

section {
  padding: 2rem;
}
.details {
  background-color: #f4f4f4;
  padding: 1rem;
  margin-top: 10px;
}
.hidden {
  display: none;
}
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s ease-out forwards;
}
@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* h2{
  text-align: center;
  font-size: 30px;
} */
.cont-hero{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  flex-direction: column;
  gap: 20px;
  position: relative;
  top: 200px;
}
 
.cont-hero button{
  border-radius: 5px;
  color: black;
  background-color: antiquewhite;
  padding: 5px;
  box-sizing: border-box;
  border: none;
  width: 100px;
  cursor: pointer;
}

.cont-hero a{
  color: black;
  text-decoration: none;
}

 




#projects{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}
#projects img{
  width: 400px;
  height: 200px;

}
#projects div{
  box-shadow: 0px 0px 10px gainsboro;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  font-weight: bold;
  font-size: 20px;
  transition: transform 0.3s ease;
}
#projects div:hover{
  transform: scale(0.95);
  cursor: pointer;
  background-color: black;
  color: white;
}

#projects div button{
  padding: 8px;
  border-radius: 5px;
  box-shadow: 0px 0px 5px white;
  cursor: pointer;
  background-color: bisque;
  color: black;
  border: none;
  box-sizing: border-box;
}
#projects div button:hover{
  background-color: black;
  color: white;
   
}

/* .cont{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  
}
#services div {
     text-align: center;
     width: 400px;
     height: 300px;
} */

#contact button{
 background-color: black;
 color: white;
 border-radius: 5px;
 margin-top: 5px;
  transition: transform 0.3s ease;
}
#contact button:hover{
  background: bisque;
  color: black;
  transform: scale(0.3s);
}
 

/* ===== Container للتايم لاين ===== */
.resume .container {
  max-width: 900px;
  margin: 0 auto;
  padding-left: 40px;
  position: relative;
  /* border-left: 3px solid #0d6efd; الخط العمودي */
}

/* ===== كل عنصر في التايم لاين ===== */
.resume-item {
  position: relative;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateX(-30px);
  animation-fill-mode: forwards;
  animation-name: fadeInSlide;
  animation-duration: 0.5s;
  animation-timing-function: ease-out;
}

/* ===== الدائرة (النقطة) على الخط العمودي ===== */
 /* تعديل موقع الدائرة */
.resume-item::before {
  left: -35px;  /* خلى الدائرة أبعد شوية */
  top: 12px;
  width: 16px;
  height: 16px;
  background-color: #0d6efd;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 8px rgba(13, 110, 253, 0.6);
}

/* إضافة padding للنص داخل resume-item عشان ميبقاش ملتصق بالدائرة */
.resume-item {
  padding-left: 20px;  /* دي مسافة بين الدائرة والنص */
}


/* ===== انيميشن الظهور ===== */
@keyframes fadeInSlide {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== تأخيرات مختلفة للظهور تدريجياً ===== */
.resume-item:nth-child(1) { animation-delay: 0.3s; }
.resume-item:nth-child(2) { animation-delay: 0.6s; }
.resume-item:nth-child(3) { animation-delay: 0.9s; }
.resume-item:nth-child(4) { animation-delay: 1.2s; }
.resume-item:nth-child(5) { animation-delay: 1.5s; }
.resume-item:nth-child(6) { animation-delay: 1.8s; }
.resume-item:nth-child(7) { animation-delay: 2.1s; }

/* ===== تحسينات إضافية للعناوين والنص ===== */
.resume-title {
  font-weight: 700;
  color:black#0d6efd;
  margin-bottom: 15px;
}

.resume-item p, .resume-item ul {
  color: #333;
  line-height: 1.6;
}


 
/* Skills Section Styling */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 0;
}

.skill-card {
  width: 180px;
  height: 220px;
  perspective: 1000px;
}

.card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.skill-card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  width: 100%;
  height: 100%;
  position: absolute;
  backface-visibility: hidden;
  border-radius: 15px;
  padding: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #fff;
}

.card-front img {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
}

.card-front h3 {
  font-size: 1.2rem;
  margin: 0;
}

.card-back {
  transform: rotateY(180deg);
  background-color: #f8f9fa;
  color: #333;
  text-align: center;
}

.card-back p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
}
