:root {
  --primary: #2DAAE1;
  --primary-foreground: #FFFFFF;
  --secondary: #5A55A5;
  --secondary-foreground: #FFFFFF;
  --accent: #3B82F6;
  --accent-foreground: #FFFFFF;
  --background: #FFFFFF;
  --foreground: #1e293b;
  --muted: #F8FAFC;
  --muted-foreground: #64748b;
  --border: #e2e8f0;
  --card: #FFFFFF;
  --card-foreground: #1e293b;
  --surface: #F8FAFC;
  --surface-foreground: #334155;
  --font-heading: "Plus Jakarta Sans", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --section-spacing: 5rem;
  --section-spacing-mobile: 3rem;
  --container-padding: 6rem;
  --container-padding-mobile: 1.25rem;
  --hero-padding-top: 7rem;
  --hero-padding-top-mobile: 5rem;
  --transition: all 0.4s cubic-bezier(0.2, 1, 0.2, 1);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  --gradient-premium: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
}

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

img, video {
  max-width: 100%;
  height: auto;
}

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-heading {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--secondary);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* Layout Utilities */
.max-w-7xl {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-5 { grid-template-columns: repeat(5, 1fr); }

@media (min-width: 640px) {
  .sm-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
}

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

@media (min-width: 1024px) {
  .lg-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .lg-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .lg-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .lg-grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
}

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

.items-center { align-items: center; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-1 { margin-top: 0.25rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.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; }

.w-full { width: 100%; }
.h-64 { height: 16rem; }
.h-auto { height: auto; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }
.overflow-hidden { overflow: hidden; }
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }
.aspect-square { aspect-ratio: 1/1; }
.aspect-video { aspect-ratio: 16/9; }

.bg-card { 
  background: var(--card); 
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.bg-card:hover {
  box-shadow: var(--shadow-premium);
  transform: translateY(-4px);
  border-color: var(--primary);
}

.bg-surface { background: var(--surface); }
.border { border: 1px solid var(--border); }
.text-white { color: white !important; }
.text-accent { color: var(--accent) !important; }
.bg-primary { background-color: var(--primary) !important; }
.bg-secondary { background-color: var(--secondary) !important; }
.bg-primary-soft { background-color: rgba(45, 170, 225, 0.1) !important; }

.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }

.mb-20 { margin-bottom: 5rem; }

.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-1 > * + * { margin-top: 0.25rem; }

/* 
 * =========================================
 * CORE UTILITY FRAMEWORK (Extension)
 * =========================================
 */

/* Flexbox Architecture */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* Extended Spacing & Padding */
.p-1 { padding: 0.25rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.pl-4 { padding-left: 1rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-12 { margin-top: 3rem; }

/* Extended Sizing */
.w-14 { width: 3.5rem; }
.h-14 { height: 3.5rem; }
.w-24 { width: 6rem; }
.h-24 { height: 6rem; }

/* Borders & Interactions */
.border-2 { border-width: 2px; }
.border-primary { border-color: var(--primary) !important; }
.border-l-4 { border-left: 4px solid var(--border); }
.border-l-4.border-primary { border-left-color: var(--primary) !important; }
.transition-all { transition: var(--transition); }
.hover-shadow { transition: var(--transition); }
.hover-shadow:hover { 
  box-shadow: var(--shadow-premium); 
  transform: translateY(-4px); 
  border-color: var(--primary);
}


/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 800;
}

.logo img {
  height: 48px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--accent);
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(45, 170, 225, 0.3);
}

.btn-primary:hover {
  background: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(90, 85, 165, 0.4);
}

/* Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1010;
}

.menu-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--secondary);
  border-radius: 10px;
  transition: all 0.3s var(--transition);
  position: relative;
  transform-origin: 1px;
}

/* Mobile Menu Animations */
.navbar.menu-open .menu-toggle span:first-child { transform: rotate(45deg); }
.navbar.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.navbar.menu-open .menu-toggle span:last-child { transform: rotate(-45deg); }

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.navbar.menu-open + .menu-overlay {
  opacity: 1;
  visibility: visible;
}

.mobile-cta { display: none; }

body.noscroll {
  overflow: hidden;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 27, 75, 0.85);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: white;
}

.hero p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-btns {
  display: flex;
  gap: 1rem;
}

.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: white;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  font-weight: 600;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Industry Section */
.section {
  padding: var(--section-spacing) 0;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 2.5rem;
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.25rem;
}

.industry-card {
  position: relative;
  aspect-ratio: 9/16;
  overflow: hidden;
  border-radius: 0.75rem;
}

.industry-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.industry-card:hover img {
  transform: scale(1.05);
}

.industry-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 27, 75, 0.8) 0%, transparent 70%);
}

.industry-card h3 {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 1.5rem;
  z-index: 2;
  font-size: 1.125rem;
  color: white;
}

/* Mission Section */
.mission {
  background: var(--surface);
  padding: 5rem 0;
}

.mission h2 {
  font-size: 2.25rem;
  max-width: 900px;
  line-height: 1.35;
}

.accent-bar {
  width: 6rem;
  height: 4px;
  background: var(--primary);
  margin-top: 1.5rem;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.25rem;
}

.service-card {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover img {
  transform: scale(1.05);
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 8, 23, 0.8) 0%, transparent 70%);
}

.service-card h3 {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 1rem;
  z-index: 2;
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
}

/* Stats Section */
.stats {
  background: var(--primary);
  padding: 4rem 0;
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}

.stat-item h2 {
  font-size: 3rem;
  font-weight: 800;
  color: white;
}

.stat-item p {
  font-size: 0.875rem;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Capability Cards Component */
.capability-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 2.5rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.capability-card:hover {
  box-shadow: var(--shadow-premium);
  transform: translateY(-4px);
  border-color: var(--primary);
}

.capability-icon-wrap {
  width: 3.5rem;
  height: 3.5rem;
  background: rgba(45, 170, 225, 0.1);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.capability-list {
  list-style: none;
  margin-top: 1.5rem;
}

.capability-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.capability-item:last-child {
  margin-bottom: 0;
}

.capability-check-wrap {
  margin-top: 0.25rem;
  background: rgba(45, 170, 225, 0.1);
  border-radius: 50%;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Team Cards Component */
.team-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
}
.team-card:hover {
  box-shadow: var(--shadow-premium);
  transform: translateY(-4px);
  border-color: var(--primary);
}
.team-avatar-wrap {
  width: 6rem;
  height: 6rem;
  background: var(--surface);
  border-radius: 50%;
  margin: 0 auto 1.5rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid var(--primary);
}
.team-role {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.75rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Badge Cards (Home Core Services) */
.badge-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 0.75rem;
  text-align: center;
  transition: var(--transition);
}
.badge-card:hover { 
  border-color: var(--primary); 
  box-shadow: var(--shadow-md); 
  transform: translateY(-2px); 
}
.badge-icon { margin: 0 auto 1rem auto; color: var(--primary); }
.badge-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }

.product-label { 
  color: var(--primary); 
  font-size: 0.75rem; 
  font-weight: 700; 
  margin-bottom: 0.75rem; 
  text-transform: uppercase; 
}

/* Enhanced Product Card Layout */
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%; /* Ensure card takes full height of grid cell */
}

.product-card:hover { 
  box-shadow: var(--shadow-md); 
  transform: translateY(-2px); 
  border-color: var(--primary); 
}

.product-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-description-container {
  flex-grow: 1;
  min-height: 4.5rem; /* Ensure consistent text area */
}

/* Category Filter Bar */
.category-filter-bar {
  position: sticky;
  top: 80px;
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  z-index: 900;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.filter-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.filter-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.filter-link:hover, .filter-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

@media (max-width: 768px) {
  .filter-container {
    gap: 1rem;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 0 1rem;
  }
  .filter-link {
    white-space: nowrap;
  }
}

/* Feature Cards */
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: var(--transition);
}
.feature-card:hover { 
  box-shadow: var(--shadow-md); 
  transform: translateY(-2px); 
  border-color: var(--primary); 
}
.feature-icon { margin-bottom: 1rem; color: var(--primary); }

/* Standardized Product Details Hero */
.product-hero {
  position: relative;
  padding: 8rem 0 4rem;
  background: var(--gradient-premium);
  color: white;
  overflow: hidden;
}

.product-hero h1 {
  color: white !important;
}

.product-hero .text-accent {
  color: var(--accent) !important;
}

.product-hero .hero-badge {
  display: inline-block;
  background: rgba(0, 172, 193, 0.2);
  border: 1px solid rgba(0, 172, 193, 0.3);
  color: var(--accent);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.product-hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  z-index: 1;
  opacity: 0.15;
  mask-image: linear-gradient(to left, black, transparent);
  -webkit-mask-image: linear-gradient(to left, black, transparent);
  pointer-events: none;
}

/* Footer style matches the shared HTML */
footer {
  background: var(--secondary);
  color: var(--secondary-foreground);
  padding: 5rem 0 3rem;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-section h4 {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  color: white !important;
}

.footer-list {
  list-style: none;
}

.footer-list li {
  margin-bottom: 0.75rem;
}

.footer-list a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.footer-list a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .section-title { font-size: 1.75rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  
  .menu-toggle { display: flex; }
  .nav-cta { display: none; }
  
  .nav-links {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: calc(100vh - 80px);
    background: white;
    flex-direction: column;
    padding: 2.5rem 2rem;
    gap: 1.75rem;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    display: flex;
  }
  
  .navbar.menu-open .nav-links {
    transform: translateX(-100%);
  }
  
  .mobile-cta {
    display: block;
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
  }
  
  .mobile-cta .btn-primary {
    display: block;
    text-align: center;
    width: 100%;
  }

  .nav-links a {
    font-size: 1.125rem;
    font-weight: 700;
  }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* Clientele Section */
.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 3rem;
  align-items: center;
  justify-items: center;
  padding: 2rem 0;
}

.client-logo {
  filter: grayscale(100%);
  opacity: 0.6;
  transition: var(--transition);
  max-width: 140px;
  max-height: 80px;
  object-fit: contain;
}

.client-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}
