/* ============================================
   XM Marketing Services — Custom Styles
   ============================================ */

html { scroll-behavior: smooth; }
body { background-color: #0F172A; color: #F8FAFC; }

::selection { background: #6C63FF; color: #fff; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0B1224; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #6C63FF, #00D4FF); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #6C63FF; }

/* Grain overlay */
.grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.05; mix-blend-mode: overlay; pointer-events: none;
}

/* ============================================
   Gradient text + glassmorphism
   ============================================ */
.text-gradient {
  background: linear-gradient(120deg, #6C63FF 0%, #00D4FF 50%, #6C63FF 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: gradient-shift 8s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.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.08);
}

.glass-strong {
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 40px -10px rgba(0,0,0,0.5);
}

/* ============================================
   Navbar
   ============================================ */
#navbar.scrolled {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-link {
  font-family: 'Inter', sans-serif;
  font-size: 14px; font-weight: 500;
  color: rgba(248,250,252,0.7);
  padding: 8px 14px; border-radius: 10px;
  transition: all 0.25s ease;
  position: relative;
}
.nav-link:hover { color: #F8FAFC; background: rgba(255,255,255,0.05); }
.nav-link.active { color: #00D4FF; }

.mobile-link {
  display: block; padding: 12px 14px; border-radius: 10px;
  font-size: 15px; color: rgba(248,250,252,0.85);
  transition: all 0.2s ease;
}
.mobile-link:hover { background: rgba(255,255,255,0.05); color: #00D4FF; }

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 14px;
  color: #fff;
  background: linear-gradient(120deg, #6C63FF 0%, #00D4FF 100%);
  background-size: 200% auto;
  box-shadow: 0 10px 30px -8px rgba(108, 99, 255, 0.6);
  transition: all 0.35s ease;
  position: relative; overflow: hidden;
}
.btn-primary:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -10px rgba(108, 99, 255, 0.7);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 14px;
  color: #F8FAFC;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  transition: all 0.3s ease;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(0, 212, 255, 0.5);
  color: #00D4FF;
  transform: translateY(-2px);
}

/* ============================================
   Sections — labels & titles
   ============================================ */
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.25);
  color: #6C63FF;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  width: fit-content;
}
.section-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 800; line-height: 1.1;
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin-top: 16px;
  letter-spacing: -0.02em;
}

/* ============================================
   Hero stat cards & dashboard
   ============================================ */
.stat-card {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.3s ease;
}
.stat-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateY(-2px);
}

.floating-card {
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.floating-badge {
  animation: float 5s ease-in-out infinite;
}

.bar {
  flex: 1;
  height: var(--h);
  background: linear-gradient(180deg, #6C63FF 0%, #00D4FF 100%);
  border-radius: 4px 4px 0 0;
  animation: barRise 1s var(--d) ease-out backwards;
}
@keyframes barRise { from { height: 0; opacity: 0; } to { height: var(--h); opacity: 1; } }

/* ============================================
   About mini & tiles
   ============================================ */
.about-mini {
  display: flex; align-items: center; gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.3s ease;
}
.about-mini:hover { border-color: rgba(108, 99, 255, 0.4); transform: translateY(-2px); }

.about-tile {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.35s ease;
}
.about-tile:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(0, 212, 255, 0.35);
  transform: translateY(-4px);
}

/* ============================================
   Service cards
   ============================================ */
.service-card {
  position: relative;
  padding: 28px;
  border-radius: 20px;
  background: rgba(255,255,255,0.035);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.4s cubic-bezier(.2,.8,.2,1);
  overflow: hidden;
  cursor: pointer;
}
.service-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(600px circle at var(--mx,50%) var(--my,50%), rgba(108,99,255,0.12), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(108, 99, 255, 0.4); }
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  transition: transform 0.3s ease;
}
.service-card:hover .service-icon { transform: scale(1.1) rotate(-3deg); }
.service-title { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 18px; }
.service-desc { color: rgba(248,250,252,0.65); font-size: 14px; margin-top: 10px; line-height: 1.6; }
.service-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px;
  font-size: 13px; font-weight: 600; color: #00D4FF;
  opacity: 0.85; transition: gap 0.3s ease;
}
.service-card:hover .service-link { gap: 12px; }

/* ============================================
   Why choose us
   ============================================ */
.why-card {
  padding: 26px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.35s ease;
}
.why-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(0, 212, 255, 0.35);
  transform: translateY(-4px);
}
.why-icon {
  width: 28px; height: 28px;
  color: #00D4FF;
  margin-bottom: 14px;
}
.why-card h3 { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 17px; }
.why-card p { color: rgba(248,250,252,0.65); font-size: 14px; margin-top: 8px; line-height: 1.6; }

/* ============================================
   Process timeline
   ============================================ */
.process-step {
  position: relative;
  padding: 28px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  transition: all 0.35s ease;
}
.process-step:hover {
  transform: translateY(-6px);
  border-color: rgba(108, 99, 255, 0.4);
  background: rgba(255,255,255,0.06);
}
.process-num {
  font-family: 'Poppins', sans-serif; font-weight: 900;
  font-size: 14px;
  display: inline-flex;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: linear-gradient(120deg, #6C63FF, #00D4FF);
  color: #fff; border-radius: 50%;
  box-shadow: 0 8px 20px -6px rgba(108, 99, 255, 0.6);
  margin: 0 auto;
}
.process-icon {
  width: 28px; height: 28px;
  color: #00D4FF;
  margin: 18px auto 0;
}
.process-step h3 { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 18px; margin-top: 12px; }
.process-step p { color: rgba(248,250,252,0.65); font-size: 14px; margin-top: 8px; }

/* ============================================
   Testimonials
   ============================================ */
.testimonial-card {
  padding: 28px;
  border-radius: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.35s ease;
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 10px; right: 20px;
  font-family: 'Poppins', serif;
  font-size: 80px; line-height: 1;
  color: rgba(108, 99, 255, 0.15);
}
.testimonial-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 212, 255, 0.35);
}

/* ============================================
   FAQ
   ============================================ */
.faq-item {
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  transition: all 0.3s ease;
}
.faq-item.open { border-color: rgba(108, 99, 255, 0.4); background: rgba(108,99,255,0.05); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  font-family: 'Poppins', sans-serif; font-weight: 600;
  font-size: 15px; text-align: left;
  color: #F8FAFC;
  transition: color 0.3s ease;
}
.faq-q:hover { color: #00D4FF; }
.faq-icon {
  width: 20px; height: 20px;
  transition: transform 0.4s ease;
  color: #6C63FF;
}
.faq-item.open .faq-icon { transform: rotate(45deg); color: #00D4FF; }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-item.open .faq-a { max-height: 400px; }
.faq-a p {
  padding: 0 22px 20px; color: rgba(248,250,252,0.7);
  font-size: 14px; line-height: 1.7;
}

/* ============================================
   Contact form
   ============================================ */
.form-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 600;
  color: rgba(248,250,252,0.65);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.form-input {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #F8FAFC;
  transition: all 0.25s ease;
}
.form-input::placeholder { color: rgba(248,250,252,0.35); }
.form-input:focus {
  outline: none;
  border-color: #6C63FF;
  background: rgba(255,255,255,0.07);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
}
.form-input.invalid { border-color: #FF6B6B; }
.form-error {
  font-size: 12px; color: #FF6B6B;
  margin-top: 6px; min-height: 16px;
}
select.form-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2300D4FF' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
select.form-input option { background: #0F172A; color: #F8FAFC; }

/* ============================================
   Contact info
   ============================================ */
.contact-info {
  display: flex; align-items: center; gap: 14px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.3s ease;
}
.contact-info:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(108, 99, 255, 0.4);
  transform: translateY(-2px);
}
.contact-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.wa-cta {
  display: inline-flex; align-items: center; gap: 10px;
  width: 100%; justify-content: center;
  padding: 14px 22px;
  border-radius: 16px;
  font-family: 'Poppins', sans-serif; font-weight: 600;
  background: linear-gradient(120deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(37, 211, 102, 0.5);
  transition: all 0.3s ease;
}
.wa-cta:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(37, 211, 102, 0.7); }

/* ============================================
   Footer
   ============================================ */
.footer-heading {
  font-family: 'Poppins', sans-serif;
  font-weight: 700; font-size: 14px;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
.footer-link {
  color: rgba(248,250,252,0.65);
  font-size: 14px;
  transition: all 0.2s ease;
}
.footer-link:hover { color: #00D4FF; padding-left: 4px; }
.social-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(248,250,252,0.7);
  transition: all 0.3s ease;
}
.social-icon:hover {
  background: linear-gradient(120deg, #6C63FF, #00D4FF);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
}

/* ============================================
   Marquee
   ============================================ */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-inner {
  display: flex; gap: 38px; white-space: nowrap;
  font-family: 'Poppins', sans-serif; font-weight: 600;
  font-size: 14px; letter-spacing: 0.2em;
  color: rgba(248,250,252,0.35);
  animation: marquee 35s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================
   Floating buttons
   ============================================ */
.float-whatsapp {
  position: fixed; bottom: 24px; right: 24px; z-index: 50;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(120deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px -6px rgba(37, 211, 102, 0.6);
  transition: all 0.3s ease;
}
.float-whatsapp:hover { transform: scale(1.1); }
.float-whatsapp .ping {
  position: absolute; inset: -2px;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: ping 1.6s ease-out infinite;
}
@keyframes ping {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

.float-call {
  position: fixed; bottom: 24px; left: 24px; z-index: 50;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(120deg, #6C63FF, #00D4FF);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px -6px rgba(108, 99, 255, 0.6);
  animation: float 3s ease-in-out infinite;
}

.back-to-top {
  position: fixed; bottom: 92px; right: 24px; z-index: 49;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  color: #F8FAFC;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: all 0.3s ease;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: rgba(108, 99, 255, 0.3); transform: translateY(-2px); }

/* ============================================
   Toast
   ============================================ */
.toast {
  position: fixed;
  top: 92px; right: 24px; z-index: 60;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 212, 255, 0.35);
  box-shadow: 0 16px 40px -10px rgba(0,0,0,0.5);
  transform: translateX(20px); opacity: 0;
  transition: all 0.35s cubic-bezier(.2,.8,.2,1);
  max-width: 360px;
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast.hidden { display: none; }

/* ============================================
   Preloader
   ============================================ */
#preloader.hidden { opacity: 0; pointer-events: none; transition: opacity 0.5s ease; }

/* ============================================
   Mobile tweaks
   ============================================ */
@media (max-width: 768px) {
  .float-whatsapp { bottom: 16px; right: 16px; }
  .float-call { bottom: 16px; left: 16px; }
  .back-to-top { bottom: 84px; right: 16px; }
  .toast { top: 80px; right: 12px; left: 12px; max-width: none; }
}