/* ==========================================================================
   Business Coaching Hub (BCH) - Premium Design System
   Samagra Progressive Learning Solutions
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Outfit:wght@400;500;600;700;800;900&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --navy-950: #050b1a;
  --navy-900: #0a1128;
  --navy-800: #0c1c44;
  --samagra-royal: #04016C;
  --samagra-deep: #002B6B;
  --samagra-blue: #1A237E;
  --samagra-cyan: #00B0EE;
  --samagra-bright-cyan: #00A9FF;
  --samagra-sky: #38BDF8;
  --samagra-ice: #F0F6FF;
  --samagra-light-slate: #F8FAFC;
  --samagra-border: #E2E8F0;
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Manrope', sans-serif;
}

/* Custom Reset & Typography */
html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  color: #0F172A;
  background-color: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

.font-display {
  font-family: var(--font-display);
}

.font-body {
  font-family: var(--font-body);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: #94A3B8;
  border-radius: 5px;
  border: 2px solid #F1F5F9;
}
::-webkit-scrollbar-thumb:hover {
  background: #002B6B;
}

/* ==========================================================================
   SAMAGRA BRAND LOGO SIZING (Navbar & Footer - Bold, Grand & Authoritative)
   ========================================================================== */

/* Navbar Brand Logo */
.navbar-brand-logo {
  height: 64px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  transform: scale(1.18);
  transform-origin: left center;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

@media (min-width: 1024px) {
  .navbar-brand-logo {
    height: 74px;
    max-width: 260px;
    transform: scale(1.22);
  }
}

@media (max-width: 640px) {
  .navbar-brand-logo {
    height: 48px;
    max-width: 180px;
    transform: scale(1.1);
  }
}

/* Sticky compression effect */
.scrolled-nav .navbar-brand-logo {
  height: 54px;
  transform: scale(1.08);
}

@media (min-width: 1024px) {
  .scrolled-nav .navbar-brand-logo {
    height: 60px;
    transform: scale(1.12);
  }
}

/* Footer Brand Logo */
.footer-brand-logo {
  height: 80px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  transform: scale(1.2);
  transform-origin: left center;
  transition: all 0.25s ease;
  display: block;
}

@media (min-width: 768px) {
  .footer-brand-logo {
    height: 96px;
    max-width: 320px;
    transform: scale(1.25);
  }
}

@media (max-width: 640px) {
  .footer-brand-logo {
    height: 64px;
    max-width: 220px;
    transform: scale(1.1);
  }
}

/* Footer Social Icons */
.footer-social-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: #CBD5E1 !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.footer-social-btn svg {
  width: 18px !important;
  height: 18px !important;
  stroke: currentColor !important;
}

.footer-social-btn:hover {
  background: #00B0EE !important;
  color: #FFFFFF !important;
  border-color: #00B0EE !important;
  transform: translateY(-2px) scale(1.06) !important;
  box-shadow: 0 6px 16px rgba(0, 176, 238, 0.35) !important;
}

/* Glassmorphism Classes */
.glass-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(226, 232, 240, 0.85);
}

.glass-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.glass-dark {
  background: rgba(10, 17, 40, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Shadow System */
.shadow-premium {
  box-shadow: 0 15px 35px -10px rgba(0, 43, 107, 0.06), 0 0 1px 1px rgba(0, 43, 107, 0.03);
}

.shadow-premium-hover:hover {
  box-shadow: 0 25px 50px -15px rgba(0, 43, 107, 0.12), 0 0 1px 1px rgba(0, 176, 238, 0.2);
  transform: translateY(-4px);
}

.shadow-glow-cyan {
  box-shadow: 0 0 30px rgba(0, 176, 238, 0.35);
}

.shadow-glow-navy {
  box-shadow: 0 10px 40px rgba(4, 1, 108, 0.2);
}

/* Gradients */
.bg-gradient-samagra-hero {
  background: linear-gradient(135deg, #070D1E 0%, #0A1636 50%, #002359 100%);
}

.bg-gradient-samagra-card {
  background: linear-gradient(145deg, #FFFFFF 0%, #F6FAFF 100%);
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #00B0EE 0%, #00D2FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-navy {
  background: linear-gradient(135deg, #002B6B 0%, #04016C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Subtle Grid Background */
.bg-dark-grid {
  background-size: 48px 48px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

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

@keyframes pulseGlow {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(1.04); }
}

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

.animate-pulse-glow {
  animation: pulseGlow 4s ease-in-out infinite;
}

/* ==========================================================================
   ACCORDION TRANSITIONS (FAQ Smooth Drill-Down)
   ========================================================================== */
.faq-item {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active {
  border-color: #00B0EE !important;
  background-color: #FFFFFF !important;
  box-shadow: 0 12px 28px -6px rgba(0, 43, 107, 0.08) !important;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  opacity: 0;
}

.faq-item.active .faq-content {
  opacity: 1;
}

.faq-icon {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: #00B0EE;
}

/* Case Study Narrative Stages */
.stage-card {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.stage-card:hover {
  border-color: #00B0EE;
  transform: translateY(-3px);
}

/* Number Counter Animation */
.stat-number {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

/* Badges */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Button Micro-Interactions */
.btn-primary {
  background: #00B0EE;
  color: #FFFFFF;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 20px -4px rgba(0, 176, 238, 0.4);
}
.btn-primary:hover {
  background: #0096CC;
  box-shadow: 0 12px 28px -4px rgba(0, 176, 238, 0.55);
  transform: translateY(-2px);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-navy {
  background: #002B6B;
  color: #FFFFFF;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 20px -4px rgba(0, 43, 107, 0.25);
}
.btn-navy:hover {
  background: #04016C;
  box-shadow: 0 12px 28px -4px rgba(4, 1, 108, 0.4);
  transform: translateY(-2px);
}

/* Circle Arrow Icon inside Buttons */
.arrow-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-primary:hover .arrow-circle,
.btn-navy:hover .arrow-circle {
  transform: translate(2px, -2px) rotate(45deg);
}

/* Pillar Card Hover Glow */
.pillar-card {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.pillar-card:hover {
  border-color: #00B0EE;
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -10px rgba(0, 43, 107, 0.1);
}

/* ==========================================================================
   INFINITE SMOOTH LOGO SCROLLING MARQUEE (100% Responsive & Touch-Safe)
   ========================================================================== */
.logo-marquee-wrapper {
  position: relative;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  padding: 0.5rem 0;
  mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
  contain: paint;
}

@media (min-width: 768px) {
  .logo-marquee-wrapper {
    padding: 1rem 0;
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  }
}

.logo-marquee-track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  gap: 0.875rem;
  user-select: none;
  overflow: visible;
}

@media (min-width: 768px) {
  .logo-marquee-track {
    gap: 1.5rem;
  }
}

.logo-marquee-group {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.875rem;
  flex-shrink: 0;
  animation: scrollMarquee 40s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
}

@media (min-width: 768px) {
  .logo-marquee-group {
    gap: 1.5rem;
    animation-duration: 48s;
  }
}

.logo-marquee-wrapper:hover .logo-marquee-group {
  animation-play-state: paused;
}

@keyframes scrollMarquee {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(calc(-100% - 0.875rem), 0, 0);
  }
}

@media (min-width: 768px) {
  @keyframes scrollMarquee {
    0% {
      transform: translate3d(0, 0, 0);
    }
    100% {
      transform: translate3d(calc(-100% - 1.5rem), 0, 0);
    }
  }
}

/* Mobile-First Scaled Logo Cards */
.marquee-logo-card {
  flex-shrink: 0;
  width: 175px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  background-color: #FFFFFF;
  border-radius: 1rem;
  border: 1.5px solid #E2E8F0;
  box-shadow: 0 4px 12px -2px rgba(0, 43, 107, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 640px) {
  .marquee-logo-card {
    width: 210px;
    height: 105px;
    padding: 1rem 1.25rem;
    border-radius: 1.15rem;
  }
}

@media (min-width: 1024px) {
  .marquee-logo-card {
    width: 260px;
    height: 125px;
    padding: 1.25rem 1.75rem;
    border-radius: 1.25rem;
  }
}

.marquee-logo-card:hover {
  border-color: #00B0EE;
  box-shadow: 0 12px 28px -6px rgba(0, 176, 238, 0.22), 0 0 0 1px #00B0EE;
  transform: translateY(-2px);
}

.marquee-logo-img {
  max-height: 48px;
  max-width: 135px;
  width: auto;
  object-fit: contain;
  opacity: 1;
  transition: transform 0.25s ease;
  display: block;
}

@media (min-width: 640px) {
  .marquee-logo-img {
    max-height: 58px;
    max-width: 165px;
  }
}

@media (min-width: 1024px) {
  .marquee-logo-img {
    max-height: 72px;
    max-width: 200px;
  }
}

.marquee-logo-card:hover .marquee-logo-img {
  transform: scale(1.05);
}

.marquee-logo-card:hover .marquee-logo-img {
  transform: scale(1.06);
}

/* Custom Form Controls */
.form-input {
  width: 100%;
  padding: 0.85rem 1.15rem;
  border-radius: 1rem;
  border: 1.5px solid #E2E8F0;
  background-color: #F8FAFC;
  font-size: 0.95rem;
  color: #0F172A;
  transition: all 0.2s ease;
}
.form-input:focus {
  outline: none;
  border-color: #00B0EE;
  background-color: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(0, 176, 238, 0.12);
}

/* Modals */
.modal-overlay {
  background: rgba(10, 17, 40, 0.75);
  backdrop-filter: blur(8px);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .logo-marquee-track {
    animation: none !important;
    overflow-x: auto;
  }
}
