/* ==============================================
   Anjaneyulu.in — Global Design System v2.0
   Shimmer | Toast | Animations | Mobile-First
   ============================================== */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

/* ---- Design Tokens ---- */
:root {
  --brand-primary: #B11226;
  --brand-primary-dark: #8B0D1E;
  --brand-primary-light: #FEF2F2;
  --brand-accent: #059669;
  --brand-accent-light: #ECFDF5;
  --brand-gold: #D4AF37;
  --brand-gold-light: #FFFBEB;
  --brand-indigo: #4F46E5;
  --brand-indigo-light: #EEF2FF;

  --text-900: #0F172A;
  --text-800: #1E293B;
  --text-600: #475569;
  --text-400: #94A3B8;
  --text-300: #CBD5E1;

  --surface-white: #FFFFFF;
  --surface-50: #F8FAFC;
  --surface-100: #F1F5F9;
  --surface-200: #E2E8F0;

  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --radius-xl: 2rem;
  --radius-2xl: 3rem;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.10);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.12);
  --shadow-primary: 0 8px 24px rgba(177,18,38,0.25);
  --shadow-accent: 0 8px 24px rgba(5,150,105,0.25);

  --transition-fast: all 0.18s ease;
  --transition-smooth: all 0.32s cubic-bezier(0.4,0,0.2,1);
  --transition-bounce: all 0.5s cubic-bezier(0.175,0.885,0.32,1.275);

  --header-height: 70px;
  --bottom-nav-height: 64px;
}

/* ---- Base Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--surface-50);
  color: var(--text-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: var(--header-height);
  padding-bottom: var(--bottom-nav-height);
}
@media (min-width: 1024px) { body { padding-bottom: 0; } }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5 { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; letter-spacing: -0.025em; line-height: 1.1; font-weight: 800; }
h1 { font-size: clamp(1.875rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.125rem, 3vw, 1.5rem); }
h4 { font-size: clamp(1rem, 2.5vw, 1.25rem); font-weight: 700; }
p { line-height: 1.7; }

/* ---- Container ---- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 768px) { .container { padding: 0 2rem; } }

/* ============================================
   SHIMMER LOADING SYSTEM
   ============================================ */
@keyframes shimmer-wave {
  0% { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}

.shimmer-wrap { position: relative; overflow: hidden; }
.shimmer-block {
  background: linear-gradient(90deg, var(--surface-100) 25%, var(--surface-200) 50%, var(--surface-100) 75%);
  background-size: 600px 100%;
  animation: shimmer-wave 1.5s infinite linear;
  border-radius: var(--radius-md);
}
.shimmer-text { height: 1rem; margin-bottom: 0.5rem; border-radius: 4px; }
.shimmer-text.wide { width: 80%; }
.shimmer-text.medium { width: 55%; }
.shimmer-text.short { width: 35%; }
.shimmer-title { height: 1.75rem; width: 65%; margin-bottom: 0.75rem; border-radius: 6px; }
.shimmer-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  border: 1px solid var(--surface-200);
  box-shadow: var(--shadow-sm);
}
.shimmer-img { height: 200px; border-radius: var(--radius-lg); margin-bottom: 1rem; }
.shimmer-badge { height: 1.5rem; width: 5rem; border-radius: 99px; margin-bottom: 1rem; }
.shimmer-btn { height: 2.75rem; border-radius: var(--radius-lg); }

/* Content reveal after shimmer */
.content-hidden { opacity: 0; transform: translateY(12px); }
.content-visible { opacity: 1; transform: translateY(0); transition: opacity 0.5s ease, transform 0.5s ease; }

/* ============================================
   TOAST NOTIFICATION SYSTEM
   ============================================ */
#toast-container {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + 1rem);
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  pointer-events: none;
}
@media (min-width: 1024px) {
  #toast-container { bottom: 1.5rem; right: 1.5rem; }
}
.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  font-size: 0.875rem;
  font-weight: 600;
  min-width: 260px;
  max-width: 340px;
  pointer-events: auto;
  animation: toastIn 0.4s cubic-bezier(0.175,0.885,0.32,1.275) forwards;
  backdrop-filter: blur(12px);
}
.toast.toast-out { animation: toastOut 0.3s ease forwards; }
.toast-icon { font-size: 1.1rem; flex-shrink: 0; }
.toast-success { background: rgba(5,150,105,0.95); color: white; }
.toast-error { background: rgba(177,18,38,0.95); color: white; }
.toast-info { background: rgba(15,23,42,0.92); color: white; }
.toast-warning { background: rgba(217,119,6,0.95); color: white; }
.toast-close { margin-left: auto; background: none; border: none; color: white; cursor: pointer; opacity: 0.7; font-size: 1rem; line-height: 1; padding: 0 0 0 0.5rem; }
.toast-close:hover { opacity: 1; }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(60px) scale(0.9); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(60px); }
}

/* ============================================
   WELCOME / NOTIFICATION POPUP
   ============================================ */
#welcome-popup-overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,0.6);
  backdrop-filter: blur(6px);
  z-index: 8000;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0; animation: fadeIn 0.4s ease forwards;
}
#welcome-popup {
  background: white;
  border-radius: var(--radius-2xl);
  padding: 2.5rem 2rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-xl);
  animation: popupIn 0.5s cubic-bezier(0.175,0.885,0.32,1.275) forwards;
}
#welcome-popup .popup-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 32px; height: 32px;
  background: var(--surface-100); border: none; border-radius: 50%;
  cursor: pointer; font-size: 0.9rem; color: var(--text-600);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition-fast);
}
#welcome-popup .popup-close:hover { background: var(--brand-primary-light); color: var(--brand-primary); }
.popup-icon { font-size: 3rem; margin-bottom: 1rem; }
.popup-title { font-size: 1.5rem; font-weight: 900; color: var(--text-900); margin-bottom: 0.5rem; }
.popup-desc { font-size: 0.9rem; color: var(--text-600); margin-bottom: 1.5rem; line-height: 1.6; }
.popup-badge { display: inline-flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-bottom: 1.5rem; }
.popup-badge span { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.3rem 0.75rem; border-radius: 99px; }
.popup-cta { display: flex; flex-direction: column; gap: 0.5rem; }
.popup-btn-primary {
  padding: 0.9rem 1.5rem; background: var(--brand-primary); color: white;
  border: none; border-radius: var(--radius-lg); font-weight: 800; font-size: 0.95rem;
  cursor: pointer; transition: var(--transition-smooth);
}
.popup-btn-primary:hover { background: var(--brand-primary-dark); transform: translateY(-1px); }
.popup-btn-secondary {
  padding: 0.7rem; background: none; border: none; color: var(--text-400);
  font-size: 0.8rem; cursor: pointer; font-weight: 600;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popupIn {
  from { opacity: 0; transform: scale(0.85) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ============================================
   SCROLL REVEAL ANIMATION
   ============================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-left { opacity: 0; transform: translateX(-24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-left.revealed { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-right.revealed { opacity: 1; transform: translateX(0); }

/* ============================================
   PAGE HERO MINI (Sub-pages)
   ============================================ */
.page-hero {
  padding: 3.5rem 0 2.5rem;
  background: linear-gradient(135deg, var(--surface-white) 0%, var(--surface-50) 100%);
  border-bottom: 1px solid var(--surface-200);
  text-align: center;
}
.page-hero-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 1rem;
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  border-radius: 99px;
  font-size: 0.7rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 1.25rem;
}
.page-hero h1 { margin-bottom: 1rem; }
.page-hero p { color: var(--text-600); font-size: 1rem; max-width: 560px; margin: 0 auto; }

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-label {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--brand-primary); margin-bottom: 0.75rem;
}
.section-label::before, .section-label::after {
  content: ''; display: block; height: 1.5px; width: 24px;
  background: var(--brand-primary); border-radius: 2px; opacity: 0.4;
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.svc-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  border: 1.5px solid var(--surface-200);
  transition: var(--transition-smooth);
  text-decoration: none;
  color: inherit;
  display: flex; flex-direction: column; gap: 1rem;
  position: relative; overflow: hidden;
}
.svc-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
  opacity: 0; transition: var(--transition-smooth);
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.svc-card:hover::before { opacity: 1; }
.svc-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; flex-shrink: 0;
  transition: var(--transition-smooth);
}
.svc-card:hover .svc-icon { transform: scale(1.1) rotate(5deg); }
.svc-title { font-size: 1.05rem; font-weight: 800; color: var(--text-900); margin: 0; }
.svc-desc { font-size: 0.875rem; color: var(--text-600); line-height: 1.65; margin: 0; }
.svc-link { font-size: 0.8rem; font-weight: 700; color: var(--brand-primary); display: flex; align-items: center; gap: 0.3rem; margin-top: auto; }
.svc-link i { font-size: 0.7rem; transition: var(--transition-fast); }
.svc-card:hover .svc-link i { transform: translateX(4px); }

/* ============================================
   STAT CARDS
   ============================================ */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 768px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-item {
  background: white; border-radius: var(--radius-xl); padding: 1.5rem 1.25rem;
  text-align: center; border: 1px solid var(--surface-200);
  box-shadow: var(--shadow-sm); transition: var(--transition-smooth);
}
.stat-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat-num { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 900; color: var(--text-900); line-height: 1; margin-bottom: 0.4rem; }
.stat-lbl { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-400); }

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
  border-radius: var(--radius-2xl);
  padding: 3rem 2rem;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; top: -50%; right: -20%;
  width: 400px; height: 400px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.cta-banner h2 { color: white; margin-bottom: 0.75rem; }
.cta-banner p { color: rgba(255,255,255,0.75); margin-bottom: 2rem; }
.cta-banner .btn-white {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.9rem 2rem; background: white; color: var(--brand-primary);
  border-radius: var(--radius-lg); font-weight: 800; font-size: 0.95rem;
  transition: var(--transition-smooth); box-shadow: var(--shadow-lg);
}
.cta-banner .btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-xl); }
.cta-banner .btn-outline-white {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.9rem 2rem; background: transparent; color: white;
  border: 2px solid rgba(255,255,255,0.4); border-radius: var(--radius-lg);
  font-weight: 800; font-size: 0.95rem; transition: var(--transition-smooth);
}
.cta-banner .btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: white; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================
   PROCESS / TIMELINE
   ============================================ */
.process-steps { display: flex; flex-direction: column; gap: 0; }
.process-step {
  display: flex; gap: 1.25rem; padding-bottom: 2rem;
  position: relative;
}
.process-step:not(:last-child) .step-line {
  position: absolute; left: 22px; top: 44px; bottom: 0;
  width: 2px; background: var(--surface-200);
}
.step-dot {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem; font-weight: 900; position: relative; z-index: 1;
}
.step-body { padding-top: 0.6rem; }
.step-num { font-size: 0.65rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-400); margin-bottom: 0.2rem; }
.step-title { font-size: 1rem; font-weight: 800; color: var(--text-900); margin-bottom: 0.3rem; }
.step-desc { font-size: 0.85rem; color: var(--text-600); }

/* ============================================
   BUTTONS (Global)
   ============================================ */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  background: var(--brand-primary); color: white;
  border: none; border-radius: var(--radius-lg);
  font-weight: 800; font-size: 0.95rem;
  cursor: pointer; transition: var(--transition-smooth);
  box-shadow: var(--shadow-primary);
  text-decoration: none;
}
.btn-primary:hover { background: var(--brand-primary-dark); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(177,18,38,0.35); }
.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  background: var(--surface-100); color: var(--text-800);
  border: 1.5px solid var(--surface-200); border-radius: var(--radius-lg);
  font-weight: 700; font-size: 0.95rem;
  cursor: pointer; transition: var(--transition-smooth);
  text-decoration: none;
}
.btn-secondary:hover { background: var(--surface-200); transform: translateY(-1px); }
.btn-wa {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  background: #25D366; color: white;
  border: none; border-radius: var(--radius-lg);
  font-weight: 800; font-size: 0.95rem;
  cursor: pointer; transition: var(--transition-smooth);
  box-shadow: 0 8px 24px rgba(37,211,102,0.3);
  text-decoration: none;
}
.btn-wa:hover { background: #128C7E; transform: translateY(-2px); }

/* ============================================
   FORM ELEMENTS
   ============================================ */
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-label {
  font-size: 0.7rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-400);
}
.form-input {
  width: 100%; padding: 0.85rem 1rem;
  background: var(--surface-50); border: 1.5px solid var(--surface-200);
  border-radius: var(--radius-md); font-size: 0.95rem; font-weight: 500;
  color: var(--text-900); font-family: inherit;
  transition: var(--transition-fast); outline: none;
}
.form-input:focus { background: white; border-color: var(--brand-primary); box-shadow: 0 0 0 4px rgba(177,18,38,0.08); }
.form-input::placeholder { color: var(--text-300); }
.form-card {
  background: white; border-radius: var(--radius-xl); padding: 2rem;
  border: 1px solid var(--surface-200); box-shadow: var(--shadow-md);
}
@media (min-width: 768px) { .form-card { padding: 2.5rem; } }

/* ============================================
   BADGE / CHIP
   ============================================ */
.badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.25rem 0.75rem; border-radius: 99px;
  font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
}
.badge-primary { background: var(--brand-primary-light); color: var(--brand-primary); }
.badge-success { background: var(--brand-accent-light); color: var(--brand-accent); }
.badge-gold { background: var(--brand-gold-light); color: var(--brand-gold); }
.badge-indigo { background: var(--brand-indigo-light); color: var(--brand-indigo); }

/* ============================================
   TRUST BAR / PARTNER LOGOS
   ============================================ */
.trust-bar {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 1.5rem 2.5rem; padding: 1.5rem;
  background: white; border-radius: var(--radius-xl);
  border: 1px solid var(--surface-200);
}
.trust-bar-item {
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
  font-size: 0.65rem; font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-400);
}
.trust-bar-item i { font-size: 1.5rem; color: var(--text-300); }

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */
.hide-mobile { display: none; }
@media (min-width: 768px) { .hide-mobile { display: block; } }
.hide-desktop { display: block; }
@media (min-width: 768px) { .hide-desktop { display: none; } }
.text-center { text-align: center; }
.mt-section { margin-top: 4rem; }
@media (min-width: 768px) { .mt-section { margin-top: 6rem; } }
.py-section { padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 768px) { .py-section { padding-top: 6rem; padding-bottom: 6rem; } }

/* ---- SCROLLBAR UTILITIES ---- */
.no-scrollbar {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}
.no-scrollbar::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}
