/* ==========================================================================
   ORVEX SOLUTION - E-Commerce Confirmation Service
   Modern & Stylish Stylesheet with Browsing Animations
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900;1000&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #6d28d9;
  --primary-hover: #5b21b6;
  --primary-light: #ede9fe;
  --primary-glow: rgba(109, 40, 217, 0.35);
  --accent: #8b5cf6;
  --accent-neon: #a855f7;
  --dark-bg: #130924;
  --dark-surface: #1e1138;
  --light-bg: #f8f6fc;
  --light-surface: #ffffff;
  --card-border: #e9d5ff;
  --text-main: #1e1b4b;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  --font-arabic: 'Cairo', sans-serif;
  --font-latin: 'Plus Jakarta Sans', sans-serif;
}

/* Base Styles & Direction Handling */
html {
  scroll-behavior: smooth;
  max-width: 100vw;
  overflow-x: hidden;
}

html[dir="rtl"],
html:not([dir="ltr"]) {
  direction: rtl;
}

html[dir="ltr"] {
  direction: ltr !important;
}

body {
  background-color: var(--light-bg);
  color: var(--text-main);
  max-width: 100vw;
  width: 100%;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease;
}

html[dir="rtl"] body,
html:not([dir="ltr"]) body {
  font-family: var(--font-arabic);
  direction: rtl;
}

/* LTR Direction Overrides (English & French) */
html[dir="ltr"] body {
  direction: ltr !important;
  font-family: var(--font-latin);
  text-align: left;
}

html[dir="ltr"] .text-right {
  text-align: left !important;
}

html[dir="ltr"] .items-start {
  align-items: flex-start;
}

html[dir="ltr"] .faq-header {
  text-align: left !important;
  direction: ltr !important;
}

html[dir="ltr"] .faq-header span:first-child {
  text-align: left !important;
  direction: ltr !important;
}

html[dir="ltr"] .faq-content {
  text-align: left !important;
  direction: ltr !important;
}

html[dir="ltr"] .space-x-reverse > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 0;
}

html[dir="ltr"] [data-lucide="arrow-left"] {
  transform: rotate(180deg);
}

html[dir="ltr"] #booking-modal .close-quote-modal {
  left: auto;
  right: 1.25rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f0f7;
}
::-webkit-scrollbar-thumb {
  background: #c084fc;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Selection Color */
::selection {
  background-color: #8b5cf6;
  color: #ffffff;
}

/* Scroll Reveal Animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

.delay-75 { transition-delay: 75ms; }
.delay-150 { transition-delay: 150ms; }
.delay-225 { transition-delay: 225ms; }
.delay-300 { transition-delay: 300ms; }
.delay-375 { transition-delay: 375ms; }
.delay-450 { transition-delay: 450ms; }

/* Glassmorphism Classes */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.glass-card-purple {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(221, 214, 254, 0.8);
  box-shadow: 0 10px 30px -10px rgba(109, 40, 217, 0.08);
}

.glass-dark {
  background: rgba(30, 17, 56, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(139, 92, 246, 0.25);
}

/* Purple Gradient Hero */
.hero-gradient-bg {
  background: linear-gradient(145deg, #2a084e 0%, #4c1d95 40%, #6d28d9 75%, #7e22ce 100%);
  position: relative;
  overflow: hidden;
}

/* Background Animated Mesh Glow */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  pointer-events: none;
  animation: orbPulse 8s infinite alternate ease-in-out;
}

.glow-orb-1 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #a855f7 0%, rgba(147, 51, 234, 0) 70%);
  top: -100px;
  left: 10%;
}

.glow-orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #7c3aed 0%, rgba(109, 40, 217, 0) 70%);
  bottom: 0px;
  right: -80px;
  animation-duration: 11s;
}

.glow-orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #c084fc 0%, rgba(192, 132, 252, 0) 70%);
  top: 40%;
  right: 25%;
  animation-duration: 7s;
}

@keyframes orbPulse {
  0% { transform: scale(1) translate(0, 0); opacity: 0.4; }
  50% { transform: scale(1.15) translate(20px, -20px); opacity: 0.65; }
  100% { transform: scale(0.95) translate(-15px, 25px); opacity: 0.4; }
}

/* Floating Animations */
@keyframes floatGentle {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1.5deg); }
}

@keyframes floatReverse {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(8px) rotate(-1.5deg); }
}

.animate-float-1 {
  animation: floatGentle 4.5s ease-in-out infinite;
}

.animate-float-2 {
  animation: floatReverse 5.2s ease-in-out infinite;
}

.animate-float-slow {
  animation: floatGentle 7s ease-in-out infinite;
}

/* Pulse Glow Animation */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4), 0 0 30px rgba(109, 40, 217, 0.2);
  }
  50% {
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.7), 0 0 50px rgba(109, 40, 217, 0.4);
  }
}

.pulse-glow {
  animation: pulseGlow 3s infinite;
}

/* Shimmer Button Effect */
.shimmer-btn {
  position: relative;
  overflow: hidden;
}

.shimmer-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 20%;
  height: 200%;
  background: linear-gradient(
    60deg,
    rgba(255, 255, 255, 0) 10%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0) 90%
  );
  transform: rotate(25deg);
  animation: shimmerMove 3.5s infinite;
}

@keyframes shimmerMove {
  0% { left: -60%; }
  25%, 100% { left: 160%; }
}

/* Card Hover 3D Lift */
.hover-lift {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
}

.hover-lift:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 35px -10px rgba(109, 40, 217, 0.16), 0 0 1px 1px rgba(139, 92, 246, 0.3);
  border-color: #c084fc;
}

/* Badge Icon Containers */
.icon-badge-purple {
  background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(109, 40, 217, 0.12);
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.hover-lift:hover .icon-badge-purple {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, var(--primary) 0%, #9333ea 100%);
  color: #ffffff;
}

/* Hero Badge Tag (فريقنا بين يديك) */
.team-hand-tag {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  animation: floatGentle 3s ease-in-out infinite;
}

/* Range Slider Styling */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: #e2e8f0;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #9333ea);
  cursor: pointer;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 12px rgba(109, 40, 217, 0.4);
  transition: transform 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Modern Accordion */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), opacity 0.3s ease;
  opacity: 0;
}

.faq-item.active .faq-content {
  max-height: 500px;
  opacity: 1;
  transition: max-height 0.45s cubic-bezier(0.86, 0, 0.07, 1), opacity 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  background-color: var(--primary);
  color: #ffffff;
}

/* Glowing Border Section */
.glowing-border {
  position: relative;
}

.glowing-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, #8b5cf6, transparent, #c084fc);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Modal Transitions */
.modal-overlay {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 92vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-overlay.active .modal-container {
  transform: scale(1) translateY(0);
}

@media (max-width: 640px) {
  .glow-orb-1 { width: 250px; height: 250px; filter: blur(50px); }
  .glow-orb-2 { width: 260px; height: 260px; filter: blur(50px); right: 0; }
  .glow-orb-3 { display: none; }
}

/* Dark Mode Overrides */
body.dark-mode {
  background-color: var(--dark-bg);
  color: #f1f5f9;
}

body.dark-mode .glass-panel {
  background: rgba(30, 17, 56, 0.85);
  border-color: rgba(139, 92, 246, 0.2);
}

body.dark-mode .glass-card-purple {
  background: rgba(30, 17, 56, 0.7);
  border-color: rgba(139, 92, 246, 0.25);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

body.dark-mode .text-main-mode {
  color: #f8fafc;
}

body.dark-mode .text-muted-mode {
  color: #94a3b8;
}

body.dark-mode .bg-card-mode {
  background-color: var(--dark-surface);
}

body.dark-mode .border-card-mode {
  border-color: #3b1d6e;
}
