:root {
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --text-light: #f0f0f0;
    --text-muted: #a0a0a0;
    --accent-cyan: #00ffff;
    --accent-blue: #007bff;
    --accent-glow: rgba(0, 255, 255, 0.5);
    --font-primary: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

section {
    padding: 80px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Typography */
h1,
h2,
h3 {
    margin-bottom: 20px;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Buttons */
/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: rgba(0, 0, 0, 0.6);
    /* Dark semi-transparent background */
    border: 2px solid var(--accent-cyan);
    color: var(--accent-cyan);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 4px;
    backdrop-filter: blur(5px);
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-outline {
    border: 2px solid #fff;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    /* Dark semi-transparent background */
}

.btn-outline:hover {
    background: #fff;
    color: var(--bg-dark);
}

.btn:hover {
    background: var(--accent-cyan);
    color: var(--bg-dark);
}

/* Navigation */
header {
    background-color: rgba(10, 10, 10, 0.95);
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    height: 90px;
}

.top-bar {
    background-color: #000;
    padding: 10px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid #222;
    position: absolute;
    top: 0;
    width: 100%;
    height: 45px;
    z-index: 1001;
    /* Higher than header */
    display: flex;
    align-items: center;
}

.nav-container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 40px;
    height: 90px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 70px;
    /* Adjust height to fit header */
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-cyan);
}

.btn-sm {
    padding: 8px 20px;
    border: 1px solid var(--accent-cyan);
    border-radius: 4px;
    color: var(--accent-cyan);
}

.btn-sm:hover {
    background: var(--accent-cyan);
    color: var(--bg-dark);
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.98));
    /* Near solid background lightness for extreme contrast */
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    filter: brightness(1.2) contrast(1.1);
    /* Boost brightness by ~20% and constrast */
    animation: cinematic-zoom 30s ease-in-out infinite alternate;
    /* Stylish slow zoom effect */
}

.hero-content {
    max-width: 1200px;
    /* Increased width to allow text to stay on one line */
    padding: 20px;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #ffffff;
    /* Reduced shadow intensity */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-content p {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 40px;
    color: #ffffff;
    /* Reduced shadow */
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
    display: inline-block;
    white-space: nowrap;
    /* Force text to stay on one line */
}


.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-outline {
    border: 2px solid #fff;
    color: #fff;
}

.btn-outline:hover {
    background: #fff;
    color: var(--bg-dark);
}

/* Intro Section */
.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.lead {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #fff;
}

.partner-logo {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.partner-logo img {
    height: 80px;
    /* Adjusted reasonable height */
    width: auto;
    border-radius: 8px;
}

.seo-text {
    text-align: center;
    color: var(--accent-cyan);
    font-size: 1.1rem;
    margin-bottom: 40px;
    margin-top: -10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Services Section */
#services {
    background-color: var(--bg-card);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-dark);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 30px -10px rgba(0, 255, 255, 0.15);
}

.service-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #fff;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    margin-bottom: 5px;
    font-size: 1.3rem;
    color: #fff;
}

.project-info .location {
    color: var(--accent-cyan);
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.project-info .desc {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Why Us Section */
#why-us {
    background-color: var(--bg-card);
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 8px;
}

.check {
    color: var(--accent-cyan);
    font-weight: bold;
    font-size: 1.2rem;
    background: rgba(0, 255, 255, 0.1);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.feature-item h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.feature-item p {
    font-size: 0.95rem;
}

/* Clients Logo Carousel Section */
#clients {
    background-color: #111;
    /* Dark grey for visual separation */
    padding: 100px 20px;
}

#clients h2 {
    margin-bottom: 60px;
}

.logo-carousel-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 20px 0;
}

.logo-carousel-track {
    display: flex;
    gap: 40px;
    animation: scroll-left 30s linear infinite;
    width: fit-content;
}

.logo-carousel-track:hover {
    animation-play-state: paused;
}

.logo-item {
    flex-shrink: 0;
    width: 150px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.8);
    transition: all 0.3s ease;
}

.logo-item img:hover {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.1);
}

@keyframes scroll-left {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}


/* Contact Section */
#contact {
    position: relative;
    padding-top: 80px;
    margin-top: 0;
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.contact-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1.2fr;
    gap: 40px;
}

.footer-services h3 {
    color: #fff;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-size: 1.4rem;
}

.service-underline {
    width: 50px;
    height: 3px;
    background-color: var(--text-muted);
    /* Using muted for gray check style, or accent if preferred */
    margin-bottom: 25px;
}

.service-list li {
    margin-bottom: 15px;
    color: #e0e0e0;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.service-list li i {
    margin-right: 12px;
    color: var(--text-muted);
    font-size: 1rem;
}

.contact-info p {
    margin-bottom: 30px;
    color: var(--text-muted);
}

.info-item {
    margin-bottom: 20px;
    color: #fff;
}

.info-item strong {
    color: var(--accent-cyan);
    margin-right: 10px;
}

.social-icons {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    transition: var(--transition);
    border: 1px solid transparent;
}

.social-icons a:hover {
    background: var(--accent-cyan);
    color: var(--bg-dark);
    border-color: var(--accent-cyan);
    transform: translateY(-3px);
}

.form-group {
    margin-bottom: 20px;
}

input,
textarea {
    width: 100%;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 4px;
    font-family: inherit;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
}

.btn-block {
    width: 100%;
    background: transparent;
    border: 2px solid var(--accent-cyan);
    color: var(--accent-cyan);
    font-weight: bold;
    letter-spacing: 1px;
    padding: 12px;
    transition: all 0.3s ease;
}

.btn-block:hover {
    background: var(--accent-cyan);
    color: var(--bg-dark);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 0;
    background: black;
    color: #666;
    border-top: 1px solid #1a1a1a;
}



/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    transform: scale(1.1);
    color: #fff;
}

.whatsapp-float i {
    margin-top: 2px;
    /* slight adjustment for optical center */
}

/* Responsive */
@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }
}

/* Header Contact Section */
.header-contact {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.85rem;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
}

.contact-row i {
    color: var(--accent-cyan);
    font-size: 1rem;
}

.contact-row span {
    white-space: nowrap;
}

/* SEO Focus Section */
#saudi-focus {
    padding: 100px 20px;
    background-color: var(--bg-dark);
}

.seo-content {
    max-width: 900px;
    margin: 0 auto;
}

.seo-content h2 {
    font-size: 2.5rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
    text-align: center;
    line-height: 1.3;
    margin-bottom: 30px;
    letter-spacing: 1px;
    margin-top: 50px;
}

.seo-content h2:first-child {
    margin-top: 0;
}

.seo-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ddd;
    margin-bottom: 25px;
    text-align: left;
}

.seo-content a {
    color: var(--accent-cyan);
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.seo-content a:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--accent-cyan);
}

/* Cinematic Zoom Animation */
@keyframes cinematic-zoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}/* Bilingual navigation; original palette and imagery retained. */
.nav-container { grid-template-columns: auto 1fr auto auto; gap: 20px; }
.nav-links { gap: 18px; }
.nav-links a { white-space: nowrap; }
.language-switcher { display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: .85rem; }
.language-switcher a { display: inline-flex; align-items: center; min-height: 44px; }
.language-switcher a[aria-current="page"] { color: var(--accent-cyan); text-decoration: underline; text-underline-offset: 5px; }
.menu-toggle { display: none; color: var(--accent-cyan); background: transparent; border: 1px solid var(--accent-cyan); border-radius: 4px; width: 44px; height: 44px; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent-cyan); outline-offset: 4px; }
.hero-content { min-width: 0; width: 100%; }
.hero-content p { white-space: normal; }
.hero-btns { flex-wrap: wrap; }
.inner-page header { position: relative; }
.page-title { font-size: 2.5rem; text-align: center; color: var(--accent-cyan); margin-bottom: 50px; }
.contact-container > *, .feature-item > div { min-width: 0; }
.info-item { overflow-wrap: anywhere; }
.check { flex-shrink: 0; }
.service-list li i { margin-right: 0; margin-inline-end: 12px; }
.info-item strong { margin-right: 0; margin-inline-end: 10px; }
.seo-content p { text-align: start; }
button { font-family: inherit; }
html[lang="ar"] { --font-primary: 'Cairo', Tahoma, Arial, sans-serif; }
html[dir="rtl"] body { line-height: 1.9; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] .btn { letter-spacing: 0; text-transform: none; }
html[dir="rtl"] h2, html[dir="rtl"] h3 { line-height: 1.6; }
html[dir="rtl"] .service-card p, html[dir="rtl"] .project-info .desc, html[dir="rtl"] .feature-item p { font-size: 1rem; }
html[dir="rtl"] input, html[dir="rtl"] textarea { font-size: 1rem; line-height: 1.8; }
html[dir="rtl"] .hero-content h1 { line-height: 1.5; }
html[dir="rtl"] .logo-carousel-container { direction: ltr; }
html[dir="rtl"] .whatsapp-float { right: auto; left: 40px; }
html[dir="rtl"] input, html[dir="rtl"] textarea { text-align: right; }
html[dir="rtl"] input[type="email"]:not(:placeholder-shown) { text-align: left; }
@media (max-width: 1150px) {
    header, .nav-container { height: auto; min-height: 90px; }
    .nav-container { grid-template-columns: auto 1fr auto; gap: 12px; padding-block: 10px; }
    .header-contact { display: none; }
    .nav-links { gap: 14px; }
}
@media (max-width: 900px) {
    .nav-container { grid-template-columns: 1fr auto auto; }
    .nav-container nav { grid-column: 1 / -1; grid-row: 2; }
    .nav-container .logo { grid-column: 1; grid-row: 1; }
    .language-switcher { grid-column: 2; grid-row: 1; }
    .menu-toggle { display: block; grid-column: 3; grid-row: 1; }
    .nav-links { display: none; flex-wrap: wrap; gap: 8px 20px; padding-block: 8px; }
    .nav-links.is-open { display: flex; }
    .nav-links a { display: inline-flex; align-items: center; min-height: 44px; }
    header { position: relative; }
    #hero { min-height: max(560px, calc(100svh - 110px)); height: auto; padding-block: 32px; }
    .hero-content p { font-size: 1.15rem; }
}
@media (max-width: 480px) {
    .logo img { height: 50px; max-width: 105px; }
    .nav-container { gap: 8px; }
    .language-switcher { gap: 6px; font-size: .8rem; }
    section { padding: 60px 12px; }
    h2, .page-title, .seo-content h2 { font-size: 1.8rem; }
    .hero-content h1 { font-size: 2rem; }
    .services-grid, .projects-grid, .features-list { grid-template-columns: minmax(0, 1fr); }
    .whatsapp-float { right: 16px; bottom: 16px; width: 50px; height: 50px; }
    html[dir="rtl"] .whatsapp-float { left: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
/* Keep each international contact value together when RTL lines wrap. */
.info-item bdi { display: inline-block; white-space: nowrap; }
