@charset "UTF-8";

/* ==========================================================================
   CSS VARIABLES & DESIGN TOKENS
   ========================================================================== */
:root {
  /* Colors */
  --bg-dark: #000000;
  --bg-card: #0A0A0A;
  --bg-card-hover: #111111;
  
  --border-dim: rgba(255, 255, 255, 0.05);
  --border-base: #27272a; /* zinc-800 */
  --border-hover: #3f3f46; /* zinc-700 */

  --text-primary: #ffffff;
  --text-secondary: #e4e4e7; /* zinc-200 */
  --text-muted: #a1a1aa; /* zinc-400 */
  --text-dark: #71717a; /* zinc-500 */

  --brand-blue: #3b82f6;
  --brand-cyan: #06b6d4;
  --brand-emerald: #10b981;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Space Grotesk', var(--font-sans);
  --font-arabic: 'Alexandria', var(--font-sans);
  
  /* Layout */
  --max-width: 80rem; /* max-w-7xl */
  --section-py: 6rem;
  --px: 1.5rem;
}

@media (min-width: 640px) {
  :root { --section-py: 8rem; --px: 2rem; }
}
@media (min-width: 1024px) {
  :root { --px: 6rem; }
}

/* ==========================================================================
   RESET & GLOBAL STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

.text-white { color: var(--text-primary); }
.text-cyan { color: var(--brand-cyan); }
.text-zinc-500 { color: var(--text-dark); }
.text-zinc-400 { color: var(--text-muted); }
.text-zinc-300 { color: #d4d4d8; }
.hover-white:hover { color: var(--text-primary); transition: color 0.3s ease; }
.font-arabic { 
  font-family: var(--font-arabic); 
  font-size: 1.05em; /* Optical balance against Latin */
}

/* Selection */
::selection {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--px);
  padding-right: var(--px);
}

.py-section {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.max-w-xl { max-width: 36rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.hidden-mobile { display: none; }
@media (min-width: 768px) { .hidden-mobile { display: flex; } }

/* ==========================================================================
   COMPONENTS
   ========================================================================== */
/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dim);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.avatar {
  background: linear-gradient(135deg, #1e3a8a, #4c1d95);
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-text {
  font-weight: bold;
  font-size: 1rem;
}

.brand-text {
  font-weight: 600;
  font-size: 1rem;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}
@media(min-width: 768px) { .nav-links { display: flex; } }

/* Mobile Menu Button */
.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
}
@media(min-width: 768px) { .mobile-menu-btn { display: none; } }

/* Mobile Menu Dropdown */
.mobile-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dim);
  padding: 1.5rem var(--px);
  gap: 1.5rem;
}
.mobile-menu.active {
  display: flex;
}

.nav-links a:hover {
  color: var(--text-primary);
  transition: color 0.3s;
}

.btn-hire {
  padding: 0.5rem 1rem;
  background: white;
  color: black !important;
  border-radius: 9999px;
  font-weight: 600;
}

/* Glass Card */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-base);
  border-radius: 1.25rem;
  padding: 2.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 1rem;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: white;
  color: black;
  box-shadow: 0 10px 25px -5px rgba(255, 255, 255, 0.1);
}
.btn-outline {
  background: transparent;
  color: white;
  border: 1px solid var(--border-base);
}
.btn-outline:hover {
  background: var(--bg-card-hover);
}
.btn-block {
  width: 100%;
}

/* Icons */
.icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* Section Header */
.section-badge {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-blue);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: bold;
  color: var(--text-muted);
  margin-bottom: 3rem;
}
@media (min-width: 640px) {
  .section-title { font-size: 3rem; }
}

/* Split Layout */
.grid-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .grid-split {
    grid-template-columns: 5fr 7fr;
    gap: 4rem;
  }
}
.split-left, .split-right {
  min-width: 0; /* Prevents CSS Grid blowout */
  width: 100%;
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 5rem;
}
.hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: 
    linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 4rem 4rem;
  mask-image: linear-gradient(to bottom, black 20%, transparent 80%);
  -webkit-mask-image: linear-gradient(to bottom, black 20%, transparent 80%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid var(--border-base);
  background: rgba(24, 24, 27, 0.4);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2rem;
}
.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--brand-emerald);
  animation: pulse 2s infinite;
}
.hero-title {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1.1;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) { .hero-title { font-size: 4.5rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 5rem; } }

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 42rem;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 24rem;
}
@media (min-width: 640px) { 
  .hero-actions { flex-direction: row; max-width: none; justify-content: center; } 
}

/* Impact Section */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 500px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.stat-icon-box {
  width: 4rem;
  height: 4rem;
  background: #111;
  border: 1px solid var(--border-base);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.875rem;
  margin-bottom: 1rem;
  transition: transform 0.5s;
}
.stat-card:hover .stat-icon-box {
  transform: scale(1.1);
}
.stat-value {
  font-size: 2.25rem;
  font-weight: bold;
}
.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

/* Methodology */
.methodology-list {
  display: flex;
  flex-direction: column;
  gap: 8rem;
}
.divider {
  height: 1px;
  background: var(--border-base);
  width: 100%;
}
.split-left {
  position: sticky;
  top: 8rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.m-icon-box {
  width: 5rem;
  height: 5rem;
  background: rgba(59,130,246, 0.1);
  border: 1px solid rgba(59,130,246, 0.2);
  border-radius: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  transition: transform 0.5s;
}
.methodology-item:hover .m-icon-box {
  transform: scale(1.05);
}
.m-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.m-subtitle {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
/* Right Side RTL Content */
.content-rtl {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.m-block {
  border-bottom: 1px solid rgba(39, 39, 42, 0.5); /* zinc-800/50 */
  padding-bottom: 1.5rem;
}
.m-heading {
  font-size: 0.875rem;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}
.m-text {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.8;
  word-wrap: break-word;
}
.m-results {
  background: #0d0d0d;
  border: 1px solid var(--border-base);
  border-radius: 1.25rem;
  padding: 3rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease;
  word-wrap: break-word;
}
.m-results::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 6px; height: 100%;
  background: #3f3f46; /* zinc-700 */
}
.m-text-bold {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  line-height: 1.8;
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .skills-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .skills-grid { grid-template-columns: repeat(3, 1fr); } }

.skill-card {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.s-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid rgba(39,39,42,0.5);
  padding-bottom: 1.25rem;
}
.s-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: #111;
  border: 1px solid var(--border-base);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.875rem;
}
.s-title {
  font-size: 1.25rem;
  font-weight: bold;
}
.s-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.skill-tag {
  background: #111;
  border: 1px solid var(--border-base);
  color: var(--text-secondary);
  border-radius: 0.75rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: normal;
  display: inline-block;
  transition: all 0.2s ease;
}
.skill-tag:hover {
  background: #18181b;
  border-color: var(--border-hover);
  color: white;
}

/* Contact Section */
.contact-wrapper {
  max-width: 42rem;
  margin: 3rem auto 0;
}
.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}
.c-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
}
.c-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: #111;
  border: 1px solid var(--border-base);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s;
}
.c-card:hover .c-icon { color: white; }
.c-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.c-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-dark);
  letter-spacing: 0.05em;
  margin-bottom: 0.125rem;
}
.c-val {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.c-arrow {
  color: var(--text-dark);
}
.cta-btn {
  padding: 1.25rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-base);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
}
@media (min-width: 640px) {
  .footer-inner { flex-direction: row; }
}

/* ==========================================================================
   ANIMATIONS & UTILITIES
   ========================================================================== */
@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
