/* ==========================================================================
   AL YAMAMAH GROUP - LUXURY ENTERPRISE DESIGN SYSTEM
   Awwwards / FWA Level UI/UX & High-Performance Architecture
   Deep Obsidian / Rich Charcoal Palette & Champagne Gold Accents
   ========================================================================== */

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

:root {
  --font-en-display: 'Outfit', sans-serif;
  --font-en-body: 'Plus Jakarta Sans', sans-serif;
  --font-ar: 'Cairo', sans-serif;

  /* Sovereign Deep Obsidian & Rich Charcoal Canvas Tokens */
  --canvas-top: #06080D;
  --canvas-bottom: #0B0F17;
  --canvas-surface: rgba(11, 15, 23, 0.75);

  /* Executive Champagne Gold */
  --gold-primary: #C5A059;
  --gold-accent: #D4AF37;
  --gold-light: #F5E6BE;
  --gold-dark: #8E6B23;
  --gold-gradient: linear-gradient(135deg, #FDE68A 0%, #D4AF37 45%, #C5A059 80%, #996F1C 100%);
  --gold-glow: rgba(197, 160, 89, 0.28);
  --gold-border: rgba(197, 160, 89, 0.35);

  /* Subtle Cyber Accents (Gaming Division) */
  --cyber-purple: #9333EA;
  --cyber-cyan: #06B6D4;
  --cyber-emerald: #10B981;
  --cyber-glow: rgba(147, 51, 234, 0.25);

  /* Frosted Glass System */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --glass-highlight: rgba(255, 255, 255, 0.12);
}

/* ==========================================================================
   RESET & FOUNDATIONS
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
  background-color: var(--canvas-top);
  color-scheme: dark;
}

body {
  font-family: var(--font-en-body);
  background: linear-gradient(180deg, var(--canvas-top) 0%, var(--canvas-bottom) 50%, var(--canvas-top) 100%);
  background-attachment: fixed;
  color: #E2E8F0;
  overflow-x: hidden;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* RTL Typography Swapping */
html[dir="rtl"] body {
  font-family: var(--font-ar);
}

html[dir="rtl"] .font-display {
  font-family: var(--font-ar) !important;
  letter-spacing: normal !important;
}

.font-display {
  font-family: var(--font-en-display);
  letter-spacing: -0.025em;
}

/* ==========================================================================
   METALLIC GRADIENTS & TEXT HIGHLIGHTS
   ========================================================================== */

.gold-gradient-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.cyber-gradient-text {
  background: linear-gradient(135deg, #F472B6 0%, #A855F7 50%, #38BDF8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* ==========================================================================
   AMBIENT RADIAL GLOWS & PATTERNS
   ========================================================================== */

.ambient-glow-wrapper {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.ambient-radial-gold {
  position: absolute;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(197, 160, 89, 0.12) 0%, rgba(197, 160, 89, 0.02) 60%, transparent 75%);
  filter: blur(120px);
  pointer-events: none;
}

.ambient-radial-cyber {
  position: absolute;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.10) 0%, rgba(6, 182, 212, 0.04) 55%, transparent 75%);
  filter: blur(130px);
  pointer-events: none;
}

.ambient-hero-spotlight {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.13) 0%, rgba(197, 160, 89, 0.03) 50%, transparent 75%);
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.luxury-subtle-grid {
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
}

/* ==========================================================================
   FROSTED GLASS SURFACES
   ========================================================================== */

.frosted-glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.frosted-glass-card {
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.45);
  border-radius: 1.75rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.frosted-glass-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(197, 160, 89, 0.3);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.65), 0 0 30px rgba(197, 160, 89, 0.12);
  transform: translateY(-3px);
}

/* ==========================================================================
   FLOATING EXECUTIVE DOCK (NAVBAR)
   ========================================================================== */

.executive-dock {
  background: rgba(6, 8, 13, 0.75);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.7), 0 0 1px 1px rgba(255, 255, 255, 0.05);
  transition: all 0.35s ease;
}

.executive-dock.dock-scrolled {
  background: rgba(6, 8, 13, 0.92);
  border-color: rgba(197, 160, 89, 0.28);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.85), 0 0 25px rgba(197, 160, 89, 0.12);
}

.dock-nav-link {
  font-size: 0.825rem;
  font-weight: 600;
  color: #94A3B8;
  padding: 0.5rem 0.85rem;
  border-radius: 9999px;
  transition: all 0.2s ease;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.dock-nav-link:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.06);
}

.dock-nav-link.active {
  color: #F5E6BE;
  background: rgba(197, 160, 89, 0.12);
}

/* ==========================================================================
   BUTTONS & CTAS
   ========================================================================== */

/* Primary Button (Gold Glow) */
.btn-gold-glow {
  background: var(--gold-gradient);
  color: #06080D !important;
  font-weight: 700;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 20px rgba(197, 160, 89, 0.35), 0 0 35px rgba(212, 175, 55, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  text-decoration: none;
}

.btn-gold-glow:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px rgba(197, 160, 89, 0.55), 0 0 45px rgba(212, 175, 55, 0.35);
  filter: brightness(1.05);
}

.btn-gold-glow:active {
  transform: translateY(0) scale(0.98);
}

/* Secondary Button (Frosted Glass) */
.btn-frosted-glass {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF !important;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  text-decoration: none;
}

.btn-frosted-glass:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(197, 160, 89, 0.4);
  color: #F5E6BE !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Language Switcher Pill */
.dock-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #E2E8F0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: all 0.25s ease;
  cursor: pointer;
}

.dock-lang-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--gold-primary);
  color: #FFFFFF;
  box-shadow: 0 0 18px rgba(197, 160, 89, 0.25);
}

/* ==========================================================================
   FORM INPUTS (CRITICAL FIX FOR UGLY WHITE BOXES)
   ========================================================================== */

/* Reset native input styles completely */
input, select, textarea {
  background-color: transparent;
  color: #FFFFFF;
}

.lux-translucent-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 0.75rem; /* rounded-xl */
  padding: 0.875rem 1rem; /* px-4 py-3.5 */
  font-size: 0.925rem;
  color: #FFFFFF !important;
  transition: all 0.25s ease;
  outline: none;
}

.lux-translucent-input::placeholder {
  color: #71717A !important; /* placeholder-zinc-500 */
}

.lux-translucent-input:focus {
  border-color: #C5A059 !important; /* focus:border-[#C5A059] */
  box-shadow: 0 0 0 1px #C5A059, 0 0 20px rgba(197, 160, 89, 0.2) !important;
  background-color: rgba(255, 255, 255, 0.07) !important; /* focus:bg-white/[0.07] */
}

/* Fix autofill white background in Chrome/Safari */
.lux-translucent-input:-webkit-autofill,
.lux-translucent-input:-webkit-autofill:hover, 
.lux-translucent-input:-webkit-autofill:focus {
  -webkit-text-fill-color: #FFFFFF !important;
  -webkit-box-shadow: 0 0 0px 1000px #0E1422 inset !important;
  box-shadow: 0 0 0px 1000px #0E1422 inset !important;
  border-color: #C5A059 !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* Translucent select styling */
.lux-translucent-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23C5A059'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 1rem center !important;
  background-size: 1.25rem !important;
  padding-right: 2.75rem !important;
  cursor: pointer;
}

html[dir="rtl"] .lux-translucent-select {
  background-position: left 1rem center !important;
  padding-right: 1rem !important;
  padding-left: 2.75rem !important;
}

.lux-translucent-select option {
  background-color: #0C101A;
  color: #FFFFFF;
  padding: 0.5rem;
}

/* ==========================================================================
   SPLIT SCREEN HERO & SERVICE CARDS
   ========================================================================= */

.split-visual-card {
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7);
}

.split-image-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  filter: brightness(0.7) contrast(1.1);
}

.split-visual-card:hover .split-image-cover {
  transform: scale(1.04);
  filter: brightness(0.8) contrast(1.15);
}

.split-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 8, 13, 0.1) 0%, rgba(6, 8, 13, 0.5) 50%, rgba(6, 8, 13, 0.95) 100%);
  pointer-events: none;
}

/* Floating Badges inside visuals */
.floating-spec-badge {
  background: rgba(11, 15, 23, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   FLOATING WHATSAPP BUTTON WITH PULSE
   ========================================================================== */

.floating-wa-circle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 45;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4), 0 4px 15px rgba(0, 0, 0, 0.6);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-decoration: none;
}

html[dir="rtl"] .floating-wa-circle {
  right: auto;
  left: 2rem;
}

.floating-wa-circle:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.6), 0 6px 20px rgba(0, 0, 0, 0.7);
}

.floating-wa-circle::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 9999px;
  border: 2px solid #25D366;
  opacity: 0.6;
  animation: wa-pulse 2.2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  pointer-events: none;
}

@keyframes wa-pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.25);
    opacity: 0;
  }
  100% {
    transform: scale(1.25);
    opacity: 0;
  }
}

/* ==========================================================================
   TOAST NOTIFICATION ENGINE
   ========================================================================== */

#toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

html[dir="rtl"] #toast-container {
  right: auto;
  left: 1.5rem;
}

.lux-toast {
  pointer-events: auto;
  min-width: 320px;
  max-width: 440px;
  padding: 1rem 1.25rem;
  border-radius: 1.25rem;
  background: rgba(11, 15, 23, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(197, 160, 89, 0.35);
  box-shadow: 0 20px 45px -8px rgba(0, 0, 0, 0.8), 0 0 25px rgba(197, 160, 89, 0.15);
  display: flex;
  align-items: center;
  gap: 1rem;
  transform: translateY(-20px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.lux-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.lux-toast.toast-success {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 20px 45px -8px rgba(0, 0, 0, 0.8), 0 0 25px rgba(16, 185, 129, 0.2);
}

.lux-toast.toast-error {
  border-color: rgba(244, 63, 94, 0.45);
  box-shadow: 0 20px 45px -8px rgba(0, 0, 0, 0.8), 0 0 25px rgba(244, 63, 94, 0.2);
}

/* ==========================================================================
   SCROLLBAR & SELECTION
   ========================================================================== */

::-webkit-scrollbar {
  width: 7px;
}

::-webkit-scrollbar-track {
  background: #06080D;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #C5A059;
}

::selection {
  background: rgba(197, 160, 89, 0.35);
  color: #FFFFFF;
}
