/* ===================================================================
   Kuwait Digital Marketing - Modern & Elegant Stylesheet
   Location: Mena Bazar, Emara Tharbiyah Building, Kuwait City
   Phone & WhatsApp: +965 99633042
   =================================================================== */

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

:root {
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --secondary: #06b6d4;
  --accent-gold: #f59e0b;
  --accent-emerald: #10b981;
  --dark-bg: #070913;
  --card-bg: #0f172a;
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-hover: rgba(99, 102, 241, 0.4);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-arabic: 'Tajawal', sans-serif;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--dark-bg);
  color: var(--text-main);
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  background-color: var(--dark-bg);
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
}

.font-arabic {
  font-family: var(--font-arabic);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: #090d16;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 9999px;
  border: 2px solid #090d16;
}
::-webkit-scrollbar-thumb:hover {
  background: #6366f1;
}

/* Glassmorphism Classes */
.glass-panel {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
}

.glass-nav {
  background: rgba(7, 9, 19, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.glass-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid var(--card-border);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  border-color: var(--card-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(99, 102, 241, 0.2);
}

/* Glowing Background Blobs */
.blob-glow {
  position: absolute;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  opacity: 0.45;
  animation: pulse-glow 8s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
  0% { transform: scale(0.9) translate(0, 0); opacity: 0.35; }
  50% { transform: scale(1.1) translate(15px, -15px); opacity: 0.55; }
  100% { transform: scale(0.95) translate(-10px, 10px); opacity: 0.35; }
}

/* Gradient Text */
.text-gradient-primary {
  background: linear-gradient(135deg, #a5b4fc 0%, #6366f1 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #fde047 0%, #f59e0b 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-emerald {
  background: linear-gradient(135deg, #6ee7b7 0%, #10b981 50%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Badge Glow */
.badge-glow-indigo {
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.35);
}

.badge-glow-emerald {
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.35);
}

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

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #6366f1;
  cursor: pointer;
  border: 3px solid #ffffff;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.8);
  transition: transform 0.15s ease;
}

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

input[type=range]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #6366f1;
  cursor: pointer;
  border: 3px solid #ffffff;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.8);
}

/* Animated Pulse Rings */
.pulse-ring {
  position: relative;
}
.pulse-ring::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: inherit;
  border: 2px solid #10b981;
  animation: ripple 2s infinite ease-out;
  opacity: 0.8;
}

@keyframes ripple {
  0% { transform: scale(0.95); opacity: 0.9; }
  100% { transform: scale(1.4); opacity: 0; }
}

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

.btn-shimmer::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent,
    rgba(255, 255, 255, 0.18),
    transparent
  );
  transform: rotate(30deg);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.btn-shimmer:hover::before {
  transform: rotate(30deg) translate(50%, 50%);
}

/* Floating WhatsApp Widget */
.floating-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
}

.floating-call {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 999;
}

/* Accordion Transitions */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* Services Tab Active */
.service-tab.active {
  background: #6366f1;
  color: #ffffff;
  border-color: #6366f1;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

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

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

.modal-box {
  transform: scale(0.92) translateY(20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Kuwait flag mini badge */
.kuwait-flag-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .floating-whatsapp {
    bottom: 74px;
    right: 18px;
  }
  .floating-call {
    display: none;
  }
  body {
    padding-bottom: 60px; /* Space for mobile bottom sticky nav */
  }
}

/* Mobile Drawer - Bulletproof Full Visibility & Smooth Slide-In */
#mobileMenuOverlay {
  position: fixed !important;
  inset: 0 !important;
  background-color: rgba(0, 0, 0, 0.8) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  z-index: 999990 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.3s ease, visibility 0.3s ease !important;
}

#mobileMenuOverlay.is-open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

#mobileMenuDrawer {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  max-width: 360px !important;
  height: 100vh !important;
  height: 100dvh !important;
  background-color: #080c18 !important;
  border-left: 1px solid rgba(99, 102, 241, 0.4) !important;
  box-shadow: -15px 0 45px rgba(0, 0, 0, 0.95) !important;
  z-index: 999999 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  transform: translateX(100%) !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
}

#mobileMenuDrawer.is-open {
  transform: translateX(0%) !important;
}

#mobileMenuDrawer::-webkit-scrollbar {
  width: 5px;
}

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

@media (max-width: 400px) {
  #mobileMenuDrawer {
    max-width: 100vw !important;
  }
}
