:root {
    /* colors */
    --color-primary: #ff813f;
    --color-primary-subtle: #ffdcc8;
    --color-primary-hover: #f66912;
    --color-muted: #21252999;
    --color-border: #151515;
    --color-border-gray: #adadad;
    --color-border-light: #f4f4f4;
    --color-icon: #777777;
    --color-bg-icon: #e8e8e8;
    --color-bg: #f5f5f5;

    /* color assets */
    --color-danger: #dc3545;
    --color-danger-subtle: #f8d7da;
    --color-success: #198754;
    --color-success-subtle: #d1e7dd;
    --color-warning: #ffc107;
    --color-warning-subtle: #fff3cd;
    --color-blue: #194499;
    --color-blue-subtle: #cfe2ff;
    --color-dark: #141414;
    --color-white: #ffffff;
    --color-black: #000000;

    /* transitions; */
    --transition-base: 0.3s;
    --transition-lg: 0.5s;

    /* fonts */
    --main-font: "Inter", sans-serif;
    --heading-font: "Inter", sans-serif;

    --flip-item: 1;
}

html[lang="ar"] {
    --main-font: "Noto Naskh Arabic", sans-serif;
    --heading-font: "Droid Arabic Kufi", sans-serif;
    --flip-item: -1;
    line-height: 1.8;
}

html[lang="ar"] * {
    letter-spacing: normal !important;
}

html[lang="ar"] h1,
html[lang="ar"] .h1,
html[lang="ar"] h2,
html[lang="ar"] .h2,
html[lang="ar"] h3,
html[lang="ar"] .h3,
html[lang="ar"] h4,
html[lang="ar"] .h4,
html[lang="ar"] h5,
html[lang="ar"] .h5,
html[lang="ar"] h6,
html[lang="ar"] .h6 {
    line-height: 1.45;
}

body {
    height: auto;
    min-height: 100%;
    background-color: var(--color-bg);
    color: var(--color-dark);
    padding-bottom: 150px;
}

/* Start Rest Elements */
h1,
.h1 {
    font-size: 1.875rem;
    line-height: 1.278em;
}

h2,
.h2 {
    font-size: 1.625rem;
}

h3,
.h3 {
    font-size: 1.125rem;
}

h4,
.h4 {
    font-size: 0.875rem;
}

h5,
.h5 {
    font-size: 1.125rem;
}

h6,
.h6 {
    font-size: 1rem;
}

h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6 {
    padding: 0;
    margin: 0;
    font-weight: bold;
    font-family: var(--heading-font);
}

.btn,
button,
.header,
.nav-link,
.btn-lang-switch,
.nav-item {
    font-family: var(--heading-font);
}

*,
p {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    font-family: var(--main-font);
    padding: 0;
    margin: 0;
}


ul {
    list-style: none;
}

input {
    border: none;
    outline: none !important;
    transition: var(--transition-base);
}

input.my-input:focus {
    border-color: var(--color-primary-hover) !important;
}

a {
    text-decoration: none;
    color: inherit;
}


blockquote {
    font-style: italic;
    color: var(--color-muted);
    background-color: var(--color-bg-icon);
    text-align: center;
    border-radius: 12px;
    font-size: 18px;
    line-height: 1.556em;
    margin-block: 35px;
    padding: 50px 40px 60px;

    @media (min-width: 768px) {
        padding: 82px 126px 92px;
    }
}

/* End Rest Elements */

/* Start Components  */

.avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 20px;
    width: 41px;
    height: 41px;
    border-radius: 8px;
    background-color: var(--color-bg-icon);
    color: var(--color-icon);
    transition: var(--transition-base);

    &:hover {
        background-color: var(--color-bg);
        color: var(--color-dark);
    }
}

/* End Components  */

/* Start Helper Classes */

.section-padding {
    padding-top: 64px;
    padding-bottom: 64px;
}

.section-margin {
    margin-top: 64px;
    margin-bottom: 64px;
}

.gap-32 {
    gap: 32px;
}

.flex-1 {
    flex: 1;
}

.w-fit {
    width: fit-content;
}

.bg-dark {
    background-color: var(--color-dark);
}


.section-divider {
    margin-top: 64px;
    margin-bottom: 64px;
}


/* End Helper Classes */

/* Start Header  */

.header {
    position: fixed;
    padding: 12px;
    max-width: 100%;
    left: 50%;
    transform: translateX(-50%);
    bottom: 24px;
    background-color: var(--color-white);
    border-radius: 12px;
    z-index: 3;
    box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.1);

    .nav-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        color: var(--color-icon);
        transition: var(--transition-base);
        white-space: nowrap;

        &:is(.active, :hover) {
            color: var(--color-dark);

            .icon-container {
                color: var(--color-dark);
            }
        }
    }
}

.nav-menu {
    row-gap: 12px;

    .nav-link {
        display: flex;
        align-items: center;
        gap: 8px;
        border-radius: 8px;
        padding: 8px 12px;
        margin-inline: 8px;
        background-color: var(--color-bg);
    }
}



/* End Header  */
/* start home page  */
.about-section {
    margin-top: -32px;
}

.projects-section-divider {
    margin-bottom: 64px;
}

.card.card-link.card-project {
    display: flex;
    justify-content: space-between;
    padding-top: 39px;
    padding-inline-start: 25px;

    img {
        object-fit: cover;
        border-start-start-radius: 12px;
    }
}

/* end home page  */


/* start project page  */
.project-property {
    font-size: 18px;
    background-color: var(--color-bg-icon);

    .icon {
        width: 56px;
        height: 56px;
        background-color: color-mix(in srgb, var(--color-primary-subtle) 50%, transparent);
    }
}

/* end project page  */

/* start blogs page  */
.blog-section-divider {
    margin-top: 64px;
    margin-bottom: 64px;
}

/* end blogs page  */

/* start contact page  */
.card-form {
    border-radius: 16px;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.075);

    padding: 48px 24px;

    @media (min-width: 768px) {
        padding: 72px 86px;
    }
}

/* end contact page  */

/* Start Top Bar Language Switcher */
.lang-top-bar {
    background-color: transparent;
    position: relative;
    z-index: 10;
}

.btn-lang-switch {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-dark);
    background-color: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: all var(--transition-base) ease;
}

.btn-lang-switch:hover {
    color: var(--color-white);
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(255, 129, 63, 0.25);
}

.btn-lang-switch i {
    font-size: 1rem;
    color: var(--color-icon);
    transition: color var(--transition-base) ease;
}

.btn-lang-switch:hover i {
    color: var(--color-white);
}

/* End Top Bar Language Switcher */

/* Start Project Swiper and Lightbox */
.project-swiper {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.project-swiper .swiper-slide a {
    display: block;
    width: 100%;
    cursor: zoom-in;
}

.project-swiper .swiper-slide img {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: cover;
    display: block;
}

.single-project-image {
    position: relative;
    width: 100%;
    margin-inline: auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.single-project-image a {
    display: block;
    width: 100%;
    cursor: zoom-in;
}

.single-project-image img {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: cover;
    display: block;
}

.project-swiper .swiper-button-next,
.project-swiper .swiper-button-prev {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--color-primary, #ff813f) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.project-swiper .swiper-button-next:hover,
.project-swiper .swiper-button-prev:hover {
    background: var(--color-primary, #ff813f);
    color: var(--color-white, #fff) !important;
}

.project-swiper .swiper-button-next::after,
.project-swiper .swiper-button-prev::after {
    font-size: 16px;
    font-weight: bold;
}

.project-swiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    opacity: 1;
    transition: all 0.3s ease;
}

.project-swiper .swiper-pagination-bullet-active {
    background: var(--color-primary, #ff813f) !important;
    width: 24px;
    border-radius: 4px;
}

/* End Project Swiper and Lightbox */