@font-face {
  font-family: 'Almarai';
  src: url('../fonts/Almarai-Regular.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('../fonts/Manrope-Regular.woff2') format('woff2');
  font-weight: 300 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Regular.woff2') format('woff2');
  font-weight: 300 500;
  font-style: normal;
  font-display: swap;
}

html, body { background: #000000 !important; color: #ffffff; }

:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: #888888;
  --border: rgba(255, 255, 255, 0.15);

  --font-sans: 'Manrope', system-ui, sans-serif;
  --font-serif: 'Montserrat', sans-serif;
}

html[dir="rtl"] {
  --font-sans: 'Almarai', system-ui, sans-serif;
  --font-serif: 'Almarai', sans-serif;
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html { scroll-behavior: smooth; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }

[lang="en"] .ar, [lang="en"] .de { display: none !important; }
[lang="ar"] .en, [lang="ar"] .de { display: none !important; }
[lang="de"] .en, [lang="de"] .ar { display: none !important; }

.grain {
  position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox=%270 0 200 200%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cfilter id=%27noiseFilter%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%270.85%27 numOctaves=%273%27 stitchTiles=%27stitch%27/%3E%3C/filter%3E%3Crect width=%27100%25%27 height=%27100%25%27 filter=%27url(%23noiseFilter)%27/%3E%3C/svg%3E");
}
.bg-canvas-container {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 0;
  background-color: #000;
}
.bg-mask {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 5;
  background-color: rgba(0, 0, 0, 0.6);
  pointer-events: none;
}
#particle-canvas { width: 100%; height: 100%; display: block; }

.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  display: flex; justify-content: space-between; align-items: center;
  padding: 30px 40px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
}
.logo {
  font-family: var(--font-serif); font-size: 28px; font-weight: 400;
  letter-spacing: -0.02em; display: flex; align-items: center; gap: 12px;
}
.logo svg { width: 44px; height: 44px; }

.nav-wrapper {
  display: flex;
  align-items: center;
  gap: 32px;
}

#site-nav { display: flex; gap: 32px; align-items: center; }
#site-nav a { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); transition: color 0.3s; }
#site-nav a:hover { color: #fff; }

.header-actions { display: flex; align-items: center; gap: 20px; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 4px; padding: 5px; border: 1px solid rgba(255,255,255,0.1);
  background: rgba(10, 12, 16, 0.7); border-radius: 999px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 10px 30px rgba(0,0,0,0.2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.lang-option {
  min-width: 46px; height: 30px; padding: 0 12px; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.62); background: transparent; border: 0; border-radius: 999px; cursor: pointer; transition: all 0.25s ease;
}
.lang-option:hover { color: #fff; transform: translateY(-1px); }
.lang-option.is-active {
  background: linear-gradient(135deg, rgba(184,204,224,0.28), rgba(212,175,55,0.2)); color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18), 0 0 18px rgba(212,175,55,0.18);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 24px; font-size: 14px; font-weight: 500;
  border-radius: 0;
  transition: all 0.3s ease;
}
.btn-solid { background: #fff; color: #000; border: 1px solid #fff; }
.btn-solid:hover { background: transparent; color: #fff; }
.btn-ghost { background: transparent; color: #fff; border: 1px solid var(--border); }
.btn-ghost:hover { border-color: #fff; }

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  z-index: 100;
}
.menu-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: #ffffff;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-btn.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-btn.is-active span:nth-child(2) {
  opacity: 0;
}
.menu-btn.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative; z-index: 10; min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; padding: 0 40px; max-width: 1400px; margin: 0 auto;
}
.badge {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted);
  margin-bottom: 30px; display: block;
}
html[dir="rtl"] .badge { letter-spacing: 0; font-size: 14px; }
.hero h1 {
  font-family: var(--font-serif); font-size: 82px; font-weight: 400; line-height: 1;
  letter-spacing: -0.02em; max-width: 1000px; margin-bottom: 30px;
}
html[dir="rtl"] .hero h1 { font-size: 64px; line-height: 1.2; }
.hero h1 em { font-style: normal; color: #b8cce0; }
html[dir="rtl"] .hero h1 em { font-style: normal; color: #b8cce0; }

.lede {
  font-size: 18px; line-height: 1.6; color: #d0d0d0; max-width: 600px; font-weight: 300; margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 16px; }

.partners-section {
  position: relative; z-index: 10; padding: 60px 0; background: #000;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.partners-title {
  text-align: center; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted); margin-bottom: 40px;
}
html[dir="rtl"] .partners-title { letter-spacing: 0; font-size: 14px; }

/* Partners banner (scrolling logo marquee) */
.marquee-content.partners-track {
  gap: 0; padding-left: 0;
  animation-duration: 45s;
}
html[dir="rtl"] .marquee-content.partners-track { animation-duration: 45s; }
.partners-marquee:hover .partners-track { animation-play-state: paused; }
.partner-slide {
  display: flex; align-items: center; gap: 20px;
  padding: 0 56px;
  border-right: 1px solid var(--border);
  white-space: nowrap;
}
html[dir="rtl"] .partner-slide { direction: rtl; }
.partner-slide-logo { display: block; flex-shrink: 0; height: 48px; width: auto; }
.partner-slide-logo.logo-silverstar { width: 48px; }
.partner-slide-logo.logo-oyafly { width: 152px; height: 48px; }
.partner-slide-logo.logo-motul { width: 176px; height: 48px; }
.partner-slide-text { display: flex; flex-direction: column; gap: 6px; }
.partner-slide-name {
  font-family: var(--font-serif); font-size: 24px; font-weight: 400; color: #fff;
  letter-spacing: -0.01em; line-height: 1.15;
}
.partner-slide-role {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: #d4af37;
}
html[dir="rtl"] .partner-slide-role { letter-spacing: 0; font-size: 13px; }
@media (prefers-reduced-motion: reduce) {
  .marquee-content.partners-track,
  html[dir="rtl"] .marquee-content.partners-track { animation: none; }
}

.marquee-wrapper {
  overflow: hidden; mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
html[dir="rtl"] .marquee-wrapper {
  direction: ltr;
}
.marquee-content {
  display: flex; width: max-content; align-items: center; gap: 80px; padding-left: 80px;
  animation: scroll-marquee 25s linear infinite;
  padding-top: 10px; padding-bottom: 10px;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
}
html[dir="rtl"] .marquee-content {
  animation: scroll-marquee-rtl 25s linear infinite;
}
@keyframes scroll-marquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}
@keyframes scroll-marquee-rtl {
  0% { transform: translate3d(-50%, 0, 0); }
  100% { transform: translate3d(0, 0, 0); }
}
.section {
  position: relative; z-index: 10; background: #000; padding: 120px 40px;
}
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-header { margin-bottom: 80px; max-width: 700px; }
.section-header h2 {
  font-family: var(--font-serif); font-size: 56px; font-weight: 400; line-height: 1; margin-bottom: 24px;
}
html[dir="rtl"] .section-header h2 { font-size: 48px; line-height: 1.2; }
.section-header h2 em { font-style: normal; color: #b8cce0; }
html[dir="rtl"] .section-header h2 em { font-style: normal; }
.section-header p { font-size: 18px; line-height: 1.6; color: var(--muted); font-weight: 300; }

.editorial-list { border-top: 1px solid var(--border); }
.list-item {
  display: grid; grid-template-columns: 100px 1fr; gap: 40px;
  padding: 40px 0; border-bottom: 1px solid var(--border);
}
.list-num {
  font-family: var(--font-serif); font-size: 32px; color: var(--muted); font-weight: 400;
}
.list-content h3 { font-size: 24px; font-weight: 400; margin-bottom: 16px; letter-spacing: -0.01em; }
.list-content p { font-size: 16px; line-height: 1.6; color: var(--muted); font-weight: 300; max-width: 600px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border); }
.contact-panel { padding: 60px; display: flex; flex-direction: column; align-items: flex-start; }
.contact-panel:first-child { border-right: 1px solid var(--border); }
html[dir="rtl"] .contact-panel:first-child { border-right: none; border-left: 1px solid var(--border); }
.contact-panel span.tag { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 24px; }
.contact-panel h3 { font-family: var(--font-serif); font-size: 42px; font-weight: 400; margin-bottom: 16px; }
.contact-panel p { font-size: 16px; line-height: 1.6; color: var(--muted); font-weight: 300; margin-bottom: 40px; max-width: 400px; flex-grow: 1; }

.site-footer {
  position: relative; z-index: 10; background: #000; padding: 40px; text-align: center;
  font-size: 13px; color: var(--muted); border-top: 1px solid var(--border);
}

.reveal { opacity: 0; transform: translateY(20px); transition: all 1s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; } .delay-2 { transition-delay: 0.2s; } .delay-3 { transition-delay: 0.3s; }

@media (max-width: 900px) {
  .header { padding: 18px 20px; }
  .logo { font-size: 22px; }
  .logo svg { width: 32px; height: 32px; }

  .menu-btn {
    display: flex;
  }

  .nav-wrapper {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: #000000;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 30px 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
  }

  .nav-wrapper.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  #site-nav {
    flex-direction: column;
    gap: 20px;
  }
  #site-nav a {
    font-size: 15px;
    color: #fff;
  }

  .header-actions {
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }

  .header-actions .btn {
    width: 100%;
    max-width: 260px;
  }

  .hero { padding: 120px 20px 60px; }
  .hero h1 { font-size: 48px; }
  .partners-section { padding: 48px 0; }
  .partners-title { margin-bottom: 28px; padding: 0 20px; }
  .marquee-content.partners-track { animation-duration: 36s; }
  html[dir=rtl] .marquee-content.partners-track { animation-duration: 36s; }
  .partner-slide { padding: 0 28px; gap: 14px; }
  .partner-slide-logo { height: 36px; }
  .partner-slide-logo.logo-silverstar { width: 36px; }
  .partner-slide-logo.logo-oyafly { width: 114px; height: 36px; }
  .partner-slide-logo.logo-motul { width: 132px; height: 36px; }
  .partner-slide-name { font-size: 18px; }
  .partner-slide-role { font-size: 10px; }
  .section { padding: 80px 20px; }
  .list-item { grid-template-columns: 1fr; gap: 16px; padding: 30px 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-panel:first-child { border-right: none; border-bottom: 1px solid var(--border); }
  html[dir="rtl"] .contact-panel:first-child { border-left: none; }
  .contact-panel { padding: 40px 20px; }
}

.legal-modal-overlay {
  position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.85); backdrop-filter: blur(8px);
  display: flex; justify-content: center; align-items: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.legal-modal-overlay.is-open { opacity: 1; visibility: visible; }
.legal-modal {
  background: #0a0a0a; border: 1px solid var(--border); border-radius: 0; width: 100%; max-width: 700px;
  max-height: 85vh; overflow-y: auto; padding: 40px; position: relative; transform: translateY(20px);
  transition: all 0.3s ease; color: #d0d0d0;
}
.legal-modal-overlay.is-open .legal-modal { transform: translateY(0); }
.legal-modal h2 { font-family: var(--font-serif); font-size: 32px; color: #fff; margin-bottom: 24px; font-weight: 400; }
.legal-modal h3 { font-size: 18px; color: #fff; margin: 24px 0 12px; font-weight: 400; }
.legal-modal p { font-size: 15px; line-height: 1.6; margin-bottom: 16px; font-weight: 300; }
.legal-modal strong { color: #fff; font-weight: 500; }
.close-modal {
  position: absolute; top: 20px; right: 20px; font-size: 24px; color: var(--muted); cursor: pointer; transition: color 0.3s;
}
html[dir="rtl"] .close-modal { right: auto; left: 20px; }
.close-modal:hover { color: #fff; }
.legal-links { margin-top: 20px; display: flex; justify-content: center; gap: 20px; }
.legal-links button { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; transition: color 0.3s; }
.legal-links button:hover { color: #fff; }
html[dir="rtl"] .legal-links button { letter-spacing: 0; }

@media (max-width: 600px) {
  .partners-section {
    padding: 34px 0;
  }
  .partners-title {
    font-size: 11px;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
    padding: 0 16px;
    line-height: 1.5;
  }
  html[dir=rtl] .partners-title {
    font-size: 12px;
    letter-spacing: 0;
  }
  .marquee-wrapper {
    -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
    mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  }
  .marquee-content.partners-track {
    animation-duration: 28s;
  }
  html[dir=rtl] .marquee-content.partners-track {
    animation-duration: 28s;
  }
  .partner-slide {
    padding: 0 18px;
    gap: 12px;
  }
  .partner-slide-logo {
    height: 30px;
  }
  .partner-slide-logo.logo-silverstar {
    width: 30px;
  }
  .partner-slide-logo.logo-oyafly {
    width: 95px;
    height: 30px;
  }
  .partner-slide-logo.logo-motul {
    width: 110px;
    height: 30px;
  }
  .partner-slide-text {
    gap: 3px;
  }
  .partner-slide-name {
    font-size: 15px;
  }
  .partner-slide-role {
    font-size: 9.5px;
    letter-spacing: 0.06em;
  }
  html[dir=rtl] .partner-slide-role {
    font-size: 11px;
    letter-spacing: 0;
  }
}
