@media only screen and (max-width:4000px) and (min-width:1001px) {
    .navbar{
        position: fixed;
        width: 90%;
        height: 120px;
        background: linear-gradient(to right, #0f2027, #203a43, #2c5364);
        border-bottom-right-radius: 20px;
        border-bottom-left-radius: 20px;
        margin-left: 5%;
        margin-top: -200px;
        color: #EEEEEE;
        padding: 20px 10px;
        z-index: 1000;
    }
    .listphone{
      display: none;
    }
    .menubar{
      display: none;
    }
    .navbar ul li{
        display: inline-block;
        font-weight: bold;
        margin-left: 100px;
        font-size: 20px;
    }
    .navbar ul a:hover{
        transition: 1s;
        color:#00ADB5;
    }
    .navbar ul a:focus{
        color: #00ADB5;
    }
    .navbar .name{
        text-align: center;
        font-size: 50px;
        color: #72FACA;
        font-style: italic;
        font-weight: bold;
    }

    .navbar .name span {
        display: inline-block;
        animation: bounce 0.6s ease infinite;
      }

    
      
      /* نضيف delay لكل حرف */
      .navbar .name span:nth-child(1) { animation-delay: 0s; }
      .navbar .name span:nth-child(2) { animation-delay: 0.1s; }
      .bouncy-text span:nth-child(3) { animation-delay: 0.2s; }
      /* كمل حسب عدد الحروف */
      .navbar .name span:nth-child(4) { animation-delay: 0.3s; }
      .navbar .name span:nth-child(5) { animation-delay: 0.4s; }
      .navbar .name span:nth-child(6) { animation-delay: 0.5s; }
      .navbar .name span:nth-child(7) { animation-delay: 0.6s; }
      
      @keyframes bounce {
        0%, 100% {
          transform: translateY(0);
        }
        50% {
          transform: translateY(-10px);
        }
      }

      .screen {
        background-color: #1E1E2F;
        padding: 40px;
        border-radius: 15px;
        box-shadow: 0 0 20px #00FFCC33;
        width: 90%;
        max-width: 800px;
        height: 800px;
        margin-left: 18%;
        margin-top: 100px;
        margin-bottom: 50px;
      }
  
      .screen::before {
        content: '';
        position: absolute;
        top: -25px;
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        height: 10px;
        background-color: #555;
        border-radius: 5px;
      }
  
      .typewriter {
        white-space: pre-wrap;
        font-size: 22px;
        line-height: 1.8;
      }
  
      .cursor {
        display: inline-block;
        width: 2px;
        background-color: #00FFCC;
        animation: blink 0.8s infinite;
        vertical-align: bottom;
      }
  
      @keyframes blink {
        0%, 50% { opacity: 1; }
        51%, 100% { opacity: 0; }
      }



      .swiper {
        width: 1000px;
        padding: 40px 0;
        margin-bottom: 50px;
      }
      
      .swiper-slide {
        text-align: center;
        font-size: 18px;
        background: #1E1E2F;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        box-shadow: 0 0 10px #00adb544;
        transition: transform 0.3s;
      }
      
      .swiper-slide:hover {
        transform: scale(1.05);
      }
      
      .swiper-slide img {
        width: 60px;
        height: 60px;
        margin-bottom: 10px;
      }
      .swiper-slide p {
        color: #fff;
        margin: 0;
      }
      .swiper h1{
        text-align: center;
        font-size: 50px;
      }


      /* Footer Base */
footer {
    position: relative;
    background-color: #00ADB5;
    color: #fff;
    padding: 100px 20px 40px;
    text-align: center;
    overflow: hidden;
    transform: translateY(100%);
    opacity: 0;
    transition: all 1s ease;
  }
  
  /* When visible */
  footer.active {
    transform: translateY(0);
    opacity: 1;
  }
  
  /* Wave Style */
  .wave {
    position: absolute;
    top: -120px;
    left: 0;
    width: 100%;
    height: 120px;
  }
  
  /* Footer Content */
  .footer-content h2 {
    margin-bottom: 20px;
    font-size: 28px;
  }
  
  .social-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
  }
  
  .social-icons img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s;
  }
  
  .social-icons a:hover img {
    transform: scale(1.2);
  }
  


  .grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: auto;
  }
  
  .box {
    position: relative;
    width: 100%;
    padding-top: 100%; /* لجعل البوكس مربع */
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 0 15px #00adb566;
  }
  
  .box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* مهم لتغطية كامل البوكس */
    z-index: 1;
  }
  
  /* النص فوق الصورة */
  .code-label {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(0, 173, 181, 0.85);
    color: white;
    padding: 5px 15px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    z-index: 2;
  }
  
  /* Spinner حوالين البوكس */
  .spinner {
    position: absolute;
    top: -6px;
    left: -6px;
    width: calc(100% + 12px);
    height: calc(100% + 12px);
    border: 4px solid transparent;
    border-top: 4px solid #00ADB5;
    border-radius: 50%;
    animation: rotate 2s linear infinite;
    z-index: 0;
  }
  
  @keyframes rotate {
    to { transform: rotate(360deg); }
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .grid-container {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 480px) {
    .grid-container {
      grid-template-columns: 1fr;
    }
  }
    
  .box:hover{
    transition: 1s;
    rotate: 180deg;
  }



  .cards-container {
    margin-top: 200px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
  }
  
  .card {
    background: linear-gradient(145deg, #1b1b1b, #111);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(0, 173, 181, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #222;
  }
  
  .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px rgba(0, 173, 181, 0.4);
  }
  
  .card h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #00adb5;
  }
  
  .card p {
    font-size: 15px;
    color: #ccc;
    margin-bottom: 15px;
  }
  
  .card a {
    color: #00adb5;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
  }
  
  .card a:hover {
    color: #ffffff;
  }

h1{
    text-align: center;
    display: block;
    font-size: 50px;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 20px;
}
}