/* ============================================
   KDS Tech Solutions - Gold & White Premium Theme
   (Bootstrap 5.3 local - this file overrides/customizes)
   ============================================ */

:root {
  /* Logo Gold Palette */
  --gold-primary: #FFD700;
  --gold-secondary: #FFBF00;
  --gold-dark: #B8860B;
  --gold-bronze: #8B4513;

  /* Light / White backgrounds */
  --bg-dark: #ffffff;
  --bg-darker: #f8f9fa;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f2f5;
  --bg-alt: #f3f4f6;

  /* Text */
  --primary: var(--gold-primary);
  --primary-dark: var(--gold-dark);
  --text-dark: #1a1a1a;
  --text-muted: #6c757d;
  --text-on-dark: #f5f5f5;
  --white: #ffffff;
  --black: #000000;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-gold: 0 4px 24px rgba(255, 215, 0, 0.25);
  --radius: 12px;

  /* Gradients */
  --gradient-gold: linear-gradient(135deg, #FFD700 0%, #FFBF00 50%, #B8860B 100%);
  --gradient-gold-shine: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.4), transparent);
  --gradient-hero: linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 249, 250, 0.9) 100%);
  --gradient-section: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
}

/* Typography */
body {
  font-family: 'Montserrat', 'Nunito', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-dark);
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
[class^="display-"],
.navbar-brand,
.service-box.style1 .title {
  font-family: 'Montserrat', 'Rajdhani', sans-serif;
}

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

.text-secondary {
  color: var(--text-muted) !important;
}

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

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

/* Alternating section backgrounds */
main>section:nth-of-type(even):not(.stats):not(.contact-section) {
  background-color: var(--bg-darker);
}

main>section:nth-of-type(odd):not(.hero):not(.stats):not(.contact-section) {
  background-color: var(--bg-dark);
}

main h2.display-6,
main .display-6 {
  color: var(--text-dark);
}

main section:not(.stats):not(.contact-section):not(.footer-footer) p.text-secondary {
  color: var(--text-muted) !important;
}

/* Bootstrap overrides */
.btn-primary {
  background: var(--gradient-gold);
  border-color: var(--gold-dark);
  color: #0D0D0E;
  font-weight: 600;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #FFBF00 0%, #FFD700 50%, #FFBF00 100%);
  border-color: var(--gold-primary);
  color: #0D0D0E;
  box-shadow: var(--shadow-gold);
}

/* ============================================
   Navbar
   ============================================ */
.kds-navbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.3s ease;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.kds-navbar.navbar-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-bottom-color: rgba(255, 215, 0, 0.2);
}

.kds-navbar .navbar-brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--gold-primary) !important;
  transition: opacity 0.3s;
}

.kds-navbar .navbar-brand:hover {
  opacity: 0.85;
}

.kds-navbar .brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid rgba(255, 215, 0, 0.3);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.kds-navbar .navbar-brand:hover .brand-logo {
  border-color: var(--gold-primary);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.kds-navbar .nav-link {
  color: rgba(26, 26, 26, 0.85) !important;
  font-weight: 500;
  position: relative;
  transition: color 0.3s, box-shadow 0.3s;
  box-shadow: inset 0 -2px 0 0 transparent;
}

/* Thin underline via box-shadow — avoids conflict with Bootstrap dropdown caret (::after) */
.kds-navbar .nav-link:hover,
.kds-navbar .nav-item.dropdown:hover>.dropdown-toggle,
.kds-navbar .nav-item.dropdown:focus-within>.dropdown-toggle,
.kds-navbar .nav-item.dropdown>.dropdown-toggle.show {
  color: var(--gold-primary) !important;
  box-shadow: inset 0 -2px 0 0 var(--gold-primary);
}

/* Current page — gold text only, no underline (so it doesn't look like stuck hover) */
.kds-navbar .nav-link.active {
  color: var(--gold-primary) !important;
  font-weight: 600;
  box-shadow: none;
}

.kds-navbar .nav-link.active:hover {
  box-shadow: inset 0 -2px 0 0 var(--gold-primary);
}

/* No custom ::after underline on regular links */
.kds-navbar .nav-link:not(.dropdown-toggle)::after {
  display: none;
}

/* Restore Bootstrap dropdown arrow on Services */
.kds-navbar .nav-link.dropdown-toggle::after {
  position: static;
  width: auto;
  height: auto;
  background: none;
  left: auto;
  bottom: auto;
  border-radius: 0;
  margin-left: 0.35em;
  vertical-align: 0.2em;
  display: inline-block;
  border-top: 0.35em solid;
  border-right: 0.35em solid transparent;
  border-left: 0.35em solid transparent;
  border-bottom: 0;
  transition: transform 0.2s ease;
}

.kds-navbar .nav-item.dropdown:hover .dropdown-toggle::after,
.kds-navbar .nav-item.dropdown:focus-within .dropdown-toggle::after,
.kds-navbar .nav-item.dropdown>.dropdown-toggle.show::after {
  transform: rotate(180deg);
}

.kds-navbar .navbar-toggler {
  border-color: rgba(0, 0, 0, 0.15);
}

.kds-navbar .navbar-toggler-icon {
  filter: none;
}

.user-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-gold);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.user-icon:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-gold);
}

.user-icon i {
  color: #0D0D0E !important;
}

.btn-demo {
  text-decoration: none !important;
  color: #0D0D0E !important;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  background-color: var(--bg-darker);
  background-image: var(--gradient-hero), url(../img/ai-home.webp);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-top: 6rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 215, 0, 0.2);
  animation: gearRotate 30s linear infinite;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(255, 215, 0, 0.15);
  animation: gearRotate 25s linear infinite reverse;
  pointer-events: none;
}

@keyframes gearRotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.hero h1 {
  color: var(--text-dark);
}

.hero .lead {
  color: var(--text-muted);
}

.hero-visual {
  background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-darker) 100%);
  border: 1px solid rgba(255, 215, 0, 0.35);
  height: 320px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Hero logo */
.hero-logo-wrap {
  height: auto;
  min-height: 320px;
  padding: 2rem;
  background: radial-gradient(circle at center, rgba(255, 215, 0, 0.08) 0%, var(--bg-card) 55%, var(--bg-darker) 100%);
  border: 2px solid rgba(255, 215, 0, 0.3);
}

.hero-logo {
  max-width: 340px;
  width: 100%;
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 12px 28px rgba(184, 134, 11, 0.35));
  animation: heroLogoFloat 5s ease-in-out infinite;
}

@keyframes heroLogoFloat {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-10px) scale(1.02);
  }
}

.hero-logo-wrap::before {
  content: '';
  position: absolute;
  inset: -20%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 215, 0, 0.25);
  animation: gearRotate 40s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.hero-logo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-gold-shine);
  animation: shimmer 4s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
}

@media (max-width: 991px) {
  .hero-logo-wrap {
    min-height: 280px;
    margin-top: 1rem;
  }

  .hero-logo {
    max-width: 260px;
  }
}

.hero-visual::before {
  display: none;
}

.hero-visual i {
  color: var(--gold-primary) !important;
  position: relative;
  z-index: 1;
  animation: floatIcon 4s ease-in-out infinite;
}

@keyframes floatIcon {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes shimmer {

  0%,
  100% {
    transform: translateX(-100%);
    opacity: 0;
  }

  50% {
    transform: translateX(100%);
    opacity: 1;
  }
}

/* ============================================
   AI Section
   ============================================ */
.ai-section {
  background: var(--gradient-section);
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 249, 250, 0.92) 100%), url(../img/bg-1.webp);
  background-size: cover;
  background-position: center;
}

.ai-section h2 {
  color: var(--text-dark);
}

.ai-section p {
  color: var(--text-muted);
}

/* AI Service cards section */
.ai-service-cards {
  overflow: hidden;
  padding: 82px 0 20px;
  background-color: var(--bg-darker);
  background-image: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
}

.service-box.style21 {
  padding: 34px 30px;
  transition: transform 0.5s, box-shadow 0.5s;
  position: relative;
  z-index: 2;
  background: var(--bg-card);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  height: 100%;
  box-shadow: var(--shadow);
}

.ai-service-cards .ai-service-container {
  /* max-width: 1320px; */
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--bs-gutter-x, 0.75rem);
  padding-right: var(--bs-gutter-x, 0.75rem);
}

@media (max-width: 1024px) {
  .ai-service-cards .ai-service-container {
    max-width: 1024px;
  }
}

@media (max-width: 767px) {
  .ai-service-cards .ai-service-container {
    max-width: 767px;
  }

  .ai-service-cards {
    padding: 50px 0 20px;
  }
}

.service-box.style21:after {
  position: absolute;
  content: "";
  top: 0;
  right: 0;
  height: 100%;
  width: 0;
  z-index: -1;
  border-radius: 10px;
  background: var(--gradient-gold);
  opacity: 0;
  transition: 0.5s;
}

.service-box.style21 .service-box-icon {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  background-color: rgba(255, 215, 0, 0.08);
  line-height: 70px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: 0.5s;
  position: relative;
  z-index: 1;
}

.service-box.style21 .service-box-icon i {
  font-size: 28px;
  color: var(--gold-primary);
  transition: 0.5s;
}

.service-box.style21 .service-box-icon:before {
  position: absolute;
  content: "";
  z-index: -1;
  inset: 0;
  border-radius: 5px;
  background: var(--gradient-gold);
  transform: scale(0);
  transition: 0.5s;
}

.service-box.style21 .service-box-icon img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  transition: 0.5s;
}

.service-box.style21 .service-box-title h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 22px;
  margin: 25px 0 12px;
  font-weight: 600;
  color: var(--text-dark);
}

.service-box.style21 p.description {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-muted);
  transition: 0.5s;
  margin: 0 0 25px;
}

.service-box.style21 .service-btn a {
  display: inline-block;
  transition: 0.6s;
  border-radius: 20px;
  background-color: rgba(255, 215, 0, 0.1);
  font-size: 14px;
  text-transform: uppercase;
  color: var(--gold-primary);
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
  padding: 6px 25px;
  position: relative;
  z-index: 1;
  text-decoration: none;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.service-box.style21 .service-btn a:before {
  position: absolute;
  content: "";
  z-index: -1;
  inset: 0;
  border-radius: 30px;
  background: var(--gradient-gold);
  transform: scale(0);
  transition: 0.5s;
}

.service-box.style21 .service-btn a i {
  display: inline-block;
  margin-left: 5px;
  transition: 0.5s;
}

.service-box.style21:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-gold);
  border-color: rgba(255, 215, 0, 0.3);
}

.service-box.style21:hover:after {
  opacity: 1;
  width: 100%;
  left: 0;
}

.service-box.style21:hover .service-box-icon i,
.service-box.style21:hover .service-box-icon img {
  animation: wobble_vertical 1s forwards ease-in-out;
  color: #0D0D0E;
}

.service-box.style21:hover .service-box-icon:before {
  transform: scale(1);
}

.service-box.style21:hover .service-btn a:before {
  transform: scale(1);
}

.service-box.style21:hover .service-box-title h3,
.service-box.style21:hover p.description,
.service-box.style21:hover .service-btn a {
  color: #0D0D0E;
}

@keyframes wobble_vertical {

  0%,
  100% {
    transform: translateY(0);
  }

  15% {
    transform: translateY(-8px);
  }

  30% {
    transform: translateY(4px);
  }

  45% {
    transform: translateY(-4px);
  }

  60% {
    transform: translateY(2px);
  }

  75% {
    transform: translateY(-2px);
  }
}

@media (min-width: 768px) {

  .ai-service-cards .row .col-lg-3:nth-child(2) .service-box.style21,
  .ai-service-cards .row .col-lg-3:nth-child(4) .service-box.style21 {
    margin-top: 30px;
  }
}

/* ============================================
   service-box.style1
   ============================================ */
.service-box.style1 {
  padding: 50px 25px 30px;
  background-color: var(--bg-card);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-top: 3px solid var(--gold-primary);
  text-align: center;
  position: relative;
  z-index: 1;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: var(--shadow);
  height: 100%;
}

.service-box.style1:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-gold);
  border-color: rgba(255, 215, 0, 0.35);
}

.service-box.style1::before {
  position: absolute;
  content: "";
  right: 0;
  bottom: 0;
  width: 80px;
  height: 80px;
  background: var(--gradient-gold);
  transition: 0.5s;
  opacity: 0;
  z-index: -1;
}

.service-box.style1:hover::before {
  width: 100%;
  height: 100%;
  opacity: 1;
}

.service-box.style1 .service-box-number {
  display: block;
  font-size: 55px;
  text-align: right;
  font-weight: 700;
  position: absolute;
  right: 15px;
  top: 12px;
  left: auto;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 215, 0, 0.45);
  line-height: 1;
  pointer-events: none;
}

.service-box.style1 .icon {
  position: relative;
  margin-top: 10px;
  width: 70px;
  height: 70px;
  line-height: 70px;
  text-align: center;
  border-radius: 6px;
  background-color: var(--gold-primary);
  border: none;
  transition: 0.5s;
  display: inline-block;
  margin-bottom: 28px;
}

.service-box.style1 .icon i {
  font-size: 28px;
  color: #ffffff;
  transition: 0.5s;
}

.service-box.style1:hover .icon i {
  color: #ffffff;
}

.service-box.style1:hover .icon {
  background: var(--gold-dark);
  transform: scale(1.05);
}

.service-box.style1 .title {
  font-size: 22px;
  padding: 0 0 36px;
  line-height: 1.35;
  position: relative;
  z-index: 1;
  transition: 0.5s;
  margin: 0;
  font-weight: 700;
  color: var(--text-dark);
}

.service-box.style1 .title::before {
  position: absolute;
  content: "";
  left: 0;
  right: 0;
  bottom: 22px;
  margin: auto;
  width: 40px;
  height: 2px;
  background: var(--gradient-gold);
  transition: 0.5s;
}

.service-box.style1 .content p,
.service-box.style1 p.description {
  transition: 0.5s;
  margin: 0;
  color: var(--text-muted);
}

.service-box.style1:hover .title,
.service-box.style1:hover .content p,
.service-box.style1:hover p.description {
  color: #0D0D0E;
}

.service-box.style1 .service-btn {
  margin-top: 16px;
}

.service-box.style1 .service-btn a {
  font-style: italic;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.service-box.style1 .service-btn a:hover {
  color: var(--gold-dark);
}

.service-box.style1 .content p,
.service-box.style1 p.description {
  font-size: 0.95rem;
  line-height: 1.65;
}

[data-theme="dark"] .service-box.style1 {
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .service-box.style1:hover .title,
[data-theme="dark"] .service-box.style1:hover .content p,
[data-theme="dark"] .service-box.style1:hover p.description {
  color: #0D0D0E;
}

/* About */
#about {
  background: var(--bg-dark);
}

.about-visual {
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
  border: 1px solid rgba(255, 215, 0, 0.25);
  height: 280px;
  box-shadow: var(--shadow);
}

.about-visual i {
  color: var(--gold-primary) !important;
}

.about-list span.text-primary {
  color: var(--gold-primary) !important;
}

/* Works */
.work-item {
  background: var(--bg-card);
  border: 1px solid rgba(0, 0, 0, 0.08);
  height: 200px;
  transition: transform 0.4s, box-shadow 0.4s, border-color 0.4s;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}

.work-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-gold-shine);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.work-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-gold);
  border-color: rgba(255, 215, 0, 0.35);
}

.work-item:hover::after {
  transform: translateX(100%);
}

.work-item i {
  color: var(--gold-primary) !important;
  position: relative;
  z-index: 1;
}

/* Progress */
.progress-fill {
  transition: width 1.2s ease;
  background: var(--gradient-gold) !important;
}

.progress {
  background-color: #e9ecef;
}

.progress-visual {
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  border: 1px solid rgba(255, 215, 0, 0.25);
  height: 260px;
  box-shadow: var(--shadow);
}

.progress-visual i {
  color: var(--gold-primary) !important;
}

/* Stats - gold accent band on white site */
.stats {
  background: linear-gradient(135deg, #1a1a1a 0%, #000000 50%, #1a1a1a 100%);
  color: var(--text-on-dark);
  border-top: 1px solid rgba(255, 215, 0, 0.2);
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.stats .opacity-90 {
  color: rgba(255, 255, 255, 0.85);
}

.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-gold-shine);
  animation: shimmer 4s ease-in-out infinite;
  pointer-events: none;
}

.stats h2 {
  color: var(--gold-primary);
  position: relative;
}

.stats .display-4 {
  color: var(--gold-primary);
  position: relative;
}

/* Testimonials */
.testimonials {
  background: var(--bg-darker);
}

.testimonials .card {
  background: var(--bg-card);
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: var(--shadow);
  transition: transform 0.4s, box-shadow 0.4s, border-color 0.4s;
}

.testimonials .card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-gold);
  border-color: rgba(255, 215, 0, 0.25) !important;
}

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

.testimonials .text-warning {
  color: var(--gold-secondary) !important;
}

.test-avatar {
  width: 44px;
  height: 44px;
  background: var(--gradient-gold);
  color: #0D0D0E !important;
}

.category-tags a {
  color: var(--gold-primary) !important;
}

/* Trusted */
.trusted {
  background: var(--bg-dark);
}

.trust-circle {
  width: 160px;
  height: 160px;
  background: var(--gradient-gold);
  color: #0D0D0E;
  border: 3px solid rgba(255, 215, 0, 0.4);
  transition: transform 0.4s, box-shadow 0.4s;
}

.trust-circle:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-gold);
}

.trusted .badge {
  background: #ffffff !important;
  color: var(--text-muted) !important;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: var(--shadow);
  transition: border-color 0.3s, color 0.3s;
}

.trusted .badge:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary) !important;
}

/* Contact */
.contact-section {
  background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
  color: var(--text-dark);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.contact-section h2 {
  color: var(--text-dark);
}

.contact-info li,
.contact-info span {
  color: var(--text-dark);
}

.contact-form .form-control {
  background: var(--bg-card);
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: var(--text-dark);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form .form-control::placeholder {
  color: var(--text-muted);
}

.contact-form .form-control:focus {
  background: var(--bg-card);
  border-color: var(--gold-primary);
  color: var(--text-dark);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

/* FAQ */
.faq-visual {
  width: 120px;
  height: 120px;
  background: var(--gradient-gold);
}

.faq-visual i {
  color: #0D0D0E !important;
}

.accordion-item {
  background: var(--bg-card) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: var(--shadow);
}

.accordion-button {
  background: var(--bg-card) !important;
  color: var(--text-dark) !important;
}

.accordion-button:not(.collapsed) {
  color: var(--gold-dark) !important;
  background-color: rgba(255, 215, 0, 0.12) !important;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 215, 0, 0.2);
  border-color: rgba(255, 215, 0, 0.3);
}

.accordion-body {
  background: var(--bg-card);
  color: var(--text-muted);
}

/* Blog */
.blog-thumb {
  height: 160px;
  background: linear-gradient(145deg, #f8f9fa, #ffffff);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.blog-thumb i {
  color: var(--gold-primary) !important;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: var(--shadow);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-gold);
  border-color: rgba(255, 215, 0, 0.25) !important;
}

.blog-card .card-body {
  background: var(--bg-card);
}

/* Footer - dark contrast on white site */
.footer-footer {
  background: #0a0a0a;
  background-image: linear-gradient(180deg, rgba(10, 10, 10, 0.97) 0%, rgba(0, 0, 0, 0.95) 100%), url(../img/it-solution-footer-bg.webp);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--text-on-dark);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 215, 0, 0.12);
}

.footer-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(13, 13, 14, 0.85);
  pointer-events: none;
}

.footer-footer .container {
  position: relative;
  z-index: 1;
}

.footer-footer a:hover {
  color: var(--gold-primary) !important;
}

.footer-brand-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--gold-primary) !important;
}

.footer-logo-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  font-size: 1rem;
}

.footer-heading {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gold-primary) !important;
}

.footer-links .footer-link {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-block;
  padding: 0.25rem 0;
  transition: color 0.2s, padding-left 0.2s;
}

.footer-links .footer-link i {
  color: var(--gold-primary);
  font-size: 0.7rem;
  transition: transform 0.2s;
}

.footer-links .footer-link:hover {
  color: var(--gold-primary);
  padding-left: 4px;
}

.footer-links .footer-link:hover i {
  transform: translateX(4px);
}

.footer-email-input {
  background: rgba(26, 26, 27, 0.9);
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: 12px;
  color: #fff;
  padding: 0.6rem 1rem;
}

.footer-email-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.footer-email-input:focus {
  background: rgba(26, 26, 27, 0.98);
  border-color: var(--gold-primary);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.15);
}

.footer-footer a.footer-social {
  color: var(--gold-primary) !important;
}

.footer-footer a.footer-social:hover,
.footer-footer a.footer-social:focus-visible {
  color: #0D0D0E !important;
}

.footer-bottom {
  border-color: rgba(255, 215, 0, 0.1) !important;
}

.footer-social {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 215, 0, 0.2);
  color: var(--gold-primary) !important;
  transition: background 0.3s, color 0.3s, transform 0.3s, border-color 0.3s;
}

.footer-social .fab,
.footer-social i {
  color: inherit !important;
}

@media (hover: hover) and (pointer: fine) {
  .footer-social:hover {
    background: var(--gradient-gold);
    color: #0D0D0E !important;
    border-color: transparent;
    transform: translateY(-3px);
  }

  .footer-social:hover .fab,
  .footer-social:hover i {
    color: #0D0D0E !important;
  }
}

.footer-social:focus-visible {
  background: var(--gradient-gold);
  color: #0D0D0E !important;
  border-color: transparent;
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.35);
}

.footer-social:focus-visible .fab,
.footer-social:focus-visible i {
  color: #0D0D0E !important;
}

/* Back to top */
.back-top {
  background: var(--gradient-gold) !important;
  color: #0D0D0E !important;
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s !important;
}

.back-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

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

/* ============================================
   Buttons - Gold gradient with shimmer
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.btn-gradient.btn-md {
  padding: 14px 28px 14px 35px;
  font-weight: 600;
  color: #0D0D0E;
  background: var(--gradient-gold);
  display: inline-block;
  border-radius: 30px;
  border: 1px solid var(--gold-dark);
  position: relative;
  z-index: 1;
  overflow: hidden;
  font-size: 15px;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: color 0.5s, box-shadow 0.3s, transform 0.3s;
}

.btn-gradient.btn-md::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-gold-shine);
  z-index: 0;
  transition: left 0.6s ease;
}

.btn-gradient.btn-md::after {
  position: absolute;
  content: "";
  z-index: -1;
  top: 0;
  right: 0;
  height: 100%;
  width: 0;
  background: #fff;
  border-radius: 30px;
  transition: width 0.5s ease;
}

.btn-gradient.btn-md:hover {
  color: var(--gold-dark);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.btn-gradient.btn-md:hover::before {
  left: 100%;
}

.btn-gradient.btn-md:hover::after {
  width: 100%;
  left: 0;
}

.btn-gradient.btn-md i {
  margin-left: 10px;
  font-size: 12px;
  transition: transform 0.3s;
  position: relative;
  z-index: 1;
}

.btn-gradient.btn-md:hover i {
  transform: translateX(4px);
}

.navbar .btn-gradient.btn-md {
  margin-top: 0;
}

.btn-gradient.btn-md.w-100 {
  display: block;
  text-align: center;
}

/* Section headings */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 0.5rem;
}

/* Marquee trusted strip */
.marquee-strip {
  background: var(--bg-darker);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
  padding: 1rem 0;
}

.marquee-track {
  display: flex;
  gap: 3rem;
  animation: marquee 25s linear infinite;
  white-space: nowrap;
}

.marquee-track span {
  color: rgba(184, 134, 11, 0.75);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

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

  100% {
    transform: translateX(-50%);
  }
}

/* ============================================
   New sections - Premium IT upgrades
   ============================================ */
.letter-spacing-sm {
  letter-spacing: 2px;
}

.text-gold-icon {
  color: var(--gold-primary);
}

.link-gold {
  color: var(--gold-dark) !important;
}

.link-gold:hover {
  color: var(--gold-primary) !important;
}

/* Outline gold button */
.btn-outline-gold {
  padding: 14px 28px;
  font-weight: 600;
  color: var(--gold-dark);
  background: transparent;
  border: 2px solid var(--gold-primary);
  border-radius: 30px;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-outline-gold:hover {
  background: var(--gradient-gold);
  color: #0D0D0E;
  border-color: var(--gold-dark);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.hero-trust i {
  font-size: 0.85rem;
}

/* Client logos strip */
.clients-strip {
  background: var(--bg-dark);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.client-logo-item {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #adb5bd;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  transition: color 0.3s, border-color 0.3s, transform 0.3s;
  filter: grayscale(1);
  opacity: 0.7;
}

.client-logo-item:hover {
  color: var(--gold-dark);
  border-color: rgba(255, 215, 0, 0.4);
  filter: grayscale(0);
  opacity: 1;
  transform: translateY(-2px);
}

/* Process / How we work */
.process-section {
  background: var(--bg-darker);
}

.process-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative;
}

.process-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-gold);
  border-color: rgba(255, 215, 0, 0.35);
}

.process-step {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  font-weight: 800;
  color: rgba(255, 215, 0, 0.15);
  line-height: 1;
}

.process-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: var(--gradient-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #0D0D0E;
}

/* About image */
.about-img-wrap {
  min-height: 280px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.about-img-wrap img {
  display: block;
  min-height: 280px;
  object-fit: cover;
}

/* Portfolio cards */
.portfolio-card {
  position: relative;
  overflow: hidden;
  height: 280px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.4s, box-shadow 0.4s;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-gold);
}

.portfolio-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.portfolio-img img,
.portfolio-img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portfolio-card:hover .portfolio-img {
  transform: scale(1.08);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  transition: background 0.3s;
}

.portfolio-card:hover .portfolio-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(184, 134, 11, 0.3) 100%);
}

[data-theme="dark"] .portfolio-card {
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .portfolio-card:hover {
  border-color: rgba(255, 215, 0, 0.35);
  box-shadow: 0 8px 28px rgba(255, 215, 0, 0.15);
}

[data-theme="dark"] #portfolio .display-6 {
  color: var(--text-dark);
}

[data-theme="dark"] #portfolio .text-secondary {
  color: var(--text-muted) !important;
}

.portfolio-tag {
  display: inline-block;
  background: var(--gradient-gold);
  color: #0D0D0E;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 0.5rem;
  width: fit-content;
}

/* Testimonial carousel */
.testimonial-carousel {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 3rem;
}

.testimonial-slide {
  background: var(--bg-card);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
  text-align: center;
  max-width: 680px;
  color: var(--text-dark);
}

.testimonial-slide .lead {
  color: var(--text-dark);
}

.testimonial-slide .fw-semibold {
  color: var(--text-dark);
}

.testimonial-slide .text-secondary {
  color: var(--text-muted) !important;
}

.testimonial-carousel .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #dee2e6;
  border: none;
  opacity: 1;
}

.testimonial-carousel .carousel-indicators .active {
  background: var(--gradient-gold);
}

.testimonial-carousel .carousel-control-prev,
.testimonial-carousel .carousel-control-next {
  width: 44px;
  height: 44px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
  background: transparent;
  border: none;
  overflow: visible;
}

.testimonial-carousel .carousel-control-prev-icon,
.testimonial-carousel .carousel-control-next-icon {
  display: none;
}

.testimonial-carousel .carousel-control-prev {
  left: -1rem;
}

.testimonial-carousel .carousel-control-next {
  right: -1rem;
}

.carousel-nav-icon {
  width: 44px;
  height: 44px;
  background: var(--gradient-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0D0D0E;
  font-size: 0.85rem;
  box-shadow: var(--shadow);
}

@media (max-width: 767px) {
  .testimonial-carousel .carousel-control-prev {
    left: 0;
  }

  .testimonial-carousel .carousel-control-next {
    right: 0;
  }

  .testimonial-slide {
    padding: 2rem 1.25rem;
  }

  .testimonial-slide .lead {
    font-size: 1rem;
  }
}

/* Tech stack */
.tech-stack {
  background: var(--bg-darker);
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 30px;
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
  box-shadow: var(--shadow);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.tech-badge:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 215, 0, 0.4);
  box-shadow: var(--shadow-gold);
}

.tech-badge i {
  color: var(--gold-dark);
}

/* CTA Banner */
.cta-banner {
  background: var(--bg-dark);
}

.cta-inner {
  background: linear-gradient(135deg, #1a1a1a 0%, #000000 50%, #1a1a1a 100%);
  border: 1px solid rgba(255, 215, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-gold-shine);
  animation: shimmer 4s ease-in-out infinite;
  pointer-events: none;
}

.cta-inner>* {
  position: relative;
  z-index: 1;
}

/* Blog thumb with image */
.blog-thumb-img {
  height: 180px;
  background-size: cover;
  background-position: center;
}

/* Contact info */
.contact-info i {
  font-size: 1.1rem;
  min-width: 20px;
}

.contact-form select.form-control {
  appearance: auto;
  color: var(--text-dark);
}

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 52px;
  height: 52px;
  background: #25d366;
  color: #fff !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  z-index: 998;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
  color: #fff !important;
}

.back-top {
  width: 48px;
  height: 48px;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
}

.footer-text {
  color: rgba(255, 255, 255, 0.85);
}

/* Toast notifications */
.kds-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #1a1a1a;
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border-left: 4px solid var(--gold-primary);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  font-size: 0.95rem;
  max-width: 90%;
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  pointer-events: none;
}

.kds-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.kds-toast-success {
  border-left-color: #25d366;
}

/* Services in ai-section */
.ai-section .service-box.style21 {
  box-shadow: var(--shadow);
}

/* Fix alternating - exclude new utility sections */
main>section.clients-strip,
main>section.process-section,
main>section.tech-stack,
main>section.cta-banner {
  background-color: inherit;
}

/* ============================================
   Responsive — Tablet & Mobile
   ============================================ */

/* Tablet (768px – 991px) */
@media (max-width: 991.98px) {
  .hero-section {
    min-height: auto !important;
    padding-top: 5.5rem !important;
    padding-bottom: 3rem !important;
  }

  .hero .display-5 {
    font-size: calc(1.35rem + 1.5vw);
  }

  main h2.display-6,
  main .display-6 {
    font-size: calc(1.25rem + 1vw);
  }

  .portfolio-card {
    height: 240px;
  }

  .about-img-wrap,
  .about-img-wrap img {
    min-height: 240px;
  }
}

/* Mobile (≤ 767px) */
@media (max-width: 767.98px) {

  /* Navbar mobile menu */
  .kds-navbar .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    margin-top: 0.5rem;
    padding: 0.75rem 1rem 1rem !important;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.06);
  }

  .kds-navbar .nav-link {
    padding: 0.6rem 0.5rem !important;
    text-align: center;
    box-shadow: none !important;
  }

  .kds-navbar .nav-link::after {
    display: none;
  }

  .kds-navbar .brand-text {
    font-size: 0.95rem;
    max-width: 140px;
    line-height: 1.2;
  }

  .kds-navbar .brand-logo {
    width: 40px;
    height: 40px;
  }

  .nav-mobile-cta {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }

  /* Hero */
  .hero-section {
    min-height: auto !important;
    padding-top: 5rem !important;
    padding-bottom: 2.5rem !important;
  }

  .hero .container.py-5 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }

  .hero .display-5 {
    font-size: 1.65rem;
    line-height: 1.25;
  }

  .hero .lead {
    font-size: 1rem;
  }

  .hero-trust {
    flex-direction: column;
    align-items: center !important;
    gap: 0.5rem !important;
  }

  .hero-trust span {
    width: 100%;
    text-align: center;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    text-align: center;
    font-size: 0.8rem !important;
    padding: 12px 16px !important;
  }

  .hero-logo-wrap {
    min-height: 220px;
    padding: 1.25rem;
    margin-top: 0.5rem;
  }

  .hero-logo {
    max-width: 200px;
  }

  /* Section spacing */
  main>section.py-5,
  .contact-section.py-5,
  .testimonials.py-5,
  .stats.py-5,
  .process-section.py-5,
  .tech-stack.py-5,
  .cta-banner.py-5 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  main h2.display-6,
  main .display-6,
  .stats h2 {
    font-size: 1.45rem;
  }

  .stats .display-5 {
    font-size: 1.75rem;
  }

  /* Client logos */
  .client-logo-item {
    font-size: 0.75rem;
    padding: 0.5rem 0.35rem;
  }

  /* Service cards */
  .service-box.style21 {
    padding: 1.5rem 1.25rem;
  }

  /* Process cards */
  .process-card {
    padding: 1.5rem 1rem;
  }

  /* Portfolio */
  .portfolio-card {
    height: 220px;
  }

  /* CTA banner */
  .cta-inner {
    padding: 2rem 1.25rem !important;
  }

  .cta-inner .display-6 {
    font-size: 1.35rem !important;
  }

  .cta-inner .btn-lg {
    width: 100%;
    font-size: 0.85rem;
  }

  /* Contact form */
  .contact-form .form-control-lg {
    font-size: 1rem;
    padding: 0.65rem 1rem;
  }

  /* FAQ sidebar below accordion on mobile - already stacks via col-lg */

  /* Floating buttons — avoid overlap */
  .whatsapp-float {
    bottom: 1rem;
    left: 1rem;
    width: 46px;
    height: 46px;
    font-size: 1.4rem;
  }

  .back-top {
    bottom: 1rem;
    right: 1rem;
    width: 42px;
    height: 42px;
  }

  .kds-toast {
    bottom: 5rem;
    max-width: calc(100% - 2rem);
    font-size: 0.85rem;
    padding: 0.85rem 1rem;
  }

  /* Buttons global */
  .btn-gradient.btn-md {
    font-size: 0.8rem;
    padding: 12px 20px 12px 24px;
  }

  .btn-outline-gold {
    font-size: 0.8rem;
    padding: 12px 20px;
  }

  /* Footer */
  .footer-footer .footer-top>[class*="col-"] {
    text-align: center;
  }

  .footer-brand {
    justify-content: center;
  }

  .footer-links .footer-link {
    display: block;
    text-align: center;
  }

  /* Marquee — slightly smaller text */
  .marquee-track span {
    font-size: 0.75rem;
  }

  /* Disable 3D tilt on touch */
  .service-box.style21,
  .blog-card,
  .process-card {
    transform: none !important;
  }
}

/* Small phones (≤ 375px) */
@media (max-width: 375.98px) {
  .kds-navbar .brand-text {
    font-size: 0.85rem;
    max-width: 110px;
  }

  .hero .display-5 {
    font-size: 1.45rem;
  }

  .btn-hero-primary {
    font-size: 0.72rem !important;
    letter-spacing: 0;
  }
}

/* Large desktop (≥ 1400px) */
@media (min-width: 1400px) {
  /* .container {
    max-width: 1320px;
  } */

  .container {
    max-width: 1600px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .hero-logo {
    max-width: 380px;
  }

  .testimonial-carousel {
    max-width: 800px;
  }
}

/* Touch devices — no hover tilt */
@media (hover: none) and (pointer: coarse) {

  .service-box.style21:hover,
  .blog-card:hover,
  .process-card:hover {
    transform: none;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .marquee-track {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ============================================
   Preloader, Dark Mode, Mega Menu, Sticky CTA,
   Hero Video/Particles, Cookie Consent, Page Hero
   ============================================ */

#kdsPreloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#kdsPreloader.preloader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  text-align: center;
}

.preloader-logo {
  width: 80px;
  height: 80px;
  animation: preloaderPulse 1.2s ease-in-out infinite;
}

.preloader-bar {
  width: 120px;
  height: 3px;
  background: var(--bg-alt);
  border-radius: 3px;
  margin: 1rem auto 0;
  overflow: hidden;
}

.preloader-bar span {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--gradient-gold);
  border-radius: 3px;
  animation: preloaderSlide 1s ease-in-out infinite;
}

@keyframes preloaderPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.85;
  }
}

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

  100% {
    transform: translateX(350%);
  }
}

/* Dark mode */
[data-theme="dark"] {
  --bg-dark: #0a0a0a;
  --bg-darker: #111111;
  --bg-card: #1a1a1a;
  --bg-card-hover: #222222;
  --bg-alt: #1e1e1e;
  --text-dark: #f0f0f0;
  --text-muted: #a0a0a0;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --gradient-hero: linear-gradient(135deg, rgba(10, 10, 10, 0.96) 0%, rgba(20, 20, 20, 0.92) 100%);
  --gradient-section: linear-gradient(135deg, #0a0a0a 0%, #141414 50%, #0a0a0a 100%);
}

[data-theme="dark"] .kds-navbar {
  background: rgba(10, 10, 10, 0.92) !important;
  border-bottom-color: rgba(255, 215, 0, 0.12);
}

[data-theme="dark"] .kds-navbar .nav-link,
[data-theme="dark"] .navbar-brand .brand-text {
  color: var(--text-dark) !important;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .footer-email-input {
  background: var(--bg-card);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-dark);
}

[data-theme="dark"] .service-box.style21,
[data-theme="dark"] .process-card,
[data-theme="dark"] .blog-card,
[data-theme="dark"] .card {
  background: var(--bg-card);
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .contact-info a {
  color: var(--text-dark) !important;
}

[data-theme="dark"] .contact-section {
  background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
  border-top-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .contact-section h2,
[data-theme="dark"] .contact-info li,
[data-theme="dark"] .contact-info span {
  color: var(--text-dark);
}

[data-theme="dark"] .contact-section .text-secondary {
  color: var(--text-muted) !important;
}

[data-theme="dark"] .contact-form .form-control {
  background: var(--bg-card);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-dark);
}

[data-theme="dark"] .contact-form .form-control::placeholder {
  color: var(--text-muted);
}

[data-theme="dark"] .contact-form .form-control:focus {
  background: var(--bg-alt);
  border-color: var(--gold-primary);
  color: var(--text-dark);
}

[data-theme="dark"] .contact-form select.form-control option {
  background: var(--bg-card);
  color: var(--text-dark);
}

[data-theme="dark"] .contact-map {
  border-color: rgba(255, 215, 0, 0.2);
}

[data-theme="dark"] .navbar-toggler-icon {
  filter: invert(1);
}

[data-theme="dark"] .hero h1,
[data-theme="dark"] .hero .display-5 {
  color: var(--text-dark);
}

[data-theme="dark"] .hero .lead,
[data-theme="dark"] .hero-trust {
  color: var(--text-muted) !important;
}

[data-theme="dark"] .hero-visual,
[data-theme="dark"] .hero-logo-wrap {
  background: radial-gradient(circle at center, rgba(255, 215, 0, 0.06) 0%, var(--bg-card) 55%, #0d0d0d 100%);
  border-color: rgba(255, 215, 0, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .kds-navbar .navbar-collapse {
  background: rgba(10, 10, 10, 0.98);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .nav-mobile-cta {
  border-top-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .marquee-strip {
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .clients-strip {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .client-logo-item {
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

[data-theme="dark"] .btn-outline-gold {
  color: var(--gold-primary);
}

[data-theme="dark"] .btn-outline-gold:hover {
  color: #0D0D0E;
}

[data-theme="dark"] .testimonial-slide {
  background: var(--bg-card);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .testimonial-slide .lead,
[data-theme="dark"] .testimonial-slide .fw-semibold {
  color: var(--text-dark);
}

[data-theme="dark"] .testimonial-slide .text-secondary {
  color: var(--text-muted) !important;
}

[data-theme="dark"] .testimonial-carousel .carousel-indicators [data-bs-target] {
  background-color: rgba(255, 255, 255, 0.25);
}

[data-theme="dark"] .testimonials .display-6 {
  color: var(--text-dark);
}

[data-theme="dark"] .tech-badge {
  background: var(--bg-card);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-dark);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .tech-badge i {
  color: var(--gold-primary);
}

[data-theme="dark"] .tech-stack .display-6 {
  color: var(--text-dark);
}

.btn-theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 215, 0, 0.35);
  background: transparent;
  color: var(--gold-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0;
}

.btn-theme-toggle:hover {
  background: rgba(255, 215, 0, 0.12);
  color: var(--gold-primary);
}

/* Mega menu */
.kds-mega-menu {
  min-width: 260px;
  padding: 0.75rem 0;
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--bg-card);
}

.kds-mega-menu .dropdown-item {
  padding: 0.55rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-dark);
  transition: all 0.2s ease;
}

.kds-mega-menu .dropdown-item:hover,
.kds-mega-menu .dropdown-item.active {
  background: rgba(255, 215, 0, 0.1);
  color: var(--gold-dark);
}

.kds-mega-menu .dropdown-header {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0.5rem 1.25rem 0.25rem;
}

/* Services dropdown — open on hover (desktop) */
@media (min-width: 992px) {
  .kds-navbar .nav-item.dropdown {
    position: relative;
  }

  .kds-navbar .nav-item.dropdown>.dropdown-menu {
    display: block !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    pointer-events: none;
    margin-top: 0;
    top: 100%;
  }

  .kds-navbar .nav-item.dropdown:hover>.dropdown-menu,
  .kds-navbar .nav-item.dropdown:focus-within>.dropdown-menu,
  .kds-navbar .nav-item.dropdown>.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .kds-navbar .nav-item.dropdown:hover>.dropdown-toggle,
  .kds-navbar .nav-item.dropdown:focus-within>.dropdown-toggle {
    color: var(--gold-primary) !important;
  }

  .kds-navbar .nav-item.dropdown>.dropdown-toggle.show {
    color: var(--gold-primary) !important;
  }
}

/* Sticky mobile CTA */
#stickyCta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  padding: 0.65rem 1rem;
  background: var(--bg-card);
  border-top: 1px solid rgba(255, 215, 0, 0.2);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  gap: 0.5rem;
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

#stickyCta.visible {
  transform: translateY(0);
}

#stickyCta .btn {
  flex: 1;
  font-size: 0.85rem;
  padding: 0.6rem 0.5rem;
}

@media (min-width: 992px) {
  #stickyCta {
    display: none !important;
  }
}

@media (max-width: 991px) {
  body.has-sticky-cta {
    padding-bottom: 70px;
  }

  .whatsapp-float {
    bottom: 5.5rem;
  }

  .back-top.visible {
    bottom: 5.5rem;
  }
}

/* Hero video + particles */
.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-media-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
}

[data-theme="dark"] .hero-video {
  opacity: 0.08;
}

#heroParticles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

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

.hero-fallback-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(255, 215, 0, 0.08) 0%, transparent 55%),
    linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 50%, var(--bg-darker) 100%);
  opacity: 1;
}

/* Gradient placeholders when image assets are not available */
.media-ph-1 {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%) !important;
}

.media-ph-2 {
  background: linear-gradient(135deg, #2c1810 0%, #4a3728 60%, #1a1a1a 100%) !important;
}

.media-ph-3 {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #111 100%) !important;
}

.media-ph-gold {
  background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-darker) 40%, rgba(255, 215, 0, 0.12) 100%) !important;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-ph-gold img {
  max-width: 200px;
  opacity: 0.9;
}

/* Cookie consent */
#cookieConsent {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  max-width: 420px;
  z-index: 10500;
  padding: 1.25rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 215, 0, 0.2);
  transform: translateY(150%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

#cookieConsent.show {
  transform: translateY(0);
  opacity: 1;
}

@media (min-width: 576px) {
  #cookieConsent {
    left: 1.5rem;
    right: auto;
  }
}

@media (max-width: 991px) {
  #cookieConsent.show {
    bottom: 4.5rem;
  }
}

/* Contact map */
.contact-map {
  height: 280px;
  border: 1px solid rgba(255, 215, 0, 0.15);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Inner page hero */
.page-hero {
  padding: 8rem 0 4rem;
  background: var(--gradient-section);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(255, 215, 0, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

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

/* Premium breadcrumb */
.kds-breadcrumb {
  margin-bottom: 1.25rem;
}

.kds-breadcrumb-list {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0.45rem 1.1rem 0.45rem 0.85rem;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.04) 100%);
  border: 1px solid rgba(255, 215, 0, 0.28);
  border-radius: 50px;
  box-shadow: 0 4px 18px rgba(184, 134, 11, 0.1);
}

.kds-breadcrumb-item {
  display: inline-flex;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.kds-breadcrumb-item+.kds-breadcrumb-item::before {
  content: '\f054';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.5rem;
  margin: 0 0.7rem;
  color: var(--gold-primary);
  opacity: 0.85;
}

.kds-breadcrumb-item a {
  color: var(--text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.25s ease;
}

.kds-breadcrumb-item a i {
  font-size: 0.75rem;
  color: var(--gold-primary);
}

.kds-breadcrumb-item a:hover {
  color: var(--gold-dark);
}

.kds-breadcrumb-item--active {
  color: var(--gold-dark);
  font-weight: 700;
}

[data-theme="dark"] .kds-breadcrumb-list {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.08) 0%, rgba(255, 215, 0, 0.02) 100%);
  border-color: rgba(255, 215, 0, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .kds-breadcrumb-item--active {
  color: var(--gold-primary);
}

[data-theme="dark"] .kds-breadcrumb-item a:hover {
  color: var(--gold-primary);
}

/* Legacy breadcrumb class fallback */
.page-hero .breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.page-hero .breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.page-hero .breadcrumb a:hover {
  color: var(--gold-primary);
}

.content-section {
  padding: 4rem 0;
}

.service-detail-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(255, 215, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--gold-primary);
}

.case-study-stat {
  text-align: center;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-darker);
}

.careers-card {
  border: 1px solid rgba(255, 215, 0, 0.15);
  transition: all 0.3s ease;
}

.careers-card:hover {
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-gold);
}

.careers-benefits {
  background: var(--bg-darker);
  border: 1px solid rgba(255, 215, 0, 0.12);
  border-radius: var(--radius);
}

.careers-benefit-item {
  text-align: center;
  padding: 1rem;
}

.careers-benefit-item i {
  font-size: 1.5rem;
  color: var(--gold-primary);
  margin-bottom: 0.5rem;
}

.careers-job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.careers-job-meta span i {
  color: var(--gold-primary);
  margin-right: 0.25rem;
}

.careers-job-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.careers-job-list li {
  padding: 0.2rem 0 0.2rem 1.25rem;
  position: relative;
}

.careers-job-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold-primary);
  font-weight: 700;
}

.careers-apply-section {
  background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
  border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.case-study-hero-img {
  min-height: 300px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.15);
}

.case-study-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 300px;
  display: block;
}

.case-study-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.case-study-tech span {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.25);
  color: var(--gold-dark);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 20000;
  padding: 0.75rem 1.25rem;
  background: var(--gold-primary);
  color: #0d0d0d;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.4);
}

.portfolio-card-desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.25rem;
  margin-bottom: 0;
}