:root {
    /* Color Palette - Light Theme */
    --primary: #F9C90D;
    --primary-dark: #d4a000;
    --secondary: #242527;
    --accent: #ffe066;
    --bg-body: #ffffff;
    --bg-card: #f6f7f9;
    --bg-nav: #f8fafcbd;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

    /* Fonts */
    --font-en: 'Inter', sans-serif;
    --font-ar: 'Cairo', sans-serif;
    --icon-: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    --bor-icon: #00000026;
    --op-img: 0.1;
    --img-back: url(../images/b.png);
    --vdioe-back: url(../images/v.webm);
    --bg-lay-header: #ffffff2e;
    --input-color: #ffffff;
    --input-border: #bfc7c5;
    --bg-lay: #ededed;
    --sh-color: #cdcccc;
    --url-points: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(1,1,1,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    --url-b: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23212529' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m2 5 6 6 6-6'/%3e%3c/svg%3e")
}

[data-theme="dark"] {
    /* Color Palette - Dark Theme */
    --primary: #F9C90D;
    --primary-dark: #d4a000;
    --secondary: #94a3b8;
    --accent: #ffe066;
    --bg-body: #2d2d2d;
    --bg-card: #1a1a1a;
    --bg-nav: #1a1a1abd;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.3), 0 4px 6px -4px rgb(0 0 0 / 0.3);
    --icon-: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28 255, 255, 255, 0.85 %29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    --bor-icon: #2d2d2d;
    --op-img: 1;
    --img-back: url(../images/);
    --vdioe-back: url(../images/vDark.mov);
    --bg-lay-header: #000000c7;
    --input-color: #111111;
    --input-border: #454545;
    --bg-lay: #151515;
    --sh-color: #141414;
    --url-points: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    --url-b: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

.accordion-button::after {
    background-image: var(--url-b) !important;
}

#map {
    height: 450px;
    width: 100%;
    border-radius: 1rem;
    z-index: 1;
}

#branch-map {
    height: 300px;
    width: 100%;
    border-radius: 1rem;
    z-index: 1;
}

.gallery-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.02);
}

.ri-search-line {
    color: var(--text-main);
}

.input-group-text.bg-card.border-end-0 {
    border-color: var(--input-border);
}

a.nav-link.nav-link-custom {
    font-size: 18px;
}

.scroll-anim {
    transition: transform 0.4s ease;
}

.hide-up {
    transform: translateY(-100%);
}

.hide-down {
    transform: translateY(100%);
}

.form-control {
    border-color: var(--input-border);
    color: var(--text-muted);
}

.form-control:focus {
    background: none;
    border: none;
    box-shadow: 0px 0px 0px 2px var(--primary);
    color: var(--text-main);
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: .7;
}

header {
    position: relative;
}

.header h1 {
    color: var(--primary);
}

/*
.header p {
    color: white;
}
*/

.bg-header,
.layout-h {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
}

.layout-h {
    backdrop-filter: blur(3px);
    /*    background-color: #00000047;*/
}

.fit {
    object-fit: cover;
}

/*-----------------------------*/

.header1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--url-points);
    opacity: 0.8;
}

#header-index {
    position: relative;
}

.video-background {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    /* يخلي الفيديو يغطي الشاشة */
    z-index: 0;
}

.video-background .content {
    position: relative;
    z-index: 1;
    color: #fff;
    text-align: center;
}

.layout-header-index {
    backdrop-filter: blur(2px);
    position: absolute;
    width: 105%;
    height: 105%;
    top: 0;
    left: 0;
    z-index: 0;
    background: var(--bg-lay-header);
}

.cont-why-icon {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.Why_Choose .cont-why {
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    border: 1px solid var(--border-color);

}

/* Base Styles */
body {
    /*    background-image: var(--img-back);*/
    background-repeat: no-repeat;
    background-position: 100% 100%;
    background-attachment: fixed;
    background-size: cover;

    font-family: var(--font-en);
    background-color: var(--bg-body);
    color: var(--text-main);
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

html[lang="ar"] body {
    font-family: var(--font-ar);
}

a {
    text-decoration: none;
    color: var(--text-main);
    transition: color 0.2s;
}

a:hover {
    color: var(--primary);
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-normal {
    color: var(--text-main) !important;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.border-primary {
    border-color: var(--border-color);
}

/* Utilities */
.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-card {
    background-color: var(--bg-card) !important;
}

.bg-body {
    background-color: var(--bg-body) !important;
}

.shadow-custom {
    box-shadow: var(--shadow-md);
}

.rounded-custom {
    border-radius: 0.75rem;
}

.shadowP {
    box-shadow: 0 4px 7px rgba(0, 0, 0, 0.1) !important;
}

/* Buttons */
.btn-custom {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary-custom {
    background-color: var(--primary);
    color: #000;
    border: none;
}

.btn-primary-custom:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    color: #000;
}

.btn-outline-custom {
    border: 2px solid var(--border-color);
    color: var(--text-main);
    background: transparent;
}

.btn-outline-custom:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Cards */
.card-custom {
    background-color: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-custom:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Navbar */
.navbar-custom {
    box-shadow: 0 -1px 9px 2px var(--sh-color) !important;
    background-color: var(--bg-card) !important;
    padding: .5rem 0;
}

.nav-link-custom {
    font-weight: 500;
    color: var(--text-main);
    padding: 0.5rem 1rem;
}

.nav-link-custom:hover,
.nav-link-custom.active,
.link-mob.active {
    position: relative;
    color: var(--primary) !important;
}

.navbar-toggler {
    border-color: var(--bor-icon);
}

.navbar-toggler-icon {
    background-image: var(--icon-);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    right: 50%;
    transform: translateX(50%);
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

/*------------nav-mobile-----------------*/
.nav-mobile {
    backdrop-filter: blur(33px);
    box-shadow: 0 1px 9px 2px var(--sh-color) !important;
    padding: 5px 0;
    display: flex;
    z-index: 99;
    position: fixed;
    bottom: 0;
    right: 0;
    width: 100%;
    background: #1a1a1a00;
    justify-content: center;
}

.nav-mobile span {
    font-size: 15px;
    cursor: pointer;
}

.nav-mobile i {
    padding-bottom: 4px;
    font-size: 20px;
}

/* Footer */
.footer-custom {
    background-color: var(--bg-body);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
    margin-top: auto;
    position: relative;
}

.footer-custom .container {
    position: relative;
    z-index: 9;
}

.cont-img-footer {
    position: absolute;
    top: 10px;
    left: 0;
    width: 100%;
    height: 90%;
    overflow: hidden;
    opacity: var(--op-img);
    align-items: center;
    display: flex;
}

.cont-img-footer img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/*///////////////*/
.section-title {
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--primary);
    margin: 1rem auto;
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    text-align: center;
}

.timeline-dot {
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    background: var(--bg-card);
    /* border: 3px solid var(--p-color); */
    color: white;
    font-weight: bold;
    margin: 0 auto 15px;
    font-size: 18px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-content {
    background: #fff;
    border-radius: 12px;
    padding: 15px 20px;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    max-width: 80%;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: var(--primary);
    transform: translateX(-50%);
}

.timeline {
    position: relative;
    margin: 0px auto;
    padding: 0 20px;
    max-width: 600px;
}

/*///////////////*/
#services-grid .card-custom {
    background-color: var(--bg-card);
}

.d-blog {
    border-radius: 20px;
}

/* Animations */
[data-aos] {
    opacity: 0;
    transition-property: transform, opacity;
}

[data-aos].aos-animate {
    opacity: 1;
}

/* RTL Specifics */
html[dir="rtl"] .me-2 {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

html[dir="rtl"] .ms-2 {
    margin-right: 0.5rem !important;
    margin-left: 0 !important;
}

html[dir="rtl"] .text-end {
    text-align: left !important;
}

.top-icon-why {
    height: 150px;
}

/* Bootstrap RTL fix if needed */

/* Responsive */
@media (max-width: 768px) {
    background-color: var(--primary) !important;
}

.bg-card {
    background-color: var(--bg-card) !important;
}

.bg-body {
    background-color: var(--bg-body) !important;
}

.shadow-custom {
    box-shadow: var(--shadow-md);
}

.rounded-custom {
    border-radius: 0.75rem;
}

.menu-overlay.show {
    z-index: 9;
    backdrop-filter: blur(6px);
    position: fixed;
    height: 100%;
    width: 100%;
}

/* Bootstrap RTL fix if needed */

/* Responsive */
@media (max-width: 768px) {
    .card-custom {
        padding: 1.5rem;
    }
}

.navbar-custom.navbar-scrolled {
    padding: 5px 0;
    background-color: #ffffff00 !important;
    backdrop-filter: blur(30px);
    box-shadow: var(--shadow-md) !important;
}

.why-icon {
    font-size: 60px !important;
}

@media (min-width: 992px) {
    html {
        font-size: 16px;
    }

    /* Desktop Navbar Styles */
    .navbar-custom {
        padding: 1.5rem 0;
        background-color: transparent !important;
        box-shadow: none !important;
        transition: all 0.4s ease;
    }

    .navbar-custom .navbar-brand {
        font-size: 1.75rem;
        transition: font-size 0.4s ease;
    }

    .navbar-custom.navbar-scrolled .navbar-brand {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {

    h4,
    h5 {
        font-size: 20px;
    }

    p {
        font-size: 16px;
    }

    a {
        font-size: 18px;
    }

    .Why_Choose .row {
        justify-content: center !important;
    }

    .cont-why {
        width: 95%;
    }

    .cont-why-icon {
        width: 70px;
        height: 70px;
    }

    .why-icon {
        font-size: 40px !important;
    }

    .services-cards {
        padding: 3px;
    }

    .services-cards .card-custom {
        display: flex;
        padding: 15px 10px !important;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        text-align: center;
    }

    .services-cards .card-custom p {
        margin-bottom: 15px !important;
    }

    .number-index {
        padding: 5px 0px !important;
    }

    .tob-numb {
        width: 90px !important;
        height: 90px !important;
    }

    .cont-icon-numb {
        display: flex;
        width: 70px !important;
        height: 70px !important;
        justify-content: center;
        align-items: center;
    }

    .icon-numb {
        font-size: 40px !important;
    }

    .top-icon-why {
        height: auto;
    }

    .timeline-content {
        max-width: 100%;
    }

    .timeline {
        margin: 0px auto;
        padding: 0;
    }
}

.logo-img {
  height: 60px;
  width: auto;
}

@media (max-width: 480px) {
  .logo-img {
    height: 45px;
  }
}
