/* ============================================================
  Araby Mobile Studio — style.css
  Premium dark landing page styles
  Colors: #070B14 bg | #00D4FF cyan | #F4B942 gold | #FFFFFF text
============================================================ */

/* ── CSS CUSTOM PROPERTIES ── */
:root {
  /* Colors — edit these to retheme the entire site */
  --bg:          #070B14;
  --bg-2:        #101827;
  --bg-card:     #0D1625;
  --cyan:        #00D4FF;
  --cyan-dim:    rgba(0, 212, 255, 0.12);
  --cyan-glow:   rgba(0, 212, 255, 0.25);
  --gold:        #F4B942;
  --gold-dim:    rgba(244, 185, 66, 0.12);
  --gold-glow:   rgba(244, 185, 66, 0.2);
  --purple:      #A855F7;
  --purple-dim:  rgba(168, 85, 247, 0.12);
  --text:        #FFFFFF;
  --text-muted:  #A7B0C0;
  --border:      rgba(255, 255, 255, 0.09);
  --border-cyan: rgba(0, 212, 255, 0.2);

  /* Typography */
  --font-body:   'Inter', Arial, sans-serif;
  --font-head:   'Poppins', Arial, sans-serif;

  /* Spacing */
  --section-gap: 100px;
  --container:   1200px;
  --radius:      14px;
  --radius-sm:   8px;
  --radius-lg:   20px;

  /* Transitions */
  --ease:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── RESET & BASE ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

/* ── UTILITY CLASSES ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Gradient text helpers */
.text-gradient-cyan {
  background: linear-gradient(135deg, var(--cyan) 0%, #66E8FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-gold {
  background: linear-gradient(135deg, var(--gold) 0%, #FFD97A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Section layout */
.section {
  padding: var(--section-gap) 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid var(--border-cyan);
  background: var(--cyan-dim);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.22s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--cyan) 0%, #0099CC 100%);
  color: #070B14;
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.5);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-dim);
}
.btn-sm  { padding: 8px 20px; font-size: 14px; }
.btn-lg  { padding: 14px 28px; font-size: 16px; }
.btn-full { width: 100%; justify-content: center; }

/* ── SCROLL FADE-IN ANIMATION ── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.fade-in--delay {
  transition-delay: 0.14s;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================
  HEADER / NAVBAR
================================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(7, 11, 20, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.header.scrolled {
  box-shadow: 0 4px 40px rgba(0,0,0,0.4);
}

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

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
}
.logo-icon {
  color: var(--cyan);
  font-size: 22px;
}
.logo-accent {
  color: var(--cyan);
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE NAV OVERLAY ── */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(7, 11, 20, 0.97);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-nav.open {
  opacity: 1;
  pointer-events: all;
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
}
.mobile-nav-link {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  padding: 10px 0;
  transition: color 0.2s;
}
.mobile-nav-link:hover { color: var(--cyan); }
.mobile-cta { font-size: 18px; padding: 14px 40px; }

/* ================================================================
  HERO SECTION
================================================================ */
.hero {
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Background glow blobs */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.18;
}
.glow-blob--cyan {
  width: 700px;
  height: 700px;
  background: var(--cyan);
  top: -200px;
  right: -100px;
  animation: blobFloat 8s ease-in-out infinite;
}
.glow-blob--gold {
  width: 500px;
  height: 500px;
  background: var(--gold);
  bottom: -100px;
  left: -100px;
  animation: blobFloat 10s ease-in-out infinite 2s;
}
.glow-blob--purple {
  width: 400px;
  height: 400px;
  background: var(--purple);
  top: 40%;
  left: 40%;
  animation: blobFloat 12s ease-in-out infinite 4s;
}
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -20px) scale(1.05); }
  66%       { transform: translate(-20px, 15px) scale(0.97); }
}

/* Hero inner layout */
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Hero badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid var(--border-cyan);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulseDot 1.5s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

/* Hero title */
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 22px;
}

/* Hero subtitle */
.hero-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 36px;
}

/* CTA row */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

/* Trust text */
.hero-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}
.trust-icon {
  color: var(--gold);
  flex-shrink: 0;
}

/* ── PHONE MOCKUP ── */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-wrap {
  position: relative;
  width: 280px;
  animation: phoneFloat 5s ease-in-out infinite;
}
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-16px); }
}

/* Glow rings behind phone */
.phone-glow {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 212, 255, 0.12) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.phone-glow--2 {
  width: 280px;
  height: 280px;
  background: radial-gradient(ellipse, rgba(244, 185, 66, 0.08) 0%, transparent 70%);
  animation: glowPulse 4s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: 1;   transform: translate(-50%, -50%) scale(1.15); }
}

/* Phone frame */
.phone {
  position: relative;
  width: 240px;
  height: 480px;
  background: linear-gradient(170deg, #1a2438 0%, #0d1525 100%);
  border-radius: 36px;
  border: 2px solid rgba(255,255,255,0.12);
  box-shadow:
    0 40px 80px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.1),
    0 0 0 1px rgba(0,212,255,0.08);
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.phone-notch {
  width: 80px;
  height: 22px;
  background: #0a1220;
  border-radius: 0 0 14px 14px;
  margin: 0 auto 8px;
  flex-shrink: 0;
}
.phone-screen {
  flex: 1;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}
.phone-home-indicator {
  width: 80px;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
  margin: 8px auto;
  flex-shrink: 0;
}

/* Wallpaper strip inside phone */
.phone-wallpaper-strip {
  display: flex;
  gap: 6px;
  height: 90px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}
.wp {
  flex: 1;
  border-radius: 8px;
}
.wp-1 { background: linear-gradient(135deg, #1a0a2e 0%, #7B2FBE 100%); }
.wp-2 { background: linear-gradient(135deg, #0D2137 0%, #00D4FF 100%); }
.wp-3 { background: linear-gradient(135deg, #1a1a0d 0%, #F4B942 100%); }

/* App cards inside phone */
.phone-apps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  flex: 1;
}
.phone-app-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 4px;
}
.phone-app-card span {
  font-size: 9px;
  color: var(--text-muted);
  font-weight: 500;
}
.app-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}
.app-icon--cyan   { background: linear-gradient(135deg, #004D60, #00D4FF); color: #fff; }
.app-icon--gold   { background: linear-gradient(135deg, #5C4200, #F4B942); color: #fff; }
.app-icon--purple { background: linear-gradient(135deg, #2D1B5C, #A855F7); color: #fff; }
.app-icon--green  { background: linear-gradient(135deg, #0A3020, #22C55E); color: #fff; }

/* Phone nav dots */
.phone-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 0;
  flex-shrink: 0;
}
.phone-bar-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
}
.phone-bar-dot--active { background: var(--cyan); }

/* Floating chip labels */
.float-chip {
  position: absolute;
  background: rgba(13, 22, 37, 0.9);
  border: 1px solid var(--border-cyan);
  border-radius: 100px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  white-space: nowrap;
}
.float-chip--top    { top: 40px; right: -24px; }
.float-chip--bottom { bottom: 60px; left: -24px; }

/* ================================================================
  STATS SECTION
================================================================ */
.stats {
  padding: 60px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.stat-card {
  padding: 32px 28px;
  text-align: center;
  border-right: 1px solid var(--border);
  position: relative;
}
.stat-card:last-child { border-right: none; }

.stat-num {
  font-family: var(--font-head);
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.stat-sub {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ================================================================
  PRODUCTS SECTION
================================================================ */
.products {
  background: var(--bg);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.28s var(--ease), border-color 0.28s, box-shadow 0.28s;
  cursor: default;
  position: relative;
  overflow: hidden;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-cyan);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(0,212,255,0.08);
}
.product-card:hover::before { opacity: 1; }

.product-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.product-icon svg { width: 26px; height: 26px; }
.product-icon--cyan   { background: var(--cyan-dim);   color: var(--cyan);   border: 1px solid rgba(0,212,255,0.2); }
.product-icon--gold   { background: var(--gold-dim);   color: var(--gold);   border: 1px solid rgba(244,185,66,0.2); }
.product-icon--purple { background: var(--purple-dim); color: var(--purple); border: 1px solid rgba(168,85,247,0.2); }

.product-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}
.product-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 18px;
}
.product-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 100px;
}

/* ================================================================
  SERVICES SECTION
================================================================ */
.services {
  background: var(--bg-2);
}

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

/* Service list */
.service-item {
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.service-item:first-child { border-top: 1px solid var(--border); }

.service-num {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan);
  opacity: 0.6;
  min-width: 30px;
  padding-top: 2px;
}
.service-info h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
  transition: color 0.2s;
}
.service-item:hover .service-info h3 { color: var(--cyan); }
.service-info p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Services panel */
.services-panel-inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  position: sticky;
  top: 90px;
}
.panel-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid rgba(244,185,66,0.2);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
  letter-spacing: 0.06em;
}
.services-panel-inner h3 {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}
.services-panel-inner p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}
.panel-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.panel-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
}
.panel-list li svg { color: var(--cyan); flex-shrink: 0; }

/* ================================================================
  PORTFOLIO SECTION
================================================================ */
.portfolio {
  background: var(--bg);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.28s var(--ease), border-color 0.28s, box-shadow 0.28s;
  animation-delay: var(--card-delay, 0ms);
}
.portfolio-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}

/* Preview box */
.portfolio-preview {
  height: 180px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Preview label watermark */
.preview-label {
  position: absolute;
  top: 10px; left: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.3);
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 2;
}

/* -- Luxury preview -- */
.portfolio-preview--luxury {
  background: linear-gradient(135deg, #1a1000 0%, #3D2C00 50%, #1a1000 100%);
}
.pp-art--luxury { position: absolute; inset: 0; }
.pp-layer {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(244,185,66,0.3) 0%, transparent 60%);
}
.pp-layer--2 {
  background: radial-gradient(ellipse at 30% 70%, rgba(244,185,66,0.15) 0%, transparent 50%);
}
.pp-shimmer {
  position: absolute;
  top: 30%;
  left: -20%;
  width: 140%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244,185,66,0.6), transparent);
  transform: rotate(-30deg);
}

/* -- Anime preview -- */
.portfolio-preview--anime {
  background: linear-gradient(135deg, #0D0020 0%, #2D0060 100%);
}
.pp-art--anime { position: absolute; inset: 0; overflow: hidden; }
.pp-circle {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 120px; height: 120px;
  border-radius: 50%;
  border: 2px solid rgba(168,85,247,0.4);
}
.pp-circle--2 {
  width: 80px; height: 80px;
  border-color: rgba(0,212,255,0.4);
}
.pp-lines {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 0;
}
.pp-lines span {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168,85,247,0.3), transparent);
}

/* -- AMOLED preview -- */
.portfolio-preview--amoled {
  background: #000000;
}
.pp-art--amoled { position: absolute; inset: 0; }
.pp-star {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
}
.pp-star--big {
  width: 6px; height: 6px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

/* -- Educational app preview -- */
.portfolio-preview--edu {
  background: linear-gradient(135deg, #071225 0%, #0D2137 100%);
}
.pp-art--edu {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
}
.pp-phone-mini {
  width: 80px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(0,212,255,0.3);
  border-radius: 10px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pp-ui-bar {
  height: 6px;
  background: rgba(0,212,255,0.4);
  border-radius: 3px;
  width: 100%;
}
.pp-ui-bar--sm { background: rgba(255,255,255,0.15); }
.pp-ui-btn {
  height: 20px;
  background: linear-gradient(135deg, rgba(0,212,255,0.4), rgba(0,212,255,0.2));
  border-radius: 4px;
  margin-top: 4px;
}

/* -- Game preview -- */
.portfolio-preview--game {
  background: linear-gradient(135deg, #0A1A0A 0%, #0d2e1a 100%);
}
.pp-art--game {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
}
.pp-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 36px);
  grid-template-rows: repeat(3, 36px);
  gap: 4px;
}
.g-cell {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 5px;
}
.g-cell--active { background: rgba(0,212,255,0.3); border-color: rgba(0,212,255,0.5); }
.g-cell--gold   { background: rgba(244,185,66,0.4); border-color: rgba(244,185,66,0.6); }

/* -- Icons preview -- */
.portfolio-preview--icons {
  background: linear-gradient(135deg, #0D0D1A 0%, #1A1A35 100%);
}
.pp-art--icons {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
}
.pp-icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px;
}
.pi-box {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--c, #fff);
}

/* Portfolio info */
.portfolio-info {
  padding: 20px 22px;
}
.portfolio-tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan);
  margin-bottom: 8px;
  display: block;
}
.portfolio-info h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.portfolio-info p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ================================================================
  WHY CHOOSE US SECTION
================================================================ */
.why {
  background: var(--bg-2);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 30px;
  transition: transform 0.28s var(--ease), border-color 0.28s;
  position: relative;
}
.why-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,212,255,0.2);
}

/* Featured middle card */
.why-card--featured {
  border-color: rgba(244,185,66,0.2);
  background: linear-gradient(160deg, #111822 0%, #0d1625 100%);
}
.why-card--featured:hover {
  border-color: rgba(244,185,66,0.4);
}
.why-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bg);
  background: var(--gold);
  padding: 3px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.why-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.why-icon svg { width: 28px; height: 28px; }
.why-icon--cyan { background: var(--cyan-dim); color: var(--cyan); border: 1px solid rgba(0,212,255,0.2); }
.why-icon--gold { background: var(--gold-dim); color: var(--gold); border: 1px solid rgba(244,185,66,0.2); }

.why-card h3 {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 12px;
}
.why-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ================================================================
  CONTACT SECTION
================================================================ */
.contact {
  background: var(--bg);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}

/* Contact cards */
.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: border-color 0.25s, transform 0.25s;
}
.contact-card:hover {
  border-color: var(--border-cyan);
  transform: translateX(4px);
}

.contact-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--cyan-dim);
  border: 1px solid rgba(0,212,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  flex-shrink: 0;
}
.contact-card-icon svg { width: 20px; height: 20px; }

.contact-card-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.contact-card-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s;
}
.contact-card-value:hover { color: var(--cyan); }

/* Contact form */
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.22s, box-shadow 0.22s;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(167, 176, 192, 0.5);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.1);
}

/* ================================================================
  FOOTER
================================================================ */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 70px 0 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 300px;
}

.footer-col-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 20px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--cyan); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copy, .footer-built {
  font-size: 13px;
  color: var(--text-muted);
}

/* ================================================================
  BACK TO TOP BUTTON
================================================================ */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 500;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-cyan);
  color: var(--cyan);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.3s, transform 0.3s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.back-to-top:hover {
  box-shadow: 0 0 24px rgba(0,212,255,0.3);
}

/* ================================================================
  RESPONSIVE — TABLET
================================================================ */
@media (max-width: 1024px) {
  .hero-inner       { grid-template-columns: 1fr; text-align: center; }
  .hero-content     { order: 1; }
  .hero-visual      { order: 2; }
  .hero-subtitle    { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-cta         { justify-content: center; }
  .hero-trust       { justify-content: center; }

  .products-grid    { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid   { grid-template-columns: repeat(2, 1fr); }
  .why-grid         { grid-template-columns: 1fr 1fr; }
  .why-card--featured { grid-column: span 2; }
  .stats-grid       { grid-template-columns: repeat(2, 1fr); }
  .stat-card        { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-card:nth-child(2n) { border-right: none; }

  .services-layout  { grid-template-columns: 1fr; }
  .services-panel-inner { position: static; }

  .contact-layout   { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: span 2; }
}

/* ================================================================
  RESPONSIVE — MOBILE
================================================================ */
@media (max-width: 640px) {
  :root { --section-gap: 70px; }

  .nav-links        { display: none; }
  .hamburger        { display: flex; }
  .nav-actions .btn-sm { display: none; }

  .hero             { padding: 110px 0 60px; min-height: auto; }
  .hero-title       { font-size: 30px; }
  .hero-subtitle    { font-size: 15px; }
  .hero-cta         { flex-direction: column; align-items: center; }
  .hero-cta .btn    { width: 100%; max-width: 320px; justify-content: center; }

  .phone-wrap       { width: 200px; }
  .phone            { width: 180px; height: 360px; border-radius: 28px; }
  .float-chip--top  { right: -10px; }
  .float-chip--bottom { left: -10px; }

  .stats-grid       { grid-template-columns: repeat(2, 1fr); }
  .products-grid    { grid-template-columns: 1fr; }
  .portfolio-grid   { grid-template-columns: 1fr; }
  .why-grid         { grid-template-columns: 1fr; }
  .why-card--featured { grid-column: span 1; }

  .contact-form-wrap { padding: 28px 22px; }
  .services-panel-inner { padding: 28px 22px; }

  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .section-title { font-size: 26px; }
}

/* ================================================================
  LANGUAGE TOGGLE BUTTON
================================================================ */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 212, 255, 0.07);
  border: 1px solid var(--border-cyan);
  border-radius: 100px;
  color: var(--cyan);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.lang-toggle:hover {
  background: var(--cyan-dim);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.2);
}

/* ================================================================
  RTL — Arabic layout overrides
  Applied when <html dir="rtl"> is set by JS
================================================================ */

/* Body font for Arabic */
[dir="rtl"] body {
  font-family: 'Cairo', 'Inter', Arial, sans-serif;
}

/* Flip text alignment where needed */
[dir="rtl"] .hero-content { text-align: right; }
[dir="rtl"] .hero-subtitle { margin-left: 0; margin-right: 0; }
[dir="rtl"] .hero-cta { justify-content: flex-start; }
[dir="rtl"] .hero-trust { justify-content: flex-start; }

/* Swap phone chip positions */
[dir="rtl"] .float-chip--top    { right: auto; left: -24px; }
[dir="rtl"] .float-chip--bottom { left: auto; right: -24px; }

/* Section header stays centered — no change needed */

/* Product cards — text right-aligned */
[dir="rtl"] .product-title,
[dir="rtl"] .product-desc { text-align: right; }

/* Service items */
[dir="rtl"] .service-num { text-align: right; }
[dir="rtl"] .service-info h3,
[dir="rtl"] .service-info p { text-align: right; }

/* Services panel list — flip icon direction */
[dir="rtl"] .panel-list li { flex-direction: row-reverse; }
[dir="rtl"] .panel-list li svg { margin-left: 0; }

/* Contact card slide direction */
[dir="rtl"] .contact-card:hover { transform: translateX(-4px); }

/* Footer bottom */
[dir="rtl"] .footer-bottom { flex-direction: row-reverse; }

/* Stat numbers — larger on Arabic */
[dir="rtl"] .stat-num { letter-spacing: 0; }

/* Why cards */
[dir="rtl"] .why-card h3,
[dir="rtl"] .why-card p { text-align: right; }

/* Hero CTA button arrow — flip direction for RTL */
[dir="rtl"] .btn svg {
  transform: scaleX(-1);
}

/* Portfolio info */
[dir="rtl"] .portfolio-info h3,
[dir="rtl"] .portfolio-info p { text-align: right; }

/* Form */
[dir="rtl"] .form-group label { text-align: right; }

/* Footer */
[dir="rtl"] .footer-desc { text-align: right; }
[dir="rtl"] .footer-links { text-align: right; }
[dir="rtl"] .footer-copy,
[dir="rtl"] .footer-built { text-align: right; }

/* Section tags center — already centered, fine */

/* On tablet/mobile, hero was already stacked centered, keep it */
@media (max-width: 1024px) {
  [dir="rtl"] .hero-content { text-align: center; }
  [dir="rtl"] .hero-cta { justify-content: center; }
  [dir="rtl"] .hero-trust { justify-content: center; }
  [dir="rtl"] .float-chip--top    { right: auto; left: -10px; }
  [dir="rtl"] .float-chip--bottom { left: auto; right: -10px; }
}

/* Nav actions gap on mobile */
@media (max-width: 640px) {
  .lang-toggle { padding: 4px 10px; font-size: 11px; }
}
