/* balance-code — Site Components & Custom CSS (Oceanic Tech Theme) */
/* المستند بالكامل إلى وثيقة التصميم DESIGN (2).md */

/* Background Aurora Blurs (Soft oceanic linear blurs) */
body {
  position: relative;
  background-color: var(--color-background);
  min-height: 100vh;
}

body::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 15%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(109, 245, 225, 0.05) 0%, rgba(173, 202, 228, 0.02) 60%, rgba(255,255,255,0) 100%);
  z-index: -1;
  pointer-events: none;
  filter: blur(100px);
}

body::after {
  content: '';
  position: absolute;
  bottom: 5%;
  right: 5%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(173, 202, 228, 0.04) 0%, rgba(109, 245, 225, 0.01) 60%, rgba(255,255,255,0) 100%);
  z-index: -1;
  pointer-events: none;
  filter: blur(100px);
}

/* Navbar Component (Sticky with 85% opacity backdrop blur) */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 72px;
  height: auto;
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-surface-container-high);
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
}

.logo-text {
  font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 22px;
}

/* Premium Logos Styling (Modern, responsive, and beautifully aligned) */
.navbar-logo {
  height: 95px !important;
  width: auto;
  max-height: 95px;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  transition: transform var(--transition-normal), filter var(--transition-normal);
  mix-blend-mode: multiply; /* Seamless blending by removing white backgrounds */
}

@media (max-width: 768px) {
  .navbar-logo {
    height: 80px !important;
    max-height: 80px;
  }
}

.navbar-logo:hover {
  transform: scale(1.03) translateY(-1px);
  filter: brightness(1.03);
}

.footer-logo {
  height: 60px !important;
  width: auto;
  max-height: 60px;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  transition: transform var(--transition-normal), filter var(--transition-normal);
  margin-inline-end: -8px;
}

.footer-logo:hover {
  transform: scale(1.03) translateY(-1px);
  filter: drop-shadow(0 0 10px rgba(109, 245, 225, 0.4));
}


.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-on-surface-variant) !important;
  padding: 8px 16px !important;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-primary) !important;
  background: var(--color-surface-container-low);
}

.nav-link.active {
  color: var(--color-primary) !important;
  background: var(--color-surface-container-high);
  font-weight: 600;
}

/* Buttons (DESIGN (2).md Philosophy) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2); /* Direction-independent icon/text spacing */
  background: var(--gradient-cta); /* Secondary to Tertiary */
  color: var(--color-on-primary) !important;
  font-size: 14px;
  font-weight: 500; /* Medium for labels */
  padding: 10px 22px;
  border-radius: var(--radius-default); /* 0.5rem base */
  border: none;
  box-shadow: 0 4px 14px rgba(0, 107, 95, 0.15);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 107, 95, 0.25), 0 0 0 1px rgba(0, 107, 95, 0.2);
  filter: brightness(1.05);
}

.btn-primary:active {
  transform: translateY(0);
  filter: brightness(0.95);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2); /* Direction-independent icon/text spacing */
  background: transparent;
  color: var(--color-secondary) !important;
  border: 1.5px solid var(--color-secondary);
  padding: 9px 21px;
  border-radius: var(--radius-default);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: rgba(0, 55, 255, 0.05);
  transform: translateY(-1px);
}

.btn-secondary:active {
  transform: translateY(0);
}

/* Service Card (Oceanic Light containers) */
.card-service {
  background: var(--color-surface-container-lowest); /* White */
  border: 1px solid var(--color-surface-container-high);
  border-radius: var(--radius-lg); /* 1.0rem base */
  padding: var(--space-6);
  transition: all var(--transition-normal);
  height: 100%;
}

.card-service:hover {
  border-color: var(--color-secondary-container);
  transform: translateY(-4px);
  box-shadow: var(--gradient-glow); /* long-range ocean blue shadow */
}

.icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-default);
  background: var(--color-surface-container-low);
  border: 1px solid var(--color-surface-container-highest);
  color: var(--color-secondary);
  font-size: 20px;
  margin-bottom: var(--space-4);
  transition: all var(--transition-fast);
}

.card-service:hover .icon-wrapper {
  background: var(--gradient-cta);
  color: #FFFFFF;
  border-color: transparent;
}

.card-service-title {
  color: var(--color-primary);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.card-service-desc {
  font-size: 14px;
  color: var(--color-on-surface-variant);
  line-height: 1.6;
}

/* Portfolio / Project Card */
.card-portfolio {
  background: var(--color-surface-container-lowest);
  border: 1px solid var(--color-surface-container-high);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-portfolio:hover {
  transform: translateY(-6px);
  box-shadow: var(--gradient-glow);
  border-color: var(--color-secondary-container);
}

.card-portfolio .card-image {
  height: 220px;
  overflow: hidden;
  background: var(--color-surface-container-low);
}

.card-portfolio .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.card-portfolio .card-body {
  padding: var(--space-5);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-tag,
.project-tag-glass {
  display: none !important;
}

.project-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.project-desc {
  font-size: 14px;
  color: var(--color-on-surface-variant);
  margin-bottom: var(--space-4);
}

.project-tech {
  font-size: 12px;
  color: var(--color-on-surface-variant);
}

/* Blog Card */
.card-blog {
  background: var(--color-surface-container-lowest);
  border: 1px solid var(--color-surface-container-high);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-blog:hover {
  border-color: var(--color-secondary-container);
  box-shadow: var(--gradient-glow);
  transform: translateY(-3px);
}

.card-blog .blog-image {
  height: 200px;
  overflow: hidden;
  background: var(--color-surface-container-low);
}

.card-blog .blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card-blog:hover .blog-image img {
  transform: scale(1.03);
}

.card-blog .blog-body {
  padding: var(--space-5);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  display: flex;
  gap: var(--space-3);
  font-size: 12px;
  color: var(--color-on-surface-variant);
  margin-bottom: var(--space-2);
}

.blog-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--space-2);
  line-height: 1.45;
}

.blog-title a {
  color: var(--color-primary);
}

.blog-title a:hover {
  color: var(--color-secondary);
}

.blog-excerpt {
  font-size: 14px;
  color: var(--color-on-surface-variant);
  margin-bottom: var(--space-4);
  line-height: 1.6;
}

/* Text Gradients */
.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

/* Footer Component (Oceanic deep background) */
/* Footer Component (Oceanic deep background & premium glossy detailing) */
.footer {
  background: #060918 !important; /* Deep dark B2B code background */
  border-top: 1.5px solid rgba(0, 55, 255, 0.15); /* Electric blue subtle glow line */
  padding: var(--space-20) 0 var(--space-10);
  color: rgba(255, 255, 255, 0.65) !important;
  font-size: 14px;
}

.footer h5, .footer .footer-title {
  color: #ffffff !important;
  font-size: 17px;
  font-weight: 600;
  position: relative;
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-6);
  display: inline-block;
}

.footer h5::after, .footer .footer-title::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 32px !important;
  height: 3px !important;
  background: var(--gradient-cta) !important;
  border-radius: var(--radius-full) !important;
}

/* For centered headers on mobile/tablet */
@media (max-width: 991px) {
  .footer h5::after, .footer .footer-title::after {
    left: 0;
    margin: 0 auto;
  }
}

.footer-links {
  padding-right: 0 !important;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75) !important;
  font-size: 14px;
  transition: color 0.25s ease !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a i {
  font-size: 11px;
  color: #6366F1;
  transition: transform 0.25s ease, color 0.25s ease !important;
}

.footer-links a:hover {
  color: #A855F7 !important; /* Brand purple/indigo */
}

.footer-links a:hover i {
  color: #A855F7 !important;
  transform: translateX(-4px); /* Moves icon slightly left (forward direction in RTL) */
}

/* Contact Details Styling */
.footer-contact {
  padding-right: 0 !important;
}

.footer-contact li {
  margin-bottom: var(--space-4);
}

.contact-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: #6366F1 !important;
  font-size: 13px;
  flex-shrink: 0;
  transition: all var(--transition-normal);
}

.footer-contact li:hover .contact-icon-box {
  background: linear-gradient(135deg, #6366F1 0%, #A855F7 100%) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.35);
  transform: scale(1.08);
}

/* Social link circles */
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid rgba(99, 102, 241, 0.25);
  color: #6366F1 !important;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.12);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-link:hover {
  background: linear-gradient(135deg, #6366F1 0%, #A855F7 100%) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 8px 22px rgba(99, 102, 241, 0.4);
}

/* In dark footers or dark sections */
footer .social-link,
.bg-dark .social-link,
.space-journey-wrapper .social-link {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
}

footer .social-link:hover,
.bg-dark .social-link:hover,
.space-journey-wrapper .social-link:hover {
  background: linear-gradient(135deg, #6366F1 0%, #A855F7 100%) !important;
  color: #ffffff !important;
}

.footer-divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  opacity: 1 !important;
}

/* Footer Terminal Cursor Blink */
.cursor-blink {
  color: #6366F1;
  animation: footerBlinker 1.8s steps(2, start) infinite;
  margin-left: 2px;
  font-weight: 300;
}

@keyframes footerBlinker {
  to {
    visibility: hidden;
  }
}

/* Inputs & Forms (DESIGN (2).md Philosophy: soft borders, cyan outer glow on focus) */
.form-control, .form-select {
  background: var(--color-surface-container-lowest) !important;
  border: 1px solid var(--color-outline-variant) !important;
  border-radius: var(--radius-default) !important;
  padding: 12px 16px !important;
  font-size: 15px !important;
  color: var(--color-on-surface) !important;
  transition: all var(--transition-fast) !important;
}

html[dir="rtl"] .form-control, html[dir="rtl"] .form-select {
  direction: rtl;
  text-align: right;
}

html[dir="ltr"] .form-control, html[dir="ltr"] .form-select {
  direction: ltr;
  text-align: left;
}

.form-control:focus, .form-select:focus {
  outline: none !important;
  border-color: var(--color-primary) !important; /* Electric Blue */
  box-shadow: 0 0 0 3px rgba(0, 55, 255, 0.15) !important; /* Electric blue outer glow */
}

.form-control::placeholder {
  color: var(--color-on-surface-variant) !important;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-on-surface);
  margin-bottom: var(--space-2);
  display: block;
}

/* Badge System */
.badge-custom {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1); /* Spacing between icon and badge text */
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid;
}

.badge-custom-success {
  background: var(--color-primary-container);
  border-color: rgba(0, 55, 255, 0.1);
  color: var(--color-primary);
}

/* General Layout utilities */
.section-padding {
  padding: var(--space-20) 0;
}

@media (max-width: 991px) {
  .section-padding {
    padding: var(--space-12) 0;
  }
}

/* Page Header / Banner Component */
.page-header {
  min-height: 350px;
  position: relative !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 0 !important;
  border-bottom: 1px solid var(--color-border) !important;
  background: #060918 !important; /* fallback dark background */
}

.page-header.has-banner-fallback {
  background: radial-gradient(circle at 50% 50%, rgba(var(--color-primary-rgb), 0.12) 0%, #060918 100%) !important;
}

.page-header-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.25) 0%, rgba(var(--color-accent-rgb), 0.25) 100%);
  z-index: 1;
  pointer-events: none;
}

.fallback-spotlight-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, #0d122b 0%, #07070f 100%) !important;
}

.banner-css-fallback-bg {
  background: radial-gradient(circle at 50% 50%, #0d122b 0%, #07070f 100%) !important;
  background-size: 200% 200% !important;
  animation: bannerGradientAnimation 15s ease infinite !important;
}

@keyframes bannerGradientAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

.hover-text-cyan {
  transition: color var(--transition-normal, 0.3s ease);
}

.hover-text-cyan:hover {
  color: #22D3EE !important;
}

.transition-normal {
  transition: all var(--transition-normal, 0.3s ease);
}

.btn-neon-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2, 8px);
  background: rgba(34, 211, 238, 0.03) !important;
  color: #22D3EE !important;
  border: 1.8px solid rgba(34, 211, 238, 0.5) !important;
  padding: 10px 24px;
  border-radius: var(--radius-default, 8px);
  font-size: 15px;
  font-weight: 600;
  transition: all var(--transition-normal, 0.3s ease) !important;
  text-decoration: none;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.12);
  cursor: pointer;
}

.btn-neon-outline:hover {
  background: rgba(34, 211, 238, 0.12) !important;
  color: #ffffff !important;
  border-color: #22D3EE !important;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.45), inset 0 0 8px rgba(34, 211, 238, 0.2);
}

.btn-neon-outline:active {
  transform: translateY(-1px);
}

/* Mobile Responsiveness for Page Banners */
@media (max-width: 767px) {
  .page-header {
    min-height: 220px !important;
  }
}

/* Premium Dynamic Custom Cursor System (Ultra-delicate cursor-follower ring) */
@media (pointer: fine) and (min-width: 992px) {
  /* We KEEP the default browser cursor perfectly visible as requested! */
  
  .custom-cursor-ring {
    width: 24px;
    height: 24px;
    border: 1px solid rgba(0, 159, 180, 0.28); /* Ultra-thin, delicate cyan border */
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 999998;
    transform: translate3d(-100px, -100px, 0);
    margin-top: -12px;
    margin-left: -12px;
    transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), height 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, opacity 0.2s ease;
    opacity: 0;
    will-change: transform;
    background-color: transparent;
  }
  
  /* Active Click Animations (Tactile feedback) */
  .custom-cursor-ring.active {
    width: 18px;
    height: 18px;
    margin-top: -9px;
    margin-left: -9px;
    background-color: rgba(0, 159, 180, 0.15) !important;
    border-color: rgba(0, 159, 180, 0.6) !important;
  }
  
  /* Interactive hover states (Magnetic glow expansion on buttons and links) */
  .custom-cursor-ring.hovered {
    width: 40px;
    height: 40px;
    margin-top: -20px;
    margin-left: -20px;
    border-color: var(--color-secondary) !important;
    background-color: rgba(0, 159, 180, 0.04) !important;
    box-shadow: 0 0 15px rgba(0, 159, 180, 0.22) !important;
  }
}

/* Premium Mobile Navbar & Dropdown Menu Styling (Oceanic Tech Theme) */
@media (max-width: 991px) {
  /* Toggler button customization for perfect style alignment */
  .navbar-toggler {
    border: 1px solid rgba(0, 55, 255, 0.25) !important;
    background-color: rgba(0, 55, 255, 0.05) !important;
    border-radius: var(--radius-default) !important;
    padding: 7px 9px !important;
    transition: all var(--transition-fast) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(0, 55, 255, 0.25) !important;
    outline: none !important;
  }

  /* Custom high-contrast Blue SVG toggler icon instead of default white */
  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230037ff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    width: 22px !important;
    height: 22px !important;
  }

  /* Floating glassmorphic navigation dropdown card */
  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: var(--space-4);
    right: var(--space-4);
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-radius: var(--radius-lg) !important;
    border: 1px solid rgba(0, 55, 255, 0.1) !important;
    box-shadow: 0 20px 40px rgba(0, 17, 38, 0.15) !important;
    padding: var(--space-5) !important;
    margin-top: 12px;
    z-index: 999;
    opacity: 0;
    transition: all var(--transition-normal);
  }

  .navbar-collapse.collapsing {
    opacity: 0.5;
    transition: height 0.25s ease, opacity 0.2s ease;
  }

  /* Luxurious animation for sliding and fading in the mobile dropdown */
  .navbar-collapse.show {
    opacity: 1;
    animation: slideDownMenu 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

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

  /* Navigation stack list layout in mobile card */
  .navbar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px !important;
    width: 100%;
    margin-bottom: var(--space-4);
    padding-inline-start: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    list-style: none;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 12px var(--space-4) !important;
    border-radius: var(--radius-default);
    color: var(--color-on-surface) !important;
    font-weight: 500;
    font-size: 15px;
    text-align: start !important;
    transition: all 0.2s ease-in-out !important;
    background: transparent !important;
    border: none !important;
  }

  /* Elegant mobile link hover state (Electric blue background shift) */
  .nav-link:hover {
    background: rgba(0, 55, 255, 0.05) !important;
    color: var(--color-primary) !important;
    padding-inline-start: 22px !important;
  }

  /* Elegant mobile active link */
  .nav-link.active {
    background: rgba(0, 55, 255, 0.08) !important;
    color: var(--color-primary) !important;
    font-weight: 600;
    padding-right: 22px !important;
    border-right: 3px solid var(--color-primary) !important;
    border-top-left-radius: var(--radius-default) !important;
    border-bottom-left-radius: var(--radius-default) !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }

  /* Full-width call-to-action button inside mobile menu card */
  .navbar-collapse .btn-primary {
    width: 100% !important;
    padding: 12px !important;
    font-size: 15px;
    justify-content: center !important;
    border-radius: var(--radius-default) !important;
  }

  .navbar-collapse .d-flex {
    margin-right: 0 !important;
    margin-left: 0 !important;
    width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════════
   PREMIUM HERO SECTION & CTA OVERRIDES (Tile.pt & Antigravity Style)
   ═══════════════════════════════════════════════════════════════ */
.hero-section {
  position: relative;
  border-bottom: 1px solid var(--color-surface-container-high);
}

/* Purple text glowing utility */
.text-glow-purple {
  color: var(--color-primary-light) !important;
  text-shadow: 0 0 18px rgba(var(--color-primary-light-rgb), 0.45);
  font-weight: 800;
  transition: color 0.4s ease, text-shadow 0.4s ease;
}

.text-glow-purple:hover {
  color: var(--color-primary) !important;
  text-shadow: 0 0 25px rgba(var(--color-primary-rgb), 0.7);
}

/* Custom interactive key words styling */
.text-gradient {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  transition: filter 0.3s ease;
}

.text-gradient:hover {
  filter: drop-shadow(0 0 8px rgba(var(--color-primary-light-rgb), 0.35));
}

/* Animated custom badge entrance & pulse */
.hero-section .badge-brand-wrapper {
  opacity: 0;
  transform: translateY(-30px);
}

.badge-custom i {
  display: inline-block;
  animation: badgePulse 2s infinite ease-in-out;
}

@keyframes badgePulse {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(var(--color-primary-light-rgb), 0.5));
  }
  50% {
    transform: scale(1.25);
    filter: drop-shadow(0 0 8px rgba(var(--color-primary-light-rgb), 0.9));
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(var(--color-primary-light-rgb), 0.5));
  }
}

/* Primary CTA Button: Animated moving gradient background */
.hero-section .btn-primary {
  position: relative;
  background: linear-gradient(270deg, var(--color-primary), var(--color-primary-light), var(--color-accent)) !important;
  background-size: 600% 600% !important;
  animation: btnGradientShift 8s ease infinite !important;
  border-radius: var(--radius-xl) !important;
  padding: 12px 28px !important;
  box-shadow: 0 10px 24px rgba(var(--color-primary-rgb), 0.22) !important;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease !important;
  overflow: hidden;
}

@keyframes btnGradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-section .btn-primary:hover {
  transform: scale(1.06) translateY(-2px) !important;
  box-shadow: 0 15px 30px rgba(var(--color-primary-light-rgb), 0.38), 0 0 12px rgba(var(--color-primary-rgb), 0.5) !important;
}

.hero-section .btn-secondary {
  border-radius: var(--radius-xl) !important;
  padding: 12px 28px !important;
  background: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid rgba(var(--color-primary-rgb), 0.15) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #1e1e1e !important;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, border-color 0.3s ease !important;
}

.hero-section .btn-secondary:hover {
  transform: scale(1.06) translateY(-2px) !important;
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(99, 102, 241, 0.4) !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05) !important;
}

/* Ripple effect container styling */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: rippleEffect 0.6s linear;
  pointer-events: none;
}

@keyframes rippleEffect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* 3D Isometric custom cursor arrow override */
.custom-cursor-arrow {
  transform: rotateX(22deg) rotateY(-22deg) rotateZ(12deg) !important;
  filter: drop-shadow(4px 4px 6px rgba(140, 0, 255, 0.38)) !important;
}

/* Floating CSS Gradient Orbs (Fallback and extra depth layers) */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: multiply;
  will-change: transform;
}

.orb-1 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, rgba(168, 85, 247, 0.05) 70%);
  top: 10%;
  right: 10%;
  animation: floatOrb1 12s ease-in-out infinite alternate;
}

.orb-2 {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.35) 0%, rgba(99, 102, 241, 0.05) 70%);
  bottom: 15%;
  right: 25%;
  animation: floatOrb2 16s ease-in-out infinite alternate;
}

.orb-3 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, rgba(168, 85, 247, 0.05) 70%);
  top: 40%;
  left: 5%;
  animation: floatOrb3 18s ease-in-out infinite alternate;
}

@keyframes floatOrb1 {
  0% { transform: translateY(0) scale(1) rotate(0deg); }
  100% { transform: translateY(-35px) scale(1.08) rotate(15deg); }
}

@keyframes floatOrb2 {
  0% { transform: translateY(0) scale(1) rotate(0deg); }
  100% { transform: translateY(30px) scale(0.92) rotate(-20deg); }
}

@keyframes floatOrb3 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-25px, -25px) scale(1.15); }
}

/* Hero responsive styling using clamp() */
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem) !important;
  line-height: 1.25 !important;
}

@media (max-width: 991px) {
  #hero-3d-focal-wrapper {
    max-width: 420px !important;
    height: 340px !important;
    margin: 1.5rem auto 0 auto !important;
  }
}

@media (max-width: 767px) {
  .hero-section {
    text-align: center !important;
    padding-top: var(--space-8) !important;
    padding-bottom: var(--space-8) !important;
  }
  .hero-title {
    text-align: center !important;
  }
  .hero-desc {
    text-align: center !important;
    padding-right: 0 !important;
  }
  .hero-ctas {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100%;
  }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-secondary {
    width: 100% !important;
    text-align: center;
  }
  #hero-3d-focal-wrapper {
    width: 100% !important;
    max-width: 360px !important;
    height: 250px !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    margin: 2rem auto 0 auto !important;
  }
  .hero-custom-media-img {
    border-radius: 20px !important;
    animation: none !important;
    border: 2.5px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
  }
  .hero-custom-media-video {
    border-radius: 20px !important;
    border: 2.5px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
  }
}

/* Custom Hero Media Display & Morph Animation */
.hero-custom-media-img,
.hero-custom-media-video {
  opacity: 1 !important;
  transform: none;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45) !important;
}

@keyframes heroMediaEntrance {
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes morphShape {
  0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
  34% { border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%; }
  67% { border-radius: 50% 60% 30% 70% / 60% 40% 70% 30%; }
  100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
}

/* About Us Redesigned Mission Card & Icons */
.about-mission-card {
  background-color: #FFFFFF !important;
  border: 1px solid rgba(99, 102, 241, 0.15) !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02) !important;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.about-mission-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.12), 0 4px 12px rgba(99, 102, 241, 0.04) !important;
}

.about-mission-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
  color: #6366F1;
  font-size: 18px;
  transition: transform 0.3s ease;
}

.about-mission-card:hover .about-mission-icon-wrapper {
  transform: rotate(15deg) scale(1.08);
}

.text-primary-glow {
  color: #6366F1;
  text-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

.text-justify {
  text-align: justify;
  text-justify: inter-word;
}

/* About Page Values Section Cards */
.value-card {
  background-color: #FFFFFF !important;
  border: 1px solid rgba(99, 102, 241, 0.15) !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.04) !important;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.value-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.1), 0 4px 12px rgba(99, 102, 241, 0.03) !important;
}

.value-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
  color: #6366F1;
  font-size: 20px;
  margin: 0 auto var(--space-4);
  transition: transform 0.3s ease;
}

.value-card:hover .value-icon-wrapper {
  transform: rotate(15deg) scale(1.08);
}

/* ==========================================================================
   GLOBAL PROFESSIONAL MOBILE RESPONSIVENESS SUITE (All Devices <= 767px)
   ========================================================================== */

@media (max-width: 767.98px) {
  /* 1. Global Page Headers & Banners */
  .page-header {
    min-height: 200px !important;
    padding: 2.5rem 0 !important;
  }
  .page-header-overlay {
    background: linear-gradient(180deg, rgba(6, 9, 24, 0.78) 0%, rgba(6, 9, 24, 0.92) 100%) !important;
  }
  .page-header h1 {
    font-size: 1.75rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.5rem !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8) !important;
  }
  .banner-text-wrapper {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }
  .banner-breadcrumbs {
    justify-content: center !important;
    flex-wrap: wrap !important;
    font-size: 12px !important;
    margin-bottom: 0.5rem !important;
  }
  .banner-category-badge {
    font-size: 10px !important;
    padding: 3px 10px !important;
  }

  /* 2. Category Filter Tabs Container (Horizontal Touch Scroll for Mobile) */
  .filter-tabs-container {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    padding: 6px 8px !important;
    border-radius: 12px !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important; /* Firefox */
  }
  .filter-tabs-container::-webkit-scrollbar {
    display: none !important; /* Chrome / Safari */
  }
  .filter-tabs-container .portfolio-filter-btn,
  .filter-tabs-container .blog-filter-btn {
    flex: 0 0 auto !important;
    padding: 6px 14px !important;
    font-size: 13px !important;
    border-radius: 8px !important;
  }
  .portfolio-filter-pill {
    display: none !important; /* Disable animated pill on mobile for crisp touch performance */
  }

  /* 3. Cards & Grids on Mobile */
  .portfolio-grid-row,
  .blog-grid-row,
  .services-grid-row {
    row-gap: 1.25rem !important;
  }
  .card-portfolio,
  .blog-card,
  .service-card,
  .value-card,
  .about-mission-card {
    border-radius: 16px !important;
    margin-bottom: 0.5rem !important;
  }
  .card-portfolio .card-image,
  .blog-card .card-image {
    height: 190px !important;
  }
  .card-portfolio .project-title,
  .blog-card .blog-title {
    font-size: 1.15rem !important;
    line-height: 1.35 !important;
  }
  .card-portfolio .project-desc,
  .blog-card .blog-desc {
    font-size: 0.875rem !important;
    line-height: 1.6 !important;
  }

  /* 4. Section Padding & Spacing */
  .section-padding {
    padding: 2.5rem 0 !important;
  }
  h2.display-6, h2.h2, .h2 {
    font-size: 1.6rem !important;
    line-height: 1.3 !important;
  }

  /* 5. Mobile Navbar Navigation Menu */
  .navbar-collapse {
    background: #0d122b !important;
    padding: 1.25rem !important;
    border-radius: 16px !important;
    margin-top: 0.75rem !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4) !important;
  }
  .navbar-nav .nav-link {
    padding: 0.6rem 1rem !important;
    font-size: 15px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.85) !important;
  }
  .navbar-nav .nav-link:hover {
    color: #00d4b3 !important; /* Teal glow on hover */
    background: rgba(255, 255, 255, 0.05) !important;
    padding-right: 1.25rem !important;
  }
  .navbar-nav .nav-link.active {
    color: #a5b4fc !important; /* Soft purple/indigo glow */
    background: rgba(255, 255, 255, 0.08) !important;
    border-right: 3px solid #6366F1 !important;
    border-left: none !important;
  }
  html[dir="ltr"] .navbar-nav .nav-link.active {
    border-right: none !important;
    border-left: 3px solid #6366F1 !important;
    padding-left: 1.25rem !important;
  }
  .navbar-nav .nav-item:last-child .nav-link {
    border-bottom: none !important;
  }
  
  /* Vertical stacking for Lang switcher & CTA button on mobile */
  .navbar-collapse .d-flex {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    width: 100%;
    margin-top: 10px !important;
  }
  .navbar-collapse .lang-toggle-pill {
    width: 100% !important;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
  }
  .navbar-collapse .lang-toggle-opt {
    flex: 1;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7) !important;
  }
  .navbar-collapse .lang-toggle-opt.active {
    color: #ffffff !important;
  }
  .navbar-collapse .lang-toggle-opt:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #00d4b3 !important;
  }


  /* 6. Footer Layout on Mobile */
  footer.footer {
    padding-top: 3rem !important;
    padding-bottom: 1.5rem !important;
    text-align: center !important;
  }
  footer.footer .footer-title {
    margin-bottom: 1rem !important;
    font-size: 1.1rem !important;
  }
  
  /* Testimonial card responsiveness to override inline styling on mobile */
  .testimonial-card {
    width: 290px !important;
    height: auto !important;
    min-height: 280px !important;
  }
}

/* ═══════════════════════════════════════════════ */
/*  Language Switcher Button Styles               */
/* ═══════════════════════════════════════════════ */
.lang-switcher {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  padding: 2px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: 0;
}

.lang-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.lang-btn.active {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 159, 180, 0.3);
}

/* ═══════════════════════════════════════════════ */
/*  LTR (English) Direction Overrides             */
/* ═══════════════════════════════════════════════ */
html[dir="ltr"] body {
  text-align: left;
  direction: ltr;
}

html[dir="ltr"] .navbar-nav {
  margin-left: auto !important;
  margin-right: 0 !important;
}

html[dir="ltr"] .text-lg-start {
  text-align: left !important;
}

html[dir="ltr"] .ms-auto {
  margin-left: auto !important;
  margin-right: 0 !important;
}

html[dir="ltr"] .pe-lg-4 {
  padding-right: 0 !important;
  padding-left: 1.5rem !important;
}

html[dir="ltr"] .footer-links a,
html[dir="ltr"] .footer-contact li {
  text-align: left;
}

/* Fix Bootstrap RTL margin utilities in LTR */
html[dir="ltr"] .me-1 {
  margin-right: 0.25rem !important;
  margin-left: 0 !important;
}

html[dir="ltr"] .ms-lg-3 {
  margin-left: 1rem !important;
  margin-right: 0 !important;
}

/* Coverflow and card adjustments for LTR */
html[dir="ltr"] .coverflow-card,
html[dir="ltr"] .coverflow-portfolio-card,
html[dir="ltr"] .project-showcase-card,
html[dir="ltr"] .testimonial-card.glass-card,
html[dir="ltr"] .service-card-enhanced,
html[dir="ltr"] .blog-article-card {
  text-align: left;
}

/* Reverse flex rows in LTR for elements that should swap text and arrow order */
html[dir="ltr"] .d-flex.align-items-center:has(> .coverflow-circle-btn) {
  flex-direction: row-reverse;
}

/* Flip arrows in LTR to match forward/backward semantic flow */
html[dir="ltr"] .fa-arrow-left:not(.no-flip) {
  transform: scaleX(-1);
  display: inline-block;
}
html[dir="ltr"] .fa-arrow-right:not(.no-flip) {
  transform: scaleX(-1);
  display: inline-block;
}

/* Dynamic positioning for portfolio category filter pill */
.portfolio-filter-pill {
  right: 4px;
  left: auto;
}
html[dir="ltr"] .portfolio-filter-pill {
  left: 4px;
  right: auto;
}

html[dir="ltr"] .hero-section .hero-text-area {
  text-align: left;
}

/* Fix form alignment in LTR */
html[dir="ltr"] .form-control,
html[dir="ltr"] .form-select,
html[dir="ltr"] textarea.form-control {
  text-align: left;
  direction: ltr;
}

/* Fix breadcrumb direction */
html[dir="ltr"] .breadcrumb {
  direction: ltr;
}

/* Contact page form in LTR */
html[dir="ltr"] .contact-info-card {
  text-align: left;
}

/* Project details in LTR */
html[dir="ltr"] .project-detail-card {
  text-align: left;
}

/* Section headers alignment */
html[dir="ltr"] .section-padding .text-center {
  text-align: center !important;
}

/* ════════════════════════════════════════════════════════════════
   ULTRA-PREMIUM BILINGUAL LANGUAGE TOGGLE PILL & CURSOR SYSTEM
   ════════════════════════════════════════════════════════════════ */

/* Language Toggle Pill */
.lang-toggle-pill {
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 50px;
  padding: 3.5px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-bs-theme="dark"] .lang-toggle-pill,
body.dark-mode .lang-toggle-pill {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.lang-toggle-opt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: #475569; /* Highly readable Slate grey in light mode */
  text-decoration: none !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer !important;
  user-select: none;
  line-height: 1;
}

[data-bs-theme="dark"] .lang-toggle-opt,
body.dark-mode .lang-toggle-opt {
  color: rgba(255, 255, 255, 0.7);
}

.lang-toggle-opt:hover {
  color: #6366F1 !important;
  background: rgba(99, 102, 241, 0.08);
}

[data-bs-theme="dark"] .lang-toggle-opt:hover,
body.dark-mode .lang-toggle-opt:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1);
}

.lang-toggle-opt.active {
  background: linear-gradient(135deg, #6366F1 0%, #00c7af 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
  transform: scale(1.02);
}

.lang-toggle-opt .lang-flag {
  font-size: 14px;
  line-height: 1;
  display: inline-block;
  transform: translateY(-0.5px);
}

/* Ensure mouse pointer is ALWAYS visible and clickable in both AR and EN */
html, body {
  cursor: auto !important;
  max-width: 100%;
  overflow-x: hidden;
}

a, button, input, select, textarea, .btn, .nav-link, .lang-toggle-opt, [role="button"] {
  cursor: pointer !important;
}

/* Custom Cursor Elements Guarantee No Click Blocking */
.custom-cursor,
.custom-cursor-follower,
.custom-cursor-ring,
.custom-cursor-arrow {
  pointer-events: none !important;
  user-select: none !important;
}

.custom-cursor {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--color-primary, #6366F1);
  border-radius: 50%;
  z-index: 999999;
  pointer-events: none !important;
  margin-top: -4px;
  margin-left: -4px;
  transition: opacity 0.2s ease, transform 0.1s ease;
}

.custom-cursor-follower {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(99, 102, 241, 0.4);
  border-radius: 50%;
  z-index: 999998;
  pointer-events: none !important;
  transition: opacity 0.2s ease, width 0.25s ease, height 0.25s ease, border-color 0.25s ease;
}

/* Hover effects for custom cursor */
.custom-cursor.hovered {
  transform: scale(1.8);
  background: #00c7af !important;
}

.custom-cursor-follower.hovered {
  width: 44px;
  height: 44px;
  border-color: #00c7af !important;
  background: rgba(0, 199, 175, 0.06);
}

/* ═══════════════════════════════════════════════════════════════
   SAUDI VISION 2030 LOGO ALIGNMENT (HEADER & FOOTER)
   ═══════════════════════════════════════════════════════════════ */
.logo-divider {
  width: 1.5px;
  height: 38px;
  background-color: rgba(99, 102, 241, 0.18);
  margin: 0;
}

.vision-2030-logo {
  height: 38px !important;
  width: auto;
  max-height: 38px;
  object-fit: contain;
  filter: contrast(95%) brightness(100%);
  transition: transform var(--transition-normal), filter var(--transition-normal);
}

.vision-2030-logo:hover {
  transform: scale(1.04) translateY(-0.5px);
  filter: contrast(100%) brightness(105%);
}

.footer-logo-divider {
  width: 2px;
  height: 38px;
  background-color: rgba(255, 255, 255, 0.4);
  margin: 0;
}

.footer-vision-2030-logo {
  height: 46px !important;
  width: auto;
  max-height: 46px;
  object-fit: contain;
  filter: brightness(1.05) drop-shadow(0 0 5px rgba(255, 255, 255, 0.05));
  transition: transform var(--transition-normal), filter var(--transition-normal);
  margin-inline-start: -8px;
}

.footer-vision-2030-logo:hover {
  transform: scale(1.04) translateY(-0.5px);
  filter: brightness(1.2) drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}

@media (max-width: 576px) {
  .vision-2030-logo {
    height: 28px !important;
    max-height: 28px;
  }
  .logo-divider {
    height: 22px;
    margin: 0 4px;
  }
  .footer-vision-2030-logo {
    height: 32px !important;
    max-height: 32px;
  }
  .footer-logo-divider {
    height: 26px;
    margin: 0 4px;
  }
}

/* Compliance & Vision 2030 Banner Styles */
.compliance-banner-wrapper {
  background: rgba(0, 77, 37, 0.25) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 140, 69, 0.4) !important;
  box-shadow: 0 8px 32px rgba(0, 140, 69, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.compliance-banner-wrapper:hover {
  background: rgba(0, 77, 37, 0.35) !important;
  border-color: rgba(0, 180, 85, 0.6) !important;
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(0, 140, 69, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.compliance-banner-img {
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.4s ease;
}

.compliance-banner-wrapper:hover .compliance-banner-img {
  transform: scale(1.02);
  filter: drop-shadow(0 6px 16px rgba(0, 180, 85, 0.4)) !important;
}

@media (max-width: 768px) {
  .compliance-banner-wrapper {
    padding: 0.75rem 1rem !important;
  }
  .compliance-banner-img {
    max-height: 55px !important;
  }
}

@media (max-width: 480px) {
  .compliance-banner-img {
    max-height: 42px !important;
  }
}

/* Direction-aware premium quote card styling */
.premium-quote-card {
  background: rgba(99, 102, 241, 0.04);
  border-inline-start: 4px solid #6366F1 !important;
  border-inline-end: none !important;
  border-top: none !important;
  border-bottom: none !important;
  border-radius: 16px;
}

/* Premium Search Bar enhancements */
.position-relative form .form-control {
  background: var(--color-surface-container-lowest) !important;
  border: 1px solid var(--color-outline-variant) !important;
  border-radius: var(--radius-default) !important;
  padding: 12px 16px;
  font-size: 15px;
  color: var(--color-on-surface);
  transition: all var(--transition-fast) ease-in-out;
}

.position-relative form .form-control:focus {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15) !important;
}

.position-relative button[type="submit"] {
  color: var(--color-primary) !important;
  transition: transform 0.2s, color 0.2s;
}

.position-relative button[type="submit"]:hover {
  transform: scale(1.1);
  color: var(--color-secondary) !important;
}