/* ============================================================
   ELITE UNIQUE SOLUTIONS EST — Main Stylesheet
   Color palette derived from logo: dark navy + teal + gold
   ============================================================ */

/* ---- CSS Custom Properties ---- */
:root {
    --bg-0:        #040b14;
    --bg-1:        #071525;
    --bg-2:        #0a1c2e;
    --bg-card:     rgba(10, 28, 46, 0.85);

    --teal:        #00c8d4;
    --teal-dim:    rgba(0, 200, 212, 0.12);
    --teal-glow:   rgba(0, 200, 212, 0.25);
    --gold:        #d4a520;
    --gold-dim:    rgba(212, 165, 32, 0.12);

    --text:        #dce8f0;
    --text-muted:  #6a8a9a;
    --text-dim:    #3d5a6a;

    --border:      rgba(0, 200, 212, 0.12);
    --border-hvr:  rgba(0, 200, 212, 0.4);

    --nav-h:       72px;
    --pad-section: 100px;
    --container:   1200px;
    --r-sm:        8px;
    --r-md:        20px;
    --r-lg:        28px;

    --ease:        cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-hvr:  0 20px 48px rgba(0, 0, 0, 0.5), 0 0 32px rgba(0, 200, 212, 0.1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg-0);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---- Language toggle button ---- */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border-radius: var(--r-sm);
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    border: 1px solid var(--border);
    background: transparent;
    transition: all 0.25s var(--ease);
    cursor: pointer;
    white-space: nowrap;
    letter-spacing: 0.05em;
}
.lang-toggle:hover {
    color: var(--gold);
    border-color: rgba(212, 165, 32, 0.4);
    background: var(--gold-dim);
}
.lang-toggle i { font-size: 0.85rem; }

/* ---- Custom scrollbar ---- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: rgba(0, 200, 212, 0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--teal); }

/* ---- Typography ---- */
h1, h2, h3, h4 {
    font-family: 'Rajdhani', sans-serif;
    line-height: 1.15;
    font-weight: 700;
}

.gradient-text {
    background: linear-gradient(135deg, var(--teal) 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Layout ---- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 56px);
}
.section { padding: var(--pad-section) 0; }

.section-dark {
    background: var(--bg-1);
    position: relative;
}
.section-dark::before,
.section-dark::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.section-dark::before { top: 0; }
.section-dark::after  { bottom: 0; }

/* ---- Section header ---- */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}
.section-eyebrow {
    display: inline-block;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--teal);
    padding: 5px 16px;
    border: 1px solid var(--teal-dim);
    border-radius: 100px;
    background: var(--teal-dim);
    margin-bottom: 20px;
}
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text);
    margin-bottom: 14px;
}
.section-subtitle {
    font-size: 0.975rem;
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: var(--r-sm);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: all 0.3s var(--ease);
    white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, var(--teal) 0%, #007a86 100%);
    color: #fff;
    box-shadow: 0 4px 18px rgba(0, 200, 212, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 200, 212, 0.5);
}
.btn-outline {
    border: 1.5px solid var(--border-hvr);
    color: var(--teal);
}
.btn-outline:hover {
    background: var(--teal-dim);
    border-color: var(--teal);
    transform: translateY(-2px);
}
.btn-full { width: 100%; justify-content: center; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--nav-h);
    transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.navbar.scrolled {
    background: rgba(4, 11, 20, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 200, 212, 0.1), 0 4px 32px rgba(0, 0, 0, 0.6);
}
.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Brand */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.nav-logo-box {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-logo-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}
.nav-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.brand-en {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    color: var(--text);
}
.brand-ar {
    font-family: 'Cairo', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
}

/* Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-link {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: var(--r-sm);
    transition: all 0.25s var(--ease);
}
.nav-link:hover,
.nav-link.active {
    color: var(--teal);
    background: var(--teal-dim);
}
.nav-link-cta {
    color: var(--bg-0);
    background: var(--teal);
    border: none;
    margin-inline-start: 8px;
}
.nav-link-cta:hover {
    background: #00dde9;
    color: var(--bg-0);
    box-shadow: 0 0 18px var(--teal-glow);
    transform: translateY(-1px);
}

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s var(--ease);
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 0%, #071b30 0%, var(--bg-0) 65%);
}
.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.65;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, transparent 25%, var(--bg-0) 85%);
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: calc(var(--nav-h) + 56px) clamp(20px, 4vw, 56px) 100px;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
}

/* Logo */
.hero-logo-container {
    position: relative;
    width: 295px;
    height: 295px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: heroLogoEntry 1s var(--ease) both;
}
.hero-logo-img {
    width: 275px;
    height: 275px;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 20px rgba(0, 200, 212, 0.45));
    animation: logoPulse 4s ease-in-out infinite;
}
.hero-logo-glow {
    position: absolute;
    inset: -16px;
    background: radial-gradient(circle, rgba(0, 200, 212, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 4s ease-in-out infinite;
}

/* Text */
.hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    animation: fadeInUp 0.9s 0.25s var(--ease) both;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    padding: 6px 16px;
    border: 1px solid var(--gold-dim);
    border-radius: 100px;
    background: var(--gold-dim);
    margin-bottom: 4px;
}
.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    animation: blink 2s ease infinite;
}
.hero-title-ar {
    font-family: 'Cairo', sans-serif;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 700;
    color: var(--text-muted);
    direction: rtl;
}
.hero-title-en {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(1.4rem, 3.8vw, 2.8rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.05;
    white-space: nowrap;
    background: linear-gradient(135deg, #fff 0%, var(--teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-tagline {
    font-size: 1.15rem;
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 0.06em;
}
.hero-services-list {
    font-size: 0.82rem;
    color: var(--text-dim);
    letter-spacing: 0.04em;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 12px;
    margin-top: 4px;
}
.hero-services-list .dot { color: var(--teal); }

/* CTA */
.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 0.9s 0.55s var(--ease) both;
}

/* Scroll hint */
.hero-scroll-hint {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-dim);
    animation: fadeIn 1.5s 1.2s both;
    z-index: 2;
    transition: color 0.25s;
}
.hero-scroll-hint:hover { color: var(--teal); }
.hero-scroll-hint i { animation: bounce 2s ease-in-out infinite; }

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-card {
    background: var(--bg-card);
    border: none;
    border-radius: var(--r-md);
    padding: 36px 32px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
    position: relative;
    opacity: 0;
    transform: translateY(28px);
}
.service-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.55s var(--ease), transform 0.55s var(--ease),
                box-shadow 0.35s var(--ease);
}
/* Gradient border only — background is untouched */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--r-md);
    padding: 1px;
    background: linear-gradient(135deg, rgba(212, 165, 32, 0.4), rgba(0, 200, 212, 0.4));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: background 0.35s var(--ease);
}
.service-card:hover {
    box-shadow: var(--shadow-hvr), 0 0 28px rgba(212, 165, 32, 0.08);
    transform: translateY(-7px);
}
.service-card:hover::before {
    background: linear-gradient(135deg, rgba(212, 165, 32, 0.7), rgba(0, 200, 212, 0.7));
}
.service-card:hover::after { opacity: 1; }

.card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
}
.card-icon-wrap {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--teal-dim);
    border: 1px solid rgba(0, 200, 212, 0.2);
    border-radius: var(--r-sm);
    font-size: 1.25rem;
    color: var(--teal);
    transition: all 0.3s var(--ease);
    flex-shrink: 0;
}
.service-card:hover .card-icon-wrap {
    background: rgba(0, 200, 212, 0.2);
    box-shadow: 0 0 18px rgba(0, 200, 212, 0.25);
    transform: scale(1.06);
}
.card-number {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: rgba(0, 200, 212, 0.1);
    line-height: 1;
    transition: color 0.35s;
}
.service-card:hover .card-number { color: rgba(0, 200, 212, 0.22); }

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    letter-spacing: 0.02em;
}
.card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 28px;
}
.card-footer-line {
    height: 2px;
    background: linear-gradient(90deg, var(--gold-dim), transparent);
    border-radius: 2px;
    transition: all 0.35s var(--ease);
}
.service-card:hover .card-footer-line {
    background: linear-gradient(90deg, var(--gold), rgba(212, 165, 32, 0.2), transparent);
    box-shadow: 0 0 10px rgba(212, 165, 32, 0.3);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 72px;
    align-items: center;
}
.about-visual-col { display: flex; justify-content: center; }
.about-logo-wrap {
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card), 0 0 50px rgba(0, 200, 212, 0.07);
    max-width: 380px;
    width: 100%;
    transition: box-shadow 0.4s var(--ease);
}
.about-logo-wrap:hover {
    box-shadow: var(--shadow-card), 0 0 50px rgba(0, 200, 212, 0.16);
}
.about-logo-img { width: 100%; height: auto; display: block; }

.about-content-col {
    display: flex;
    flex-direction: column;
}
.about-content-col .section-eyebrow { margin-bottom: 20px; }
.about-content-col .section-title   { margin-bottom: 24px; }

.about-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.85;
    margin-bottom: 18px;
}

.about-stats {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 48px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
}
.stat-item {
    text-align: center;
    flex: 1;
    padding: 28px 20px;
}
.stat-value {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--teal);
    line-height: 1;
    margin-bottom: 6px;
}
.stat-suffix {
    font-size: 1.6rem;
    color: var(--gold);
}
.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}
.stat-divider {
    width: 1px;
    height: 56px;
    background: var(--border);
    flex-shrink: 0;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.7fr;
    gap: 64px;
    align-items: start;
}
.contact-info-title {
    font-size: 1.4rem;
    color: var(--text);
    margin-bottom: 36px;
    letter-spacing: 0.03em;
}
.contact-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.contact-item-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--teal-dim);
    border: 1px solid rgba(0, 200, 212, 0.2);
    border-radius: var(--r-sm);
    color: var(--teal);
    font-size: 0.95rem;
    flex-shrink: 0;
    transition: all 0.3s var(--ease);
}
.contact-item:hover .contact-item-icon {
    background: rgba(0, 200, 212, 0.2);
    box-shadow: 0 0 14px rgba(0, 200, 212, 0.2);
}
.contact-item-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 5px;
}
.contact-item-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    color: var(--text-dim);
    font-weight: 600;
}
.contact-item-value {
    font-size: 0.9rem;
    color: var(--text);
}
.contact-email-img {
    display: block;
    height: 32px;
    width: auto;
    margin-top: 1px;
    user-select: none;
    pointer-events: none;
    -webkit-user-drag: none;
}
html[lang="ar"] .contact-email-img { margin-left: auto; }

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.form-group label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    color: var(--text-muted);
}
.form-group input,
.form-group textarea {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 13px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--text);
    transition: all 0.25s var(--ease);
    outline: none;
    resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim); }
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--teal);
    background: rgba(10, 28, 48, 0.95);
    box-shadow: 0 0 0 3px rgba(0, 200, 212, 0.1);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--bg-1);
    border-top: 1px solid var(--border);
    padding: 56px 0 32px;
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 32px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.footer-logo-box { width: 42px; height: 42px; flex-shrink: 0; }
.footer-logo-img { width: 100%; height: 100%; object-fit: contain; }
.footer-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.footer-en {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    color: var(--text);
}
.footer-ar {
    font-family: 'Cairo', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
}
.footer-nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.footer-nav a {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    transition: color 0.25s;
}
.footer-nav a:hover { color: var(--teal); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 28px;
    text-align: center;
}
.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.scroll-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-2);
    border: 1px solid var(--border-hvr);
    border-radius: 50%;
    color: var(--teal);
    font-size: 0.85rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px);
    transition: all 0.3s var(--ease);
    z-index: 999;
}
.scroll-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.scroll-top:hover {
    background: rgba(0, 200, 212, 0.15);
    box-shadow: 0 0 20px rgba(0, 200, 212, 0.3);
    transform: translateY(-2px);
}

/* ============================================================
   KEYFRAME ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes heroLogoEntry {
    from { opacity: 0; transform: scale(0.72) translateY(18px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes logoPulse {
    0%,100% { filter: drop-shadow(0 0 16px rgba(0, 200, 212, 0.3)); }
    50%      { filter: drop-shadow(0 0 36px rgba(0, 200, 212, 0.65)); }
}
@keyframes glowPulse {
    0%,100% { opacity: 0.5; transform: scale(1); }
    50%      { opacity: 0.9; transform: scale(1.12); }
}
@keyframes blink {
    0%,100% { opacity: 1; }
    50%      { opacity: 0.25; }
}
@keyframes bounce {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(7px); }
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1024px) {
    :root { --pad-section: 80px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; gap: 48px; }
    .about-visual-col { order: -1; }
    .about-logo-wrap { max-width: 320px; margin: 0 auto; }
    .contact-grid { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 768px) {
    :root { --pad-section: 64px; --nav-h: 64px; }

    .nav-brand-text { display: none; }

    .nav-menu {
        position: fixed;
        top: var(--nav-h);
        left: 0; right: 0;
        background: rgba(4, 11, 20, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 16px;
        gap: 4px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-110%);
        transition: transform 0.35s var(--ease);
        z-index: 999;
    }
    .nav-menu.open { transform: translateY(0); }
    .nav-link { width: 100%; text-align: center; padding: 12px 16px; }
    .nav-link-cta { margin-left: 0; }
    .nav-hamburger { display: flex; }

    .services-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }

    .about-stats { flex-direction: column; gap: 0; }
    .stat-item { padding: 20px 16px; }
    .stat-divider { width: 100%; height: 1px; }
}

@media (max-width: 480px) {
    .hero-title-en { white-space: normal; }
    .hero-logo-container { width: 180px; height: 180px; }
    .hero-logo-img { width: 160px; height: 160px; }
    .hero-cta { flex-direction: column; width: 100%; }
    .hero-cta .btn { justify-content: center; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
    .footer-nav { flex-wrap: wrap; gap: 16px; }
}

/* ============================================================
   ARABIC / RTL OVERRIDES  (html[lang="ar"])
   ============================================================ */

/* Body & headings: switch to Cairo when in Arabic mode */
html[lang="ar"] body {
    font-family: 'Cairo', sans-serif;
}
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4 {
    font-family: 'Cairo', sans-serif;
    letter-spacing: 0;         /* Arabic script needs no tracking */
}
html[lang="ar"] .btn,
html[lang="ar"] .nav-link,
html[lang="ar"] .section-eyebrow,
html[lang="ar"] .stat-label,
html[lang="ar"] .contact-item-label {
    font-family: 'Cairo', sans-serif;
    letter-spacing: 0;
}

/* Keep Rajdhani for elements that are always English (brand names, card numbers) */
html[lang="ar"] .brand-en,
html[lang="ar"] .footer-en,
html[lang="ar"] .card-number,
html[lang="ar"] .lang-toggle {
    font-family: 'Rajdhani', sans-serif;
}

/* Hero: show only the title matching the active language */
.hero-title-ar { display: none; }

html[lang="ar"] .hero-title-ar {
    display: block;
    font-family: 'Cairo', sans-serif;
    font-size: clamp(1.8rem, 5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.2;
    background: linear-gradient(135deg, #fff 0%, var(--teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
html[lang="ar"] .hero-title-en { display: none; }

/* Nav & footer brand: show only the span matching the active language */
.brand-ar  { display: none; }
.footer-ar { display: none; }
html[lang="ar"] .brand-en  { display: none; }
html[lang="ar"] .brand-ar  { display: block; }
html[lang="ar"] .footer-en { display: none; }
html[lang="ar"] .footer-ar { display: block; }

/* Card footer line gradient reversal for RTL */
html[lang="ar"] .card-footer-line {
    background: linear-gradient(270deg, var(--gold-dim), transparent);
}
html[lang="ar"] .service-card:hover .card-footer-line {
    background: linear-gradient(270deg, var(--gold), rgba(212, 165, 32, 0.2), transparent);
}

/* Form inputs: ensure RTL text entry */
html[lang="ar"] input,
html[lang="ar"] textarea {
    direction: rtl;
    text-align: right;
    font-family: 'Cairo', sans-serif;
}

/* Nav menu text-align for mobile RTL */
html[lang="ar"] .nav-link { text-align: center; }

/* About visual order in RTL — image goes to the right (logical end) */
@media (min-width: 1025px) {
    html[lang="ar"] .about-grid { direction: rtl; }
    html[lang="ar"] .about-content-col { direction: ltr; text-align: right; direction: rtl; }
}
