/* ============================================
   DI-FACTORY DESIGN SYSTEM
   Fixed Styles — Global CSS
   ============================================ */

/* Import fonts */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap");

/* ============================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================ */
:root {
  /* --- Color Palette --- */
  /* Dark Blues */
  --color-darkest: #1a1a2e;
  --color-dark-blue: #16213e;
  --color-deep-blue: #0f3460;
  --color-mid-blue: #2a4b8c;
  --color-mid-blue-rgb: 42, 75, 140;

  /* Purple Accent */
  --color-accent: #7c3aed;
  --color-accent-rgb: 124, 58, 237;
  --color-accent-dark: #6d28d9;
  --color-accent-darker: #5b21b6;
  --color-accent-light: #a78bfa;
  --color-accent-subtle: rgba(124, 58, 237, 0.08);

  /* Legacy compat (some templates reference these) */
  --color-primary: #2a4b8c;
  --color-primary-rgb: 42, 75, 140;
  --color-primary-dark: #1a365d;

  /* Neutrals */
  --color-white: #ffffff;
  --color-light: #f8f9fa;
  --color-light-alt: #f0f2f5;
  --color-border: #e2e8f0;
  --color-border-light: #edf2f7;
  --color-text-dark: #1a1a2e;
  --color-text-medium: #475569;
  --color-text-muted: #64748b;
  --color-muted: #94a3b8;

  /* Semantic */
  --color-success: #10b981;
  --color-danger: #ef4444;
  --color-warning: #f59e0b;
  --color-info: #3b82f6;

  /* --- Gradients --- */
  --gradient-hero: linear-gradient(135deg, #1a1a2e 0%, #16213e 30%, #0f3460 65%, #1a1a2e 100%);
  --gradient-primary: linear-gradient(135deg, #1a1a2e 0%, #0f3460 50%, #2a4b8c 100%);
  --gradient-accent: linear-gradient(135deg, #7c3aed 0%, #6d28d9 50%, #5b21b6 100%);
  --gradient-accent-soft: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
  --gradient-section-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  --gradient-section-light: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
  --gradient-card-hover: linear-gradient(135deg, rgba(124,58,237,0.03) 0%, rgba(15,52,96,0.03) 100%);
  --gradient-cta: linear-gradient(135deg, #0f3460 0%, #2a4b8c 50%, #7c3aed 100%);
  --gradient-banner: linear-gradient(90deg, #1a1a2e, #7c3aed);

  /* --- Typography --- */
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Type Scale (Major Third — 1.25) */
  --text-xs: 0.75rem;     /* 12px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg: 1.125rem;    /* 18px */
  --text-xl: 1.25rem;     /* 20px */
  --text-2xl: 1.5rem;     /* 24px */
  --text-3xl: 1.875rem;   /* 30px */
  --text-4xl: 2.25rem;    /* 36px */
  --text-5xl: 3rem;       /* 48px */

  /* --- Spacing --- */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  --section-spacing: 5rem;

  /* --- Border Radius --- */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-card: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  /* Legacy compat */
  --border-radius-sm: 6px;
  --border-radius-md: 10px;
  --border-radius-base: 10px;
  --border-radius-card: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  --border-radius-full: 9999px;

  /* --- Shadows --- */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.10);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.12);
  --shadow-accent: 0 4px 20px rgba(124, 58, 237, 0.25);
  --shadow-accent-lg: 0 8px 32px rgba(124, 58, 237, 0.35);
  /* Legacy compat */
  --shadow-base: var(--shadow-sm);

  /* --- Transitions --- */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* --- Layout --- */
  --navbar-height: 72px;

  /* --- Bootstrap Overrides --- */
  --bs-primary: #7c3aed;
  --bs-primary-rgb: 124, 58, 237;
  --bs-link-color: #7c3aed;
  --bs-link-hover-color: #6d28d9;
  --bs-info: #2a4b8c;
  --bs-info-rgb: 42, 75, 140;
}

/* ============================================
   2. BASE / RESET STYLES
   ============================================ */
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-height);
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text-dark);
  background-color: var(--color-white);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  padding-top: var(--navbar-height);
  font-weight: 400;
}

/* ============================================
   3. TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--color-text-dark);
  letter-spacing: -0.025em;
}

/* The element rule above sets a dark colour on every heading, which outranks the
   white colour merely inherited from a .text-white parent. Without this, any
   heading inside a dark section renders dark-on-dark. */
.text-white h1, .text-white h2, .text-white h3,
.text-white h4, .text-white h5, .text-white h6 { color: inherit; }

h1 { font-size: var(--text-5xl); font-weight: 800; }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  margin-bottom: 1rem;
  color: var(--color-text-medium);
  line-height: 1.7;
}

.lead {
  font-size: var(--text-xl);
  line-height: 1.7;
  color: var(--color-text-medium);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-accent-dark);
}

img {
  max-width: 100%;
  height: auto;
}

/* Text Utilities */
.text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-white-75 { color: rgba(255, 255, 255, 0.75) !important; }
.text-white-90 { color: rgba(255, 255, 255, 0.9) !important; }

/* ============================================
   4. LIST STYLES
   ============================================ */
ul.list-unstyled,
ol.list-unstyled {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

ul:not(.list-unstyled):not(.navbar-nav):not(.nav):not(.list-style-circle):not(.footer-links),
ol:not(.list-unstyled):not(.navbar-nav):not(.nav) {
  padding-left: 1.5rem;
}

.list-style-circle {
  list-style: none;
  padding-left: 0;
}

.list-style-circle li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.list-style-circle li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
  background-color: transparent;
}

/* ============================================
   5. NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--color-darkest) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  height: var(--navbar-height);
  z-index: 1030;
  transition: background-color var(--transition-base), box-shadow var(--transition-base);
}

.navbar.navbar-scrolled {
  background: rgba(26, 26, 46, 0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.navbar .navbar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.navbar .navbar-brand:hover {
  color: rgba(255, 255, 255, 0.9);
}

.navbar .nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-sm);
  padding: 0.5rem 1rem;
  color: rgba(255, 255, 255, 0.8) !important;
  transition: all var(--transition-base);
  position: relative;
  letter-spacing: 0.01em;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: #ffffff !important;
}

.navbar .nav-link.active {
  color: #ffffff !important;
  font-weight: 600;
}

.navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--gradient-accent-soft);
  transform: scaleX(0);
  transition: transform var(--transition-base);
  border-radius: 1px;
}

.navbar .nav-link:hover::after,
.navbar .nav-link:focus::after,
.navbar .nav-link.active::after {
  transform: scaleX(1);
}

/* ============================================
   6. HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero) !important;
  overflow: hidden;
  margin-top: calc(-1 * var(--navbar-height));
  padding-top: var(--navbar-height);
}

.hero .hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 0;
}

.hero-title {
  color: #ffffff;
  margin-bottom: 1.5rem;
  font-weight: 800;
  font-size: var(--text-5xl);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  letter-spacing: -0.03em;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  font-weight: 400;
  font-size: var(--text-xl);
  line-height: 1.7;
  max-width: 600px;
}

/* Service hero is centred, so the 600px-capped subtitle needs auto margins —
   without them it pins to the left edge while the title and CTAs stay centred. */
.service-hero .hero-subtitle {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero-tagline {
  display: block;
  font-size: 0.75em;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
  margin-top: 0.25rem;
}

/* ============================================
   7. BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  padding: 0.7rem 1.75rem;
  font-size: var(--text-sm);
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  transition: all var(--transition-base);
  letter-spacing: 0.02em;
  line-height: 1.5;
}

/* Primary Button — Purple Gradient */
.btn-primary {
  color: #ffffff;
  background: var(--gradient-accent);
  border: none;
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover,
.btn-primary:focus {
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent-lg);
  color: #ffffff;
  background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 50%, #4c1d95 100%);
}

/* Outline Primary — Glassmorphism */
.btn-outline-primary {
  color: var(--color-accent);
  background: rgba(124, 58, 237, 0.04);
  border: 2px solid var(--color-accent);
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.btn-outline-primary:hover {
  color: #ffffff;
  background: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-accent);
  transform: translateY(-2px);
}

/* Gradient Button */
.btn-gradient {
  background: var(--gradient-accent);
  border: none;
  color: white;
  box-shadow: var(--shadow-accent);
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent-lg);
  color: white;
}

/* Gradient Light Button */
.btn-gradient-light {
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-accent);
  border: none;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.btn-gradient-light:hover {
  background: #ffffff;
  color: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
}

/* Light Button (for dark backgrounds) */
.btn-light {
  background: #ffffff;
  color: var(--color-accent);
  border: 2px solid #ffffff;
  font-weight: 600;
}

.btn-light:hover {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.8);
}

/* Outline Light (for dark backgrounds) */
.btn-outline-light {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Button Sizes */
.btn-sm {
  padding: 0.45rem 1.25rem;
  font-size: var(--text-xs);
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.9rem 2.25rem;
  font-size: var(--text-base);
  border-radius: var(--radius-md);
}

/* Hover effects */
.hover-lift { transition: transform var(--transition-base), box-shadow var(--transition-base); }
.hover-lift:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

/* ============================================
   8. CARDS — Unified System
   ============================================ */
.card {
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border-light);
  overflow: hidden;
  transition: all var(--transition-base);
  height: 100%;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card-title {
  font-family: var(--font-heading);
  color: var(--color-text-dark);
  font-weight: 700;
  font-size: var(--text-xl);
}

.card-text {
  color: var(--color-text-medium);
  line-height: 1.7;
}

/* Service Cards */
.service-card {
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-card);
  overflow: hidden;
  height: 100%;
  transition: all var(--transition-base);
  background-color: var(--color-white);
  position: relative;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent-soft);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card .card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.service-card .card-title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-text-dark);
}

.service-card .card-text {
  color: var(--color-text-medium);
  font-size: var(--text-base);
  line-height: 1.7;
  flex-grow: 1;
}

.service-card .service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  background: var(--gradient-accent);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  box-shadow: var(--shadow-accent);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.service-card:hover .service-icon {
  transform: scale(1.1);
  box-shadow: var(--shadow-accent-lg);
}

/* Industry Cards */
.industry-card {
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-card);
  height: 100%;
  transition: all var(--transition-base);
  background: var(--color-white);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.industry-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent-soft);
  opacity: 0;
  transition: opacity var(--transition-base);
  border-radius: 0 0 var(--radius-card) var(--radius-card);
}

.industry-card:hover {
  border-color: rgba(124, 58, 237, 0.2);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.1);
  transform: translateY(-6px);
}

.industry-card:hover::before {
  opacity: 1;
}

.industry-card .industry-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  background: var(--gradient-accent);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all var(--transition-base);
}

.industry-card:hover .industry-icon {
  transform: scale(1.1);
  box-shadow: var(--shadow-accent);
}

/* ============================================
   9. SECTIONS
   ============================================ */
.section {
  padding: var(--section-spacing) 0;
  position: relative;
}

.section-header {
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
}

.section-title {
  font-size: var(--text-4xl);
  margin-bottom: 1.25rem;
  color: var(--color-text-dark);
  font-weight: 800;
  position: relative;
  display: inline-block;
  letter-spacing: -0.03em;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 700px;
  margin: 1rem auto 0;
  font-weight: 400;
  line-height: 1.7;
}

/* Alternating section backgrounds */
.bg-light {
  background-color: var(--color-light) !important;
}

.bg-light-alt {
  background: var(--gradient-section-light) !important;
}

/* Dark sections */
.bg-dark-section {
  background: var(--gradient-section-dark);
  color: #ffffff;
}

.bg-dark-section h2,
.bg-dark-section h3,
.bg-dark-section h4 {
  color: #ffffff;
}

.bg-dark-section p {
  color: rgba(255, 255, 255, 0.75);
}

/* ============================================
   10. CTA SECTIONS
   ============================================ */
.cta-section {
  background: var(--gradient-cta);
  color: #ffffff;
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(42, 75, 140, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.cta-section h2,
.cta-section p {
  color: #ffffff;
  position: relative;
  z-index: 1;
}

.cta-section .btn {
  position: relative;
  z-index: 1;
}

.cta-section .btn-light {
  background: #ffffff;
  color: var(--color-accent);
  border: 2px solid #ffffff;
}

.cta-section .btn-outline-light {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.cta-section .btn-light:hover {
  background: transparent;
  color: #ffffff;
}

.cta-section .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* ============================================
   11. FOOTER
   ============================================ */
.footer {
  background: linear-gradient(180deg, var(--color-dark-blue) 0%, var(--color-darkest) 100%);
  color: rgba(255, 255, 255, 0.7);
  padding: 0;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent-soft);
  z-index: 1;
}

.footer h4,
.footer h5,
.footer h6 {
  color: #ffffff;
  font-weight: 600;
}

.footer a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color var(--transition-base);
}

.footer a:hover {
  color: var(--color-accent-light);
}

.footer-title {
  font-size: var(--text-lg);
  margin-bottom: 1.5rem;
  font-weight: 600;
  color: #ffffff;
}

.footer-links {
  list-style: none;
  padding-left: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--transition-base);
}

.footer-links a:hover {
  color: var(--color-accent-light);
  text-decoration: none;
}

.footer-bottom {
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   12. ACCORDION / FAQ
   ============================================ */
.accordion-item {
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md) !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.accordion-button {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-text-dark);
  padding: 1.25rem 1.5rem;
}

.accordion-button:not(.collapsed) {
  background-color: var(--color-accent-subtle);
  color: var(--color-accent-dark);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.15rem rgba(124, 58, 237, 0.2);
  border-color: var(--color-accent);
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%237c3aed'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
  color: var(--color-text-medium);
  line-height: 1.7;
  padding: 1rem 1.5rem 1.25rem;
}

/* ============================================
   13. FORM STYLES
   ============================================ */
.form-control,
.form-select {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: var(--text-base);
  transition: all var(--transition-base);
  color: var(--color-text-dark);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 0.15rem rgba(124, 58, 237, 0.2);
}

/* ============================================
   14. BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: var(--gradient-accent);
  color: white;
  border-radius: var(--radius-full);
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: 1000;
  box-shadow: var(--shadow-accent);
  border: none;
  cursor: pointer;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-accent-lg);
  color: white;
}

/* ============================================
   15. ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   16. ACCESSIBILITY
   ============================================ */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 3px solid rgba(124, 58, 237, 0.3);
  outline-offset: 2px;
}

/* ============================================
   17. RESPONSIVE
   ============================================ */
@media (max-width: 991.98px) {
  .navbar-nav {
    padding: 1rem 0;
    background: var(--color-darkest);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }

  .nav-item {
    margin: 0.25rem 0;
  }

  .nav-link {
    padding: 0.75rem 1rem;
    font-size: var(--text-base);
  }

  .section-title {
    font-size: var(--text-3xl);
  }

  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }

  .hero {
    min-height: 60vh;
  }
}

@media (max-width: 767.98px) {
  :root {
    --section-spacing: 3.5rem;
  }

  .section-title {
    font-size: var(--text-2xl);
  }

  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }

  .hero {
    min-height: 50vh;
  }

  .hero-title {
    font-size: var(--text-3xl);
  }

  .btn-lg {
    padding: 0.75rem 1.75rem;
    font-size: var(--text-sm);
  }

  .card:hover {
    transform: translateY(-4px);
  }

  .service-card:hover {
    transform: translateY(-4px);
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: var(--text-2xl);
  }

  .card-body {
    padding: 1.25rem;
  }
}

/* ============================================
   18. BOOTSTRAP OVERRIDES
   ============================================ */
.bg-primary {
  background-color: var(--color-accent) !important;
  background: var(--gradient-accent) !important;
}

.text-primary {
  color: var(--color-accent) !important;
}

.border-primary {
  border-color: var(--color-accent) !important;
}

.btn-outline-primary {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn-outline-primary:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

/* ============================================
   19. UTILITY CLASSES
   ============================================ */
.gradient-bg {
  background: var(--gradient-primary);
}

.gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Value/tech icon wrappers (homepage) */
.value-icon-wrapper,
.tech-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: var(--radius-full);
  background: var(--color-accent-subtle);
}

.value-icon-wrapper i,
.tech-icon-wrapper i {
  font-size: 1.75rem;
  color: var(--color-accent) !important;
}

/* Service icon wrapper */
.service-icon-wrapper {
  position: relative;
  text-align: center;
  margin-bottom: 1rem;
}

/* Industry icon wrapper */
.industry-icon-wrapper {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.industry-icon-wrapper svg {
  width: 100%;
  height: 100%;
  color: var(--color-accent);
}

.industry-icon-wrapper i {
  font-size: 2rem;
  color: var(--color-accent);
}

/* Newsletter form */
.newsletter-form .form-control {
  height: 50px;
  border-radius: var(--radius-full) 0 0 var(--radius-full);
  border: 1px solid var(--color-border);
}

.newsletter-form .btn {
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  padding: 0 30px;
}
