/* =========================================
   Creziax Cloud - Global Styles
========================================= */

:root {
  /* Colors */
  --bg-dark: #0D0D0D;
  --bg-card: rgba(255, 255, 255, 0.02);
  --bg-card-hover: rgba(255, 255, 255, 0.05);
  --primary: #830ECA; /* Unified purple shade matching the Strategy CTA (8300ECA/830eec variant) exactly */
  --secondary: #830ECA;
  --highlight: #830ECA;
  --text-main: #F5F5F7;
  --text-muted: #86868B;
  
  /* Glassmorphism */
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur-nav: 16px;
  --glass-blur-card: 10px;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

body {
  background-color: var(--bg-dark);
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--text-main);
  overflow-x: hidden;
  max-width: 100vw;
  /* Font families are managed by script.js based on lang attribute */
}

/* =========================================
   Utility Classes & Components 
========================================= */

/* Glassmorphism Classes */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur-card));
  -webkit-backdrop-filter: blur(var(--glass-blur-card));
  border: 1px solid var(--glass-border);
}

.glass-nav {
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(var(--glass-blur-nav));
  -webkit-backdrop-filter: blur(var(--glass-blur-nav));
  border-bottom: 1px solid var(--glass-border);
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur-card));
  -webkit-backdrop-filter: blur(var(--glass-blur-card));
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* Typography Gradients */
.text-gradient {
  background: linear-gradient(90deg, #830ECA 0%, #b06ee3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Background Ambient Glows - Hidden for clean minimal look */
.bg-glow-primary, .bg-glow-secondary, .bg-glow-highlight {
  display: none;
}

/* Custom Buttons */
.btn-primary {
  position: relative;
  background: var(--primary);
  color: white;
  transition: all 0.3s ease;
  overflow: hidden;
  z-index: 1;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.05);
}

/* =========================================
   Animations 
========================================= */

/* Scroll Observe Animation */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animation Delays */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* Custom Scrollbar */
::-webkit-scrollbar {
  display: none;
}

/* =========================================
   RTL Helpers (Arabic Support)
========================================= */
[dir="rtl"] .rtl-flip {
  display: inline-block;
  transform: scaleX(-1);
}

[dir="rtl"] .ltr-number {
  direction: ltr;
  unicode-bidi: embed;
}

[dir="rtl"] {
  line-height: 1.8 !important;
  letter-spacing: normal !important;
}

[dir="rtl"] .font-poppins {
  font-family: inherit; /* Fallback Poppins headers to Cairo in RTL */
}

/* Process Timeline Line Adjustments */
[dir="rtl"] .connect-line {
  left: auto;
  right: 0;
}

/* Hide Scrollbar for Carousel */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* =========================================
   Video Gallery Styling
========================================= */
.video-card {
    cursor: pointer;
    background: var(--bg-card);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-card:hover {
    z-index: 20;
}

.video-card iframe {
    pointer-events: none; /* Let the card handle hover */
    border-radius: inherit;
}

.thumbnail-overlay {
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0) 100%);
    z-index: 10;
}

.video-card:hover .thumbnail-overlay {
    opacity: 0;
}

.video-card img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-card:hover img {
    transform: scale(1.1);
}
/* =========================================
   Clean Professional Enhancements
========================================= */

.ph-seal-check {
  filter: drop-shadow(0 0 5px rgba(131, 14, 202, 0.6));
}

.counter {
  background: linear-gradient(to right, #fff, #888);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}



[title] {
    cursor: help;
}

/* Redesigned Corporate UI Accents */
.logo-silver {
  filter: brightness(0) invert(1) opacity(0.95);
  transition: all 0.3s ease;
}

.logo-silver:hover {
  filter: brightness(0) invert(1) opacity(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.stat-glow {
  text-shadow: 0 0 20px rgba(131, 14, 202, 0.6), 0 0 40px rgba(131, 14, 202, 0.3);
  color: #ffffff;
}

/* Corporate Hero Title Enhancement */
.hero-title-corporate {
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  line-height: 1.2;
}

/* Command Center Image Glow */
.command-center-glow {
  box-shadow: 0 0 60px rgba(131, 14, 202, 0.2), 0 20px 60px rgba(0,0,0,0.5);
}

/* Service Box Hover Effect */
.service-box {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(131, 14, 202, 0.2);
}

/* Hero Team Image Float Animation */
@keyframes heroFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.hero-float-animation {
  animation: heroFloat 4s ease-in-out infinite;
}

/* Edge Softening & Gradient Masking for Team Image */
.hero-team-img {
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 98%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 98%);
  filter: drop-shadow(0 0 25px rgba(131, 14, 202, 0.25));
  transition: filter 0.5s ease;
}

.hero-team-img:hover {
  filter: drop-shadow(0 0 35px rgba(131, 14, 202, 0.4));
}
 
/* Stat numbers visual weighting */
.stat-number-bold {
  font-weight: 800 !important;
  font-family: 'Cairo', sans-serif;
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, #ffffff 30%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

