/* --- [ 1 ] THE CORE & AESTHETIC TOKENS --- */
:root {
  --bg-primary: #020409;
  --bg-secondary: #0A0D15;
  --bg-glass: rgba(14, 21, 39, 0.6);
  --ink-primary: #F0F4FF;
  --ink-secondary: #A0ABC2;
  --ink-muted: #6B7A99;
  
  --brand-primary: #8A3FFC; /* Electric Violet */
  --brand-secondary: #33B1FF; /* Luminous Blue */
  --brand-accent: #E62E8A;   /* Neon Pink */

  --glow-intense: rgba(138, 63, 252, 0.35);
  --glow-subtle: rgba(138, 63, 252, 0.15);
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.2);

  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  
  --shadow-card: 0 16px 40px -10px rgba(0, 0, 0, 0.4);
  --transition-fast: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);

  font-family: 'Manrope', 'Tajawal', system-ui, sans-serif;
  color-scheme: dark;
}

/* --- [ 2 ] BASE & LAYOUT SETUP --- */
*, *::before, *::after { box-sizing: border-box; }

body {
  background-color: var(--bg-primary);
  color: var(--ink-primary);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  margin: 0;
}

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

section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 16px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
}
h1 { font-size: clamp(3rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2.2rem, 5vw, 3.5rem); }

p {
  margin: 0 0 24px;
  color: var(--ink-secondary);
  max-width: 65ch;
}
a { color: inherit; text-decoration: none; }

/* =================================================================
   1. قسم "من نحن" (ABOUT SECTION)
   ================================================================= */
.about-section {
  padding-top: 120px;
  padding-bottom: 120px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  perspective: 1000px; 
}

.about-background-grid {
  position: absolute;
  inset: 0;
  background-image: url('data:image/svg+xml,%3Csvg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-48 0c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-48 0c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7z" id="a" fill="%230A0D15"/%3E%3Cuse xlink:href="%23a" y="50"/%3E%3Cuse xlink:href="%23a" x="50"/%3E%3Cuse xlink:href="%23a" x="50" y="50"/%3E%3C/svg%3E');
  background-size: 100px;
  opacity: 0.5;
  animation: pan-grid 60s linear infinite;
  z-index: 0;
}
@keyframes pan-grid {
  0% { background-position: 0 0; }
  100% { background-position: 100px 100px; }
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.about-content {
  opacity: 0;
  animation: fadeInUp 0.8s 0.2s ease forwards;
}

.about-tagline {
  color: var(--brand-secondary);
  font-weight: 700;
  margin-bottom: 16px;
}

.about-headline {
  color: var(--ink-primary);
  margin-bottom: 24px;
}
.about-headline > span {
  color: var(--brand-primary);
}

.about-description {
  max-width: 50ch;
  margin-bottom: 40px;
}

.about-stats {
  display: flex;
  gap: 32px;
  align-items: center;
  margin-bottom: 40px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: -16px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 40px;
  background: var(--border-color);
}

.stat-item .stat-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--ink-primary);
  line-height: 1;
  font-feature-settings: 'tnum';
  font-variant-numeric: tabular-nums;
}
.stat-item .stat-label {
  color: var(--ink-muted);
  max-width: 10ch;
  line-height: 1.4;
  margin: 0;
}

.about-cta-buttons {
  display: flex;
  gap: 16px;
}

.cta-button {
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}
.cta-button.primary {
  background-color: var(--brand-primary);
  color: var(--ink-primary);
  box-shadow: 0 0 25px var(--glow-subtle);
}
.cta-button.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px var(--glow-intense);
}
.cta-button.secondary {
  background-color: transparent;
  color: var(--ink-secondary);
  border-color: var(--border-color);
}
.cta-button.secondary:hover {
  background-color: var(--bg-secondary);
  border-color: var(--border-hover);
  color: var(--ink-primary);
}

.about-image-interactive-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
  opacity: 0;
  animation: fadeInUp 0.8s 0.4s ease forwards;
}

.about-image-wrapper {
  position: relative;
  transition: transform var(--transition-slow);
  transform: rotateY(var(--rotate-y, 0)) rotateX(var(--rotate-x, 0));
}

.about-image-wrapper::before {
  content: '';
  position: absolute;
  z-index: 0;
  inset: -50px;
  background: radial-gradient(circle, var(--brand-primary) 0%, var(--brand-secondary) 50%, transparent 70%);
  opacity: 0.2;
  filter: blur(120px);
  border-radius: 50%;
}

.about-image {
  max-width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 25px 40px rgba(0,0,0,0.4));
  border-radius: var(--radius-xl);
}

/* =================================================================
   2. قسم "شركاؤنا" (PARTNERS)
   ================================================================= */
.partners-section {
  background-color: var(--bg-secondary8);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 25px;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 110px;
    padding: 20px;
    background-color: var(--bg-primary9);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    filter: grayscale(1) opacity(0.7);
    transition: filter var(--transition-fast);
}

.partner-logo:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: var(--brand-primary);
    box-shadow: 0 0 25px var(--glow-subtle);
    background-color: var(--bg-secondary);
}

.partner-logo:hover img {
    filter: grayscale(0) opacity(1);
}

/* =================================================================
   3. التصميم المتجاوب
   ================================================================= */
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-image-interactive-wrapper {
    order: -1;
    margin-bottom: 40px;
  }
  .about-description {
    margin-inline: auto;
  }
  .about-stats, .about-cta-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
  .partner-logo {
    height: 90px;
  }
}

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