/* ==========================================================================
   Studiova/Cybronical - Dark & Light Mode Theme Overrides
   ========================================================================== */

/* Smooth Transitions */
html, body, section, header, footer, .card, .btn, .accordion-button, .dropdown-menu {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

/* Theme Toggle Button Styles */
.theme-toggle {
  width: 45px;
  height: 45px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.theme-toggle:hover {
  transform: scale(1.08);
}
.theme-toggle:active {
  transform: scale(0.92);
}

/* ==========================================================================
   Dark Mode Overrides
   ========================================================================== */
[data-bs-theme="dark"] {
  /* Brand-aware premium dark color scheme */
  --bs-body-bg: #0F171A; /* Deep premium brand-based slate dark */
  --bs-body-bg-rgb: 15, 23, 26;
  --bs-body-color: #CDD9DE; /* High contrast soft text color */
  --bs-body-color-rgb: 205, 217, 222;
  --bs-heading-color: #FFFFFF;
  --bs-heading-color-rgb: 255, 255, 255;
  
  --bs-light-gray: #151F22;
  --bs-light-gray-rgb: 21, 31, 34;
  --bs-border-color: rgba(255, 255, 255, 0.08);
  
  --bs-tertiary-bg: #151F22;
  --bs-secondary-bg: #1B2629;
  --bs-emphasis-color: #FFFFFF;
  --bs-primary-text-emphasis: #01BFCB;
  --bs-secondary-text-emphasis: #CDD9DE;
  
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
}

/* 1. Global / Generic Dark Mode Adjustments */
[data-bs-theme="dark"] body {
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
}

/* 2. Overriding Hardcoded Layout Classes for Rich Section Contrast */
[data-bs-theme="dark"] .bg-white {
  background-color: #121A1D !important; /* Elegant graphite grey contrast section */
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .bg-light-gray {
  background-color: #152024 !important; /* Refined slate-grey contrast section */
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

[data-bs-theme="dark"] .bg-dark {
  background-color: #080D0F !important; /* Deep obsidian contrast */
}

/* Hide theme toggle switch since dark mode is permanent */
.toggle,
#theme-toggle-input,
label[for="theme-toggle-input"] {
  display: none !important;
}

[data-bs-theme="dark"] .text-dark {
  color: #FFFFFF !important;
}

[data-bs-theme="dark"] .text-muted, 
[data-bs-theme="dark"] .text-dark-light {
  color: #8C9CA1 !important;
}

[data-bs-theme="dark"] hr,
[data-bs-theme="dark"] .border-line {
  border-color: rgba(255, 255, 255, 0.08) !important;
  background-color: rgba(255, 255, 255, 0.08) !important;
}

[data-bs-theme="dark"] .border-bottom, 
[data-bs-theme="dark"] .border-top {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* 3. Header & Navigation (Identical in both dark and light modes) */
/* 3. Header & Navigation with Refined Glassmorphism */
.header,
header.header {
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  border-top: 3px solid var(--bs-primary) !important;
  background: rgba(7, 12, 15, 0.72) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
}

/* Dark Mode Header */
[data-bs-theme="dark"] .header {
  background: rgba(7, 12, 15, 0.72) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.header.fixed-header,
.header.header-scrolled,
[data-bs-theme="dark"] .header.fixed-header,
[data-bs-theme="dark"] .header.header-scrolled {
  background: rgba(7, 12, 15, 0.88) !important;
  backdrop-filter: blur(20px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(200%) !important;
  border-bottom: 1px solid rgba(1, 191, 203, 0.25) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(1, 191, 203, 0.12) !important;
}
[data-bs-theme="dark"] .header .logo .logo-white {
  display: block !important;
}
[data-bs-theme="dark"] .header .logo .logo-dark {
  display: none !important;
}
[data-bs-theme="dark"] .navbar-toggle-btn span {
  background-color: #ffffff !important;
}

/* Light Mode Header */
[data-bs-theme="light"] .header,
:root:not([data-bs-theme="dark"]) .header {
  background: rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}
[data-bs-theme="light"] .header.fixed-header,
:root:not([data-bs-theme="dark"]) .header.fixed-header {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06) !important;
}
[data-bs-theme="light"] .header .logo .logo-white,
:root:not([data-bs-theme="dark"]) .header .logo .logo-white {
  display: none !important;
}
[data-bs-theme="light"] .header .logo .logo-dark,
:root:not([data-bs-theme="dark"]) .header .logo .logo-dark {
  display: block !important;
}
[data-bs-theme="light"] .navbar-toggle-btn span,
:root:not([data-bs-theme="dark"]) .navbar-toggle-btn span {
  background-color: #1f2a2e !important;
}

.header .logo img {
  height: 40px !important;
  max-height: 42px !important;
  width: auto !important;
  object-fit: contain;
}

/* Clean Desktop Navigation Links */
.nav-link-subtle {
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
  padding: 0.5rem 0.25rem;
  position: relative;
}
[data-bs-theme="dark"] .nav-link-subtle {
  color: rgba(255, 255, 255, 0.75);
}
[data-bs-theme="dark"] .nav-link-subtle:hover,
[data-bs-theme="dark"] .nav-link-subtle.active {
  color: #01BFCB !important;
}
[data-bs-theme="light"] .nav-link-subtle,
:root:not([data-bs-theme="dark"]) .nav-link-subtle {
  color: rgba(15, 23, 26, 0.82);
}
[data-bs-theme="light"] .nav-link-subtle:hover,
:root:not([data-bs-theme="dark"]) .nav-link-subtle:hover,
:root:not([data-bs-theme="dark"]) .nav-link-subtle.active {
  color: #01BFCB !important;
}

/* Active page spinning leaf SVG (turned white in dark dropdown) */
[data-bs-theme="dark"] .header-link img {
  filter: brightness(0) invert(1);
}

/* 4. Dropdowns & Navigation Menu */
[data-bs-theme="dark"] .dropdown-menu {
  background-color: #151F22 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}

[data-bs-theme="dark"] .dropdown-menu .header-link {
  color: #FFFFFF !important;
}

[data-bs-theme="dark"] .dropdown-menu .header-link:hover,
[data-bs-theme="dark"] .dropdown-menu .header-link.active {
  color: var(--bs-primary) !important;
}

[data-bs-theme="dark"] .btn-close {
  filter: invert(1);
}

/* 5. Buttons */
[data-bs-theme="dark"] .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.12) !important;
}
[data-bs-theme="dark"] .btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.05) !important;
  color: #FFFFFF !important;
}

[data-bs-theme="dark"] .btn-dark {
  background-color: #FFFFFF !important;
  color: #0F171A !important;
}
[data-bs-theme="dark"] .btn-dark:hover {
  background-color: var(--bs-primary) !important;
  color: #0F171A !important;
}

/* 6. Form elements */
[data-bs-theme="dark"] .form-control {
  color: #FFFFFF !important;
  border-bottom-color: rgba(255, 255, 255, 0.15) !important;
  background-color: transparent !important;
}
[data-bs-theme="dark"] .form-control:focus {
  border-bottom-color: var(--bs-primary) !important;
  box-shadow: none !important;
}
[data-bs-theme="dark"] .form-control::placeholder {
  color: rgba(255, 255, 255, 0.35) !important;
}

/* 7. Components & Cards overrides */
[data-bs-theme="dark"] .card {
  background-color: #151F22 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25) !important;
}

[data-bs-theme="dark"] .stats-facts {
  background-color: #0F171A !important;
}

[data-bs-theme="dark"] .why-choose-us-box {
  background-color: #151F22 !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

[data-bs-theme="dark"] .accordion-item {
  background-color: transparent !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-bs-theme="dark"] .accordion-button {
  background-color: #151F22 !important;
  color: #FFFFFF !important;
}

[data-bs-theme="dark"] .accordion-button::after {
  background-color: #1B2629 !important;
  filter: invert(1);
}

[data-bs-theme="dark"] .accordion-button:not(.collapsed)::after {
  background-color: var(--bs-primary) !important;
  filter: none;
}

[data-bs-theme="dark"] .badge.text-bg-dark,
[data-bs-theme="dark"] .badge.bg-white {
  background-color: #FFFFFF !important;
  color: #1F2A2E !important;
  border-color: #FFFFFF !important;
}

[data-bs-theme="dark"] footer {
  background-color: #080D0E !important;
}

/* Service Tab preview details inside dark mode */
[data-bs-theme="dark"] .services-tab {
  border-color: rgba(255, 255, 255, 0.08) !important;
}
[data-bs-theme="dark"] .services-tab-item {
  border-color: rgba(255, 255, 255, 0.08) !important;
}
[data-bs-theme="dark"] .services-tab-item .text-dark {
  color: #FFFFFF !important;
}

/* Keep Services ("What we do") section exactly the same in both modes */
[data-bs-theme="dark"] #services.services {
  background-color: #1F2A2E !important;
  color: rgba(255, 255, 255, 0.7) !important;
}

[data-bs-theme="dark"] #services.services h2,
[data-bs-theme="dark"] #services.services h4,
[data-bs-theme="dark"] #services.services .services-tab-title {
  color: #FFFFFF !important;
}

[data-bs-theme="dark"] #services.services .text-dark {
  color: #1F2A2E !important; /* Keep original dark text for numbers/badges */
}

[data-bs-theme="dark"] #services.services .bg-white {
  background-color: #FFFFFF !important; /* Keep original white background for numbers/badges */
}

[data-bs-theme="dark"] #services.services hr,
[data-bs-theme="dark"] #services.services .border-line {
  background-color: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

[data-bs-theme="dark"] #services.services .badge.bg-white {
  background-color: #FFFFFF !important;
  color: #1F2A2E !important;
}

/* Scrollbar adjustment */
@supports (scrollbar-color: auto) {
  html[data-bs-theme="dark"] {
    scrollbar-color: #1B2629 #0F171A;
  }
}
html[data-bs-theme="dark"]::-webkit-scrollbar {
  width: 10px;
}
html[data-bs-theme="dark"]::-webkit-scrollbar-track {
  background: #0F171A;
}
html[data-bs-theme="dark"]::-webkit-scrollbar-thumb {
  background: #1B2629;
  border-radius: 5px;
}
html[data-bs-theme="dark"]::-webkit-scrollbar-thumb:hover {
  background: var(--bs-primary);
}

/* Maintain testimonial card styling distinctions in dark mode */
[data-bs-theme="dark"] .testimonial .card.bg-primary {
  background-color: var(--bs-primary) !important;
  color: #1F2A2E !important;
}
[data-bs-theme="dark"] .testimonial .card.bg-primary h4,
[data-bs-theme="dark"] .testimonial .card.bg-primary h5,
[data-bs-theme="dark"] .testimonial .card.bg-primary p {
  color: #1F2A2E !important;
}

[data-bs-theme="dark"] .testimonial .card.bg-dark {
  background-color: #080D0E !important;
  color: #CDD9DE !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
}
[data-bs-theme="dark"] .testimonial .card.bg-dark h4,
[data-bs-theme="dark"] .testimonial .card.bg-dark h5,
[data-bs-theme="dark"] .testimonial .card.bg-dark p {
  color: #FFFFFF !important;
}

/* Force specific white backgrounds with dark icons to look identical in dark mode */
[data-bs-theme="dark"] .btn-icon.bg-white.text-dark {
  background-color: #FFFFFF !important;
  color: #1F2A2E !important;
}

/* Strategic Thinking card readability override in dark mode */
[data-bs-theme="dark"] .card.bg-primary .text-body-secondary {
  color: #FFFFFF !important;
}

/* Custom Checkbox Toggle Switch Styles */
.toggle {
  line-height: 1;
  position: relative;
  cursor: pointer;
}
.toggle:not([hidden]) {
  display: flex;
  align-items: center;
}
.toggle__element {
  opacity: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 1.4rem;
  width: 1em;
  height: 1em;
  cursor: pointer;
  z-index: 2;
}
.toggle__decor {
  --color-toggle-decor-bg: var(--bs-primary);
  display: block;
  position: relative;
  overflow: hidden;
  width: calc((1.4rem * 2) + (0.25rem * 2));
  height: calc(1.4rem + (0.25rem * 2));
  background: var(--color-toggle-decor-bg);
  border-radius: 1.4rem;
  transition: background 500ms;
  box-sizing: content-box;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.toggle__thumb {
  display: grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 1.4rem;
  background: linear-gradient(229.84deg, rgba(255, 255, 255, 0) 14.29%, rgba(48, 48, 48, 0.15) 81.82%), #ffffff;
  box-shadow: 0 0 0.25rem rgba(0, 0, 0, 0.25);
  position: absolute;
  top: 0.25rem;
  left: 0.25rem;
  transform: none;
  transition: transform 200ms cubic-bezier(1, 0, 0.55, 0.85);
  will-change: transform;
  z-index: 1;
}
.toggle__icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9em;
  width: 1em;
  height: 1em;
  pointer-events: none;
}
.toggle__icon[data-state='checked'] {
  left: 0.4rem;
  fill: #b9c6d3; /* night icon color */
  opacity: 0;
  transform: translateY(-1rem);
}
.toggle__icon[data-state='un-checked'] {
  right: 0.4rem;
  fill: #ffe4a1; /* day icon color */
  transition: opacity 500ms ease, transform 200ms cubic-bezier(1, 0, 0.55, 0.85);
}
.toggle__decor:hover .toggle__thumb {
  margin-left: 1px;
}
.toggle__element:checked + .toggle__decor:hover .toggle__thumb {
  margin-left: -1px;
}
.toggle__element:checked + .toggle__decor {
  --color-toggle-decor-bg: #032b43; /* night bg */
}
.toggle__element:checked + .toggle__decor .toggle__thumb {
  transform: translateX(1.4rem) rotate(270deg);
  box-shadow: 0 0 0.25rem rgba(0, 0, 0, 0.9);
}
.toggle__element:checked + .toggle__decor .toggle__icon[data-state='checked'] {
  opacity: 1;
  transform: translateY(-50%);
  transition: opacity 500ms ease, transform 200ms cubic-bezier(1, 0, 0.55, 0.85);
}
.toggle__element:checked + .toggle__decor .toggle__icon[data-state='un-checked'] {
  opacity: 0;
  transform: translateY(1rem);
  transition: none;
}

/* Animated Hamburger to Cross menu button */
.navbar-toggle-btn {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  width: 32px;
  height: 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1050;
  box-shadow: none !important;
  outline: none !important;
  margin-right: 15px;
  transform: translateX(-5px);
}

.navbar-toggle-btn span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #ffffff !important; /* white horizontal lines */
  border-radius: 3px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

/* Open State (Cross icon) when aria-expanded="true" */
.navbar-toggle-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}

.navbar-toggle-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0 !important;
}

.navbar-toggle-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}


/* ==========================================================================
   Technology Partners Carousel & Glassmorphism Enhancements
   ========================================================================== */

/* Infinite Marquee Animation for Technology Partners */
.tech-marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 1.5rem 0;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.tech-marquee-track {
  display: flex;
  width: max-content;
  gap: 2rem;
  animation: techMarquee 35s linear infinite;
}

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

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

.tech-partner-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.75rem;
  border-radius: 1rem;
  min-width: 220px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
}

/* Dark Mode Tech Card */
[data-bs-theme="dark"] .tech-partner-card {
  background: rgba(21, 31, 34, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
[data-bs-theme="dark"] .tech-partner-card:hover {
  border-color: rgba(1, 191, 203, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(1, 191, 203, 0.15);
}

/* Light Mode Tech Card */
[data-bs-theme="light"] .tech-partner-card,
:root:not([data-bs-theme="dark"]) .tech-partner-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}
[data-bs-theme="light"] .tech-partner-card:hover,
:root:not([data-bs-theme="dark"]) .tech-partner-card:hover {
  border-color: rgba(1, 191, 203, 0.6);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(1, 191, 203, 0.12);
}

.tech-partner-icon {
  font-size: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-partner-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.tech-partner-role {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

/* Services Accenture Grid Styles */
.service-pillar-card {
  padding: 2.25rem;
  border-radius: 1.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

[data-bs-theme="dark"] .service-pillar-card {
  background: rgba(21, 31, 34, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

[data-bs-theme="dark"] .service-pillar-card:hover {
  border-color: rgba(1, 191, 203, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(1, 191, 203, 0.12);
}

[data-bs-theme="light"] .service-pillar-card,
:root:not([data-bs-theme="dark"]) .service-pillar-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

[data-bs-theme="light"] .service-pillar-card:hover,
:root:not([data-bs-theme="dark"]) .service-pillar-card:hover {
  border-color: rgba(1, 191, 203, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(1, 191, 203, 0.1);
}

/* Subtle Glassmorphism Utility */
.glass-subtle {
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

[data-bs-theme="dark"] .glass-subtle {
  background: rgba(21, 31, 34, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-bs-theme="light"] .glass-subtle,
:root:not([data-bs-theme="dark"]) .glass-subtle {
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}


/* ==========================================================================
   CYBRONICAL MODERN MOTION & ENTERPRISE SHOWCASE STYLES
   ========================================================================== */

/* 1. Scroll Progress Bar */
.site-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3.5px;
  background: linear-gradient(90deg, #01BFCB 0%, #00FFCC 70%, #FFFFFF 100%);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 99999;
  box-shadow: 0 0 12px rgba(1, 191, 203, 0.8), 0 0 24px rgba(0, 255, 204, 0.4);
  pointer-events: none;
}

/* 2. Services Showcase Sticky Bezel & HUD */
.services-tab-media-col {
  position: relative;
  display: block;
}

@media (min-width: 992px) {
  .services-tab-media-col {
    position: sticky;
    top: 110px;
    align-self: flex-start;
  }
}

.services-tab-preview {
  position: relative;
  width: 100%;
  height: 480px;
  min-height: 420px;
  border-radius: 20px;
  overflow: hidden;
  background: #090e11;
  border: 1px solid rgba(1, 191, 203, 0.3);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 35px rgba(1, 191, 203, 0.12);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.services-tab-preview:hover {
  border-color: rgba(1, 191, 203, 0.55);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.85), 0 0 45px rgba(1, 191, 203, 0.2);
}

.services-tab-preview__stack {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.services-tab-preview__stack img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  filter: brightness(0.78) contrast(1.1);
}

.services-tab-preview__stack img.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

/* Services Ambient Gradient Overlay */
.services-preview-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 14, 17, 0.45) 0%, rgba(9, 14, 17, 0.25) 40%, rgba(9, 14, 17, 0.92) 100%);
  z-index: 2;
  pointer-events: none;
}

/* Services HUD Overlays */
.services-hud-header {
  position: absolute;
  top: 18px;
  left: 20px;
  right: 20px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.services-hud-footer {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 3;
}

.services-tab-item {
  cursor: pointer;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  transition: all 0.25s ease;
}

.services-tab-item:hover,
.services-tab-item.is-active {
  background: rgba(255, 255, 255, 0.04);
}

[data-bs-theme="light"] .services-tab-item:hover,
[data-bs-theme="light"] .services-tab-item.is-active {
  background: rgba(0, 0, 0, 0.03);
}

/* 3. Industry Transformation Matrix (Accenture-style 360° Value) */
.industry-tab-btn {
  background: rgba(255, 255, 255, 0.06);
  color: #adb5bd;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.65rem 1.4rem;
  border-radius: 50px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.industry-tab-btn:hover {
  background: rgba(1, 191, 203, 0.15);
  color: #01BFCB;
  border-color: rgba(1, 191, 203, 0.35);
  transform: translateY(-2px);
}

.industry-tab-btn.active {
  background: #01BFCB !important;
  color: #0b1114 !important;
  border-color: #01BFCB !important;
  box-shadow: 0 4px 18px rgba(1, 191, 203, 0.35);
  font-weight: 700;
}

[data-bs-theme="light"] .industry-tab-btn {
  background: rgba(0, 0, 0, 0.05);
  color: #495057;
  border-color: rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .industry-tab-btn:hover {
  background: rgba(1, 191, 203, 0.15);
  color: #00878f;
  border-color: rgba(1, 191, 203, 0.4);
}

.industry-showcase-card {
  border-radius: 24px;
  background: rgba(15, 23, 26, 0.85);
  border: 1px solid rgba(1, 191, 203, 0.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
}

[data-bs-theme="light"] .industry-showcase-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.05);
}

.industry-metric-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.industry-metric-card:hover {
  border-color: rgba(1, 191, 203, 0.4);
  transform: translateY(-3px);
}

[data-bs-theme="light"] .industry-metric-card {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.07);
}

/* 4. 3D Perspective Card Tilt */
.interactive-tilt-card {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.12s ease-out, box-shadow 0.25s ease !important;
  will-change: transform;
}

.interactive-tilt-card:hover {
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.45), 0 0 25px -4px rgba(1, 191, 203, 0.25) !important;
}

.interactive-tilt-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(350px circle at var(--spotlight-x, 50%) var(--spotlight-y, 50%), rgba(255, 255, 255, 0.09), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.interactive-tilt-card:hover::after {
  opacity: 1;
}

/* 5. Redesigned Enterprise Footer */
.footer-enterprise {
  background: #080d0f !important;
  border-top: 1px solid rgba(1, 191, 203, 0.2);
  position: relative;
  overflow: hidden;
}

.footer-enterprise::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 250px;
  background: radial-gradient(ellipse at center, rgba(1, 191, 203, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.footer-pre-banner {
  background: linear-gradient(135deg, rgba(1, 191, 203, 0.12) 0%, rgba(15, 23, 26, 0.9) 100%);
  border: 1px solid rgba(1, 191, 203, 0.25);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 20px;
}

.footer-col-title {
  font-size: 11px !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-link-subtle {
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 12px !important;
  line-height: 1.6;
  transition: all 0.2s ease;
  display: inline-block;
  text-decoration: none;
}

.footer-link-subtle:hover {
  color: #01BFCB !important;
  transform: translateX(3px);
}

/* Global Footer Typography Normalization (11px-12px standard) */
footer,
.footer,
.footer-enterprise,
.ots-footer {
  font-size: 12px !important;
}

footer p, 
footer li,
footer span:not(.badge), 
footer a,
.footer-enterprise p, 
.footer-enterprise li,
.footer-enterprise span:not(.badge), 
.footer-enterprise a,
.ots-footer p, 
.ots-footer li,
.ots-footer span:not(.badge), 
.ots-footer a {
  font-size: 12px;
}

footer .fs-6,
footer .fs-7, 
footer .fs-8, 
footer .fs-9,
.footer-enterprise .fs-6,
.footer-enterprise .fs-7, 
.footer-enterprise .fs-8, 
.footer-enterprise .fs-9,
.ots-footer .fs-6,
.ots-footer .fs-7, 
.ots-footer .fs-8, 
.ots-footer .fs-9 {
  font-size: 12px !important;
  line-height: 1.55 !important;
}

footer .badge,
.footer-enterprise .badge,
.ots-footer .badge {
  font-size: 10.5px !important;
  padding: 0.2rem 0.5rem !important;
}

footer .footer-copy,
.footer-enterprise .footer-copy,
.ots-footer .ots-footer-copy {
  font-size: 11px !important;
  color: rgba(255, 255, 255, 0.45) !important;
}

.footer-input-glass {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-radius: 50px;
  padding: 0.75rem 1.25rem;
  font-size: 0.9375rem;
  transition: all 0.25s ease;
}

.footer-input-glass:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: #01BFCB;
  box-shadow: 0 0 15px rgba(1, 191, 203, 0.25);
  color: #ffffff;
  outline: none;
}

.footer-social-pill {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all 0.25s ease;
}

.footer-social-pill:hover {
  background: #01BFCB;
  color: #0b1114 !important;
  border-color: #01BFCB;
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(1, 191, 203, 0.4);
}

/* Footer Logos */
.footer-logo-white {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.footer-logo-dark {
  height: 38px;
  width: auto;
  object-fit: contain;
}
