:root {
    --primary-teal: #0d7c70;
    --navy-dark: #101828;
    --accent-yellow: #f4a261;
    --white: #ffffff;
    --text-nav: #374151;
    --bg-grid: rgba(255, 255, 255, 0.03);
}

body {
    font-family: "Tajawal", sans-serif;
    overflow-x: hidden;
    padding-top: 70px;
}

.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: all 0.3s;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
}

.nav-pill-container {
    background: #ffffff;
    border-radius: 50px;
    padding: 10px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
}

.nav-pill-menu li {
    list-style: none;
    margin: 0 12px;
}

.nav-pill-menu a {
    text-decoration: none;
    color: var(--text-nav);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-pill-menu a:hover,
.nav-pill-menu a.active {
    color: var(--primary-teal);
    font-weight: 700;
}

.search-pill {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    padding: 8px 18px;
    display: flex;
    align-items: center;
    width: 260px;
}

.search-pill input {
    border: none;
    outline: none;
    background: transparent;
    margin-right: 10px;
    width: 100%;
    font-size: 0.9rem;
    color: #4b5563;
}

.burger-icon {
    width: 35px;
    height: 35px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.burger-icon span {
    display: block;
    width: 18px;
    height: 2px;
    background-color: var(--navy-dark);
    border-radius: 2px;
}

.offcanvas {
    border-radius: 20px 0 0 20px;
}

.mobile-nav-list li {
    margin-bottom: 25px;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 15px;
}

.mobile-nav-list a {
    text-decoration: none;
    color: var(--text-nav);
    font-size: 1.1rem;
    font-weight: 500;
    display: block;
}

.mobile-nav-list a.active {
    color: var(--primary-teal);
    font-weight: 700;
}

.tech-footer {
    background-color: var(--primary-teal);
    color: white;
    padding-top: 100px;
    padding-bottom: 40px;
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

.footer-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--bg-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 1;
    pointer-events: none;
}

.footer-bg-arrow {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='1440' height='800' viewBox='0 0 1440 800' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1440 800H0V400C0 400 300 600 720 300C1140 0 1440 100 1440 100V800Z' fill='white' fill-opacity='0.05'/%3E%3Cpath d='M1200 800H800L1000 400L1200 800Z' fill='white' fill-opacity='0.03'/%3E%3C/svg%3E");
    background-size: cover;
    background-position: bottom center;
    background-repeat: no-repeat;
    z-index: 2;
    pointer-events: none;
}

.z-index-content {
    position: relative;
    z-index: 10;
}

.footer-badge {
    background-color: white;
    color: var(--primary-teal);
    display: inline-block;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
}

.footer-heading {
    font-weight: 800;
    font-size: 3.2rem;
    line-height: 1.3;
}

.footer-desc {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 450px;
    margin-left: auto;
}

.footer-socials a {
    width: 48px;
    height: 48px;
    background-color: rgba(16, 24, 40, 0.4);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.footer-socials a:hover {
    background-color: var(--navy-dark);
    transform: translateY(-5px);
}

.footer-card {
    display: block;
    background-color: var(--navy-dark);
    border-radius: 24px;
    padding: 45px 25px;
    text-align: center;
    text-decoration: none;
    color: white;
    position: relative;
    box-shadow: 10px 10px 0px var(--accent-yellow);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 20;
}

.footer-card:hover {
    transform: translate(5px, 5px);
    box-shadow: 5px 5px 0px var(--accent-yellow);
    color: white;
}

.icon-circle {
    font-size: 2.8rem;
    color: white;
}

.card-link-text {
    font-weight: 700;
    margin: 0;
    direction: ltr;
}

.copyright-text {
    opacity: 0.7;
    font-size: 0.95rem;
}

.footer-links-bottom a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    font-size: 0.95rem;
    transition: opacity 0.2s;
}

.footer-links-bottom a:hover {
    opacity: 1;
}

.mobile-bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    background-color: var(--navy-dark);
    border-radius: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    z-index: 9999;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.mobile-bottom-nav .nav-item {
    color: #9ca3af;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.3s;
    text-decoration: none;
}

.mobile-bottom-nav .nav-item.active {
    background-color: var(--primary-teal);
    color: white;
    width: auto;
    padding: 0 20px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 700;
}

.mobile-bottom-nav .nav-item.active i {
    margin-left: 8px;
    font-size: 1.1rem;
}

.mobile-bottom-nav .nav-item:hover:not(.active) {
    color: white;
}

@media (max-width: 991px) {
    .footer-heading {
        font-size: 2.2rem;
    }
    .footer-desc {
        margin: 0 auto 30px auto;
    }
    .footer-card {
        padding: 30px 15px;
    }
    .tech-footer {
        padding-bottom: 100px;
    }
}
.text-dark {
    --bs-text-opacity: 1;
    color: rgb(28 31 74) !important;
}
.search-pill {
    display: flex;
    align-items: center;
}

.search-pill input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    padding: 0 10px;
}
/* تنسيقات صفحة الخدمة */
.bg-teal {
    background-color: #0d7c70 !important;
}

.bg-white-10 {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.form-control.bg-white-10:focus {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    box-shadow: none;
}

.service-body img {
    max-width: 100%;
    border-radius: 10px;
    margin: 20px 0;
}

.service-body ul {
    padding-right: 20px;
}

.service-body h2,
.service-body h3 {
    color: #0f172a;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 15px;
}
/* ================= Custom Scrollbar ================= */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9; /* رمادي فاتح جداً */
}

::-webkit-scrollbar-thumb {
    background: #0d7c70; /* اللون الأساسي (Teal) */
    border-radius: 5px; /* تدوير الحواف */
    border: 2px solid #f1f5f9; /* حدود بيضاء ليعطي شكلاً مفصولاً */
}

::-webkit-scrollbar-thumb:hover {
    background: #0f172a; /* اللون الكحلي الغامق */
}

/* ================= Custom Cursor Interactions ================= */
html,
body {
    cursor: default; /* المؤشر الافتراضي للنظام ولكن يمكن استبداله بـ url لصورة مخصصة */
}

a,
button,
.btn,
.service-item,
.accordion-button {
    cursor: pointer;
}

::selection {
    background-color: rgba(13, 124, 112, 0.2); /* تركواز شفاف */
    color: #0d7c70;
}
.circle-decoration {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}
.social-btn-white {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}
.social-btn-white:hover {
    background: white;
    color: #0d7c70;
}
.form-floating > .form-control:focus,
.form-floating > .form-control:not(:placeholder-shown) {
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
}
.form-floating > .form-control:-webkit-autofill {
    background-color: #f8f9fa !important;
}
.input-group:not(.has-validation) > .dropdown-toggle:nth-last-child(n + 3),
.input-group:not(.has-validation)
    > .form-floating:not(:last-child)
    > .form-control,
.input-group:not(.has-validation)
    > .form-floating:not(:last-child)
    > .form-select,
.input-group:not(.has-validation)
    > :not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(
        .form-floating
    ) {
    border-top-right-radius: var(--bs-border-radius);
    border-bottom-right-radius: var(--bs-border-radius);
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
}
.input-group
    > :not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(
        .valid-feedback
    ):not(.invalid-tooltip):not(.invalid-feedback) {
    margin-left: calc(var(--bs-border-width) * -1);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-left-radius: var(--bs-border-radius);
    border-bottom-left-radius: var(--bs-border-radius);
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
}
/* ================= Error Pages Styling ================= */
.error-page-section {
    min-height: 80vh; /* تأخذ معظم الشاشة */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8fafc;
    position: relative;
    overflow: hidden;
}

/* النص الكبير لرقم الخطأ */
.error-code {
    font-size: 8rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, #0d7c70 0%, #0f172a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.8;
    position: relative;
    z-index: 2;
}

/* الأيقونة العائمة خلف الرقم */
.error-bg-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15rem;
    color: rgba(13, 124, 112, 0.05); /* لون خافت جداً */
    z-index: 1;
    pointer-events: none;
}

.error-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 30px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    text-align: center;
    max-width: 600px;
    width: 100%;
    position: relative;
    z-index: 2;
}
