/* ==========================================================================
   RIZVIS GLOBAL ENTERPRISE — AI CUSTOMER SUPPORT & QUOTATION CHATBOT WIDGET
   ========================================================================== */

:root {
  --rge-primary: #1B2C6B;
  --rge-primary-light: #2a449e;
  --rge-secondary: #0077c5;
  --rge-accent: #2ca01c;
  --rge-accent-hover: #238216;
  --rge-gold: #C9A227;
  --rge-dark: #0f172a;
  --rge-surface: #ffffff;
  --rge-border: #e2e8f0;
  --rge-text: #1e293b;
  --rge-text-muted: #64748b;
  --rge-shadow: 0 12px 36px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 1. Floating Launcher Button */
.rge-chat-launcher {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  z-index: 2147483647 !important;
  display: flex !important;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.rge-launcher-badge {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1B2C6B 0%, #0077c5 100%);
  box-shadow: 0 8px 24px rgba(0, 119, 197, 0.4), 0 2px 6px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  position: relative;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.rge-launcher-badge:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 119, 197, 0.55), 0 4px 10px rgba(0,0,0,0.2);
}

.rge-launcher-icon {
  width: 28px;
  height: 28px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.rge-launcher-close {
  display: none;
  width: 24px;
  height: 24px;
}

.rge-chat-open .rge-launcher-icon {
  display: none;
}

.rge-chat-open .rge-launcher-close {
  display: block;
}

.rge-online-pulse {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  background-color: #22c55e;
  border: 2px solid #ffffff;
  border-radius: 50%;
}

.rge-online-pulse::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #22c55e;
  opacity: 0.75;
  animation: rge-pulse 2s infinite cubic-bezier(0.45, 0, 0.55, 1);
}

@keyframes rge-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

.rge-launcher-tooltip {
  background: #ffffff;
  color: #0f172a;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  animation: rge-float 3s ease-in-out infinite;
}

@keyframes rge-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* 2. Main Chat Container Window */
.rge-chat-window {
  position: fixed !important;
  bottom: 96px !important;
  right: 24px !important;
  width: 390px;
  max-width: calc(100vw - 32px);
  height: 600px;
  max-height: calc(100vh - 120px);
  background: #ffffff;
  border-radius: 18px;
  box-shadow: var(--rge-shadow);
  border: 1px solid rgba(226, 232, 240, 0.9);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 2147483647 !important;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.rge-chat-window.rge-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Header */
.rge-chat-header {
  background: linear-gradient(135deg, #1B2C6B 0%, #0077c5 100%);
  color: #ffffff;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: relative;
  z-index: 2;
}

.rge-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rge-bot-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  color: #1B2C6B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  position: relative;
}

.rge-avatar-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: #22c55e;
  border: 2px solid #ffffff;
  border-radius: 50%;
}

.rge-bot-info h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rge-bot-info p {
  margin: 2px 0 0;
  font-size: 11.5px;
  color: #e2e8f0;
  font-weight: 500;
}

.rge-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rge-header-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}

.rge-header-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Chat Body */
.rge-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

.rge-msg-row {
  display: flex;
  flex-direction: column;
  max-width: 85%;
  animation: rge-msg-in 0.2s ease-out;
}

@keyframes rge-msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.rge-msg-bot {
  align-self: flex-start;
}

.rge-msg-user {
  align-self: flex-end;
}

.rge-msg-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.45;
  word-break: break-word;
}

.rge-msg-bot .rge-msg-bubble {
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.rge-msg-user .rge-msg-bubble {
  background: linear-gradient(135deg, #1B2C6B 0%, #0077c5 100%);
  color: #ffffff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 119, 197, 0.25);
}

.rge-msg-time {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 3px;
  align-self: flex-end;
}

.rge-msg-bot .rge-msg-time {
  align-self: flex-start;
}

/* Quick Response Buttons / Interactive Options */
.rge-options-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.rge-chip-btn {
  background: #ffffff;
  color: #0077c5;
  border: 1.5px solid #0077c5;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.rge-chip-btn:hover {
  background: #0077c5;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 119, 197, 0.25);
}

.rge-chip-btn.rge-chip-primary {
  background: #2ca01c;
  color: #ffffff;
  border-color: #2ca01c;
}

.rge-chip-btn.rge-chip-primary:hover {
  background: #238216;
  border-color: #238216;
}

/* Summary Card */
.rge-summary-card {
  background: #ffffff;
  border: 1.5px solid #2ca01c;
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 6px;
  font-size: 12.5px;
  box-shadow: 0 4px 12px rgba(44, 160, 28, 0.1);
}

.rge-summary-title {
  color: #166534;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rge-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px dashed #e2e8f0;
  color: #475569;
}

.rge-summary-row strong {
  color: #0f172a;
}

.rge-whatsapp-btn {
  background: #25D366;
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rge-whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.45);
}

/* Typing Indicator */
.rge-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  width: fit-content;
}

.rge-typing-dot {
  width: 6px;
  height: 6px;
  background: #94a3b8;
  border-radius: 50%;
  animation: rge-typing 1.4s infinite ease-in-out;
}

.rge-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.rge-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes rge-typing {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-4px); }
}

/* Chat Footer / Input */
.rge-chat-footer {
  padding: 10px 12px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
}

.rge-input-form {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 24px;
  padding: 4px 6px 4px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rge-input-form:focus-within {
  border-color: #0077c5;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 119, 197, 0.15);
}

.rge-chat-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 13.5px;
  color: #1e293b;
}

.rge-chat-input::placeholder {
  color: #94a3b8;
}

.rge-send-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #0077c5;
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.rge-send-btn:hover {
  background: #1B2C6B;
  transform: scale(1.05);
}

.rge-chat-branding {
  font-size: 10px;
  color: #94a3b8;
  text-align: center;
  margin-top: 4px;
}

.rge-chat-branding a {
  color: #0077c5;
  text-decoration: none;
  font-weight: 700;
}

/* Mobile Responsive */
@media (max-width: 480px) {
  .rge-chat-window {
    bottom: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
  }
  .rge-chat-launcher {
    bottom: 16px;
    right: 16px;
  }
}

/* ==========================================================================
   UNIVERSAL BUTTON MICRO-ANIMATIONS & HOVER EFFECTS ACROSS WEBSITE
   ========================================================================== */
a.rounded-full, 
button.rounded-full, 
a.inline-flex, 
button,
.btn {
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  will-change: transform, box-shadow, filter;
  position: relative;
}

a.rounded-full:hover, 
button.rounded-full:hover,
a.inline-flex:hover:not(nav a):not(header a.active) {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

a.rounded-full:active, 
button.rounded-full:active {
  transform: translateY(1px) scale(0.97);
}

/* Primary Accent & Hero CTA Pulse */
.bg-accent {
  box-shadow: 0 4px 14px rgba(234, 179, 8, 0.35);
  animation: rge-btn-glow 3s infinite ease-in-out;
}
@keyframes rge-btn-glow {
  0%, 100% { box-shadow: 0 4px 14px rgba(234, 179, 8, 0.35); }
  50% { box-shadow: 0 4px 22px rgba(234, 179, 8, 0.65); }
}

/* ⚡ IT & TECH STORE HIGHLIGHTED BUTTON IN NAVBAR */
.it-nav-item {
  display:none !important;
}
.rge-div-btn.it-btn {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 0 16px rgba(2, 132, 199, 0.5), inset 0 1px 0 rgba(255,255,255,0.3) !important;
  border: 1px solid rgba(56, 189, 248, 0.6) !important;
  animation: rge-it-pulse 2.4s infinite ease-in-out;
}

.rge-div-btn.it-btn:hover {
  background: linear-gradient(135deg, #00f0ff 0%, #0284c7 100%) !important;
  color: #070b14 !important;
  transform: translateY(-2.5px) scale(1.06) !important;
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.8) !important;
}

@keyframes rge-it-pulse {
  0%, 100% { box-shadow: 0 0 12px rgba(2, 132, 199, 0.4); }
  50% { box-shadow: 0 0 22px rgba(56, 189, 248, 0.8); }
}

/* FLOATING IT STORE QUICK-ACCESS CORNER BADGE */
.rge-it-floating-pill {
  position: fixed !important;
  bottom: 24px !important;
  left: 24px !important;
  z-index: 2147483640 !important;
  background: #0b1426 !important;
  border: 1.5px solid #00f0ff !important;
  color: #ffffff !important;
  padding: 10px 18px !important;
  border-radius: 9999px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  text-decoration: none !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  box-shadow: 0 8px 28px rgba(0, 240, 255, 0.35), 0 2px 8px rgba(0,0,0,0.5) !important;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  animation: rge-it-pulse 2.2s infinite ease-in-out;
}
.rge-it-floating-pill:hover {
  background: #00f0ff !important;
  color: #070b14 !important;
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 0 12px 34px rgba(0, 240, 255, 0.65) !important;
}
.rge-it-floating-pill .pulse-dot {
  width: 8px;
  height: 8px;
  background: #00f0ff;
  border-radius: 50%;
  box-shadow: 0 0 8px #00f0ff;
}
.rge-it-floating-pill:hover .pulse-dot {
  background: #070b14;
  box-shadow: 0 0 8px #070b14;
}

@media (max-width: 640px) {
  .rge-it-floating-pill {
    bottom: 84px !important;
    left: 16px !important;
    padding: 8px 14px !important;
    font-size: 11.5px !important;
  }
}

/* ==========================================================================
   HEADER DIVISION SWITCHER (MEP <-> IT & HARDWARE)
   ========================================================================== */
.rge-division-switcher {
  display: inline-flex !important;
  align-items: center !important;
  background: #0f172a !important;
  padding: 3px !important;
  border-radius: 9999px !important;
  border: 1.5px solid rgba(56, 189, 248, 0.4) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
  gap: 3px !important;
  user-select: none !important;
  margin-left: 8px !important;
}

.rge-div-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 5px 12px !important;
  border-radius: 9999px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  white-space: nowrap !important;
}

.rge-div-btn.active-mep {
  background: #1e3a8a !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(30, 58, 138, 0.5) !important;
}

.rge-div-btn.it-btn {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(56, 189, 248, 0.5) !important;
  animation: rge-it-pulse 2.2s infinite ease-in-out !important;
}

.rge-div-btn.it-btn:hover {
  background: linear-gradient(135deg, #00f0ff 0%, #0284c7 100%) !important;
  color: #070b14 !important;
  transform: scale(1.05) !important;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.8) !important;
}

/* ==========================================================================
   LUXURY DESIGN SYSTEM ENHANCEMENTS — "NEW CLOTHES" FOR RIZVIS GLOBAL
   ========================================================================== */

/* 1. Frosted Glass Floating Navbar */
header {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8) !important;
  box-shadow: 0 4px 20px -5px rgba(15, 23, 42, 0.05) !important;
}

/* 2. Interactive 3D Service Cards */
article.rounded-2xl,
figure.rounded-2xl {
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  background: #ffffff !important;
  box-shadow: 0 4px 15px -3px rgba(15, 23, 42, 0.06), 0 2px 6px -2px rgba(15, 23, 42, 0.04) !important;
  position: relative !important;
  overflow: hidden !important;
}

article.rounded-2xl:hover,
figure.rounded-2xl:hover {
  transform: translateY(-6px) scale(1.015) !important;
  border-color: #0284c7 !important;
  box-shadow: 0 20px 35px -10px rgba(2, 132, 199, 0.18), 0 8px 16px -6px rgba(15, 23, 42, 0.08) !important;
}

article.rounded-2xl::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #1e3a8a, #0284c7, #eab308);
  opacity: 0;
  transition: opacity 0.3s ease;
}

article.rounded-2xl:hover::before {
  opacity: 1;
}

/* 3. Hero Section Typography Glow & Depth */
section.relative.overflow-hidden h1 {
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.45);
  letter-spacing: -0.02em;
}

/* 4. Instant Price & Scope Estimator Widget */
.rge-estimator-card {
  background: linear-gradient(145deg, #0b1528 0%, #11203d 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.3);
  border-radius: 24px;
  padding: 32px;
  color: #ffffff;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}

.rge-estimator-card::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.rge-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(2, 132, 199, 0.1);
  color: #0284c7;
  border: 1px solid rgba(2, 132, 199, 0.2);
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* 5. Rich Corporate Footer */
footer {
  background: linear-gradient(180deg, #0f1d38 0%, #070c18 100%) !important;
  border-top: 1px solid rgba(56, 189, 248, 0.15) !important;
}



