:root {
    --primary: #00a8cc;
    /* Dark Sky Blue */
    --primary-dark: #007c99;
    --dark-bg: #1a1a2e;
    --dark-section: #16213e;
    --text-color: #f4f6f9;
    --text-muted: #b8c7ce;
    --light-bg: #fff;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Droid Arabic Kufi', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--dark-bg);
    color: var(--text-color);
    direction: rtl;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 15px;
    font-weight: 700;
}

p {
    margin: 0 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 10px;
}

.underline {
    width: 80px;
    height: 4px;
    background-color: var(--primary);
    margin: 0 auto;
    border-radius: 2px;
}

/* Header */
.header {
    background-color: rgba(22, 33, 62, 0.95);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 100px;
    /* Increased size */
    width: 100px;
    /* Fixed width to ensure shape */
    border-radius: 50%;
    /* Make it oval/circle */
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.2);
    /* Optional: adds a nice touch */
}

.logo h2 {
    color: #fff;
    font-size: 24px;
    margin: 0;
}

.nav-menu ul {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    padding: 5px 0;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Slider */
.hero-slider {
    height: 90vh;
    /* Full screen height almost */
    position: relative;
    overflow: hidden;
    margin-top: 0;
    /* Since header is fixed */
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Dark overlay */
}

.slide-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 800px;
    padding: 20px;
}

.slide-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    animation: slideUp 0.8s ease forwards;
}

.slide-content p {
    font-size: 20px;
    line-height: 1.8;
    animation: slideUp 1s ease forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.prev-slide,
.next-slide {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    padding: 15px;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.prev-slide:hover,
.next-slide:hover {
    background: var(--primary);
}

.prev-slide {
    right: 20px;
}

.next-slide {
    left: 20px;
}

/* About Section */
.about-section {
    background-color: var(--dark-section);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 18px;
    line-height: 2;
    color: var(--text-muted);
}

/* Systems Section */
.systems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.system-card {
    background-color: #1e2a44;
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.system-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 168, 204, 0.2);
}

.system-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.system-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.system-card:hover .system-image img {
    transform: scale(1.1);
}

.system-image .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #2c3e50;
    font-size: 50px;
    color: #555;
}

.system-image .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.system-card:hover .overlay {
    opacity: 1;
}

.btn-youtube {
    background-color: #ff0000;
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-youtube:hover {
    background-color: #cc0000;
}

.system-info {
    padding: 20px;
}

.system-info h3 {
    color: var(--primary);
    font-size: 22px;
}

.system-info p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Clients Section */
.clients-section {
    background-color: var(--dark-bg);
}

.clients-ticker {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.ticker-track {
    display: flex;
    gap: 50px;
    /* Space between items */
    width: max-content;
    animation: scroll 40s linear infinite;
}

.ticker-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(50%);
        /* Move half way because duplicated */
    }
}

.client-item {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    /* Stack logo and name */
    align-items: center;
    justify-content: center;
    min-width: 180px;
    /* Bit wider */
    height: 140px;
    /* Taller to fit both */
    gap: 10px;
}

.client-item img {
    max-height: 80px;
    max-width: 100%;
    object-fit: contain;
}

.client-name {
    color: #333;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    line-height: 1.2;
}

/* Footer */
.footer {
    background-color: #111;
    color: #fff;
    padding: 50px 0 20px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-col {
    flex: 1;
    min-width: 300px;
}

.footer-col h3 {
    color: var(--primary);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary);
}

.contact-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #bbb;
}

.contact-list i {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: #333;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-5px);
}

.map-container iframe {
    width: 100%;
    height: 250px;
    border: none;
    border-radius: 8px;
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #777;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        padding: 0 15px;
    }

    .mobile-menu-toggle {
        display: block;
        /* Show hamburger */
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        /* Side drawer */
        max-width: 300px;
        height: calc(100vh - 80px);
        background-color: #1a252f;
        flex-direction: column;
        transition: var(--transition);
        padding: 30px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu ul {
        flex-direction: column;
    }

    .slide-content h1 {
        font-size: 32px;
    }
}