

/* Link Fonts */
@import url('https://fonts.googleapis.com/css2?family=Changa:wght@400;500;600;700;800&family=Tajawal:wght@300;400;500;700;900&display=swap');
/*  */
*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    direction: rtl;
    /* font-family: "Oswald", sans-serif; */

}
ul{
    list-style: none;
}
a{
    text-decoration: none;
    color: #fff;
}
/*  */
:root {
    --bg: #FBF5DD;
    --text: #1F2937;
    --card: rgba(0,0,0,0.05);
    --bg-btn:#FF5722;
    --bg-img:#374151;
}
html,
body {
    overflow-x: hidden;
    width: 100%;
}
body {
    transition: 0.3s ease;
    font-family: "Tajawal", sans-serif;
    font-weight: 400;

}

h1, h2, h3, h4, h5, h6 {
    font-family: "Changa", sans-serif;
    font-weight: 700;
    letter-spacing: 0.3px;
}



/*  */

/* Start Header */
header{
    height: 70px;
    background-color: transparent;
    padding: 20px ;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 ;
    margin-bottom: 50px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    /* background-color: var(--bg); */
    border-radius: 25px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    

}
header nav{
    margin:auto ;
}
header nav ul{
    padding: 0 50px 0 0 ;
    display: flex;
    align-items: center;
    /* justify-content: space-between; */
    list-style: none; 
    gap: 30px;
    font-size: 15px;
}
header img {
    width: 120px;
    height: auto;
    object-fit: contain;
    margin-right: 150px;
}
header nav .icon-light {
    display: inline-block;  
    align-items: center;
    justify-content: space-between;  
    border: 1px solid transparent;  
    border-radius: 10px;
    padding:  0 8px;         
    background-color: #ffffff57;
    text-decoration: none;
}

header nav a:not(.icon-light) {
    /* color: var(--text); */
    color: #fff;
    text-decoration: none; 
    position: relative;    
    padding-bottom: 5px;  
    transition: 0.3s all ease;
    font-size: 17px;
    font-weight: 500;
}
header nav a:not(.icon-light):hover {
    /* color: #000; */
}
header nav a:not(.icon-light)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;          
    height: 2px;   
    background-color: var(--bg-btn);  
    transform: scaleX(0);     
    transform-origin: bottom left; 
    transition: transform 0.3s ease-in-out;
}

header nav a:not(.icon-light):hover::after {
    transform: scaleX(1);
}

/* Hide menu icon in desktop */
.menu-icon {
    display: none;
}
/*  */
header.scrolled {
    background: var(--bg-img);
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    transition: 0.4s ease;
}

/* الأنيميشن */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
/* End Header */
/*  */

/* Start Home */
.home{
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 120px 100px;
    box-sizing: border-box;

    background-image: 
        linear-gradient(rgba(21, 29, 44, 0.862)),
        url(./image/img4.jpg);

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.home .prag-text{
    margin: 25px 0;
    display: inline-block;
    border: 1px solid var(--bg-btn);
    border-radius: 25px;
    padding: 10px 27px;
    background-color: #ff562232;
    color:var(--bg-btn);
    font-size: 16px;
    font-family: "Tajawal", sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;

}
.home h1{
    font-size: 52px;
    color: #fff;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: 0.5px;
    margin: 30px 0;
    padding: 0 25px;
}
.home h1 span{
    color: var(--bg-btn);
}
.home p{
    color: #fff;
}
.home .prag{
    display: inline-block;
    font-size: 19px;
    font-weight: 300;
    width: 35%;
    line-height: 1.8;
    margin: 25px 0;
}
.home .btn-text{
    margin: 30px 0;
}
.home .btn-text .btn1 {
    background-color: var(--bg-btn);
    font-size: 20px;
    font-family: "Tajawal", sans-serif;
    font-weight: 700;
    padding: 17px 25px;
    border-color: transparent;
    border-radius: 15px;
    margin: 0 15px;
    transition: all 0.3s ease;
}
.home .btn-text .btn2{
    background-color: transparent;
    font-size: 20px;
    font-family: "Tajawal", sans-serif;
    font-weight: 700;
    padding: 17px 35px;
    border: 1px solid #fff;
    color: #fff;
    border-radius: 15px;
    margin: 0 15px;
    transition: all 0.3s ease;
}
.home .btn-text .btn1:hover{
    background-color: transparent;
    color: var(--bg-btn);
    border: 1px solid var(--bg-btn);
    transform: translateY(-5px);
}
.home .btn-text .btn2:hover{
    background-color: #000;
    border: 1px solid #000;
    transform: translateY(-5px);
}
/* End Home */
/*  */

/* Start About */
.about {
    margin: 50px auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 85%;
}

.about .about-img {
    flex: 1;
}

.about .about-img img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 10px; /* اختياري */
}

.about .about-text {
    flex: 1;
}

.about .about-text h6 {
    font-size: 16px;
    font-family: "Tajawal", sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--bg-btn);
}

.about .about-text h2 {
    padding: 10px 0;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.45;
}

.about .about-text h2 span {
    color: var(--bg-btn);
}

.about .about-text p {
    line-height: 1.9;
    font-size: 17px;
    font-weight: 300;
    padding: 8px 0;
    color: #0000009f;
}

/* skills */
.about .about-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.about .about-skills p {
    width: 48%;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
    border: 1px solid var(--bg-btn);
    border-radius: 10px;
    padding: 10px 15px;

}
/* End About */
/*  */
/* Start Accordion */
    .accordions{
        width: 100%;
        background: var(--bg-img);
        height: auto;
        border-radius: 10px;
        color: white;

    }
    .accordion{
        padding: 50px 100px;
    }
    .accordion-text{
        text-align: center;
        padding: 50px 0;
    }
    .accordion-text span{
        color: var(--bg-btn);
    }
    .accordion-text .accordion-title{
        color: var(--bg-btn);
        font-size: 18px;
        font-family: "Tajawal", sans-serif;
        font-weight: 700;
        letter-spacing: 1px;
    }
    .accordion-text h2{
        font-size: 58px;
        padding: 10px 0;
        font-weight: 800;
    }
    .accordion-text p{
        font-size: 18px;
        font-weight: 300;
    }

    /*  */
    .accordion-item {
    background-color: transparent !important;
    border: 2px solid white !important;
    border-radius: 10px !important;
    margin: 30px 0;
    overflow: hidden;
}
    .accordion-body{
        color: #fff;
        font-size: 17px;
        font-weight: 300;
        font-family: "Tajawal", sans-serif;
        line-height: 1.8;
    }
    .accordion-button{
        font-size: 19px;
        font-family: "Tajawal", sans-serif;
        font-weight: 600;
        border-radius: 10px;
        background-color: transparent;
        color: white; /* لو الخلفية غامقة */

    }
    .accordion-button:hover {
    /* background-color: var(--bg-btn); */
    color: white;
    }
    .accordion-button:not(.collapsed) {

        background-color: transparent;
        color: white;
    }
    .accordion-button:focus {
        box-shadow: none;
    }
    .accordion-button:not(.collapsed)::after {
        filter: brightness(0) invert(1);
    }
    .accordion-button:hover::after {
        filter: brightness(0) invert(1);
    }
    
.accordion-button,
.accordion-button:focus,
.accordion-button:active,
.accordion-button:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}
/* End Accordion */








/*  */
/* Start Forms */
.forms {
    width: 100%;
    height: 100vh;
    /* background: #f5f5f5; */
    position: relative; 
    margin: 50px;
}


/* الصورة */
.form-photo {
    width: 60%;
    height: 80%;

    position: absolute;
    right: 50px; 
    top: 50%;
    transform: translateY(-50%);
}

.form-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 25px;
}

.form-text {
    width: 500px;
    /* height: calc(100% - 60px); */
    height: 90%;
    background: white;
    padding: 35px;
    border-radius: 25px;
    box-shadow: 0 0 25px rgba(0,0,0,.15);
    position: absolute;
    left: 250px;
    top: 50px;
    z-index: 10; 
    /* border: 1px solid var(--bg-btn); */

}
.form-text h2 {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 10px;
}


.form-text p {
    color: #777;
    font-weight: 300;
    margin-bottom: 20px;
}


form {
    display: flex;
    flex-direction: column;
    font-family: "Tajawal", sans-serif;
}


label {
    margin-bottom: 6px;
    font-weight: 600;
}


input,
textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    outline: none;
    border-radius: 5px;
}


textarea {
    height: 120px;
    resize: none;
}


button {
    background: var(--bg-btn);
    color: white;
    border: none;
    padding: 14px;
    cursor: pointer;
    font-size: 16px;
    font-family: "Tajawal", sans-serif;
    font-weight: 700;
    border-radius: 5px;
    transition: all 0.3s ease;
}

button:hover {
    background: transparent;
    color: var(--bg-btn);
    border: 1px solid var(--bg-btn);
}

/* End Forms */


/*  */

.footer{
    background-color: var(--bg-img);
    color:#fff;
    padding:70px 0 20px;
    border-radius: 25px;
}

.footer .container{
    width:90%;
    margin:auto;

    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:50px;
}

.footer-box h3{
    font-size:23px;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-bottom:20px;
}

.footer-box ul{
    list-style:none;
}

.footer-box ul li{
    margin:12px 0;
}

.footer-box ul li a{
    color:#ccc;
    text-decoration:none;
    font-weight: 400;
    transition:.3s;
}

.footer-box ul li a:hover{
    color:#fff;
    padding-right:8px;
}

.footer-box p{
    color:#ccc;
    font-weight: 300;
    line-height:1.9;
    margin:10px 0;
}

.footer-box p.email a,
.footer-box p.phone a{
    color:#ccc;
    text-decoration:none;
    transition:.3s;
}

.footer-box p.email a:hover,
.footer-box p.phone a:hover{
    color:var(--bg-btn);
}

.footer-box.center{
    text-align:center;
}

.footer-box img{
    width:150px;
    margin-bottom:20px;
}
.phone , .email{
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-block;
}
.work{
    margin-top:25px;
}
/*  */

.footer-box ul li a{
    position: relative;
    color: #ccc;
    text-decoration: none;
    transition: .3s;
}

.footer-box ul li a::after{
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width .3s ease;
}

.footer-box ul li a:hover{
    color: #fff;
}

.footer-box ul li a:hover::after{
    width: 100%;
}
/* End Footer */















/*  */

/* =========================
Tablet & Small Laptop 1240px
========================= */
@media (max-width: 1400px) {
    .form-text {
        left: 80px;
    }

}
/* =========================
Tablet & Small Laptop 1024px
========================= */
@media (max-width: 1024px) {

    header {
        padding: 20px;
    }

    header h3 {
        margin-left: 0;
    }

    header nav ul {
        padding: 0;
        gap: 20px;
    }
    /*  */
    .home {
        padding: 100px 60px;
    }

    .home h1 {
        font-size: 55px;
    }

    .home .prag {
        width: 60%;
        font-size: 18px;
    }

    .home .prag-text {
        font-size: 18px;
    }

    .home .btn-text .btn1,
    .home .btn-text .btn2 {
        font-size: 18px;
        padding: 14px 20px;
    }
    /*  */
    .about {
        width: 90%;
        gap: 25px;
    }

    .about .about-text h2 {
        font-size: 30px;
    }

    .about .about-text p {
        font-size: 17px;
    }
    
/*  */
    .form-photo {
        width: 55%;
        right: 30px;
    }
    .forms .form-text {
        left: 50px;
    }
    /*  */


}


/* =========================
Tablet 768px
========================= */
@media (max-width: 768px) {
    /* الهيدر */
    header {
        width: 90%;
        height: 55px;
        top: 10px;
        right: 5%;
        padding: 10px 15px;
        border-radius: 20px;
        position: fixed;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background-color: var(--bg-img);
        backdrop-filter: blur(10px);
        box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    }

    /* اللوجو */
    header img {
        width: 90px;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

     /* زر المينو */
    .menu-icon {
        display: block;
        font-size: 24px;
        color: #fff;
        cursor: pointer;
        margin-right: 10px;
        z-index: 2000;
    }

    /* القائمة مخفية */
    header nav ul {
        position: absolute;
        top: 65px;
        right: 10px;
        width: 250px;
        height: 300px;
        background: var(--bg);
        border-radius: 15px;
        padding: 25px 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;

        /* الأنيميشن */
        opacity: 0;
        transform: translateX(100%);
        pointer-events: none;
        transition: 0.4s ease;
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    }

    /* عند الضغط على المينو */
    header nav ul.active {
        opacity: 1;
        transform: translateX(0);
        pointer-events: auto;
    }
    header nav ul li {
    padding: 5px 0;
    }
    /* لون الروابط */
    header nav ul li a {
        color: #000 !important;
        font-size: 17px;
    }


    /*   */
    .home {
        padding: 90px 30px;
        text-align: center;
    }

    .home h1 {
        font-size: 42px;
        padding: 0;
    }

    .home .prag {
        width: 100%;
        font-size: 17px;
    }

    .home .prag-text {
        font-size: 16px;
    }

    .home .btn-text {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .home .btn-text .btn1,
    .home .btn-text .btn2 {
        width: 80%;
    }
    /*  */
    .about {
        flex-direction: column;
        text-align: center;
    }

    .about .about-img,
    .about .about-text {
        width: 100%;
    }

    .about .about-text h2 {
        font-size: 28px;
    }

    .about .about-skills p {
        justify-content: center;
    }
    /*  */
    .forms {
        /* border: 1px solid var(--bg-btn); */
        height: auto;
        /* padding: 40px 20px; */
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
        width:90%;
        max-width:500px;
        margin: 25px auto;
    }

    .form-photo,
    .form-text {
        position: static;
        transform: none;
        width: 100%;
        max-width: 600px;
        height: auto;
    }

    .form-photo img {
        height: 350px;
        object-fit: cover;
    }

    .form-text {
        padding: 25px;
        box-sizing: border-box;
    }
    /*  */

    /* Footer */
    
/*  */
    .footer {
        padding: 60px 0 30px;
    }

    .footer .container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-box {
        text-align: center;
    }

    .footer-box img {
        width: 130px;
    }

    .footer-box h3 {
        font-size: 22px;
    }

    .footer-box p,
    .footer-box a {
        font-size: 15px;
    }
}


/* =========================
Mobile 420px
========================= */
@media (max-width: 420px) {

    /* Header */
    header {
        padding: 15px 20px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 92%;
        right: 4%;
        top: 8px;
        border-radius: 18px;
        background-color: var(--bg-img);
        backdrop-filter: blur(10px);
        box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    }

    header img {
        width: 80px;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

     /* Hamburger Icon */
    .menu-icon {
        display: block;
        font-size: 25px;
        color: #fff;
        cursor: pointer;
        z-index: 2000; 
    }

    /* Side Menu */
    header nav ul {
        position: fixed;
        top: 50px;
        right: 5px;
        width: 220px;
        height: auto;
        background-color: var(--bg);
        border-radius: 30px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 25px;
        padding: 80px 30px ;
        transition: 0.4s ease;
        box-shadow: 5px 0 15px rgba(0,0,0,0.2);
        z-index: 1500;
        transform: translateX(100%);
    }

    header nav ul.active {
            transform: translateX(0);
    }

    header nav ul li a {
        font-size: 18px;
    }
    /*  */
    .home {
        min-height: 100vh;
        height: auto;
        padding: 80px 15px;
    }

    .home h1 {
        font-size: 30px;
        line-height: 1.4;
    }

    .home .prag-text {
        font-size: 14px;
        padding: 8px 15px;
    }

    .home .prag {
        font-size: 15px;
        width: 100%;
    }

    .home .btn-text .btn1,
    .home .btn-text .btn2 {
        width: 100%;
        font-size: 16px;
        padding: 12px;
    }
    /*  */
    .about {
        width: 95%;
    }

    .about .about-text h2 {
        font-size: 22px;
    }

    .about .about-text p {
        font-size: 15px;
        line-height: 1.6;
    }

    .about .about-skills p {
        width: 100%; /* مهم عشان يبقوا تحت بعض */
        font-size: 14px;
    }
    /*  */

    /* Accordion */
    .accordion-text h2 {
        font-size: 30px;
    }
    .accordion-text p {
        font-size: 15px;
    }
    .accordion-button {
        font-size: 15px;
        padding: 10px 12px;
        min-height: 45px;
    }

    .accordion-body {
        font-size: 13px;
        line-height: 1.6;
        padding: 10px 12px;
    }

    .accordion-button::after {
        width: 0.9rem;
        height: 0.9rem;
        background-size: 0.9rem;
    }
    /*  */   
    .forms {
        padding: 20px 15px;
        gap: 20px;
    }

    .form-photo img {
        height: 220px;
        border-radius: 15px;
    }

    .form-text {
        width: 100%;
        padding: 20px;
        border-radius: 15px;
    }

    .form-text h2 {
        font-size: 24px;
    }

    input,
    textarea,
    button {
        font-size: 14px;
    }
    
    /*  */

    /* Footer */
    .footer{
        padding:50px 0 25px;
    }

    .footer .container{
        grid-template-columns:1fr;
        gap:40px;
        text-align:center;
    }

    .footer-box{
        width:100%;
    }

    .footer-box:nth-child(3){
        grid-column:auto;
    }

    .footer-box img{
        width:120px;
    }

    .footer-box h3{
        font-size:20px;
    }

    .footer-box p,
    .footer-box a{
        font-size:14px;
        line-height:1.8;
    }

    .footer-box ul{
        padding:0;
    }

    .footer-box ul li a:hover{
        padding-right:0;
    }
}




