﻿
@font-face {
    font-family: 'Amiri'; /* اسم من اختيارك للخط */
    /*font-family: 'decotype-thuluth-iii';*/ /* اسم من اختيارك للخط */
    /*src: url('fonts/decotype-thuluth-iii.ttf') format('truetype');*/ /* المسار الصحيح للملف */
    src: url('fonts/AmiriQuran-Regular') format('truetype'); /* المسار الصحيح للملف */
    font-weight: normal;
    font-style: normal;
}
body {
    font-family: 'Amiri', serif;
    /* scroll-behavior is handled by JS for better offset control */
    overflow-x: hidden;
}

.amiri-regular {
    font-family: "Amiri", serif;
    font-weight: 400;
    font-style: normal;
}

.amiri-bold {
    font-family: "Amiri", serif;
    font-weight: 700;
    font-style: normal;
}

.amiri-regular-italic {
    font-family: "Amiri", serif;
    font-weight: 400;
    font-style: italic;
}

.amiri-bold-italic {
    font-family: "Amiri", serif;
    font-weight: 700;
    font-style: italic;
}

.text-gold {
    color: #c5a059;
}

.text-dark-blue {
    color: #0c121d;
}

.bg-gold {
    background-color: #c5a059;
}

.bg-dark-blue {
    background-color: #0c121d;
}

.gold-gradient {
    background: linear-gradient(135deg, #c5a059 0%, #9e7a3d 100%);
}

/* --- Scroll Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.5, 0, 0, 1);
}

    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s cubic-bezier(0.5, 0, 0, 1);
}

    .reveal-left.active {
        opacity: 1;
        transform: translateX(0);
    }

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 1s cubic-bezier(0.5, 0, 0, 1);
}

    .reveal-right.active {
        opacity: 1;
        transform: translateX(0);
    }

/* Staggered Delays */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

/* --- Header Improvements --- */
.main_header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.4s ease;
}

    .main_header.sticky-active {
        position: fixed;
        background: #0c121d;
        box-shadow: 0 5px 20px rgba(0,0,0,0.2);
        animation: slideDown 0.5s ease;
    }

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

.main_header.sticky-active .header_top {
    display: none;
}

.main_header.sticky-active .header_main_menu {
    margin: 0 auto;
    width: 100%;
    height: 80px;
    border-radius: 0;
    background: #ffffff;
}

.header_top {
    height: 50px;
    display: flex;
    align-items: center;
    padding: 0 8%;
    color: white;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header_main_menu {
    width: 85%;
    margin: 15px auto 0;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-radius: 2px;
    height: 100px;
    position: relative;
    transition: all 0.3s ease;
}

.main_navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
}

    .main_navigation ul li {
        position: relative;
        margin: 0 15px;
    }

        .main_navigation ul li a {
            display: block;
            padding: 38px 0;
            font-weight: 700;
            font-size: 14px;
            color: #0c121d;
            text-transform: uppercase;
            transition: 0.3s;
            position: relative;
        }

            .main_navigation ul li a::after {
                content: '';
                position: absolute;
                bottom: 30px;
                right: 0;
                width: 0;
                height: 2px;
                background-color: #c5a059;
                transition: width 0.3s ease;
            }

.main_header.sticky-active .main_navigation ul li a::after {
    bottom: 20px;
}

.main_navigation ul li a:hover::after {
    width: 100%;
}

.main_header.sticky-active .main_navigation ul li a {
    padding: 28px 0;
}

.main_navigation ul li:hover > a {
    color: #c5a059;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 250px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99;
    padding: 10px 0;
    border-top: 4px solid #c5a059;
    display: flex !important;
    flex-direction: column !important;
}

.main_navigation ul li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0 !important;
    width: 100% !important;
}

    .dropdown-menu li a {
        padding: 12px 25px !important;
        font-size: 13px !important;
        border-bottom: 1px solid #f2f2f2;
        text-align: right;
        width: 100%;
        font-weight: 600 !important;
    }

        .dropdown-menu li a::after {
            display: none;
        }

    .dropdown-menu li:last-child a {
        border-bottom: none;
    }

    .dropdown-menu li a:hover {
        background-color: #f9f9f9;
        color: #c5a059;
        padding-right: 30px !important;
    }

/* Sidebar & Mobile Menu */
.wide_side_inner {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100vh;
    background: white;
    z-index: 2000;
    transition: 0.5s ease-in-out;
    padding: 50px 30px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    overflow-y: auto;
}

    .wide_side_inner.open {
        right: 0 !important;
    }

.side_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 18, 29, 0.85);
    z-index: 1999;
    display: none;
    backdrop-filter: blur(5px);
}

.call_to_quote {
    background-color: #c5a059;
    color: white;
    padding: 0 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    min-width: 240px;
    position: relative;
}

/* --- Hero --- */
.hero-section {
    background: linear-gradient(rgba(12, 18, 29, 0.8), rgba(12, 18, 29, 0.8)), url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 120px;
}

/* --- Buttons --- */
.btn-main {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

    .btn-main::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: -1;
        transform: scaleX(0);
        transform-origin: right;
        transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .btn-main:hover::before {
        transform: scaleX(1);
        transform-origin: left;
    }

.btn-start {
    background: linear-gradient(135deg, #c5a059 0%, #9e7a3d 100%);
    color: white;
}

    .btn-start::before {
        background: #0c121d;
    }

.btn-about {
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
}

    .btn-about:hover {
        border-color: #c5a059;
    }

    .btn-about::before {
        background: #c5a059;
    }

/* --- Profile Cards --- */
.profile-card {
    background: white;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border-top: 3px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .profile-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        border-top-color: #c5a059;
    }

.card-icon-wrapper {
    width: 70px;
    height: 70px;
    background: #f9f9f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.4s ease;
    color: #c5a059;
    font-size: 28px;
}

.profile-card:hover .card-icon-wrapper {
    background: #c5a059;
    color: white;
    transform: rotateY(180deg);
}

    .profile-card:hover .card-icon-wrapper i {
        transform: rotateY(-180deg);
    }

.founder-card {
    background: #0c121d;
    color: white;
    position: relative;
    overflow: hidden;
    border-right: 5px solid #c5a059;
}

.founder-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23c5a059' fill-opacity='0.05' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
}

/* --- Principles Cards --- */
.principle-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 1rem;
    position: relative;
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

    .principle-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.08);
        border-bottom: 4px solid #c5a059;
    }

.p-icon {
    width: 80px;
    height: 80px;
    background: #fdfbf7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #c5a059;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
    border: 2px solid #f0e6d2;
}

.principle-card:hover .p-icon {
    background: #c5a059;
    color: white;
    border-color: #c5a059;
    transform: rotate(360deg);
}

.p-number {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 3rem;
    font-weight: 900;
    color: #f3f3f3;
    z-index: 0;
    line-height: 1;
    font-family: sans-serif;
}

.principle-card:hover .p-number {
    color: #fcf6e9;
}

.principle-content {
    position: relative;
    z-index: 1;
}

/* --- Split Design Sections --- */
.split-pattern-bg {
    background-color: #9e8b5a; /* Brownish Gold */
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='40' viewBox='0 0 24 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 40c5.523 0 10-4.477 10-10V10c0-5.523-4.477-10-10-10s-10 4.477-10 10v20c0 5.523 4.477 10 10 10z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
    color: white;
}

.diagonal-image-container {
    position: relative;
    height: 100%;
    min-height: 500px;
    overflow: hidden;
}

.diagonal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.diagonal-wrapper:hover .diagonal-image {
    transform: scale(1.05);
}

/* Diagonal Cut for Image on LEFT (Text on Right) */
@media (min-width: 1024px) {
    .diagonal-cut-right {
        position: absolute;
        top: 0;
        right: -1px;
        height: 100%;
        width: 15%;
        background: #9e8b5a;
        clip-path: polygon(100% 0, 0 0, 100% 100%);
        z-index: 10;
    }

    .diagonal-cut-left {
        position: absolute;
        top: 0;
        left: -1px;
        height: 100%;
        width: 15%;
        background: #9e8b5a;
        clip-path: polygon(0 0, 100% 100%, 0 100%);
        z-index: 10;
    }
}

/* --- Service Cards --- */
.service-card {
    position: relative;
    background: white;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    border-bottom: 4px solid transparent;
    z-index: 1;
}

    .service-card::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0%;
        height: 4px;
        background-color: #c5a059;
        transition: width 0.5s ease;
        margin: 0 auto;
        right: 0;
    }

    .service-card:hover {
        transform: translateY(-15px);
        box-shadow: 0 20px 40px rgba(197, 160, 89, 0.15);
    }

        .service-card:hover::after {
            width: 100%;
        }

.service-icon {
    transition: all 0.5s ease;
    position: relative;
    z-index: 2;
}

.service-card:hover .service-icon {
    background-color: #c5a059;
    color: white;
    transform: rotateY(180deg);
}

    .service-card:hover .service-icon i {
        transform: rotateY(-180deg);
    }

.service-link {
    transition: all 0.3s ease;
}

    .service-link i {
        transition: transform 0.3s ease;
    }

.service-card:hover .service-link {
    color: #c5a059;
    padding-right: 10px;
}

    .service-card:hover .service-link i {
        transform: translateX(-5px);
    }

/* --- Scroll to Top --- */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: #c5a059;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    z-index: 999;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

    .scroll-to-top.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .scroll-to-top:hover {
        background: #0c121d;
        transform: translateY(-5px);
    }

.sticky-nav {
    position: fixed !important;
    top: 0 !important;
    width: 100% !important;
    margin-top: 0 !important;
    animation: slideDown 0.5s ease;
}

/* --- CTA Section --- */
.cta-section {
    background-color: #c5a059;
    position: relative;
}

    .cta-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
        opacity: 0.3;
    }

@media (max-width: 1024px) {
    .header_main_menu {
        width: 95%;
        height: 80px;
    }

    .main_header.sticky-active .header_main_menu {
        width: 100%;
    }

    .call_to_quote {
        display: none;
    }

    .wide_side_inner {
        width: 300px;
    }

    .diagonal-cut-right, .diagonal-cut-left {
        display: none;
    }

}

/* --- Buttons --- */
.btn-gold {
    background: #c5a059;
    color: white;
    padding: 12px 30px;
    font-weight: 700;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

    .btn-gold:hover {
        background: #0c121d;
        transform: translateY(-3px);
    }

/* --- Contact Form --- */
.contact-input {
    width: 100%;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 15px;
    border-radius: 4px;
    outline: none;
    transition: 0.3s;
}

    .contact-input:focus {
        border-color: #c5a059;
        background: white;
        box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.1);
    }

/* --- Map Wrapper --- */
.map-container {
    filter: grayscale(1) invert(0.9) contrast(1.2);
    transition: 0.5s;
}

    .map-container:hover {
        filter: grayscale(0) invert(0) contrast(1);
    }

.sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100%;
    background: white;
    z-index: 2000;
    transition: 0.5s;
    padding: 40px;
}

    .sidebar.open {
        right: 0;
    }

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1999;
    display: none;
}

/* الباقة المميزة */
.package-item.active {
    border: 2px solid #c5a059;
    box-shadow: 0 20px 50px rgba(197, 160, 89, 0.2);
    transform: scale(1.05);
    z-index: 10;
}

    .package-item.active:hover {
        transform: scale(1.08) translateY(-10px);
    }

.badge-premium {
    background: #c5a059;
    color: white;
    position: absolute;
    top: 20px;
    right: -35px;
    transform: rotate(45deg);
    padding: 5px 40px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
/* --- Updated Package Cards & Animations --- */
.package-item {
    background: white;
    padding: 50px 30px;
    text-align: center;
    border: 1px solid #eee;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

    .package-item:hover {
        transform: translateY(-15px);
        box-shadow: 0 30px 60px rgba(0,0,0,0.1);
        border-color: #c5a059;
    }

.btn-gold {
    background: #c5a059;
    color: white;
    padding: 14px 35px;
    font-weight: 700;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    cursor: pointer;
}

    .btn-gold:hover {
        background: #0c121d;
        transform: translateY(-2px);
    }

.sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100%;
    background: white;
    z-index: 2000;
    transition: 0.5s;
    padding: 40px;
}

    .sidebar.open {
        right: 0;
    }

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1999;
    display: none;
}

/* --- Value Cards --- */
.value-card {
    padding: 30px 20px;
    background: white;
    border-radius: 8px;
    transition: 0.3s;
    border: 1px solid #f0f0f0;
}

    .value-card:hover {
        border-color: #c5a059;
        background: #fffdf9;
        transform: translateY(-5px);
    }
/* --- تصميم الكارد الفريد (Unique Naming) --- */
.rex-service-card {
    position: relative;
    background: #fff;
    border: 1px solid rgba(197, 160, 89, 0.1);
    border-radius: 12px;
    padding: 40px 30px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    z-index: 1;
    box-shadow: 0 10px 10px rgba(197, 160, 89, 0.15);
}

    .rex-service-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: #c5a059;
        transform: scaleX(0);
        transition: transform 0.5s ease;
        transform-origin: right;
    }

    .rex-service-card:hover {
        transform: translateY(-12px);
        box-shadow: 0 25px 50px -12px rgba(12, 18, 29, 0.15);
        border-color: #c5a059;
    }

        .rex-service-card:hover::before {
            transform: scaleX(1);
        }

/* رقم الخلفية الشفاف الفريد */
.rex-card-bg-number {
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 8rem;
    font-weight: 900;
    color: rgba(12, 18, 29, 0.03);
    line-height: 1;
    z-index: 0;
    transition: 0.5s;
    pointer-events: none;
}

.rex-service-card:hover .rex-card-bg-number {
    color: rgba(197, 160, 89, 0.08);
    transform: translateX(10px);
}

.rex-card-inner-content {
    position: relative;
    z-index: 2;
}

.rex-icon-wrapper {
    width: 70px;
    height: 70px;
    background: #f9f6f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 25px;
    transition: 0.5s;
    color: #c5a059;
    font-size: 1.8rem;
}

.rex-service-card:hover .rex-icon-wrapper {
    background: #c5a059;
    color: white;
    transform: rotateY(360deg);
}

.rex-sub-services-list {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s ease;
    margin-top: 0;
}

.rex-service-card:hover .rex-sub-services-list {
    max-height: 250px;
    opacity: 1;
    margin-top: 20px;
}

/* --- زر التصفح الذهبي التفاعلي --- */
.rex-btn-gold {
    background-color: #c5a059;
    color: white;
    transition: all 0.4s ease;
    border: 2px solid #c5a059;
}

    .rex-btn-gold:hover {
        background-color: #0c121d;
        border-color: #0c121d;
        transform: scale(1.05);
        box-shadow: 0 10px 20px rgba(12, 18, 29, 0.2);
    }

/* --- نافذة الخدمات الكاملة --- */
#rexFullServicesModal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(12, 18, 29, 0.96);
    backdrop-filter: blur(12px);
    overflow-y: auto;
    padding: 50px 20px;
}

.rex-modal-grid-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(197, 160, 89, 0.2);
    padding: 25px;
    border-radius: 8px;
    transition: 0.3s;
}

    .rex-modal-grid-card:hover {
        border-color: #c5a059;
        background: rgba(255, 255, 255, 0.08);
    }

.rex-footer-copyright {
    background-color: #0c121d;
    padding: 20px 0;
    border-top: 1px solid rgba(197, 160, 89, 0.2);
}

.rex-dev-tag {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(197, 160, 89, 0.1);
    padding: 4px 12px;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 15px; /* مسافة بين النص والتاج */
}

    .rex-dev-tag:hover {
        background: rgba(197, 160, 89, 0.08);
        border-color: #c5a059;
        transform: translateY(-2px);
    }