html {
    scroll-behavior: smooth;
}
*
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'poppins' , sans-serif;
}
body
{
    color: #ededed;
}
.header
{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 10%;
    background: black;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}
.logo
{
    position: relative;
    font-size: 25px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    cursor: default;
    opacity: 0;
    animation: slideRight 1s ease forwards;
}
.logo {
    font-size: 25px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    cursor: default;
}

.logo span {
    color: #00eeff; /* لون النيون اللي بنستخدمه */
    text-shadow: 0 0 10px #00eeff;
}
.navbar a
{
    display: inline;
    font-size: 25px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    margin-left: 35px;
    transform: .3s;
    opacity: 0;
    animation: slideTop .5s ease forwards ;
    animation-delay:  calc(.2s * var(--i));
}
.navbar a:hover
{
    color: #00eeff;
}
.Home {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(180deg, #a6d8ff 0%, #032c61 70%); 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 70px 10% 0;
}

.Home-content {
    max-width: 600px;
}
.Home-content h3
{
    font-size: 32px;
    font-weight: 700;
    opacity: 0;
    animation: slideBotton 1s ease forwards;
    animation-delay: 0.7s;
}
.Home-content h3:nth-of-type(2){
    margin-bottom: 30px;
    animation: slideTop 1s ease forwards;
    animation-delay: .7s;
}
.Home-content h3 span {
    color: black;
}
.Home-content h1
{
    font-size: 56px;
    font-weight: 700;
    margin: -3 0;
    opacity: 0;
    animation: slideRight 1s ease forwards;
    animation-delay: 1s;
}
.Home-content p
{
    font-size: 20px;
    opacity: 0;
    animation: slideleft 1s ease forwards;
    animation-delay: 1s;
}

.Home-img img {
    max-width: 300px;
    border-radius: 50px; 
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: 0.5s;
}

.Home-sci a
{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid black;
    border-radius: 50%;
    font-size: 20px;
    color: black;
    text-decoration: none;
    transition: .5s ease;
    opacity: 0;
    animation: slideleft 1s ease forwards;
    animation-delay: calc(.2s * var(--i));
    margin: 30px 15px 30px 0px;

}
.Home-sci a:hover{
    background-color: black;
    color: #fff;
    box-shadow: 0 0 20px black;
}
.btn-box a
{
    display: inline-block;
    padding: 12px 28px;
    background: black;
    color: #fff;
    border-radius: 40px;
    font-size: 16px;
    letter-spacing: 1px;
    text-decoration: none;
    opacity: 0;
    animation: slideTop 1s ease forwards ;
    animation-delay: 2s;
    box-shadow: 0 0 5px #fff, 0 0 25px #fff;
}
.btn-box a:hover
{
    box-shadow: 0 0 5px #a6d8ff,
    0 0 25px #a6d8ff,0 0 50px #a6d8ff,
    0 0 100px #a6d8ff;
}


@keyframes slideRight {
    0%{
        transform: translateX(-100px);
        opacity: 0;
    }
    100%{
        transform: translateX(0px);
        opacity: 1;
    }   
}
@keyframes slideleft {
    0%{
        transform: translateX(100px);
        opacity: 0;
    }
    100%{
        transform: translateX(0px);
        opacity: 1;
    }   
}
@keyframes slideTop {
    0%{
        transform: translateY(100px);
        opacity: 0;
    }
    100%{
        transform: translateY(0px);
        opacity: 1;
    }   
}
@keyframes slideBotton {
    0%{
        transform: translateY(-100px);
        opacity: 0;
    }
    100%{
        transform: translateY(0px);
        opacity: 1;
    }   
}




/* About */
.About {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 2rem;
    background: linear-gradient(180deg, #032c61 0%, #00132c 100%);
    padding: 100px 10%;
    min-height: 100vh;
    color: white;
    text-align: center;
}

.About-text h2 {
    font-size: 60px;
    margin-bottom: 10px;
}

.About-text h2 span {
    color: #00eeff; 
}

.About-text h4 {
    font-size: 28px;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.About-text p {
    font-size: 18px;
    line-height: 1.6;
    max-width: 800px; 
    margin: 0 auto 30px;
    color: #e0e0e0;
}

.btn-About {
    display: inline-block;
    padding: 12px 28px;
    background: #00eeff;
    border-radius: 40px;
    font-size: 16px;
    color: #00132c;
    letter-spacing: 1px;
    text-decoration: none;
    font-weight: 600;
    transition: .5s ease;
    box-shadow: 0 0 10px #00eeff;
}

.btn-About:hover {
    box-shadow: 0 0 20px #00eeff, 0 0 40px #00eeff;
    transform: translateY(-5px);
}



/*services*/

.services {
    padding: 80px 10%;
    background: linear-gradient(180deg, #00132c 0%, #000a16 100%);
}

.sub-title {
    text-align: center;
    font-size: 50px;
    margin-bottom: 50px;
    color: white;
}

.sub-title span {
    color: #00eeff; 
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}

.service-card {
    background: rgba(255, 255, 255, 0.05); 
    backdrop-filter: blur(10px); 
    padding: 40px;
    font-size: 13px;
    font-weight: 300;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1); 
    transition: background 0.5s, transform 0.5s;
    box-shadow: 1px 1px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.service-card i {
    font-size: 50px;
    margin-bottom: 20px;
    color: #00eeff;
}

.service-card h3 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 15px;
    color: white;
}

.service-card p {
    color: #ccc;
    line-height: 1.6;
}

.service-card:hover {
    background: rgba(0, 238, 255, 0.1); 
    transform: translateY(-15px); 
    box-shadow: 0 0 25px rgba(0, 238, 255, 0.3); 
}




/* --- Skills Section --- */
.skills {
    padding: 80px 10%;
    min-height: 100vh;
    background: linear-gradient(180deg, #000a16 0%, #00070f 100%);

}

.skills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.skills-column {
    flex: 1 1 400px;
}

.skills-column .title {
    font-size: 28px;
    margin: 0 0 30px;
    color: white;
    border-bottom: 2px solid #00eeff;
    display: inline-block;
    padding-bottom: 5px;
}

.skills-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.skills-content .progress {
    margin-bottom: 25px;
}

.skills-content .progress h3 {
    display: flex;
    justify-content: space-between;
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #e0e0e0;
}

.skills-content .progress h3 span {
    color: #00eeff;
}

.progress .bar {
    height: 10px;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.progress .bar span {
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background: #00eeff;
    border-radius: 10px;
    box-shadow: 0 0 10px #00eeff;
    
    transform: scaleX(0); 
    transform-origin: left; 
    transition: transform 1.5s cubic-bezier(1, 0, 0.5, 1);
}

.skills.show-items .progress .bar span {
    transform: scaleX(1);
}

.skills-column:nth-child(1) .progress:nth-child(1) .bar span { width: 95%; }
.skills-column:nth-child(1) .progress:nth-child(2) .bar span { width: 85%; }
.skills-column:nth-child(1) .progress:nth-child(3) .bar span { width: 30%; }
.skills-column:nth-child(1) .progress:nth-child(4) .bar span { width: 80%; }
.skills-column:nth-child(1) .progress:nth-child(5) .bar span { width: 90%; }
.skills-column:nth-child(1) .progress:nth-child(6) .bar span { width: 85%; }
.skills-column:nth-child(1) .progress:nth-child(7) .bar span { width: 70%; }
.skills-column:nth-child(1) .progress:nth-child(8) .bar span { width: 75%; }

.skills-column:nth-child(2) .progress:nth-child(1) .bar span { width: 90%; }
.skills-column:nth-child(2) .progress:nth-child(2) .bar span { width: 70%; }
.skills-column:nth-child(2) .progress:nth-child(3) .bar span { width: 85%; }
.skills-column:nth-child(2) .progress:nth-child(4) .bar span { width: 80%; }

@keyframes slideProgress {
    100% {
        transform: translateX(0);
    }
}


/* --- Quote Section --- */
.quote-section {
    padding: 100px 15%;
    text-align: center;
    background: rgba(255, 255, 255, 0.02); 
    position: relative;
    background: linear-gradient(180deg, #00070f 0%, #000000 100%);

}

.quote-container {
    max-width: 800px;
    margin: 0 auto;
}

.quote-container i {
    font-size: 30px;
    color: #00eeff; 
    opacity: 0.5;
    margin: 20px;
}

.quote-text {
    font-size: 28px;
    font-style: none;
    color: #e0e0e0;
    line-height: 1.6;
    font-family: 'Amiri ', serif; 
}

.quote-author {
    margin-top: 20px;
    font-size: 18px;
    color: #00eeff;
    letter-spacing: 2px;
    text-transform: uppercase;
}


/* --- Experience Section --- */
.experience {
    padding: 100px 10%;
    background: #000000;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 50px auto;
    padding-left: 40px; 
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: #00eeff;
    box-shadow: 0 0 15px #00eeff;
    top: 0;
    bottom: 0;
    left: 7px; 
}

.timeline-item {
    position: relative;
    margin-bottom: 40px; 
}

.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background: #00eeff;
    border-radius: 50%;
    left: -33px; 
    top: 8px;
    box-shadow: 0 0 10px #00eeff;
    z-index: 1;
}

.timeline-date {
    font-size: 18px;
    color: #00eeff;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 20px 25px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.4s ease;
}

.timeline-content:hover {
    transform: translateX(10px); 
    background: rgba(255, 255, 255, 0.08);
    border-color: #00eeff;
}

.timeline-content h3 {
    font-size: 22px;
    color: white;
    margin-bottom: 5px;
}

.timeline-content .company {
    font-size: 16px;
    color: #00eeff;
    font-weight: 500;
    margin-bottom: 10px;
    display: block;
}

.timeline-content p {
    color: #ccc;
    line-height: 1.5;
    font-size: 15px;
}



/* --- Projects Section --- */
.projects {
    padding: 100px 10%;
    background: #000000;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 30px;
    margin-top: 50px;
}

.project-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
}

.project-card img {
    width: 100%;
    transition: transform 0.5s;
    border-radius: 20px;
}

.project-layer {
    width: 100%;
    height: 0; 
    background: linear-gradient(rgba(0,0,0,0.1), #00eeff);
    position: absolute;
    left: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    transition: height 0.5s;
    overflow: hidden;
}

.project-layer h4 {
    font-size: 24px;
    color: #000;
    font-weight: 700;
    margin-bottom: 10px;
}

.project-layer p {
    color: #000;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
}

.project-layer a {
    margin-top: 20px;
    color: #00eeff;
    background: #fff;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    font-size: 18px;
}

/* Hover Effects */
.project-card:hover img {
    transform: scale(1.1);
}

.project-card:hover .project-layer {
    height: 100%;
}



/* --- Contact Section --- */
.contact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 3rem;
    padding: 80px 10%;
    background: #000000;
    border-top: 3px solid white;
}

.contact-text h2 {
    font-size: 60px;
    line-height: 1;
}

.contact-text h4 {
    margin: 15px 0;
    color: #e0e0e0;
    font-size: 20px;
    font-weight: 600;
}

.contact-text p {
    color: #ccc;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.contact-list {
    margin-bottom: 3rem;
}

.contact-list li {
    margin-bottom: 10px;
    display: block;
    color: #ccc;
}

.contact-list i {
    display: inline-block;
    color: #00eeff;
    font-size: 20px;
    font-weight: 600;
    margin-right: 10px;
}

.contact-icons i {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid #00eeff;
    border-radius: 50%;
    font-size: 20px;
    color: #00eeff;
    text-decoration: none;
    margin: 30px 15px 30px 0;
    transition: .5s ease;
}

.contact-icons i:hover {
    background: #00eeff;
    color: #000;
    box-shadow: 0 0 20px #00eeff;
}

/* تصميم الفورم */
.contact-form form {
    position: relative;
}

.contact-form form input, .contact-form form textarea {
    border: none;
    outline: none;
    width: 90%;
    padding: 18px;
    background: #222;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
}

.contact-form textarea {
    resize: none;
    height: 220px;
}

.contact-form .send {
    display: inline-block;
    padding: 14px 60px;
    background: #00eeff;
    border-radius: 40px;
    font-size: 18px;
    color: #081b29;
    letter-spacing: 1px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 0 5px #00eeff;
    transition: .5s ease;
    width: auto;
}

.contact-form .send:hover {
    box-shadow: 0 0 5px #00eeff, 0 0 25px #00eeff, 0 0 50px #00eeff;
}

/* Footer */
.last-text {
    width: 100%;
    text-align: center;
    padding: 25px 0;
    background: rgb(7, 5, 15);
    font-weight: 300;
    border-top:5px double #fff;
}

@media (max-width: 991px) {
    .header {
        padding: 20px 5%;
    }
    .navbar a {
        font-size: 20px;
        margin-left: 20px;
    }
    .Home {
        flex-direction: column; 
        padding: 130px 5% 50px;
        text-align: center;
        gap: 2rem;
    }
    .Home-content {
        order: 2;
        max-width: 100%;
    }
    .Home-img {
        order: 1; 
    }
    .Home-img img {
        max-width: 260px;
    }
    .About {
        padding: 80px 5%;
    }
    .About-text h2 {
        font-size: 45px;
    }
    .services, .skills, .projects, .contact {
        padding: 60px 5%;
    }
    .sub-title {
        font-size: 40px;
    }
    .skills-row {
        flex-direction: column;
        gap: 30px;
    }
    .skills-column {
        flex: 1 1 100%;
    }
}

/* شاشات الموبايل (أقل من 768px) - هنا كان الانفجار الكبير وقمت بضبطه تماماً */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
        position: relative; /* لتسهيل التصفح في الموبايل وما يغطي على المحتوى */
    }
    .navbar {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .navbar a {
        font-size: 16px;
        margin-left: 0;
        padding: 5px 10px;
    }
    .Home {
        padding-top: 40px;
        min-height: auto;
    }
    .Home-content h1 {
        font-size: 38px;
    }
    .Home-content h3 {
        font-size: 24px;
    }
    .Home-content p {
        font-size: 16px;
    }
    .About-text h2 {
        font-size: 35px;
    }
    .About-text h4 {
        font-size: 22px;
    }
    .About-text p {
        font-size: 15px;
    }
    .services-list, .projects-grid {
        grid-template-columns: 1fr; /* عرض كرت واحد في السطر الواحد لتفادي الضغط */
        grid-gap: 20px;
    }
    .contact {
        grid-template-columns: 1fr; /* جعل كرت الفورم وكامل النص تحت بعض */
        gap: 2rem;
    }
    .contact-text h2 {
        font-size: 40px;
        text-align: center;
    }
    .contact-text h4, .contact-text p {
        text-align: center;
    }
    .contact-list {
        display: inline-block;
        text-align: left;
        width: 100%;
        padding-left: 20px;
    }
    .contact-icons {
        text-align: center;
    }
    .contact-form form input, .contact-form form textarea {
        width: 100%;
    }
    .contact-form {
        text-align: center;
    }
    .timeline {
        padding-left: 20px;
    }
    .timeline-content h3 {
        font-size: 18px;
    }
    .quote-text {
        font-size: 20px;
    }
}





