/* ==========================================================================
   Squaredot Digital & E-com Solutions - Custom Stylesheet & Design System
   ========================================================================== */

@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=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary-blue: #1874D0;
  --primary-blue-dark: #0B56A8;
  --primary-blue-light: #EBF4FC;
  --primary-blue-glow: rgba(24, 116, 208, 0.25);
  
  --accent-orange: #FF7A33;
  --accent-orange-dark: #E85817;
  --accent-orange-light: #FFF2EB;
  --accent-orange-glow: rgba(255, 122, 51, 0.3);

  --neutral-dark: #0F172A;
  --neutral-slate: #1E293B;
  --neutral-muted: #64748B;
  --neutral-border: #E2E8F0;
  --neutral-light: #F8FAFC;
  --white: #FFFFFF;

  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 36px -4px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 24px 60px -12px rgba(15, 23, 42, 0.16);
  --shadow-blue: 0 12px 30px -4px rgba(24, 116, 208, 0.28);
  --shadow-orange: 0 12px 30px -4px rgba(255, 122, 51, 0.28);
}

/* Base resets & typography */
html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  color: var(--neutral-slate);
  background-color: var(--neutral-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
  letter-spacing: -0.025em;
}

/* Background Patterns & Mesh Gradients */
.bg-dot-pattern {
  background-image: radial-gradient(#CBD5E1 1px, transparent 1px);
  background-size: 24px 24px;
}

.bg-dot-pattern-dark {
  background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}

.bg-mesh-gradient {
  background: radial-gradient(circle at 10% 20%, rgba(24, 116, 208, 0.08) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(255, 122, 51, 0.07) 0%, transparent 40%),
              radial-gradient(circle at 50% 50%, rgba(24, 116, 208, 0.04) 0%, transparent 60%);
}

.bg-mesh-dark {
  background: radial-gradient(circle at 20% 20%, rgba(24, 116, 208, 0.25) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(255, 122, 51, 0.2) 0%, transparent 50%),
              #0F172A;
}

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

.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.85);
  box-shadow: var(--shadow-md);
}

.glass-card-hover {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-item,
.scroll-reveal {
  opacity: 1;
  visibility: visible;
}

.glass-card-hover:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(24, 116, 208, 0.3);
}

.glass-dark-card {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Custom Badges & Tags */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 9999px;
  letter-spacing: 0.01em;
}

.badge-blue {
  background-color: var(--primary-blue-light);
  color: var(--primary-blue-dark);
  border: 1px solid rgba(24, 116, 208, 0.2);
}

.badge-orange {
  background-color: var(--accent-orange-light);
  color: var(--accent-orange-dark);
  border: 1px solid rgba(255, 122, 51, 0.25);
}

.badge-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #22C55E;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse-ring 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

/* Custom Buttons & Hover States */
.btn-primary {
  background: linear-gradient(135deg, #1874D0 0%, #0B56A8 100%);
  color: #FFFFFF;
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.85rem 1.75rem;
  box-shadow: var(--shadow-blue);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -4px rgba(24, 116, 208, 0.4);
  filter: brightness(1.05);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-accent {
  background: linear-gradient(135deg, #FF7A33 0%, #E85817 100%);
  color: #FFFFFF;
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.85rem 1.75rem;
  box-shadow: var(--shadow-orange);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -4px rgba(255, 122, 51, 0.45);
  filter: brightness(1.05);
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--neutral-slate);
  font-weight: 600;
  border: 1px solid var(--neutral-border);
  border-radius: 0.75rem;
  padding: 0.85rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-secondary:hover {
  background: var(--neutral-light);
  border-color: #CBD5E1;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Glowing Border Accent Effect */
.border-glow-hover {
  position: relative;
  overflow: hidden;
}

.border-glow-hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, rgba(24, 116, 208, 0.6), rgba(255, 122, 51, 0.6));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.border-glow-hover:hover::before {
  opacity: 1;
}

/* Gradient text utility */
.text-gradient-blue {
  background: linear-gradient(135deg, #1874D0 0%, #0B56A8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-orange {
  background: linear-gradient(135deg, #FF7A33 0%, #E85817 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-hero {
  background: linear-gradient(135deg, #0F172A 30%, #1874D0 80%, #FF7A33 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Custom Navigation Link Active State */
.nav-link {
  position: relative;
  font-weight: 500;
  color: #475569;
  transition: color 0.25s ease;
  padding: 0.5rem 0.25rem;
}

.nav-link:hover {
  color: var(--primary-blue);
}

.nav-link.active {
  color: var(--primary-blue);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2.5px;
  border-radius: 2px;
  background: var(--primary-blue);
}

/* Interactive ROI Calculator Slider Styling */
.roi-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: #E2E8F0;
  outline: none;
  transition: background 0.3s ease;
}

.roi-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-blue);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(24, 116, 208, 0.4);
  border: 3px solid #FFFFFF;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.roi-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: var(--accent-orange);
}

/* Accordion Smooth Transition */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1), opacity 0.3s ease;
  opacity: 0;
}

.accordion-item.active .accordion-content {
  max-height: 600px;
  opacity: 1;
  transition: max-height 0.45s ease-in-out, opacity 0.35s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
  color: var(--primary-blue);
}

/* Modal Animations */
.modal-backdrop {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  transform: scale(0.95) translateY(20px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.modal-backdrop.open .modal-container {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Toast Notification */
.toast-notification {
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Bento Grid Accents */
.bento-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.group:hover .bento-icon-box {
  transform: scale(1.08) rotate(3deg);
}

/* Floating Action / WhatsApp Widget */
.floating-widget {
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-widget:hover {
  transform: translateY(-4px) scale(1.04);
}

/* Smooth Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #F1F5F9;
}

::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* Ticker Animation for Trust Logos */
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 28s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

/* ==========================================================================
   Auto-Adjustable Responsive Team Grid System
   ========================================================================== */
.team-grid-auto {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
}

@media (min-width: 640px) {
  .team-grid-auto {
    gap: 2rem;
  }
}

.team-card-auto {
  width: 100%;
  max-width: 24rem;
  display: flex;
  flex-direction: column;
}

/* Single Team Member (Centered) */
.team-cols-1 .team-card-auto {
  width: 100%;
  max-width: 26rem;
}

/* 2 Team Members (2 columns on sm/desktop) */
.team-cols-2 .team-card-auto {
  width: 100%;
  max-width: 24rem;
}
@media (min-width: 640px) {
  .team-cols-2 .team-card-auto {
    width: calc(50% - 1rem);
  }
}

/* 3 Team Members (3 columns in a single row on desktop, 2 on tablet with 1 centered) */
.team-cols-3 .team-card-auto {
  width: 100%;
  max-width: 24rem;
}
@media (min-width: 640px) {
  .team-cols-3 .team-card-auto {
    width: calc(50% - 1rem);
  }
}
@media (min-width: 1024px) {
  .team-cols-3 .team-card-auto {
    width: calc(33.333% - 1.35rem);
    max-width: 24rem;
  }
}

/* 4 Team Members (4 columns in a single row on desktop, 2x2 on tablet) */
.team-cols-4 .team-card-auto {
  width: 100%;
  max-width: 24rem;
}
@media (min-width: 640px) {
  .team-cols-4 .team-card-auto {
    width: calc(50% - 1rem);
  }
}
@media (min-width: 1024px) {
  .team-cols-4 .team-card-auto {
    width: calc(25% - 1.5rem);
    max-width: none;
  }
}

/* 5+ Team Members (4 in top row on desktop, remainder centered in row below) */
.team-cols-multi .team-card-auto {
  width: 100%;
  max-width: 24rem;
}
@media (min-width: 640px) {
  .team-cols-multi .team-card-auto {
    width: calc(50% - 1rem);
  }
}
@media (min-width: 1024px) {
  .team-cols-multi .team-card-auto {
    width: calc(25% - 1.5rem);
    max-width: none;
  }
}

/* Equal Height & Internal Flex Layout for Team Cards */
.team-card-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  width: 100%;
}

/* ==========================================================================
   Global Responsiveness & Overflow Protection
   ========================================================================== */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Ensure images never cause overflow */
img, svg, video, canvas {
  max-width: 100%;
  height: auto;
}

/* Responsive Table Wrapper with Smooth Scroll */
.table-responsive-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 0.75rem;
}

/* Form input touch optimization for iOS/Android */
@media (max-width: 640px) {
  input, select, textarea, button {
    font-size: 16px !important; /* Prevents auto-zoom on iOS */
  }
}

