:root {
    --blue-dark: #2D7DD2;
    --blue: #6CB4FF;
    --red: #e30613;
    --light: #F8FBFF;
    --text: #243447;
}

* {
    box-sizing: border-box;
}

body {
    font-family: Arial, Tahoma, sans-serif;
    background: #fff;
    color: var(--text);
    overflow-x: hidden;
}

[dir="rtl"] body {
    font-family: Tahoma, Arial, sans-serif;
}

/* NAVBAR */

.dejlah-navbar{
    background: linear-gradient(
        90deg,
        #1b3f72 0%,
        #24508b 45%,
        #2d63a8 100%
    );

    backdrop-filter: blur(12px);
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
}

.logo {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.dejlah-logo {
    height: 75px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
    display: block;
    background: transparent;
}

.navbar-brand {
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    color: #fff !important;
    font-weight: 600;
}

.navbar-nav .nav-link {
    color: #fff !important;
    font-size: 18px;
    font-weight: 700;
    position: relative;
    transition: .3s;
}

.navbar-nav .nav-link:hover {
    color: #ff3b3b !important;
}

.navbar-nav .nav-link.active::after,
.navbar-nav .nav-link:hover::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 3px;
    background: #ff1f2d;
    border-radius: 20px;
}

.lang-btn {
    border: 1px solid rgba(255,255,255,.4);
    color: #fff;
    padding: 10px 18px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: .3s;
}

.lang-btn:hover {
    background: #fff;
    color: #001b44;
}

.navbar-toggler {
    border: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    filter: invert(1);
}

/* HERO SECTION */

/* HERO SECTION */

/* HERO SECTION */
/* HERO SECTION */

.hero-section {
    position: relative;
    width: 100%;
    height: calc(100vh - 99px);
    min-height: 850px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: #000;
}

.hero-section .container {
    width: 100%;
    max-width: 1320px;
    margin: auto;
    position: relative;
    z-index: 5;
}

.hero-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        90deg,
        rgba(0,0,0,.55) 0%,
        rgba(0,0,0,.28) 45%,
        rgba(0,0,0,.10) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 5;
    max-width: 720px;
    margin-left: 70px;
    padding: 0;
}



.hero-video {
    display: none !important;
}

.hero-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(0.92);
    animation: heroImageSlider 60s infinite;
}

.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 6s; }
.hero-slide:nth-child(3) { animation-delay: 12s; }
.hero-slide:nth-child(4) { animation-delay: 18s; }
.hero-slide:nth-child(5) { animation-delay: 24s; }
.hero-slide:nth-child(6) { animation-delay: 30s; }
.hero-slide:nth-child(7) { animation-delay: 36s; }
.hero-slide:nth-child(8) { animation-delay: 42s; }
.hero-slide:nth-child(9) { animation-delay: 48s; }
.hero-slide:nth-child(10) { animation-delay: 54s; }

@keyframes heroImageSlider {
    0% {
        opacity: 0;
        transform: scale(0.92);
    }

    3% {
        opacity: 1;
        transform: scale(0.92);
    }

    10% {
        opacity: 1;
        transform: scale(1);
    }

    13% {
        opacity: 0;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(1);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        90deg,
        rgba(0,0,0,.55) 0%,
        rgba(0,0,0,.30) 42%,
        rgba(0,0,0,.08) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 5;
    max-width: 760px;
    padding: 55px 65px;
    color: #fff;
    margin-left: 80px;
    margin-right: auto;
    background: transparent;
}

.hero-content::before,
.hero-content::after {
    display: none !important;
    content: none !important;
}

.electric-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 50px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.22);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 28px;
    backdrop-filter: blur(6px);
}

.hero-title {
    font-size: 68px;
    font-weight: 900;
    line-height: .92;
    color: #fff;
    margin-bottom: 24px;
    text-shadow: 0 10px 30px rgba(0,0,0,.55);
}

.hero-text {
    color: rgba(255,255,255,.94);
    font-size: 21px;
    line-height: 1.8;
    margin-bottom: 35px;
    max-width: 650px;
    text-shadow: 0 6px 20px rgba(0,0,0,.45);
}

.hero-buttons .btn {
    padding: 16px 34px;
    border-radius: 14px;
    font-weight: 800;
}

.glow-btn{

    display:inline-flex;
    align-items:center;
    justify-content:center;

    padding:18px 40px;

    background:#ffffff;

    color:#0b2f66;

    border:none;

    border-radius:22px;

    font-size:20px;

    font-weight:800;

    box-shadow:0 18px 45px rgba(0,0,0,.12);

    transition:.35s;

}

.glow-btn:hover{

    background:#f8f8f8;

    color:#0b2f66;

    transform:translateY(-5px);

    box-shadow:0 25px 60px rgba(0,0,0,.18);

}

.btn-outline-light {
    background: rgba(255,255,255,.08);
    border: 2px solid #fff;
    color: #fff;
}

.btn-outline-light:hover {
    background: #fff;
    color: #145aa8;
}

.scroll-indicator {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 10;
    color: #fff;
    font-size: 32px;
}

.typing-text-ar::after {
    content: "موثوقة";
    animation: changeWordsArabic 20s infinite;
    color: #fff;
}

html[dir="rtl"] .hero-content {
    text-align: right;
    margin-right: 80px;
    margin-left: auto;
}

html[dir="rtl"] .hero-title{
    font-size:64px;
    font-weight:800;
    line-height:1.2;
}

/* RESPONSIVE */

@media (max-width: 991px) {

    .hero-section {
        position: relative;
        width: 100%;
        height: 100vh;
        min-height: 800px;
        overflow: hidden;
        display: flex;
        align-items: center;
    }

    .hero-slider {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }

    .hero-slide {
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
    }

    .hero-content {
        position: relative;
        z-index: 5;
        margin-left: 40px;
        margin-right: auto;
        padding: 45px 30px;
        max-width: 680px;
    }

    html[dir="rtl"] .hero-content {
        margin-right: 40px;
        margin-left: auto;
    }

    .hero-title {
        font-size: 58px;
        line-height: 1.05;
    }

    html[dir="rtl"] .hero-title {
        font-size: 48px;
        line-height: 1.3;
    }

    .hero-text {
        font-size: 16px;
        max-width: 560px;
    }
}

@media (max-width: 575px) {

    .hero-section {
        position: relative;
        width: 100%;
        height: 100vh;
        min-height: 720px;
        overflow: hidden;
        display: flex;
        align-items: center;
    }

    .hero-slider {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }

    .hero-slide {
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
    }

    .hero-content {
        position: relative;
        z-index: 5;
        margin-left: 25px;
        margin-right: 25px;
        padding: 35px 0;
        max-width: none;
    }

    html[dir="rtl"] .hero-content {
        margin-right: 25px;
        margin-left: 25px;
    }

    .electric-badge {
        font-size: 12px;
        padding: 10px 18px;
        margin-bottom: 18px;
    }

    .hero-title {
        font-size: 42px;
        line-height: 1.05;
        margin-bottom: 18px;
    }

    html[dir="rtl"] .hero-title {
        font-size: 34px;
        line-height: 1.4;
    }

    .hero-text {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 24px;
    }

    .hero-buttons .btn {
        padding: 12px 22px;
    }
}

/* GLOBAL */

.section-padding {
    padding: 100px 0;
}

.section-tag {
    color: var(--red);
    font-weight: 900;
    letter-spacing: 3px;
    display: inline-block;
    margin-bottom: 14px;
}

/* ABOUT */

.futuristic-about {
    background: linear-gradient(135deg, #ffffff 0%, #eef4fb 100%);
    position: relative;
    overflow: hidden;
}

.futuristic-about::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(227, 6, 19, .08);
    top: -160px;
    right: -160px;
}

.futuristic-about::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(20, 90, 168, .10);
    bottom: -140px;
    left: -140px;
}

.futuristic-about .container {
    position: relative;
    z-index: 2;
}

.switchgear-showcase {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-panel-card {
    width: 82%;
    height: 460px;
    border-radius: 34px;
    overflow: hidden;
    position: relative;
    z-index: 3;
    box-shadow: 0 35px 85px rgba(7,31,61,.25);
    border: 8px solid #fff;
}

.main-panel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: .7s ease;
}

.main-panel-card:hover img {
    transform: scale(1.08);
}

.orbit {
    position: absolute;
    border: 1px dashed rgba(20,90,168,.28);
    border-radius: 50%;
    z-index: 1;
}

.orbit-1 {
    width: 430px;
    height: 430px;
    animation: rotateOrbit 18s linear infinite;
}

.orbit-2 {
    width: 520px;
    height: 520px;
    animation: rotateOrbit 26s linear infinite reverse;
}

.floating-card {
    position: absolute;
    z-index: 5;
    background: #fff;
    color: var(--blue-dark);
    padding: 14px 20px;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(7,31,61,.18);
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-top { top: 55px; left: 30px; }
.card-right { right: 0; top: 235px; }
.card-bottom { bottom: 70px; left: 55px; }

.floating-card span {
    font-size: 20px;
}

.pulse-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--red);
    border-radius: 50%;
    z-index: 4;
    box-shadow: 0 0 0 10px rgba(227,6,19,.15);
    animation: pulseDot 2s infinite;
}

.dot-1 { top: 120px; right: 110px; }
.dot-2 { bottom: 130px; right: 170px; }
.dot-3 { top: 270px; left: 80px; }

.about-content-pro h2 {
    font-size: 48px;
    font-weight: 900;
    line-height: 1.15;
    color: var(--blue-dark);
    margin-bottom: 24px;
}

.about-content-pro > p {
    font-size: 18px;
    line-height: 1.9;
    color: #4f5f73;
    margin-bottom: 34px;
}

.power-flow-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 34px;
}

.flow-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 15px 40px rgba(7,31,61,.08);
    border-left: 5px solid var(--red);
    transition: .35s ease;
}

.flow-item:hover {
    transform: translateX(8px);
    box-shadow: 0 22px 55px rgba(7,31,61,.14);
}

.flow-item span {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--red), var(--blue));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.flow-item h5 {
    color: var(--blue-dark);
    font-weight: 900;
    margin-bottom: 6px;
}

.flow-item p {
    margin: 0;
    color: #4f5f73;
    line-height: 1.7;
}

.about-pro-btn{

    display:inline-flex;
    align-items:center;
    justify-content:center;

    padding:20px 42px;

    background:#ffffff;

    color:#0b2f66;

    font-size:20px;

    font-weight:800;

    text-decoration:none;

    border-radius:22px;

    transition:.35s;

    box-shadow:0 18px 45px rgba(0,0,0,.12);

}

.about-pro-btn:hover{

    transform:translateY(-5px);

    background:#f8f8f8;

    color:#0b2f66;

    box-shadow:0 25px 60px rgba(0,0,0,.18);

}

/* ORGANIZATION CHART */

.organization-section {
    position: relative;
    overflow: hidden;
    padding: 100px 0;
    color: #fff;

    background:
        radial-gradient(circle at 88% 22%, rgba(255,45,45,.18), transparent 18%),
        radial-gradient(circle at 15% 75%, rgba(0,170,255,.10), transparent 25%),
        linear-gradient(
            135deg,
            #061633 0%,
            #08224d 28%,
            #0b2f66 55%,
            #0f4388 100%
        );
}

/* Grid Effect */

.organization-section::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);

    background-size: 60px 60px;
    pointer-events: none;
}

/* Extra Glow */

.organization-section::after {
    content: "";
    position: absolute;
    top: -150px;
    right: -150px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(227,6,19,.20), transparent 70%);
    pointer-events: none;
}

/* Content */

.organization-section .container {
    position: relative;
    z-index: 2;
}

/* Card */

.organization-card {
    max-width: 1300px;
    margin: auto;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0,0,0,.40);
}

/* Image */

.organization-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
    border: none;
}

/* Mobile */

@media (max-width:991px){

    .organization-section{
        padding:70px 0;
    }

    .organization-card{
        border-radius:20px;
    }

    .organization-card img{
        border-radius:20px;
    }

}

/* COMPANY PROFILE DOWNLOAD */

.profile-download-section {
    background: #ffffff;
}

.profile-download-card {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 38px;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(7,31,61,.98), rgba(20,90,168,.95));
    color: #fff;
    box-shadow: 0 25px 70px rgba(7,31,61,.22);
}

.profile-download-icon {
    width: 90px;
    height: 90px;
    border-radius: 26px;
    background: linear-gradient(135deg, #e30613, #ff3b57);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    flex-shrink: 0;
}

.profile-download-content {
    flex: 1;
}

.profile-download-content h2 {
    font-weight: 900;
    margin-bottom: 12px;
}

.profile-download-content p {
    color: rgba(255,255,255,.82);
    margin: 0;
    line-height: 1.8;
}

.profile-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: 16px;
    background: #fff;
    color: #071f3d;
    text-decoration: none;
    font-weight: 900;
    white-space: nowrap;
    transition: .35s ease;
}

.profile-download-btn:hover {
    color: #fff;
    background: linear-gradient(135deg, #e30613, #145aa8);
    transform: translateY(-5px);
}

/* ABOUT DROPDOWN */

.custom-dropdown {
    background: rgba(7,31,61,.97);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    padding: 12px;
    min-width: 240px;
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 45px rgba(0,0,0,.35);
}

.custom-dropdown .dropdown-item {
    color: #fff;
    border-radius: 12px;
    padding: 12px 16px;
    font-weight: 700;
    transition: .3s ease;
}

.custom-dropdown .dropdown-item:hover {
    background: linear-gradient(135deg, #e30613, #145aa8);
    color: #fff;
    transform: translateX(5px);
}

html[dir="rtl"] .custom-dropdown .dropdown-item:hover {
    transform: translateX(-5px);
}

/* PRODUCTS */

/* PRODUCTS */

.products-section {
    background: linear-gradient(135deg, #ffffff 0%, #eef4fb 100%);
    position: relative;
    overflow: hidden;
}

.product-image-card {
    position: relative;
    padding: 0;
    height: 430px;
    min-height: 430px;
    border-radius: 30px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 22px 55px rgba(7,31,61,.10);
    transition: .45s ease;
    border: 1px solid rgba(255,255,255,.6);
}

.product-image-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 5px;
    background: #e30613;
    z-index: 5;
    transition: .35s ease;
}

.product-image-card:hover::before {
    width: 100%;
}

.product-img {
    position: relative;
    width: 100%;
    height: 230px;
    overflow: hidden;
    background: #eef4fb;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: .8s ease;
}

.product-body {
    position: relative;
    z-index: 2;
    height: 200px;
    padding: 30px 26px;
    background: #fff;
    transition: .45s ease;
}

.product-icon {
    display: none !important;
}

.product-body h5 {
    font-size: 21px;
    font-weight: 800;
    color: var(--blue-dark);
    margin-bottom: 12px;
}

.product-body p {
    font-size: 14px;
    line-height: 1.8;
    color: #4f5f73;
    margin: 0;
}

.product-image-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(27,63,114,.35);
    border-color: transparent;
}

.product-image-card:hover .product-img img {
    transform: scale(1.12);
}

.product-image-card:hover .product-body {
    background: linear-gradient(
        90deg,
        #1b3f72 0%,
        #24508b 45%,
        #2d63a8 100%
    );
}

.product-image-card:hover .product-body h5,
.product-image-card:hover .product-body p {
    color: #fff !important;
}

/* PROJECTS */

/* PROJECTS */

.projects-section {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 100px 0;

    background: linear-gradient(
        90deg,
        #1b3f72 0%,
        #24508b 45%,
        #2d63a8 100%
    );
}

.projects-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.projects-section::after {
    content: "";
    position: absolute;
    top: -180px;
    right: -120px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(227,6,19,.16), transparent 70%);
    pointer-events: none;
}

.projects-section .container {
    position: relative;
    z-index: 2;
}

.projects-pages {
    position: relative;
}

.projects-page {
    display: none;
    opacity: 0;
    transform: translateY(25px);
}

.projects-page.active {
    display: block;
    animation: projectsPageFade .45s ease forwards;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.project-card-pro {
    position: relative;
    min-height: 300px;
    padding: 36px 30px;
    border-radius: 30px;
    background: #ffffff;
    border: none;
    box-shadow: 0 20px 55px rgba(0,0,0,.16);
    overflow: hidden;
    transition: .4s ease;
}

.project-card-pro::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 5px;
    background: #e30613;
    transition: .35s ease;
}

.project-card-pro::after {
    display: none;
}

.project-card-pro:hover {
    transform: translateY(-10px);
    box-shadow: 0 35px 80px rgba(0,0,0,.28);
}

.project-card-pro:hover::before {
    width: 100%;
}

/* REMOVE ICON */

.project-icon,
.project-card-pro .project-icon,
.project-card-pro i,
.project-card-pro svg {
    display: none !important;
}

/* TITLE */

.project-card-pro h3 {
    color: #145aa8 !important;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* DETAILS */

.project-details div {
    padding: 14px 0;
    border-top: 1px solid #d7e4f4;
}

.project-details span {
    display: block;
    color: #e30613 !important;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 6px;
}

.project-details p {
    margin: 0;
    color: #145aa8 !important;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.7;
}

/* PAGE NUMBERS */

.projects-page-numbers {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 38px;
    flex-wrap: wrap;
}

.project-page-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
    transition: .35s ease;
}

.project-page-btn.active,
.project-page-btn:hover {
    background: linear-gradient(135deg, #e30613, #2d63a8);
    box-shadow: 0 12px 30px rgba(0,0,0,.35);
    transform: translateY(-4px);
}

.projects-table-wrapper,
.projects-table {
    display: none !important;
}

/* RESPONSIVE */

@media (max-width: 991px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }
}

@media (max-width: 575px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card-pro {
        min-height: auto;
        padding: 28px 22px;
        border-radius: 24px;
    }

    .project-card-pro h3 {
        font-size: 19px;
    }

    .project-page-btn {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }
}

/* GALLERY */

.gallery-section {
    background: var(--blue-dark);
    color: #fff;
}

.gallery-card {
    height: 320px;
    border-radius: 26px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 55px rgba(0,0,0,.3);
}

.gallery-card img,
.gallery-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s;
}

.gallery-card:hover img,
.gallery-card:hover video {
    transform: scale(1.12);
}

.video-card span {
    position: absolute;
    inset: auto 20px 20px auto;
    background: var(--red);
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
}

/* CONTACT */

.contact-section {
    background: #fff;
}

.contact-form {
    background: var(--light);
    padding: 35px;
    border-radius: 28px;
    box-shadow: 0 25px 60px rgba(0,0,0,.08);
}

.form-control {
    min-height: 54px;
    border-radius: 14px;
    border: 1px solid #dce4ee;
}

.form-control:focus {
    box-shadow: 0 0 0 4px rgba(20,90,168,.15);
    border-color: var(--blue);
}

/* WHATSAPP */

.whatsapp-btn {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 999;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 32px;
    box-shadow: 0 12px 30px rgba(0,0,0,.25);
    transition: .3s ease;
}

.whatsapp-btn:hover {
    color: #fff;
    transform: translateY(-6px) scale(1.08);
    box-shadow: 0 18px 40px rgba(37,211,102,.45);
}

/* FOOTER */

.footer{
    position: relative;
    overflow: hidden;

    background: linear-gradient(
        90deg,
        #1b3f72 0%,
        #24508b 45%,
        #2d63a8 100%
    );

    color:#fff;
    padding:85px 0 25px;
}

.footer::before{
    content:"";
    position:absolute;
    inset:0;

    background:
        radial-gradient(circle at top right,
        rgba(227,6,19,.12),
        transparent 35%);

    pointer-events:none;
}

.footer .container {
    position: relative;
    z-index: 2;
}

.footer-logo {
    width: 190px;
    margin-bottom: 25px;
}

.footer-desc {
    color: #dbe4ff;
    line-height: 2;
    font-size: 16px;
}

.footer-title {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 28px;
    position: relative;
}

.footer-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -12px;
    width: 50px;
    height: 3px;
    background:linear-gradient(135deg,#115CAD,#e30613);
    border-radius: 50px;
}

html[dir="rtl"] .footer-title::after {
    left: auto;
    right: 0;
}

.social-links {
    display: flex;
    gap: 14px;
    margin-top: 28px;
}

.social-links a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.06);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: .35s ease;
}

.social-links a:hover {
   background: linear-gradient(
    135deg,
    #1b3f72,
    #2d63a8,
    #e30613
);
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,.35);
}

.footer-contact,
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-contact a,
.footer-links a {
    color: #dbe4ff;
    text-decoration: none;
    transition: .3s ease;
    font-size: 16px;
}

.footer-contact a:hover,
.footer-links a:hover {
    color: #ffffff;
    transform: translateX(6px);
}

.footer-contact i,
.footer-links i {
    color: #ff1f2d;
    margin-right: 10px;
}

html[dir="rtl"] .footer-contact i,
html[dir="rtl"] .footer-links i {
    margin-right: 0;
    margin-left: 10px;
}

.footer-location {
    margin-top: 0;
}

.location-map-box {
    display: block;
    text-decoration: none;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    transition: .4s ease;
    box-shadow: 0 15px 35px rgba(0,0,0,.25);
}

.location-map-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 55px rgba(0,0,0,.4);
}

.location-map-box img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: .5s ease;
}

.location-map-box:hover img {
    transform: scale(1.05);
}

.location-info {
    padding: 18px;
    background: linear-gradient(rgba(7,31,61,.95), rgba(7,31,61,.98));
}

.location-info span {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    margin-bottom: 10px;
}

.location-info i {
    color: #ff1f2d;
    font-size: 18px;
}

.location-info p {
    color: rgba(255,255,255,.75);
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
}

.footer-line {
    border-color: rgba(255,255,255,.08);
    margin: 55px 0 25px;
}

.footer-bottom p {
    margin: 0;
    color: #dbe4ff;
    font-size: 15px;
}

/* REVEAL */

.reveal {
    opacity: 0;
    transform: translateY(45px);
    transition: all .8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ANIMATIONS */

@keyframes lineMove {
    from { background-position: 0 0; }
    to { background-position: 200px 200px; }
}

@keyframes heroImageSlider {
    0% { opacity: 0; transform: scale(1); }
    8% { opacity: 1; }
    25% { opacity: 1; transform: scale(1.05); }
    33% { opacity: 0; transform: scale(1.05); }
    100% { opacity: 0; }
}

@keyframes changeWordsArabic {
    0% { content: "موثوقة"; }
    33% { content: "متطورة"; }
    66% { content: "ذكية"; }
    100% { content: "موثوقة"; }
}

@keyframes rotateOrbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 rgba(227,6,19,.35); }
    70% { box-shadow: 0 0 0 18px rgba(227,6,19,0); }
    100% { box-shadow: 0 0 0 0 rgba(227,6,19,0); }
}

@keyframes projectsPageFade {
    from {
        opacity: 0;
        transform: translateY(25px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* RTL */

html[dir="rtl"] .hero-content {
    text-align: right;
}

html[dir="rtl"] .hero-content::before,
html[dir="rtl"] .hero-content::after {
    left: auto;
    right: -120px;
    clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
}

html[dir="rtl"] .hero-title {
    letter-spacing: 0;
}

html[dir="rtl"] .project-card-pro {
    text-align: right;
}

html[dir="rtl"] .location-info span {
    flex-direction: row-reverse;
}

/* FIX STATS */

.stats-section,
.stats-section .row,
.stats-section .col-md-3,
.stats-section .stat-card,
.stats-section .stat-card h2,
.stats-section .stat-card p,
.stats-section .counter {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    animation: none !important;
}

.stats-section .reveal {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* RESPONSIVE */

@media (max-width: 991px) {
    .hero-title {
        font-size: 54px;
    }

    .hero-text {
        font-size: 16px;
    }

    .hero-content {
        max-width: 100%;
        padding: 35px;
    }

    .hero-content::before,
    .hero-content::after {
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
        clip-path: none;
    }

    html[dir="rtl"] .hero-content::before,
    html[dir="rtl"] .hero-content::after {
        right: 0;
        left: auto;
        clip-path: none;
    }

    .switchgear-showcase {
        min-height: 480px;
    }

    .main-panel-card {
        width: 90%;
        height: 380px;
    }

    .about-content-pro h2 {
        font-size: 38px;
    }

    .card-right {
        right: 20px;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }

    .footer {
        text-align: center;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    html[dir="rtl"] .footer-title::after {
        right: auto;
        left: 50%;
    }

    .social-links {
        justify-content: center;
    }

    .footer-contact a,
    .footer-links a {
        justify-content: center;
    }

    .location-info span {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 70px 0;
    }

    .profile-download-card {
        flex-direction: column;
        text-align: center;
    }

    .product-image-card {
        height: auto;
        min-height: auto;
    }

    .product-img {
        height: 220px;
    }

    .product-body {
        height: auto;
    }

    .gallery-card {
        height: 260px;
    }

    .location-map-box img {
        height: 160px;
    }
}

@media (max-width: 575px) {
 

    html[dir="rtl"] .hero-title{
        font-size:42px;
        line-height:1.25;
    }

    html[dir="rtl"] .hero-text{
        font-size:17px;
        line-height:1.9;
    }



    .hero-content {
        padding: 50px 24px;
    }

    .switchgear-showcase {
        min-height: auto;
        margin-bottom: 35px;
    }

    .main-panel-card {
        width: 100%;
        height: 300px;
        border-radius: 24px;
    }

    .orbit,
    .pulse-dot {
        display: none;
    }

    .floating-card {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        margin-top: 12px;
        width: 100%;
    }

    .about-content-pro h2 {
        font-size: 30px;
    }

    .flow-item {
        flex-direction: column;
    }

    .organization-card {
        padding: 10px;
        border-radius: 22px;
    }

    .organization-card img {
        border-radius: 16px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card-pro {
        min-height: auto;
        padding: 28px 22px;
        border-radius: 24px;
    }

    .project-card-pro h3 {
        font-size: 19px;
    }

    .project-icon {
        width: 54px;
        height: 54px;
        font-size: 21px;
    }

    .project-page-btn {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }
    
    
}

/* =====================================================
   DEJLAH - FINAL ARABIC FONT FIX
   KEEP THIS AT THE VERY END OF style.css
===================================================== */

html[dir="rtl"] body{
    font-family:"Tajawal", Arial, sans-serif !important;
}

/* NAVBAR */
html[dir="rtl"] .navbar-nav .nav-link,
html[dir="rtl"] .custom-dropdown .dropdown-item,
html[dir="rtl"] .lang-btn{
    font-family:"Tajawal", Arial, sans-serif !important;
    font-weight:700;
    letter-spacing:0;
}

/* HERO */
html[dir="rtl"] .hero-title{
    font-family:"Tajawal", Arial, sans-serif !important;
    font-size:58px;
    font-weight:800;
    line-height:1.25;
    letter-spacing:0;
}

html[dir="rtl"] .hero-text{
    font-family:"Tajawal", Arial, sans-serif !important;
    font-size:19px;
    font-weight:400;
    line-height:2;
    letter-spacing:0;
}

/* HERO BUTTONS */
html[dir="rtl"] .hero-action-btn{
    font-family:"Tajawal", Arial, sans-serif !important;
    font-weight:700 !important;
    letter-spacing:0 !important;
}

/* ALL ARABIC TITLES */
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6{
    font-family:"Tajawal", Arial, sans-serif !important;
}

/* NORMAL ARABIC TEXT */
html[dir="rtl"] p,
html[dir="rtl"] span,
html[dir="rtl"] button,
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select{
    font-family:"Tajawal", Arial, sans-serif !important;
}

/* TABLET */
@media(max-width:991px){

    html[dir="rtl"] .hero-title{
        font-size:46px;
        line-height:1.3;
    }

    html[dir="rtl"] .hero-text{
        font-size:17px;
        line-height:1.9;
    }
}

/* MOBILE */
@media(max-width:575px){

    html[dir="rtl"] .hero-title{
        font-size:36px;
        line-height:1.35;
    }

    html[dir="rtl"] .hero-text{
        font-size:16px;
        line-height:1.85;
    }

    html[dir="rtl"] .navbar-nav .nav-link{
        font-size:17px;
    }
}




/* BACK TO TOP - TEST/FIX */
/* =========================================
   BACK TO TOP - FINAL
========================================= */

html{
    scroll-behavior:smooth;
}

.back-to-top{
    position:fixed;
    right:22px;
    bottom:95px;

    width:52px;
    height:52px;

    border-radius:50%;

    background:linear-gradient(
        135deg,
        #1b3f72,
        #2d63a8
    );

    color:#fff;

    display:none;
    align-items:center;
    justify-content:center;

    text-decoration:none;

    font-size:20px;

    cursor:pointer;

    z-index:9999;

    box-shadow:0 12px 30px rgba(0,0,0,.25);

    transition:
        background .3s ease,
        transform .3s ease,
        box-shadow .3s ease;
}

.back-to-top:hover{
    background:#e30613;
    color:#fff;

    transform:translateY(-5px);

    box-shadow:0 16px 35px rgba(0,0,0,.30);
}

@media(max-width:575px){

    .back-to-top{
        right:18px;
        bottom:90px;

        width:46px;
        height:46px;

        font-size:18px;
    }

}



/* =========================================
   ABOUT / SWITCHGEAR - RESPONSIVE FIX
========================================= */

@media (max-width: 768px){

    .switchgear-showcase{
        width:100% !important;
        min-height:auto !important;

        display:flex !important;
        flex-direction:column !important;
        align-items:stretch !important;
        justify-content:flex-start !important;

        gap:14px !important;
        margin-bottom:35px !important;
    }

    /* الصورة الرئيسية */
    .main-panel-card{
        width:100% !important;
        height:320px !important;

        position:relative !important;

        border-radius:24px !important;
        border:6px solid #fff !important;

        order:1 !important;
    }

    .main-panel-card img{
        width:100% !important;
        height:100% !important;

        object-fit:cover !important;
        object-position:center !important;
    }

    /* نخفي العناصر الزخرفية في الشاشات الصغيرة */
    .orbit,
    .pulse-dot{
        display:none !important;
    }

    /* الكروت */
    .floating-card{
        position:relative !important;

        top:auto !important;
        right:auto !important;
        bottom:auto !important;
        left:auto !important;

        width:100% !important;

        margin:0 !important;
        padding:16px 18px !important;

        display:flex !important;
        flex-direction:row !important;
        align-items:center !important;
        justify-content:flex-start !important;

        gap:12px !important;

        border-radius:16px !important;

        order:2 !important;
    }

    .floating-card span{
        flex-shrink:0 !important;
        font-size:20px !important;
    }

    .floating-card strong{
        font-size:16px !important;
        line-height:1.5 !important;
    }

}


/* MOBILE */
@media (max-width: 575px){

    .switchgear-showcase{
        gap:10px !important;
    }

    .main-panel-card{
        height:270px !important;
        border-radius:20px !important;
    }

    .floating-card{
        min-height:62px !important;
        padding:14px 16px !important;
    }

    .floating-card strong{
        font-size:15px !important;
    }

}


/* VERY SMALL MOBILE */
@media (max-width: 380px){

    .main-panel-card{
        height:240px !important;
    }

    .floating-card{
        padding:12px 14px !important;
    }

    .floating-card strong{
        font-size:14px !important;
    }

}