@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital@0;1&display=swap');

:root {
    --primary-color: rgb(255, 0, 82);
    --secondary-color: rgba(255, 28, 8, 0.8);
    --red-color: rgba(255, 0, 82, 0.8);

}


* {
    padding: 0;
    margin: 0;
    font-family: "Montserrat", sans-serif;
    box-sizing: border-box;
    scroll-behavior: smooth;

}

a {
    text-decoration: none
}

/* إعدادات عامة */
header {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background-color: #ffffffab;
    z-index: 1;
    box-shadow: 0 4px 10px -5px grey;
    backdrop-filter: blur(10px);
}

.befor-header {
    display: flex;
    justify-content: center;
    padding-bottom: 10px;
    background-color: rgb(245, 245, 245);
    height: 90px;
}

header .left {
    flex: 0.3;
}

header .left .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

header .left .logo i {
    font-size: 30px;
    color: var(--secondary-color);
}

header .left .logo .text {
    display: flex;
    flex-direction: column;
}

header .left .logo .text h2 {
    font-size: 20px;
    color: #392f2f;
}

header .left .logo .text h2 span {
    color: var(--secondary-color);
}

header .left .logo .text p {
    font-size: 12px;
    color: #333;
}

/* إعدادات القائمة */
header .right {
    flex: 0.5;
    position: relative;
}

header .right ul {
    list-style: none;
    font-size: 20px;
}

header .right ul.menu {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
}

header li a {
    color: black;
}

header li::after {
    content: "";
    width: 100%;
    height: 2px;
    background: var(--secondary-color);
    display: block;
    transition: all 0.3s;
    transform: translateY(20px);
    opacity: 0;
}

header li:hover::after {
    transform: translateX(0px);
    opacity: 1;
}

header li:hover a {
    color: rgba(0, 0, 0, 0.481);
}

header .menu-icon {
    display: none;
    font-size: 30px;
    cursor: pointer;
    direction: rtl;
    color: var(--secondary-color);
}

.menu-icon span {
    height: 3px;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
}

/* تأثير التحول إلى "X" */
.menu-icon.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-icon.active span:nth-child(2) {
    opacity: 0;
}

.menu-icon.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* إعدادات الأجهزة الصغيرة */
@media (max-width: 1023px) {
    header {
        justify-content: space-around;
    }

    header .left {
        flex: none;
    }

    header .menu-icon {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }


    header .right {
        flex: 0.7;
    }

    .menu-icon span {
        width: 8%;
    }

    header .right ul.menu {
        position: absolute;
        visibility: hidden;
        top: 50px;
        right: 0;
        background-color: #fff;
        flex-direction: column;
        width: 100%;
        padding: 10px 0;
        box-shadow: 0 4px 10px -5px grey;

        /* Animation */
        opacity: 0;
        transform: translateY(-20px);
        transition: opacity 0.5s ease, transform 0.5s ease;
    }

    header .right ul.menu.active {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    header .right ul.menu li {
        text-align: center;
        padding: 10px 0;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    header .right ul.menu.active li {
        opacity: 1;
        transform: translateY(0);
    }

    header .empty {
        display: none;
    }
}

/* حركات للقائمة */
header .right ul.menu.active li:nth-child(1) {
    transition-delay: 0.1s;
}

header .right ul.menu.active li:nth-child(2) {
    transition-delay: 0.2s;
}

header .right ul.menu.active li:nth-child(3) {
    transition-delay: 0.3s;
}

header .right ul.menu.active li:nth-child(4) {
    transition-delay: 0.4s;
}

header .right ul.menu.active li:nth-child(5) {
    transition-delay: 0.5s;
}

header .right ul.menu.active li:nth-child(6) {
    transition-delay: 0.6s;
}

header .empty {
    flex: 0.2;
}


/****** div all *******/
.all {
    display: flex;
    padding: 50px 100px;
    flex-direction: column;
    gap: 30px;
}

div h1 {
    font-size: 25px;
    margin-bottom: 10px;
}





/************ footer *****************/
footer {
    background-color: #333;
    padding-top: 50px;
}

footer .container {
    width: 100%;
    margin: auto;
    display: flex;
    justify-content: space-evenly;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer h3 {
    font-size: 28px;
    margin-bottom: 15px;
    text-align: center;
    color: white;
}

.footer-content p {
    margin: auto;
    color: white;
}

.footer-content ul {
    text-align: center;
}

footer .list {
    padding: 0;
}

footer .list li {
    width: auto;
    text-align: center;
    list-style-type: none;
    padding: 7px 0;
    position: relative;
}

footer .list li::before {
    content: "";
    position: absolute;
    transform: translate(-50%, -50%);
    left: 50%;
    top: 100%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition-duration: .3s;
}

footer .list li:hover::before {
    width: 70%;
}

footer .polices a {
    padding: 7px 0;
    transition: .2s;
}

.social-icons {
    text-align: center;
    padding: 0;
}

.social-icons li {
    display: inline-block;
    text-align: center;
    padding: 5px;

}

.social-icons i {
    color: white;
    font-size: 25px;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    color: #ff5724;
}

.social-icons i:hover {
    color: #ff5724;
}

footer .bottom-bar {
    background-color: rgb(255 0 69);
    text-align: center;
    padding: 10px 0;
    margin-top: 50px;
}

footer .bottom-bar p {
    color: #ffffff;
}

/*** responsive ***/



@media (max-width:600px) {

    .menu-icon span {
        width: 15%;
    }

    header .right li a {
        font-size: 18px;
    }

    footer .container {
        width: 100%;
        margin: 0;
        flex-direction: column;
        align-items: center;
        gap: 60px;
    }

    .footer-content {
        width: 100%;
        gap: 15px;
    }
}

@media (min-width:601px) and (max-width:900px) {
    footer .container {
        flex-direction: column;
        gap: 40px;
    }

    footer .container .footer-content p {
        margin-bottom: 10px;
    }
}

@media (max-width:600px) {

    .all {
        padding: 50px;
    }

    div h1 {
        font-size: 20px;
    }

    div p {
        font-size: 15px;
    }
}


@media (min-width:601px) and (max-width:768px) {
    header {
        justify-content: space-evenly;
    }

    header .left {
        display: none;
    }

    header .right {
        flex: 0.6;
    }

    header .empty {
        display: none;
    }

    div h1 {
        font-size: 23px;
    }

    div p {
        font-size: 16px;
    }

    .all {
        padding: 50px;
    }

    footer .container {
        flex-direction: column;
        gap: 40px;
    }

    footer .container .footer-content p {
        margin-bottom: 10px;
    }
}


@media (min-width:1024px) and (max-width:1200px) {
    header {
        justify-content: space-around;
    }

    header .right {
        flex: 0.5;
    }

    header .empty {
        display: none;
    }
}

@media (max-width:350px) {
    header .right {
        flex: 0.9;
    }

    div h1 {
        font-size: 18px;
    }

    div p {
        font-size: 14px;
    }
}

@media (max-width:340px) {
    header .right {
        flex: 1;
    }

    .menu-icon span {
        width: 30% !important;
    }

    .box-top {
        flex-wrap: wrap;
        margin-bottom: 10px;
    }
}

@media (max-width:450px) {
    header .right {
        flex: 0.8;
    }

    .menu-icon span {
        width: 23% !important;
    }
}