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

:root {
  /* Colors */
  --bg-dark: #0A0A0A;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --primary: #6A00FF;
  --secondary: #00E7FF;
  --highlight: #FF2E88;
  --text-main: #FFFFFF;
  --text-muted: #B0B0B0;
  
  /* Glassmorphism */
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur-nav: 16px;
  --glass-blur-card: 10px;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  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, var(--secondary) 0%, var(--primary) 50%, var(--highlight) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Background Ambient Glows */
.bg-glow-primary {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(106, 0, 255, 0.15) 0%, rgba(10, 10, 10, 0) 70%);
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(60px);
}

.bg-glow-secondary {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 231, 255, 0.1) 0%, rgba(10, 10, 10, 0) 70%);
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(60px);
}

.bg-glow-highlight {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 46, 136, 0.1) 0%, rgba(10, 10, 10, 0) 70%);
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(60px);
}

/* Custom Buttons */
.btn-primary {
  position: relative;
  background: linear-gradient(90deg, var(--primary) 0%, #8a2be2 100%);
  color: white;
  transition: all 0.3s ease;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(106, 0, 255, 0.3);
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, #8a2be2 0%, var(--primary) 100%);
  z-index: -1;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(106, 0, 255, 0.6);
  transform: translateY(-2px);
}

.btn-primary:hover::before {
  opacity: 1;
}

.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 {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* =========================================
   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"] .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(96, 165, 250, 0.5));
}

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

/* Custom Red YouTube Hover */
.hover\:bg-red-500:hover {
    background-color: #FF0000 !important;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
}

[title] {
    cursor: help;
}
