:root {
    --primary: #ff6600;
    /* Industrial Orange */
    --primary-dark: #cc5200;
    --primary-glow: rgba(255, 102, 0, 0.4);
    --secondary: #2d3748;
    --accent: #3182ce;
    --dark: #020617;
    --black: #000000;
    --white: #ffffff;
    --gray-100: #f8fafc;
    --gray-200: #e2e8f0;
    --gray-300: #94a3b8;
    --gray-600: #4a5568;
    --gray-800: #1e293b;

    --font-main: 'Cairo', sans-serif;
    --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4);

    --radius-md: 12px;
    --radius-lg: 24px;
    --header-height: 80px;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    direction: rtl;
}

body {
    font-family: var(--font-main);
    background-color: var(--white);
    color: var(--gray-800);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--dark);
    font-weight: 700;
    line-height: 1.2;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    gap: 10px;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--primary-glow);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* Header Styles */
.header {
    height: var(--header-height);
    background: rgba(2, 6, 23, 0.3);
    /* Subtle dark translucent */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    /* Faint border */
    transition: var(--transition);
}

.header.scrolled {
    height: 70px;
    background: rgba(2, 6, 23, 0.85);
    /* Slightly darker on scroll */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: rgba(255, 102, 0, 0.3);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: 0 40px;
    gap: 20px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 300px;
    justify-content: flex-start;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--white);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo i {
    font-size: 1.4rem;
    color: var(--primary);
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

@media (max-width: 768px) {
    .logo {
        font-size: 1.3rem;
        gap: 8px;
    }

    .logo-en {
        display: none;
        /* Hide English part on small screens */
    }
}

@media (max-width: 400px) {
    .logo {
        font-size: 1.1rem;
    }
}

.header-center {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    gap: 35px;
    background: rgba(255, 255, 255, 0.05);
    /* Restore professional glass look */
    padding: 8px 30px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.nav-link {
    color: var(--white);
    opacity: 0.8;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 300px;
    justify-content: flex-end;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    padding: 8px 15px 8px 40px;
    border-radius: 50px;
    color: var(--white);
    font-family: inherit;
    width: 200px;
    transition: var(--transition);
}

.header.scrolled .search-box input {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 102, 0, 0.3);
}

.search-box input:focus {
    width: 250px;
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    outline: none;
}

.search-box i {
    position: absolute;
    left: 15px;
    color: var(--primary);
    pointer-events: none;
    transition: var(--transition);
}

.search-box input:focus+i {
    transform: scale(1.1);
}

.nav-group {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 600;
    color: var(--gray-800);
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

/* Sections */
section {
    padding: 60px 0;
}

.hero {
    padding: 0 !important;
    /* Start images from the very top */
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Hero Navigation Arrows */
.hero-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 80;
    pointer-events: none;
}

.hero-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    pointer-events: auto;
    font-size: 1.2rem;
}

.hero-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--primary-glow);
}

/* Hero Indicators (Dots) */
.hero-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 80;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.7, 0, 0.3, 1);
}

.hero-dot.active {
    width: 40px;
    background: var(--primary);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary);
}

/* Hero styles already updated above */


.hero-slider {
    height: 100%;
    display: flex;
    transition: transform 0.7s cubic-bezier(0.7, 0, 0.3, 1);
}

.hero-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(2, 6, 23, 0.5), rgba(0, 0, 0, 0.6));
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-content {
    max-width: 700px;
    animation: fadeInUp 1s ease;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
}

.hero-content .btn-group {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
}

/* Partner Slider - Professional Dynamic Look */
.partner-section {
    background: #f8fafc;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.partner-slider-container {
    padding: 40px 0;
    position: relative;
    width: 100%;
    /* Create a fade effect on edges */
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.partner-track {
    display: flex;
    align-items: center;
    gap: 60px;
    width: max-content;
}

/* Base animation for LTR */
@keyframes scrollMarqueeLTR {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-100% / 3));
    }
}

/* RTL Specific Animation for Marquee */
@keyframes scrollMarqueeRTL {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(100% / 3));
    }
}

html[dir="rtl"] .partner-track {
    animation: scrollMarqueeRTL 45s linear infinite;
}

html[dir="ltr"] .partner-track {
    animation: scrollMarqueeLTR 45s linear infinite;
}

.partner-track:hover {
    animation-play-state: paused;
}

.partner-card {
    width: 180px;
    height: 110px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(100%);
    opacity: 0.6;
    cursor: pointer;
}

.partner-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
    filter: grayscale(0%);
    opacity: 1;
}

.partner-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.partner-card:hover img {
    transform: scale(1.1);
}

/* Grid Layouts */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-img {
    height: 200px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.card:hover .card-img img {
    transform: scale(1.1);
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollNav {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(50%);
    }

    /* ADJUSTED for RTL scroll */
}

/* RTL Adjustments for infinite scroll */
html[dir="rtl"] .partner-track {
    animation: scrollRTL 40s linear infinite;
}

@keyframes scrollRTL {
    to {
        transform: translateX(calc(-50%));
    }
}

/* Responsive */
/* Responsive Header */
@media (max-width: 992px) {
    .header .container {
        justify-content: space-between;
    }

    .header-center {
        display: none;
    }

    .mobile-toggle {
        display: flex !important;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--white);
        margin-right: 15px;
    }

    /* Mobile Slider Menu */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -320px;
        width: 300px;
        height: 100vh;
        background: rgba(15, 23, 42, 0.9) !important;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        padding: 100px 40px !important;
        transition: transform 0.5s cubic-bezier(0.7, 0, 0.3, 1) !important;
        z-index: 2000;
        border-radius: 0 !important;
        border: none !important;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    }

    .nav-menu.active {
        transform: translateX(-320px);
        /* Slide in from right */
    }

    .nav-link {
        font-size: 1.2rem !important;
        padding: 15px 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        width: 100%;
        text-align: right !important;
        opacity: 0.8;
    }

    .nav-link:hover {
        opacity: 1;
        padding-right: 10px !important;
        color: var(--primary) !important;
    }

    /* Blur Overlay */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        z-index: 1500;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

.mobile-toggle {
    display: none;
    cursor: pointer;
    z-index: 2001;
}

@media (max-width: 768px) {
    .hero-nav {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .search-box {
        display: none;
    }
}