*{
    margin: 0px;
    padding: 0px;
    font-family: sans-serif;
    box-sizing: border-box;
    scroll-behavior: smooth;
   
}
header {
   
    /* width: 50%; */
    position: fixed;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    
    align-items: center;
    padding: 10px 5vw; /* ✅ padding نسبي حسب عرض الشاشة */
    margin-top: 5px;
    border-radius: 20px;
    box-sizing: border-box;
}

/* ========== Logo Styles ========== */
.logo {
    text-decoration: none;
    color: white;
    background: linear-gradient(#13dcd9dd, #2c4c8c, #1a14d0e0);
    padding: 1em 2em;
    font-weight: 500;
    font-size: clamp(1em, 2.5vw, 1.3em); /* ✅ يتغير حسب حجم الشاشة */
    border-radius: 10px;
    white-space: nowrap;
    display: inline-block;
}
/* ========== Navigation Styles ========== */
.navigation {
    display: grid;
    grid-auto-flow: column;
    gap: 15px;
}

.navigation a {
    position: relative;
    display: inline-block;
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 1em;
    padding: 10px 25px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transition: 0.3s ease;
    margin-left: 20px;
}

.navigation a:hover {
    box-shadow: 0 0 10px #13dcd9dd, 0 0 20px #13dcd9dd, 0 0 40px #13dcd9dd, 0 0 60px #13dcd9dd;
    color: rgb(0, 255, 166);
}

/* Gradient Background on Hover */
.navigation a span {
    position: absolute;
    top: -100%;
    left: 0;
    background: linear-gradient(#18ba7c, #2442d7dd, #18ba7c, #1610d5e0);
    width: 100%;
    height: 230%;
    transition: 0.5s;
    z-index: -1;
}

.navigation a:hover span {
    top: -30px;
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
    header {
        grid-template-columns: 1fr;
        padding: 10px 20px;
        text-align: center;
    }

    .navigation {
        grid-auto-flow: row;
        justify-content: center;
        margin-top: 10px;
    }

    .navigation a {
        padding: 10px;
        font-size: 0.95em;
    }

   
}

@media (max-width: 480px) {
    .navigation {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .navigation a {
        width: 100%;
        max-width: 300px;
        margin: 5px 0;
    }
}





.main {
    padding: 100px 200px;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url(images.jpg) no-repeat;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    color: white;
    text-align: center;
    flex-wrap: wrap; /* لتكدس العناصر عند الشاشات الصغيرة */
    border-radius: 20px;
    overflow: hidden;
}


.abdo {
    width: 500px;
    height: 500px;
    margin-top: 20px;
    border-radius: 50%;
    border: none;
    box-shadow: 0px 5px 25px rgb(0 0 255 / 25);
    transition: 0.7s ease;
}



.main h2 {
    font-size: 1.4em;
    font-weight: 500;
    letter-spacing: 1px;
    background: linear-gradient(#13dcd9dd, #2c4c8c, #1a14d0e0);
    border-radius: 20px;
}

.main h2 span {
    display: inline-block;
    margin-top: 10px;
    font-size: 2em;
    font-weight: 600;
    color: rgb(0, 255, 208);
}

.main h3 {
    font-size: 1.4em;
    font-weight: 500;
    margin-top: 10px;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.main .icons {
    margin-top: 50px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.button {
    position: relative;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1em;
    padding-left: 30px;
    padding: 12px 50px;
    color: white;
    background: linear-gradient(#18ba7c, #2442d7dd, #102cc9, #1070dee0);
    border-radius: 10px;
    border: none;
    letter-spacing: 1px;
    display: inline-block;
}

.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    border-width: 0;
    border: solid;
    border-color: #0d8ec2 rgba(51, 237, 231, 0.3) rgba(9, 225, 182, 0.3) #0bbece;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, .4);
    border-bottom-right-radius: 5px;
    transition: .7s ease-out;
}

.button:hover::before {
    border-width: 35px;
}

.icons a {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 50px;
    background: #19e5f7;
    z-index: 1;
    text-align: center;
    line-height: 50px;
    background: transparent;
    box-shadow: rgba(0, 0, 0, .3);
    transition: .3s;
    border-radius: 20px;
    margin: 15px;
}

.icons a::before {
    content: '';
    position: absolute;
    width: 45px;
    height: 45px;
    background: #929498;
    z-index: -1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 20px;
}

.icons a i {
    font-size: 25px;
    color: rgb(15, 68, 211);
    transition: .3s;
}

.icons a:hover {
    background: #0ef;
    transform: rotate(135deg);
    box-shadow: 0 0 5px #0ef, 0 0 10px #0ef;
}

.icons a:hover i {
    transform: rotate(225deg);
    box-shadow: 0 0 10px #0ef;
    background: #0ef;
    border-radius: 10px;
}

/* ======= Media Queries ======= */

/* For smaller screens like tablets (max-width: 768px) */
@media (max-width: 768px) {
    .main {
        padding: 50px 20px;
        flex-direction: column;
    }

    .abdo {
        width: 80%;
        height: auto;
    }

    .main h2 {
        font-size: 1.2em;
    }

    .main h3 {
        font-size: 1.2em;
    }

    .button {
        font-size: 1em;
        padding: 10px 30px;
    }

    .icons a {
        width: 45px;
        height: 45px;
    }

    .icons a i {
        font-size: 22px;
    }
}

/* For smaller mobile screens (max-width: 480px) */
@media (max-width: 480px) {
    .main {
        padding: 30px 10px;
    }

    .abdo {
        width: 70%;
        height: auto;
    }

    .main h2 {
        font-size: 1em;
    }

    .main h3 {
        font-size: 1em;
    }

    .button {
        font-size: 0.9em;
        padding: 8px 20px;
    }

    .icons a {
        width: 40px;
        height: 40px;
    }

    .icons a i {
        font-size: 20px;
    }
}
.title{
    display: flex;
    justify-content: center;
   color: rgb(0, 255, 208);
   font-size: 2.2em;
   margin-top: 20px;
   margin-bottom: 30px;
   font-weight: 800;
}
.content{
    display: flex;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;

}
.card{
    background: white;
    width: 21.25em;
   
    box-shadow: 0px 5px 25px rgb(157 156 156/15);
    text-align: center;
    padding: 30px;
    margin-bottom: 50px;
    border-radius: 15px;
}

.card:hover{
    transform: scale(1.1);
    transition: .7s;
}
.icon{
    font-size: 8em;
    color: rgb(15, 68, 211);
}
.info h3{
    color:rgb(15, 68, 211) ;
    font-size: 1.2em;
    font-weight: 700;
  
}
.info p{
    letter-spacing: 1px;
    margin-top: 10px;
}




#pro{
    margin-top: 20px;
    font-size: 30px;
}











    .card, .image-container {
      transition: all 0.5s ease;
    }

 

    .image-container {
      display: none;
    }

    .image-container img {
      width: 300px;
      height: 400px;
      border-radius: 10px;
    }

    button {
      margin-top: 15px;
      padding: 10px 15px;
      border: none;
      background-color: #36eac0;
      color: #000;
      font-weight: bold;
      border-radius: 8px;
      cursor: pointer;
    }

    button:hover {
      background-color: #29b49b;
    }





        

        #image {
            display: none;
            text-align: center;
        }

        #image img {
            width: 300px;
            height:400px;
            border-radius: 10px;
            
        }

        button {
           
      margin-top: 15px;
      padding: 10px 15px;
      border: none;
      background-color: #36eac0;
      color: #000;
      font-weight: bold;
      border-radius: 8px;
      cursor: pointer;
    }
       
    button:hover {
      background-color: #29b49b;
    }
     .card, .image-container {
      transition: all 0.5s ease;
    }

    








        .card, #imagContainer {
      transition: all 0.3s ease-in-out;
    }

    #imagContainer {
      display: none;
      text-align: center;
    }

    #imagContainer img {
       width: 300px;
            height:400px;
            border-radius: 10px;
    }

     button {
           
      margin-top: 15px;
      padding: 10px 15px;
      border: none;
      background-color: #36eac0;
      color: #000;
      font-weight: bold;
      border-radius: 8px;
      cursor: pointer;
    }
     button:hover {
      background-color: #29b49b;
    }





#project {
    background: linear-gradient(#13dcd9dd, #2c4c8c, #1a14d0e0);
    width: 100%;
    height: auto; /* خليها auto عشان ترتفع حسب المحتوى */
    margin-top: 150px;
    padding: 50px;
    border-radius: 20px;
    overflow: hidden;
    box-sizing: border-box;
}

.ion {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* هام لتجنب خروج العناصر */
    gap: 50px;
    width: 100%;
    height: auto;
    box-sizing: border-box;
}



    
    .video-card {
      background: linear-gradient(#13dcd9dd,#2c4c8c,#1a14d0e0);
      border-radius: 15px;
      min-height:200px ;
  overflow-y: auto;
      width: 350px;
      height: 350px;
      overflow: hidden;
      transition: 0.3s;
      text-align: center;
      margin-bottom: 50px;
       box-shadow: 0px 0px 10px rgb(68, 194, 222);
    }

    .video-card video {
      width:100%;
     
    }

    .video-card .content {
      padding: 15px;
    }

    .video-card h3 {
      margin-top: 0;
      color: #14e0a0;
    }

    .video-card p {
      color: white;
      letter-spacing: 1px;
      
    }
    .Contact{
      margin-top: 100px;
    }
    #content{
      width: 100%;
      height: 500px;
      display: flex;
      justify-content: center;
      align-items: center;border:solid 10px black ;
    }
    .footer{
      display: flex;
      justify-content: space-between;
      margin-top: 100px;
      background: linear-gradient(#13dcd9dd,#2c4c8c,#1a14d0e0);
      border-radius: 20px;
    }
    /*  */
    .footer p{
       margin-top:30px ;
       margin-left: 20px;
       color: #0b71e7;

    }
    .footer p span{
      color: #14e0a0;
    }