/* ==========================================================================
   Design System & Tokens - ALWASSIT CONNECT services company
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-dark: #060913;
  --bg-card: rgba(15, 23, 42, 0.68);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-glow: rgba(99, 102, 241, 0.35);
  
  --primary-500: #6366f1;
  --primary-400: #818cf8;
  --primary-600: #4f46e5;
  --secondary-400: #38bdf8;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Arabic & Latin Typography */
  --font-heading: 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Tajawal', 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Shadows & Glassmorphism */
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 10px 40px -10px rgba(99, 102, 241, 0.3);
  --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  --blur-glass: blur(18px);
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */

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

html, body {
  width: 100%;
  min-height: 100%;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Ambient Background Effects
   ========================================================================== */

.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  animation: floatAmbient 18s ease-in-out infinite alternate;
}

.glow-1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.45) 0%, rgba(99, 102, 241, 0) 70%);
  top: -100px;
  right: -100px;
}

.glow-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.35) 0%, rgba(56, 189, 248, 0) 70%);
  bottom: -150px;
  left: -100px;
  animation-duration: 22s;
  animation-delay: -5s;
}

.glow-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, rgba(168, 85, 247, 0) 70%);
  top: 40%;
  right: 45%;
  animation-duration: 15s;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image: 
    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: 40px 40px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 80%);
  pointer-events: none;
  z-index: 0;
}

@keyframes floatAmbient {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 30px) scale(1.08); }
  100% { transform: translate(30px, -20px) scale(0.95); }
}

/* ==========================================================================
   Layout Wrapper
   ========================================================================== */

.page-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1340px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ==========================================================================
   Site Header
   ========================================================================== */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0 2rem 0;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  text-transform: uppercase;
}

.brand-sub {
  color: var(--secondary-400);
  font-weight: 600;
  font-size: 1.15rem;
  text-transform: lowercase;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 1.25rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: 9999px;
  backdrop-filter: var(--blur-glass);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.pulse-indicator {
  position: relative;
  display: flex;
  width: 10px;
  height: 10px;
}

.pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  opacity: 0.75;
  animation: ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.pulse-dot {
  position: relative;
  display: inline-flex;
  border-radius: 50%;
  width: 10px;
  height: 10px;
  background-color: var(--accent-emerald);
}

@keyframes ping {
  75%, 100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* ==========================================================================
   Hero Section & Columns
   ========================================================================== */

.hero-section {
  display: grid;
  grid-template-columns: 1.18fr 1fr;
  gap: 3.5rem;
  align-items: center;
  padding: 2.2rem 0;
  flex: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.badge-tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.45rem 1.1rem;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.14);
  color: var(--primary-400);
  border: 1px solid rgba(99, 102, 241, 0.28);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.gradient-text {
  background: linear-gradient(135deg, #fff 15%, var(--primary-400) 65%, var(--secondary-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--text-secondary);
  max-width: 640px;
  font-weight: 400;
}

.hero-description strong {
  color: #fff;
}

/* ==========================================================================
   B2B Highlights
   ========================================================================== */

.b2b-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 620px;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  backdrop-filter: var(--blur-glass);
  transition: var(--transition-smooth);
}

.highlight-item:hover {
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
  background: rgba(15, 23, 42, 0.75);
}

.highlight-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(56, 189, 248, 0.2));
  border: 1px solid rgba(99, 102, 241, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-400);
  font-size: 1.1rem;
}

.highlight-info h4 {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  font-family: var(--font-heading);
}

.highlight-info p {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.highlight-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.highlight-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--secondary-400);
  border: 1px solid rgba(99, 102, 241, 0.22);
  line-height: 1.2;
}

.highlight-tag i {
  font-size: 0.7rem;
  color: var(--primary-400);
}

/* ==========================================================================
   Contact CTA Box
   ========================================================================== */

.contact-cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  max-width: 620px;
  padding: 1.1rem 1.3rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(15, 23, 42, 0.65));
  border: 1px solid rgba(99, 102, 241, 0.28);
  border-radius: 16px;
  backdrop-filter: var(--blur-glass);
}

.cta-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cta-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-heading);
}

.cta-sub {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.9rem 1.6rem;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  border: none;
  border-radius: 12px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  transition: var(--transition-smooth);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-400), var(--primary-500));
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.5);
  color: #fff;
}

.btn-primary:active {
  transform: translateY(0);
}

.cta-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.25rem;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 12px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  white-space: nowrap;
}

.btn-phone:hover {
  background: rgba(99, 102, 241, 0.25);
  border-color: var(--secondary-400);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.2);
}

.btn-phone i {
  color: var(--secondary-400);
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0 0.95rem;
  height: 40px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: var(--font-body);
  transition: var(--transition-smooth);
}

.phone-link:hover {
  color: #fff;
  border-color: var(--secondary-400);
  background: rgba(56, 189, 248, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.2);
}

.phone-link i {
  color: var(--secondary-400);
  font-size: 0.95rem;
}

/* ==========================================================================
   Progress Section
   ========================================================================== */

.progress-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 620px;
  padding: 1.15rem 1.35rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  backdrop-filter: var(--blur-glass);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
  font-weight: 700;
}

.progress-title {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.progress-percent {
  color: var(--primary-400);
  font-family: var(--font-heading);
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(270deg, var(--primary-500), var(--secondary-400));
  border-radius: 999px;
  transition: width 1.5s ease-out;
}

.milestones {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.milestone {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.milestone.done {
  color: var(--accent-emerald);
}

.milestone.active {
  color: var(--secondary-400);
  font-weight: 700;
}

/* ==========================================================================
   Visual Showcase Card (home.png)
   ========================================================================== */

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
}

.showcase-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 1rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px);
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out, box-shadow 0.35s ease;
}

.showcase-card:hover {
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(99, 102, 241, 0.25);
}

.card-glass-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.6rem 0.85rem 0.6rem;
}

.window-dots {
  display: flex;
  gap: 6px;
  direction: ltr;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.preview-badge {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.image-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #020617;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.preview-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.showcase-card:hover .preview-image {
  transform: scale(1.02);
}

.image-overlay-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(6, 9, 19, 0.6) 100%);
  pointer-events: none;
}

/* Floating Accent Badges */
.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 1.2rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  z-index: 10;
  animation: floatBadge 4s ease-in-out infinite alternate;
}

.badge-top-right {
  top: -24px;
  left: -20px;
}

.badge-bottom-left {
  bottom: -24px;
  right: -20px;
  animation-delay: -2s;
}

.badge-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(56, 189, 248, 0.25));
  border: 1px solid rgba(99, 102, 241, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-400);
  font-size: 1.15rem;
}

.badge-text-wrap {
  display: flex;
  flex-direction: column;
}

.badge-text-wrap strong {
  font-size: 0.88rem;
  color: var(--text-primary);
  font-weight: 700;
}

.badge-text-wrap span {
  font-size: 0.76rem;
  color: var(--text-secondary);
}

@keyframes floatBadge {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0 0.5rem 0;
  border-top: 1px solid var(--border-glass);
  font-size: 0.92rem;
  color: var(--text-muted);
}

.footer-left strong {
  color: var(--text-secondary);
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.social-btn:hover {
  color: #fff;
  border-color: var(--primary-400);
  background: rgba(99, 102, 241, 0.2);
  transform: translateY(-3px);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1080px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    padding: 1.5rem 0;
  }
  
  .hero-visual {
    order: -1;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }

  .hero-content {
    align-items: center;
    text-align: center;
  }

  .badge-tag {
    align-self: center;
  }

  .hero-description {
    margin: 0 auto;
  }

  .b2b-highlights {
    margin: 0 auto;
    width: 100%;
  }

  .contact-cta-box {
    margin: 0 auto;
    width: 100%;
    flex-direction: column;
    text-align: center;
  }

  .progress-section {
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .page-wrapper {
    padding: 1.5rem 1.25rem;
  }

  .site-header {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
  }

  .brand {
    align-items: center;
  }

  .hero-title {
    font-size: 2rem;
  }

  .b2b-highlights {
    grid-template-columns: 1fr;
  }

  .contact-cta-box {
    flex-direction: column;
    text-align: center;
  }

  .cta-actions {
    width: 100%;
    flex-direction: column;
  }

  .btn-primary,
  .btn-phone {
    width: 100%;
  }

  .floating-badge {
    position: static;
    margin-top: 0.75rem;
    width: 100%;
    animation: none;
  }

  .card-glass-header {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .site-footer {
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
  }
}
