/* Core Variables & Reset */
:root {
  --ink: #020a08;
  --ink-light: #051a15;
  --deep: #063a31;
  --primary: #0b7a5c;
  --primary-hover: #096149;
  --glow: #34d399;
  --accent: #a3e635;
  --surface: #f2faf6;
  --muted: rgba(242, 250, 246, 0.6);
  --border: rgba(52, 211, 153, 0.15);
  --border-hover: rgba(52, 211, 153, 0.4);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--surface);
  background-color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

[dir="rtl"] body {
  font-family: 'IBM Plex Sans Arabic', 'Inter', system-ui, -apple-system, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Sora', sans-serif;
  letter-spacing: -0.02em;
  font-weight: 700;
}

[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6 {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  letter-spacing: 0;
}

.ltr {
  direction: ltr;
  unicode-bidi: isolate;
  font-family: 'Inter', sans-serif;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

/* Animations */
.reveal {
  opacity: 1;
  transform: none;
}

@media (scripting: enabled) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .reveal.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 (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .delay-1, .delay-2, .delay-3 {
    transition-delay: 0s;
  }
}

/* Header */
.navbar {
  background: rgba(2, 10, 8, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 20px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
}

.logo-text {
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--surface);
  text-transform: uppercase;
}

[dir="rtl"] .logo-text {
  font-family: 'Inter', sans-serif;
  direction: ltr;
  display: inline-block;
  letter-spacing: 1.5px;
  margin-top: 4px;
}

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

.navbar-actions {
  display: none;
  align-items: center;
  gap: 12px;
}

.mobile-menu-toggle {
  display: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
  font-family: 'Inter', sans-serif;
}

[dir="rtl"] .nav-links a {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
}
[dir="rtl"] .nav-links a.lang-btn {
  font-family: 'Inter', sans-serif;
}

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

.lang-btn {
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 6px;
  color: var(--glow) !important;
}

.lang-btn:hover {
  background: rgba(52, 211, 153, 0.1);
  border-color: var(--glow);
  color: var(--surface) !important;
}

.mobile-lang {
  display: none;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--glow);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

/* Button */
.btn {
  background: var(--primary);
  color: var(--surface);
  padding: 16px 36px;
  font-weight: 600;
  font-size: 15px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(242, 250, 246, 0.1);
  position: relative;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
}

[dir="rtl"] .btn {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(242, 250, 246, 0.15), transparent);
  transition: left 0.6s ease;
}

[dir="rtl"] .btn::before {
  left: auto;
  right: -100%;
  background: linear-gradient(270deg, transparent, rgba(242, 250, 246, 0.15), transparent);
  transition: right 0.6s ease;
}

.btn:hover::before {
  left: 100%;
}
[dir="rtl"] .btn:hover::before {
  right: 100%;
}

.btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(11, 122, 92, 0.5);
  border-color: var(--glow);
}

/* Hero Section */
.hero {
  padding: 220px 0 120px;
  position: relative;
  text-align: center;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1000px, 100%);
  height: 800px;
  background: radial-gradient(circle, rgba(11, 122, 92, 0.2) 0%, rgba(2, 10, 8, 0) 60%);
  z-index: -1;
  pointer-events: none;
}

.hero-kicker {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--glow);
  margin-bottom: 24px;
  font-weight: 600;
}

[dir="rtl"] .hero-kicker {
  letter-spacing: 0;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--surface);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--muted);
  max-width: 820px;
  margin: 0 auto 48px;
  line-height: 1.75;
}

/* About Section */
.about-section {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-light) 100%);
  border-top: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}

.about-title h2 {
  font-size: 32px;
  color: var(--surface);
}

.about-content .lead {
  font-size: 20px;
  color: var(--surface);
  font-weight: 500;
  margin-bottom: 24px;
  line-height: 1.6;
}

.about-content p:not(.lead) {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
}

/* Ventures Section */
.ventures-section {
  padding: 120px 0;
  background: var(--ink-light);
}

.section-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 20px;
  color: var(--surface);
}

.section-intro {
  max-width: 780px;
  margin: 0 auto 56px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
  text-align: center;
}

.ventures-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.venture-card {
  background: linear-gradient(145deg, rgba(6, 58, 49, 0.4) 0%, rgba(2, 10, 8, 0.8) 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 48px;
  position: relative;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}

.venture-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  background: linear-gradient(145deg, rgba(6, 58, 49, 0.6) 0%, rgba(2, 10, 8, 0.9) 100%);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.venture-card.span-8 { grid-column: span 8; }
.venture-card.span-4 { grid-column: span 4; }

.venture-status {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 12px;
  border-radius: 4px;
  background: rgba(163, 230, 53, 0.1);
  color: var(--accent);
  margin-bottom: 24px;
  align-self: flex-start;
  border: 1px solid rgba(163, 230, 53, 0.2);
}

[dir="rtl"] .venture-status {
  letter-spacing: 0;
}

.venture-card h3 {
  font-size: 24px;
  margin-bottom: 16px;
  color: var(--surface);
}

.venture-card.span-8 h3 {
  font-size: 32px;
}

.venture-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.venture-card.span-8 p {
  font-size: 18px;
  max-width: 500px;
}

/* Structured Exploration */
.exploration-section {
  margin-top: 88px;
  padding-top: 72px;
  border-top: 1px solid var(--border);
}

.exploration-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 32px;
}

.exploration-header h3 {
  font-size: 24px;
  color: var(--surface);
  margin-bottom: 20px;
}

.exploration-header p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.exploration-panel {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  background: linear-gradient(135deg, rgba(6, 58, 49, 0.32), rgba(2, 10, 8, 0.72));
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: 12px;
  padding: 30px 34px;
  text-align: left;
  max-width: 720px;
  margin: 0 auto;
}

[dir="rtl"] .exploration-panel {
  text-align: right;
}

.exploration-count {
  font-size: 56px;
  line-height: 1;
  font-weight: 700;
  color: var(--glow);
  font-family: 'Sora', sans-serif;
  border-right: 1px solid var(--border);
  padding-right: 28px;
}

[dir="rtl"] .exploration-count {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  border-right: 0;
  border-left: 1px solid var(--border);
  padding-right: 0;
  padding-left: 28px;
}

.exploration-desc {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
}

/* Legal Tabs */
.legal-section {
  padding: 120px 0;
  background: var(--ink);
  border-top: 1px solid var(--border);
}

.company-particulars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 0 auto 40px;
  max-width: 900px;
  overflow: hidden;
}

.particular-item {
  min-height: 110px;
  padding: 24px;
  background: rgba(2, 10, 8, 0.92);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: var(--surface);
  line-height: 1.65;
}

.particular-item strong {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

[dir="rtl"] .particular-item strong {
  letter-spacing: 0;
}

.particular-item span {
  font-size: 15px;
  color: var(--surface);
}

.tabs-container {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(6, 58, 49, 0.2);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.tabs-header {
  display: flex;
  background: rgba(2, 10, 8, 0.6);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.tab-btn {
  flex: 1;
  padding: 20px;
  background: none;
  border: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  font-family: inherit;
  position: relative;
  white-space: nowrap;
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--glow);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.tab-btn:hover {
  color: var(--surface);
  background: rgba(255, 255, 255, 0.02);
}

.tab-btn.active {
  color: var(--glow);
  background: rgba(6, 58, 49, 0.4);
}

.tab-btn.active::after {
  transform: scaleX(1);
}

.tab-content {
  padding: 48px;
  display: none;
  max-height: 600px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.tab-content::-webkit-scrollbar {
  width: 6px;
}
.tab-content::-webkit-scrollbar-thumb {
  background-color: var(--border);
  border-radius: 10px;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.tab-content h2 {
  font-size: 24px;
  margin-bottom: 24px;
  color: var(--surface);
}

.tab-content h3 {
  font-size: 16px;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--glow);
  font-family: inherit;
  font-weight: 600;
}

.tab-content p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.8;
}

.tab-content a {
  color: var(--glow);
  text-decoration: none;
  transition: color 0.2s;
}

.tab-content a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.legal-note {
  max-width: 900px;
  margin: 24px auto 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.legal-note a {
  color: var(--glow);
  text-decoration: none;
}

.legal-note a:hover {
  text-decoration: underline;
}

/* Contact / Footer */
.contact-section {
  padding: 120px 0 60px;
  background: radial-gradient(circle at bottom, rgba(11, 122, 92, 0.1) 0%, var(--ink) 60%);
  text-align: center;
}

.contact-heading {
  max-width: 700px;
  margin: 0 auto 48px;
}

.contact-heading > span {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--glow);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

[dir="rtl"] .contact-heading > span {
  letter-spacing: 0;
}

.contact-heading h2 {
  margin-bottom: 16px;
  font-size: 36px;
  color: var(--surface);
}

.contact-heading p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.contact-card {
  max-width: 600px;
  margin: 0 auto 80px;
  background: rgba(6, 58, 49, 0.2);
  padding: 48px;
  border-radius: 12px;
  border: 1px solid var(--border);
  text-align: left;
}

[dir="rtl"] .contact-card {
  text-align: right;
}

.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-row:first-child {
  padding-top: 0;
}

.contact-label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

[dir="rtl"] .contact-label {
  letter-spacing: 0;
}

.contact-value {
  color: var(--surface);
  font-size: 15px;
}

.contact-value a {
  color: var(--glow);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-value a:hover {
  color: var(--accent);
}

footer {
  border-top: 1px solid var(--border);
  padding-top: 40px;
  color: var(--muted);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--glow);
}

.footer-text {
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
  text-align: center;
}

.footer-contact {
  margin-top: 8px;
  color: rgba(242, 250, 246, 0.4);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.sr-only:focus {
  position: fixed;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  padding: 12px 24px;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: var(--primary);
  color: var(--surface);
  font-weight: 600;
  z-index: 10000;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 992px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .venture-card.span-8, .venture-card.span-4 { grid-column: span 12; }
}

@media (max-width: 768px) {
  .navbar-actions { display: flex; }
  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
  }

  .menu-bar {
    width: 100%;
    height: 2px;
    background-color: var(--surface);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .mobile-menu-toggle[aria-expanded="true"] .menu-bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .mobile-menu-toggle[aria-expanded="true"] .menu-bar:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle[aria-expanded="true"] .menu-bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background: rgba(2, 10, 8, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 1000;
  }

  .nav-links.menu-open {
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    font-size: 20px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(15px);
    transition: transform 0.4s ease, opacity 0.4s ease;
  }

  .nav-links.menu-open a {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links .lang-btn { display: none; }

  .mobile-lang { display: inline-flex; }
  .hero { padding: 160px 0 80px; min-height: 60vh; }
  .contact-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .tab-btn { padding: 16px 12px; font-size: 13px; }
  .tab-content { padding: 32px 24px; max-height: none; overflow-y: visible; }
  .venture-card { padding: 32px; }
  .company-particulars { grid-template-columns: 1fr; }
  .exploration-panel {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
  }
  [dir="rtl"] .exploration-panel { text-align: center; }
  .exploration-count,
  [dir="rtl"] .exploration-count {
    border: 0;
    padding: 0 0 16px;
    border-bottom: 1px solid var(--border);
  }
  .contact-heading h2 { font-size: 30px; }
}

@media (scripting: none) and (max-width: 768px) {
  .mobile-menu-toggle { display: none !important; }
  .navbar { padding-bottom: 0; }
  .nav-links {
    position: static;
    height: auto;
    opacity: 1;
    visibility: visible;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 20px 0;
    gap: 16px;
  }
  .nav-links a {
    font-size: 14px;
    opacity: 1;
    transform: none;
  }
}
