/* Custom styles - ZAHARA NET */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #F97316; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #EA580C; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
.leaflet-container { z-index: 1; }

/* ============ NAVBAR ============ */
.navbar-scrolled {
  background: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.navbar-scrolled #navLogo { height: 3rem !important; }
.navbar-scrolled #navBrand { font-size: 0.85rem !important; }
.navbar-scrolled #navBrand span:last-child { font-size: 8px !important; }

/* ============ PARTICLES ============ */
.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.particle-1 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(249,115,22,0.08) 0%, transparent 70%); top: 10%; left: -5%; animation: particleFloat1 8s ease-in-out infinite; }
.particle-2 { width: 200px; height: 200px; background: radial-gradient(circle, rgba(59,130,246,0.06) 0%, transparent 70%); top: 60%; right: 5%; animation: particleFloat2 10s ease-in-out infinite; }
.particle-3 { width: 150px; height: 150px; background: radial-gradient(circle, rgba(249,115,22,0.05) 0%, transparent 70%); bottom: 20%; left: 30%; animation: particleFloat3 12s ease-in-out infinite; }
.particle-4 { width: 100px; height: 100px; background: radial-gradient(circle, rgba(16,185,129,0.06) 0%, transparent 70%); top: 30%; right: 25%; animation: particleFloat1 9s ease-in-out infinite reverse; }
.particle-5 { width: 250px; height: 250px; background: radial-gradient(circle, rgba(249,115,22,0.04) 0%, transparent 70%); bottom: 5%; right: 15%; animation: particleFloat2 11s ease-in-out infinite; }

@keyframes particleFloat1 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(30px, -40px); } }
@keyframes particleFloat2 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-20px, 30px); } }
@keyframes particleFloat3 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(20px, 20px); } }

/* ============ SCROLL REVEAL ============ */
.reveal-left, .reveal-right, .reveal-up {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: var(--delay, 0s);
}
.reveal-left { transform: translateX(-60px); }
.reveal-right { transform: translateX(60px); }
.reveal-up { transform: translateY(50px); }
.reveal-left.revealed, .reveal-right.revealed, .reveal-up.revealed {
  opacity: 1;
  transform: translate(0, 0);
}

/* ============ FLOATING BADGES ============ */
@keyframes floatBadge { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-12px); } }
@keyframes floatBadge2 { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-8px); } }
.animate-float-badge { animation: floatBadge 4s ease-in-out infinite; }
.animate-float-badge-2 { animation: floatBadge2 5s ease-in-out infinite 0.5s; }

/* ============ SVG FLOATING ELEMENTS ============ */
.float-element { animation: floatSvg 4s ease-in-out infinite; }
.float-element-2 { animation: floatSvg 5s ease-in-out infinite 1s; }
.float-element-3 { animation: floatSvg 4.5s ease-in-out infinite 0.5s; }
@keyframes floatSvg { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* WiFi wave animation */
.wifi-wave path { animation: wifiPulse 2s ease-in-out infinite; }
.wifi-wave path:nth-child(2) { animation-delay: 0.3s; }
.wifi-wave path:nth-child(3) { animation-delay: 0.6s; }
@keyframes wifiPulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

/* ============ SCROLL INDICATOR ============ */
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(8px); opacity: 0; } }
.animate-scroll-dot { animation: scrollDot 1.5s ease-in-out infinite; }

/* ============ CHAT WIDGET ============ */
.chat-widget { position: fixed; bottom: 20px; right: 20px; z-index: 9999; }
.chat-bubble { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, #F97316, #EA580C); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 20px rgba(249, 115, 22, 0.4); transition: transform 0.3s, box-shadow 0.3s; position: relative; }
.chat-bubble:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(249, 115, 22, 0.6); }
.chat-box { width: 380px; max-width: calc(100vw - 40px); background: white; border-radius: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.15); display: flex; flex-direction: column; overflow: hidden; }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; max-height: 300px; }
.chat-msg { margin-bottom: 12px; display: flex; }
.chat-msg.user { justify-content: flex-end; }
.chat-msg .msg-content { max-width: 80%; padding: 10px 14px; border-radius: 16px; font-size: 13px; line-height: 1.5; }
.chat-msg.user .msg-content { background: linear-gradient(135deg, #F97316, #EA580C); color: white; border-bottom-right-radius: 4px; }
.chat-msg.bot .msg-content { background: #F3F4F6; color: #1F2937; border-bottom-left-radius: 4px; }
.typing-indicator span { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #9CA3AF; margin: 0 2px; animation: typing 1.4s infinite; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-8px); } }

/* Chat tabs */
.chat-tab { color: rgba(255,255,255,0.6); cursor: pointer; text-align: center; }
.chat-tab.active { background: rgba(255,255,255,0.2); color: white; }
.chat-tab:hover:not(.active) { color: rgba(255,255,255,0.9); }
.chat-tab-panel { display: none; }
.chat-tab-panel.active { display: flex; flex-direction: column; }
#ticketTabContent.active { display: block; }

/* ============ POPUP ============ */
.popup-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 10000; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
@keyframes scaleIn { 0% { transform: scale(0.8); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.animate-scale-in { animation: scaleIn 0.3s ease-out; }

/* ============ CARDS ============ */
.price-card { transition: transform 0.4s ease, box-shadow 0.4s ease; }
.price-card:hover { transform: translateY(-10px); box-shadow: 0 25px 50px rgba(249, 115, 22, 0.15); }

/* ============ PACKAGES LOADING ============ */
.package-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 24px;
  z-index: 5;
}
.package-loading-img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  animation: loadingPulse 1.1s ease-in-out infinite;
}
@keyframes loadingPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.06); opacity: 1; }
}

/* Page loading overlay */
.page-loading {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  z-index: 20000;
}
.page-loading-img {
  width: 320px;
  height: 320px;
  object-fit: contain;
  animation: loadingPulse 1.1s ease-in-out infinite;
}

/* ============ WILAYAH DROPDOWN ============ */
select:not(:disabled) { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23F97316' d='M6 8.825L.35 3.175 1.525 2 6 6.475 10.475 2 11.65 3.175z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; -webkit-appearance: none; -moz-appearance: none; appearance: none; padding-right: 40px; }
select:disabled { opacity: 0.6; }
select option { padding: 8px; }

/* ============ ANIMATIONS ============ */
@keyframes fadeIn { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes slideUp { 0% { transform: translateY(30px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }
@keyframes slideDown { 0% { transform: translateY(-20px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-10px); } }
.animate-fade-in { animation: fadeIn 0.5s ease-in-out; }
.animate-slide-up { animation: slideUp 0.6s ease-out; }
.animate-slide-down { animation: slideDown 0.4s ease-out; }
.animate-float { animation: float 3s ease-in-out infinite; }

/* ============ RESPONSIVE ============ */
@media (max-width: 640px) {
  .chat-box { width: calc(100vw - 40px); }
  .hero-illustration svg { max-width: 320px; }
  .animate-float-badge, .animate-float-badge-2 { display: none; }
}
