/* ==========================================================================
   Brill.team — Neomorphism (Soft UI) Design System
   White-based · Logo-derived colors · Raised/Inset shadows · Modern premium
   ========================================================================== */

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

/* ---------- Design Tokens ---------- */
:root {
  /* Brand Colors — Extracted from Brill Logo */
  --primary:        #4A6FA5;
  --primary-dark:   #3B5C8A;
  --primary-deep:   #2C4A72;
  --primary-light:  #7094C0;
  --primary-soft:   #dce4f0;
  --primary-pale:   #eef2f8;

  --accent:         #E8611A;
  --accent-warm:    #F07838;
  --accent-soft:    #fef0e8;

  /* Neumorphic Surface */
  --bg:             #eef1f5;
  --bg-alt:         #e4e8ee;
  --bg-card:        #eef1f5;
  --bg-white:       #f5f7fa;

  /* Neumorphic Shadows */
  --neu-dark:       #c8ccd2;
  --neu-light:      #ffffff;

  /* Dark Theme (Footer / CTA) */
  --bg-dark:        #1e293b;
  --dark-neu-dark:  #172033;
  --dark-neu-light: #263244;

  /* Text */
  --ink:            #2d3748;
  --ink-muted:      #5a6577;
  --ink-light:      #8892a4;
  --ink-white:      #ffffff;

  /* Typography */
  --heading:  'Outfit', -apple-system, sans-serif;
  --body:     'Inter', -apple-system, sans-serif;

  /* Neumorphic Shadow Presets */
  --neu-raised-xs:  2px 2px 5px var(--neu-dark), -2px -2px 5px var(--neu-light);
  --neu-raised-sm:  4px 4px 8px var(--neu-dark), -4px -4px 8px var(--neu-light);
  --neu-raised:     6px 6px 14px var(--neu-dark), -6px -6px 14px var(--neu-light);
  --neu-raised-lg:  10px 10px 20px var(--neu-dark), -10px -10px 20px var(--neu-light);
  --neu-raised-xl:  14px 14px 28px var(--neu-dark), -14px -14px 28px var(--neu-light);
  --neu-inset:      inset 3px 3px 7px var(--neu-dark), inset -3px -3px 7px var(--neu-light);
  --neu-inset-sm:   inset 2px 2px 4px var(--neu-dark), inset -2px -2px 4px var(--neu-light);

  /* Transitions */
  --ease:     0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --ease-out: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);

  /* Layout */
  --max-w:    1180px;
  --r-sm:     12px;
  --r-md:     16px;
  --r-lg:     24px;
  --r-xl:     32px;
  --r-full:   100px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; transition: color var(--ease); }
ul { list-style: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: var(--heading);
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 600; margin-bottom: 1rem; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; margin-bottom: 0.5rem; }
h4 {
  font-family: var(--heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

p { color: var(--ink-muted); margin-bottom: 1.2rem; font-size: 1rem; line-height: 1.8; font-weight: 400; }
p:last-child { margin-bottom: 0; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.text-center { text-align: center; }
.text-accent  { color: var(--accent); }

.section         { padding: 7rem 0; background: var(--bg); }
.section-alt     { padding: 7rem 0; background: var(--bg-alt); }
.section-soft    { padding: 7rem 0; background: var(--bg-white); }
.section-dark    { padding: 7rem 0; background: var(--bg-dark); }
.section-stripe  { padding: 7rem 0; background: var(--bg); }

/* ---------- Section Header ---------- */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.35rem 1rem;
  border-radius: var(--r-full);
  margin-bottom: 1.25rem;
  box-shadow: var(--neu-raised-xs);
}

.section-header { max-width: 800px; }
.section-header.text-center { margin: 0 auto 3.5rem; }
.section-header.text-center .section-eyebrow { display: inline-flex; }
.section-header h2 { margin-top: 0.75rem; color: var(--primary-dark); }
.section-header p  { font-size: 1.05rem; }

/* ---------- Grids ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  font-family: var(--heading);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: var(--r-md);
  border: none;
  cursor: pointer;
  transition: all var(--ease);
  white-space: nowrap;
  position: relative;
}

.btn-primary {
  background: var(--bg);
  color: var(--primary);
  box-shadow: var(--neu-raised-sm);
}
.btn-primary:hover {
  box-shadow: var(--neu-raised);
  color: var(--primary-dark);
}
.btn-primary:active {
  box-shadow: var(--neu-inset);
}

.btn-outline {
  background: var(--bg);
  color: var(--accent);
  box-shadow: var(--neu-raised-sm);
}
.btn-outline:hover {
  box-shadow: var(--neu-raised);
  color: var(--accent-warm);
}
.btn-outline:active {
  box-shadow: var(--neu-inset);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  color: #fff;
  box-shadow: 4px 4px 10px rgba(232, 97, 26, 0.35), -2px -2px 8px var(--neu-light);
}
.btn-accent:hover {
  box-shadow: 6px 6px 14px rgba(232, 97, 26, 0.4), -3px -3px 10px var(--neu-light);
  transform: translateY(-1px);
}
.btn-accent:active {
  box-shadow: inset 2px 2px 5px rgba(232, 97, 26, 0.4);
  transform: translateY(0);
}

.btn-white {
  background: #fff;
  color: var(--primary);
  box-shadow: 4px 4px 10px rgba(0,0,0,0.15), -4px -4px 10px rgba(255,255,255,0.1);
  font-weight: 600;
}
.btn-white:hover {
  box-shadow: 6px 6px 14px rgba(0,0,0,0.2), -6px -6px 14px rgba(255,255,255,0.15);
  transform: translateY(-1px);
}

.btn-white-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
  box-shadow: none;
}
.btn-white-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}
.btn-group-center { justify-content: center; }

/* =====================================================
   HEADER / NAVIGATION — Neumorphic Frosted Glass
   ===================================================== */
.header {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: var(--max-w);
  z-index: 1000;
  background: linear-gradient(135deg, rgba(238, 241, 245, 0.85), rgba(254, 240, 232, 0.85), rgba(238, 241, 245, 0.85));
  background-size: 200% 200%;
  animation: header-gradient-flow 8s infinite alternate ease-in-out;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 4px 4px 15px rgba(163, 177, 198, 0.25), -4px -4px 15px rgba(255, 255, 255, 0.7);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  padding: 0 1.5rem;
}
.header.scrolled {
  top: 0.5rem;
  width: 95%;
  max-width: calc(var(--max-w) + 40px);
  background: linear-gradient(135deg, rgba(238, 241, 245, 0.95), rgba(254, 240, 232, 0.95), rgba(238, 241, 245, 0.95));
  box-shadow: 5px 5px 20px rgba(163, 177, 198, 0.35), -5px -5px 20px rgba(255, 255, 255, 0.8);
}

@keyframes header-gradient-flow {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  font-family: var(--heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 2px;
}
.logo img {
  transition: transform var(--ease);
}
.logo:hover img {
  transform: scale(1.05);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  position: relative;
}

.nav-indicator {
  position: absolute;
  height: 80%;
  top: 10%;
  left: 0;
  width: 0;
  background: var(--bg);
  box-shadow: var(--neu-inset-sm);
  border-radius: 20px;
  z-index: 1;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  pointer-events: none;
}

.nav-link {
  font-family: var(--heading);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-muted);
  padding: 0.45rem 1.1rem;
  border-radius: 20px;
  position: relative;
  z-index: 2;
  transition: color var(--ease);
  white-space: nowrap;
  background: transparent !important;
  box-shadow: none !important;
}
.nav-link:hover, .nav-link.active {
  color: var(--accent);
}
.nav-link::after {
  display: none !important;
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  background: var(--bg);
  border: none;
  border-radius: var(--r-sm);
  padding: 8px;
  box-shadow: var(--neu-raised-xs);
  align-items: center;
  justify-content: center;
  transition: all var(--ease);
}
.mobile-toggle:active {
  box-shadow: var(--neu-inset-sm);
}
.mobile-toggle span {
  display: block;
  height: 2px;
  width: 18px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================
   HERO SECTION — Clean Neumorphic
   ===================================================== */
/* =====================================================
   HERO SECTION — Animated Modern Digital Agency
   ===================================================== */
.hero {
  padding: 7.5rem 0 5rem;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

/* Background animated glow blobs */
.hero-glow-1, .hero-glow-2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 1;
  pointer-events: none;
  opacity: 0.15;
  mix-blend-mode: multiply;
  animation: glow-move 10s infinite alternate ease-in-out;
}
.hero-glow-1 {
  top: -10%;
  right: 10%;
  width: 400px;
  height: 400px;
  background: var(--primary);
}
.hero-glow-2 {
  bottom: 10%;
  left: 5%;
  width: 350px;
  height: 350px;
  background: var(--accent);
  animation-delay: -3s;
}

@keyframes glow-move {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -60px) scale(1.1); }
  100% { transform: translate(-20px, 30px) scale(0.9); }
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.4rem 1.1rem;
  border-radius: var(--r-full);
  margin-bottom: 1.75rem;
  box-shadow: var(--neu-raised-xs);
  animation: float-xs 4s infinite ease-in-out;
}

.hero-title {
  margin-bottom: 1.25rem;
  color: var(--primary-deep);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 600;
  line-height: 1.25;
}
.hero-title span {
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.hero-desc {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--ink-muted);
  max-width: 520px;
  margin-bottom: 2.25rem;
}

.hero-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 3rem;
}
.hero-stats > div {
  background: var(--bg);
  padding: 1.25rem 1.75rem;
  border-radius: var(--r-md);
  box-shadow: var(--neu-raised-sm);
  text-align: center;
  min-width: 110px;
  transition: all var(--ease);
}
.hero-stats > div:hover {
  box-shadow: var(--neu-raised);
  transform: translateY(-4px);
}
.hero-stat-number {
  font-family: var(--heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.stat-accent { color: var(--accent); }
.hero-stat-label {
  font-family: var(--heading);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-top: 0.45rem;
}

/* Floating Hero Image layout */
.hero-image-wrapper {
  position: relative;
  border-radius: var(--r-xl);
  box-shadow: var(--neu-raised-lg);
  animation: float 6s infinite ease-in-out;
  background: var(--bg);
  padding: 8px;
}
.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r-xl);
  transition: transform var(--ease);
}
.hero-image-wrapper:hover img {
  transform: scale(1.02);
}

.hero-image-badge {
  position: absolute;
  bottom: 1.5rem; left: 1.5rem;
  background: var(--bg);
  border-radius: var(--r-md);
  padding: 0.85rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--neu-raised);
  animation: float-badge 5s infinite ease-in-out;
}

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(0.5deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes float-badge {
  0% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-6px) scale(1.02); }
  100% { transform: translateY(0px) scale(1); }
}

@keyframes float-xs {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
  100% { transform: translateY(0px); }
}
.hero-badge-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  background: var(--bg);
  box-shadow: var(--neu-inset-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.hero-badge-text strong {
  display: block;
  font-family: var(--heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-dark);
}
.hero-badge-text span {
  font-size: 0.72rem;
  color: var(--ink-light);
}

/* =====================================================
   PAGE HERO (Inner Pages) — Neumorphic
   ===================================================== */
.page-hero {
  padding: 7rem 0 4.5rem;
  background: var(--bg-alt);
}
.page-hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--ink-light);
  margin-bottom: 1.5rem;
}
.page-hero-breadcrumb a {
  transition: color var(--ease);
}
.page-hero-breadcrumb a:hover { color: var(--primary); }
.page-hero-breadcrumb span { color: var(--ink-light); }
.page-hero h1, .page-hero h2 { color: var(--primary-dark); }
.page-hero-lead {
  font-size: 1.1rem;
  line-height: 1.85;
  max-width: 640px;
  margin-top: 1rem;
  color: var(--ink-muted);
}

/* =====================================================
   CARDS — Neumorphic Raised
   ===================================================== */
.card {
  background: var(--bg);
  border: none;
  border-radius: var(--r-md);
  padding: 1.5rem;
  box-shadow: var(--neu-raised);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.card:hover {
  box-shadow: var(--neu-raised-lg);
  transform: translateY(-5px);
}

.card-icon {
  width: 46px; height: 46px;
  border-radius: var(--r-sm);
  background: var(--bg);
  box-shadow: var(--neu-inset);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1rem;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.card:hover .card-icon {
  box-shadow: var(--neu-raised-sm);
  color: var(--accent);
  transform: scale(1.05);
}
.card-icon.accent {
  color: var(--accent);
}

.card-title {
  font-family: var(--heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.card-text { 
  font-size: 0.88rem; 
  color: var(--ink-muted); 
  line-height: 1.6; 
  flex-grow: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 1rem;
  letter-spacing: 0.03em;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.card-link:hover { gap: 0.6rem; color: var(--accent); }

/* =====================================================
   SERVICE CARDS — Neumorphic with Accent Hover
   ===================================================== */
.service-card {
  background: var(--bg);
  border: none;
  border-radius: var(--r-lg);
  padding: 2rem;
  box-shadow: var(--neu-raised);
  transition: box-shadow var(--ease), transform var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 3px 3px 0 0;
  opacity: 0;
  transition: opacity var(--ease);
}
.service-card:hover {
  box-shadow: var(--neu-raised-lg);
  transform: translateY(-4px);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 50px; height: 50px;
  border-radius: var(--r-md);
  background: var(--bg);
  box-shadow: var(--neu-inset);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  margin-bottom: 1.25rem;
  transition: all var(--ease);
}
.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  box-shadow: 3px 3px 8px rgba(74,111,165,0.3), -2px -2px 6px var(--neu-light);
}

.service-title {
  font-family: var(--heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 0.6rem;
}
.service-desc { font-size: 0.9rem; color: var(--ink-muted); line-height: 1.75; }
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 1.25rem;
  letter-spacing: 0.02em;
  transition: gap var(--ease), color var(--ease);
}
.service-link:hover { gap: 0.65rem; color: var(--accent); }

/* =====================================================
   WHY TRUST — SPECIALTY LIST
   ===================================================== */
.specialty-list { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.25rem; }
.specialty-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--bg);
  padding: 1.25rem 1.5rem;
  border-radius: var(--r-md);
  box-shadow: var(--neu-raised-sm);
  transition: box-shadow var(--ease), transform var(--ease);
}
.specialty-item:hover {
  box-shadow: var(--neu-raised);
  transform: translateY(-2px);
}
.specialty-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  margin-top: 0.55rem;
  flex-shrink: 0;
  box-shadow: 1px 1px 3px rgba(232, 97, 26, 0.3);
}
.specialty-item h4 {
  font-family: var(--heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-dark);
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 0.3rem;
}
.specialty-item p { font-size: 0.88rem; margin: 0; }

/* =====================================================
   STATS BAND — Light Neumorphic
   ===================================================== */
.stats-band {
  padding: 4.5rem 0;
  background: var(--bg-alt);
}
.stats-band-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stats-band-grid > div {
  background: var(--bg-alt);
  padding: 2rem 1.5rem;
  border-radius: var(--r-lg);
  box-shadow: 6px 6px 14px #cacfd6, -6px -6px 14px #feffff;
}
.stat-number {
  font-family: var(--heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-family: var(--heading);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light);
}

/* =====================================================
   TESTIMONIALS — INFINITE SCROLL — Neumorphic
   ===================================================== */
.testimonials-section {
  padding: 7rem 0;
  background: var(--bg);
  overflow: hidden;
}

.testi-track-wrapper {
  overflow: hidden;
  cursor: pointer;
}

.testi-track {
  display: flex;
  gap: 1.75rem;
  animation: marquee 60s linear infinite;
  width: max-content;
  align-items: flex-start;
}
.testi-track-wrapper:hover .testi-track { animation-play-state: paused; }

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.testi-card {
  flex-shrink: 0;
  width: 300px;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg);
  border: none;
  border-radius: var(--r-lg);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--neu-raised-sm);
  transition: box-shadow var(--ease), transform var(--ease);
}
.testi-card:hover {
  box-shadow: var(--neu-raised-lg);
  transform: translateY(-2px);
}

.testi-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 0.5rem;
}
.testi-stars span { color: #f59e0b; font-size: 0.9rem; }

.testi-quote {
  font-size: 0.88rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.5rem;
}
.testi-avatar {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  background: var(--bg);
  box-shadow: var(--neu-inset-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--heading);
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  flex-shrink: 0;
}
.testi-name {
  font-family: var(--heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-dark);
}
.testi-role { font-size: 0.77rem; color: var(--ink-light); margin-top: 1px; }

/* =====================================================
   CTA SECTION — Gradient with Neumorphic Elements
   ===================================================== */
.cta-section {
  padding: 7rem 0;
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary) 50%, var(--primary-light) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(232,97,26,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section h2 {
  color: #fff;
  margin-bottom: 1rem;
}
.cta-section p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 2rem;
}

/* =====================================================
   BENEFITS / NUMBERED LIST
   ===================================================== */
.benefit-item {
  padding: 1.5rem 1.75rem;
  margin-bottom: 1rem;
  background: var(--bg);
  border-radius: var(--r-md);
  box-shadow: var(--neu-raised-sm);
  transition: box-shadow var(--ease);
}
.benefit-item:hover {
  box-shadow: var(--neu-raised);
}
.benefit-item:last-child { margin-bottom: 0; }
.benefit-number {
  font-family: var(--heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
}
.benefit-title {
  font-family: var(--heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 0.4rem;
}
.benefit-text { font-size: 0.88rem; color: var(--ink-muted); margin: 0; }

/* =====================================================
   VALUE CARDS — Neumorphic
   ===================================================== */
.value-card {
  padding: 1.75rem;
  border: none;
  border-radius: var(--r-lg);
  background: var(--bg);
  box-shadow: var(--neu-raised);
  transition: box-shadow var(--ease), transform var(--ease);
}
.value-card:hover { box-shadow: var(--neu-raised-lg); transform: translateY(-3px); }
.value-number {
  font-family: var(--heading);
  font-size: 2.2rem;
  color: var(--primary-soft);
  line-height: 1;
  margin-bottom: 0.75rem;
  font-weight: 700;
}
.value-card h3 { font-size: 1.1rem; color: var(--primary-dark); margin-bottom: 0.5rem; }

/* =====================================================
   ABOUT INTRO
   ===================================================== */
.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: center;
}

/* =====================================================
   ACCORDION (FAQ) — Neumorphic
   ===================================================== */
.accordion { display: flex; flex-direction: column; gap: 0.85rem; }
.accordion-item {
  border: none;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg);
  box-shadow: var(--neu-raised-sm);
  transition: box-shadow var(--ease);
}
.accordion-item.open { box-shadow: var(--neu-raised); }
.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-dark);
  text-align: left;
  transition: all var(--ease);
}
.accordion-trigger:hover { color: var(--primary); }
.accordion-trigger .acc-icon {
  width: 24px; height: 24px;
  border-radius: var(--r-sm);
  background: var(--bg);
  box-shadow: var(--neu-raised-xs);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all var(--ease);
  font-size: 0.75rem;
  color: var(--ink-muted);
}
.accordion-item.open .accordion-trigger .acc-icon {
  transform: rotate(180deg);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  box-shadow: 2px 2px 5px rgba(74,111,165,0.3);
  color: #fff;
}
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.accordion-item.open .accordion-body { max-height: 400px; }
.accordion-body-inner { padding: 0 1.5rem 1.25rem; font-size: 0.9rem; color: var(--ink-muted); line-height: 1.75; }

/* =====================================================
   CONTACT FORM — Neumorphic Inputs
   ===================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 5rem; align-items: start; }

.contact-info-list { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }
.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--bg);
  padding: 1.1rem 1.25rem;
  border-radius: var(--r-md);
  box-shadow: var(--neu-raised-sm);
}
.contact-info-icon {
  width: 42px; height: 42px;
  border-radius: var(--r-sm);
  background: var(--bg);
  box-shadow: var(--neu-inset-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.contact-info-label {
  font-family: var(--heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-light);
}
.contact-info-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--primary-dark);
  margin-top: 2px;
}

.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-family: var(--heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
}
.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: none;
  border-radius: var(--r-md);
  background: var(--bg);
  box-shadow: var(--neu-inset);
  font-size: 0.95rem;
  transition: box-shadow var(--ease);
  outline: none;
  color: var(--ink);
}
.form-control::placeholder { color: var(--ink-light); }
.form-control:focus {
  box-shadow: var(--neu-inset), 0 0 0 2px rgba(74,111,165,0.2);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
textarea.form-control { resize: vertical; min-height: 130px; }

/* =====================================================
   CAREER PAGE — Neumorphic Job Cards
   ===================================================== */
.job-list { display: flex; flex-direction: column; gap: 1rem; }
.job-card {
  border: none;
  border-radius: var(--r-lg);
  padding: 1.75rem 2rem;
  background: var(--bg);
  box-shadow: var(--neu-raised);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  transition: box-shadow var(--ease), transform var(--ease);
}
.job-card:hover {
  box-shadow: var(--neu-raised-lg);
  transform: translateY(-2px);
}
.job-info h3 {
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin-bottom: 0.35rem;
}
.job-meta { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.job-tag {
  font-family: var(--heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: var(--r-full);
  background: var(--bg);
  box-shadow: var(--neu-raised-xs);
  color: var(--primary);
}
.job-tag.accent {
  color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 2px 2px 4px rgba(232,97,26,0.15), -2px -2px 4px var(--neu-light);
}

/* =====================================================
   SOLUTION PAGES — Neumorphic Features
   ===================================================== */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 1.5rem; }
.feature-item {
  padding: 1.25rem;
  border: none;
  border-radius: var(--r-md);
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  background: var(--bg);
  box-shadow: var(--neu-raised-sm);
  transition: box-shadow var(--ease), transform var(--ease);
}
.feature-item:hover {
  box-shadow: var(--neu-raised);
  transform: translateY(-2px);
}
.feature-item-icon {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: var(--bg);
  box-shadow: var(--neu-inset-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.feature-item-title {
  font-family: var(--heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 0.2rem;
}
.feature-item-text  { font-size: 0.82rem; color: var(--ink-muted); margin: 0; }

.module-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.5rem; }
.module-btn {
  padding: 0.55rem 1.1rem;
  border: none;
  border-radius: var(--r-full);
  font-family: var(--heading);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-muted);
  background: var(--bg);
  box-shadow: var(--neu-raised-xs);
  cursor: pointer;
  transition: all var(--ease);
  text-decoration: none;
  display: inline-block;
}
.module-btn:hover {
  box-shadow: var(--neu-raised-sm);
  color: var(--primary);
}
.module-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  box-shadow: 3px 3px 8px rgba(74,111,165,0.3), -2px -2px 6px var(--neu-light);
}

.solution-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }

/* =====================================================
   SERVICES ACCORDION AREA
   ===================================================== */
.service-section-title {
  font-family: var(--heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  position: relative;
}
.service-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

/* =====================================================
   FOOTER — Dark Neumorphism
   ===================================================== */
.footer {
  background: var(--bg-dark);
  padding: 5rem 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-logo {
  font-family: var(--heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.footer-tagline {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 1.5rem;
}

.footer-social { display: flex; gap: 0.6rem; }
.footer-social-link {
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  background: var(--bg-dark);
  box-shadow: 3px 3px 6px var(--dark-neu-dark), -3px -3px 6px var(--dark-neu-light);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: all var(--ease);
}
.footer-social-link:hover {
  color: var(--accent);
  box-shadow: 4px 4px 8px var(--dark-neu-dark), -4px -4px 8px var(--dark-neu-light);
}

.footer-title {
  font-family: var(--heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1.1rem;
}
.footer-title-section { margin-top: 2rem; }

.footer-links li { margin-bottom: 0.6rem; }
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--ease);
}
.footer-links a:hover { color: var(--accent); }
.footer-links li:not(:has(a)) { font-size: 0.875rem; color: rgba(255,255,255,0.4); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
}

/* =====================================================
   BADGES — Neumorphic Pills
   ===================================================== */
.badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: var(--r-full);
  font-family: var(--heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: var(--neu-raised-xs);
}
.badge-navy  { background: var(--primary-pale); color: var(--primary); }
.badge-accent { background: var(--accent-soft); color: var(--accent); }

/* =====================================================
   SCROLL ANIMATIONS
   ===================================================== */
.reveal, .reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal { transform: translateY(28px); }
.reveal-left  { transform: translateX(-35px); }
.reveal-right { transform: translateX(35px); }
.reveal.active, .reveal-left.active, .reveal-right.active {
  opacity: 1;
  transform: none;
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* =====================================================
   LEGAL PAGES
   ===================================================== */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 5rem 0;
}
.legal-content h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--primary-dark);
}
.legal-content p, .legal-content li { font-size: 0.95rem; color: var(--ink-muted); line-height: 1.85; }
.legal-content ul { padding-left: 1.25rem; list-style: disc; }
.legal-content ul li { margin-bottom: 0.4rem; }

/* =====================================================
   TESTIMONIALS PAGE (full page grid)
   ===================================================== */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

/* =====================================================
   REDUCED MOTION
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-left, .reveal-right {
    opacity: 1;
    transform: none;
  }
}

/* =====================================================
   RESPONSIVE — TABLET
   ===================================================== */
@media (max-width: 1024px) {
  .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .stats-band-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .solution-detail { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .testi-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; gap: 3rem; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .hero::before, .hero::after { display: none; }
  .hero { padding: 7.5rem 0 4rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .about-intro-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .mobile-toggle { display: flex; }
  .header-container {
    height: 56px;
    flex-wrap: nowrap;
  }
  .nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0; right: 0;
    background: rgba(238, 241, 245, 0.98);
    border-radius: 24px;
    box-shadow: 4px 4px 15px rgba(163, 177, 198, 0.2), -4px -4px 15px rgba(255, 255, 255, 0.6);
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1rem;
    gap: 0.5rem;
    display: none;
    z-index: 999;
    border: 1px solid rgba(255, 255, 255, 0.5);
  }
  .nav.active {
    display: flex;
  }
  .nav-indicator {
    display: none !important;
  }
  .nav-link {
    width: 100%;
    padding: 0.75rem 1.25rem;
    border-radius: 20px;
    font-size: 0.95rem;
    color: var(--primary-dark) !important;
    background: var(--bg) !important;
    box-shadow: var(--neu-raised-xs) !important;
    text-align: center;
  }
  .nav-link.active {
    box-shadow: var(--neu-inset-sm) !important;
    color: var(--accent) !important;
  }
  .nav-link::after { display: none; }

  /* Mobile Layout Reordering: Images on Top */
  .grid-2, .about-intro-grid, .solution-detail, .hero .container, .service-detail-grid {
    display: flex;
    flex-direction: column;
  }
  .hero-image-wrapper,
  .reveal-right:has(img),
  .reveal-right:has(svg),
  .reveal-left:has(img),
  .reveal-left:has(svg),
  .solution-mockup,
  .service-illustration-col {
    order: -1 !important;
  }
}

/* =====================================================
   RESPONSIVE — MOBILE
   ===================================================== */
@media (max-width: 640px) {
  :root {
    --max-w: 100%;
    --neu-raised-xs:  2px 2px 4px var(--neu-dark), -2px -2px 4px var(--neu-light);
    --neu-raised-sm:  3px 3px 6px var(--neu-dark), -3px -3px 6px var(--neu-light);
    --neu-raised:     5px 5px 10px var(--neu-dark), -5px -5px 10px var(--neu-light);
    --neu-raised-lg:  7px 7px 14px var(--neu-dark), -7px -7px 14px var(--neu-light);
  }
  .container { padding: 0 1.25rem; }

  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.7rem; }

  .section, .section-alt, .section-soft, .section-dark, .section-stripe, .testimonials-section { padding: 4.5rem 0; }
  .page-hero { padding: 6.5rem 0 3rem; }

  /* Mobile Nav */
  .mobile-toggle { display: flex; }
  .header-container {
    height: 56px;
    flex-wrap: nowrap;
  }
  .nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0; right: 0;
    background: rgba(238, 241, 245, 0.98);
    border-radius: 24px;
    box-shadow: 4px 4px 15px rgba(163, 177, 198, 0.2), -4px -4px 15px rgba(255, 255, 255, 0.6);
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1rem;
    gap: 0.5rem;
    display: none;
    z-index: 999;
    border: 1px solid rgba(255, 255, 255, 0.5);
  }
  .nav.active {
    display: flex;
  }
  .nav-indicator {
    display: none !important;
  }
  .nav-link {
    width: 100%;
    padding: 0.75rem 1.25rem;
    border-radius: 20px;
    font-size: 0.95rem;
    color: var(--primary-dark) !important;
    background: var(--bg) !important;
    box-shadow: var(--neu-raised-xs) !important;
    text-align: center;
  }
  .nav-link.active {
    box-shadow: var(--neu-inset-sm) !important;
    color: var(--accent) !important;
  }
  .nav-link::after { display: none; }

  /* Grids */
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; gap: 1.25rem; }
  .stats-band-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 1rem; }
  .hero-stats > div { flex: 1; min-width: 90px; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }

  /* Cards & Items */
  .card, .service-card, .value-card { padding: 1.5rem; }
  .job-card { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .testi-card { width: 280px; }
  .testi-grid { grid-template-columns: 1fr; }
  .specialty-item { padding: 1rem 1.25rem; }

  /* Hero */
  .hero-desc { max-width: 100%; }
  .hero-image-badge { bottom: 0.75rem; left: 0.75rem; }

  /* Footer */
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

  /* CTA */
  .btn-group { flex-direction: column; width: 100%; }
  .btn { justify-content: center; width: 100%; }
  .contact-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
}

/* ---------- LOADERS ---------- */
#page-loader {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, transform 0.5s ease;
  opacity: 1;
}
#page-loader.fade-out {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.05);
}

/* Index Loader Styles */
.index-loader-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.index-loader-circle {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: var(--neu-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.index-loader-logo {
  height: 48px; width: auto;
  animation: logo-pulse 2s infinite ease-in-out;
}
.index-loader-ring {
  position: absolute;
  top: -6px; left: -6px; right: -6px; bottom: -6px;
  border-radius: 50%;
  border: 4px solid transparent;
  border-top-color: var(--accent);
  border-bottom-color: var(--primary);
  animation: spin 1.5s infinite linear;
}

/* Generic Loader Styles */
.generic-loader-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 200px;
}
.generic-loader-bar-bg {
  width: 100%; height: 8px;
  background: var(--bg);
  box-shadow: var(--neu-inset-sm);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}
.generic-loader-bar-fill {
  height: 100%;
  width: 30%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 10px;
  position: absolute;
  left: -30%;
  animation: bar-flow 2s infinite cubic-bezier(0.25, 0.8, 0.25, 1);
}
.generic-loader-text {
  font-family: var(--heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: text-pulse 1.5s infinite alternate ease-in-out;
}

@keyframes logo-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); filter: drop-shadow(0 0 8px rgba(74, 111, 165, 0.3)); }
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes bar-flow {
  0% { left: -30%; width: 30%; }
  50% { width: 50%; }
  100% { left: 100%; width: 30%; }
}
@keyframes text-pulse {
  0% { opacity: 0.4; }
  100% { opacity: 1; }
}

/* Custom Asymmetric 3+2 Grid for Solution Modules */
.solution-modules-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}
.solution-modules-grid .card {
  grid-column: span 2;
}
.solution-modules-grid .card:nth-child(4) {
  grid-column: 2 / span 2;
}
.solution-modules-grid .card:nth-child(5) {
  grid-column: 4 / span 2;
}

@media (max-width: 1024px) {
  .solution-modules-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .solution-modules-grid .card {
    grid-column: span 1 !important;
  }
}
@media (max-width: 768px) {
  .solution-modules-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* Showcase Tabs Layout */
.showcase-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 3.5rem;
}
.showcase-tabs {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  width: 100%;
}
.showcase-tab {
  background: var(--bg);
  border: none;
  border-radius: var(--r-sm);
  padding: 1.15rem 1.5rem;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: var(--neu-raised-sm);
  transition: all 0.3s ease;
  text-align: left;
  font-family: inherit;
}
.showcase-tab:hover {
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--neu-raised);
}
.showcase-tab.active {
  box-shadow: var(--neu-inset-sm);
  color: var(--accent);
  transform: translateY(0);
}
.showcase-tab svg {
  transition: color 0.3s ease;
}
.showcase-tab.active svg {
  color: var(--accent);
}

.showcase-content-wrapper {
  background: var(--bg);
  box-shadow: var(--neu-raised);
  border-radius: var(--r-md);
  padding: 3rem;
  min-height: 480px;
}
.showcase-content {
  display: none;
  flex-direction: column;
  gap: 2rem;
  align-items: flex-start;
}
.showcase-content.active {
  display: flex;
  animation: fadeIn 0.5s ease forwards;
}

.showcase-text {
  width: 100%;
}
.showcase-text h3 {
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.3;
}
.showcase-text p {
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.showcase-image {
  width: 100%;
}
.showcase-image img {
  width: 100%;
  height: auto;
  border-radius: var(--r-sm);
  box-shadow: var(--neu-raised-sm);
  display: block;
}

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

@media (max-width: 992px) {
  .showcase-tab {
    flex: 1;
    min-width: 160px;
    justify-content: center;
  }
}
@media (max-width: 576px) {
  .showcase-content-wrapper {
    padding: 1.5rem;
  }
  .showcase-tab {
    min-width: 100%;
  }
}

/* =====================================================
   INTERACTIVE HERO SECTION STYLES
   ===================================================== */
.hero-glow-3 {
  position: absolute;
  top: 40%;
  left: 45%;
  width: 300px;
  height: 300px;
  background: rgba(232, 97, 26, 0.08);
  border-radius: 50%;
  filter: blur(80px);
  z-index: 1;
  pointer-events: none;
}
.hero-grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(74, 111, 165, 0.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(74, 111, 165, 0.02) 1px, transparent 1px);
  background-size: 35px 35px;
  z-index: 1;
  pointer-events: none;
}
.hero-eyebrow-dot {
  width: 7px;
  height: 7px;
  background-color: var(--accent);
  border-radius: 50%;
  display: inline-block;
  margin-right: 0.35rem;
  animation: pulse-dot 1.5s infinite;
}
@keyframes pulse-dot {
  0% { transform: scale(0.8); opacity: 0.5; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(0.8); opacity: 0.5; }
}
.hero-typed-wrapper {
  display: inline-block;
  min-height: 1.25em;
  vertical-align: bottom;
}
.hero-typed-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}
.hero-cursor {
  color: var(--accent);
  animation: blink 0.7s infinite;
  font-weight: 300;
  margin-left: 2px;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.75rem;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-white);
  padding: 0.3rem 0.65rem;
  border-radius: var(--r-sm);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-muted);
  box-shadow: var(--neu-raised-xs);
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: all var(--ease);
}
.hero-pill:hover {
  box-shadow: var(--neu-inset-sm);
  color: var(--primary-dark);
}
.hero-pill svg {
  color: var(--accent);
}
.hero-stats {
  margin-top: 2.75rem !important;
  display: flex;
  gap: 1.25rem;
}
.hero-stat-card {
  flex: 1;
  background: var(--bg);
  padding: 1.25rem 1rem !important;
  border-radius: var(--r-md);
  box-shadow: var(--neu-raised-sm);
  text-align: center;
  transition: all var(--ease);
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.hero-stat-card:hover {
  box-shadow: var(--neu-raised);
  transform: translateY(-4px);
}
.hero-visual-col {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}
.hero-image-wrapper {
  width: 100%;
  max-width: 480px;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
}
.hero-badge-secure {
  z-index: 10;
  animation: float-badge 5s infinite ease-in-out;
}
.hero-float-badge {
  position: absolute;
  background: rgba(238, 241, 245, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--r-md);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--neu-raised);
  border: 1px solid rgba(255, 255, 255, 0.5);
  z-index: 11;
  transition: all var(--ease);
}
.hero-float-badge:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: var(--neu-raised-lg);
}
.hero-float-badge-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--neu-raised-xs);
}
.hero-badge-payroll {
  top: 15%;
  left: -15%;
  animation: float-badge-left 6s infinite ease-in-out;
}
.hero-badge-clients {
  bottom: 12%;
  right: -10%;
  animation: float-badge-right 7s infinite ease-in-out;
}
@keyframes float-badge-left {
  0% { transform: translateY(0px) translateX(0px); }
  50% { transform: translateY(-8px) translateX(4px); }
  100% { transform: translateY(0px) translateX(0px); }
}
@keyframes float-badge-right {
  0% { transform: translateY(0px) translateX(0px); }
  50% { transform: translateY(-10px) translateX(-5px); }
  100% { transform: translateY(0px) translateX(0px); }
}
@media (max-width: 900px) {
  .hero-badge-payroll {
    left: -5%;
  }
  .hero-badge-clients {
    right: -2%;
  }
}
@media (max-width: 576px) {
  .hero-float-badge {
    padding: 0.5rem 0.75rem;
  }
  .hero-badge-payroll {
    top: 5%;
    left: 2%;
  }
  .hero-badge-clients {
    bottom: 5%;
    right: 2%;
  }
}

/* =====================================================
   ORANGE BACKGROUND SECTION (Why Companies Trust Brill)
   ===================================================== */
.section-orange {
  background: linear-gradient(135deg, #e8611a 0%, #f97316 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
  padding: 7rem 0;
}
.section-orange::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
}
.section-orange .section-eyebrow {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.section-orange h2 {
  color: #ffffff !important;
}
.section-orange p {
  color: rgba(255, 255, 255, 0.9) !important;
}
.glass-specialty-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--r-md);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
  transition: all var(--ease);
  display: flex;
  gap: 1.25rem;
}
.glass-specialty-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}
.glass-specialty-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.glass-specialty-card h4 {
  color: #ffffff !important;
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  margin-bottom: 0.5rem;
}
.glass-specialty-card p {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Glassmorphic Cards for Grid modules on Orange Background */
.glass-module-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--r-md);
  padding: 2rem 1.5rem;
  transition: all var(--ease);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.glass-module-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}
.glass-module-card .card-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.glass-module-card .card-title {
  color: #ffffff !important;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.glass-module-card .card-text {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.glass-module-card .card-link {
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.85rem;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  opacity: 0.9;
  transition: all var(--ease);
}
.glass-module-card .card-link:hover {
  opacity: 1;
  transform: translateX(3px);
}

/* Glassmorphic Asymmetric 3+2 Grid for index.html modules */
.glass-modules-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}
.glass-modules-grid .glass-module-card {
  grid-column: span 2;
}
.glass-modules-grid .glass-module-card:nth-child(4) {
  grid-column: 2 / span 2;
}
.glass-modules-grid .glass-module-card:nth-child(5) {
  grid-column: 4 / span 2;
}

@media (max-width: 1024px) {
  .glass-modules-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .glass-modules-grid .glass-module-card {
    grid-column: span 1 !important;
  }
}
@media (max-width: 768px) {
  .glass-modules-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* Book a Demo Modal Styles */
.demo-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.demo-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.demo-modal-content {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--r-lg);
  width: 90%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15), var(--neu-inset-xs);
  position: relative;
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.demo-modal-overlay.active .demo-modal-content {
  transform: scale(1);
}
.demo-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--neu-raised-xs);
}
.demo-close-btn:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: rotate(90deg);
}
.demo-success-content {
  text-align: center;
  padding: 1rem 0;
}
.demo-credential-box {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--r-md);
  padding: 1.5rem;
  margin: 1.5rem 0;
  text-align: left;
  box-shadow: var(--neu-inset-sm);
}
.demo-credential-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px dashed rgba(0,0,0,0.06);
}
.demo-credential-item:last-child {
  border-bottom: none;
}
.demo-credential-label {
  font-weight: 600;
  color: var(--primary-dark);
}
.demo-credential-value {
  color: var(--ink-dark);
  font-family: monospace;
}




