:root {
    --main-color: #9da555;
    --text-color: #353535;
    --bg-color: #ededed;
    --card-bg: #dfdbff53;
    --radius: 12px;
    /* --main-color: #9da555;
    --text-color: #ffffff;
    --bg-color: #2d2d2d;
    --card-bg: #3f3f3f;
    --radius: 12px; */
  }
  
  body {
    font-family: 'Segoe UI', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
  }
  body section.about{
    margin: auto;
    display: flex;
    flex-direction: column;
    max-width: 522px;
  }
  header {
    background: linear-gradient(rgb(111 40 99), rgb(142 107 194));
    color: rgb(255 255 255);
    text-align: center;
    display: flex;
    justify-content: center;
    color: rgb(255 255 255);
    text-align: center;
    display: flex;
    justify-content: center;
 
   
  }
  header div{
    display: flex;
    justify-content: center;
    flex-direction: column;

  }
  ul{
    list-style-type: none;
  }
  .about, .projects-section {
    padding: 2rem;
    text-align: center;
  }
  a{
    color: #9da555;
  }
  
  .section-title {
    margin-bottom: 2rem;
    color: var(--main-color);
  }
  
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 1rem;
  }
  
  .project-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s;
  }
  
  .project-card:hover {
    transform: translateY(-6px);
  }
  
  .project-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
  
  .project-content {
    padding: 1rem;
  }
  
  .project-content h3 {
    color: var(--main-color);
  }
  
  .project-content button {
    background: var(--main-color);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
  }
  
  .project-content button:hover {
    background: #0056b3;
  }
  
  footer {
    background: #222;
    color: #ccc;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
  }
  
  /* نافذة منبثقة */
  .popup {
    display: none;
    position: fixed;
    z-index: 999;
    top: 0; right: 0; bottom: 0; left: 0;
    background-color: rgba(0,0,0,0.6);
  }
  
  .popup-content {
    background: white;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
  }
  
  .close-btn {
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #555;
  }
  
  /* مؤشر تحميل */
  #loader {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .loader-spin {
    border: 5px solid #eee;
    border-top: 5px solid var(--main-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
  }
  .about-container {
    display: flex;
    justify-content: center;
    /* gap: 20px; */
    /* position: relative; */
    align-items: center;
    /* flex-wrap: wrap; */
    margin-top: 15px;
  }
  
  .profile-image img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
  }
  
  .about-text {
    flex: 1;
    min-width: 250px;
  }
  
  
  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }
  