/* ستايل عام */
body {
    font-family: 'Cairo', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #71bfd6;
}

header {
    background: linear-gradient( to right, #040fad, #061da0, #224692) ,transparent;

    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items:start;
    position: relative;
    position:sticky;
    top: 0;
    z-index: 999;
    direction: ltr;
    

    

}


.profile {
    display: flex;
    align-items:center;
    gap: 10px;
    margin-left: 30px ;
    margin-top: 30px;
    margin-bottom: 20px;
    
}
  
  .profile img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid #00ffcc;
    animation: pulse 2s infinite;
    box-shadow:2px 2px 3px #63948a;
    z-index: 2;

  }
  
  @keyframes pulse {
    0%, 100% { transform: scale(1); }
    40% { transform: scale(1.3); }
  }
     

  .profile h1 {
    font-size: 40px;
    position:relative ;
letter-spacing: 6px;
font-family: Arial, sans-serif;
color: blue;

  }




div li {
    list-style: none;
    padding-bottom: 10px;
    text-align: center;
    display: inline-block;
    margin: 30PX 30px;
    justify-self: auto;
    text-align: left;
}

li a {
    color: rgb(17, 241, 185);
    text-decoration: none;
    font-size: 20px;
    text-align: left;
transition: color 0.2s;

}
li a:hover {
   color: #f8111d;
}




.hero {
    text-align: center;
    margin: 0px 0;
    
}

.hero img {
    width: 100%;
    border-radius: 0px;
}

/* كروت المواد */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.card {
    position: relative;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-image img {
    width: 100%;
height: 400px;
    display: block;
}

.overlay {
    position: absolute;
    top: 78%;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    transition: top 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 20px;
}

.card:hover .overlay {
    top: 0;
}

.overlay-content h3 {
    margin-bottom: 10px;
}

.overlay-content p {
    font-size: 14px;
    margin-bottom: 20px;
}

.download-btn {
    background-color: #2b8841;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.download-btn:hover {
    background-color: #07ee39;
}

/* ريسبونسيف خاص للموبايل */
@media (max-width: 600px) {
    nav ul li {
        display: block;
    
        
    }
    header {
        height: 170px;
        padding-bottom: 10px;
    }
    
}
