/* FONTS */
/* تعريف الخطوط المخصصة */
@font-face {
    font-family: "SaudiFont";
    src: url("../assets/fonts/SaudiWeb-Regular.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "SaudiFont";
    src: url("../assets/fonts/SaudiWeb-Bold.woff2") format("woff2");
    font-weight: bold;
    font-style: normal;
}

/* VARIABLES */
/* تعريف المتغيرات للألوان والخطوط والانتقالات */
:root {
    --c-dark: #212529;
    --c-brand: #002147;
    --c-brand-light: #096bdb;
    --c-brand-rgb: 78, 87, 212;
    --c-body: #727272;
    --font-base: "Noto Kufi Arabic", "Tajawal", sans-serif;
    --box-shadow: 0px 15px 25px rgba(17, 34, 119, 0.08);
    --transition: all 0.5s ease;
}

/* RESET & HELPERS */
/* إعادة تعيين الأنماط الأساسية ومساعدات */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-base);
    line-height: 1.7;
    color: var(--c-body);
    font-size: 16px;
    overflow-x: hidden;
    margin: 0;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: "SaudiFont", sans-serif;
    font-weight: 600;
    color: var(--c-dark);
}

a {
    text-decoration: none;
    color: var(--c-brand);
    transition: var(--transition);
}

a:hover {
    color: var(--c-brand-light);
}

img {
    width: 100%;
    height: auto;
    max-width: 100%;
}

.section-padding {
    padding-top: 80px;
    padding-bottom: 40px;
}

.theme-shadow {
    box-shadow: var(--box-shadow);
}

.square-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.btn-outline-primary {
    color: var(--c-brand);
    border-color: var(--c-brand);
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background-color: var(--c-brand-light);
    color: #fff;
    border-color: var(--c-brand-light);
}

.card {
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
}


.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--c-dark);
}

.navbar-nav .nav-link.active {
    color: var(--c-brand);
}

/* BTN */
/* أنماط الأزرار */
.btn, .btn-brand {
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    border-radius: 20px;
    padding: 10px 24px;
    background-color: var(--c-brand);
    border-color: var(--c-brand);
    color: white;
    transition: var(--transition);

    transition: var(--transition);
}

.btn:hover, .btn-brand:hover {
    background-color: var(--c-brand-light);
    border-color: var(--c-brand-light);
    color: white;
}

/* HERO */
/* أنماط قسم البطل */
#hero {
    margin-top: 20px;
    background: linear-gradient(rgba(var(--c-brand-rgb), 0.356), rgba(var(--c-brand-rgb), 0.312)), url("../assets/images/hero.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

/* SECTION TITLE */
/* أنماط عناوين الأقسام */
.section-title {
    margin-bottom: 60px;
}

.section-title .line {
    width: 60px;
    height: 4px;
    background-color: var(--c-brand);
    margin: 16px auto 24px auto;
}

.section-title p {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ICONBOX */
/* أنماط صناديق الأيقونات */
.iconbox {
    width: 70px;
    height: 70px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f8ff;
    color: var(--c-brand);
    font-size: 44px;
    flex: none;
}

.service {
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.service::after {
    content: "";
    width: 40px;
    height: 40px;
    background: rgba(var(--c-brand-rgb), 0.2);
    position: absolute;
    bottom: 0;
    right: 0;
    transition: var(--transition);
}

.service:hover::after {
    width: 100%;
    height: 100%;
    background: var(--c-brand);
    z-index: -1;
}

.service:hover h5,
.service:hover p {
    color: white;
}

.service:hover .iconbox {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

/* FOOTER */
/* أنماط التذييل */
footer {
    padding-top: 2rem;
    padding-bottom: 2rem;
    margin-top: 0;
}

.footer-icon {
    width: 22px;
    height: 22px;
}

.hover-opacity-100:hover {
    opacity: 1 !important;
    transition: all 0.4s ease-in-out;
}

/* Ensure containers are centered and prevent overflow */
.container {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
}

/* Fix horizontal scrolling and centering for RTL */
html, body {
    direction: rtl;
    text-align: right;
    width: 100%;
    overflow-x: hidden;
}

/* MEDIA QUERIES */
/* تعديلات للشاشات الصغيرة */
@media (max-width: 768px) {
    .section-padding {
        padding-top: 60px;
        padding-bottom: 40px;
    }
    #contact {
        padding-bottom: 40px;
    }
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    #hero {
        margin-top: 15px;
    }
    .navbar {
        padding: 5px 8px;
    }
}
#mainNavbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 10px 20px;
  font-size: 0.9rem;
  background-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
}
@media (max-width: 576px) {
  #mainNavbar {
    font-size: 0.8rem;
    padding: 8px 16px;
  }

  #mainNavbar .navbar-brand img {
    height: 24px;
  }

  #mainNavbar .nav-link {
    padding: 0.3rem 0.6rem;
  }
}
