/* ============================================
   GPX HOLDING — PREMIUM DESIGN SYSTEM v2
   The Monolith: Deep Black + Gold
   ============================================ */

/* CSS Variables */
:root {
  /* Colors — deeper, richer */
  --bg-primary: #070707;
  --bg-secondary: #0D0D0D;
  --bg-surface: #121212;
  --bg-elevated: #1A1A1A;
  --accent-gold: #C9A227;
  --accent-gold-light: #D4AF37;
  --accent-gold-bright: #E8C547;
  --accent-gold-dim: rgba(201, 162, 39, 0.08);
  --text-primary: #FFFFFF;
  --text-secondary: #E0E0E0;
  --text-muted: #888888;
  --text-subtle: #555555;
  --border-default: #222222;
  --border-hover: #C9A227;

  /* Sector Colors */
  --sector-construction: #8A8A8A;
  --sector-manufacturing: #B0B0B0;
  --sector-materials: #D4A017;
  --sector-agriculture: #5A7D4A;
  --sector-technology: #4A7C94;

  /* Spacing — more generous */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 128px;
  --space-9: 160px;

  /* Typography */
  --font-en: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-ar: 'Noto Sans Arabic', 'Tahoma', sans-serif;

  /* Transitions */
  --duration-fast: 200ms;
  --duration-normal: 400ms;
  --duration-slow: 600ms;
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-enter: cubic-bezier(0, 0, 0.2, 1);
  --ease-dramatic: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-en);
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body[dir="rtl"] {
  font-family: var(--font-ar);
  line-height: 1.9;
}

/* Selection */
::selection {
  background: rgba(201, 162, 39, 0.25);
  color: var(--text-primary);
}

/* ============================================
   TYPOGRAPHY — Bolder, More Premium
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.display {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 600; }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.85rem); font-weight: 600; }
h4 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 600; }

.body-large {
  font-size: 1.35rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.body-small {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-gold);
}

/* ============================================
   LAYOUT — Wider, More Breathing Room
   ============================================ */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.section {
  padding: var(--space-8) 0;
  position: relative;
}

.section-alt {
  background: var(--bg-secondary);
}

.grid {
  display: grid;
  gap: var(--space-5);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ============================================
   NAVIGATION — Glassmorphism Premium
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-4) 0;
  background: rgba(7, 7, 7, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.navbar.scrolled {
  background: rgba(7, 7, 7, 0.9);
  border-bottom-color: rgba(201, 162, 39, 0.1);
  padding: var(--space-3) 0;
}

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

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 0.2em;
}

.logo span {
  color: var(--accent-gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  padding: var(--space-2) 0;
  transition: color var(--duration-fast) var(--ease-smooth);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent-gold);
  transition: width var(--duration-fast) var(--ease-smooth);
}

body[dir="rtl"] .nav-links a::after {
  left: auto;
  right: 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.lang-switcher {
  background: transparent;
  border: 1px solid var(--border-default);
  color: var(--text-muted);
  padding: var(--space-1) var(--space-3);
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.lang-switcher:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: var(--accent-gold-dim);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ============================================
   MOBILE MENU
   ============================================ */

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 380px;
  height: 100vh;
  background: var(--bg-secondary);
  z-index: 1001;
  padding: var(--space-7) var(--space-5);
  transition: right var(--duration-normal) var(--ease-smooth);
  overflow-y: auto;
  border-left: 1px solid var(--border-default);
}

body[dir="rtl"] .mobile-menu {
  right: auto;
  left: -100%;
  border-left: none;
  border-right: 1px solid var(--border-default);
  transition: left var(--duration-normal) var(--ease-smooth);
}

.mobile-menu.open {
  right: 0;
}

body[dir="rtl"] .mobile-menu.open {
  left: 0;
  right: auto;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal) var(--ease-smooth);
  backdrop-filter: blur(4px);
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.75rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--duration-fast);
}

.mobile-menu-close:hover {
  background: var(--bg-surface);
}

body[dir="rtl"] .mobile-menu-close {
  right: auto;
  left: var(--space-4);
}

.mobile-nav-links {
  list-style: none;
  margin-top: var(--space-6);
}

.mobile-nav-links li {
  margin-bottom: var(--space-1);
}

.mobile-nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 500;
  display: block;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-default);
  transition: all var(--duration-fast);
}

.mobile-nav-links a:hover {
  color: var(--accent-gold);
  padding-left: var(--space-2);
}

body[dir="rtl"] .mobile-nav-links a:hover {
  padding-left: 0;
  padding-right: var(--space-2);
}

/* ============================================
   BUTTONS — More Impact
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-smooth);
  border: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.1) 100%);
  opacity: 0;
  transition: opacity var(--duration-fast);
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: var(--accent-gold);
  color: var(--bg-primary);
}

.btn-primary:hover {
  background: var(--accent-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 162, 39, 0.25), 0 0 60px rgba(201, 162, 39, 0.1);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-gold);
  border: 1.5px solid var(--accent-gold);
}

.btn-secondary:hover {
  background: var(--accent-gold-dim);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(201, 162, 39, 0.15);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: var(--space-2) 0;
}

.btn-ghost:hover {
  color: var(--accent-gold);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: 0.8rem;
}

/* ============================================
   CARDS — Deeper, More Premium
   ============================================ */

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: var(--space-6);
  transition: all var(--duration-fast) var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,162,39,0.3), transparent);
  opacity: 0;
  transition: opacity var(--duration-fast);
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  border-color: rgba(201, 162, 39, 0.3);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(201, 162, 39, 0.1);
}

.card-title {
  color: var(--text-primary);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.card-cta {
  color: var(--accent-gold);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: var(--space-5);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  transition: gap var(--duration-fast);
}

.card-cta:hover {
  gap: var(--space-3);
}

/* ============================================
   HERO — Cinematic, Dramatic
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 50% 0%, rgba(201, 162, 39, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(201, 162, 39, 0.02) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(201, 162, 39, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 162, 39, 0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, var(--bg-primary) 80%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 var(--space-5);
}

.hero-logo {
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.25em;
  margin-bottom: var(--space-5);
  text-shadow: 0 0 80px rgba(201, 162, 39, 0.15);
}

.hero-logo span {
  color: var(--accent-gold);
}

.hero-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  margin: 0 auto var(--space-5);
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--accent-gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
  font-weight: 500;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.4s;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  margin-bottom: var(--space-7);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.7s;
}

.hero-cta {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 1s;
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-subtle);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 1.3s;
}

.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent-gold), transparent);
  margin: var(--space-3) auto 0;
  animation: pulseLine 2s ease-in-out infinite;
}

/* ============================================
   SECTIONS — More Breathing Room
   ============================================ */

.section-header {
  margin-bottom: var(--space-7);
}

.section-header h2 {
  margin-bottom: var(--space-4);
}

.section-header p {
  color: var(--text-muted);
  max-width: 600px;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Gold accent line */
.section-header .label {
  display: inline-block;
  margin-bottom: var(--space-4);
  position: relative;
  padding-bottom: var(--space-3);
}

.section-header .label::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent-gold);
}

body[dir="rtl"] .section-header .label::after {
  left: auto;
  right: 0;
}

/* Stats — More Impact */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-7);
}

.stat-item {
  text-align: center;
  padding: var(--space-6);
  background: var(--bg-surface);
  border-radius: 12px;
  border: 1px solid var(--border-default);
  position: relative;
  overflow: hidden;
  transition: all var(--duration-fast);
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  opacity: 0;
  transition: opacity var(--duration-fast);
}

.stat-item:hover::before {
  opacity: 1;
}

.stat-item:hover {
  border-color: rgba(201, 162, 39, 0.2);
  transform: translateY(-4px);
}

.stat-value {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-gold);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: var(--space-3);
  font-weight: 500;
}

/* Sector Cards — More Distinctive */
.sector-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
}

.sector-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: var(--space-6);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.sector-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--sector-color, var(--accent-gold));
  opacity: 0;
  transition: opacity var(--duration-fast);
}

body[dir="rtl"] .sector-card::before {
  left: auto;
  right: 0;
}

.sector-card:hover::before {
  opacity: 1;
}

.sector-card:hover {
  border-color: rgba(201, 162, 39, 0.2);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.sector-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: rgba(201, 162, 39, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-4);
  transition: all var(--duration-fast);
}

.sector-card:hover .sector-icon {
  background: rgba(201, 162, 39, 0.15);
  transform: scale(1.1);
}

.sector-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-2);
}

.sector-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.sector-count {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--accent-gold);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: var(--space-4);
  transition: gap var(--duration-fast);
}

.sector-card:hover .sector-count {
  gap: var(--space-3);
}

/* Company Cards */
.company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-4);
}

.company-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: var(--space-6);
  transition: all var(--duration-fast) var(--ease-smooth);
}

.company-card:hover {
  border-color: rgba(201, 162, 39, 0.2);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.company-logo {
  width: 72px;
  height: 72px;
  background: var(--bg-elevated);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent-gold);
  border: 1px solid var(--border-default);
}

.company-card h4 {
  font-size: 1.15rem;
  margin-bottom: var(--space-1);
}

.company-card .sector-tag {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: rgba(201, 162, 39, 0.08);
  color: var(--accent-gold);
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
}

.company-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--space-4);
  line-height: 1.6;
}

/* News Cards */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-4);
}

.news-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  overflow: hidden;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.news-card:hover {
  border-color: rgba(201, 162, 39, 0.2);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.news-image {
  width: 100%;
  height: 220px;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-subtle);
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border-default);
}

.news-content {
  padding: var(--space-5);
}

.news-date {
  font-size: 0.75rem;
  color: var(--text-subtle);
  margin-bottom: var(--space-3);
  font-weight: 500;
}

.news-card h4 {
  font-size: 1.15rem;
  margin-bottom: var(--space-2);
  line-height: 1.4;
}

.news-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ============================================
   ECOSYSTEM EXPLORER
   ============================================ */

.ecosystem-container {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6) 0;
}

.ecosystem-svg {
  width: 100%;
  max-width: 900px;
  height: auto;
  filter: drop-shadow(0 0 40px rgba(201, 162, 39, 0.05));
}

.ecosystem-node {
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.ecosystem-node:hover {
  filter: drop-shadow(0 0 12px rgba(201, 162, 39, 0.4));
}

.ecosystem-line {
  stroke: var(--border-default);
  stroke-width: 1;
  opacity: 0.5;
  transition: all var(--duration-fast);
}

.ecosystem-line.active {
  stroke: var(--accent-gold);
  stroke-width: 2;
  opacity: 1;
  filter: drop-shadow(0 0 4px rgba(201, 162, 39, 0.5));
}

.ecosystem-label {
  fill: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  text-anchor: middle;
}

.ecosystem-sublabel {
  fill: var(--text-subtle);
  font-size: 11px;
  text-anchor: middle;
}

/* Detail Panel */
.detail-panel {
  position: fixed;
  top: 0;
  right: -480px;
  width: 100%;
  max-width: 480px;
  height: 100vh;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-default);
  z-index: 1002;
  padding: var(--space-7);
  overflow-y: auto;
  transition: right var(--duration-normal) var(--ease-smooth);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
}

body[dir="rtl"] .detail-panel {
  right: auto;
  left: -480px;
  border-left: none;
  border-right: 1px solid var(--border-default);
  box-shadow: 20px 0 60px rgba(0, 0, 0, 0.5);
  transition: left var(--duration-normal) var(--ease-smooth);
}

.detail-panel.open {
  right: 0;
}

body[dir="rtl"] .detail-panel.open {
  left: 0;
  right: auto;
}

.detail-panel-close {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all var(--duration-fast);
}

.detail-panel-close:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

body[dir="rtl"] .detail-panel-close {
  right: auto;
  left: var(--space-5);
}

/* ============================================
   FORMS — Cleaner, More Premium
   ============================================ */

.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-4);
  background: var(--bg-surface);
  border: 1.5px solid var(--border-default);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 1rem;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.08);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-subtle);
}

.form-textarea {
  min-height: 160px;
  resize: vertical;
}

/* ============================================
   FOOTER — More Structured
   ============================================ */

.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-default);
  padding: var(--space-8) 0 var(--space-5);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-7);
  margin-bottom: var(--space-7);
}

.footer-brand {
  max-width: 320px;
}

.footer-brand .logo {
  margin-bottom: var(--space-4);
  font-size: 1.8rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-column h4 {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: var(--space-5);
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-3);
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all var(--duration-fast);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--accent-gold);
  transform: translateX(4px);
}

body[dir="rtl"] .footer-links a:hover {
  transform: translateX(-4px);
}

.footer-bottom {
  border-top: 1px solid var(--border-default);
  padding-top: var(--space-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-bottom p {
  color: var(--text-subtle);
  font-size: 0.8rem;
}

.social-links {
  display: flex;
  gap: var(--space-4);
}

.social-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color var(--duration-fast);
}

.social-links a:hover {
  color: var(--accent-gold);
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulseLine {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

@keyframes drawLine {
  from { stroke-dashoffset: 1000; }
  to { stroke-dashoffset: 0; }
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all var(--duration-slow) var(--ease-enter);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--duration-slow) var(--ease-enter);
}

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0ms; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 100ms; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 200ms; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 300ms; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 400ms; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 500ms; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: var(--space-7) 0; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .section {
    padding: var(--space-6) 0;
  }

  .hero {
    padding-top: 60px;
    min-height: 80vh;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-panel {
    max-width: 100%;
    right: -100%;
  }

  body[dir="rtl"] .detail-panel {
    left: -100%;
  }

  .hero-logo {
    font-size: 3rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-4);
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .sector-cards,
  .company-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   UTILITY
   ============================================ */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

body[dir="rtl"] .text-left { text-align: right; }
body[dir="rtl"] .text-right { text-align: left; }

.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }

.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }

.hidden { display: none; }

/* Loading State */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-default);
  border-top-color: var(--accent-gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* External Link Notice */
.external-notice {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal);
  backdrop-filter: blur(8px);
}

.external-notice.open {
  opacity: 1;
  visibility: visible;
}

.external-notice-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: var(--space-7);
  max-width: 420px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.external-notice-content h3 {
  margin-bottom: var(--space-3);
  font-size: 1.25rem;
}

.external-notice-content p {
  color: var(--text-muted);
  margin-bottom: var(--space-5);
  line-height: 1.6;
}

.external-notice-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .stagger-children > * {
    opacity: 1;
    transform: none;
  }
}
