@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&family=Fustat:wght@200..800&family=Lalezar&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Cairo", serif;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}


body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    background: linear-gradient(135deg, #001F3F, #000000);
    min-height: 100vh;
}


.header {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    background: #0c2036;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    z-index: 1000;
}


.logo {
    position: relative;
    font-size: 22px;
    color: aliceblue;
    text-decoration: none;
    font-weight: bold;
    opacity: 0;
    animation: slideRight 1s ease forwards;
    cursor: default;
}
/* إعدادات أساسية */
.navbar a {
    display: inline-block;
    font-size: 20px;
    color: aliceblue;
    text-decoration: none;
    font-weight: 500;
    margin-left: 20px;
    transition: .3s;
    opacity: 0;
    animation: slideTop .5s ease forwards;
    animation-delay: calc(.2s * var(--i));
    padding: 8px 15px;
    border-radius: 5px;
}

.navbar a:hover {
    color: #0c2036;
    background: aqua;
}

/* أيقونة القائمة */
.menu-icon {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: white;
    background-color: linear-gradient(135deg, #001F3F, #000000);
}

/* جعل القائمة مخفية افتراضيًا */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 100%;
        background: rgba(12, 32, 54, 0.9);
        border-radius: 0 0 10px 10px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
        padding-top: 60px;
        transition: transform 0.4s ease-in-out;
        transform: translateY(-100%); /* إخفاء القائمة */
    }

    /* عند تفعيل القائمة */
    .navbar.active {
        transform: translateY(0); /* ظهور القائمة */
    }

    /* إظهار الأيقونة في الشاشات الصغيرة */
    .menu-icon {
        display: block;
    }

    .navbar a {
        font-size: 22px;
        padding: 12px;
        text-align: center;
        width: 100%;
        display: block;
        border-bottom: 1px solid #fff;
        transition: 0.3s;
        color: aliceblue;
        text-decoration: none;
        font-weight: 500;
    }
}


@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
    .menu-icon.active {
        color: aqua;
    }

    
@keyframes slideTop {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideRight {
    0% { opacity: 0; transform: translateX(20px); }
    100% { opacity: 1; transform: translateX(0); }
}

.home {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 50px 3%;
    flex-direction: row;
    gap: 20px;
}

.home-img {
    width: 250px;
    max-width: 100%;
    border-radius: 50%; 
}

.home-content {
    max-width: 500px;
    text-align: right;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column; 
        text-align: center;
    }

    .home-img {
        width: 60%; 
    }
    .home-content {
        text-align: center;
    }
}

.home-content .p h3 {
    color: white;
    font-size: 40px;
    font-weight: 700;
    opacity: 0;
    animation: slideBottom 1s ease forwards;
    animation-delay: .7s;
    margin-top: 30px;
}

.home-content h3:nth-of-type(2) {
    margin-bottom: 30px;
}

.home-content .p h3 span {
    color: aqua;
}

.home-content .p h1 {
    color: white;
    font-size: 48px;
    font-weight: 700;
    margin: 3px 0;
    opacity: 0;
    animation: slideRight 1s ease forwards;
    animation-delay: 1s;
}

.home-content .p {
    color: white;
    font-size: larger;
    margin: 90px 0;
    width: 100%;
}

.text1 p {
    margin-right: 30px;
    color: aliceblue;
    font-size: 20px;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: 1s;
    margin-top: 10px;
}


.home-sci {
    margin-bottom: 10px; 
}

.home-sci a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background: transparent;
    border: 2px solid aqua;
    border-radius: 50%;
    float: left;
    color: aqua;
    font-size: 20px;
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    text-decoration: none;
    margin: 30px 15px 30px 0%;
    transition: .5s;
    opacity: 0;
    animation: slideBottom 1s ease forwards;
    animation-delay: calc(.2s * var(--i));
}

.home-sci a:hover {
    background: aqua;
    color: rgb(0, 0, 0);
    box-shadow: 0 0 20px aqua;
}

.btn-box {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    width: fit-content;
    padding: 10px 20px;
    background: aqua;
    border-radius: 5px;
    font-size: 14px;
    color: #000000;
    letter-spacing: 1px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0px 0px 15px rgba(0, 255, 255, 0.8); 
    transition: box-shadow 0.3s ease-in-out;
    animation: slideTop 1s ease forwards;
    animation-delay: 2s;
}

.btn-box:hover {
    box-shadow: 0px 0px 25px rgba(0, 255, 255, 1), 0px 0px 50px rgba(0, 255, 255, 0.7); 
}

.about{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));    align-items: center;
    align-items: center;
    gap: 2rem;
    padding: 50px 5%;
    text-align: center;
}

.about-img img {
    max-width: 100%;
    height: auto;
    width: 250px; 
    border-radius: 50%; 
    display: block;
    margin: 0 auto;
}

@media (max-width: 0px) {
    .about {
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    .about-img img {
        width: 70%; 
        margin-bottom: 20px;
    }
}

.about-text{
    margin-top: 6rem;
    align-items: center;
}

.about-text h2{
    font-size: 42px;
    color: #fff;
    opacity: 0;
    animation: slideBottom 1s ease forwards;
}

.about-text h2 span{
    color: aqua;
}

.about-text h4{
    font-size: 25px;
    font-weight: 600;
    color: white;
    margin-bottom: 15px;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
}

.about-text p{
    color: #ddd; 
    font-size: 18px;
    margin-bottom: 3rem;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
}

@keyframes slideLeft {
    0% {
        transform: translateX(100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0px);
        opacity: 1;
    }
}

@keyframes slideBottom {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    100% {
        transform: translateY(0px);
        opacity: 1;
    }
}

#services{
    color: white;
    font-size: 20px;
    margin-bottom:  4rem;
}

.sub-title{
    text-align: center;
    font-size: 60px;
    padding-bottom: 70px;
}

.sub-title span{
    color: aqua;
}

.container1{
    padding: 90px;
}

.services-list{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(259px, 1fr));
    gap: 40px;
    margin-top: 50px; 
}

.services-list div{
    background-color: transparent;
    padding: 40px;
    font-size: 13px;
    font-weight: 500;
    border-right: 10px;
    border-radius: 20px;
    transition: background 0.5s, transform 0.5s ease-in-out;
    box-shadow: 0px 0px 25px #0c2036, 0px 0px 50px rgba(28, 69, 120, 0.7); 
}

.services-list div i{
    font-size: 50px;
    margin-bottom: 30px;
}

.services-list div h2{
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 15px;
}

.services-list div a{
    text-decoration: none;
    color: black;
    font-size: 12px;
    margin-top: 20px;
    display: inline-block;
    transition: color 0.3s ease;
}


.read{
    display: inline-block;
    padding: 12px 28px;
    background: aqua;
    border-radius: 40px;
    font-size: 16px;
    color: white;
    letter-spacing: 1px;
    text-decoration: none;
    font-weight: 600;
    opacity: 0;
    animation: slideTop;
     box-shadow: 0px 0px 15px rgba(0, 255, 255, 0.8);
    transition: box-shadow 0.3s ease-in-out;
    animation: slideTop 1s ease forwards;
    animation-delay: 1s;
}

.read:hover{
    box-shadow: 0px 0px 25px rgba(0, 255, 255, 1), 0px 0px 50px rgba(0, 255, 255, 0.7); 
    color: black;
}

.services-list div:hover{
    transform: translateY(-10px);
}

.sub-title{
    color: #fff;
}

section{
    color: #fff;
    display:grid;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.skills-section, .professional-skills {
    max-width: 900px;
    margin: 50px auto;
    padding: 50px 5%;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: background 0.5s, transform 0.5s;
    box-shadow: 0px 0px 25px #0c2036, 0px 0px 50px rgba(28, 69, 120, 0.7); 
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.skills-section h2, .professional-skills h2 {
    font-size: 32px;
    margin-bottom: 20px;
    position: relative;
}
.skills-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.skill {
    background:rgba(0, 255, 255, 0.839);
    color: white;
    padding: 15px;
    margin: 10px;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    cursor: pointer;
    width: 100%;
    direction: ltr;
    flex: 1;
    max-width: 300px;
    text-align: center;
}
.skill:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}
.radial-bars {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}
.radial-bar {
    width: 150px;
    height: 150px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.radial-bar svg {
    position: absolute;
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}
.progress-bar {
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 10;
}
.path {
    fill: none;
    stroke-width: 10;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease-in-out;
}
.path-1 { stroke: #ff9800; stroke-dasharray: 502; stroke-dashoffset: 50; }
.path-2 { stroke: #4caf50; stroke-dasharray: 502; stroke-dashoffset: 25; }
.path-3 { stroke: #2196f3; stroke-dasharray: 502; stroke-dashoffset: 100; }
.path-4 { stroke: #e91e63; stroke-dasharray: 502; stroke-dashoffset: 75; }
.percentage {
    font-size: 20px;
    font-weight: bold;
}
.text1 {
    font-size: 12.5px;
    margin-top: 5px;
}

.main-text{
    padding-top: 130px;
    margin-top: 100px;
}

.main-text h2{
    font-size: 60px;
    text-align: center;
    margin-bottom: 30px;
}

.main-text h2 span{
    color: aqua;
}

/* تنسيقات قسم المشاريع */
.projects-section {
    padding: 60px 20px;
  }
  
  .container {
    max-width: 1100px;
    margin: 0 auto;
  }
  
  .section-title {
    font-size: 32px;
    color: #ffffff;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
  }
  
  .section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #0089b3;
    margin: 12px auto 0;
    border-radius: 6px;
  }
  
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
  }
  
  .project-card {
    background: linear-gradient(135deg, rgba(12, 29, 47, 0.95), rgba(20, 40, 70, 0.95));
    border-radius: 16px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
    border: 1px solid #112233; 
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.35);
  }
  
  .project-title {
    font-size: 22px;
    margin-bottom: 12px;
    color: #ffffff;
    font-weight: bold;
  }
  
  .project-description {
    font-size: 16px;
    color: #d0d0d0;
    margin-bottom: 20px;
  }
  
  .project-link {
    align-self: flex-start;
    font-weight: 600;
    color: #00bcd4;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
  }
  
  .project-link:hover {
    color: #4dd0e1;
    border-color: #4dd0e1;
  }
  

.row{
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.row img{
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    transition: transform 0.5s;
}

.layer{
    width:100%;
    height: 0;
    background:  linear-gradient(135deg, #001F3F, #000000);
    position: absolute;
    border-radius: 8px;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 48px;
    transition: height 0.5s;
}

.layer h5{
    color: aqua;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.layer p{
    color: #fff;
    font-size: 1rem;
}

.row:hover img{
    transform: scale(1.1);
}

.row:hover .layer{
    height: 100%;
}


.porfolio-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}


.contact{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding:50px 5%;
    margin-top: 150px;
    color: #fff;
    align-items: center;
    justify-content: center;
}

.contact-text h2{
    font-size: 40px;
    text-align: center;
}

.contact-text h2 span{
    color: aqua;
}

.contact-text h4{
    margin: 15px 0;
    color: rgb(288, 288, 288);
    font-size: 20px;
    font-weight: 600;
}

.contact-text p{
    color: rgb(177, 177, 177);
    font-size: 20px;
    line-height: 30px;
    margin-bottom: 2rem;
}

.contact-list{
    margin-bottom: 3rem;
    margin-right: 100px;
    text-align: center;
}

.contact-list li{
    margin-bottom: 10px;
    display: block;
    font-size: 25px;
}


.contact-list li a:hover{
    transform: scale(1.01) translateY(-5px);
    color: aqua;   
}

.contact-icons{
    padding-right: 60px;
    display: flex;
    justify-content: center;
    gap:15px;
}

.contact-icons i{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid aqua;
    border-radius: 50%;
    font-size: 20px;
    color: aqua;
    text-decoration: none;
    margin: 30px 15px 30px 0;
    transition: .5s ease;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: calc(.2s * var(--i));
}

.contact-icons i:hover{
    background: aqua;
    color: #fff;
    box-shadow: 0 0 20px aqua;
}

.contact-form form{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.contact-form form input,form textarea{
    border: none;
    outline: none;
    width: 100%;
    padding: 15px;
    background: #ffffff87;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    max-width: 500px;
    transition: 0.3s ease;
}

.contact-form form input:focus,
.contact-form form textarea:focus{
    background: #918c8c;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
}

.contact-form textarea{
    resize: none;
    height: 220px;
}

.contact-form form .send{
    display: inline-block;
    padding: 14px 60px;
    background: aqua;
    border-radius: 40px;
    font-size: 18px;
    color: #000000;
    letter-spacing: 1px;
    text-decoration: none;
    font-weight: 600;
    opacity: 0;
    animation: slideTop;
     box-shadow: 0px 0px 15px rgba(0, 255, 255, 0.8); 
    transition: box-shadow 0.3s ease-in-out;
    animation: slideTop 1s ease forwards;
    animation-delay: 1s;
}

.contact-form form .send:hover{
    box-shadow: 0px 0px 25px rgba(0, 255, 255, 1), 0px 0px 50px rgba(0, 255, 255, 0.7); 
}

.contact-form form .send:active{
    transform: scale(0.98); 
}

@media (max-width: 768px) {
    .contact{
        padding: 50px 2%;
    }
    .contact-text h2{
        font-size: 45px;
    }
    .contact-icons{
        padding-right: 0;
        justify-content: center;
        gap: 10px;
    }
    .contact-icons i{
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    .contact-list li{
        font-size: 20px;
    }
    .contact-form form input,
    .contact-form form textarea{
        max-width: 100%;
    }
    .contact-form form .send{
        padding: 12px 40px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .contact{
        padding: 40px 2%;
    }
    .contact-text h2{
        font-size: 40px;
    }
    .contact-icons i{
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    .contact-list li{
        font-size: 18px;
    }
    .contact-form form input,
    .contact-form form textarea{
        font-size: 0.9rem;
    }
    .contact-form form .send{
        padding: 10px 30px;
        font-size: 14px;
    }
}

.last-text p{
    color: #fff;
    width: 100%;
    text-align: center;
    padding: 25px 0;
    background: linear-gradient(135deg, #001F3F, #000000);
    font-weight: 300;
    margin-top: 70px;
}

.top{
    position: fixed;
    bottom: 2.1rem;
    right: 2.1rem;
}

.top i{
    color: #ffffff;
    font-size: 20px;
    padding: 10px;
    border-radius: 0..5rem;
}
