/* ==========================================================================
   HIMANSU INTERNATIONAL PVT. LTD. - MODERN UI/UX & PSYCHOLOGY SYSTEM
   Custom Glassmorphism, Micro-interactions, Live Border Telemetry & Social Hub
   ========================================================================== */

:root {
  --brand-red: #b50023;
  --brand-red-dark: #8b001a;
  --brand-red-glow: rgba(181, 0, 35, 0.28);
  --brand-gold: #f59e0b;
  --brand-gold-glow: rgba(245, 158, 11, 0.25);
  --status-green: #10b981;
  --status-green-glow: rgba(16, 185, 129, 0.35);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(221, 225, 230, 0.8);
  --glass-shadow: 0 12px 36px -8px rgba(0, 0, 0, 0.07);
}

[data-theme="dark"] {
  --brand-red-glow: rgba(255, 106, 128, 0.3);
  --glass-bg: rgba(24, 30, 39, 0.85);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 14px 40px -10px rgba(0, 0, 0, 0.5);
}

/* Smooth Scrolling & Typography Optimization */
html {
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Top Live Announcement Ticker */
.top-ticker-bar {
  background: linear-gradient(90deg, #11151c 0%, #1f2733 50%, #11151c 100%);
  color: #f2f4f7;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 0;
  position: relative;
  z-index: 50;
}

.top-ticker-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.live-badge-radar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 12px;
}

.radar-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  position: relative;
}

.radar-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.45);
  animation: radarPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes radarPulse {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

.ticker-social-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ticker-social-link {
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  transition: all 0.2s ease;
  padding: 2px 6px;
  border-radius: 4px;
}

.ticker-social-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

/* Glassmorphism & Modern Card Elevations */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 14px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.glass-panel:hover {
  border-color: var(--brand-red-glow);
  box-shadow: 0 18px 45px -10px var(--brand-red-glow);
}

/* Trust Badges Bar */
.trust-metric-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.trust-metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-red), var(--brand-gold));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.trust-metric-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-red);
  box-shadow: 0 12px 28px -6px var(--brand-red-glow);
}

.trust-metric-card:hover::before {
  opacity: 1;
}

.trust-metric-number {
  font-size: 32px;
  font-weight: 850;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 4px;
}

.trust-metric-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

/* Live Border Telemetry Board */
.border-board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.border-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  position: relative;
  transition: all 0.25s ease;
}

.border-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.08);
}

.border-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.border-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

[data-theme="dark"] .border-status-tag {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.border-card h4 {
  font-size: 17px;
  font-weight: 750;
  margin-bottom: 4px;
  color: var(--ink);
}

.border-card-info {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

.border-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  color: var(--muted);
}

/* Interactive Import Readiness Scorecard / Quiz */
.quiz-container {
  background: linear-gradient(145deg, var(--surface) 0%, var(--soft) 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.quiz-progress-track {
  width: 100%;
  height: 6px;
  background: var(--line);
  border-radius: 9999px;
  margin: 16px 0 28px;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, var(--brand-red), #e61d42);
  border-radius: 9999px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.quiz-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.quiz-option-btn {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 18px 16px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 12px;
}

.quiz-option-btn:hover {
  border-color: var(--accent);
  background: var(--soft);
  transform: translateY(-2px);
}

.quiz-option-btn.selected {
  border-color: var(--brand-red);
  background: rgba(181, 0, 35, 0.05);
  box-shadow: 0 0 0 3px var(--brand-red-glow);
}

.score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-red), #e61d42);
  color: #fff;
  font-size: 28px;
  font-weight: 850;
  box-shadow: 0 10px 25px -4px var(--brand-red-glow);
  margin-bottom: 16px;
}

/* Social Media Hub */
.social-hub-section {
  position: relative;
  overflow: hidden;
}

.social-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.social-card {
  border-radius: 16px;
  padding: 24px;
  color: #fff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  min-height: 200px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.social-card:hover {
  transform: translateY(-6px) scale(1.01);
}

/* Instagram Card */
.social-card-instagram {
  background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
  box-shadow: 0 12px 30px -8px rgba(253, 29, 29, 0.35);
}

.social-card-instagram:hover {
  box-shadow: 0 20px 40px -8px rgba(253, 29, 29, 0.55);
}

/* TikTok Card */
.social-card-tiktok {
  background: linear-gradient(135deg, #010101 0%, #171c24 50%, #050505 100%);
  border: 1px solid rgba(0, 242, 234, 0.3);
  box-shadow: 0 12px 30px -8px rgba(0, 242, 234, 0.25);
}

.social-card-tiktok:hover {
  box-shadow: 0 20px 40px -8px rgba(254, 44, 85, 0.4);
  border-color: #fe2c55;
}

/* Facebook Card */
.social-card-facebook {
  background: linear-gradient(135deg, #1877f2 0%, #0d5bbd 100%);
  box-shadow: 0 12px 30px -8px rgba(24, 119, 242, 0.35);
}

.social-card-facebook:hover {
  box-shadow: 0 20px 40px -8px rgba(24, 119, 242, 0.55);
}

/* Email / Direct Card */
.social-card-email {
  background: linear-gradient(135deg, #b50023 0%, #750017 100%);
  box-shadow: 0 12px 30px -8px rgba(181, 0, 35, 0.35);
}

.social-card-email:hover {
  box-shadow: 0 20px 40px -8px rgba(181, 0, 35, 0.55);
}

.social-card-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.social-card-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.social-card-title {
  font-size: 19px;
  font-weight: 750;
  margin-bottom: 6px;
}

.social-card-handle {
  font-size: 13px;
  opacity: 0.9;
  font-weight: 500;
  margin-bottom: 16px;
}

.social-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  margin-top: auto;
  align-self: flex-start;
  transition: background 0.2s ease;
}

.social-card:hover .social-card-cta {
  background: #ffffff;
  color: #11151c;
}

/* Floating Smart Action Dock */
.floating-action-dock {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.25);
  border-radius: 9999px;
  padding: 8px 12px;
  transition: all 0.3s ease;
}

.floating-action-dock:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px -10px var(--brand-red-glow);
}

.dock-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.2s ease;
  position: relative;
  text-decoration: none;
}

.dock-btn:hover {
  transform: scale(1.12);
}

.dock-btn-whatsapp {
  background: #25d366;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.dock-btn-phone {
  background: var(--brand-red);
  box-shadow: 0 6px 16px var(--brand-red-glow);
}

.dock-btn-instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

.dock-btn-tiktok {
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.dock-tooltip {
  position: absolute;
  bottom: 56px;
  background: #11151c;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: all 0.2s ease;
}

.dock-btn:hover .dock-tooltip {
  opacity: 1;
  transform: translateY(0);
}

/* Testimonial Cards */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
}

.testimonial-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 14px 32px -8px rgba(0, 0, 0, 0.08);
}

.star-rating {
  color: #f59e0b;
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  font-size: 16px;
}

.testimonial-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-red), #e61d42);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
}

.author-info strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
}

.author-info span {
  font-size: 12px;
  color: var(--muted);
}

/* Toast Notifications */
.toast-notice {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #11151c;
  color: #fff;
  padding: 12px 24px;
  border-radius: 9999px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  font-size: 13px;
  font-weight: 600;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.toast-notice.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Media Queries */
@media (max-width: 767px) {
  .top-ticker-inner {
    justify-content: center;
    text-align: center;
  }
  .ticker-social-links {
    display: none;
  }
  .floating-action-dock {
    bottom: 16px;
    right: 16px;
    padding: 6px 10px;
    gap: 8px;
  }
  .dock-btn {
    width: 38px;
    height: 38px;
  }
  .quiz-container {
    padding: 22px 18px;
  }
}
