html {
    scroll-behavior: smooth;
  }

/* الألوان الأساسية */
:root {
  --primary-blue: #4A90E2;
  --accent-red: #D0021B;
  --background-light: #f9f9f9;
  --text-color: #333;
  --heading-font: 'Arial', sans-serif;
  --body-font: 'Verdana', sans-serif;
}


body {
  background-color: var(--background-light);
  font-family: var(--body-font);
  font-size: 16px;
  color: var(--text-color);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* العناوين */
h1, h2, h3 {
  font-family: var(--heading-font);
  font-weight: bolder;
  color: var(--primary-blue);
}

h1 {
  font-size: 24px;
}

h2 {
  font-size: 20px;
  margin-bottom: 10px;
}




a:hover {
  color: var(--accent-red);
  text-decoration: underline;
}
.no-hover:hover {

  color: var(--primary-blue) !important;
}


header {
  text-align: center;
  background-color: #fff;

}


.profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
}



  #home{
    background-image: url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQnKRPKPV9KrY4NKUnA68tf6cNrAkc5Lin0yQ&s')
  }
  .flip-card {
   
    width: 100%;
    height: 254px;
    perspective: 1000px;
    font-family: sans-serif;
  }
  
  .flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
  }
  
  .flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
  }
  
  .flip-card-front, .flip-card-back {
   
    position: absolute;
    display: flex;
 
    justify-content: center;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 1rem;
  }
  
 
  
  .flip-card-back {
 
    color: white;
    transform: rotateY(180deg);
  }
  

  .downlood{  background-color: var(--primary-blue);
    position: relative;
    padding: 5px 15px;
    display: flex;
    align-items: center;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
  
    border-radius: 25px;
    outline: none;
    overflow: hidden;
    color:white;
    transition: color 0.3s 0.1s ease-out, transform 0.2s ease;
    text-align: center;}
/* زر View Projects */
.button {
  background: transparent;
  position: relative;
  padding: 5px 15px;
  display: flex;
  align-items: center;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid rgb(255, 0, 0);
  border-radius: 25px;
  outline: none;
  overflow: hidden;
  color: rgb(255, 0, 0);
  transition: color 0.3s 0.1s ease-out, transform 0.2s ease;
  text-align: center;
}

.button:hover ,.downlood:hover {
  color: #fff;
  border: 1px solid rgb(255, 0, 0);
  transform: scale(1.05); /* تأثير تكبير خفيف */
}

.button::before ,.downlood::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  content: '';
  border-radius: 50%;
  display: block;
  width: 20em;
  height: 20em;
  left: -5em;
  text-align: center;
  transition: box-shadow 0.5s ease-out;
  z-index: -1;
}

.button:hover::before ,.downlood:hover::before  {
  box-shadow: inset 0 0 0 10em rgb(255, 0, 0);
}


.book {
  position: relative;
  border-radius: 10px;
height: 400px;

  background-color: whitesmoke;
    -webkit-transform: preserve-3d;
  -ms-transform: preserve-3d;
  transform: preserve-3d;
  -webkit-perspective: 2000px;
  perspective: 2000px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  color: #000;
}

.cover {
  top: 0;
  position: absolute;
  background-color: lightgray;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  cursor: pointer;
  -webkit-transition: all 0.5s;
  transition: all 0.5s;
  -webkit-transform-origin: 0;
  -ms-transform-origin: 0;
  transform-origin: 0;
  
 
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.book:hover .cover {
  -webkit-transition: all 0.5s;
  transition: all 0.5s;
  -webkit-transform: rotatey(-80deg);
  -ms-transform: rotatey(-80deg);
  transform: rotatey(-80deg);
}

p {
  font-size: 16px;
  
}
.hidden-project {
  display: none;
}