/* ═══════════════════════════════════════════════════════════════
   MYRQUIX ENHANCEMENT CSS
   Fixes, animations, modal, mobile optimization
   ═══════════════════════════════════════════════════════════════ */

/* ─── 1. FIX SELECT DROPDOWN ─── */
.mq-select-fix,
select {
  color: #e2e8f0 !important;
  background-color: #0e0e16 !important;
  border: 1px solid rgba(6,182,212,0.15) !important;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  padding-right: 32px !important;
}
select option {
  color: #e2e8f0 !important;
  background-color: #111118 !important;
}
select:focus {
  border-color: rgba(6,182,212,0.3) !important;
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(6,182,212,0.08) !important;
}

/* ─── 2. SERVICE PRICING MODAL ─── */
#myrquix-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  padding: 20px;
  animation: mqFadeIn 0.25s ease;
}
#myrquix-modal {
  background: #0e0e16;
  border: 1px solid rgba(6,182,212,0.15);
  border-radius: 16px;
  max-width: 560px;
  width: 100%;
  padding: 36px;
  position: relative;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 0 60px rgba(6,182,212,0.08), 0 25px 50px rgba(0,0,0,0.5);
  animation: mqSlideUp 0.3s ease;
}
#myrquix-modal::-webkit-scrollbar { width: 4px; }
#myrquix-modal::-webkit-scrollbar-thumb { background: rgba(6,182,212,0.3); border-radius: 2px; }
#myrquix-modal-close {
  position: absolute;
  top: 14px; right: 18px;
  background: none;
  border: none;
  color: #64748b;
  font-size: 28px;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}
#myrquix-modal-close:hover { color: #22d3ee; }
#myrquix-modal-title {
  font-family: 'Syne', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px;
}
#myrquix-modal-price {
  font-size: 18px;
  font-weight: 700;
  color: #22d3ee;
  margin: 0 0 16px;
}
.mq-price-label {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  margin-right: 6px;
}
#myrquix-modal-desc {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0 0 20px;
}
.mq-features-title {
  font-size: 10px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 10px;
}
.mq-feature-item {
  font-size: 13px;
  color: #cbd5e1;
  padding: 6px 0;
  border-bottom: 1px solid rgba(6,182,212,0.06);
}
.mq-feature-item:last-child { border-bottom: none; }
#myrquix-modal-roi {
  font-size: 13px;
  color: #67e8f9;
  margin: 16px 0 12px;
  padding: 12px 16px;
  background: rgba(6,182,212,0.05);
  border-left: 3px solid #06b6d4;
  border-radius: 0 8px 8px 0;
}
#myrquix-modal-payment {
  font-size: 11px;
  color: #64748b;
  margin: 12px 0 20px;
  text-align: center;
}
#myrquix-modal-payment strong { color: #94a3b8; }
#myrquix-modal-cta {
  display: block;
  text-align: center;
  padding: 12px 24px;
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  color: #000;
  font-weight: 700;
  font-size: 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s;
}
#myrquix-modal-cta:hover {
  background: linear-gradient(135deg, #22d3ee, #06b6d4);
  box-shadow: 0 0 24px rgba(6,182,212,0.3);
  transform: translateY(-1px);
}

@keyframes mqFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes mqSlideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ─── 3. SERVICE CARD CLICK INDICATOR ─── */
.mq-service-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative;
}
.mq-service-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 0 30px rgba(6,182,212,0.1), 0 20px 40px rgba(0,0,0,0.3) !important;
  border-color: rgba(6,182,212,0.25) !important;
}
.mq-service-card::after {
  content: 'View Details →';
  position: absolute;
  bottom: 12px;
  right: 16px;
  font-size: 10px;
  color: rgba(6,182,212,0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s;
}
.mq-service-card:hover::after {
  opacity: 1;
  color: rgba(6,182,212,0.7);
}

/* ─── 4. SUBTLE HOVER ANIMATIONS — Silver/Platinum ─── */
/* Card lift with silver glow */
[class*="bg-white/"][class*="border"],
[class*="bg-\\["],
.card-lift {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
[class*="bg-white/"][class*="border"]:hover,
.card-lift:hover {
  box-shadow: 0 0 20px rgba(200,210,220,0.06), 0 12px 30px rgba(0,0,0,0.25) !important;
}

/* Buttons — subtle platinum shimmer on hover */
button, a[class*="bg-cyan"] {
  transition: all 0.3s ease !important;
}
button:hover, a[class*="bg-cyan"]:hover {
  filter: brightness(1.1);
}

/* Links — silver underline sweep */
a[href]:not([class*="bg-"]):not(#myrquix-modal-cta) {
  position: relative;
}

/* Icon containers — silver pulse */
[class*="text-cyan"][class*="w-"] {
  transition: all 0.3s ease !important;
}
[class*="text-cyan"][class*="w-"]:hover {
  filter: drop-shadow(0 0 8px rgba(6,182,212,0.4));
}

/* ─── 5. SUBTLE ANIMATIONS & EFFECTS ─── */
/* Reveal on scroll */
@keyframes mqReveal {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Soft entrance for sections */
section, [id*="services"], [id*="contact"] {
  animation: mqReveal 0.6s ease both;
}

/* Subtle border glow pulse on focused inputs */
input:focus, textarea:focus, select:focus {
  box-shadow: 0 0 0 2px rgba(6,182,212,0.1), 0 0 16px rgba(6,182,212,0.05) !important;
  border-color: rgba(6,182,212,0.3) !important;
  transition: all 0.3s ease !important;
}

/* Number counter shimmer */
[class*="text-4xl"], [class*="text-5xl"], [class*="text-6xl"] {
  transition: color 0.3s ease !important;
}

/* Smooth scrollbar */
html {
  scroll-behavior: smooth;
}

/* Platinum/silver glow on nav items */
nav a:hover, header a:hover {
  text-shadow: 0 0 12px rgba(200,210,220,0.15) !important;
}

/* ─── 6. MOBILE OPTIMIZATION ─── */
@media (max-width: 768px) {
  /* Stack grid layouts */
  [class*="grid-cols-3"],
  [class*="grid-cols-4"] {
    grid-template-columns: 1fr !important;
  }
  [class*="grid-cols-2"] {
    grid-template-columns: 1fr !important;
  }
  
  /* Reduce padding */
  [class*="px-8"], [class*="px-10"], [class*="px-12"], [class*="px-16"], [class*="px-20"], [class*="px-24"] {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  
  /* Reduce font sizes for headings */
  [class*="text-5xl"], [class*="text-6xl"] {
    font-size: 28px !important;
    line-height: 1.2 !important;
  }
  [class*="text-4xl"] {
    font-size: 24px !important;
    line-height: 1.2 !important;
  }
  [class*="text-3xl"] {
    font-size: 20px !important;
  }
  
  /* Full width cards */
  [class*="max-w-"] {
    max-width: 100% !important;
  }
  
  /* Fix horizontal overflow */
  body, html {
    overflow-x: hidden !important;
  }
  
  /* Modal mobile fix */
  #myrquix-modal {
    padding: 24px;
    margin: 10px;
    max-height: 90vh;
  }
  #myrquix-modal-title { font-size: 20px; }
  #myrquix-modal-price { font-size: 16px; }
  
  /* Fix flex layouts on mobile */
  [class*="flex-row"] {
    flex-direction: column !important;
  }
  
  /* Hide decorative elements on mobile */
  [class*="absolute"][class*="blur"],
  [class*="absolute"][class*="opacity-"] {
    display: none !important;
  }
}

@media (max-width: 480px) {
  [class*="text-5xl"], [class*="text-6xl"] {
    font-size: 22px !important;
  }
  [class*="text-4xl"] {
    font-size: 20px !important;
  }
  [class*="text-3xl"] {
    font-size: 18px !important;
  }
  [class*="py-20"], [class*="py-24"], [class*="py-32"] {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }
  
  #myrquix-modal { padding: 18px; border-radius: 12px; }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  [class*="grid-cols-3"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  [class*="grid-cols-4"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ─── 7. REMOVE HOW WE WORK HORIZONTAL LINES ─── */
/* Target connecting lines between steps */
[class*="absolute"][class*="top-"][class*="h-0"],
[class*="absolute"][class*="h-px"],
[class*="absolute"][class*="h-[1px]"],
[class*="absolute"][class*="h-[2px]"] {
  /* Only hide thin horizontal lines, not vertical ones */
}

/* Chat message formatting */
.space-y-4 [class*="rounded-2xl"][class*="text-sm"] div[style*="margin-bottom"] {
  margin-bottom: 14px !important;
}
.space-y-4 [class*="rounded-2xl"][class*="text-sm"] div[style*="margin-bottom"]:last-child {
  margin-bottom: 0 !important;
}
