/* ==========================================================================
   USB GLOBAL - Unified Shared Premium Architecture Stylesheet
   ========================================================================== */

:root {
  --primary-color: #10b981;       /* Dynamic Emerald Green */
  --primary-hover: #059669;       /* Deeper Emerald Accent */
  --secondary-color: #0f172a;     /* Deep Corporate Navy Slate */
  --accent-emerald: #10b981;      /* Modern Functional Emerald */
  --accent-light: rgba(16, 185, 129, 0.1);
  --font-muted: #475569;          /* Neutral Charcoal Slate */
  --light-canvas: #f8fafc;        /* Soft Off-White Background */
  --pure-white: #ffffff;
  --border-color: #e2e8f0;
  --default-font: 'Inter', sans-serif;
  scroll-behavior: smooth;
}

/* --- Global Resets & Defaults --- */
body {
  font-family: var(--default-font);
  color: var(--font-muted);
  background-color: var(--pure-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary-hover);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--secondary-color);
  font-weight: 700;
}

section {
  padding: 90px 0;
  overflow: hidden;
}

.bg-light-canvas {
  background-color: var(--light-canvas);
}

/* --- Typography & Utility Badges --- */
.text-gradient-green {
  background: linear-gradient(135deg, #059669, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge-modern {
  padding: 8px 18px;
  font-weight: 600;
  border-radius: 100px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
}

/* --- Core Buttons Framework --- */
.btn-primary {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: var(--pure-white) !important;
  transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--primary-hover) !important;
  border-color: var(--primary-hover) !important;
  color: var(--pure-white) !important;
}

.btn-outline-primary {
  color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary.active {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: var(--pure-white) !important;
}

.btn-custom-primary {
  background-color: var(--primary-color);
  color: var(--pure-white) !important;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
  display: inline-block;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-custom-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.btn-custom-secondary {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  padding: 12px 30px;
  border-radius: 12px;
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-custom-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--pure-white) !important;
  transform: translateY(-2px);
}

/* --- Header & Navigation Bar --- */
.header {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(15, 23, 42, 0.03);
  border-bottom: 1px solid rgba(241, 245, 249, 0.8);
  transition: all 0.4s ease;
  z-index: 1000;
}

.navmenu .nav-link {
  color: var(--font-muted);
  font-size: 15px;
  font-weight: 500;
  padding: 10px 18px;
  display: inline-block;
  position: relative;
  transition: color 0.3s ease, font-weight 0.2s ease;
}

.navmenu .nav-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-color);
  border-radius: 10px;
  transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.navmenu .nav-link:hover:after {
  width: 50%;
}

.navmenu .nav-link:hover {
  color: var(--primary-hover) !important;
}

.navmenu .nav-link.active {
  color: var(--primary-color) !important;
  font-weight: 700;
}

.navmenu .nav-link.active:after {
  width: 65%;
  background-color: var(--primary-color);
}

.navmenu ul {
  display: flex;
}

/* --- Interactive Simulator & Pathways Styling --- */
.simulator-container {
  background: var(--pure-white);
  border-radius: 24px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.pill-tab {
  cursor: pointer;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  white-space: nowrap;
}

.pill-tab.active {
  background: var(--accent-light);
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.2);
}

.pill-tab:hover:not(.active) {
  background: #f1f5f9;
  color: var(--secondary-color);
}

.indicator-card {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.3s ease;
}

.indicator-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-light);
  color: var(--accent-emerald);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
}

.comparison-table th {
  background-color: var(--secondary-color);
  color: var(--pure-white);
}

.comparison-table tr {
  transition: background-color 0.2s ease;
}

.comparison-table tr:hover {
  background-color: #f8fafc;
}

.dynamic-fade {
  animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Hero Layout Modifiers & Scoped Extraction --- */
@media (min-width: 992px) {
  #hero {
    height: 85vh;
    min-height: 600px;
  }
}

.track-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.track-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

.custom-glass-card:hover,
.custom-matrix-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.4) !important;
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.25);
}

/* --- Adaptive Grid Component Cards --- */
.interactive-card {
  border: none;
  border-radius: 24px;
  background: var(--pure-white);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
  padding: 30px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.interactive-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.07);
}

.custom-service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 1rem 3rem rgba(15, 23, 42, 0.12) !important;
}

.custom-team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0.75rem 2rem rgba(15, 23, 42, 0.08) !important;
}

.team-card {
  border: none;
  border-radius: 24px;
  background: var(--pure-white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  overflow: hidden;
  transition: all 0.4s ease;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.icon-box-wrapper {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background-color: #f0fdf4;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.bg-accent-emerald {
  background: linear-gradient(135deg, #0f766e 0%, #10b981 100%);
  color: var(--pure-white) !important;
}

.bg-accent-emerald h1,
.bg-accent-emerald h2,
.bg-accent-emerald p {
  color: var(--pure-white) !important;
}

/* --- Carousel Element Fine-Tuning --- */
#galleryCarousel .carousel-item:hover div {
  transform: scale(1.03);
}

#galleryCarousel .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #10b981;
}

/* --- B2B Infrastructure Client Logo Slider Loop --- */
.logo-slider-container {
  overflow: hidden;
  padding: 20px 0;
  position: relative;
  width: 100%;
}

.logo-slider-track {
  display: flex;
  width: calc(250px * 12);
  animation: continuous-scroll-animation 30s linear infinite;
}

.logo-slider-item {
  width: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
}

.logo-slider-item img {
  max-width: 100%;
  height: auto;
  max-height: 48px;
  filter: grayscale(100%);
  opacity: 0.4;
  transition: all 0.3s ease;
}

.logo-slider-item:hover img {
  filter: grayscale(0%);
  opacity: 0.9;
}

@keyframes continuous-scroll-animation {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-250px * 6)); }
}

/* --- System Load Preloader --- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: var(--pure-white);
  display: flex;
  align-items: center;
  justify-content: center;
}

#preloader:before {
  content: "";
  width: 44px;
  height: 44px;
  border: 4px solid var(--light-canvas);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: anim-preloader 0.8s linear infinite;
}

@keyframes anim-preloader {
  100% { transform: rotate(360deg); }
}

/* --- Responsive Layout Breakers --- */
@media (max-width: 1199px) {
  .navmenu ul {
    display: none;
    position: absolute;
    inset: 75px 20px auto 20px;
    padding: 24px;
    border-radius: 20px;
    background-color: var(--pure-white);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    flex-direction: column;
    align-items: flex-start !important;
  }
  .mobile-nav-active .navmenu ul {
    display: flex !important;
    z-index: 1001;
  }
}