/* ============================================
   OMAR PORTFOLIO - HOME PAGE STYLES
   ============================================ */

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__mesh {
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
}

.hero__grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-light) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero__orb--1 { width: 500px; height: 500px; background: rgba(37,99,235,0.12); top: -100px; right: -100px; animation: float 8s ease-in-out infinite; }
.hero__orb--2 { width: 350px; height: 350px; background: rgba(124,58,237,0.10); bottom: 0; left: -80px; animation: float 10s ease-in-out infinite reverse; }
.hero__orb--3 { width: 250px; height: 250px; background: rgba(14,165,233,0.08); top: 40%; left: 35%; animation: float 12s ease-in-out infinite 2s; }

.hero__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  position: relative;
  z-index: 1;
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

.hero__content {
  max-width: 600px;
}

/* Hero Label */
.hero__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-sm);
  animation: fadeInDown 0.6s ease both;
}

[lang="ar"] .hero__label { font-family: var(--font-arabic); }

.hero__availability-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 3px rgba(16,185,129,0.2);
  animation: pulse-glow 2s infinite;
  flex-shrink: 0;
}

.hero__label-sep { color: var(--border-medium); }

/* Hero Title */
.hero__title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-6);
  letter-spacing: -0.03em;
}

[lang="ar"] .hero__title { font-family: var(--font-arabic); }

.hero__title-line { display: block; }
.hero__title-line--accent {
  position: relative;
  display: inline-block;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__underline-svg {
  position: absolute;
  bottom: -8px;
  left: 0; right: 0;
  width: 100%; height: 12px;
  overflow: visible;
}

/* Hero Desc */
.hero__desc {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-8);
  max-width: 520px;
}

[lang="ar"] .hero__desc { font-family: var(--font-arabic); }

/* Hero CTAs */
.hero__ctas {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

.hero__cta-primary { animation: scaleIn 0.5s ease 0.4s both; }

/* Hero Platforms */
.hero__platforms {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

[lang="ar"] .hero__platforms { font-family: var(--font-arabic); }

.hero__platforms-label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero__platforms-list { display: flex; gap: var(--space-2); flex-wrap: wrap; }

.hero__platform-badge {
  padding: 4px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.hero__platform-badge:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: var(--bg-surface);
}

/* Hero Visual */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__card-stack {
  position: relative;
  width: 100%;
  max-width: 440px;
}

/* Main KPI Card */
.hero__kpi-card--main {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-xl);
  position: relative;
  z-index: 2;
  animation: scaleIn 0.6s ease 0.3s both;
}

.hero__kpi-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
}

.hero__kpi-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  display: flex; align-items: center; justify-content: center;
  color: white;
}

.hero__kpi-badge--green {
  margin-left: auto;
  padding: 3px 10px;
  background: rgba(16,185,129,0.1);
  color: #10B981;
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
}

[lang="ar"] .hero__kpi-badge--green { margin-left: 0; margin-right: auto; }

.hero__kpi-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.hero__kpi-metric { text-align: center; }
.hero__kpi-value {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--text-primary);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__kpi-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 500;
}

.hero__kpi-chart { height: 50px; overflow: hidden; }
.hero__kpi-chart svg { width: 100%; height: 100%; }

/* Float Cards */
.hero__float-card {
  position: absolute;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  box-shadow: var(--shadow-lg);
  z-index: 3;
}

.hero__float-icon { font-size: 1.5rem; }
.hero__float-value {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--text-primary);
}
.hero__float-label { font-size: var(--text-xs); color: var(--text-muted); font-weight: 500; }

.hero__float-card--spend  { top: -20px;  left: -30px;  animation: float 6s ease-in-out infinite; }
.hero__float-card--brands { bottom: 60px; right: -24px; animation: float 7s ease-in-out infinite 1s; }
.hero__float-card--markets{ bottom: -10px; left: 20px;  animation: float 8s ease-in-out infinite 2s; }

/* Hero Scroll */
.hero__scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 500;
  z-index: 1;
  animation: fadeIn 1s ease 1s both;
}

[lang="ar"] .hero__scroll { font-family: var(--font-arabic); }

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--border-medium), transparent);
  animation: shimmer 2s ease infinite;
}

/* ---- METRICS ---- */
.metrics {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.metrics__grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.metrics__item {
  flex: 1;
  min-width: 180px;
  text-align: center;
  padding: var(--space-8) var(--space-4);
}

.metrics__value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-2);
}

.metrics__label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 500;
}

[lang="ar"] .metrics__label { font-family: var(--font-arabic); }

.metrics__divider {
  width: 1px;
  height: 60px;
  background: var(--border-light);
  flex-shrink: 0;
}

/* ---- ABOUT SNAP ---- */
.about-snap__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.about-snap__p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-4);
  font-size: var(--text-lg);
}

[lang="ar"] .about-snap__p { font-family: var(--font-arabic); }

.about-snap__beliefs {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: var(--space-6) 0;
}

.about-snap__belief {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
}

.about-snap__belief-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gradient-primary);
  flex-shrink: 0;
}

/* Timeline */
.about-snap__timeline {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  position: relative;
}

.about-snap__tl-item {
  display: flex;
  gap: var(--space-5);
  padding-bottom: var(--space-8);
  position: relative;
}

.about-snap__tl-item:last-child { padding-bottom: 0; }

.about-snap__tl-item::before {
  content: '';
  position: absolute;
  left: 44px;
  top: 30px;
  bottom: 0;
  width: 2px;
  background: var(--border-light);
}

[lang="ar"] .about-snap__tl-item::before { left: auto; right: 44px; }

.about-snap__tl-item:last-child::before { display: none; }

.about-snap__tl-year {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 800;
  color: var(--accent-blue);
  width: 44px;
  flex-shrink: 0;
  padding-top: 2px;
}

.about-snap__tl-title {
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--text-primary);
  margin-bottom: 4px;
}

.about-snap__tl-company {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 6px;
}

.about-snap__tl-brands {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.6;
}

.about-snap__tl-badge {
  display: inline-flex;
  padding: 2px 10px;
  background: rgba(16,185,129,0.1);
  color: #10B981;
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  margin-top: 6px;
}

/* ---- BRANDS GRID ---- */
.featured-brands__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-10);
  gap: var(--space-6);
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.brand-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
  text-decoration: none;
  display: block;
}

.brand-card__accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--brand-color, var(--accent-blue));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.brand-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-accent); }
.brand-card:hover .brand-card__accent { opacity: 1; }

.brand-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.brand-card__logo {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 800;
}

.brand-card__market {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-elevated);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
}

.brand-card__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.brand-card__niche {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-5);
}

.brand-card__cta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent-blue);
}

[lang="ar"] .brand-card__cta { font-family: var(--font-arabic); }

/* ---- NICHES ---- */
.niches { background: var(--bg-elevated); }
.niches__grid { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; }

.niche-pill {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-base);
  cursor: default;
}

[lang="ar"] .niche-pill { font-family: var(--font-arabic); }

.niche-pill:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: var(--bg-surface);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.niche-pill__icon { font-size: 1.1rem; }

/* ---- HOW I WORK ---- */
.how-i-work__header {
  text-align: center;
  margin-bottom: var(--space-12);
}
.how-i-work__header .section-label { justify-content: center; }
.how-i-work__header .section-desc { margin: 0 auto; }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
  position: relative;
}

.process-step {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  position: relative;
  transition: all var(--transition-base);
}

.process-step:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.process-step__num {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.25;
  line-height: 1;
  margin-bottom: var(--space-3);
}

.process-step__title {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

[lang="ar"] .process-step__title { font-family: var(--font-arabic); }

.process-step__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

[lang="ar"] .process-step__desc { font-family: var(--font-arabic); }

.process-step__arrow {
  position: absolute;
  top: 50%;
  right: -16px;
  transform: translateY(-50%);
  z-index: 2;
  width: 32px; height: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  box-shadow: var(--shadow-xs);
}

[lang="ar"] .process-step__arrow {
  right: auto;
  left: -16px;
  transform: translateY(-50%) scaleX(-1);
}

/* ---- WHY SNAP ---- */
.why-snap__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.why-snap__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.why-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  transition: all var(--transition-base);
}

.why-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.why-card__icon { font-size: 1.75rem; margin-bottom: var(--space-3); }
.why-card__title { font-weight: 700; font-size: var(--text-base); margin-bottom: var(--space-2); }
.why-card__desc { font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.6; }
[lang="ar"] .why-card__desc { font-family: var(--font-arabic); }

/* ---- TOOLS ---- */
.tools { background: var(--bg-elevated); overflow: hidden; }
.tools__label { margin-bottom: var(--space-6); }
.tools__track-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);
}

.tools__track {
  display: flex;
  gap: var(--space-3);
  animation: scrollLeft 30s linear infinite;
  width: max-content;
}

@keyframes scrollLeft {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.tools__track:hover { animation-play-state: paused; }

.tool-tag {
  padding: var(--space-2) var(--space-5);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.tool-tag:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

/* ---- FINAL CTA ---- */
.cta-final__card {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  position: relative;
  text-align: center;
  padding: var(--space-20) var(--space-8);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xl);
}

.cta-final__bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  opacity: 0.6;
}

.cta-final__content { position: relative; z-index: 1; }

.cta-final__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(16,185,129,0.1);
  color: #10B981;
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: var(--radius-full);
  padding: 6px 18px;
  font-size: var(--text-xs);
  font-weight: 700;
  margin-bottom: var(--space-6);
}

[lang="ar"] .cta-final__badge { font-family: var(--font-arabic); }

.cta-final__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: var(--space-4);
  letter-spacing: -0.03em;
}

[lang="ar"] .cta-final__title { font-family: var(--font-arabic); }

.cta-final__desc {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
}

[lang="ar"] .cta-final__desc { font-family: var(--font-arabic); }

.cta-final__actions { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; }

.cta-final__wa-btn {
  background: #25D366;
  color: white;
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
}
.cta-final__wa-btn:hover {
  background: #20c55e;
  box-shadow: 0 6px 28px rgba(37,211,102,0.4);
  transform: translateY(-1px);
}
.cta-final__wa-btn::after { background: rgba(255,255,255,0.15); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .hero__container { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .hero { min-height: auto; padding: 120px 0 60px; }
  .about-snap__grid { grid-template-columns: 1fr; }
  .why-snap__grid { grid-template-columns: 1fr; }
  .brands-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-step__arrow { display: none; }
}

@media (max-width: 768px) {
  .brands-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .why-snap__cards { grid-template-columns: 1fr; }
  .metrics__divider { display: none; }
  .metrics__grid { flex-direction: row; flex-wrap: wrap; }
  .metrics__item { min-width: 150px; }
  .featured-brands__header { flex-direction: column; align-items: flex-start; }
}
