/*==================================================
  1. استدعاء الخطوط المحلية (Almarai)
==================================================*/
@font-face {
    font-family: 'Almarai';
    src: url('../font/Almarai-Light.ttf') format('truetype');
    font-weight: 300;
}

@font-face {
    font-family: 'Almarai';
    src: url('../font/Almarai-Regular.ttf') format('truetype');
    font-weight: 400;
    /* الوزن العادي */
}

@font-face {
    font-family: 'Almarai';
    src: url('../font/Almarai-Bold.ttf') format('truetype');
    font-weight: 700;
}

@font-face {
    font-family: 'Almarai';
    src: url('../font/Almarai-ExtraBold.ttf') format('truetype');
    font-weight: 800;
}

/*==================================================
  2. متغيرات الألوان (الهوية المعتمدة)
==================================================*/
:root {
    --bs-primary: #000000;
    --bs-secondary: #b01c4a;
    --bs-body-color: #212529;
    --bs-body-bg: #FFFFFF;
    --color-dark-fuchsia: #b01c4a;
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-light-gray: #f8f9fa;
}

/*==================================================
  3. التنسيقات العامة (Global)
==================================================*/
body {
    font-family: 'Almarai', sans-serif;
    direction: rtl;
    text-align: right;
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
}

/* تنسيق الأيقونات (SVG Sprite) */
.icon {
    display: inline-block;
    width: 1em;
    /* يأخذ حجم الخط */
    height: 1em;
    /* يأخذ حجم الخط */
    vertical-align: -0.125em;
    fill: currentColor;
}

/*==================================================
  4. تنسيقات إضافية (Helpers & Utilities)
==================================================*/
.text-brand {
    color: var(--color-dark-fuchsia) !important;
}

.btn-brand {
    background-color: var(--color-dark-fuchsia);
    border-color: var(--color-dark-fuchsia);
    color: var(--color-white);
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-brand:hover {
    background-color: #8c163a;
    border-color: #8c163a;
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-outline-brand {
    border-color: var(--color-dark-fuchsia);
    color: var(--color-dark-fuchsia);
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-outline-brand:hover {
    background-color: var(--color-dark-fuchsia);
    color: var(--color-white);
}

.icon-sm {
    width: 1rem;
    height: 1rem;
}

/*==================================================
  5. تنسيق شريط التنقل (Navbar)
==================================================*/
.navbar-brand img {
    max-height: 45px;
}

.navbar .nav-link {
    font-weight: 700;
    color: var(--bs-body-color);
    transition: color 0.2s;
    padding: 0.5rem 1rem;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--color-dark-fuchsia);
}

/*==================================================
  6. تنسيق الواجهة الرئيسية (Hero)
==================================================*/
#heroCarousel .carousel-item img {
    height: 450px;
    width: 100%;
    object-fit: cover;
}

@media (max-width: 767px) {
    #heroCarousel .carousel-item img {
        height: 300px;
    }
}

/*==================================================
  7. تنسيق قسم "لماذا نحن" (Why Us)
==================================================*/
.card-why-us {
    transition: all 0.3s ease-in-out;
}

.card-why-us:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.card-why-us .icon {
    width: 30px;
    height: 30px;
    fill: var(--color-dark-fuchsia);
}

/*==================================================
  8. تنسيق معرض الأعمال المصغر (Portfolio)
==================================================*/
.card-portfolio {
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.card-portfolio:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* تنسيق لتوحيد حجم صور المعرض */
.portfolio-img-uniform {
    height: 250px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card-portfolio:hover .portfolio-img-uniform {
    transform: scale(1.05);
    /* تأثير زوم على الصورة */
}

/* تنسيق صندوق الشعار العائم */
.portfolio-img-wrapper {
    position: relative;
    overflow: hidden;
}

.portfolio-logo-box {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 5px;
    border-top-right-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-portfolio:hover .portfolio-logo-box {
    opacity: 1;
    /* إظهار الصندوق عند الهوفر */
}

.portfolio-logo-box img {

    width: 150px;
    display: block;
}

/*==================================================
  9. تنسيق الفوتر (Footer)
==================================================*/
footer .footer-links a {
    text-decoration: none;
    transition: color 0.2s;
}

footer .footer-links a:hover {
    color: var(--color-white) !important;
    transform: translateX(-3px);
}

footer .footer-contact-info a {
    text-decoration: none;
    transition: color 0.2s;
}

footer .footer-contact-info a:hover {
    color: var(--color-white) !important;
}

footer .footer-contact-info .icon {
    fill: var(--color-dark-fuchsia);
}

/* تنسيق أيقونات التواصل للمطور */
footer .btn-floating {
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/*==================================================
  10. (جديد) الأزرار العائمة
==================================================*/
.floating-buttons {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1030;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.floating-buttons a {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 26px;
    text-decoration: none;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.floating-buttons a:hover {
    transform: scale(1.1);
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-whatsapp-float {
    background-color: #25D366;
}

.btn-phone-float {
    background-color: #007bff;
    /* أزرق للاتصال */
}

.btn-instagram-float {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}