﻿/*
   1. General 
       1.1 Components 
       1.2 Title 
   2. Header
   3. Landing
   4. Latest work
   5. About
   6. Skills
   7. Facts
   8. My Story
   9. Footer
   10. Animation
   11. Tab to top
   12. Theme setting box
   13. Dark
*/

/*=========================
    1. General CSS start
===========================*/
* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

:root {
    --main-color: #6082B6;
    --main-color-1: #fafafa;
    --main-color-2: #6082B6;
    --main-color-alt: #1787e0;
    --main-transition: 0.3s;
    --main-padding-top: 40px;
    --main-padding-bottom: 40px;
    --section-background: #fafafa;
    --section-background-2: #F2F2F2;
    --background: #ADD8E6;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Cairo", sans-serif;
}

a {
    text-decoration: none;
    -webkit-transition: 0.5s ease;
    transition: 0.5s ease;
}

    a:hover {
        text-decoration: none;
        -webkit-transition: 0.5s ease;
        transition: 0.5s ease;
    }

    a:focus,
    button:focus {
        outline: none;
    }

section,
.section-t-space {
    padding-top: 70px;
}

.section-b-space {
    padding-bottom: 70px;
}

.large-section {
    padding-top: 120px;
    padding-bottom: 120px;
}

.p-t-0 {
    padding-top: 0;
}

hr.style1 {
    width: 75px;
    height: 3px;
    margin-top: 13px;
    background-color: var(--theme-deafult);
    text-align: center;
}

.container {
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .container {
        width: 750px;
    }
}

@media (min-width: 992px) {
    .container {
        width: 970px;
    }
}

@media (min-width: 1200px) {
    .container {
        width: 1170px;
    }
}

.main-title {
    text-transform: uppercase;
    margin: 0 auto 80px;
    border: 2px solid black;
    padding: 10px 20px;
    font-size: 30px;
    width: fit-content;
    position: relative;
    z-index: 1;
    transition: var(--main-transition);
}

    .main-title::before,
    .main-title::after {
        content: "";
        width: 12px;
        height: 12px;
        background-color: var(--main-color);
        position: absolute;
        border-radius: 50%;
        top: 50%;
        transform: translateY(-50%);
    }

    .main-title::before {
        left: -30px;
    }

    .main-title::after {
        right: -30px;
    }

    .main-title:hover::before {
        z-index: -1;
        animation: left-move 0.5s linear forwards;
    }

    .main-title:hover::after {
        z-index: -1;
        animation: right-move 0.5s linear forwards;
    }

    .main-title:hover {
        color: white;
        border: 2px solid white;
        transition-delay: 0.5s;
    }

.spikes {
    position: relative;
}

    .spikes::after {
        content: "";
        position: absolute;
        right: 0;
        width: 100%;
        height: 30px;
        z-index: 1;
        background-image: linear-gradient(135deg, white 25%, transparent 25%), linear-gradient(225deg, white 25%, transparent 25%);
        background-size: 30px 30px;
    }

.dots {
    background-image: url("../imgs/dots.png");
    height: 186px;
    width: 204px;
    background-repeat: no-repeat;
    position: absolute;
}

.dots-up {
    top: 200px;
    right: 0;
}

.dots-down {
    bottom: 200px;
    left: 0;
}

/*=========================
    1. Components start
===========================*/

/* 1.1 Special Heading */
.special-heading {
    color: #ebeced;
    font-size: 50px;
    text-align: left;
    font-weight: 600;
    letter-spacing: -3px;
    margin-top: 0;
}

    .special-heading + p {
        margin: -30px 0 0;
        font-size: 15px;
        text-align: center;
        color: #797979;
    }

@media (max-width: 767px) {
    .special-heading {
        font-size: 40px;
    }

        .special-heading + p {
            margin-top: -20px;
        }
}

/* 1.2 Title */
.title-one {
    text-align: center;
    width: min(100%, 980px);
    margin: 60px auto;
    text-transform: uppercase;
    display: grid;
    grid-template-columns: 1fr max-content 1fr;
    gap: 15px;
    align-items: center;
    font-size: 14px;
    color: #555;
}

    .title-one::before,
    .title-one::after {
        content: "";
        border-top: 1px solid var(--main-color);
        border-bottom: 1px solid var(--main-color);
        height: 5px;
    }

/* 1.3 Main Heading */



.main-heading {
    text-align: center;
}

    .main-heading h2 {
        font-weight: normal;
        font-size: 40px;
        position: relative;
        margin-bottom: 70px;
        text-transform: uppercase;
    }

        .main-heading h2::before {
            content: "";
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            height: 2px;
            background-color: #333;
            bottom: -30px;
            width: 120px;
        }

        .main-heading h2::after {
            content: "";
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            width: 14px;
            height: 14px;
            border-radius: 50%;
            border: 2px solid #333;
            bottom: -38px;
            background-color: white;
        }

    .main-heading p {
        width: 550px;
        margin: 0 auto 100px;
        max-width: 100%;
        line-height: 2;
        color: #777;
    }
 

   

/*=========================
    2. Header start
===========================*/
.main-nav,
.mobile-social {
    display: none;
}

.header {
    background-color: var(--main-color);
    position: relative;
    -webkit-box-shadow: 0 0 10px #ddd;
    -moz-box-shadow: 0 0 10px #ddd;
    box-shadow: 0 0 10px #ddd;
}

    .header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        position: relative;
    }

    .header .logo {
        width: 60px;
    }
       /* .header .logo img {
            height: 40px;
        }
    */




.header .main-nav {
    display: flex;
}

@media (max-width: 767px) {
    .header .main-nav {
        margin: auto;
    }
}

.header .main-nav > li:hover .mega-menu {
    opacity: 1;
    z-index: 100;
    top: calc(100% + 1px);
}

.header .main-nav > li > a {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 72px;
    position: relative;
    color: white;
    padding: 0 30px;
    overflow: hidden;
    font-size: 16px;
    transition: var(--main-transition);
}

@media (max-width: 767px) {
    .header .main-nav > li > a {
        padding: 10px;
        font-size: 14px;
        height: 40px;
    }
}

.header .main-nav > li > a::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 4px;
    background-color: var(--main-color);
    top: 0;
    left: -100%;
    transition: var(--main-transition);
}

.header .main-nav > li > a:hover {
    color: var(--main-color);
    background-color: #fafafa;
}

    .header .main-nav > li > a:hover::before {
        left: 0;
    }

.header .mega-menu {
    position: absolute;
    width: 10%;
    padding: 30px;
    background-color: white;
    z-index: -1;
    display: flex;
    gap: 40px;
    top: calc(100% + 5px);
    opacity: 0;
    transition: top var(--main-transition), opacity var(--main-transition);
}

@media (max-width: 767px) {
    .header .mega-menu {
        flex-direction: column;
        gap: 0;
        padding: 5px;
    }
}

.header .mega-menu .image img {
    max-width: 100%;
}

@media (max-width: 991px) {
    .header .mega-menu .image {
        display: none;
    }
}

.header .mega-menu .links {
    min-width: 250px;
    flex: 1;
}

    .header .mega-menu .links li {
        position: relative;
    }

.header .link-social a li{
    color: white;
}

/*=========================
     Header End
===========================*/

/*=========================
    3. Landing start
===========================*/

.landing {
    background-size: cover;
    height: calc(100vh - 64px);
    position: relative;
    background-color: var(--main-color-1);
    padding-top: 250px;
}

    .landing .container {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 50px;
        text-align: center;
        bottom : -50px;
    }

    .landing .text {
        flex: 1;
    }

    .landing h1 {
        color: var(--main-color);
        font-size: 40px;
        margin: 0;
        letter-spacing: -2px;
    }

@media (max-width: 767px) {
    .landing .text h1 {
        font-size: 28px;
    }
}

.landing .text {
    transition: opacity 0.4s ease;
    margin-bottom: 150px;
}
    .landing .text .right,
    .landing .text .left {
        
    }
    .landing .text p {
        font-size: 20px;
        line-height: 1.7;
        margin: 5px 0 0;
        color: #666;
        max-width: 500px;
    }

@media (max-width: 991px) {
    .landing .text p {
        margin: 10px auto;
    }
}

@media (max-width: 767px) {
    .landing .text p {
        font-size: 18px;
    }
}

.image-wrapper {
    position: relative;
    width: 400px;
    height: auto;
    margin: 0 auto;
}

    .image-wrapper img {
        position: absolute;
        top: -250px;
        left: 0;
        width: 400px;
        height: auto;
        transition: opacity 0.4s ease, transform 0.5s ease; /* <-- مهم للتحريك */
    }


.side-img {
    opacity: 0; /* مخفية أولًا */
}

@media (max-width: 991px) {
    .landing .image {
        display: none;
    }
}

.landing .go-down {
    color: var(--main-color);
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    transition: var(--main-transition);
}

    .landing .go-down:hover {
        color: var(--main-color-alt);
    }

    .landing .go-down i {
        animation: bouncing 1.5s infinite;
    }

/*=========================
     Landing End
===========================*/

/*=========================
    4. Latest Work start
==========================*/

.latestWork {
    padding-top: var(--main-padding-top);
    padding-bottom: var(--main-padding-bottom);
    position: relative;
    background-color: var(--section-background);
}

    .latestWork .container {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 40px;
    }

    .latestWork .box {
        background-color: white;
        box-shadow: 0 12px 20px 0 rgb(0 0 0 / 13%), 0 2px 4px 0 rgb(0 0 0 / 12%);
        counter-increment: services;
        transition: var(--main-transition);
        position: relative;
    }

        .latestWork .box::before {
            content: "";
            left: 50%;
            transform: translateX(-50%);
            height: 3px;
            top: -3px;
            background-color: var(--main-color);
            position: absolute;
            width: 0;
            transition: var(--main-transition);
        }

        .latestWork .box:hover {
            transform: translateY(-10px);
        }

            .latestWork .box:hover::before {
                width: 100%;
            }

        .latestWork .box > img.box-image {
            display: block;
            margin: 30px auto 20px;
            width: 250px;
            height: 120px;
            object-fit: cover;
            border-radius: 10px;
        }

        .latestWork .box > h3 {
            text-align: center;
            margin: 20px 0 40px;
            font-size: 25px;
            color: var(--main-color);
        }

        .latestWork .box .info {
            padding: 15px;
            position: relative;
            background-color: #f9f9f9;
            text-align: right;
        }

            .latestWork .box .info::before {
                content: "0" counter(services);
                position: absolute;
                background-color: var(--main-color);
                color: white;
                left: 0;
                top: 0;
                height: 100%;
                width: 80px;
                font-size: 30px;
                font-weight: bold;
                display: flex;
                justify-content: center;
                align-items: center;
                padding-right: 15px;
            }

            .latestWork .box .info::after {
                content: "";
                position: absolute;
                background-color: #d5d5d5;
                top: 0;
                left: 80px;
                width: 50px;
                height: calc(100% + 0.4px);
                transform: skewX(-30deg);
            }

            .latestWork .box .info a {
                color: var(--main-color);
            }

/*=========================
     Latest Work End
==========================*/

/*==============================
    5. About, Skills, Facts, My Story start
==========================*/

/* About */
.about {
    min-height: auto;
    background-color: var(--section-background);
    background-image: url("/");
    background-size: cover;
    position: relative;
    padding-top: var(--main-padding-top);
    padding-bottom: var(--main-padding-bottom);
}

    .about .container {
        display: flex;
        align-items: center;
        padding-bottom: 40px;
    }

    .about .about-content {
        display: flex;
        align-items: center;
        gap: 30px;
        margin-top: -20px;
    }

    .about .about-text {
        flex: 1;
    }

        .about .about-text h4 {
            color: var(--main-color);
            font-size: 20px;
            margin: 0 0 30px 0;
        }



        .about .about-text p {
            font-size: 23px;
            line-height: 1.7;
            margin: 5px 0 0;
            color: #666;
            max-width: 500px;
        }





    .about .about-image img {
        max-width: 100%;
        width: 350px;
    }



/* Skills */

.our-skills {
    padding-top: var(--main-padding-top);
    padding-bottom: var(--main-padding-bottom);
    position: relative;
    background-color: var(--section-background-2);
}

    .our-skills .container {
        display: flex;
        align-items: center;
        margin-bottom:30px;
    }



.our-skills .skills {
    flex: 1;
    padding: 22px 40px;
}
.our-skills .main-heading  {
   
}
.our-skills .skill h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size:20px;
}
 

    .our-skills .skill h3 span {
        font-size: 10px;
        border: 1px solid #ccc;
        padding: 2px 4px;
        border-radius: 3px;
        color: var(--main-color);
    }

.our-skills .skill .the-progress {
    height: 10px;
    background-color: #eee;
    position: relative;
}

    .our-skills .skill .the-progress span {
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        background-color: var(--main-color);
    }
.our-skills .more {
    background-color: var(--main-color);
    color: white;
    padding: 15px 20px;
    display: block;
    width: fit-content;
    margin: 30px auto;
    text-decoration: none;
    margin-top:20px;
   
}

/* Facts */
.facts {
    min-height: 500px;
    padding-top: var(--main-padding-top);
    padding-bottom: var(--main-padding-bottom);
    position: relative;
    background-color: var(--section-background);
}

    .facts .container {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 50px;
        padding-bottom: 40px;
    }

    .facts h2 {
        padding-bottom: 30px;
    }

.facts-image {
    flex: 1;
}

    .facts-image img {
        max-width: 100%;
        width: 400px;
        border-radius: 10px;
        padding-left: 80px;
    }

.facts-list {
    flex: 1;
    list-style: disc inside;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* My Story */
.my-story {
    min-height: 450px;
    padding-top: var(--main-padding-top);
    padding-bottom: var(--main-padding-bottom);
    position: relative;
    background-color: var(--section-background-2);
}

    .my-story .container {
        display: flex;
        align-items: center;
    }

    .my-story .story-content {
        display: flex;
        align-items: center;
        gap: 30px;
    }

    .my-story .story-image img {
        max-width: 100%;
        width: 500px;
     
    }

    .my-story .story-text {
        flex: 1;
    }
        .my-story .story-text h2 {
           margin-bottom:50px;
            font-weight: 600;
            font-size: 40px;
            position: relative;
            text-transform: uppercase;
        }

.story-text p {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/*=========================
     About End
==========================*/

/*=========================
    6. My Story Page start
==========================*/
.myStory {
    background-color: var(--section-background);
}


    .myStory .container {
        width: 800px;
        margin: auto;
    }
/* Start Testimonials */

.testimonials h2 {
    padding-top: 60px;
    padding-bottom: 60px;
}

.testimonials .box {
    padding: 20px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

    .testimonials .box img {
        position: absolute;
        width: 100px;
        height: 100px;
        border-radius: 50%;
        border: 10px solid var(--section-background);
        position: static;
    }

    .testimonials .box .text {
        display: flex;
        flex-direction: column;
    }

    .testimonials .box h3 {
        margin: 0 0 10px;
    }

    .testimonials .box .title {
        color: #777;
        margin-bottom: 10px;
        display: block;
    }

.testimonials .preview-imgs img {
    max-width: 100%;
    padding-bottom: 40px;
    padding-top: 20px;
}

.testimonials .preview-imgs p {
}
/* End Testimonials */
.navigation-section h {
    padding-bottom: 40px;
    padding-top: 20px;
}

.navigation-section ul {
    list-style-type: disc;
    padding-left: 30px;
    padding-bottom: 40px;
    padding-top: 20px;
}

.navigation-section li {
    display: block;
    margin-bottom: 10px;
}

.navigation-section a {
    display: block;
    text-decoration: underline;
    font-size: 16px;
}


/* 1 — Intro */
.intro-section {
}

    .intro-section h3 {
        margin: 0;
        font-weight: bold;
        font-size: 20;
        color: var(--main-color);
        padding-bottom: 20px;
        padding-top: 20px;
        border-top: 1px solid #494949;
    }

    .intro-section p {
        line-height: 1.8;
        text-align: justify;
        margin-bottom: 15px;
    }

/* 2 — Tech */
.tech-section {
}

    .tech-section h3 {
    }

    .tech-section h4 {
    }

    .tech-section li {
    }

/* 3 — Facts */
.facts-section {
    display: block;
    margin-bottom: 30px;
}

    .facts-section h3 {
        margin: 0;
        font-weight: bold;
        font-size: 20px;
        color: var(--main-color);
        padding-top: 40px;
        padding-bottom: 40px;
        border-top: 1px solid #494949;
    }

    .facts-section li {
        display: block;
        margin-bottom: 6px;
    }



/* 5 — Hobbies */
.hobbies-section {
    display: block;
    margin-bottom: 30px;
}

    .hobbies-section h3 {
        margin: 0;
        font-weight: bold;
        font-size: 20px;
        color: #000000;
        padding-top: 20px;
        padding-bottom: 10px;
    }

    .hobbies-section li {
        display: block;
        margin-bottom: 6px;
    }

/* 6 — Alternate Career */
.alternate-career-section {
    display: block;
    margin-bottom: 40px;
    padding-top: 40px;
}

    .alternate-career-section h3 {
        margin: 0;
        font-weight: bold;
        font-size: 20px;
        color: #000000;
        padding-top: 20px;
        padding-bottom: 10px;
    }

    .alternate-career-section p {
        margin: 0;
    }

/* 7 — Favorite Quote */
.quote-section {
    display: block !important;
    width: 100% !important;
    margin: 0;
    padding: 0;
}

    .quote-section h3 {
        margin: 0;
        font-weight: bold;
        font-size: 20px;
        color: #000000;
        padding-top: 20px;
        padding-bottom: 10px;
    }

    .quote-section p {
        margin: 0;
    }

/* 8 — Recommended Books */
.books-section {
    display: block !important;
    width: 100% !important;
    margin: 0;
    padding: 0;
    padding-bottom: 50px;
}

    .books-section h3 {
        margin: 0;
        font-weight: bold;
        font-size: 20px;
        color: #000000;
        padding-top: 20px;
        padding-bottom: 10px;
    }

    .books-section li {
        display: block;
        margin-bottom: 6px;
    }

/* 9 — Journey Start */
.journey-start-section {
    display: block;
    margin-bottom: 30px;
}

    .journey-start-section h3 {
        margin: 0;
        font-weight: bold;
        font-size: 20px;
        color: var(--main-color);
        padding-bottom: 20px;
        padding-top: 30px;
        border-top: 1px solid #494949;
    }

    .journey-start-section p {
    }

/* 10 — Turning Point */
.turning-point-section {
    display: block !important;
    width: 100% !important;
    margin: 0;
    padding: 0;
}

    .turning-point-section h3 {
        color: #000000;
        padding-top: 20px;
        padding-bottom: 10px;
    }

    .turning-point-section p {
    }

/* 11 — Lessons Intro */
.lessons-section {
    display: block !important;
    width: 100% !important;
    margin: 0;
    padding: 0;
}

    .lessons-section h3 {
        margin: 0;
        font-weight: bold;
        font-size: 20px;
        color: #000000;
        padding-top: 20px;
        padding-bottom: 10px;
    }

    .lessons-section p {
    }

/* 12 — Less is More */
.less-is-more-section {
    display: block !important;
    width: 100% !important;
    margin: 0;
    padding: 0;
}

    .less-is-more-section h3 {
        margin: 0;
        font-weight: bold;
        font-size: 20px;
        color: #000000;
        padding-top: 20px;
        padding-bottom: 10px;
    }

    .less-is-more-section p {
    }

/* 13 — Keep Learning */
.keep-learning-section {
    display: block !important;
    width: 100% !important;
    margin: 0;
    padding: 0;
}

    .keep-learning-section h3 {
        margin: 0;
        font-weight: bold;
        font-size: 20px;
        color: #000000;
        padding-top: 20px;
        padding-bottom: 10px;
    }

    .keep-learning-section p {
    }

/* 14 — Market Yourself */
.market-yourself-section {
    display: block !important;
    width: 100% !important;
    margin: 0;
    padding: 0;
}

    .market-yourself-section h3 {
        margin: 0;
        font-weight: bold;
        font-size: 20px;
        color: #000000;
        padding-top: 20px;
        padding-bottom: 10px;
    }

    .market-yourself-section p {
    }

/* 15 — Cannon Quote */
.cannon-section {
    display: block !important;
    width: 100% !important;
    margin: 0;
    padding: 0;
}

    .cannon-section h3 {
        margin: 0;
        font-weight: bold;
        font-size: 20px;
        color: #000000;
        padding-top: 20px;
        padding-bottom: 10px;
    }

    .cannon-section p {
    }

/* 16 — Done Is Better Than Perfect */
.done-section {
    display: block !important;
    width: 100% !important;
    margin: 0;
    padding: 0;
}

    .done-section h3 {
        margin: 0;
        font-weight: bold;
        font-size: 20px;
        color: #000000;
        padding-top: 20px;
        padding-bottom: 10px;
    }

    .done-section p {
        padding-bottom: 100px;
    }
/*=========================
    My Story Page End
==========================*/

/*=========================
    7. Portfolio start
==========================*/

.portfolio {
    min-height: auto;
    background-color: var(--section-background-2);
}
    .portfolio .main-heading {
        padding-left: 300px;
    }
/*=========================
     Portfolio End
==========================*/
/*=========================
    8. Dev Notes start
==========================*/
.DevNotesHeader {
    min-height: auto;
    background-color: var(--section-background-2);
}
    .DevNotesHeader .main-heading {
        padding-left: 300px;
    }

/* Developer Notes */
.DevNotes {
    background-color: var(--section-background);
}

    .DevNotes .container {
        width: 800px;
        margin: auto;
        padding-left: 200px;
        padding-top: 50px;
        padding-bottom: 50px;
    }
 

    .DevNotes .testimonials h2 {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .DevNotes .testimonials .box {
        display: flex;
        align-items: center;
        gap: 20px;
        padding: 20px 150px 20px 20px; /* padding-right موحد */
        position: relative;
    }

        .DevNotes .testimonials .box img {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            border: 10px solid var(--section-background);
        }

        .DevNotes .testimonials .box .text {
            display: flex;
            flex-direction: column;
        }

        .DevNotes .testimonials .box h3 {
            margin: 0 0 10px;
        }

        .DevNotes .testimonials .box .title {
            color: #777;
            margin-bottom: 10px;
            display: block;
        }

    .DevNotes .testimonials .preview-imgs img {
        max-width: 100%;
        padding: 20px 0 40px 0;
    }

    .DevNotes .testimonials .preview-imgs p {
        /* يمكن إضافة تنسيق لاحقًا إذا لزم */
    }

/*=========================
     Dev Notes End
==========================*/

/*=========================
    9. Contact start
==========================*/

.contact {
    padding-top: var(--main-padding-top);
    padding-bottom: var(--main-padding-bottom);
    position: relative;
    background-color: var(--section-background);
}

    .contact .container {
        display: flex;
        align-items: center;
    }

    .contact .content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 30px;
    }

    .contact h2 {
        padding-bottom: 30px;
    }

    .contact .image img {
        max-width: 100%;
        width: 700px;
        padding-left: 300px;
    }

    .contact .text {
        flex: 1;
    }

    .contact .contact-social .social-links {
        padding-top: 40px;
        font-size: 30px;
        display: flex;
        align-items: center;
        gap: 30px;
    }

        .contact .contact-social .social-links a {
            display: flex;
            align-items: center;
            justify-content: flex-start !important; /* إلغاء الـ space-between */
            gap: 0px; /* إلغاء الـ gap */
        }

            .contact .contact-social .social-links a i {
                margin-right: 35px; /* قرب الأيقونة من النص */
            }



    .contact .contact-social a i {
        left: 10px;
        top: 0;
        width: 30px;
        transition: 0.3s;
    }

    .contact .contact-social .linkedin {
        color: #0077b5;
    }

    .contact .contact-social .github {
        color: #181717;
    }

    .contact .contact-social span {
        font-size: 25px;
        padding-right: 30px;
    }


    .contact p {
        display: -webkit-box;
        -webkit-line-clamp: 6;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

/* Send Message Section */
.send-message {
    padding: 50px 0;
    background-color: var(--section-background-2);
}

    .send-message h3 {
        padding-bottom: 30px;
        color: var(--main-color);
    }

    .send-message .form {
        width: 100%;
        padding-top: 30px;
    }

        .send-message .form .content form {
            display: flex;
            flex-wrap: wrap;
            gap: 30px;
            width: 100%;
        }

.left-inputs {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.right-message {
    flex: 2;
}

    .left-inputs .input,
    .right-message textarea {
        width: 100%;
        margin-bottom: 20px;
        padding: 15px;
        border: none;
        border-bottom: 1px solid #ccc;
        background-color: #f9f9f9;
        caret-color: var(--main-color);
    }

    .right-message textarea {
        height: 240px;
        resize: none;
    }

form input[type="submit"] {
    background-color: var(--main-color);
    color: white;
    padding: 20px 35px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    flex-basis: 100%;
    width: max-content;
    margin-left: auto;
    margin-top: 10px;
}

/*=========================
     Contact End
==========================*/

/*=========================
    10. Details start
==========================*/

/* Start Details */
.details {
    min-height: auto;
    background-color: var(--section-background);
    background-image: url("/");
    background-size: cover;
    position: relative;
}

    .details::before {
        content: "";
        position: absolute;
        left: 0;
        top: -40px;
        width: 100%;
        height: 100%;
        background-color: #ececec;
        z-index: -1;
        transform: skewY(-6deg);
        transform-origin: top left;
    }

    .details .container {
        display: flex;
        align-items: center;
        padding-bottom: 40px;
    }

    .details .details-content {
        display: flex;
        align-items: center;
        gap: 30px;
        padding-top: -20px;
    }

        .details .details-content .image img {
            position: relative;
            width: 600px;
            animation: up-and-down 5s linear infinite;
        }

        .details .details-content .text {
            flex-basis: calc(100% - 500px);
        }

            .details .details-content .text p:first-of-type {
                font-weight: bold;
                line-height: 2;
                margin-bottom: 50px;
            }

            .details .details-content .text hr {
                width: 50%;
                display: inline-block;
                border-color: var(--main-color);
            }

            .details .details-content .text p:last-of-type {
                font-size: 23px;
                line-height: 1.7;
                margin: 5px 0 0;
                color: #666;
                max-width: 500px;
            }

            .details .details-content .text a {
                font-size: 23px;
                color: var(--main-color);
            }

/* Landing text */
.landing .text {
    flex: 1;
}

    .landing .text h1 {
        font-size: 40px;
        margin: 0;
        letter-spacing: -2px;
    }

    .landing .text p {
        /* إضافة تنسيقات لاحقة إذا لزم */
    }

/*=========================
     Details End
==========================*/

/*=========================
    11. Footer start
==========================*/

.footer-wrapper ul {
    display: flex;
}

    .footer-wrapper ul li a {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0 20px;
        font-size: 13px;
        color: #fff;
    }

.header .link-social a {
    margin-right: 10px;
    color: white;
    font-size: 18px;
    transition: color 0.3s ease;
}

.link-social a#lnkLinkedin:hover {
    color: #0077b5;
}

.link-social a#lnkGitHub:hover {
    color: #171515;
}

.link-social a#lnkGamil:hover {
    color: #d44638;
}

.contact-info li {
    position: relative;
    padding-left: 25px;
    line-height: 24px;
}

.contact-info i {
    position: absolute;
    left: 0;
    top: 2px;
}

.footer-bottom-bar {
    background: black;
    text-align: center;
    padding: 15px 0;
    font-size: 13px;
    color: #777;
}

.dark .footer-wrapper ul li a.active,
.footer-wrapper ul li a:hover {
    color: var(--main-color-2) !important;
}

/*=========================
     Footer End
==========================*/

/*=============================
    12. Animation work start
==============================*/

@keyframes bouncing {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

@keyframes left-move {
    0% {
        left: -30px;
    }

    100% {
        left: -50px;
    }
}

@keyframes right-move {
    0% {
        right: -30px;
    }

    100% {
        right: -50px;
    }
}

/*=============================
     Animation work End
==============================*/

/*=========================
    13. Tab to top  start
==========================*/

.tap-top {
    width: 50px;
    height: 50px;
    border-radius: 100%;
    position: fixed;
    bottom: 50px;
    right: 30px;
    z-index: 8;
    display: none;
    color: #fff;
    text-align: center;
    background: #6082B6;
    border: none;
    font-size: 22px;
    padding: 7px;
    cursor: pointer;
}

    .tap-top.top-cls {
        bottom: 130px;
    }

/*=========================
    Tab to top  End
==========================*/

/*=============================
    14. Theme setting box start
==============================*/

.dark-light {
    position: fixed;
    right: 0;
    width: 40px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    text-decoration: none;
    border-radius: 5px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    background-color: #f7f7f7;
    box-shadow: 0px 0px 5px 0px rgba(154, 154, 154, 0.54);
    top: calc(50% + 34px);
    cursor: pointer;
}

/*=============================
    Theme setting box End
==============================*/

/*=========================
    15. Dark start
==========================*/

:root .dark {
    --main-color: black;
    --main-color-2: white;
    --main-color-alt: #1787e0;
    --main-transition: 0.3s;
    --main-padding-top: 100px;
    --main-padding-bottom: 100px;
    --section-background: #808080;
    --section-background-2: #36454F;
    --background: #919191;
}

.dark h1 {
    color: #301934;
}

.dark h2 {
    color: #f1f3f5;
}

.dark h3 {
    color: #eaedef;
}

.dark h4 {
    color: #e7eaec;
}

.dark h5 {
    color: #dee2e6;
}

.dark h6 {
    color: #cfd4da;
}

.dark p {
    color: #cfd4da;
}

.dark li {
    color: #301934;
}

.dark a {
    color: #301934;
}

.dark .logo img {
    content: url("/PHOTO-2025-10-31-09-17-38-removebg-preview.png");
}

.dark .landing {
    height: calc(100vh - 64px);
    background-color: #E5E4E2;
    background-image: url("/");
    background-size: cover;
    position: relative;
}

.dark .tap-top {
    width: 50px;
    height: 50px;
    border-radius: 100%;
    position: fixed;
    bottom: 50px;
    right: 30px;
    z-index: 8;
    display: none;
    color: #fff;
    text-align: center;
    background: var(--main-color);
    font-size: 22px;
    padding: 7px;
    cursor: pointer;
}

.dark .link-social a {
    margin-right: 10px;
    color: white;
    font-size: 18px;
    transition: color 0.3s ease;
}

    .dark .link-social a#lnkGitHub:hover {
        color: #DA70D6;
    }
    .dark .link-social a#lnkLinkedin:hover {
        color: #005986;
    }

.dark .footer-bottom-bar {
    background: #C4C4C4;
    text-align: center;
    padding: 15px 0;
    font-size: 13px;
    color: black;
}

    .dark .footer-bottom-bar p {
        color: black;
    }

.dark .footer-wrapper ul li a {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    font-size: 13px;
    color: black;
}

    .dark .footer-wrapper ul li a.active,
    .footer-wrapper ul li a:hover {
        color: var(--main-color-2);
    }

/* Gallery / Discount */
.gallery-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

    .gallery-container img {
        width: 120px;
        height: 80px;
        object-fit: cover;
        opacity: 0.4;
        border-radius: 6px;
        transition: 0.3s;
        cursor: pointer;
    }

        .gallery-container img:hover,
        .gallery-container img.active {
            opacity: 1;
        }

        .gallery-container img.active {
            transform: scale(1.05);
        }

/*=========================
       Dark End
=========================*/



/*========================
    
=========================*/

/* =========== Mobile (max-width: 767px) =========== */
@media (max-width: 767px) {

    /* ================= Header ================= */
    .header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .header .logo {
        width: 60px;
    }

    .header .main-nav,
    .header .link-social {
        display: none;
        flex-direction: column;
        background: var(--background);
        width: 100vw;
        padding: 10px 0;
        box-sizing: border-box;
        border-radius: 0 0 10px 10px;
        z-index: 1000;
    }

        .header .main-nav.show,
        .header .link-social.show {
            display: flex !important;
        }

    .header .toggle-menu {
        display: block;
        font-size: 28px;
        cursor: pointer;
        color: #fff;
    }

    .header ul li a {
        padding: 15px !important;
    }

    .header .main-nav {
        order: 1;
    }

    .header .link-social {
        order: 2;
        justify-content: center;
        gap: 15px;
        padding: 15px;
        font-size: 22px;
        flex-direction: row;
    }

    .text p,
    .footer-wrapper ul,
    .nav-social {
        display: none;
    }

    .mobile-social {
        display: flex;
        justify-content: center;
        gap: 20px;
        padding: 15px;
        font-size: 22px;
    }

        .mobile-social a {
            color: white;
        }


    /* ================= Landing ================= */
    .landing .image-wrapper {
        position: relative;
        width: 200px;
        margin: 0 auto;
    }

        .landing .image-wrapper img {
            position: absolute;
            top: -150px;
            width: 200px;
        }

    .landing .text h1 {
        font-size: 10px;
        letter-spacing: 0.7px;
    }

    .landing .text .left {
        margin-right: -50px;
    }

    .landing .text .right {
        margin-left: -60px;
    }

    .footer-wrapper p {
        padding-left: 50px;
    }
    .landing .go-down {
        bottom: 120px !important;
    }

    .latestWork .container {
        display: block;
    }
        /* ================= About ================= */
        .about .about-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }

        .about h2 {
            margin: 0 auto 10px;
            padding-bottom: 30px;
            text-align: center;
        }

        .about .about-text h4 {
            font-size: 16px;
            margin-bottom: 10px;
        }

        .about .about-text p {
            font-size: 14px;
            line-height: 1.6;
            margin-bottom: 15px;
        }

        .about .about-image img {
            width: 70%;
            max-width: 280px;
            margin-top: 10px;
        }

        .gallery-container {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
            margin-top: 20px;
        }

            .gallery-container img {
                width: 100%;
                border-radius: 6px;
            }
        /* ================= Skills ================= */
        .our-skills .container {
            flex-direction: column;
        }

        .our-skills .skills {
            width: 100%;
            padding: 15px 20px;
        }

        .our-skills .skill h3 {
            font-size: 16px;
        }

            .our-skills .skill h3 span {
                font-size: 12px;
            }

        .our-skills .main-heading h2 {
            font-size: 22px;
        }

        .our-skills h2 {
            font-size: 18px;
        }
        /* ================= Facts ================= */
        .facts {
            display: flex;
            flex-direction: column;
            text-align: center;
            align-items: center;
            padding: 10px;
        }

            .facts .container {
                display: flex;
                flex-direction: column;
                align-items: center;
            }

        .facts-image {
            order: 2;
            margin-top: 15px;
            margin-left: -60px;
        }

            .facts-image img {
                width: 100%;
                max-width: 240px;
            }

        .facts-list {
            order: 1;
            padding: 0;
            margin: 0;
            list-style: none;
        }

            .facts-list h2 {
                margin: 20px 0 10px;
                text-align: center;
            }

            .facts-list li {
                font-size: 14px;
                line-height: 1.6;
                margin-bottom: 8px;
            }
        /* ================= My Story ================= */
        .my-story .story-content {
            display: flex;
            flex-direction: column;
            text-align: center;
            align-items: center;
            padding: 10px;
        }

        .my-story .story-text {
            order: 1;
        }

        .my-story .story-image {
            order: 2;
            margin-top: 15px;
        }

            .my-story .story-image img {
                width: 100%;
                max-width: 260px;
            }

        .my-story .story-text h2 {
            font-size: 24px;
        }

        .my-story .story-text .main-heading {
            font-size: 18px;
            padding-bottom: 20px;
            margin-right: 50px;
        }

        .my-story .story-text p {
            font-size: 14px;
            line-height: 1.7;
            margin-bottom: 15px;
        }

        .my-story .story-text .read-more {
            font-size: 14px;
            padding: 8px 14px;
            display: inline-block;
        }
        /* ================= Portfolio ================= */
        .portfolio .main-heading {
            text-align: center;
            padding: 0 15px;
        }

            .portfolio .main-heading h2 {
                font-size: 22px;
                margin-bottom: 50px;
            }

            .portfolio .main-heading p {
                font-size: 13px;
                line-height: 1.6;
                max-width: 320px;
                margin: 0 auto 30px;
                overflow-wrap: break-word;
            }
        /* ================= Details ================= */
        .details .container {
            flex-direction: column;
            text-align: center;
            padding: 20px 10px;
        }

        .details .details-content {
            flex-direction: column;
            gap: 20px;
        }

        .details .image img {
            width: 100%;
            max-width: 320px;
            margin: 0 auto;
        }

        .details .text {
            order: 2;
            position: relative;
            flex-basis: 100% !important;
            z-index: 10;
        }

            .details .text p {
                padding: 0 10px;
            }

                .details .text p:first-of-type,
                .details .text p:last-of-type {
                    font-size: 18px;
                    line-height: 1.7;
                }

            .details .text hr {
                width: 70%;
                margin: 15px auto;
            }

            .details .text a {
                display: block;
                margin: 20px auto 0;
                font-size: 20px;
                width: fit-content;
            }
        /* ================= Developer Notes ================= */
        .DevNotesHeader .main-heading {
            text-align: center;
            padding: 10px;
        }

        .DevNotesHeader h2 {
            font-size: 22px;
            margin-bottom: 50px;
        }

        .DevNotesHeader p {
            font-size: 14px;
            line-height: 1.6;
            max-width: 320px;
            margin: 0 auto 30px;
        }

        .DevNotes .testimonials {
            display: flex;
            flex-direction: column;
            gap: 20px;
            padding: 0 10px;
        }

        .DevNotes .preview-imgs {
            width: 100%;
            max-width: 320px;
            text-align: center;
            margin-left: -110px;
        }

            .DevNotes .preview-imgs img {
                width: 100%;
                border-radius: 10px;
                margin-bottom: 8px;
                margin-left: -110px;
            }

            .DevNotes .preview-imgs h3 {
                font-size: 16px;
                margin-bottom: 5px;
                word-wrap: break-word;
                margin-left: -150px;
            }

            .DevNotes .preview-imgs p {
                font-size: 13px;
                line-height: 1.5;
                margin-left: -120px;
                word-wrap: break-word;
            }

        .DevNotes .box {
            margin-left: -200px;
        }
        /* ================= Contact ================= */
        .contact .content {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }

        .contact h2 {
            font-size: 22px;
        }

        .contact p {
            font-size: 14px;
            line-height: 1.6;
            max-width: 320px;
            margin: 0 auto;
        }

        .contact-social .social-links {
            display: flex;
            flex-direction: row; /* الأيقونات بجانب بعضها */
            justify-content: center;
            gap: 20px;
            margin-bottom: 15px;
            margin-left: -15px;
        }

            .contact-social .social-links a {
                display: flex;
                align-items: center;
                gap: 10px;
                text-decoration: none;
                font-size: 18px;
                color: inherit;
            }

        .contact .contact-social .social-links a i {
            margin-right: 10px; /* قرب الأيقونة من النص */
        }

        .contact .contact-social span {
            font-size: 18px;
        }

        .contact .image {
        }

            .contact .image img {
                max-width: 80%;
                width: 400px;
                padding-left: 0px;
            }
        /* Send Message Section */
        .send-message .form .content #smsForm {
            display: flex;
            flex-direction: column; /* ترتيب عمودي */
            gap: 15px;
            width: 100%;
        }

        .send-message .left-inputs,
        .send-message .right-message {
            width: 100%; /* عرض كامل */
        }

        .send-message #smsForm .input {
            display: block;
            width: 100%;
            padding: 15px;
            border: none;
            border-bottom: 1px solid #ccc;
            background-color: #f9f9f9;
            caret-color: var(--main-color);
        }

        .send-message .right-message textarea {
            height: 200px;
            resize: none;
        }

        .send-message input[type="submit"] {
            width: 100%; /* زر عرض كامل */
            padding: 12px;
            font-size: 16px;
            margin-top: 10px;
            cursor: pointer;
        }
        /* ================= My Story (Long Page) ================= */
        .myStory .container {
            padding: 15px;
            width: 100%;
        }

        .myStory h2 {
            font-size: 25px;
            font-weight: 600;
            text-transform: uppercase;
        }

        .myStory h4 {
            font-size: 20px;
            color: #666;
            font-weight: 250;
        }

        .myStory p {
            font-size: 16px;
            line-height: 1.8;
        }

        .navigation-section ul {
            width: 100%;
            padding-left: 0;
        }

        .navigation-section li {
            width: 100%;
            margin-bottom: -20px;
        }

        .navigation-section a {
            width: 100%;
            display: block;
            padding: 12px;
        }

        .myStory h3 {
            font-size: 20px;
            margin-top: -10px;
        }

        .myStory .done-section .last p {
            margin: 60px 0;
        }
    }



/* =========== Desktop =========== */
@media (min-width: 768px) {
    .header .toggle-menu {
        display: none;
    }
}
