/*! الخطوط */
@font-face {
    font-family: "font-main";
    src: url("../assets/fonts/Cairo-Regular.ttf");
}
@font-face {
    font-family: "font-bold";
    src: url("../assets/fonts/Cairo-Bold.ttf");
}
@font-face {
    font-family: "font-Medium";
    src: url("../assets/fonts/Cairo-Medium.ttf");
}
@font-face {
    font-family: "font-SemiBold";
    src: url("../assets/fonts/Cairo-SemiBold.ttf");
}
@font-face {
    font-family: "font-Light";
    src: url("../assets/fonts/Cairo-Light.ttf");
}



/*! الألوان الرئيسية */
:root {
    --white-color: #fff;
    --black-color: #000;
    --main-color: #49733E;
    --text-color: #262626;
    --second-color: #A66C42;
    --dark-green-color: rgba(0, 75, 34, 1);
    --gradient-color: ;
    --black-text-color: rgba(38, 38, 38, 1);
}

body {
    font-family: "font-main";
    direction: rtl;
    overflow-x: clip;
}

::selection {
    background-color: var(--main-color);
    color: var(--white-color);
}



* {
    padding: 0;
    margin: 0;
    text-decoration: none;
    outline: none;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

*:focus {
    outline: none;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

button:focus,
a {
    outline: none;
}

button {
    border: none;
}

*:focus {
    outline: none;
}


h1,
h2,
h3,
h4,
h5,
h6,
p,
figure {
    margin: 0;
}

img {
    width: 100%;
    height: 100%;
}

/*! Globals */
.main-container {
    width: 90%;
    margin: 0 auto;
}
.section {
    padding: 50px 0;
    margin-top: 80px;
}

section {
    overflow: hidden;
}

.bg-page {
    background-image: url("../assets/images/bg-page.webp");
    background-position: center;
    background-size: cover;
}
.bg-none {
    background: none;
}

.title h2 {
    font-size: clamp(20px, 3vw, 30px);
    font-weight: 700;
    color: var(--main-color);
    width: fit-content;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding-bottom: 30px;

    letter-spacing: 1px;
    animation: titleGlow 1s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% {
        color: #638145;
    }
    100% {
        color: #A66C42;
    }
}
.title h2::before {
    content: "";
    position: absolute;
    width: 100px;
    background-image: linear-gradient(to right, #A66C42, #638145, #FFFFFF);
    height: 1px;
    left: 105%;
    top: 15px;

    transform: translateY(-50%);
    background: linear-gradient(to right, #A66C42, #638145, transparent);
    animation: lineBreath 1.5s ease-in-out infinite alternate;
    border-radius: 2px;
}
.title h2::after {
    content: "";
    position: absolute;
    width: 100px;
    background-image: linear-gradient(to left, #A66C42, #638145, #FFFFFF);
    height: 1px;
    right: 105%;
    top: 15px;

    transform: translateY(-50%);
    background: linear-gradient(to left, #A66C42, #638145, transparent);
    animation: lineBreath 1.5s ease-in-out infinite alternate;
    border-radius: 2px;
}
@keyframes lineBreath {
    0% {
        opacity: 0.3;
        width: 60px;
    }
    100% {
        opacity: 1; 
        width: 110px;
    }
}
.title-head {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
}
.title-head h3 {
    font-size: clamp(18px, 3vw, 35px);
    font-weight: 700;
}
.title-head span {
    color: var(--main-color)
}
.title-head p {
    font-size: clamp(15px, 2vw, 20px);
    font-weight: 500;
}


.read-more {
    color: var(--main-color);
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    position: relative;
}
.read-more::before {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #448b32;
    right: 0;
    bottom: -5px;
    border-radius: 20px;
    transition: .5s;
}
.read-more:hover::before {
    width: 100%;
}

.main-btn{
    display: block;
    width: fit-content;
    background-color: var(--main-color);
    color: var(--white-color);
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all .4s ease;
    border: 1px solid var(--main-color);
    min-width: 110px;
    text-align: center;
    position: relative;
    height: 45px;
    overflow: hidden;
}

.main-btn:after{
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url("../assets/images/gareed.svg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    top: 0;
    left: 0;

    transform: translateX(-100%);
    
    transition: transform 1s ease;
}

.main-btn:hover:after{
    transform: translateX(calc(100% + 110px));
}
.main-btn:hover{
    background-color: var(--white-color);
    color: var(--main-color);
    border: 1px solid var(--main-color);
}






/*! ================ Scroll-Btn ================ */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    z-index: 999;
    font-size: 24px;
    display: grid;
    place-items: center;
    color: white;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    background: linear-gradient(to top, var(--main-color) 0%, #e6e6e6 0%);
}
.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    animation: floatScrollTop 3s ease-in-out infinite;
}
@keyframes floatScrollTop {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
    }
    50% {
        transform: translateY(-12px);
        box-shadow: 0 15px 35px rgba(var(--main-color-rgb), 0.5);
    }
}
.scroll-top::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--main-color);
    opacity: 0.15;
    z-index: -1;
    transform: scale(1.3);
}
.scroll-top:hover::before {
    animation: outerGlow 2.5s ease-in-out infinite;
}
@keyframes outerGlow {
    0%, 100% {
        transform: scale(1.2);
        opacity: 0.15;
    }
    50% {
        transform: scale(1.4);
        opacity: 0.3;
    }
}