/* ══════════════════════════════════════════════════════════════
   Bycom Solutions — Riyadh Headquarters Design System
   Enterprise AI, Cloud Infrastructure & Digital Transformation
   ══════════════════════════════════════════════════════════════ */

:root {
  /* Brand Core Colors (Extracted from Bycom Brand & Cloud Identity) */
  --primary:            #6366f1;
  --primary-light:      #818cf8;
  --primary-dark:       #4338ca;
  --primary-glow:       rgba(99, 102, 241, 0.25);
  
  --cyan:               #06b6d4;
  --cyan-glow:          rgba(6, 182, 212, 0.25);
  
  --emerald:            #10b981;
  --emerald-glow:       rgba(16, 185, 129, 0.2);

  --accent-gradient:    linear-gradient(135deg, #6366f1 0%, #06b6d4 50%, #10b981 100%);
  --badge-gradient:     linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(6, 182, 212, 0.15));

  /* Surface & Canvas */
  --bg-dark:            #060813;
  --bg-surface:         #0b1024;
  --bg-card:            #101735;
  --bg-card-hover:      #151e44;
  --border-subtle:      rgba(255, 255, 255, 0.08);
  --border-glow:        rgba(99, 102, 241, 0.35);

  /* Typography */
  --text-main:          #ffffff;
  --text-muted:         rgba(255, 255, 255, 0.75);
  --text-dim:           rgba(255, 255, 255, 0.45);
  --font-ar:            'Noto Naskh Arabic', 'Cairo', serif;
  --font-en:            'Plus Jakarta Sans', -apple-system, sans-serif;

  /* Layout Rhythm */
  --nav-h:              76px;
  --nav-h-mobile:       64px;
  --radius-sm:          8px;
  --radius-md:          14px;
  --radius-lg:          24px;
  --radius-full:        9999px;

  /* Elevations */
  --shadow-glow:        0 12px 35px -10px var(--primary-glow);
  --shadow-card:        0 20px 40px -15px rgba(0, 0, 0, 0.7);
  --ease-smooth:        cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

body.lang-en {
  font-family: var(--font-en);
}

/* Background Ambient Lighting Grid */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 65%, rgba(6, 182, 212, 0.10) 0%, transparent 45%),
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  position: relative;
  z-index: 1;
}

/* ═════ NAVBAR ═════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(6, 8, 19, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--accent-gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  font-size: 1.25rem;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.logo-text h1 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.logo-text span {
  font-size: 0.65rem;
  color: var(--cyan);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--cyan);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-lang {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glow);
  background: rgba(99, 102, 241, 0.08);
  color: var(--primary-light);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-lang:hover {
  background: var(--primary);
  color: #ffffff;
}

.btn-nav-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  background: var(--accent-gradient);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: var(--shadow-glow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-nav-call:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.45);
}

.call-text-mobile { display: none; }
.call-text-desktop { display: inline; }

/* ═════ BUTTONS ═════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--accent-gradient);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: var(--shadow-glow);
  transition: all 0.25s var(--ease-smooth);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all 0.25s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ═════ HERO SECTION ═════ */
.hero {
  padding-top: calc(var(--nav-h) + 50px);
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--badge-gradient);
  border: 1px solid var(--border-glow);
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-title .text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 580px;
  line-height: 1.8;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-stats-inline {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.hero-stat-item .stat-num {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--cyan);
  line-height: 1;
}

.hero-stat-item .stat-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 4px;
}

.hero-visual {
  position: relative;
}

.hero-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-glow);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8);
  aspect-ratio: 16/9;
}

.hero-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-image-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 8, 19, 0.7) 0%, transparent 60%);
}

.hero-floating-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(11, 16, 36, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glow);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

body.lang-en .hero-floating-badge {
  left: auto;
  right: 20px;
}

.hero-floating-badge .badge-icon {
  width: 32px;
  height: 32px;
  background: rgba(16, 185, 129, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald);
  font-size: 1.1rem;
}

.hero-floating-badge .badge-text h4 {
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffffff;
}

.hero-floating-badge .badge-text p {
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* ═════ SECTION COMMONS ═════ */
.section {
  padding: 90px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  background: var(--badge-gradient);
  border: 1px solid var(--border-glow);
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 16px;
}

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

/* ═════ SERVICES BENTO GRID ═════ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s var(--ease-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.3s;
}

.bento-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.2);
  background: var(--bg-card-hover);
}

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

.bento-card.featured {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(16, 23, 53, 0.9), rgba(11, 16, 36, 0.95));
  border-color: var(--border-glow);
}

.bento-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--cyan);
}

.bento-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-main);
}

.bento-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.bento-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: gap 0.2s;
}

.bento-link:hover {
  gap: 12px;
  color: var(--primary-light);
}

/* ═════ TRUST & PERFORMANCE BAR ═════ */
.stats-banner {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 48px 0;
}

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

.stat-box h3 {
  font-size: 2.4rem;
  font-weight: 900;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}

.stat-box p {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ═════ SOLUTIONS & TECH MATRIX ═════ */
.matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.matrix-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.matrix-item .matrix-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.matrix-item h4 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.matrix-item p {
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* ═════ PACKAGES / CONSULTATION TIERS ═════ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s;
  position: relative;
}

.pricing-card.featured {
  background: linear-gradient(180deg, #131b3e 0%, #0d122b 100%);
  border-color: var(--primary);
  box-shadow: 0 20px 50px -15px rgba(99, 102, 241, 0.3);
  transform: scale(1.03);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  right: 28px;
  background: var(--accent-gradient);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: var(--radius-full);
}

body.lang-en .pricing-badge {
  right: auto;
  left: 28px;
}

.pricing-header h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.pricing-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.pricing-features li span.check {
  color: var(--emerald);
  font-weight: 900;
}

/* ═════ GOOGLE MAPS & LOCATION CARD ═════ */
.location-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.location-info {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.location-info h3 {
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 16px;
}

.location-info p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.8;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text-main);
  text-decoration: none;
}

.contact-row:hover {
  color: var(--cyan);
}

.location-map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: none;
}

/* ═════ FLOATING WHATSAPP ═════ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

body.lang-en .whatsapp-float {
  left: auto;
  right: 28px;
}

.whatsapp-float:hover {
  transform: scale(1.06);
  box-shadow: 0 14px 35px rgba(37, 211, 102, 0.55);
}

/* ═════ FOOTER ═════ */
.footer {
  background: #03040a;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 32px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

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

.footer h4 {
  color: var(--text-main);
  font-size: 1rem;
  margin-bottom: 18px;
  font-weight: 800;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.footer ul a:hover {
  color: var(--cyan);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}

/* ═════ MOBILE RESPONSIVE ENGINE (Phase 4 Standards) ═════ */
@media (max-width: 992px) {
  .hero-grid, .location-card {
    grid-template-columns: 1fr;
  }
  .bento-grid, .pricing-grid, .matrix-grid {
    grid-template-columns: 1fr;
  }
  .bento-card.featured {
    grid-column: span 1;
  }
  .pricing-card.featured {
    transform: none;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-h: var(--nav-h-mobile);
  }
  .container {
    padding: 0 16px;
  }
  .navbar {
    height: var(--nav-h);
  }
  .nav-inner {
    gap: 8px;
  }
  .nav-links {
    display: none;
  }
  .logo-wrap {
    gap: 8px;
    min-width: 0;
  }
  .logo-icon {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    border-radius: 8px;
    flex-shrink: 0;
  }
  .logo-text {
    min-width: 0;
  }
  .logo-text h1 {
    font-size: 0.95rem;
    white-space: nowrap;
    line-height: 1.2;
  }
  .logo-text span {
    font-size: 0.58rem;
    letter-spacing: 0.05em;
    white-space: nowrap;
  }
  .nav-actions {
    gap: 6px;
    flex-shrink: 0;
  }
  .btn-lang {
    padding: 5px 10px;
    font-size: 0.72rem;
  }
  .btn-nav-call {
    padding: 6px 12px;
    font-size: 0.78rem;
    white-space: nowrap;
    gap: 4px;
  }
  .hero {
    padding-top: calc(var(--nav-h) + 24px);
    padding-bottom: 50px;
  }
  .hero-title {
    font-size: clamp(1.8rem, 6vw, 2.4rem);
  }
  .hero-stats-inline {
    gap: 20px;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .location-info {
    padding: 28px 20px;
  }
}

@media (max-width: 480px) {
  :root {
    --nav-h: 60px;
  }
  .logo-text span {
    display: none;
  }
  .logo-text h1 {
    font-size: 0.88rem;
  }
  .call-text-desktop {
    display: none;
  }
  .call-text-mobile {
    display: inline;
  }
  .btn-nav-call {
    padding: 5px 10px;
    font-size: 0.74rem;
  }
  .btn-lang {
    padding: 4px 8px;
    font-size: 0.7rem;
  }
}
