/* Start General Rules */

html {
    /* scroll-behavior: smooth; */
    overflow-x: hidden;
}

:root {
    --main-color: #38ada9;
    --secondary-color: #079992;
    --main-padding: 50px;
}

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: clip;
    position: relative;
}

.dark-light-noti {
    position: fixed;
    width: 200px;
    padding: 20px;
    color: #fff;
    background: #1f1f1fcd;
    text-align: center;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
    bottom: 20px;
    left: 50%;
    transform: translate(-50%, -100%);
    -webkit-transform: translate(-50%, -100%);
    -moz-transform: translate(-50%, -100%);
    -ms-transform: translate(-50%, -100%);
    -o-transform: translate(-50%, -100%);
    z-index: 200;
    user-select: none;
    opacity: 0;
    transition: 0.5s;
    -webkit-transition: 0.5s;
    -moz-transition: 0.5s;
    -ms-transition: 0.5s;
    -o-transition: 0.5s;
}

.dark-light-noti.anim-show {
    opacity: 1;
    transform: translate(-50%, -30%);
    -webkit-transform: translate(-50%, -30%);
    -moz-transform: translate(-50%, -30%);
    -ms-transform: translate(-50%, -30%);
    -o-transform: translate(-50%, -30%);
}

/* End General Rules */

/* Start Components */

.container {
    padding-left: 20px;
    padding-right: 20px;
    margin-left: auto;
    margin-right: auto;
}

/* Small Devices, Tablets (≥768px) */
@media (min-width: 768px) {
    /* Styles for small devices and up */
    .container {
        width: 750px;
    }
}

/* Medium Devices, Desktops (≥992px) */
@media (min-width: 992px) {
    /* Styles for medium devices and up */
    .container {
        width: 970px;
    }
}

/* Large Devices, Large Desktops (≥1200px) */
@media (min-width: 1200px) {
    /* Styles for large devices and up */
    .container {
        width: 1170px;
    }
}

.special-heading {
    color: #eaeaea;
    font-size: 60px;
    font-weight: 900;
    text-align: center;
    user-select: none;
}

.special-heading + p {
    color: #1f1f1f;
    font-size: 30px;
    text-align: center;
    margin-top: -30px;
    user-select: none;
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .special-heading {
        font-size: 50px;
    }
    .special-heading + p {
        font-size: 30px;
        margin-top: -20px;
    }
}

@media (max-width: 767px) {
    .special-heading {
        font-size: 40px;
    }
    .special-heading + p {
        font-size: 20px;
        margin-top: -20px;
    }
}

/* End Components */

/* Start Landing */
.landing {
    background-image: url(../images/background-image.png);
    background-position: center 100%;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh;
    padding-top: 20px;
}

.landing nav {
    max-width: 100%;
    display: flex;
    padding: 10px 0;
    border-radius: 50px;
    -webkit-border-radius: 50px;
    -moz-border-radius: 50px;
    -ms-border-radius: 50px;
    -o-border-radius: 50px;
    justify-content: space-between;
    align-items: center;
    align-content: center;
    z-index: 23;
    position: relative;
}

.landing nav .logo {
    max-width: 130px;
    display: flex;
    align-content: center;
}

.landing nav .logo img {
    width: 100%;
}

@media (max-width: 991px) {
    .landing nav .logo img {
        width: 85%;
    }
}

.landing nav ul,
.mobile-ul ul {
    list-style: none;
    margin: 0;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: center;
}

.landing nav ul li a,
.mobile-ul ul li a {
    color: #fff;
    text-decoration: none;
}

.landing nav ul li:not(.contact-btn-li) a,
.mobile-ul ul li:not(.contact-btn-li) a {
    border: 2px solid #fff;
    border-radius: 30px;
    -webkit-border-radius: 30px;
    -moz-border-radius: 30px;
    -ms-border-radius: 30px;
    -o-border-radius: 30px;
}

.landing nav ul li.dark-light i,
.mobile-ul ul li.dark-light i {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px 8px;
    background-color: #fff;
    border: 2px solid #fff;
    color: #1f1f1f;
    font-size: 18px;
    cursor: pointer;
    border-radius: 50px;
    -webkit-border-radius: 50px;
    -moz-border-radius: 50px;
    -ms-border-radius: 50px;
    -o-border-radius: 50px;
    width: 55px;
    transition: 0.5s;
    -webkit-transition: 0.5s;
    -moz-transition: 0.5s;
    -ms-transition: 0.5s;
    -o-transition: 0.5s;
}

.landing nav ul li.dark-light i:hover,
.mobile-ul ul li.dark-light i:hover {
    color: #fff;
    background-color: transparent;
}

.landing nav ul li.dark-light,
.mobile-ul ul li.dark-light {
    position: relative;
}

.landing nav ul li a,
.mobile-ul ul li a,
.landing nav ul li .color-list {
    transition: 0.5s;
    -webkit-transition: 0.5s;
    -moz-transition: 0.5s;
    -ms-transition: 0.5s;
    -o-transition: 0.5s;
    display: block;
    padding: 5px 12px;
}

.landing nav ul li:not(.contact-btn-li):hover a,
.mobile-ul ul li:not(.contact-btn-li):hover a {
    background-color: #fff;
    color: #1f1f1f;
}

.landing nav .contact-btn {
    margin-right: 1px;
    border: 2px solid var(--main-color);
    background-color: var(--main-color);
    border-radius: 30px;
    -webkit-border-radius: 30px;
    -moz-border-radius: 30px;
    -ms-border-radius: 30px;
    -o-border-radius: 30px;
    display: block;
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
    -webkit-transition: 0.3s;
    -moz-transition: 0.3s;
    -ms-transition: 0.3s;
    -o-transition: 0.3s;
}

.landing nav .contact-btn:hover {
    background-color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

/* Mobile Screen Menu */
.landing nav .mobile-menu {
    display: none;
    position: relative;
    z-index: 3 !important;
}

.landing nav .mobile-menu .icon {
    display: flex;
    flex-direction: column;
    gap: 7px;
    justify-content: center;
    align-items: flex-end;
    width: 45px;
    transition: 0.3s;
    -webkit-transition: 0.3s;
    -moz-transition: 0.3s;
    -ms-transition: 0.3s;
    -o-transition: 0.3s;
    cursor: pointer;
    padding: 8px;
}

.landing nav .mobile-menu .icon:hover {
    background-color: #ececec13;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
}

.mobile-menu .icon span {
    display: block;
    width: 90%;
    height: 3.2px;
    border-radius: 5px;
    background-color: #fff;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
    transition: 0.3s;
    -webkit-transition: 0.3s;
    -moz-transition: 0.3s;
    -ms-transition: 0.3s;
    -o-transition: 0.3s;
}

.mobile-menu .icon span:nth-child(2) {
    align-self: flex-start;
}

.mobile-ul {
    position: fixed;
    display: none;
    z-index: 100 !important;
    padding: 25px;
    width: 75%;
    height: 100vh;
    right: 0;
    top: 0;
    background-color: #424242a2;
    z-index: 22;
    justify-content: center;
    align-items: center;
    /*box-shadow: 0 10px 30px #000;
    */
    transition: 0.3s;
    transition:
        transform 0.5s ease-in-out,
        opacity 0.5s ease-in-out;
    -webkit-transition:
        transform 0.5s ease-in-out,
        opacity 0.5s ease-in-out;
    -moz-transition:
        transform 0.5s ease-in-out,
        opacity 0.5s ease-in-out;
    -o-transition:
        transform 0.5s ease-in-out,
        opacity 0.5s ease-in-out;
    -ms-transition:
        transform 0.5s ease-in-out,
        opacity 0.5s ease-in-out;
    transform: translateX(200%);
    -webkit-transform: translateX(200%);
    -moz-transform: translateX(200%);
    -ms-transform: translateX(200%);
    -o-transform: translateX(200%);
    opacity: 0;
    list-style: none;
    backdrop-filter: blur(5px);
}

.mobile-ul.active {
    opacity: 1;
    transform: translateX(0);
    -webkit-transform: translateX(0);
    -moz-transform: translateX(0);
    -ms-transform: translateX(0);
    -o-transform: translateX(0);
}

.mobile-ul.active::after {
    transform: translateY(0) rotate(45deg);
    -webkit-transform: translateY(0) rotate(45deg);
    -moz-transform: translateY(0) rotate(45deg);
    -ms-transform: translateY(0) rotate(45deg);
    -o-transform: translateY(0) rotate(45deg);
}

.x-button {
    position: fixed;
    z-index: 105;
    display: flex;
    flex-direction: column;
    gap: 7px;
    justify-content: center;
    align-items: flex-end;
    width: 45px;
    transition: 0.3s;
    -webkit-transition: 0.3s;
    -moz-transition: 0.3s;
    -ms-transition: 0.3s;
    -o-transition: 0.3s;
    cursor: pointer;
    padding: 8px;
    top: 30px;
    right: 20px;
}

.x-button span {
    display: block;
    width: 90%;
    height: 3.2px;
    border-radius: 5px;
    background-color: #fff;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
    transition: 0.3s;
    -webkit-transition: 0.3s;
    -moz-transition: 0.3s;
    -ms-transition: 0.3s;
    -o-transition: 0.3s;
}
.x-button span:nth-of-type(1) {
    transform: rotate(-45deg) translate(-7px, 7px);
    -webkit-transform: rotate(-45deg) translate(-7px, 7px);
    -moz-transform: rotate(-45deg) translate(-7px, 7px);
    -ms-transform: rotate(-45deg) translate(-7px, 7px);
    -o-transform: rotate(-45deg) translate(-7px, 7px);
}

.x-button span:nth-of-type(2) {
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
}

.mobile-ul ul {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    gap: 10px;
    width: 100%;
}

.mobile-ul ul li {
    width: 80%;
}

.mobile-ul ul li a {
    padding: 5px 12px;
    transition: 0.3s;
    -webkit-transition: 0.3s;
    -moz-transition: 0.3s;
    -ms-transition: 0.3s;
    -o-transition: 0.3s;
    display: block;
    margin-bottom: 15px;
    text-align: center;
}

.mobile-ul ul li .contact-btn-mobile {
    margin: 0 auto 15px;
    text-align: center;
    padding: 5px 12px;
    background-color: var(--main-color);
    border-radius: 30px;
    -webkit-border-radius: 30px;
    -moz-border-radius: 30px;
    -ms-border-radius: 30px;
    -o-border-radius: 30px;
    display: block;
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
    -webkit-transition: 0.3s;
    -moz-transition: 0.3s;
    -ms-transition: 0.3s;
    -o-transition: 0.3s;
}

.mobile-ul ul li.dark-light i {
    width: 100%;
    text-align: center;
}

.mobile-ul ul li .contact-btn-mobile:hover {
    background-color: var(--secondary-color);
}

.landing .landing-content {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: calc(100vh - 81px);
}

.landing .landing-content .row {
    display: flex;
}

.landing .landing-content .row.name {
    font-size: 40px;
    font-weight: 600;
    color: #fff;
    justify-content: flex-end;
    align-items: center;
}

.landing .landing-content .row.name > span {
    color: var(--main-color);
    display: inline-block;
    margin-left: 10px;
}

.landing-content .row.carrier {
    flex-direction: column;
    color: #fff;
    justify-content: flex-end;
    align-items: flex-start;
}

.landing-content .row.carrier h1 {
    font-size: 65px;
    font-weight: 700;
    margin: 0;
}
.landing-content .row.carrier p {
    font-size: 50px;
    font-weight: 600;
    /* letter-spacing: 10px; */
    margin: 0;
}

.landing-content .row.scroll {
    display: flex;
    justify-content: flex-end;
}

.landing-content .row.scroll .scroll-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
}

.landing-content .row.scroll .scroll-btn i {
    font-size: 25px;
    transition: 0.3s;
    -webkit-transition: 0.3s;
    -moz-transition: 0.3s;
    -ms-transition: 0.3s;
    -o-transition: 0.3s;
    animation: scrolldown 1s infinite;
    -webkit-animation: scrolldown 1s infinite;
}

@media (max-width: 767px) {
    .landing .landing-content .row.name {
        justify-content: center;
        font-size: 25px;
    }

    .landing .landing-content .row.carrier h1 {
        font-size: 50px;
    }
    .landing .landing-content .row.carrier p {
        font-size: 30px;
    }
}

@media (max-width: 992px) {
    .landing nav > ul {
        display: none;
    }

    .landing nav .contact-btn {
        display: none;
    }
    .landing nav .mobile-menu {
        display: block;
    }
    .mobile-ul {
        display: flex;
    }
}

@keyframes scrolldown {
    0% {
        transform: translateY(0px);
        -webkit-transform: translateY(0px);
        -moz-transform: translateY(0px);
        -ms-transform: translateY(0px);
        -o-transform: translateY(0px);
    }
    50% {
        transform: translateY(10px);
        -webkit-transform: translateY(10px);
        -moz-transform: translateY(10px);
        -ms-transform: translateY(10px);
        -o-transform: translateY(10px);
    }
    100% {
        transform: translateY(0);
        -webkit-transform: translateY(0);
        -moz-transform: translateY(0);
        -ms-transform: translateY(0);
        -o-transform: translateY(0);
    }
}

/* End Landing */

/* Start About Me */

.about-me {
    padding-top: var(--main-padding);
    padding-bottom: var(--main-padding);
}

.about-me-content {
    display: flex;
    padding: 50px;
    justify-content: center;
    align-items: center;
}

.about-me-content .image {
    max-width: 300px;
    flex: 1;
    text-align: center;
    position: relative;
}

.about-me-content .image::before {
    content: "";
    height: 80%;
    width: 2px;
    background-color: #1f1f1f;
    display: block;
    position: absolute;
    top: 10%;
    left: -65px;
}

.about-me-content .image img {
    width: 100%;
}

.about-me-content .text {
    flex: 2;
    padding: 0 100px 0 0;
}

.about-me-content .text p {
    font-size: 20px;
    line-height: 2;
}

.about-me-content .text .buttons {
    display: flex;
    gap: 15px;
}

.about-me-content .text .buttons .hire,
.about-me-content .text .buttons .see-projects {
    padding: 5px 15px;
    font-size: 18px;
    text-align: center;
    border-radius: 50px;
    -webkit-border-radius: 50px;
    -moz-border-radius: 50px;
    -ms-border-radius: 50px;
    -o-border-radius: 50px;
    transition: 0.5s;
    -webkit-transition: 0.5s;
    -moz-transition: 0.5s;
    -ms-transition: 0.5s;
    -o-transition: 0.5s;
    cursor: pointer;
    text-decoration: none;
}

.about-me-content .text .buttons .hire {
    border: 2px solid #1f1f1f;
    color: #fff;
    background-color: #1f1f1f;
}

.about-me-content .text .buttons .hire:hover {
    border: 2px solid #1f1f1f;
    color: #1f1f1f;
    background-color: #fff;
}

.about-me-content .text .buttons .see-projects {
    border: 2px solid #1f1f1f;
    color: #1f1f1f;
}

.about-me-content .text .buttons .see-projects:hover {
    border: 2px solid #1f1f1f;
    color: #fff;
    background-color: #1f1f1f;
}

@media (max-width: 991px) {
    .about-me-content {
        flex-direction: column;
        justify-content: center;
        padding: 20px 0 0;
    }
    .about-me-content .image {
        display: none;
    }
    .about-me-content .text {
        padding: 10px;
        text-align: center;
    }
    .about-me-content .text p {
        font-size: 17px;
        margin-bottom: 30px;
    }
    .about-me-content .buttons,
    .contact-me .buttons {
        justify-content: center;
    }
}

@media (max-width: 464px) {
    .about-me-content .text .buttons,
    .contact-me .buttons {
        max-width: 100%;
        flex-direction: column;
        text-align: center;
    }

    .about-me-content .text .buttons .hire,
    .about-me-content .text .buttons .see-projects {
        width: 100%;
    }
}

/* End About Me */

/* Start Portfolio */

.portfolio {
    padding: var(--main-padding) 0;
    background-color: #f5f5f5;
}

.portfolio .text,
.contact-me .text,
.my-skills .text,
.testimonials-section .text {
    text-align: center;
    max-width: 70%;
    margin: 30px auto;
    line-height: 2;
    font-size: 18px;
}

.portfolio .projects {
    max-width: 740px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    position: relative;
}

@media (max-width: 767px) {
    .testimonial .text,
    .contact-me .text,
    .my-skills .text,
    .testimonials-section .text {
        max-width: 100% !important;
    }
    .portfolio .text {
        max-width: 90% !important;
    }

    .portfolio .projects {
        max-width: 400px;
    }
}

.portfolio .projects .project {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 30px #6f6f6f59;
    transition: 0.5s;
    -webkit-transition: 0.5s;
    -moz-transition: 0.5s;
    -ms-transition: 0.5s;
    -o-transition: 0.5s;
    background-color: #1f1f1f;
    position: relative;
    height: 200px;
}

.portfolio .projects .project:hover {
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.3);
}
@media (min-width: 768px) {
    .portfolio .projects .project.center {
        grid-column: 1 / -1; /* يجعل العنصر يمتد على كامل عرض الصف */
        width: calc(
            50% - 15px
        ); /* يحدد عرض العنصر ليكون مطابقاً لعرض العناصر الأخرى (نصف المساحة - نصف الفراغ) */
        margin: 0 auto; /* يقوم بتوسيط العنصر في المساحة المتاحة */
    }
}

.portfolio .projects .project:hover img {
    transform: scale(1.1);
    -webkit-transform: scale(1.1);
    -moz-transform: scale(1.1);
    -ms-transform: scale(1.1);
    -o-transform: scale(1.1);
}

.portfolio .projects .project img {
    width: 100%;
    height: 100%;
    transition: transform 0.5s;
    -webkit-transition: transform 0.5s;
    -moz-transition: transform 0.5s;
    -ms-transition: transform 0.5s;
    -o-transition: transform 0.5s;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
    box-shadow: 0 0 50px 0 rgba(194, 194, 194, 0.3);
}

.portfolio .project .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(38, 38, 38, 0.3);
    backdrop-filter: blur(5px);
    z-index: 22;
    opacity: 0;
    transition: opacity 0.2s;
    -webkit-transition: opacity 0.2s;
    -moz-transition: opacity 0.2s;
    -ms-transition: opacity 0.2s;
    -o-transition: opacity 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.portfolio .projects .project:hover .overlay {
    opacity: 1;
}

@media (max-width: 767px) {
    .portfolio .project:active .overlay {
        opacity: 1;
    }
    .portfolio .special-heading,
    .testimonial .special-heading {
        max-width: 90%;
        margin: 0 auto;
    }
}

.portfolio .project .overlay a {
    color: #fff;
    padding: 5px 15px;
    border-radius: 50px;
    -webkit-border-radius: 50px;
    -moz-border-radius: 50px;
    -ms-border-radius: 50px;
    -o-border-radius: 50px;
    display: block;
    border: 2px solid #fff;
    text-decoration: none;
    font-weight: 400;
    transition: 0.5s;
    -webkit-transition: 0.5s;
    -moz-transition: 0.5s;
    -ms-transition: 0.5s;
    -o-transition: 0.5s;
}

.portfolio .project .overlay a:hover {
    background-color: #fff;
    color: #1f1f1f;
}

.portfolio .project .overlay a.disable:hover {
    background-color: #fff;
    color: #1f1f1f;
    cursor: not-allowed;
    opacity: 0.5;
}

/* End Portfolio */

/* Start MySkills */

.my-skills {
    padding: var(--main-padding) 0;
}

.my-skills .scroller {
    max-width: 800px;
    /* overflow: hidden; */
    margin: auto;
    mask: linear-gradient(
        90deg,
        transparent,
        white 20%,
        white 80%,
        transparent
    );
}

.my-skills .scroller[data-animated="true"] {
    overflow: hidden;
}
.my-skills .scroller[data-animated="true"] .my-skills-list {
    width: fit-content;
    flex-wrap: nowrap;
    animation: scroll 15s linear infinite;
    -webkit-animation: scroll 15s linear infinite;
}

@keyframes scroll {
    to {
        transform: translate(calc(-50% - -10px));
        -webkit-transform: translate(calc(-50% - -10px));
        -moz-transform: translate(calc(-50% - -10px));
        -ms-transform: translate(calc(-50% - -10px));
        -o-transform: translate(calc(-50% - -10px));
    }
}

.my-skills ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.my-skills ul li {
    min-width: 100px;
    height: 100px;
    background-color: #f5f5f5;
    color: #1f1f1f;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
}

.my-skills ul li i {
    color: var(--main-color);
    font-size: 40px;
}

.my-skills ul li span {
    font-size: 15px;
}

/* End MySkills */

/* Start Contact Me */

.contact-me {
    background-color: #f5f5f5;
    padding: var(--main-padding) 0;
}

.contact-me .buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.contact-me .buttons .whatsapp,
.contact-me .buttons .email {
    padding: 5px 15px;
    width: 100%;
    border: 2px solid #1f1f1f;
    border-radius: 50px;
    -webkit-border-radius: 50px;
    -moz-border-radius: 50px;
    -ms-border-radius: 50px;
    -o-border-radius: 50px;
    color: #1f1f1f;
    text-decoration: none;
    font-weight: 400;
    transition: 0.5s;
    -webkit-transition: 0.5s;
    -moz-transition: 0.5s;
    -ms-transition: 0.5s;
    -o-transition: 0.5s;
    font-size: 20px;
}

.contact-me .buttons .whatsapp:hover,
.contact-me .buttons .email:hover {
    background-color: #1f1f1f;
    color: #fff;
}

/* End Contact Me */

/* Start Footer */

footer {
    padding: 20px;
    background-color: #1f1f1f;
    color: #fff;
    text-align: center;
}

footer .container {
    display: flex;
    justify-content: space-between;
}

footer img {
    max-width: 80px;
    margin-left: 2.5px;
}

@media (max-width: 767px) {
    footer .container {
        flex-direction: column;
        gap: 20px;
        justify-content: center;
        align-items: center;
    }
}

/* End Footer */

/* Start Animations */

.hidden {
    opacity: 0;
    transition: 1s;
    -webkit-transition: 1s;
    -moz-transition: 1s;
    -ms-transition: 1s;
    -o-transition: 1s;
}

.left.hidden {
    transform: translateX(-100%);
    -webkit-transform: translateX(-100%);
    -moz-transform: translateX(-100%);
    -ms-transform: translateX(-100%);
    -o-transform: translateX(-100%);
}

.right.hidden {
    transform: translateX(100%);
    -webkit-transform: translateX(100%);
    -moz-transform: translateX(100%);
    -ms-transform: translateX(100%);
    -o-transform: translateX(100%);
}

.down.hidden {
    transform: translateY(-100%);
    -webkit-transform: translateY(-100%);
    -moz-transform: translateY(-100%);
    -ms-transform: translateY(-100%);
    -o-transform: translateY(-100%);
}

.up.hidden {
    transform: translateY(100%);
    -webkit-transform: translateY(100%);
    -moz-transform: translateY(100%);
    -ms-transform: translateY(100%);
    -o-transform: translateY(100%);
}

.dl-2.hidden {
    transition-delay: 200ms !important;
}

.dl-4.hidden {
    transition-delay: 400ms !important;
}

.dl-6.hidden {
    transition-delay: 600ms !important;
}

.dl-8.hidden {
    transition-delay: 800ms !important;
}

.dl-10.hidden {
    transition-delay: 1000ms !important;
}

.dl-12.hidden {
    transition-delay: 1200ms !important;
}

.show {
    opacity: 1;
    transform: translateX(0) rotate(0deg) !important;
    -webkit-transform: translateX(0) rotate(0deg) !important;
    -moz-transform: translateX(0) rotate(0deg) !important;
    -ms-transform: translateX(0) rotate(0deg) !important;
    -o-transform: translateX(0) rotate(0deg) !important;
}

/* End Animations */
.notification {
    display: none;
    position: fixed;
    z-index: 100;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) !important;
    -webkit-transform: translate(-50%, -50%) !important;
    -moz-transform: translate(-50%, -50%) !important;
    -ms-transform: translate(-50%, -50%) !important;
    -o-transform: translate(-50%, -50%) !important;
    transition: opacity 0.5s ease-in-out;
}

.notification div {
    font-size: 17px;
    font-weight: 500;
    padding: 20px 30px;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
    color: #fff;
    background-color: #1f1f1f;
    opacity: 0.7;
}

.notification.show {
    display: block !important;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.notification.hide {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

@media (max-width: 767px) {
    .notification {
        padding: 20px 10px;
        width: 340px;
        text-align: center;
    }
}

/* Start Dark Mode */
body.dark-mode .mobile-ul {
    background-color: #373737a2;
}

body.dark-mode .about-me,
body.dark-mode .my-skills {
    background-color: #1f1f1f !important;
    color: #fff;
}

body.dark-mode .special-heading {
    color: #0000004f;
}

body.dark-mode .special-heading + p {
    color: #fff;
}

body.dark-mode .about-me .hire {
    background-color: #fff !important;
    color: #1f1f1f !important;
    border: 2px solid #fff !important;
}

body.dark-mode .about-me .see-projects {
    border: 2px solid #fff !important;
    color: #fff !important;
}

body.dark-mode .about-me .hire:hover {
    border: 2px solid #fff !important;
    color: #fff !important;
    background-color: #1f1f1f !important;
}

body.dark-mode .about-me .see-projects:hover {
    background-color: #fff !important;
    color: #1f1f1f !important;
}

body.dark-mode .about-me .image::before {
    background-color: #fff;
}

body.dark-mode .portfolio,
body.dark-mode .testimonials-section,
body.dark-mode .my-skills li,
body.dark-mode .contact-me {
    background-color: #2a2a2a;
    color: #fff;
}

body.dark-mode .portfolio .projects .project {
    box-shadow: 0 0 30px #00000096;
}

body.dark-mode footer {
    background-color: #111;
}

body.dark-mode .swiper-slide {
    background-color: #2e2e2e;
    border-bottom-color: #3c3c3c;
    color: #fff !important;
}

body.dark-mode .swiper-slide-active {
    box-shadow: 0 5px 40px #171717a8;
}

body.dark-mode .swiper-slide .info h4 {
    color: #fff;
}

body.dark-mode .swiper-slide p {
    color: #eee;
}

body.dark-mode .swiper-slide > i {
    color: #222;
    opacity: 0.8;
}

body.dark-mode .swiper-button-next,
body.dark-mode .swiper-button-prev {
    color: #fff;
}

body.dark-mode .contact-me .buttons .whatsapp,
body.dark-mode .contact-me .buttons .email {
    border: 2px solid #fff;
    color: #fff;
}

body.dark-mode .contact-me .buttons .whatsapp:hover,
body.dark-mode .contact-me .buttons .email:hover {
    background-color: #fff;
    color: #1f1f1f;
}

body.dark-mode .swiper-pagination-bullet {
    background-color: #fff !important;
}

/* ========================================= */
/* View Transitions API (Circular Reveal)    */
/* ========================================= */
::view-transition-old(root),
::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
}

/* حالة الانتقال للوضع الليلي */
::view-transition-old(root) {
    z-index: 1;
}
::view-transition-new(root) {
    z-index: 2;
    /* تشغيل الدائرة لتكبر وتغطي الشاشة */
    animation: ripple-in 0.6s ease-in-out forwards;
}

/* حالة العودة للوضع الفاتح */
.dark-to-light::view-transition-old(root) {
    z-index: 2;
    /* تشغيل الدائرة بالعكس لتصغر وتكشف الشاشة */
    animation: ripple-out 0.6s ease-in-out forwards;
}
.dark-to-light::view-transition-new(root) {
    z-index: 1;
    animation: none;
}

/* الأنيميشن الفعلي للدائرة (بناءً على إحداثيات النقر) */
@keyframes ripple-in {
    from {
        clip-path: circle(0px at var(--x, 50%) var(--y, 50%));
    }
    to {
        clip-path: circle(150% at var(--x, 50%) var(--y, 50%));
    }
}

@keyframes ripple-out {
    from {
        clip-path: circle(150% at var(--x, 50%) var(--y, 50%));
    }
    to {
        clip-path: circle(0px at var(--x, 50%) var(--y, 50%));
    }
}
/* End Dark Mode */

.portfolio-carousel {
    padding-bottom: 50px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

/* الشريحة الأساسية */
.portfolio-carousel .swiper-slide {
    width: 520px;
    height: 380px;
    border-radius: 10px;
    background: #fff; /* يتماشى مع الوضع الليلي لموقعك */
    max-width: calc(100% - 48px);
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

body.dark-mode .portfolio-carousel .swiper-slide {
    background: #2e2e2e; /* يتماشى مع الوضع الليلي لموقعك */
}

/* تجاوب الجوال */
@media (max-width: 767px) {
    .portfolio-carousel .swiper-slide {
        width: 300px;
        height: 350px;
    }
}

.portfolio-carousel .swiper-carousel-animate-opacity {
    height: 100%;
    width: 100%;
    position: relative;
}

/* صورة المشروع */
.portfolio-carousel img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 10px;
}

/* المحتوى والشادو الأسود */
.portfolio-carousel .slide-content {
    position: absolute;
    left: 0;
    width: 100%;
    bottom: -100%;
    padding: 80px 20px 25px;
    box-sizing: border-box;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.9));
    border-radius: 0 0 10px 10px;
    transition: 0.5s ease-in-out;
    -webkit-transition: 0.5s ease-in-out;
    -moz-transition: 0.5s ease-in-out;
    -ms-transition: 0.5s ease-in-out;
    -o-transition: 0.5s ease-in-out;
}

/* @media (max-width: 767px) {
    .portfolio-carousel .slide-content {
        height: 70% !important;
    }
} */

.swiper-slide-fully-visible:hover .slide-content,
.swiper-slide-fully-visible:active .slide-content {
    bottom: -1px;
}
.portfolio-carousel .slide-content h3 {
    margin: 0;
    font-weight: 700;
    font-size: 24px;
    color: #f1f1f1;
}

.portfolio-carousel .slide-content p {
    margin: 8px 0 10px;
    opacity: 0.75;
    font-size: 14px;
    color: #fff;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* قص النص الطويل */
    overflow: hidden;
}

.portfolio-carousel .slide-content ul.tools {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.portfolio-carousel .slide-content ul.tools li {
    font-size: 12px;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 5px 8px;
    border-radius: 5px;
}

.portfolio-carousel .slide-content a.see-project-btn,
.portfolio-carousel .slide-content button.details-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 15px;
    font-size: 14px;

    border-radius: 50px;
    text-decoration: none;
    transition: 0.3s;
}
.portfolio-carousel .slide-content a.see-project-btn {
    color: #fff;
    background-color: var(--main-color);
    border: 2px solid var(--main-color);
}

.portfolio-carousel .slide-content button.details-btn {
    border: 2px solid #fff;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
    -webkit-transition: 0.3s;
    -moz-transition: 0.3s;
    -ms-transition: 0.3s;
    -o-transition: 0.3s;
}

.portfolio-carousel .slide-content button.details-btn:hover {
    color: #2a2a2a;
    background-color: #fff;
}

.portfolio-carousel .slide-content a.see-project-btn:hover {
    background-color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.portfolio-carousel .swiper-button-next {
    right: 15px !important;
}
.portfolio-carousel .swiper-button-prev {
    left: 15px !important;
}
/* تخصيص ألوان الأزرار لتطابق موقعك */
.portfolio-carousel .swiper-button-next,
.portfolio-carousel .swiper-button-prev {
    color: var(--main-color);
}
.portfolio-carousel .swiper-pagination-bullet-active {
    background-color: var(--main-color) !important;
}

@media (max-width: 767px) {
    .portfolio-carousel .swiper-button-next,
    .portfolio-carousel .swiper-button-prev {
        display: none;
    }
}

/* إزالة أي Transition ثابت لتجنب التعارض مع الجافاسكريبت */
.portfolio-carousel .swiper-slide,
.portfolio-carousel .swiper-carousel-animate-opacity {
    transition-property: transform, opacity;
}

.portfolio .container {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}
/* ========================================= */
/* Contact Form Styles                       */
/* ========================================= */
.contact-me .contact-form {
    max-width: 400px;
    margin: 30px auto 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-me .input-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.contact-me .input-group input,
.contact-me .input-group select {
    display: block;
    flex: 1;
    min-width: 250px; /* ضمان عدم تشوه الحجم في الشاشات */

    /* فرض طول صارم وموحد */
    height: 45px !important;
    min-height: 45px !important;
    max-height: 45px !important;

    /* إلغاء الحشوة العلوية والسفلية تماماً والاعتماد على line-height للتوسيط */
    padding: 0 25px !important;

    border: 2px solid #ccc;
    font-family: inherit !important; /* إجبار المتصفح على استخدام نفس الخط للـ select */
    font-size: 16px !important;
    line-height: 41px !important; /* 55px - 4px (للحدود العلوية والسفلية) = توسيط مثالي */

    outline: none;
    background: #fff;
    color: #1f1f1f;
    box-sizing: border-box !important;
    margin: 0;

    border-radius: 50px;
    -webkit-border-radius: 50px;
    -moz-border-radius: 50px;
    -ms-border-radius: 50px;
    -o-border-radius: 50px;
}

@media (max-width: 767px) {
    .contact-me .input-group input,
    .contact-me .input-group select {
        width: 100%;
    }
}

.contact-me .input-group input:focus,
.contact-me .input-group select:focus {
    border-color: var(--main-color);
}

/* تنسيق الأزرار الجديدة لتطابق الروابط القديمة */
.contact-me .buttons button {
    cursor: pointer;
    background: transparent;
    font-family: inherit;
    height: 45px !important;
    font-size: 17px !important;
}

/* تجاوب الحقول مع شاشات الهاتف */
@media (max-width: 767px) {
    .contact-me .input-group {
        flex-direction: column;
    }
}

/* ========================================= */
/* دعم الوضع الليلي للحقول                   */
/* ========================================= */
body.dark-mode .contact-me .input-group input,
body.dark-mode .contact-me .input-group select {
    background-color: #1f1f1f;
    border-color: #444;
    color: #fff;
}

body.dark-mode .contact-me .input-group input:focus,
body.dark-mode .contact-me .input-group select:focus {
    border-color: #fff;
}

/* إصلاح مشكلة لون خيارات الـ Select في الوضع الليلي */
body.dark-mode .contact-me .input-group select option {
    background-color: #1f1f1f;
    color: #fff;
}

/* تخصيص الـ Select للحفاظ على السهم والبادنج الأيمن */
.contact-me .input-group select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2338ada9'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 24px;
    /* بادنج يمين أكبر لعدم تداخل النص مع السهم */
    padding-right: 45px !important;
    cursor: pointer;
}

/* ========================================= */
/* دعم السهم في الوضع الليلي                 */
/* ========================================= */
body.dark-mode .contact-me .input-group select {
    background-color: #1f1f1f;
    border-color: #444;
    color: #fff;
    /* سهم أبيض ليناسب الخلفية المظلمة */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
}

body.dark-mode .contact-me .input-group select:focus {
    border-color: #fff;
}

/* ========================================= */
/* Modal Bottom Sheet Styles                 */
/* ========================================= */

.bottom-sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.bottom-sheet-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 100%); /* مخفي للأسفل */
    width: 100%;
    max-width: 800px;
    background: #fff;
    border-radius: 20px 20px 0 0;
    z-index: 2001;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.bottom-sheet.active {
    transform: translate(-50%, 0);
}

.sheet-header {
    padding: 15px;
    text-align: center;
    position: relative;
    cursor: grab;
    touch-action: none; /* لمنع التداخل مع السكرول الطبيعي */
}

.sheet-header:active {
    cursor: grabbing;
}

.drag-handle {
    width: 50px;
    height: 5px;
    background: #ccc;
    border-radius: 5px;
    margin: 0 auto;
}

.close-sheet {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    cursor: pointer;
    color: #1f1f1f;
    transition: 0.3s;
}

.close-sheet:hover {
    color: var(--main-color);
}

.sheet-content {
    padding: 0 20px 40px;
    overflow-y: auto;
}

.project-video video {
    width: 100%;
    border-radius: 10px;
    max-height: 350px;
    object-fit: cover;
    background: #000;
    margin-top: 20px;
    box-shadow: 0 0 20px -8px #2828284d;
}

.project-details {
    margin-top: 20px;
}

.project-details h3 {
    margin-top: 0;
    color: var(--main-color);
}

.project-details p {
    margin-bottom: 12px;
    font-size: 15px;
    color: #444;
    line-height: 1.6;
}

.project-details p strong {
    color: #1f1f1f;
}

/* ========================================= */
/* Dark Mode Support                         */
/* ========================================= */
body.dark-mode .bottom-sheet {
    background: #1f1f1f;
}
body.dark-mode .drag-handle {
    background: #444;
}
body.dark-mode .close-sheet {
    color: #fff;
}
body.dark-mode .project-details p {
    color: #ddd;
}
body.dark-mode .project-details p strong {
    color: #fff;
}

/* ========================================= */
/* Desktop Adjustments                       */
/* ========================================= */
@media (min-width: 768px) {
    .sheet-header {
        cursor: default;
        padding: 25px 15px;
    } /* إلغاء السحب */
    .drag-handle {
        display: none;
    } /* إخفاء الخط */
}

/* منع السكرول الإجباري للأجهزة المحمولة والكمبيوتر */
.no-scroll {
    overflow: hidden !important;
}

@media (max-width: 767px) {
    #closeSheetBtn {
        display: none;
    }
}

.sheet-content .tool {
    display: inline-block;
    background-color: #3ebcb85e;
    color: #164645;
    border: 1px solid #3ebcb85e;
    padding: 5px 8px;
    border-radius: 5px;
    margin-right: 3px;
    font-size: 13px;
}

body.dark-mode .sheet-content .tool {
    background-color: #ffffff44;
    border: 1px solid #fff4;
    color: #fff;
}
.sheet-content .tool i {
    margin-right: 2px;
}

.project-details span.title {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
    font-weight: 600;
    color: var(--main-color);
}

/* ========================================= */
/* Project Details Refinements               */
/* ========================================= */

.project-details h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--main-color);
}

@media (max-width: 767px) {
    .project-details h3 {
        font-size: 18px;
    }
}

/* حاوية الأدوات (Tools) */
/* .sheet-tools-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
    margin-top: 10px;
} */

/* ========================================= */
/* Tech Stack Bar (Professional Design)      */
/* ========================================= */

.tech-stack-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
    padding: 12px 18px;
    background-color: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 12px;
}

.tech-label {
    font-size: 12px;
    font-weight: 700;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-right: 2px solid #ddd; /* الخط الفاصل العمودي */
    padding-right: 15px;
}

@media (max-width: 412px) {
    .tech-label {
        border-right: none;
    }
}

.tech-label i {
    font-size: 16px;
    color: var(--main-color);
}

.sheet-tools-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0; /* إزالة أي هوامش قديمة */
}

/* تنسيق اللغات (البادجات) نفسها عشان تتماشى مع الشريط */
.sheet-content .tool {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: #fff;
    color: #444;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 500;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.sheet-content .tool i {
    color: var(--main-color);
    font-size: 14px;
}

/* ========================================= */
/* Dark Mode Support                         */
/* ========================================= */
body.dark-mode .tech-stack-bar {
    background-color: #2a2a2a;
    border-color: #333;
}

body.dark-mode .tech-label {
    color: #aaa;
    border-right-color: #444;
}

body.dark-mode .sheet-content .tool {
    background-color: #1f1f1f;
    color: #ccc;
    border-color: #444;
}

/* كروت التاريخ والمدة */
.sheet-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.meta-box {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #f8f9fa;
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid #eee;
}

.meta-box i {
    font-size: 22px;
    color: var(--main-color);
}

.meta-text {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 11px;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.meta-value {
    font-size: 14px;
    font-weight: 600;
    color: #1f1f1f;
}

/* بلوكات الهدف والوصف */
.sheet-text-section {
    margin-bottom: 20px;
    background-color: #fafafa;
    padding: 15px 15px 15px 20px;
    border-left: 4px solid var(--main-color);
    border-radius: 0 10px 10px 0;
}

.sheet-text-section h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: var(--main-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sheet-text-section p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #555;
}

/* ========================================= */
/* Dark Mode Support for Details             */
/* ========================================= */
body.dark-mode .meta-box {
    background-color: #2a2a2a;
    border-color: #333;
}

body.dark-mode .meta-label {
    color: #aaa;
}

body.dark-mode .meta-value {
    color: #fff;
}

body.dark-mode .sheet-text-section {
    background-color: #252525;
}

body.dark-mode .sheet-text-section p {
    color: #ddd;
}

/* ========================================= */
/* Premium Infinite Marquee Testimonials     */
/* ========================================= */

.testimonials-section {
    padding: var(--main-padding) 0;
    overflow: hidden;
    position: relative;
    background-color: #fafafa;
}

.testimonials-section .text {
    padding-bottom: 0;
    margin-bottom: 0;
}

.marquee-wrapper {
    margin-top: 30px;
    width: 100vw;
    overflow: hidden;
    position: relative;
    /* التمويه الجانبي */
    mask-image: linear-gradient(
        to right,
        transparent,
        black 10%,
        black 90%,
        transparent
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent,
        black 10%,
        black 90%,
        transparent
    );
}

.marquee-track {
    display: flex;
    padding: 10px 0 30px;
    gap: 30px; /* الفراغ الثابت بين الكروت */
    width: max-content;
    /* السرعة سيتم تحديدها عبر الـ JS بناءً على عدد الكروت */
    animation: scroll-left linear infinite;
    /* إجبار المتصفح على استخدام كرت الشاشة (GPU Acceleration) */
    will-change: transform;
    transform: translateZ(0);
}

.marquee-wrapper:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-track.paused-by-modal {
    animation-play-state: paused !important;
}

/* حل مشكلة اللاق: نتحرك لنصف المسافة + نصف مساحة الفراغ */
@keyframes scroll-left {
    to {
        transform: translateX(calc(-50% - 15px));
    }
}

/* ========================================= */
/* Premium Card Design                       */
/* ========================================= */
.testimonial-card {
    width: 400px;
    background: #fff;
    padding: 35px 30px;
    border-radius: 24px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    border: 1px solid #f0f0f0;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    border-color: var(--main-color);
}

.quote-watermark {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 120px;
    color: rgba(0, 0, 0, 0.02);
    z-index: 0;
    transform: rotate(10deg);
    transition: 0.4s;
}

.testimonial-card:hover .quote-watermark {
    color: rgba(56, 173, 169, 0.05); /* تأخذ لون موقعك عند الهوفر */
    transform: rotate(0deg) scale(1.1);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.card-header img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid transparent;
    outline: 2px solid #eee;
    outline-offset: 2px;
}

.client-info h4 {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 700;
    color: #1f1f1f;
}

.stars i {
    color: #f1c40f;
    font-size: 13px;
    letter-spacing: 1px;
}

.card-body {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
    margin: 0 0 20px 0;
    position: relative;
    z-index: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--main-color);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
    opacity: 0.8;
}

.testimonial-card:hover .read-more {
    opacity: 1;
}

.read-more i {
    transition: transform 0.3s;
}

.testimonial-card:hover .read-more i {
    transform: translateX(5px);
}

/* ========================================= */
/* Premium Popup Design                      */
/* ========================================= */
.testi-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transition: 0.4s ease;
}

.testi-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -35%) scale(0.95);
    width: 90%;
    max-width: 600px;
    background: #f5f5f5;
    padding: 50px 40px 40px;
    border-radius: 24px;
    z-index: 3001;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.testi-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.testi-popup.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.close-testi {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: 0.3s;
    background: #f5f5f5;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.close-testi:hover {
    color: #fff;
    background: var(--main-color);
    transform: rotate(180deg);
    -webkit-transform: rotate(180deg);
    -moz-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    -o-transform: rotate(180deg);
}

.popup-quote-icon {
    font-size: 35px;
    color: var(--main-color);
    margin-bottom: 20px;
    display: block;
}

.popup-body {
    font-size: 18px;
    color: #333;
    line-height: 1.8;
    margin-bottom: 35px;
    font-weight: 500;
}

.popup-footer {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid #eee;
    padding-top: 25px;
}

.popup-footer img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
}

.client-details h4 {
    margin: 0 0 5px;
    font-size: 18px;
    color: #1f1f1f;
}

/* ========================================= */
/* Dark Mode Adjustments                     */
/* ========================================= */
body.dark-mode .testimonial-card {
    background: #222;
    border-color: #333;
}
body.dark-mode .testimonial-card:hover {
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    border-color: var(--main-color);
}
body.dark-mode .quote-watermark {
    color: rgba(255, 255, 255, 0.02);
}
body.dark-mode .card-header img {
    outline-color: #333;
}
body.dark-mode .client-info h4,
body.dark-mode .client-details h4 {
    color: #fff;
}
body.dark-mode .card-body {
    color: #aaa;
}
body.dark-mode .testi-popup {
    background: #1f1f1f;
}
body.dark-mode .popup-body {
    color: #ddd;
}
body.dark-mode .popup-footer {
    border-color: #333;
}
body.dark-mode .close-testi {
    background-color: #1f1f1f;
    color: #ccc;
}
body.dark-mode .close-testi:hover {
    background: #333;
}

/* ========================================= */
/* Project Type Badge & Client Feedback      */
/* ========================================= */

/* ========================================= */
/* Project Type Badge & Client Feedback      */
/* ========================================= */

.project-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(
        56,
        173,
        169,
        0.12
    ); /* خلفية شفافة من لونك الأساسي */
    color: var(--main-color);
    padding: 3px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    border: 1px solid rgba(56, 173, 169, 0.25);
}

@media (max-width: 767px) {
    .project-type-badge {
        font-size: 9px;
        padding: 3px 6px;
    }
}

/* دعم الوضع الليلي */
body.dark-mode .project-type-badge {
    background-color: rgba(56, 173, 169, 0.15);
    color: #59ded9; /* لون أفتح قليلاً ليكون مريح ومقروء في الدارك مود */
    border-color: rgba(56, 173, 169, 0.3);
}

.client-feedback-section {
    margin-top: 20px;
    background-color: #f0f7f7;
    /*درجةخفيفةجداًمنلونموقعكالأساسي*/
    padding: 20px;
    border-left: 4px solid var(--main-color);
    border-radius: 0 12px 12px 0;
    -webkit-border-radius: 0 12px 12px 0;
    -moz-border-radius: 0 12px 12px 0;
    -ms-border-radius: 0 12px 12px 0;
    -o-border-radius: 0 12px 12px 0;
}

.client-feedback-section h4 {
    margin: 0 0 10px;
    font-size: 15px;
    color: var(--main-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.client-feedback-section blockquote {
    margin: 0;
    font-size: 14.5px;
    font-style: italic;
    color: #444;
    line-height: 1.7;
}

/* دعم الوضع الليلي */
body.dark-mode .client-feedback-section {
    background-color: #252525;
}

body.dark-mode .client-feedback-section blockquote {
    color: #ddd;
}

/* ========================================= */
/* Sticky Navbar & Glassmorphism             */
/* ========================================= */

.landing nav {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.landing nav.sticky {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: calc(100% - 40px);
    max-width: 1170px;
    /*زجاجيداكنيبرزالنصوصوالأزراربوضوحتام*/
    background: rgba(25, 25, 25, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 99;
    padding: 10px 20px;
    transition:
        transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
        background-color 0.4s,
        box-shadow 0.4s,
        opacity 0.4s;

    animation: slideDownNav 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

body.dark-mode .landing nav.sticky {
    background: rgba(12, 12, 12, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

@keyframes slideDownNav {
    from {
        top: -100px;
    }
    to {
        top: 20px;
    }
}

/* زر الإغلاق (X) */
.close-sticky-nav {
    display: none;
    position: absolute;
    top: 50%;
    right: 25px;
    transform: translateY(-50%);
    font-size: 22px;
    color: #fff;
    cursor: pointer;
    z-index: 100;
    transition: 0.3s;
}

.close-sticky-nav:hover {
    color: var(--main-color);
}

.landing nav.sticky .close-sticky-nav {
    display: block;
}

/* إبعاد عناصر القائمة في الديسك توب لتوفير مساحة للزر */
@media (min-width: 992px) {
    .landing nav.sticky ul {
        margin-right: 40px;
    }
}

/* حل تضارب الموبايل: إخفاء الزر تماماً وتصغير هوامش النافبار */
@media (max-width: 991px) {
    .landing nav.sticky .close-sticky-nav {
        display: none !important;
    }
    .landing nav.sticky {
        top: 10px;
        width: calc(100% - 20px);
        padding: 10px 15px;
    }
}

/* كلاس الإخفاء الإجباري عند ضغط X */
.landing nav.force-hide {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-150%) !important;
    -webkit-transform: translateY(-150%) !important;
    -moz-transform: translateY(-150%) !important;
    -ms-transform: translateY(-150%) !important;
    -o-transform: translateY(-150%) !important;
}

/* الإخفاء الذكي عند السكرول لأسفل (Smart Scroll) */
.landing nav.sticky.nav-hidden {
    transform: translateY(-150%) !important;
    opacity: 0;
    pointer-events: none;
}

/* ========================================= */
/* Lenis Smooth Scroll Fixes                 */
/* ========================================= */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    /* إلغاء سلوك المتصفح عشان الجافاسكريبت يشتغل مكانه براحته */
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
}

#lecture-video {
    width: 100%;
    display: block;
}

.loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #38ada9;
    border-radius: 50%;
    display: none;
    z-index: 10;
    animation: spin 1s linear infinite;
    -webkit-animation: spin 1s linear infinite;
}

/* الكلاس الذي سيضيفه الجافاسكريبت لإظهار التحميل */
.loader.active {
    display: block;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}
