/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Variables ~~~~~~~~~~ 😀 */
:root {
    --main_pink_clr : #FF589E;
    --main_violet_clr : #9366E0;
    --main_blue_clr: #8261EE;
    --sec-bg-clr: #F2F2FE;
    --nav_clr: #3B566E;

    --p_inner-line-height: 1.625rem;   /* 26px */
    --p_outer-line-height: 1.75rem;   /* 28px */
    
    --section-padding: 100px;
    --card-br: 20px;  /* border-radius */
}
/* ~~~~~~~~~~~~~~~~~~~~~~~ Variables ~~~~~~~~~~ 🤐 */
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Global Rules ~~~~~~~~~~ 😀 */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

/* direction right to left */
/* * { text-align: right } */
body { direction: rtl }

::selection { 
    background-color: var(--main_pink_clr);
    color: white;
}
body { font-family: 'Raleway', sans-serif }
li { list-style: none }
a  { 
    text-decoration: none;
    color: black 
}
img {
    max-width: 100%;
    display: block;
}
p { 
    line-height: var(--p_inner-line-height);
    color:#777777
}
h1,
h2,
h3,
h4 { margin-bottom: 1em }

/* ----------- Media ------------ */
.container {
    margin-left: auto;
    margin-right: auto;
    padding-right: 15px;
    padding-left: 15px;
    position: relative;
}

@media (max-width: 767px) {          /*--- too Small --- */ 
    .container { max-width: 540px }
}

@media (min-width: 768px) {          /*--- Small --- */ 
    .container { width: 750px }
}

@media (min-width: 992px) {         /*--- Medium --- */ 
    .container { width: 960px }
}

@media (min-width: 1200px) {        /*--- Large --- */ 
    .container { width: 1140px }
}
/* ~~~~~~~~~~~~~~~~~~~~~~~ Global Rules ~~~~~~~~~~ 🤐 */
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Loader ~~~~~~~~~~ 😀 */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1000;
    background-color: var(--main_violet_clr);
    transition: opacity .3s ease-out;
}
.loader.close {
    opacity: 0;
}

.loader span {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    background: white;
    width: 2.5px;
    height: 2.5px;
    opacity: 1;
    border-radius: 50%;
    animation: shadow .75s linear infinite;
}

.loader span:first-child {
    --w: 40px;
    --h: 40px;
}
.loader span:nth-child(2) {
    --w: 60px;
    --h: 60px;
    animation-delay: .3s;
}
.loader span:last-child {
    --w: 80px;
    --h: 80px;
    animation-delay: .6s;
}
@keyframes shadow {
    to {
        width: var(--w);
        height: var(--h);
        opacity: 0;
    }
}
/* ~~~~~~~~~~~~~~~~~~~~~~~ Loader ~~~~~~~~~~ 🤐 */
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Components ~~~~~~~~~~ 😀 */
.padding-sec {
    padding-top: var(--section-padding);
    padding-bottom: var(--section-padding);
}

.main-text {
    position: relative;
    width: fit-content;
    text-align: center;
    margin: 0 auto 3rem;
}

.main-text::before {
    content: '';
    position: absolute;
    bottom: -1rem;
    right: 0;
    width: 100%;
    height: 5px;
    border-radius: 5px;
    background-color: var(--main_pink_clr);
}

.main-text h2 {
    letter-spacing: 1.75px;
    font-size: 28px;
    font-weight: 500;
    text-transform: capitalize;
}

.text-r { text-align: right}
.text-c { text-align: center}
.text-l { text-align: left}
/* ~~~~~~~~~~~~~~~~~~~~~~~ Components ~~~~~~~~~~ 🤐 */
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Content to reveal ~~~~~~~~~~ 😀 */
.spot {
    transition-duration: .75s !important;
    transition-timing-function: ease !important;
    opacity: 0;
}

.spotted {
    transform: translate(0,0) !important;
    opacity: 1 !important;
}
/* ~~~~~~~~~~~~~~~~~~~~~~~ Content to reveal ~~~~~~~~~~ 🤐 */
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Header ~~~~~~~~~~ 😀 */
.header {
    position: fixed;
    width: 100%;
    top: 2rem;
    left: 0;
    z-index: 99;
}

.header__container {
    position: relative;
    width: 100%;
    padding: 1.5rem 1.6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    border-radius: 50px;
    transition: .15s .125s ease;
    box-shadow: 0 0 20px rgba(0 0 0 / .1);
}

.header__container.border_radius {
    transition: .15s ease;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.header img { 
    width: 50px
}

.nav { flex-basis: 75% }

.nav__icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22.5px;
    margin-right: auto;
    transform: rotateY(180deg);
    cursor: pointer;
}

.nav__icon span {
    display: block;
    background: var(--nav_clr);
    height: 2px;
    width: 80%;
    transition: .3s ease;
}

.nav__icon span:first-child { 
    --x: -45deg;
    transform-origin: top right;
}
.nav__icon span:nth-child(2) { width: 100% }
.nav__icon span:last-child { 
    --x: 45deg;
    transform-origin: bottom right;
}

.nav__icon.close span { width: 100% }
.nav__icon.close span:nth-child(2) { opacity: 0 }
.nav__icon.close span { transform: rotate(var(--x)) }

.nav__ul {
    position: absolute;
    z-index: 99;
    width: 100%;
    top: 100%;
    left: 0;
    text-align: center;
    text-transform: capitalize;
    font-size: 18px;
    background: white;
    border-bottom-right-radius: 50px;
    border-bottom-left-radius: 50px;
    overflow: hidden;
    height: 0;
    transition: .15s ease;
}

.nav__ul.show { 
    height: calc((var(--linkHeight) * var(--numberLinks)) * 1px);
    transition: .15s .1s ease;
    box-shadow: 0 20px 40px rgba(0 0 0 / .05);
}

.nav__ul a {
    border-top: solid 1px rgba(59, 86, 110,.1);
    transition: .3s ease;
    display: block;
    color: var(--nav_clr);
    letter-spacing: 1px;
    font-weight: 500;
    padding: 1.2rem 1rem;
}
.nav__ul a.active,
.nav__ul a:hover { background: #EEEEEE }

@media (min-width: 992px ) {
    .nav__icon { display: none }
    .nav__ul {
        position: unset;
        height: auto;
        border-radius: unset;
        display: flex;
        gap: 3rem;
        justify-content: flex-end;
    }
    .nav__ul a { 
        border: unset;
        padding: 0 ;
    }
    .nav__ul a.active,
    .nav__ul a:hover {
        background: unset;
        color: var(--main_pink_clr);
        background: transparent;
    }
}
/* ~~~~~~~~~~~~~~~~~~~~~~~ Header ~~~~~~~~~~ 🤐 */
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Home ~~~~~~~~~~ 😀 */
.home {
    background-image: url(../images/banner-bg.png);
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: grid;
    place-items: center;
}

.home__content {
    text-align: center;
    color: white;
    margin: 0 auto;
    display: flex; 
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 0 1.4rem;
}

.home__title {
    line-height: 30px;
    line-height: clamp(30px , 1rem + 3vw , 54px);
    letter-spacing: 1.4px;
    font-size: clamp(1.5rem , 1rem + 2vw , 2.25rem);
    font-weight: 600;
    margin: 0;
}

.home__desc {
    font-size: 1.3rem;
    letter-spacing: 2px;
    margin: 0 auto;
    width: min(100%, 58ch);
    line-height: clamp(22px , 1rem 3vw , 28px);
    color: #ffffff;
}

.home__btn {
    color: inherit;
    padding: .75rem 1.5rem;
    border-radius: 50px;
    background: var(--main_pink_clr);
    transition: background-color .3s ease-out;
    display: block;
    width: max-content;
    text-transform: uppercase;
}
.home__btn:hover { background: var(--main_blue_clr) }

@media (min-width: 992px) { 
    .home__title { font-weight: 500 }
    .home__title strong { font-weight: 700 }
}
/* ~~~~~~~~~~~~~~~~~~~~~~~ Home ~~~~~~~~~~ 🤐 */
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ About ~~~~~~~~~~ 😀 */
.about__box {
    padding: 3rem 0 ;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
    overflow: hidden;
}
.about__box > * { flex-basis: 100% }

.about__box:first-child {
    border-bottom: solid 1px rgba(59, 86, 110,.1);
}
.about__box:nth-child(1) .about__box__img { transform: translatex(-30px)}
.about__box:nth-child(2) .about__box__img { transform: translatex(30px)}

.about__box__img {
    display: grid;
    justify-content: center;
}
.about__box__title {
    font-weight: 500;
    font-size: 24px;
    text-align: right;
    line-height: 42px;
    letter-spacing: .25px;
}

.about__box__desc { 
    letter-spacing: 1px;
    line-height: var(--p_outer-line-height);
    text-align: right;
    font-size: 1.1rem;
}

@media (min-width: 992px) {
    .about__box { 
        flex-direction: row;
        text-align: left;
    }
}
/* ~~~~~~~~~~~~~~~~~~~~~~~ About ~~~~~~~~~~ 🤐 */
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Service ~~~~~~~~~~ 😀 */
.service { background-color: var(--sec-bg-clr) }
.service__content { text-align: center }


.service__cards {
    display: grid;
    grid-template-columns: repeat(auto-fit , minmax( min( 290px , 100%) , 1fr ));
    gap: 1.75rem;
}
.service__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: var(--card-br);
    padding: 2rem 2.3rem;
    box-shadow: 0 0 50px rgba(0 0 0 /.1);
    background: white;
}

.service__card.un-reveal { transform: translateY(50px) }
.service__card.un-reveal:nth-child(2) { transition-delay: .3s }
.service__card.un-reveal:nth-child(3) { transition-delay: .6s }

.service__card__icon {
    background: var(--main_blue_clr);
    width: max-content;
    padding: 1.2rem 1rem;
    border-radius: 50%;
    margin-bottom: 1.85rem;
    transition: .3s ease-in-out;
}

.service__card:hover .service__card__icon { background: var(--main_pink_clr) }
.service__card__title {
    font-weight: 500;
    font-size: 18px;
    text-transform: capitalize;
    letter-spacing: .7px;
}

.service__card__desc {
    font-weight: 400;
    letter-spacing: .5px;
}
/* ~~~~~~~~~~~~~~~~~~~~~~~ Service ~~~~~~~~~~ 🤐 */
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Contact ~~~~~~~~~~ 😀 */
.contact__text {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.contact__info.un-reveal {
    transform: translateY(100%);
}

.contact__info__title {
    font-size: 20px;
    letter-spacing: .25px;
    font-weight: 500;
    margin-bottom: .5rem;
    margin: 0;
}

.contact__info p {
    letter-spacing: .6px;
    line-height: 26px;
}
/* ~~~~~~~~~~~~~~~~~~~~~~~ Contact ~~~~~~~~~~ 🤐 */
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Footer ~~~~~~~~~~ 😀 */
.footer {
    background: var(--main_violet_clr);
    padding: 35px 0;
}

.footer__box {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255 255 255 / .2);
}

.footer__social a.un-reveal {
    transform: translateY(100%);
}

.footer__social a.un-reveal:nth-child(2) {
    transition-delay: .2s;
}

.footer__social a.un-reveal:nth-child(1) {
    transition-delay: .4s;
}

.footer__social a {
    display: grid;
    place-items: center;
    color: var(--main_violet_clr);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: white;
    transition: .3s ease;
}
.footer__social a:hover {
    color: white;
    background: var(--main_pink_clr);
}

.footer p a,
.footer__box > * { color: white }
.footer p {
    font-size: 13px;
    letter-spacing: .88px;
}
.footer p a { text-decoration: underline }

/* ~~~~~~~~~~~~~~~~~~~~~~~ Footer ~~~~~~~~~~ 🤐 */





