/* ==========================================================================
   TutorFox Growth Hub — Premium SaaS Stylesheet
   Website: https://growths.tutorfox.in
   Parent Product: https://tutorfox.in
   Palette: Primary #315CF5 | Secondary #7357E8 | Dark #111827 | Bg #F8FAFC | Success #16A36A
   ========================================================================== */

:root {
  --tf-primary: #315CF5;
  --tf-primary-dark: #2145CC;
  --tf-secondary: #7357E8;
  --tf-dark: #111827;
  --tf-bg: #F8FAFC;
  --tf-card: #FFFFFF;
  --tf-success: #16A36A;
  --tf-border: #E2E8F0;
  --tf-muted: #64748B;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--tf-bg);
  color: var(--tf-dark);
}

body {
  margin: 0;
  background-color: var(--tf-bg);
  color: var(--tf-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* Subtle Hero Animated Background & Grid */
.hero-mesh {
  position: relative;
  background:
    radial-gradient(circle at 15% 20%, rgba(49, 92, 245, 0.10) 0%, transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(115, 87, 232, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(22, 163, 106, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
}

.hero-grid-overlay {
  background-size: 36px 36px;
  background-image: 
    linear-gradient(to right, rgba(49, 92, 245, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(49, 92, 245, 0.045) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse at center, black 45%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 45%, transparent 85%);
}

/* Floating Decorative Orbs & Dashboard Motion */
@keyframes floatSlow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(0.5deg); }
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0px, 0px) scale(1); }
  33% { transform: translate(12px, -14px) scale(1.04); }
  66% { transform: translate(-10px, 8px) scale(0.97); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.03); }
}

@keyframes fadeInSlide {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-float-dashboard {
  animation: floatSlow 6s ease-in-out infinite;
}

.animate-orb-1 {
  animation: floatOrb 10s ease-in-out infinite;
}

.animate-orb-2 {
  animation: floatOrb 13s ease-in-out infinite reverse;
}

.tab-panel-enter {
  animation: fadeInSlide 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Scroll Reveal */
.reveal-item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* SaaS Card Hover Lift & Border Glow */
.saas-card {
  background: var(--tf-card);
  border: 1px solid var(--tf-border);
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.03), 0 4px 16px rgba(17, 24, 39, 0.03);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease;
}

.saas-card:hover {
  transform: translateY(-4px);
  border-color: rgba(49, 92, 245, 0.35);
  box-shadow: 0 12px 28px -6px rgba(49, 92, 245, 0.10), 0 4px 12px -2px rgba(17, 24, 39, 0.05);
}

.saas-card:hover .card-icon-box {
  transform: scale(1.07) rotate(-2deg);
}

.card-icon-box {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease;
}

/* Navigation Tabs */
.nav-tab-btn {
  position: relative;
  transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-tab-btn::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--tf-primary), var(--tf-secondary));
  transition: width 0.25s ease, left 0.25s ease;
  border-radius: 2px;
}

.nav-tab-btn:hover::after {
  width: 65%;
  left: 17.5%;
}

.nav-tab-btn.active-tab {
  color: var(--tf-primary);
  background-color: rgba(49, 92, 245, 0.08);
  font-weight: 600;
}

.nav-tab-btn.active-tab::after {
  width: 75%;
  left: 12.5%;
}

.nav-tab-gopro {
  background: linear-gradient(135deg, rgba(49, 92, 245, 0.09) 0%, rgba(115, 87, 232, 0.14) 100%);
  border: 1px solid rgba(115, 87, 232, 0.28);
  color: #4338CA;
}

.nav-tab-gopro.active-tab {
  background: linear-gradient(135deg, #315CF5 0%, #7357E8 100%);
  color: #FFFFFF !important;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(49, 92, 245, 0.3);
}

.nav-tab-gopro.active-tab::after {
  display: none;
}

/* Custom Range Sliders for Calculators */
input[type="range"].tf-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: #E2E8F0;
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}

input[type="range"].tf-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--tf-primary);
  border: 3px solid #FFFFFF;
  box-shadow: 0 2px 6px rgba(49, 92, 245, 0.4);
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

input[type="range"].tf-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: var(--tf-secondary);
}

/* Tooltip */
.tf-tooltip-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.tf-tooltip-box {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: 240px;
  background: #111827;
  color: #F8FAFC;
  font-size: 0.75rem;
  line-height: 1.4;
  padding: 0.55rem 0.75rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 50;
  font-weight: 400;
  text-align: left;
}

.tf-tooltip-wrap:hover .tf-tooltip-box,
.tf-tooltip-wrap:focus-within .tf-tooltip-box {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Hide scrollbars on horizontal mobile nav */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Print Stylesheet for Assessment & Guide Print / Save as PDF */
@media print {
  body {
    background: #FFFFFF !important;
    color: #000000 !important;
  }
  header, footer, .no-print, #floatingWhatsapp, #heroSection, #featureHighlightsBar {
    display: none !important;
  }
  .saas-card {
    box-shadow: none !important;
    border: 1px solid #CBD5E1 !important;
    break-inside: avoid;
  }
}

/* Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-item {
    opacity: 1 !important;
    transform: none !important;
  }
}
