@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;0,800;1,500&family=DM+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  --radius: 0.625rem;
  
  /* Brand palette mapped from oklch to standard HSL/HEX for simple CSS support */
  --navy: #15102a; /* Deep brand-dark violet tint */
  --primary: oklch(58% .24 285); /* New primary oklch brand color */
  --primary-hover: oklch(50% .24 285);
  --secondary: #f3efff;
  --muted: #f6f4fa;
  --muted-foreground: #7d7890;
  --accent: #f7f1ff;
  --destructive: #d32f2f;
  
  --sky: #8870ff;
  --gold: #bd84ff; /* Accent bright violet glow */
  --gold-foreground: #ffffff;
  --surface: #faf9fc; /* Soft violet-tinted surface */
  
  --font-display: "Playfair Display", Georgia, serif;
  --font-sans: "DM Sans", -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

html {
  font-size: 15px; /* Slightly smaller base size to scale down all typography and spacing proportionally */
}

body {
  font-family: var(--font-sans);
  background-color: #ffffff;
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

.font-mono, code {
  font-family: var(--font-mono);
}

/* Max-width utility classes (Tailwind equivalents to support templates) */
.max-w-xl { max-width: 36rem !important; }
.max-w-2xl { max-width: 42rem !important; }
.max-w-3xl { max-width: 48rem !important; }
.max-w-4xl { max-width: 56rem !important; }
.max-w-5xl { max-width: 64rem !important; }

/* Layout Utilities */
.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.pointer-events-none {
  pointer-events: none !important;
}

.opacity-10 { opacity: 0.1 !important; }
.opacity-20 { opacity: 0.2 !important; }
.opacity-25 { opacity: 0.25 !important; }
.opacity-30 { opacity: 0.3 !important; }
.opacity-40 { opacity: 0.4 !important; }
.opacity-60 { opacity: 0.6 !important; }

.w-fit { width: fit-content !important; }
.h-fit { height: fit-content !important; }

/* Background Gradients & Effects */
.bg-hero-mesh {
  background:
    radial-gradient(at 20% 20%, rgba(108, 79, 255, 0.85) 0px, transparent 50%),
    radial-gradient(at 80% 0%, rgba(189, 132, 255, 0.7) 0px, transparent 50%),
    radial-gradient(at 0% 80%, rgba(21, 16, 42, 0.95) 0px, transparent 50%),
    linear-gradient(135deg, var(--navy), #3a226b);
}

.glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.gradient-cta {
  background: linear-gradient(135deg, var(--primary), var(--navy));
}

.bg-surface {
  background-color: oklch(97.5% .012 285);
}

.bg-secondary {
  background-color: oklch(96% .02 285) !important;
}

.bg-navy {
  background-color: var(--navy) !important;
}

.text-primary {
  color: var(--primary) !important;
}

.bg-primary {
  background-color: var(--primary) !important;
}

.bg-primary.bg-opacity-10 {
  background-color: color-mix(in srgb, var(--primary) 10%, transparent) !important;
}

.bg-primary.bg-opacity-20 {
  background-color: color-mix(in srgb, var(--primary) 20%, transparent) !important;
}

.bg-primary.bg-opacity-15 {
  background-color: color-mix(in srgb, var(--primary) 15%, transparent) !important;
}

.bg-primary.bg-opacity-5 {
  background-color: color-mix(in srgb, var(--primary) 5%, transparent) !important;
}

.border-primary {
  border-color: var(--primary) !important;
}

.text-gold {
  color: var(--gold) !important;
}

.text-navy {
  color: var(--navy) !important;
}

/* Custom Overrides & UI Elements */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  font-weight: 500;
  border-radius: var(--radius);
  padding: 0.6rem 1.5rem;
  transition: all 0.3s ease;
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-outline-white {
  color: #ffffff;
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius);
  padding: 0.6rem 1.5rem;
  transition: all 0.3s ease;
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: #ffffff;
}

.btn-gold {
  background-color: var(--gold);
  color: #ffffff;
  border-radius: var(--radius);
  padding: 0.6rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-gold:hover {
  background-color: #aa6eff;
  color: #ffffff;
}

.card-custom {
  background: #ffffff;
  border: 1px solid #eae6f0;
  border-radius: var(--radius);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.card-custom:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(21, 16, 42, 0.08);
}

.service-card {
  border-radius: var(--radius);
  border: 1px solid #eae6f0;
  background: #ffffff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(21, 16, 42, 0.08);
  border-left: 4px solid var(--gold);
}

/* Service Card Icon Container Hover Transitions */
.service-card .rounded-3.bg-primary {
  background-color: color-mix(in srgb, var(--primary) 10%, transparent) !important;
  color: var(--primary) !important;
  transition: all 0.3s ease;
}

.service-card:hover .rounded-3.bg-primary {
  background-color: var(--primary) !important;
  color: #ffffff !important;
}

.service-card:hover .rounded-3.bg-primary svg,
.service-card:hover .rounded-3.bg-primary i {
  color: #ffffff !important;
}

.badge-custom {
  background-color: var(--secondary);
  color: var(--primary);
  font-weight: 500;
  border-radius: 20px;
  padding: 0.4em 0.8em;
}

.text-muted-custom {
  color: var(--muted-foreground);
}

/* Navbar customizations */
.navbar-custom {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #f0edf5;
  transition: all 0.3s ease;
}

.navbar-custom.scrolled {
  box-shadow: 0 4px 20px rgba(21, 16, 42, 0.05);
}

.dropdown-menu-custom {
  border-radius: 12px;
  border: 1px solid #eae6f0;
  box-shadow: 0 10px 40px rgba(21, 16, 42, 0.1);
  padding: 1rem;
}

/* Floating Actions & Cookie banner */
.floating-whatsapp {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 2000;
  background-color: #25D366;
  color: white !important;
  border-radius: 50px;
  padding: 0.75rem 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}
.floating-whatsapp:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.floating-top {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  z-index: 2000;
  background-color: var(--navy);
  color: white;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  cursor: pointer;
}
.floating-top:hover {
  background-color: var(--primary);
}

.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--navy);
  color: white;
  z-index: 2050;
  padding: 1rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
}

/* Breadcrumbs style */
.breadcrumb-custom .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
  content: "/";
}

.breadcrumb-custom-light .breadcrumb-item + .breadcrumb-item::before {
  color: var(--muted-foreground);
  content: "/";
}

/* Timeline/Milestones */
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(185deg, var(--primary) 0%, rgba(108, 79, 255, 0.1) 100%);
  transform: translateX(-50%);
}

@media (max-width: 767.98px) {
  .timeline-line {
    display: none;
  }
}

/* Responsive Image Containers */
.why-us-img-container {
  height: 300px;
}
@media (min-width: 992px) {
  .why-us-img-container {
    height: 550px;
  }
}

.process-img-container {
  height: 250px;
}
@media (min-width: 992px) {
  .process-img-container {
    height: 350px;
  }
}

.about-story-img-container {
  height: 300px;
}
@media (min-width: 992px) {
  .about-story-img-container {
    height: 450px;
  }
}

.leader-img-container {
  aspect-ratio: 4/4;
  width: 100%;
  height: auto;
}

.service-work-img-container {
  height: 280px;
}
@media (min-width: 992px) {
  .service-work-img-container {
    height: 380px;
  }
}

.industry-overview-img-container {
  height: 280px;
}
@media (min-width: 992px) {
  .industry-overview-img-container {
    height: 380px;
  }
}

/* Responsive Typography Adjustments for Small Screens */
@media (max-width: 767.98px) {
  h1, .display-4 {
    font-size: 2.25rem !important;
  }
  h2, .display-5 {
    font-size: 1.75rem !important;
  }
  h3, .display-6 {
    font-size: 1.45rem !important;
  }
}

/* Global Overflow Controls to Prevent Horizontal Scrollbars */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Spacing Adapters (Tailwind-like Decimal Classes mapped for BS5 compatibility) */
.py-2\.5 {
  padding-top: 0.625rem !important;
  padding-bottom: 0.625rem !important;
}
.py-1\.5 {
  padding-top: 0.375rem !important;
  padding-bottom: 0.375rem !important;
}
.mt-0\.5 {
  margin-top: 0.125rem !important;
}

/* Navbar Mega Dropdown styles for desktop */
@media (min-width: 992px) {
  .dropdown-menu-services {
    width: 560px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    padding: 1rem !important;
  }
  .dropdown-menu-industries {
    width: 640px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    padding: 0.75rem !important;
  }
  /* Show dropdown menus on hover */
  .navbar-nav .nav-item.dropdown:hover .dropdown-menu {
    display: block !important;
    margin-top: 0;
  }
}

/* Dropdown Menu Item layout mimicking React's Navbar */
.dropdown-item-mega {
  display: flex !important;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem !important;
  border-radius: 8px;
  background: transparent;
  transition: all 0.2s ease;
  white-space: normal !important;
  text-decoration: none;
}

.dropdown-item-mega:hover {
  background-color: var(--surface) !important;
}

.dropdown-item-mega .icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background-color: rgba(108, 79, 255, 0.1);
  color: var(--primary);
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.dropdown-item-mega .item-title {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}

.dropdown-item-mega:hover .item-title {
  color: var(--primary);
}

.dropdown-item-mega .item-desc {
  display: block;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 0.125rem;
  font-weight: 400;
}

/* Mobile responsive drop-down configurations */
@media (max-width: 991.98px) {
  .dropdown-menu-services, .dropdown-menu-industries {
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    width: 100% !important;
    transform: none !important;
    left: 0 !important;
  }
  .dropdown-item-mega {
    padding: 0.5rem !important;
  }
  .dropdown-item-mega .icon-container {
    width: 32px;
    height: 32px;
  }
}

/* Testimonial Carousel indicators customization */
#testimonialCarousel .carousel-indicators button {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  border: none !important;
  background-color: var(--muted-foreground) !important;
  opacity: 0.3 !important;
  transition: all 0.3s ease !important;
  margin: 0 4px !important;
}

#testimonialCarousel .carousel-indicators button.active {
  width: 32px !important;
  border-radius: 4px !important;
  background-color: var(--primary) !important;
  opacity: 1 !important;
}

/* Custom Social Media Icon Buttons in Footer */
.social-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px !important;
  background-color: rgba(255, 255, 255, 0.05) !important;
  color: #ffffff !important;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon-btn:hover {
  background-color: var(--primary) !important;
  color: #ffffff !important;
}

/* Brand Logo Card Styling matching React */
.brand-logo-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.brand-logo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(21, 16, 42, 0.08) !important;
}
.brand-logo-card img {
  transition: transform 0.3s ease;
}
.brand-logo-card:hover img {
  transform: scale(1.1);
}
.brand-text-fallback {
  height: 40px;
  width: 40px;
  border-radius: 6px;
  background-color: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: bold;
  font-size: 1.25rem;
}

/* Tailwind Gradient Compatibility Classes */
.bg-gradient-to-br.from-primary.to-navy {
  background: linear-gradient(135deg, var(--primary), var(--navy)) !important;
}

.bg-gradient-to-tr.from-sky.to-gold {
  background: linear-gradient(45deg, var(--sky), var(--gold)) !important;
}

/* Premium Full-Screen Mobile Menu Overlay */
@media (max-width: 991.98px) {
  body.menu-open {
    overflow: hidden !important;
  }

  body.menu-open .navbar-custom {
    background-color: #ffffff !important;
    backdrop-filter: none !important;
    border-bottom: 1px solid rgba(21, 16, 42, 0.08) !important;
  }
  
  .navbar-collapse {
    position: fixed !important;
    top: 70px !important; /* sits precisely below header to prevent overlaps */
    left: 0 !important;
    width: 100% !important;
    height: calc(100vh - 70px) !important;
    height: calc(100dvh - 70px) !important;
    background-color: #ffffff !important;
    z-index: 1070 !important;
    padding: 1.5rem !important;
    overflow-y: auto !important;
    display: none;
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar-collapse.show,
  .navbar-collapse.collapsing {
    display: flex !important;
  }

  .navbar-collapse .navbar-nav {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
  }

  .navbar-collapse .dropdown-menu {
    position: static !important;
    float: none !important;
    background-color: rgba(108, 79, 255, 0.03) !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0.5rem 1rem !important;
    width: 100% !important;
    margin: 0.5rem 0 !important;
    border-radius: 12px !important;
  }

  .navbar-collapse .dropdown-item-mega {
    padding: 0.65rem 0.5rem !important;
  }

  .navbar-collapse .dropdown-item-mega .item-desc {
    display: none !important;
  }

  .navbar-toggler:focus {
    outline: none !important;
    box-shadow: none !important;
  }

  .navbar-collapse > .d-flex {
    width: 100% !important;
    margin-top: 1.5rem !important;
    padding-top: 1.5rem !important;
    border-top: 1px solid rgba(21, 16, 42, 0.05);
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1rem !important;
  }

  .navbar-collapse > .d-flex a.text-navy {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    width: auto !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }

  .navbar-collapse > .d-flex a.btn-primary {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 0.8rem 1.5rem !important;
  }

  /* Bulletproof Close Button Icon styling when menu is open: Thin & Clean stroke */
  body.menu-open .navbar-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' stroke='%234b5563' stroke-width='1.5' stroke-linecap='round'%3e%3cline x1='3' y1='3' x2='13' y2='13'/%3e%3cline x1='13' y1='3' x2='3' y2='13'/%3e%3c/svg%3e") !important;
  }
}

/* Intermediate screen optimizations (992px - 1199px) to prevent navbar wrapping */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .navbar-custom .navbar-nav {
    gap: 0.75rem !important;
  }
  .navbar-custom .nav-link {
    font-size: 0.9rem !important;
    padding-left: 0.25rem !important;
    padding-right: 0.25rem !important;
  }
}



