@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --header-height: 3.5rem;

    --first-color: hsl(18, 95%, 55%);
    --second-color: hsl(42, 98%, 52%);
    --first-gradient: linear-gradient(135deg, hsl(18, 95%, 55%), hsl(18, 98%, 64%));

    --title-color: hsl(255, 12%, 12%);
    --text-color: hsl(255, 12%, 24%);
    --text-color-light: hsl(255, 4%, 70%);
    --body-color: hsl(0, 0%, 100%);
    --container-color: hsl(0, 0%, 100%);
    --white-color: hsl(0, 0%, 100%);
    --black-color: hsl(255, 20%, 10%);
    --gray-border: hsl(255, 6%, 90%);
    --black-border: hsl(255, 10%, 20%);

    --body-font: "Montserrat", sans-serif;
    --big-font-size: 2.25rem;
    --h1-font-size: 1.5rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1rem;
    --normal-font-size: .938rem;
    --small-font-size: .813rem;

    --font-regular: 400;
    --font-medium: 500;
    --font-semi-bold: 600;
    --font-bold: 700;

    --z-tooltip: 10;
    --z-fixed: 100;
}

@media screen and (min-width: 1150px) {
    :root {
        --big-font-size: 3.2rem;
        --h1-font-size: 2.1rem;
        --h2-font-size: 1.4rem;
        --h3-font-size: 1.15rem;
        --normal-font-size: 0.98rem;
        --small-font-size: .875rem;
    }
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
    overflow-x: hidden;
}

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
    color: var(--text-color);
    overflow-x: hidden;
    transition: background-color .4s, color .4s;
}

h1, h2, h3, h4 {
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

button,
input,
textarea,
select {
    font: inherit;
}

.container {
    width: min(1120px, calc(100% - 2rem));
    margin-inline: auto;
}

.section {
    padding-block: 4.5rem 2rem;
    overflow: hidden;
}

.section__title, .section__subtitle {
    text-align: center;
}

.section__title {
    font-size: var(--h1-font-size);
    font-weight: var(--font-bold);
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
}

.section__subtitle {
    display: block;
    font-size: var(--normal-font-size);
    font-weight: var(--font-semi-bold);
    color: var(--second-color);
    margin-bottom: .5rem;
    letter-spacing: .08em;
}

.section__text {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-color);
    line-height: 1.8;
}

.grid {
    display: grid;
    gap: 1.25rem;
}

.main {
    overflow: hidden;
}

.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background-color: transparent;
    z-index: var(--z-fixed);
    transition: background-color .4s, box-shadow .4s, backdrop-filter .4s;
}

.nav {
    position: relative;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    display: flex;
    align-items: center;
    column-gap: .35rem;
}

.nav__logo span {
    color: var(--white-color);
    font-weight: var(--font-bold);
    font-size: 1.15rem;
    letter-spacing: 0.05em;
    transition: color .4s;
}

.nav__logo i {
    color: var(--first-color);
    font-size: 1.7rem;
}

.nav__toggle, .nav__close {
    font-size: 1.5rem;
    color: var(--white-color);
    cursor: pointer;
    transition: color .4s;
}

@media screen and (max-width: 1150px) {
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        inset-inline-end: -100%;
        background-color: var(--black-color);
        width: 82%;
        height: 100vh;
        height: 100dvh;
        z-index: 100;
        padding: 7.5rem 2rem 3rem;
        border-inline-start: 1px solid rgba(255, 255, 255, 0.1);
        transition: inset-inline-end .4s, right .4s, left .4s;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
    }
    
    .nav__lang-toggle {
        margin-top: 2rem;
        align-self: flex-start;
    }
}

.nav__list {
    display: flex;
    flex-direction: column;
    row-gap: 3rem;
}

.nav__link {
    color: var(--text-color-light);
    font-weight: var(--font-semi-bold);
    transition: color .4s;
}

.nav__link:hover {
    color: var(--first-color);
}

.nav__close {
    position: absolute;
    top: 1rem;
    inset-inline-end: 1.5rem;
}

.nav__lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    color: var(--white-color);
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
}
.nav__lang-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--first-color);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--first-gradient);
    color: var(--white-color);
    font-weight: var(--font-semi-bold);
    padding: 1rem 1.8rem;
    border-radius: 14px;
    transition: box-shadow .4s, transform .4s, opacity .4s;
    border: none;
    cursor: pointer;
}

.button:hover {
    box-shadow: 0 10px 30px hsla(18, 95%, 55%, .4);
    color: var(--white-color);
    transform: translateY(-3px);
}

.show-menu {
    right: 0 !important;
    inset-inline-end: 0 !important;
}

[dir="rtl"] .nav__menu {
    right: auto;
    left: -100%;
}

[dir="rtl"] .show-menu {
    left: 0 !important;
    right: auto !important;
}

.home {
    position: relative;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 122, 56, 0.16), transparent 24%),
        radial-gradient(circle at 85% 18%, rgba(255, 184, 72, 0.12), transparent 22%),
        linear-gradient(135deg, rgba(18, 16, 28, 0.98), rgba(23, 20, 34, 0.96));
    min-height: 100svh;
    padding-top: calc(var(--header-height) + 1rem);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.home::before,
.home::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(2px);
}

.home::before {
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(255, 122, 56, 0.13), transparent 70%);
    top: -110px;
    left: -120px;
}

.home::after {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(255, 184, 72, 0.10), transparent 70%);
    right: -90px;
    bottom: 30px;
}

.home__container {
    position: relative;
    row-gap: 1.8rem;
    padding-block: 0 1.5rem;
    align-items: center;
}

.home__content {
    row-gap: 1.3rem;
}

.home__data {
    text-align: start;
    max-width: 620px;
}

.home__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: var(--second-color);
    font-weight: var(--font-bold);
    letter-spacing: .09em;
    text-transform: uppercase;
    font-size: .78rem;
    margin-bottom: .95rem;
}

.home__eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    border-radius: 999px;
    background: var(--second-color);
    opacity: .9;
}

.home__title {
    color: var(--white-color);
    font-size: clamp(2.2rem, 4vw, 4.6rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
    margin-bottom: .95rem;
    max-width: 14ch;
}

.home__description {
    color: var(--text-color-light);
    font-size: 1rem;
    line-height: 1.8;
    max-width: 58ch;
    margin-bottom: 1.5rem;
}

.home__buttons {
    display: flex;
    align-items: center;
    gap: 1rem 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.home__info {
    display: flex;
    gap: .85rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.home__info-card {
    min-width: 128px;
    padding: 1rem 1.05rem;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(12px);
    box-shadow: 0 14px 30px rgba(0,0,0,.18);
    transition: transform 0.3s;
}

.home__info-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,.2);
}

.home__info-title {
    color: var(--second-color);
    font-size: 1.9rem;
    line-height: 1;
    margin-bottom: .35rem;
}

.home__info-description {
    color: var(--white-color);
    font-size: .86rem;
    line-height: 1.35;
}

.home__images {
    justify-self: center;
    width: min(100%, 520px);
}

.home__visual-card {
    position: relative;
    padding: .9rem;
    border-radius: 28px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 24px 60px rgba(0,0,0,.28);
    backdrop-filter: blur(12px);
    transition: transform 0.4s ease;
}

.home__visual-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.home__visual-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 28px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,122,56,.45), rgba(255,255,255,.08), rgba(255,184,72,.25));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}

.home__img-1 {
    width: 100%;
    border-radius: 16px;
    object-fit: contain;
}

.home__lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right;
    opacity: .12;
}

.button__link {
    display: flex;
    align-items: center;
    column-gap: .35rem;
    color: var(--first-color);
    font-weight: var(--font-semi-bold);
    transition: color .4s;
}

.button__link i {
    font-size: 1.45rem;
    transition: transform .4s;
}

.button__link:hover {
    color: var(--second-color);
}

.button__link:hover i {
    transform: translateX(.4rem);
}

.bg-header {
    background-color: rgba(255,255,255,.92);
    backdrop-filter: blur(14px);
    box-shadow: 0 4px 16px hsla(255, 90%, 8%, .1);
}

.bg-header .nav__logo span,
.bg-header .nav__toggle,
.bg-header .nav__lang-toggle {
    color: var(--text-color);
    border-color: var(--text-color-light);
}

.active-link {
    color: var(--first-color) !important;
}

/* ABOUT COMPANIES SLIDER */
.about-companies {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #fff 0%, #fff8f3 100%);
    padding-block: 3rem 2rem;
}

.about-companies__container {
    display: grid;
    justify-items: center;
    text-align: center;
    row-gap: .6rem;
}

.about-companies__eyebrow {
    display: inline-block;
    color: var(--second-color);
    font-weight: var(--font-bold);
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .8rem;
}

.about-companies__heading {
    font-size: var(--h1-font-size);
    font-weight: var(--font-bold);
    letter-spacing: -0.02em;
    max-width: 22ch;
}

.about-companies__text {
    color: var(--text-color);
    max-width: 620px;
    line-height: 1.8;
    margin-bottom: .5rem;
}

.about-companies__slider {
    width: 100%;
    max-width: 1100px;
    margin-top: 1rem;
    padding-bottom: 1rem;
    overflow: hidden;
}

.about-companies__card {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 140px;
    padding: 1.25rem;
    background: #fff;
    border: 2px solid var(--black-color);
    border-radius: 20px;
    box-shadow: 0 12px 28px hsla(255, 20%, 10%, .06);
    transition: transform .3s, border-color .3s, box-shadow .3s;
}

.about-companies__card:hover {
    transform: translateY(-4px);
    border-color: var(--first-color);
    box-shadow: 0 18px 36px hsla(255, 20%, 10%, .12);
}

.about-companies__image {
    max-width: 100%;
    max-height: 90px;
    width: auto;
    object-fit: contain;
}

.about-companies__pagination {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .4rem;
    margin-top: 1.25rem;
    min-height: 8px;
}

.about-companies__pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    opacity: .35;
    background: hsl(255, 12%, 12%);
    border-radius: 999px;
    cursor: pointer;
}

.about-companies__pagination .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--first-color);
}

.about-companies__controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.about-companies__btn {
    position: relative;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 122, 56, .12), rgba(255, 122, 56, .05));
    border: 1.5px solid rgba(255, 122, 56, .28);
    color: var(--first-color);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 10px 20px rgba(0, 0, 0, .07);
    cursor: pointer;
    transition: transform .3s ease, box-shadow .3s ease, background .3s ease, color .3s ease, border-color .3s ease;
}

.about-companies__btn i {
    font-size: 1.25rem;
    line-height: 1;
}

.about-companies__btn:hover {
    transform: translateY(-2px);
    border-color: transparent;
    background: linear-gradient(135deg, var(--first-color), hsl(18, 98%, 62%));
    color: var(--white-color);
    box-shadow: 0 14px 28px hsla(18, 95%, 55%, .22);
}

@media screen and (min-width: 1150px) {
    .about-companies {
        padding-block: 4rem 2.5rem;
    }
}

/* SERVICES */
.services {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #fffaf6 0%, #ffffff 100%);
}

.services__container {
    position: relative;
    row-gap: 2rem;
    padding-bottom: 3rem;
}

.services__data {
    display: grid;
    gap: 1rem;
    align-items: stretch;
    padding: 1.35rem;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255, 248, 243, 0.96), rgba(255, 239, 228, 0.96));
    border: 2px solid var(--black-color);
    box-shadow: 0 18px 45px hsla(255, 20%, 10%, 0.06);
    backdrop-filter: blur(12px);
}

.services__heading {
    display: grid;
    gap: 0.35rem;
}

.services__subtitle {
    text-align: start;
    margin-bottom: 0;
}

.services__section-title {
    text-align: start;
    margin-bottom: 0;
}

.services__lead {
    padding: 1.1rem 1.2rem;
    border-inline-start: 4px solid var(--first-color);
    background: rgba(255, 122, 56, 0.06);
    border-radius: 20px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.services__description {
    margin: 0;
    max-width: none;
    line-height: 1.85;
    color: var(--text-color);
    font-size: 1rem;
}

.services__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.services__meta-item {
    min-width: 135px;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    background: rgba(255, 249, 244, 0.95);
    border: 2px solid var(--black-color);
    box-shadow: 0 8px 18px hsla(255, 20%, 10%, 0.04);
    display: flex;
    flex-direction: column;
}

.services__meta-item strong {
    font-size: 1.2rem;
    color: var(--first-color);
    line-height: 1.1;
}

.services__meta-item span {
    font-size: 0.85rem;
    color: var(--text-color);
    margin-top: 0.25rem;
}

.services__slider {
    position: relative;
    width: 100%;
    padding: 1rem 0 4.8rem;
    overflow: hidden;
    z-index: 1;
}

.services__swiper {
    width: 100%;
    padding: 0.5rem 0 3rem;
    overflow: hidden;
}

.swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.swiper-slide {
    height: auto;
    display: flex;
}

.services__card {
    width: 100%;
    height: 100%;
    min-height: 500px;
    background: linear-gradient(180deg, #fff7f1 0%, #fff0e5 100%);
    border: 2px solid var(--black-color);
    border-radius: 26px;
    padding: 1rem 1rem 1.25rem;
    transition: border-color 0.35s, transform 0.35s, box-shadow 0.35s;
    position: relative;
    z-index: 2;
    box-shadow: 0 12px 28px hsla(255, 20%, 10%, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
}

.services__card:hover {
    border-color: var(--first-color);
    transform: translateY(-5px);
    box-shadow: 0 18px 36px hsla(255, 20%, 10%, 0.12);
}

.services__media {
    width: 100%;
    height: 175px;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 0, 0, .12);
    background: #f5efe8;
    flex-shrink: 0;
}

.services__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.services__card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.services__icon {
    width: 58px;
    height: 58px;
    background: var(--first-gradient);
    color: var(--white-color);
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 1.7rem;
    box-shadow: 0 10px 24px hsla(18, 95%, 55%, 0.28);
    flex-shrink: 0;
}

.services__title {
    font-size: 1.15rem;
    line-height: 1.25;
    margin-bottom: .8rem;
    min-height: 3.45rem;
    display: flex;
    align-items: flex-end;
}

.services__card p {
    line-height: 1.65;
    color: var(--text-color);
    font-size: .95rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: auto;
}

.services__shape {
    position: absolute;
    width: 100%;
    height: 190px;
    background: linear-gradient(180deg, #2a2531 0%, #1f1a26 100%);
    bottom: 0;
    left: 0;
    z-index: 0;
    border-radius: 28px 28px 0 0;
}

.services__controls {
    position: absolute;
    left: 50%;
    bottom: 1.05rem;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 4;
    background: transparent;
}

.services__controls .swiper-button-prev,
.services__controls .swiper-button-next {
    position: relative !important;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 122, 56, .12), rgba(255, 122, 56, .05));
    border: 1.5px solid rgba(255, 122, 56, .28);
    color: var(--first-color);
    display: grid;
    place-items: center;
    transition: transform .3s ease, background .3s ease, color .3s ease;
    margin: 0 !important;
}

.services__controls .swiper-button-prev::after,
.services__controls .swiper-button-next::after {
    display: none;
}

.services__controls .swiper-button-prev:hover,
.services__controls .swiper-button-next:hover {
    background: var(--first-gradient);
    color: var(--white-color);
    transform: translateY(-2px);
}

.services__pagination {
    bottom: 0.45rem !important;
}

/* ==================== PROJECTS SECTION - 5 CARDS IN ONE ROW ==================== */
.projects {
    background-color: var(--black-color);
    position: relative;
}

.projects .section__title {
    color: var(--white-color);
}

.projects__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-block: 2rem 3.5rem;
}

.projects__card {
    position: relative;
    perspective: 1200px;
    min-height: 320px;
    height: 320px;
    border-radius: 26px;
    outline: none;
}

.projects__card:hover,
.projects__card:focus-within {
    transform: translateY(-8px);
}
.projects__card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 320px;
    transform-style: preserve-3d;
    transition: transform .7s cubic-bezier(0.4, 0, 0.2, 1);
}

.projects__card:hover .projects__card-inner,
.projects__card:focus .projects__card-inner,
.projects__card:focus-within .projects__card-inner {
    transform: rotateY(180deg);
}

.projects__face {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
    transition: border-color .4s ease, box-shadow .4s ease;
}

.projects__face--front {
    position: absolute;
    background: #0b0a10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.projects__face--back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, #181420 0%, #282133 100%);
    display: grid;
    place-items: center;
    padding: 1.5rem 1.1rem;
}

.projects__img-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin: 0;
}

.projects__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background: #0b0a10;
    transition: none;
}

.projects__card:hover .projects__img,
.projects__card:focus .projects__img,
.projects__card:focus-within .projects__img {
    transform: none;
}

/* Front text is intentionally hidden; the image is the entire front face. */
.projects__data {
    display: none !important;
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 1.15rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(10, 8, 14, 0.42) 12%,
        rgba(10, 8, 14, 0.90) 100%
    );
    color: var(--white-color);
    min-height: 45%;
}

.projects__data-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
}

.projects__eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .3rem .65rem;
    border-radius: 50px;
    background: rgba(255, 122, 56, 0.16);
    color: #ffd6c3;
    font-size: .68rem;
    font-weight: var(--font-bold);
    letter-spacing: .03em;
    border: 1px solid rgba(255, 122, 56, 0.32);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: background .3s ease, transform .3s ease;
}

.projects__card:hover .projects__eyebrow,
.projects__card:focus .projects__eyebrow,
.projects__card:focus-within .projects__eyebrow {
    background: rgba(255, 122, 56, 0.24);
    transform: translateY(-1px);
}

.projects__title {
    font-size: 1rem;
    font-weight: var(--font-bold);
    line-height: 1.3;
    color: var(--white-color);
    margin: 0;
    transition: color .3s ease;
}

.projects__description {
    font-size: .78rem;
    color: rgba(255, 255, 255, .82);
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.projects__back-content {
    text-align: center;
    color: var(--white-color);
    width: min(100%, 275px);
}

.projects__back-kicker {
    display: inline-block;
    font-size: .75rem;
    font-weight: var(--font-bold);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--second-color);
    margin-bottom: .65rem;
}

.projects__back-title {
    color: var(--white-color);
    font-size: 1.2rem;
    line-height: 1.3;
    margin-bottom: .6rem;
}

.projects__back-text {
    color: rgba(255,255,255,.78);
    font-size: .82rem;
    line-height: 1.65;
    margin-bottom: 1rem;
}

.projects__read-more {
    font-size: .8rem;
    padding: .8rem 1.1rem;
    border-radius: 12px;
}

.projects__card:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 184, 72, 0.7);
    border-radius: 22px;
}

/* ADMIN SECTION */
.administrative {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(255, 122, 56, 0.16), transparent 30%),
        radial-gradient(circle at top right, rgba(255, 184, 72, 0.14), transparent 26%),
        linear-gradient(180deg, #fff6ee 0%, #fff 45%, #fff4eb 100%);
    padding-block: 5rem 4.5rem;
}

.admin__header {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: 2rem;
}

.admin__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
    justify-items: center;
}

.admin__card {
    background: linear-gradient(180deg, rgba(255, 255, 255, .95) 0%, #fff7f0 100%);
    border: 2px solid rgba(30, 24, 36, 0.12);
    border-radius: 18px; 
    overflow: hidden;
    box-shadow: 0 14px 34px hsla(255, 20%, 10%, .08);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 220px;
}

.admin__img-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #f2ece6;
}

.admin__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform .35s ease;
}

.admin__card:hover .admin__img {
    transform: scale(1.05);
}

.admin__card:hover {
    transform: translateY(-6px);
    border-color: var(--first-color);
    box-shadow: 0 22px 46px hsla(255, 20%, 10%, .14);
}

.admin__content {
    padding: 0.85rem 0.5rem; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-grow: 1;
    width: 100%;
}

.admin__content h3 {
    font-size: 0.85rem;
    white-space: nowrap;
    margin-bottom: 0.25rem;
    color: var(--title-color);
    transition: color .3s ease;
}

.admin__card:hover .admin__content h3 {
    color: var(--first-color);
}

.admin__content p {
    line-height: 1.4;
    color: var(--text-color);
    font-size: 0.8rem; 
}

/* EVENTS */
.events {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #fff 0%, #fff9f4 100%);
}

.events__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.4rem;
    margin-top: 2rem;
}

.event__card {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    min-width: 0;
    overflow: hidden;
    border-radius: 26px;
    border: 2px solid rgba(30, 24, 36, 0.12);
    background: #1f1a26;
    box-shadow: 0 14px 34px hsla(255, 20%, 10%, .08);
    transition: transform .35s ease, border-color .35s ease;
}

.event__card:hover {
    transform: translateY(-8px);
    border-color: var(--first-color);
}

/* Dedicated square media area: prevents layout stretching and keeps the
   video/image rendering predictable at every screen size. */
.event__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #1f1a26;
}

.event__video,
.event__image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    min-width: 0;
    min-height: 0;
    object-fit: cover;
    object-position: center center;
    background: #1f1a26;
    border: 0;
    filter: none;
}

/* Keep video playback sharp and avoid accidental visual transforms. */
.event__video {
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.event__content {
    padding: 1.2rem;
}

.event__date {
    display: inline-block;
    font-size: .85rem;
    font-weight: var(--font-semi-bold);
    color: var(--first-color);
    margin-bottom: .7rem;
}

.event__card h3 {
    font-size: 1.08rem;
    color: var(--title-color);
}

/* CONTACT */
.contact__intro {
    margin-bottom: 2rem;
}

.contact__container {
    row-gap: 2rem;
    padding-block: 1.5rem 3rem;
}

.contact__visual {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 18px 40px hsla(255, 20%, 10%, .10);
    border: 2px solid rgba(30, 24, 36, 0.10);
}

.contact__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 5;
}

.contact__visual-overlay {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    padding: 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, .18);
    color: var(--white-color);
}

.contact__visual-kicker {
    font-size: .78rem;
    font-weight: var(--font-bold);
    color: var(--second-color);
}

.contact__visual-overlay h3 {
    color: var(--white-color);
    font-size: 1.15rem;
    margin-bottom: .35rem;
}

.contact__panel {
    display: grid;
    gap: 1.25rem;
}

.contact__cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.contact__card {
    background: linear-gradient(180deg, #fff8f3 0%, #fff1e7 100%);
    border: 2px solid var(--black-color);
    border-radius: 22px;
    padding: 1.35rem;
    text-align: center;
    transition: border-color .4s, transform .4s;
    box-shadow: 0 12px 28px hsla(255, 20%, 10%, .05);
}

.contact__card--link:hover {
    border-color: var(--first-color);
    transform: translateY(-3px);
}

.contact__icon {
    width: 52px;
    height: 52px;
    background: var(--first-gradient);
    color: var(--white-color);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.contact__title {
    font-size: var(--h2-font-size);
    margin-bottom: .45rem;
}

.contact__social {
    display: flex;
    justify-content: center;
    column-gap: 1rem;
    margin-top: .25rem;
}

.contact__social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    color: var(--first-color);
    background: rgba(255, 122, 56, .08);
    border: 1px solid rgba(255, 122, 56, .16);
    transition: transform .4s, background .4s, color .4s;
}

.contact__social-link:hover {
    transform: translateY(-.25rem);
    background: var(--first-gradient);
    color: var(--white-color);
}

/* FORM & TEXTAREA DESIGN */
.form__group {
    position: relative;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form__label {
    font-size: var(--normal-font-size);
    font-weight: var(--font-semi-bold);
    color: var(--title-color);
    letter-spacing: 0.02em;
}

.form__input,
.form__textarea {
    width: 100%;
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    color: var(--text-color);
    background: linear-gradient(180deg, #fff8f3 0%, #fff1e7 100%);
    border: 2px solid rgba(30, 24, 36, 0.15);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    resize: vertical;
}

.form__textarea {
    min-height: 160px;
    max-height: 350px;
}

.form__input::placeholder,
.form__textarea::placeholder {
    color: var(--text-color-light);
    opacity: 0.85;
}

.form__input:focus,
.form__textarea:focus {
    border-color: var(--first-color);
    background: var(--white-color);
    box-shadow: 0 0 0 4px hsla(18, 95%, 55%, 0.15), 0 8px 20px rgba(0, 0, 0, 0.05);
}

[dir="rtl"] .form__label,
[dir="rtl"] .form__input,
[dir="rtl"] .form__textarea {
    text-align: right;
}

/* FOOTER */
.footer {
    background-color: var(--black-color);
    color: var(--text-color-light);
    padding-block: 3.5rem 2rem;
}

.footer__container {
    row-gap: 3rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--black-border);
}

.footer__logo {
    display: inline-flex;
    align-items: center;
    column-gap: .25rem;
}

.footer__logo span {
    color: var(--white-color);
    font-size: var(--h3-font-size);
}

.footer__logo i {
    color: var(--first-color);
    font-size: 1.5rem;
}

.footer__content {
    grid-template-columns: repeat(2, max-content);
    gap: 3rem 2rem;
}

.footer__title {
    font-size: var(--h3-font-size);
    color: var(--white-color);
    margin-bottom: 1rem;
}

.footer__link:hover {
    color: var(--first-color);
}

.footer__social {
    display: flex;
    column-gap: 1rem;
}

.footer__social-link {
    font-size: 1.5rem;
    color: var(--first-color);
    transition: transform .4s;
}

.footer__social-link:hover {
    transform: translateY(-.25rem);
}

.footer__copy {
    display: block;
    text-align: center;
    font-size: var(--small-font-size);
    margin-top: 4rem;
}

/* SCROLL BAR */
::-webkit-scrollbar {
    width: .6rem;
    background-color: hsl(255, 5%, 75%);
}

::-webkit-scrollbar-thumb {
    background-color: hsl(255, 5%, 65%);
}

::-webkit-scrollbar-thumb:hover {
    background-color: hsl(255, 5%, 55%);
}

.scrollup {
    position: fixed;
    inset-inline-end: 1rem;
    bottom: -50%;
    background-color: var(--body-color);
    box-shadow: 0 4px 16px hsla(255, 90%, 8%, .15);
    color: var(--title-color);
    display: inline-flex;
    padding: 8px;
    border-radius: 12px;
    font-size: 1.25rem;
    z-index: var(--z-tooltip);
    transition: bottom .4s, transform .4s;
}

.scrollup:hover {
    transform: translateY(-.5rem);
}

.show-scroll {
    bottom: 3rem;
}

/* GLOBAL RESPONSIVE DESIGN BREAKPOINTS */
@media screen and (max-width: 340px) {
    .container {
        width: min(100%, calc(100% - 1rem));
    }
    .home__title {
        font-size: 1.75rem;
    }
    .home__buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer__content {
        grid-template-columns: repeat(1, max-content);
    }
    .contact__cards {
        grid-template-columns: 1fr;
    }
}

@media screen and (min-width: 540px) {
    .home__container,
    .services__container,
    .projects__container,
    .contact__container {
        grid-template-columns: 1fr;
        justify-content: center;
    }
    .footer__content {
        grid-template-columns: repeat(3, max-content);
    }
    .admin__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (min-width: 768px) {
    .nav__menu {
        width: 50%;
    }
    .projects__container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .footer__container {
        grid-template-columns: repeat(2, max-content);
        justify-content: space-between;
    }
    .events__grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .admin__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    .contact__container {
        grid-template-columns: 0.9fr 1.1fr;
        column-gap: 2rem;
        align-items: center;
    }
}

@media screen and (min-width: 1024px) {
    .projects__container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media screen and (min-width: 1150px) {
    .container {
        width: min(1180px, calc(100% - 2rem));
        margin-inline: auto;
    }
    .nav {
        height: calc(var(--header-height) + 2rem);
    }
    .nav__toggle, .nav__close {
        display: none;
    }
    .nav__menu {
        width: initial;
        display: flex;
        align-items: center;
        gap: 2rem;
    }
    .nav__list {
        flex-direction: row;
        align-items: center;
        column-gap: 2rem;
    }
    .home__container {
        grid-template-columns: 1.05fr .95fr;
        column-gap: 3.2rem;
        padding-top: 0;
        min-height: calc(100svh - var(--header-height) - 2rem);
        align-items: center;
    }
    .home__data {
        text-align: initial;
    }
    .home__title {
        font-size: clamp(2.8rem, 4.5vw, 5rem);
    }
    .projects > .container {
        width: min(1380px, calc(100% - 2rem));
    }

    .projects__container {
        width: 100%;
        margin-inline: auto;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 1.15rem;
    }

    .projects__card,
    .projects__card-inner {
        min-height: 350px;
        height: 350px;
    }

    .contact__container {
        grid-template-columns: 0.8fr 1.2fr; 
        column-gap: 3rem;
    }
}

/* ARABIC (RTL) SUPPORT OVERRIDES */
[dir="rtl"] {
    --body-font: "Tajawal", "Montserrat", sans-serif;
    text-align: right;
}

[dir="rtl"] .nav__logo {
    flex-direction: row-reverse;
}

[dir="rtl"] .button__link i {
    transform: rotate(180deg);
}
[dir="rtl"] .button__link:hover i {
    transform: rotate(180deg) translateX(0.4rem);
}

[dir="rtl"] .home__eyebrow::before {
    margin-right: 0;
    margin-left: 0.45rem;
}

[dir="rtl"] .services__subtitle,
[dir="rtl"] .services__section-title,
[dir="rtl"] .about__subtitle,
[dir="rtl"] .about__title {
    text-align: right;
}

[dir="rtl"] .footer__logo {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

/* ==================== PROJECT CARDS - FULL IMAGE / NO FRONT TEXT ==================== */
/* Keep the whole source image visible without cropping it. */
.projects__face--front {
    justify-content: center;
    align-items: center;
    background: #0f0d14;
}

.projects__img-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f0d14;
}

.projects__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: none !important;
}

/* Remove all text/overlay from the front face. */
.projects__face--front::after,
.projects__face--front .projects__data {
    display: none !important;
}

/* Keep the hover interaction focused on the flip only. */
.projects__card:hover .projects__img,
.projects__card:focus .projects__img,
.projects__card:focus-within .projects__img {
    transform: none !important;
}

/* Five cards in one row on normal desktop screens. */
@media screen and (min-width: 1150px) {
    .projects__container {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 1rem;
    }
}