@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* CRITICAL: Prevent horizontal scroll, allow ONE vertical scrollbar */
html {
  overflow-x: hidden !important;
  overflow-y: auto;
  width: 100%;
  max-width: 100vw;
  height: 100%;
  /* Don't clip positioned elements like dropdowns */
  position: relative;
}

body {
  font-family: 'Poppins', system-ui, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden !important;
  overflow-y: auto;
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  position: relative;
}

/* CSS Variables */
:root {
  /* Brand palette: purple  blue */
  --primary: #2575FC;          /* Blue */
  --primary-hover: #1d4ed8;    /* Darker blue */
  --secondary: #6A11CB;        /* Purple */
  --secondary-hover: #7c3aed;  /* Darker purple */
  --background: #ffffff;
  --foreground: #1f2937;
  --border: #e5e7eb;
  --radius: 0.5rem;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Prevent horizontal scroll everywhere */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

* {
  box-sizing: border-box;
}

/* Prevent overflow at all zoom levels */
img, video, iframe, embed, object {
  max-width: 100% !important;
  height: auto;
}

/* Prevent horizontal overflow on ALL elements */
*, *::before, *::after {
  box-sizing: border-box !important;
}

/* Prevent only HORIZONTAL overflow */
main, section, footer, article, aside {
  overflow-x: hidden !important;
}

/* Ensure header never causes any overflow or scrollbar - but allow dropdown to overflow */
header {
  max-width: 100vw !important;
  width: 100% !important;
  overflow: visible !important;
  overflow-y: visible !important;
  overflow-x: hidden !important;
  height: auto !important;
  max-height: none !important;
  z-index: 999997 !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  /* Absolutely prevent ANY scrolling */
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

/* Ensure nav doesn't create scrollbar but allows dropdown */
header nav {
  overflow: visible !important;
  overflow-y: visible !important;
  overflow-x: hidden !important;
  height: auto !important;
}

/* Hide scrollbar completely in header - ALL browsers */
header::-webkit-scrollbar,
header *::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

header,
header * {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

/* CRITICAL: Prevent vertical scrolling on ALL header elements */
header,
header nav,
header .container-custom,
header .header-container,
header .flex,
header div:not(.services-dropdown):not(.mobile-services-menu):not(#mobileMenu),
header a,
header button {
  overflow: visible !important;
  overflow-y: visible !important;
  overflow-x: hidden !important;
  max-height: none !important;
  height: auto !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

/* Force header to NEVER scroll */
header {
  overflow: visible !important;
  overflow-y: visible !important;
  overflow-x: hidden !important;
}

/* Exception: Services dropdowns CAN scroll INTERNALLY */
header .services-dropdown,
header .mobile-services-menu {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  max-height: 400px;
}

/* Ensure header content doesn't overflow */
header .container-custom {
  overflow: visible !important;
}

header .header-container {
  overflow: visible !important;
}

/* Mobile menu can scroll independently */
.mobile-nav {
  overflow-y: auto;
  max-height: calc(100vh - 70px);
}

/* Ensure main content doesn't overlap dropdown */
main {
  position: relative;
  z-index: 1;
  /* Add padding for fixed header */
  padding-top: 80px;
}

/* CRITICAL: Force ALL main content to stay below dropdown */
main *:not(.services-dropdown):not(.services-dropdown *),
section *:not(.services-dropdown):not(.services-dropdown *),
footer *:not(.services-dropdown):not(.services-dropdown *) {
  z-index: auto !important;
  max-height: none !important;
}

/* Cap z-index for ANY element in main content */
main [style*="z-index"],
main .modal,
main .overlay,
main .popup,
section [style*="z-index"],
footer [style*="z-index"] {
  z-index: 100 !important;
  max-height: none !important;
}

/* Ensure no element in main clips the header dropdown */
main > * {
  position: relative;
  z-index: auto !important;
}

/* Account menu - simple toggle with same height */
#accountMenu {
  display: none;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  height: auto;
  white-space: nowrap;
}

#accountButton {
  overflow: visible !important;
  height: auto;
}

/* Ensure account menu options maintain same height */
#accountMenu a {
  height: auto;
  display: flex;
  align-items: center;
}

/* Ensure right side actions don't create scrollbar */
header .hidden.lg\:flex.items-center {
  height: auto !important;
}

/* Allow dropdown to overflow header */
header .relative {
  overflow: visible;
  position: relative !important;
}

/* Hide scrollbar in logo area */
header .flex.items-center.flex-shrink-0:first-of-type,
header .flex.items-center.flex-shrink-0:first-of-type *,
header a[href*="index"],
header a[href*="index"] * {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

header .flex.items-center.flex-shrink-0:first-of-type::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
}

/* Hide scrollbar in account area */
#accountButton::-webkit-scrollbar,
#accountMenu::-webkit-scrollbar,
header .relative::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Force no scrollbar on all header children */
header div::-webkit-scrollbar,
header nav::-webkit-scrollbar,
header button::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Remove duplicate - already defined at top of file */

/* Component Styles */
.btn-primary {
  background-color: var(--primary);
  color: white;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--secondary);
  color: white;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-secondary:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-1px);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
}

.btn-secondary {
  background-color: var(--secondary);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-secondary:hover {
  background-color: rgba(0, 31, 63, 0.9);
  transform: translateY(-1px);
}

.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 15px -3px rgba(0, 0, 0, 0.07);
  border: 1px solid #f3f4f6;
  padding: 1.5rem;
  min-height: auto;
  height: auto;
}

.input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: var(--radius);
  outline: none;
  transition: all 0.2s ease;
}

.input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 117, 252, 0.18);
}

.section-padding {
  padding: 4rem 1rem;
}

@media (min-width: 640px) {
  .section-padding {
    padding: 4rem 1.5rem;
  }
}

@media (min-width: 1024px) {
  .section-padding {
    padding: 4rem 2rem;
  }
  .container-custom {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
  }
}

@media (min-width: 1600px) {
  .container-custom {
    max-width: 1600px;
    padding: 0 3rem;
  }
}

@media (max-width: 1024px) {
  .container-custom {
    padding: 0 1.5rem;
  }
}

@media (max-width: 768px) {
  .container-custom {
    padding: 0 1rem;
  }
}

.container-custom {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
  box-sizing: border-box;
}

/* Allow header container to show dropdown */
header .container-custom {
  overflow: visible !important;
}

/* Prevent horizontal scroll on non-header containers */
main .container-custom,
section .container-custom,
footer .container-custom {
  overflow-x: hidden;
}

@media (max-width: 1280px) {
  .container-custom {
    max-width: 100% !important;
    padding: 0 1rem;
  }
  
  /* Prevent horizontal scroll only on non-header containers */
  main .container-custom,
  section .container-custom,
  footer .container-custom {
    overflow-x: hidden !important;
  }
}

/* Flex containers should not overflow */
.flex {
  max-width: 100% !important;
}

/* Allow header flex containers to overflow for dropdown */
header .flex {
  overflow: visible !important;
}

/* Prevent horizontal scroll on non-header flex containers */
main .flex,
section .flex,
footer .flex {
  overflow-x: hidden !important;
}

/* Ensure nav elements don't overflow */
main nav,
section nav,
footer nav {
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

/* ============================================
   RESPONSIVE HEADER STYLES FOR ALL DEVICES
   ============================================ */

/* Mobile First - Base styles (320px+) */
header {
  padding: 0.5rem 0 !important;
}

header .container-custom {
  padding: 0 0.75rem !important;
}

.header-container {
  min-height: 70px;
  max-height: none !important;
  padding: 0.75rem 0;
  overflow: visible !important;
  overflow-y: visible !important;
  overflow-x: hidden !important;
  height: auto !important;
  /* Lock the container height - prevent expansion */
  contain: layout !important;
}

.header-container::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.header-container * {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  overflow-y: visible !important;
}

/* Prevent ANY header child from scrolling vertically */
header *:not(.services-dropdown):not(.mobile-services-menu):not(#mobileMenu),
header *:not(.services-dropdown):not(.mobile-services-menu):not(#mobileMenu)::before,
header *:not(.services-dropdown):not(.mobile-services-menu):not(#mobileMenu)::after {
  overflow-y: visible !important;
  overflow-x: hidden !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

/* Logo section - no scroll */
header .flex.items-center.flex-shrink-0,
header a[href*="index"],
header .flex.items-center.gap-3 {
  overflow: visible !important;
  overflow-y: visible !important;
  overflow-x: hidden !important;
}

/* Navigation links - no scroll */
header .hidden.lg\:flex.items-center,
header .nav-link {
  overflow: visible !important;
  overflow-y: visible !important;
}

/* Right side actions - no scroll */
header .hidden.lg\:flex.items-center.flex-shrink-0:last-of-type {
  overflow: visible !important;
  overflow-y: visible !important;
}

/* Small Mobile (up to 480px) */
@media (max-width: 480px) {
  header .container-custom {
    padding: 0 0.5rem !important;
  }
  
  .header-container > div:first-child {
    max-width: 200px !important;
    gap: 0.5rem !important;
  }
  
  .header-container > div:first-child img {
    width: 40px !important;
    height: 40px !important;
  }
  
  .header-container > div:first-child .flex-col {
    max-width: 140px !important;
  }
  
  .header-container > div:first-child .flex-col > div:first-child {
    font-size: 14px !important;
  }
  
  .header-container > div:first-child .flex-col > div:last-child {
    font-size: 9px !important;
  }
  
  .nav-link {
    font-size: 14px !important;
    padding: 0.5rem !important;
  }
  
  .btn-primary, .btn-outline {
    font-size: 12px !important;
    padding: 0.4rem 0.75rem !important;
  }
}

/* Mobile/Tablet Portrait (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  header .container-custom {
    padding: 0 1rem !important;
  }
  
  .header-container {
    min-height: 75px;
    padding: 0.875rem 0;
  }
  
  .nav-link {
    font-size: 14px !important;
    padding: 0.6rem !important;
  }
}

/* Tablet Landscape (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  header .container-custom {
    padding: 0 1.5rem !important;
  }
  
  .header-container {
    min-height: 80px;
    padding: 0.875rem 0;
  }
  
  .nav-link {
    font-size: 15px !important;
    padding: 0.75rem 1rem !important;
  }
  
  .btn-primary, .btn-outline {
    font-size: 13px !important;
    padding: 0.5rem 1rem !important;
  }
}

/* Small Laptop (1025px - 1280px) */
@media (min-width: 1025px) and (max-width: 1280px) {
  header .container-custom {
    padding: 0 2rem !important;
  }
  
  .header-container {
    min-height: 85px;
    padding: 1rem 0;
  }
  
  .nav-link {
    font-size: 15px !important;
    padding: 0.75rem 1.25rem !important;
  }
}

/* Desktop (1281px+) */
@media (min-width: 1281px) {
  header .container-custom {
    padding: 0 2rem !important;
  }
  
  .header-container {
    min-height: 90px;
    padding: 1rem 0;
  }
  
  .nav-link {
    font-size: 16px !important;
    padding: 0.75rem 1.5rem !important;
  }
  
  .btn-primary, .btn-outline {
    font-size: 14px !important;
    padding: 0.625rem 1.25rem !important;
  }
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: flex !important;
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: all 0.2s;
}

.mobile-menu-btn:hover {
  background-color: #f3f4f6;
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none !important;
  }
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  max-height: calc(100vh - 70px);
  overflow-y: auto;
  z-index: 40;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #f3f4f6;
  transition: all 0.2s;
}

.mobile-nav a:hover {
  background-color: #f9fafb;
  color: var(--primary);
}

@media (min-width: 768px) {
  .mobile-nav {
    top: 75px;
    max-height: calc(100vh - 75px);
  }
}

@media (min-width: 1024px) {
  .mobile-nav {
    display: none !important;
  }
}

/* ============================================
   SPACING UTILITIES FOR ALL DEVICES
   ============================================ */

/* Base spacing */
.section-spacing {
  padding: 2rem 0;
}

@media (min-width: 768px) {
  .section-spacing {
    padding: 3rem 0;
  }
}

@media (min-width: 1024px) {
  .section-spacing {
    padding: 4rem 0;
  }
}

/* Container max-widths for different devices */
@media (max-width: 640px) {
  .container-custom {
    max-width: 100% !important;
  }
}

@media (min-width: 641px) and (max-width: 768px) {
  .container-custom {
    max-width: 95% !important;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .container-custom {
    max-width: 90% !important;
  }
}

/* Card spacing */
.card {
  margin: 0.5rem;
}

@media (min-width: 768px) {
  .card {
    margin: 1rem;
  }
}

/* Grid responsive gaps */
.grid-responsive {
  gap: 1rem;
}

@media (min-width: 768px) {
  .grid-responsive {
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .grid-responsive {
    gap: 2rem;
  }
}

.text-gradient {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Premium static gradient for hero-mix headings (no blinking across pages)
   Unique tri-color gradient tuned for the brand */
.hero-mix,
.hero-mix[class*="mix-"] {
	background-image: linear-gradient(90deg, #0EA5E9, #2563EB, #9333EA) !important; /* teal  blue  violet */
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

.hero-gradient {
	background: linear-gradient(135deg, rgba(30, 58, 138, 0.12), white, rgba(109, 40, 217, 0.12));
}

/* ============================================
   RESPONSIVE TYPOGRAPHY FOR ALL DEVICES
   ============================================ */

/* Headings */
h1 {
  font-size: 2rem;
  line-height: 1.2;
}

h2 {
  font-size: 1.75rem;
  line-height: 1.3;
}

h3 {
  font-size: 1.5rem;
  line-height: 1.4;
}

@media (min-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 1.75rem;
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.25rem;
  }
  
  h3 {
    font-size: 1.875rem;
  }
}

/* Body text */
p {
  font-size: 0.875rem;
  line-height: 1.6;
}

@media (min-width: 768px) {
  p {
    font-size: 1rem;
  }
}

@media (min-width: 1024px) {
  p {
    font-size: 1.125rem;
  }
}

.floating-button {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  background-color: var(--primary);
  color: white;
  padding: 1rem;
  border-radius: 50%;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
}

.floating-button:hover {
  background-color: var(--primary-hover);
  transform: scale(1.1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #006666;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* ============================================
   Global footer spacing and contact alignment
   ============================================ */
footer ul.space-y-2 li { margin: 0.05rem 0 !important; }
footer ul.space-y-2 > * + * { margin-top: 0.05rem !important; }
footer ul.space-y-2 a { line-height: 1.28 !important; display: inline-block; }

footer .space-y-3 > div {
  display: grid !important;
  grid-template-columns: 0.9rem auto !important;
  align-items: start !important;
  column-gap: 0.35rem !important;
  row-gap: 0 !important;
  margin-bottom: 0.3rem !important;
}
footer .space-y-3 > * + * { margin-top: 0.3rem !important; }
footer .space-y-3 > div > span.text-primary {
  width: 0.9rem !important;
  height: 1rem !important;
  display: inline-flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  margin: 0 !important;
}
footer .space-y-3 > div > div,
footer .space-y-3 > div > a,
footer .space-y-3 > div > span:not(.text-primary) {
  margin: 0 !important;
  line-height: 1.45 !important;
}

/* Strong rule: icon-left, text-right for all contact rows */
footer .contact-item { display: grid !important; grid-template-columns: 1.1rem auto !important; align-items: start !important; column-gap: 0.4rem !important; }
footer .contact-item .contact-icon { width: 1.1rem !important; height: 1.1rem !important; display: inline-flex !important; align-items: flex-start !important; justify-content: center !important; margin: 0 !important; }
footer .contact-item p { margin: 0 !important; }

/* Utility */
.no-wrap { white-space: nowrap !important; }

/* ============================================
   Desktop/Laptop layout refinements
   ============================================ */
@media (min-width: 1025px) {
  /* Prevent inner scrollbars in fixed-height tiles (e.g., client logos) */
  .grid .bg-white,
  .grid .rounded-lg,
  .grid .h-24 { overflow: hidden; }
  .grid .h-24 > * { overflow: hidden; }
  .grid .h-24::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }
  .grid .h-24 { scrollbar-width: none !important; }

  /* Ensure footer uses 2 columns on desktop (company left fixed, contact right) */
  footer .grid[data-desktop-cols="4"] {
    display: grid;
    grid-template-columns: 480px 1fr;
    gap: 3rem;
    grid-auto-flow: row;
  }

  /* Place Contact Info in right column */
  footer .grid[data-desktop-cols="4"] > .footer-contact {
    grid-column: 2 / 3;
    justify-self: end;
    text-align: left;
  }

  /* Prevent any clipping of footer text on desktop */
  footer h3, footer p, footer a, footer li, footer span, footer div {
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    writing-mode: horizontal-tb !important;
    transform: none !important;
  }

  /* Hide any nested scrollbars inside content grids */
  section .grid * { scrollbar-width: none; }
  section .grid *::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }

  /* Footer: company name single-line (no truncation) */
  footer .flex.items-center.mb-6 > div > div:first-child {
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: initial !important;
    display: block !important;
    max-width: none !important;
  }
  /* Footer: vertically center text block beside logo */
  footer .flex.items-center.mb-6 > div {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }

  /* Footer: tighten vertical gaps in lists */
  footer ul.space-y-2 li { margin: 0.25rem 0 !important; }

  /* Footer: bottom row horizontal alignment */
  footer .border-t > .flex {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    flex-wrap: nowrap !important;
  }

  /* Footer: compact headings and links */
  footer h3 { margin-bottom: 0.75rem !important; }
  footer ul.space-y-2 a { line-height: 1.4 !important; }
  footer ul.space-y-2 > * + * { margin-top: 0.25rem !important; }
  
  /* Footer: contact info spacing tighter */
  footer .space-y-3 > div { margin-bottom: 0.5rem !important; gap: 0.5rem !important; }
  footer .space-y-3 > * + * { margin-top: 0.5rem !important; }

  /* Footer: bottom row spacing */
  footer .border-t { padding-top: 1.25rem !important; margin-top: 1.5rem !important; }
}

/* Loading animation */
.loading-spinner {
  animation: spin 1s linear infinite;
  border-radius: 50%;
  height: 2rem;
  width: 2rem;
  border-bottom: 2px solid var(--primary);
  border-top: 2px solid transparent;
  border-left: 2px solid transparent;
  border-right: 2px solid transparent;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Image hover effects */
.image-hover {
  transition: transform 0.3s ease;
}

.image-hover:hover {
  transform: scale(1.05);
}

/* Card hover effects */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  box-shadow: 0 4px 25px -5px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

/* Text animations */
.text-reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition: all 0.7s ease;
}

.text-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Button ripple effect */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.2);
  transform: scale(0);
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.btn-ripple:active::before {
  transform: scale(1);
}

/* Gradient backgrounds */
.gradient-primary {
  background: linear-gradient(135deg, #6A11CB 0%, #2575FC 100%);
}

.gradient-secondary {
  background: linear-gradient(135deg, #312e81 0%, #7c3aed 100%);
}

/* Custom animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

/* Navigation Styles */
.nav-link {
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  position: relative;
  padding: 0.5rem 0.75rem;
  white-space: nowrap;
  display: inline-block;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
}

/* Services Dropdown Container - prevent affecting header */
.services-dropdown-container {
  position: relative !important;
  overflow: visible !important;
  overflow-y: visible !important;
  overflow-x: visible !important;
  height: auto !important;
  max-height: none !important;
}

/* Services Button Special Styling */
.services-trigger {
  position: relative;
  transition: all 0.3s ease;
}

.services-trigger:hover {
  color: var(--primary) !important;
}

.services-trigger[aria-expanded="true"] {
  color: var(--primary) !important;
}

.services-trigger::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 100%;
  height: 2px;
  background: var(--primary);
  transition: transform 0.3s ease;
}

.services-trigger:hover::after,
.services-trigger[aria-expanded="true"]::after {
  transform: translateX(-50%) scaleX(1);
}

/* Desktop navigation container - allow dropdowns to overflow */
.hidden.lg\\:flex.items-center.flex-shrink-0 {
  overflow: visible !important;
}

/* FORCE: Absolutely positioned elements in main content stay below header dropdown */
main [style*="position: absolute"],
main [style*="position: fixed"],
main [style*="position:absolute"],
main [style*="position:fixed"],
section [style*="position: absolute"],
section [style*="position: fixed"],
section [style*="position:absolute"],
section [style*="position:fixed"] {
  z-index: 100 !important;
}

/* Utility Classes */
.min-h-screen { min-height: 100vh; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-grow { flex-grow: 1; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-6 > * + * { margin-left: 1.5rem; }
.space-x-8 > * + * { margin-left: 2rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.mr-4 { margin-right: 1rem; }
.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.pt-4 { padding-top: 1rem; }
.pt-8 { padding-top: 2rem; }
.pt-32 { padding-top: 8rem; }
.w-6 { width: 1.5rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-24 { width: 6rem; }
.w-48 { width: 12rem; }
.w-full { width: 100%; }
.h-0\.5 { height: 0.125rem; }
.h-6 { height: 1.5rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-24 { height: 6rem; }
.h-48 { height: 12rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-7xl { max-width: 80rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.grid { display: grid; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: var(--radius); }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.bg-white { background-color: white; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-400 { background-color: #9ca3af; }
.bg-gray-600 { background-color: #4b5563; }
.bg-gray-800 { background-color: #1f2937; }
.bg-gray-900 { background-color: #111827; }
.bg-blue-500 { background-color: #3b82f6; }
.bg-blue-600 { background-color: #2563eb; }
.bg-blue-700 { background-color: #1d4ed8; }
.bg-green-500 { background-color: #10b981; }
.bg-green-600 { background-color: #059669; }
.bg-green-700 { background-color: #047857; }
.bg-red-600 { background-color: #dc2626; }
.bg-red-700 { background-color: #b91c1c; }
.bg-yellow-400 { background-color: #fbbf24; }
.text-primary { color: var(--primary); }
.bg-primary { background-color: var(--primary) !important; }
.bg-secondary { background-color: var(--secondary) !important; }
.text-white { color: white; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-600 { color: #6b7280; }
.text-gray-700 { color: #374151; }
.text-gray-900 { color: #111827; }
.text-yellow-400 { color: #fbbf24; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.border { border-width: 1px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-gray-100 { border-color: #f3f4f6; }
.border-gray-800 { border-color: #1f2937; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.transition-colors { transition-property: color, background-color, border-color; transition-duration: 0.15s; }
.transition-all { transition-property: all; transition-duration: 0.15s; }
.duration-200 { transition-duration: 200ms; }
.opacity-0 { opacity: 0; }
.opacity-60 { opacity: 0.6; }
.opacity-90 { opacity: 0.9; }
.opacity-95 { opacity: 0.95; }
.invisible { visibility: hidden; }
.visible { visibility: visible; }
.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.top-0 { top: 0; }
.top-full { top: 100%; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.right-6 { right: 1.5rem; }
.bottom-6 { bottom: 1.5rem; }
.z-50 { z-index: 50; }
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.cursor-pointer { cursor: pointer; }
.overflow-hidden { overflow: hidden; }
.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group:hover .group-hover\:visible { visibility: visible; }
.hover\:bg-gray-50:hover { background-color: #f9fafb; }
.hover\:bg-gray-100:hover { background-color: #f3f4f6; }
.hover\:bg-blue-700:hover { background-color: #1d4ed8; }
.hover\:bg-green-700:hover { background-color: #047857; }
.hover\:bg-red-700:hover { background-color: #b91c1c; }
.hover\:text-white:hover { color: white; }
.hover\:underline:hover { text-decoration: underline; }
.hover\:scale-110:hover { transform: scale(1.1); }

/* Responsive Grid */
@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:flex-row { flex-direction: row; }
  .md\:text-3xl { font-size: 1.875rem; }
  .md\:text-4xl { font-size: 2.25rem; }
  .md\:text-5xl { font-size: 3rem; }
  .md\:mb-0 { margin-bottom: 0; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .lg\:flex { display: flex; }
  .lg\:hidden { display: none; }
  .lg\:text-left { text-align: left; }
  .lg\:text-6xl { font-size: 3.75rem; }
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}

/* Company Logo and Name Section */
/* Logo Image Styles */
.company-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
  max-width: 150px;
  display: block;
  transition: all 0.3s ease;
}

.company-logo:hover {
  transform: scale(1.05);
}

/* Company Name Text - Professional Styling */
header a[href*="index"] {
  text-decoration: none !important;
}

header a[href*="index"]:hover,
header a[href*="index"]:active,
header a[href*="index"]:visited,
header a[href*="index"]:focus {
  text-decoration: none !important;
  outline: none;
}

/* Company name container */
.flex.items-center.gap-4 {
  text-decoration: none !important;
}

/* Ensure no underline on any link state */
header .flex.items-center a,
header .flex.items-center a:hover,
header .flex.items-center a:active,
header .flex.items-center a:visited {
  text-decoration: none !important;
}

.footer-logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  max-width: 120px;
  display: block;
  filter: none;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px;
  border-radius: 6px;
}

.footer-logo-img[src*=".jpg"] {
  background: rgba(255, 255, 255, 0.2) !important;
  padding: 4px !important;
  border-radius: 6px !important;
}

/* Ensure footer logo is visible */
footer .company-logo {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Logo container alignment */
.logo-container-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
}

/* Ensure logo loads properly */
.company-logo[src*="Logo-01.jpg"] {
  background: transparent;
}

.company-logo[src*=".jpg"] {
  background: white;
  padding: 2px;
  border-radius: 4px;
}

/* Loading state for logo */
.company-logo {
  opacity: 1;
  transition: all 0.3s ease;
}

.footer-logo-img {
  opacity: 1 !important;
  animation: none !important;
}

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

/* Responsive logo image adjustments */
@media (max-width: 640px) {
  .company-logo {
    height: 42px;
    max-width: 120px;
  }
  
  .footer-logo-img {
    height: 35px;
    max-width: 100px;
  }
}

@media (max-width: 480px) {
  .company-logo {
    height: 38px;
    max-width: 100px;
  }
  
  .footer-logo-img {
    height: 30px;
    max-width: 80px;
  }
}

/* APP Logo Styles - Simple constrained fallback */
.app-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px !important;
  height: 50px !important;
  max-width: 50px !important;
  max-height: 50px !important;
  min-width: 50px !important;
  min-height: 50px !important;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  border-radius: 8px;
  color: white;
  font-weight: bold;
  font-size: 20px !important;
  flex-shrink: 0;
}

/* Footer logo adjustments */
.footer-logo {
  width: 45px !important;
  height: 45px !important;
  max-width: 45px !important;
  max-height: 45px !important;
  font-size: 18px !important;
}

/* Responsive logo adjustments */
@media (max-width: 640px) {
  .app-logo {
    width: 45px !important;
    height: 45px !important;
    max-width: 45px !important;
    max-height: 45px !important;
    font-size: 18px !important;
  }
  
  .footer-logo {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    font-size: 16px !important;
  }
  
  .footer-logo .dot {
    width: 6px;
    height: 6px;
  }
  
  .footer-logo .logo-letters {
    font-size: 22px;
  }
  
  .footer-logo .letter-p::before {
    width: 14px;
    height: 14px;
    border-width: 2px;
  }
}

/* Services Dropdown Styles - Modern & Realistic */
.services-dropdown {
  position: absolute !important;
  top: calc(100% + 12px) !important;
  left: 50% !important;
  transform: translateX(-50%) translateY(-15px) scale(0.95);
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
  padding: 12px 0;
  min-width: 280px;
  max-width: 320px;
  max-height: 420px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999999 !important;
  display: none;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  pointer-events: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  /* CRITICAL: Dropdown is outside normal flow - doesn't affect header */
  contain: paint layout !important;
}

.services-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
  display: block;
  pointer-events: auto;
  animation: pulse 3s ease-in-out infinite;
}

/* Dropdown arrow indicator */
.services-dropdown::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: white;
  border-left: 1px solid rgba(0, 0, 0, 0.05);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  transform: translateX(-50%) rotate(45deg);
  z-index: -1;
}

.services-dropdown a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  margin: 2px 8px;
  color: #374151;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
  overflow: visible !important;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 500;
  position: relative;
}

/* Icon styling for dropdown items */
.services-dropdown a::before {
  content: attr(data-icon);
  font-size: 20px;
  line-height: 1;
  transition: transform 0.25s ease;
}

.services-dropdown a:hover {
  background: linear-gradient(135deg, rgba(37, 117, 252, 0.08), rgba(37, 117, 252, 0.12));
  color: var(--primary);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(37, 117, 252, 0.18);
}

.services-dropdown a:hover::before {
  transform: scale(1.15);
}

/* Active/current page indicator */
.services-dropdown a.active {
  background: linear-gradient(135deg, rgba(37, 117, 252, 0.10), rgba(37, 117, 252, 0.16));
  color: var(--primary);
  font-weight: 600;
}

/* Smooth scrollbar for dropdown */
.services-dropdown::-webkit-scrollbar {
  width: 6px;
}

.services-dropdown::-webkit-scrollbar-track {
  background: transparent;
  margin: 8px 0;
}

.services-dropdown::-webkit-scrollbar-thumb {
  background: rgba(37, 117, 252, 0.35);
  border-radius: 10px;
  transition: background 0.2s ease;
}

.services-dropdown::-webkit-scrollbar-thumb:hover {
  background: rgba(37, 117, 252, 0.55);
}

/* Dropdown divider (optional - can add between items) */
.services-dropdown a + a {
  position: relative;
}

/* Focus styles for accessibility */
.services-dropdown a:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.services-trigger:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Mobile Services Menu - with vertical scroll if needed */
.mobile-services-menu {
  display: none;
  background: #f8f9fa;
  padding: 8px 0;
  margin: 8px 0;
  border-radius: 6px;
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
}

.mobile-services-menu.active {
  display: block;
}

.mobile-services-menu a {
  display: block;
  padding: 8px 16px;
  color: #6b7280;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.mobile-services-menu a:hover {
  color: var(--primary);
  background: white;
}

/* Responsive improvements */
@media (max-width: 1024px) {
  .services-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: #f8f9fa;
    border-radius: 6px;
    margin-top: 8px;
  }
  
  .services-dropdown::before {
    display: none;
  }
  
  .services-dropdown.show {
    animation: none;
  }
}

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* Highlight targeted sections */
.card:target {
  animation: highlight 2s ease-in-out;
}

@keyframes highlight {
  0% { background-color: rgba(37, 117, 252, 0.10); }
  100% { background-color: transparent; }
}

/* Products page responsive styles */
.product-item {
  transition: all 0.3s ease;
}

.product-item:hover {
  transform: translateY(-5px);
}

/* Filter buttons responsive */
@media (max-width: 640px) {
  .flex.flex-wrap.justify-center.gap-4 {
    gap: 8px;
  }
  
  .flex.flex-wrap.justify-center.gap-4 button {
    font-size: 14px;
    padding: 8px 12px;
  }
}

/* Load more button styles */
#loadMoreBtn {
  transition: all 0.3s ease;
}

#loadMoreBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 117, 252, 0.35);
}

/* Loading spinner animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Dropdown Item Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pulse animation for active dropdown */
@keyframes pulse {
  0%, 100% {
    box-shadow: 0 20px 60px rgba(37, 117, 252, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.05);
  }
  50% {
    box-shadow: 0 20px 60px rgba(37, 117, 252, 0.28), 0 0 0 1px rgba(0, 0, 0, 0.05);
  }
}

/* Products grid responsive improvements */
@media (max-width: 768px) {
  .grid.md\\:grid-cols-2.lg\\:grid-cols-3 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .grid.md\\:grid-cols-2.lg\\:grid-cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Product card responsive */
@media (max-width: 480px) {
  .card {
    padding: 1rem;
  }
  
  .card h3 {
    font-size: 1.125rem;
  }
  
  .card .flex.space-x-2 {
    flex-direction: column;
    gap: 8px;
  }
  
  .card .flex.space-x-2 > * {
    width: 100%;
    text-align: center;
  }
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
}

/* ==========================================
   COMPREHENSIVE LAYOUT FIXES
   Final overrides for proper spacing & layout
   ========================================== */

/* Container - Professional Width */
.container-custom {
  max-width: 1600px !important;
  width: 95% !important;
  margin: 0 auto !important;
  padding: 0 2rem !important;
}

@media (min-width: 1920px) {
  .container-custom {
    max-width: 1800px !important;
    width: 92% !important;
  }
}

@media (max-width: 768px) {
  .container-custom {
    width: 100% !important;
    padding: 0 1rem !important;
  }
}

/* Header Buttons - Compact & Visible */
header .btn,
header .btn-primary,
header .btn-outline {
  padding: 8px 14px !important;
  font-size: 13px !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  display: inline-block !important;
}

/* Ensure all button text shows */
header button span,
header a span {
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

/* Header right section - ensure buttons fit */
header .hidden.lg\:flex.items-center.flex-shrink-0 {
  overflow: visible !important;
  flex-wrap: nowrap !important;
  gap: 0.75rem !important;
}

/* Product Card Buttons - Side by Side */
.card .flex:last-child {
  flex-direction: row !important;
  gap: 0.5rem !important;
}

.card .btn,
.card .btn-primary,
.card .btn-outline {
  flex: 1 !important;
  padding: 10px 16px !important;
  font-size: 14px !important;
  text-align: center !important;
}

/* Grid Centering */
.grid {
  justify-content: center !important;
  margin: 0 auto !important;
}

/* Section Centering */
section {
  text-align: center !important;
}

section h1,
section h2,
section h3 {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

section p {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Remove Horizontal Scroll */
html, body {
  overflow-x: hidden !important;
}

section, main, div {
  overflow-x: hidden !important;
}

/* Testimonials - No Scroll */
.testimonials *,
.testimonial * {
  overflow: visible !important;
}

/* CRITICAL FIX - Remove card excessive heights */
.card,
div.card {
  height: auto !important;
  min-height: auto !important;
  max-height: none !important;
}

.card > div,
.card-content {
  flex: none !important;
  height: auto !important;
}

/* Contact page specific fixes */
body [class*="contact"] .card,
section .card {
  height: fit-content !important;
  min-height: fit-content !important;
}
