@font-face {
    font-family: 'Tajawal';
    src: url('fonts/Tajawal.ttf');
}
body {
    font-family: "Tajawal", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial
}

html {
    transition: color .18s ease, background-color .18s ease;
    scroll-behavior: smooth
}

.layout {
    min-height: 100vh
}

.sidebar-right {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: auto;
    border-inline-start: 1px solid var(--bs-border-color);
}

.sidebar-left {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: auto;
    border-inline-end: 1px solid var(--bs-border-color);
}

.brand-logo {
    font-weight: 800;
    letter-spacing: .5px
}

.nav-vertical .nav-link {
    padding: .65rem .75rem;
    border-radius: .75rem
}

.nav-vertical .nav-link.active,
.nav-vertical .nav-link:hover {
    background: var(--bs-tertiary-bg)
}

.card-soft {
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .06)
}

/* Tiles base style (services / portfolio / blog) */
.tile {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    height: 260px;
    isolation: isolate;
    cursor: pointer;
}

.tile-bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    transition: transform .6s ease, filter .3s ease;
    z-index: -2
}

.tile-dim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, .6));
    z-index: -1;
    transition: opacity .3s ease
}

.tile-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 1rem;
    transition: transform .3s ease, opacity .3s ease
}

.tile:hover .tile-bg {
    transform: scale(1.08)
}

.tile:hover .tile-dim {
    opacity: .8
}

.tile:hover .tile-content {
    transform: translateY(-6px);
    opacity: .95
}

/* Hover animations (desktop) */
@media(hover:hover) {
    .tile:hover .tile-bg {
        transform: scale(1.08);
        filter: contrast(1.05) saturate(1.05)
    }

    .tile:hover .tile-dim {
        opacity: .8
    }

    .tile:hover .tile-content {
        transform: translateY(-6px);
        opacity: .98
    }

    .tile:hover .tile-content .fw-bold {
        transform: translateY(-2px);
        transition: transform .3s ease
    }

    /* Shine sweep */
    .tile::before {
        content: "";
        position: absolute;
        top: -20%;
        bottom: -20%;
        inset-inline-start: -30%;
        width: 35%;
        transform: skewX(-20deg) translateX(-120%);
        background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, .22) 45%, transparent 90%);
        filter: blur(1px);
        transition: transform .7s ease;
    }

    .tile:hover::before {
        transform: skewX(-20deg) translateX(350%)
    }
}

/* Reduced motion: minimize effects */
@media (prefers-reduced-motion:reduce) {

    .tile-bg,
    .tile-dim,
    .tile-content {
        transition: none !important
    }

    .tile::before {
        display: none
    }
}

/* Simple appear animation */
*/ @keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeInUp {
    animation: fadeInUp 1s ease forwards;
}

/* Logos strip */
.logo-item {
    opacity: .8;
    transition: opacity .2s ease, transform .2s ease
}

.logo-item:hover {
    opacity: 1;
    transform: translateY(-2px)
}

/* FAQ */
.accordion-button:not(.collapsed) {
    background: var(--bs-tertiary-bg)
}

/* Mobile top bar */
.mobile-topbar {
    position: fixed;
    top: 0;
    inset-inline: 0;
    z-index: 1040;
    border-bottom: 1px solid var(--bs-border-color);
    background: var(--bs-body-bg)
}

@media (max-width: 991.98px) {
    body {
        padding-top: 56px
    }
}

/* Mobile bottom nav */
.appbar {
    border-top: 1px solid var(--bs-border-color);
    background: var(--bs-body-bg)
}

.appbar .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .2rem;
    font-size: .8rem
}

@media (max-width: 991.98px) {

    .sidebar-right,
    .sidebar-left {
        display: none
    }
}