/* Global Styles */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
  /* Offset for fixed navbar */
}

body {
  font-family: 'Outfit', sans-serif;
  color: #333;
  overflow-x: hidden;
}

/* Color Variables */
:root {
  --primary-color: #2563eb;
  --primary-dark: #1e40af;
  --accent-color: #06b6d4;
  --dark-color: #0f172a;
  --primary-gradient: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
}

/* Custom Color Classes for utility use */
.bg-purple-subtle {
  background-color: #f3e8ff;
}

.text-purple {
  color: #9333ea;
}

.bg-teal-subtle {
  background-color: #ccfbf1;
}

.text-teal {
  color: #0d9488;
}

.bg-blue-subtle {
  background-color: #dbeafe;
}

.bg-orange-subtle {
  background-color: #ffedd5;
}

.text-orange {
  color: #ea580c;
}

.bg-pink-subtle {
  background-color: #fce7f3;
}

.text-pink {
  color: #db2777;
}

/* Brand Colors for Home Tagline */
.text-brand-gold {
  color: #deb013 !important;
  /* Update to match specific brand gold */
}

.text-brand-green {
  color: #59863d !important;
  /* Update to match specific brand green */
}

/* Service Colors */
.bg-gold-subtle {
  background-color: #fae0c5 !important;
}

.text-gold {
  color: #d97706 !important;
}

.bg-green-subtle {
  background-color: #dcfce7 !important;
}

.text-green {
  color: #16a34a !important;
}

/* Gradients */
.bg-primary-gradient {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
}

.text-primary-gradient {
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-gradient-blob {
  background: radial-gradient(circle at top right,
      #3b82f633 0%,
      transparent 40%),
    radial-gradient(circle at bottom left, #8b5cf633 0%, transparent 40%);
}

/* Buttons */
.btn-primary-gradient {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: white;
  border: none;
  transition: all 0.3s ease;
}

.btn-primary-gradient:hover {
  background: linear-gradient(135deg, #1e40af 0%, #4338ca 100%);
  transform: translateY(-2px);
  color: white;
}

/* Hero Section */
/* Hero Modern Background */
.hero-section {
  position: relative;
  background-color: #f8fafc;
  overflow: hidden;
}

/* Modern Animated Gradient Background */
.bg-gradient-modern {
  position: absolute;
  width: 150%;
  height: 150%;
  top: -25%;
  left: -25%;
  background: radial-gradient(circle at 50% 50%,
      rgba(37, 99, 235, 0.1) 0%,
      rgba(6, 182, 212, 0.05) 30%,
      transparent 70%);
  animation: pulseGradient 15s ease infinite;
  z-index: 0;
}

@keyframes pulseGradient {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

/* Glassmorphism for floating elements */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.text-gradient {
  background: linear-gradient(to right, #2563eb, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Cards & Hover Effects */
.hover-lift {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hover-lift:hover {
  transform: translateY(-5px);
}

.hover-shadow-lg:hover {
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1) !important;
}

.service-card {
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
  border-color: rgba(37, 99, 235, 0.1);
}

/* Animations */
.shadow-3d {
  box-shadow: 20px 20px 60px #d1d5db, -20px -20px 60px #ffffff;
}

.floating-card {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px) translateX(0%);
  }

  50% {
    transform: translateY(-15px) translateX(0%);
  }

  100% {
    transform: translateY(0px) translateX(0%);
  }
}

.pivot-hover {
  transition: all 0.5s ease;
}

.pivot-hover:hover {
  transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
}

/* Utilities */
.letter-spacing-2 {
  letter-spacing: 2px;
}

.hover-white:hover {
  color: white !important;
}

/* Navbar */
.navbar {
  padding: 1rem 0;
  transition: all 0.3s ease;
}

/* Mobile Menu Background */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: white;
    padding: 1rem;
    margin: 0.5rem -1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  /* Dark theme overrides */
  .navbar-dark .navbar-collapse {
    background: transparent;
    box-shadow: none;
  }

  .navbar-nav {
    padding: 1rem 0;
  }

  .nav-item {
    margin: 0.5rem 0;
  }

  .nav-link {
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem;
    color: #333;
  }

  .navbar-dark .nav-link {
    color: rgba(255, 255, 255, 0.9);
  }

  .nav-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
  }

  .navbar-dark .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
  }

  .navbar-dark .nav-link.active {
    color: white;
    font-weight: 500;
  }

  .navbar-toggler:focus {
    box-shadow: none;
    outline: none;
  }
}

.navbar.bg-dark {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  /* User requested White background with Blur */
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  /* Added shadow for better visibility against white content */
}

/* User requested menu font to be Blue when scrolled */
.navbar.bg-dark .nav-link {
  color: var(--primary-color) !important;
  font-weight: 600;
}

/* Ensure the mobile toggle icon is visible (Blue) on the white background */
.navbar.bg-dark .navbar-toggler {
  border-color: rgba(37, 99, 235, 0.1);
}

.navbar.bg-dark .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='rgba(37, 99, 235, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Navbar Logo Handling */
.navbar-brand img {
  transition: filter 0.3s ease;
}

/* Navbar Light (Top): Show original logo */
.navbar-light .navbar-brand img {
  filter: none;
}

/* Navbar Dark (Scrolled): Show original logo (or adjust if needed, but user requested original) */
.navbar-dark .navbar-brand img {
  filter: none;
}

.navbar-nav .nav-link {
  transition: color 0.3s ease;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
  color: var(--primary-color) !important;
  font-weight: 700;
}

/* Responsive Typography & Spacing */
@media (max-width: 991px) {
  .display-3 {
    font-size: 2.2rem;
    /* Smaller heading on tablet/mobile */
    font-weight: 700;
  }

  .hero-section {
    padding-top: 100px;
    /* Extra space for fixed nav on mobile */
    padding-bottom: 50px;
    text-align: center;
  }

  .hero-section p.lead {
    font-size: 1rem;
    margin-bottom: 2rem !important;
  }

  .hero-section .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .hero-section .d-flex.gap-3 {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .display-3 {
    font-size: 1.8rem;
  }

  .hero-section {
    padding-top: 80px;
  }

  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Modern Helpers */
.rotate-lg-3 {
  transform: rotate(2deg);
}

.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: rotate(0deg) scale(1.02);
}

.blur-3xl {
  filter: blur(64px);
}

.w-125 {
  width: 125%;
}

.h-125 {
  height: 125%;
}

/* Input Styles */
.form-control:focus {
  box-shadow: none;
  border-color: var(--primary-color);
}

.accordion-button:not(.collapsed) {
  background-color: #f8fafc;
  color: #2563eb;
}

/* Spinner for buttons */
.spinner-border-sm {
  width: 1rem;
  height: 1rem;
  border-width: 0.2em;
}

.toast-message {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #16a34a;
  color: #fff;
  padding: 14px 22px;
  border-radius: 10px;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s ease;
  z-index: 9999;
}

.toast-message.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Client Logos Grayscale */
.grayscale-icons img {
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

/* Footer Styles */
.footer-gradient {
  background: linear-gradient(to bottom, #ffffff 0%, #eff6ff 100%);
  border-top: 1px solid #e2e8f0;
}

.hover-primary:hover {
  color: var(--primary-color) !important;
  font-weight: 600;
}

/* Subscribe Input update for light footer */
.footer-gradient .form-control {
  background-color: white;
  border: 1px solid #cbd5e1;
  color: #333;
}

/* Logo Slider */
.logo-slider {
  height: 140px;
  margin: auto;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.logo-slider::before,
.logo-slider::after {
  background: linear-gradient(to right, white 0%, rgba(255, 255, 255, 0) 100%);
  content: '';
  height: 140px;
  position: absolute;
  width: 150px;
  z-index: 2;
}

.logo-slider::after {
  right: 0;
  top: 0;
  transform: rotateZ(180deg);
}

.logo-slider::before {
  left: 0;
  top: 0;
}

.slide-track {
  animation: scroll 30s linear infinite;
  display: flex;
  width: calc(280px * 12);
  /* 280px * number of slides (6 originals + 6 duplicates) */
}

.slide {
  height: 140px;
  width: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
}

.logo-container {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  width: 100%;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.logo-container:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-color);
}

.logo-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.logo-container:hover img {
  opacity: 1;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-280px * 6));
    /* Scroll width of original set */
  }
}

/* Mobile Adjustments for Logo Slider */
@media (max-width: 768px) {
  .logo-slider {
    height: 110px;
  }

  .slide {
    width: 180px;
    height: 110px;
    padding: 0 10px;
  }

  .logo-container {
    height: 90px;
    padding: 8px;
  }

  .slide-track {
    width: calc(180px * 12);
  }

  @keyframes scroll {
    0% {
      transform: translateX(0);
    }

    100% {
      transform: translateX(calc(-180px * 6));
    }
  }
}

/* Fix for potential overflow on very small devices */
@media (max-width: 380px) {
  .display-3 {
    font-size: 1.6rem;
  }

  .hero-section p.lead {
    font-size: 0.95rem;
  }
}

/* Career Section Styles */
.job-card {
  cursor: pointer;
}

.job-card .btn-outline-primary:hover {
  color: white !important;
}

.modal-content {
  border-radius: 20px;
  border: none;
  overflow: hidden;
}

.modal-header {
  background: var(--primary-gradient);
  border-bottom: none;
  padding: 1.25rem 1.5rem;
}

/* Ensure images in trust indicators look good */
.grayscale-icons img {
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
  max-width: 120px;
}

.grayscale-icons img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.modal-body {
  padding: 1.5rem;
}

.jd-section-title {
  color: var(--dark-color);
  font-weight: 700;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.jd-list {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.jd-list li {
  margin-bottom: 0.5rem;
  color: #4b5563;
}

.job-meta-badge {
  background: #f1f5f9;
  color: #475569;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Modal Close Button Enhancement */
.modal-header .btn-close {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  opacity: 0.8;
  transition: all 0.3s ease;
  padding: 0.5rem;
  background-size: 10px;
}

.modal-header .btn-close:hover {
  background-color: rgba(255, 255, 255, 0.4);
  opacity: 1;
  transform: rotate(90deg);
}

.modal-content {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Dropdown Hover Logic for Desktop */
@media (min-width: 992px) {
  .nav-item.dropdown:hover>.dropdown-menu {
    display: block;
    margin-top: 0;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 0.75rem;
  }

  .dropdown-item {
    border-radius: 8px;
    padding: 0.6rem 1rem;
    transition: all 0.2s ease;
    font-weight: 500;
    color: #475569;
  }

  .dropdown-item:hover {
    background-color: #f1f5f9;
    color: var(--primary-color);
    transform: translateX(5px);
  }
}

/* Mobile Dropdown Styling */
@media (max-width: 991.98px) {
  .dropdown-menu {
    border: none;
    box-shadow: none;
    background-color: #f8fafc;
    padding-left: 1rem;
    margin-top: 0.5rem;
  }
}

/* New Page Section Styles */
.section-title-wrapper {
  margin-bottom: 3rem;
}

.feature-list-item {
  padding: 1.25rem;
  background: white;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  height: 100%;
}

.feature-list-item:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-color);
  transform: translateY(-5px);
}

.icon-box-sm {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.25rem;
}