
/* ايقونات */
.icons-section {
background: linear-gradient(135deg, #113F67, #7da2c4, #557c9e,   #d3e7f8);
    padding: 5px;
    margin: 0px auto;
    text-align: center;
}

.icons-row {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.icon-box {
    color: #ffffff;
    text-align: center;
    padding: 5px;
    flex: 1;
    min-width: 150px; 

}

.icon-box i {
    font-size: 30px;
    margin-bottom: 5px;
}

.icon-box h2 {
    font-size: 25px;
    margin: 5px 0;
}

.icon-box p {
    font-size: 18px;
}

/* ايقونات */

/* الخدمات */
.services-section {
    text-align: center; 
    padding: 40px 10px;
 

}
.services-title{
    text-align: center; 
    margin-bottom: 20px;

}
.services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: auto;
 
}
.services-container img{
    width: 100%;
    height: 80%;
    border-radius: 8px;
}
.services-container h3{
    padding: 15px 20px 0;
}
.services-container p{
    padding: 15px 20px ;
}
.services-container a{
    padding: 0px;
}
.service-box {
    text-decoration: none;
    width: calc(25% - 20px); 
    min-width: 250px;
    min-height: 250px;
    background-color: white;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    border-top: 4px solid #113F67;
    transition: all 0.3s ease;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center; 
}

.service-box:hover {
    transform: translateY(-5px);
}

.service-box i {
    font-size: 40px;
    color: #113F67;
    margin-bottom: 10px;
}

.service-box h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #113F67;
}

.service-box p {
    font-size: 17px;
    color: #000000;
}
.service-box h3, .service-box p {
    text-align: center;
    margin: 5px 0;
}

.service-box a {
    width: 100%;
    height: 100%;
    text-decoration: none; 
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* @keyframes floatAnimation1 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes floatAnimation2 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(20px); }
}

@keyframes floatAnimation3 {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.4); }
}

@keyframes floatAnimation4 {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(40deg); }
}

.service-box:nth-child(1) i { animation: floatAnimation1 1s infinite ease-in-out; }
.service-box:nth-child(2) i { animation: floatAnimation2 1s infinite ease-in-out; }
.service-box:nth-child(3) i { animation: floatAnimation3 1s infinite ease-in-out; }
.service-box:nth-child(4) i { animation: floatAnimation4 1s infinite ease-in-out; }
.service-box:nth-child(5) i { animation: floatAnimation1 1s infinite ease-in-out; }
.service-box:nth-child(6) i { animation: floatAnimation2 1.5s infinite ease-in-out; }
.service-box:nth-child(7) i { animation: floatAnimation3 1.5s infinite ease-in-out; } */

/* خدمات */

/* العداد */
.counter-section {
    background: linear-gradient(135deg, #113F67, #7da2c4, #557c9e,   #d3e7f8);
    padding: 50px 20px;
    text-align: center;
    width: 100%;
    margin-bottom: 10px;
}

.counter-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.counter-box {
    background: white;
    padding: 25px;
    width: 200px;
    border-radius: 10px;
    border: 4px solid #113F67;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.counter-box i {
    font-size: 40px;
    color: #113F67;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.counter-box h2 {
    font-size: 30px;
    color: #333;
    font-weight: bold;
}

.counter-box p {
    font-size: 16px;
    color: gray;
}

.counter-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.counter-box:hover i {
    color: #9b5de5;
}

/* العداد */
/* اعمالنا */
.portfolio {
    text-align: center;
    padding: 50px 20px;
    background: #f8f8f8;
}
.portfolio h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
}

.portfolio-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
.project {
    position: relative;
    width: 300px;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.project:hover {
    transform: scale(1.05);
}
.project img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}
.project h3 {
    position: absolute;
    bottom: 7px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    
    color: white;
    padding: 10px;
    font-size: 18px;
}

.modal {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 200;
}


.modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 500px;
    position: relative;
}
.modal img {
    width: 100%;
    border-radius: 10px;
}
.modal h2 {
    margin: 10px 0;
    color: #333;
}
.modal p {
    color: #666;
}
.modal a {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 10px;
    background: #113F67;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}
.modal .close {
    position: absolute;
    top: -10px; 
    right: 0px;
    width: 30px;
    height: 30px;
    font-size: 20px;
    font-weight: bold;
    border: 2px solid #000;
    border-radius: 50%;
    background: white;
    color: black;
    /* display: flex; */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: 0.3s;
}
/* اعمالنا */

.services-section-contact {
    text-align: center; 
    padding: 40px 10px;
}
.services-title-contact{
    text-align: center; 
    margin-bottom: 20px;

}
.services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: auto;
}

.service-box-contact {
    text-decoration: none;
    width: calc(25% - 20px); 
    min-width: 250px;
    background-color: white;
    padding: 20px !important;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    border: 4px solid #113F67;
    transition: all 0.3s ease;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center; 
}

.service-box-contact:hover {
    transform: translateY(-5px);
}

.service-box-contact i {
    font-size: 40px;
    color: #113F67;
    margin-bottom: 10px;
}

.service-box-contact h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #113F67;
}

.service-box-contact p {
    font-size: 17px;
    color: #000000;
}
.service-box-contact h3, .service-box-contact p {
    text-align: center;
    margin: 5px 0;
}

.service-box-contact a {
    width: 100%;
    height: 100%;
    text-decoration: none; 
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
/* media */
@media (max-width: 768px) {
    .counter-container {
        gap: 15px; 
    }
    .counter-box {
        width: 160px; 
        padding: 15px;
    }
    .service-box {
        width: 100%;
    }
}


@media (max-width: 480px) {
    .counter-container {
        flex-direction: column; 
        align-items: center; 
        gap: 10px;
    }
    .counter-box {
        width: 80%; 
    }
    .service-box p {
        font-size: 18px;
    }
}