@import 'clients.css';
@import 'vm.css';
@import 'clients-slider.css';
@import 'section-header.css';
@import 'hero-slider.css';
@import 'stats.css';

:root {
  /* Material Design 3 Color Palette (Light Theme) */
  /* Primary: Strong Blue for Header/Footer/Buttons */
  --md-sys-color-primary: #0047ab;
  /* Cobalt Blue */
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #003380;
  /* Darker Blue for Container/Header/Footer */
  --md-sys-color-on-primary-container: #ffffff;

  /* Secondary: Teal/Green for accents */
  --md-sys-color-secondary: #006c4c;
  --md-sys-color-on-secondary: #ffffff;
  --md-sys-color-secondary-container: #89f8c7;
  --md-sys-color-on-secondary-container: #002114;

  /* Background & Surface */
  --md-sys-color-background: #ffffff;
  /* White Background */
  --md-sys-color-on-background: #1a1c1e;
  /* Dark Text */
  --md-sys-color-surface: #f3f4f6;
  /* Very Light Gray for cards */
  --md-sys-color-on-surface: #1a1c1e;
  --md-sys-color-surface-variant: #e0e2ec;
  --md-sys-color-on-surface-variant: #44474f;

  /* Outline */
  --md-sys-color-outline: #74777f;

  /* Elevation */
  --md-sys-elevation-1: 0px 1px 2px 0px rgba(0, 0, 0, 0.3), 0px 1px 3px 1px rgba(0, 0, 0, 0.15);
  --md-sys-elevation-2: 0px 1px 2px 0px rgba(0, 0, 0, 0.3), 0px 2px 6px 2px rgba(0, 0, 0, 0.15);
  --md-sys-elevation-3: 0px 4px 8px 3px rgba(0, 0, 0, 0.15), 0px 1px 3px 0px rgba(0, 0, 0, 0.3);

  /* Shape & Typography */
  --md-sys-shape-corner-small: 8px;
  --md-sys-shape-corner-medium: 12px;
  --md-sys-shape-corner-large: 16px;
  --md-sys-shape-corner-full: 9999px;
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --width-container: 100%;
}

/* ... (Keep existing reset and typography) ... */

/* Header */
header {
  padding: 16px 0;
  background-color: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
  box-shadow: var(--md-sys-elevation-2);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease;
  border-bottom: none;
  /* Removed border */
}

/* ... (Keep existing nav styles) ... */

/* Footer Brand Logo - Removed Invert */
/* Footer Brand Logo */
.footer-brand .logo img {
  height: 48px;
  margin-bottom: 24px;
  opacity: 1;
  position: static;
  /* Reset absolute positioning from header styles */
  filter: none;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--md-sys-color-on-background);
  background-color: #f0f4f8;
  /* Elegant Cool Neutral */

  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}



a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--width-container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--md-sys-color-on-surface);
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  background-color: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  border-radius: var(--md-sys-shape-corner-full);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--md-sys-elevation-1);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  background-color: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
  box-shadow: var(--md-sys-elevation-2);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--md-sys-elevation-1);
}

/* Header */
header {
  padding: 16px 0;
  background-color: var(--md-sys-color-primary-container);
  /* Matched Footer Color */
  color: var(--md-sys-color-on-primary-container);
  /* On Primary Container text */
  box-shadow: var(--md-sys-elevation-2);
  position: sticky;
  top: 0;
  z-index: 1000;
  /* transition: box-shadow 0.3s ease; - Updated for smart scroll */
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

header.header-hidden {
  transform: translateY(-100%);
  box-shadow: none;
}

header.scrolled {
  box-shadow: var(--md-sys-elevation-3);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 48px;
  width: auto;
}

.logo-icon {
  width: auto;
}

/* New Text Style */
.logo-text {
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 1px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 80px;
  align-items: center;
}

/* Mega Menu Logic */
header {
  position: relative;
  /* Context for mega menu */
}

.has-mega-menu {
  position: static;
  /* Allows menu to be full width of header */
}

.arrow-icon {
  font-size: 0.75rem;
  margin-left: 6px;
  transition: transform 0.3s ease;
}

.has-mega-menu:hover .arrow-icon {
  transform: rotate(180deg);
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: rgba(0, 51, 128, 0.85);
  /* Glassy Blue */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 999;
  padding: 32px 0;
  display: flex;
  justify-content: center;
}

.has-mega-menu:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: var(--width-container);
  width: 100%;
  padding: 0 24px;
}

.mega-menu a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--md-sys-color-on-primary-container);
  padding: 16px;
  border-radius: var(--md-sys-shape-corner-medium);
  transition: background-color 0.2s;
  text-decoration: none;
}

.mega-menu a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--md-sys-color-secondary-container);
  /* Teal highlight */
}

/* Specific Layout for Who We Are */
.mega-menu-content-who {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  /* Nav takes less space, text takes more */
  gap: 60px;
  max-width: var(--width-container);
  width: 100%;
  padding: 0 24px;
}

/* Specific Layout for Careers */
.mega-menu-content-careers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: var(--width-container);
  width: 100%;
  padding: 0 24px;
  align-items: start;
}

.careers-main h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0;
}

.careers-main a {
  color: var(--md-sys-color-secondary-container);
  /* Teal highlight */
  padding: 12px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--md-sys-shape-corner-medium);
  display: block;
}

.careers-main a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.careers-column h4 {
  color: var(--md-sys-color-on-primary-container);
  font-size: 1.1rem;
  margin-bottom: 20px;
  opacity: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
  display: inline-block;
}

.careers-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  /* Ensure no margin either */
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  text-align: left;
  align-items: flex-start;
}

.careers-column li a {
  color: rgba(255, 255, 255, 0.85);
  /* Slightly lighter */
  padding: 8px 0;
  /* Remove side padding to align with header */
  border-radius: var(--md-sys-shape-corner-small);
  display: block;
  transition: all 0.2s;
  font-size: 0.95rem;
}

.careers-column li a:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
  padding-left: 16px;
  /* Slide effect */
}

.who-nav h3 {
  color: var(--md-sys-color-secondary-container);
  /* Teal */
  font-size: 1.5rem;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
}

.who-section h4 {
  color: var(--md-sys-color-on-primary-container);
  font-size: 1.1rem;
  margin-bottom: 16px;
  opacity: 0.9;
}

.who-section ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.who-section a {
  padding: 12px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--md-sys-shape-corner-small);
  flex-direction: row;
  /* Horizontal alignment for these links */
  align-items: center;
  gap: 12px;
}

.who-section a i {
  margin-bottom: 0;
  /* Override default */
  font-size: 1rem;
}

.who-description {
  color: var(--md-sys-color-on-primary-container);
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0.9;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.mega-menu i {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--md-sys-color-secondary-container);
  /* Teal Icons */
}

.mega-menu strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
  font-weight: 600;
}

.mega-menu span {
  font-size: 0.85rem;
  opacity: 0.8;
  font-weight: 400;
}

nav a {
  font-weight: 500;
  color: #ffffff;
  /* Contrasting White */
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: var(--md-sys-shape-corner-small);
  transition: all 0.2s;
  position: relative;
  /* To contain hover effect */
  display: inline-flex;
  align-items: center;
  opacity: 1;
  /* High contrast */
}

nav a:hover,
nav a.active {
  color: #aaaaaa;
  /* Gray on Hover */
  background-color: transparent;
  /* No highlighter background */
  opacity: 1;
}

nav .btn {
  padding: 8px 24px;
  background-color: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
  box-shadow: none;
}

nav .btn:hover {
  background-color: #4db65c;
  box-shadow: var(--md-sys-elevation-1);
}

/* Hero Section */
.hero {
  padding: 60px 0 0;
  /* Reduced top/bottom padding, 0 bottom to minimize gap */
  position: relative;
  overflow: hidden;
  background-color: transparent;
}

.hero .container {
  display: flex;
  flex-direction: row;
  /* Side by side */
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vw, 64px);
  /* Reduced gap */
  padding-top: 0;
  text-align: left;
}

.hero-text {
  flex: 1;
  max-width: 600px;
  animation: fadeUp 1s ease-out;
  padding-right: 0;
  /* Removed unused padding */
}

.hero-text h1.hero-tagline {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--md-sys-color-primary);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-tagline .line-1 {
  display: block;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideCycle 6s ease-in-out infinite;
}

.hero-tagline .line-2 {
  display: block;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideCycle 6s ease-in-out 0.8s infinite;
  /* Delayed start */
  color: #84bd00;
  /* Logo Green */
  font-size: 3.5rem;
  /* Slightly larger */
  margin-left: 60px;
  /* Indent to the right */
}

/* Loop: Enter -> Stay -> Fade Out */
@keyframes fadeSlideCycle {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  15% {
    opacity: 1;
    transform: translateY(0);
  }

  85% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-20px);
  }
}

/* Remove p style since p was removed */

.hero-image-side {
  flex: 1;
  max-width: 600px;
  /* Match text side */
  animation: fadeIn 1.2s ease-out;
  display: flex;
  justify-content: center;
  /* Center image in its box if needed */
}



/* Background Blob for aesthetic */
.hero::before {
  display: block;
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--md-sys-color-primary-container) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  z-index: 0;
  opacity: 0.15;
  pointer-events: none;
}

/* Services Section */
.services {
  padding: 40px 0;
  /* Reduced from 100px */
  background-color: transparent;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
  font-size: 2.5rem;
  color: var(--md-sys-color-primary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  /* Increased gap for better spacing in grid view */
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns on tablet */
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
    /* 1 column on mobile */
  }
}

/* Service Card - Floating Box Design */
.service-card {
  position: relative;
  background: transparent;
  padding-bottom: 20px;
  /* Space for footer link if needed */
  aspect-ratio: auto;
  /* Reset aspect ratio */
  overflow: visible;
  /* Allow overlap */
  box-shadow: none;
  border-radius: 0;
}

.service-card:hover {
  transform: translateY(-5px);
  /* Slight lift */
  box-shadow: none;
}

.card-image-wrapper {
  position: relative;
  width: 100%;
  height: 250px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--md-sys-elevation-2);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover .card-img {
  transform: scale(1.05);
}


.card-float-box {
  width: 160px;
  /* Fixed width - Further Reduced */
  aspect-ratio: 1 / 1;
  /* Square shape */
  margin: -40px auto 20px;
  /* Adjusted overlap */
  background: #d7dadb;
  /* Bright Blue */
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* min-height removed, aspect-ratio governs */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.service-card:hover .card-float-box {
  transform: translateY(-10px);
  /* slight lift */
}

/* Initially hidden content */
.service-desc {
  font-size: 0.85rem;
  color: var(--md-sys-color-on-surface-variant);
  margin-top: 12px;
  opacity: 0;
  max-height: 0;
  transition: all 0.3s ease;
  line-height: 1.4;
  overflow: hidden;
}

.more-details {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--md-sys-color-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 12px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

/* Reveal on hover */
.card-float-box:hover {
  justify-content: flex-start;
  /* Align top to make room ? Actually center is better if it grows. */
  /* If we want it to stay square but reveal content, content must fit. */
  /* If content is too long, we might need to expand height. */
  /* Let's try auto-height on hover to ensure text fits, or keep square if text is short. */
  height: auto;
  min-height: 160px;
  /* Keep at least square size - Reduced */
  aspect-ratio: auto;
  /* Release aspect ratio constraints */
}

.card-float-box:hover .service-desc {
  opacity: 1;
  max-height: 100px;
  /* Enough for short desc */
}

.card-float-box:hover .more-details {
  opacity: 1;
  transform: translateY(0);
}

.card-icon {
  height: 48px;
  /* Increased for better visuals */
  width: auto;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
  /* Elegant shadow */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-float-box:hover .card-icon {
  transform: scale(0.9);
  /* Shrink slightly to make room */
}

.card-float-box h3 {
  font-size: 1rem;
  /* Reduced from 1.2rem */
  color: var(--md-sys-color-on-background);
  margin-bottom: 0;
  font-weight: 700;
  line-height: 1.2;
}

/* Slider Pagination - Vertical Lines */
.slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  gap: 12px;
}

.slider-dot {
  width: 3px;
  height: 24px;
  /* Line height */
  background-color: #e0e0e0;
  /* Inactive grey */
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  transform: none;
  /* Reset rotation */
  box-shadow: none;
}

.slider-dot:hover {
  background-color: #bdbdbd;
  transform: none;
}

.slider-dot.active {
  background-color: #ff5252;
  /* Red active state like image */
  transform: none;
  box-shadow: none;
  height: 32px;
  /* Slightly longer active */
}

/* Certifications Section (Compact Banner) */
.certifications-section {
  padding: 32px 0;
  background-color: var(--md-sys-color-background);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  /* Subtle separator */
}

.certifications-section .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  /* Responsive wrapping */
}

.certifications-section h2 {
  font-size: 1.25rem;
  /* Reduced from default large heading */
  margin-bottom: 0;
  /* Align with images */
  color: var(--md-sys-color-on-surface);
  font-weight: 600;
  opacity: 0.9;
}

.cert-image-wrapper {
  display: flex;
  gap: 32px;
  align-items: center;
}

.cert-image-wrapper img {
  height: 56px;
  /* Constrained height */
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.cert-image-wrapper img:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .certifications-section .container {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
}

/* Footer */
footer {
  background-color: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
  padding: 80px 0 30px;
}

footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 48px;
  align-items: start;
}

.footer-brand .logo img {
  height: 48px;
  margin-bottom: 24px;
  opacity: 1;
  /* Ensure full visibility */
}

.footer-brand p {
  color: var(--md-sys-color-on-primary-container);
  opacity: 0.8;
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 500px;
}

footer h4 {
  color: #ffffff;
  /* Was var(--md-sys-color-primary) */
  margin-bottom: 24px;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 1;
}

footer ul {
  list-style: none;
}

footer li {
  margin-bottom: 12px;
}

footer a {
  color: #ffffff;
  /* Was var(--md-sys-color-on-surface-variant) */
  transition: color 0.2s;
  opacity: 0.8;
}

footer a:hover {
  color: #aaaaaa;
  /* Match Header Hover */
  text-decoration: none;
  opacity: 1;
}

.social-icons {
  display: flex;
  gap: 16px;
  /* Add gap */
  align-items: center;
}

.social-icons a {
  color: #ffffff;
  font-size: 1.1rem;
  transition: color 0.2s;
  opacity: 0.8;
  padding: 0;
  /* Reset padding from nav a if inherited */
}

.social-icons a:hover {
  color: #aaaaaa;
  opacity: 1;
}

.copyright {
  text-align: center;
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: #ffffff;
  /* Was var(--md-sys-color-on-surface-variant) */
  opacity: 0.6;
}

/* SAP Projects Page */
.sap-hero {
  background: linear-gradient(rgba(0, 51, 128, 0.5), rgba(0, 33, 80, 0.6)), url('../assets/sap_2.jpg');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding: 180px 0 100px;
  text-align: center;
}

.sap-hero h1 {
  font-size: 3rem;
  margin-bottom: 16px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.sap-hero p {
  font-size: 1.25rem;
  opacity: 0.95;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.sap-overview {
  padding: 60px 0 100px;
}

.overview-text {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 56px;
  font-size: 1.1rem;
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1.6;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 40px;
  /* Increased gap for better spacing */
  justify-content: center;
}

.module-card {
  background: #ffffff;
  /* Explicit white for card pop */
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  /* Subtle shadow */
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.module-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.module-icon {
  font-size: 3.5rem;
  color: var(--md-sys-color-primary);
  margin-bottom: 24px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.module-card:hover .module-icon {
  transform: scale(1.1);
}

.module-card h3 {
  font-size: 1.75rem;
  margin-bottom: 8px;
  color: var(--md-sys-color-primary);
  font-weight: 700;
}

.module-card p strong {
  display: block;
  margin-bottom: 12px;
  font-size: 1.1rem;
  color: var(--md-sys-color-on-surface);
}

.module-card p {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.95rem;
  line-height: 1.5;
}

.detailed-desc {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  padding-top: 0;
  border-top: 1px solid transparent;
  font-size: 0.9rem;
  color: var(--md-sys-color-on-surface-variant);
  text-align: left;
  transition: all 0.5s ease-in-out;
}

.module-card:hover .detailed-desc {
  max-height: 500px;
  /* Arbitrary large height to fit content */
  opacity: 1;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Ensure the card flex container allows growth */
.module-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: auto;
}

/* Process/Hiring Steps */
.process-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}

.process-step {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 20px;
}

.process-icon {
  width: 80px;
  height: 80px;
  background-color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
  font-size: 2rem;
  color: var(--md-sys-color-primary);
  border: 4px solid var(--md-sys-color-primary-container);
}

/* Connecting Arrow Line */
.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 40px;
  /* Half of icon height */
  left: 50%;
  width: 100%;
  /* Spans to next center */
  height: 2px;
  background-color: #e0e0e0;
  z-index: 1;
}

/* Arrow Head */
.process-step:not(:last-child)::before {
  content: '\f054';
  /* FontAwesome chevron-right */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 40px;
  right: -10px;
  /* Adjust based on spacing */
  transform: translateY(-50%);
  background-color: transparent;
  color: #bdbdbd;
  z-index: 3;
  font-size: 14px;
}

@media (max-width: 768px) {
  .process-grid {
    flex-direction: column;
    gap: 40px;
  }

  .process-step:not(:last-child)::after {
    width: 2px;
    height: 100%;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
  }

  .process-step:not(:last-child)::before {
    content: '\f078';
    /* Chevron down */
    top: auto;
    bottom: -30px;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Responsive Design & Mobile Navigation */

/* Default Mobile Toggle Style */
.mobile-toggle {
  display: none !important;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 992px) {

  /* Header & Navigation */
  header .container {
    justify-content: space-between;
    padding: 0 20px;
  }

  .mobile-toggle {
    display: block !important;
  }

  .nav-menu {
    display: none;
    /* Hidden by default */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--md-sys-color-primary-container);
    padding: 24px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1000;
  }

  .nav-menu.active {
    display: block;
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    width: 100%;
  }

  .nav-menu li {
    width: 100%;
  }

  .has-mega-menu>a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  /* Mobile Mega Menu - Static instead of Hover */
  .mega-menu {
    position: static;
    /* Stack naturally */
    width: 100%;
    padding: 0;
    background: transparent;
    display: none;
    /* Hidden strictly until clicked */
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    margin-top: 10px;
    padding-left: 16px;
    /* Indent */
  }

  .has-mega-menu.active .mega-menu {
    display: block;
  }

  .mega-menu-content,
  .mega-menu-content-who,
  .mega-menu-content-careers {
    grid-template-columns: 1fr;
    /* Single column */
    gap: 12px;
  }

  .careers-column h4 {
    margin-top: 12px;
  }

  /* Adjust logo for mobile */
  .logo-wrapper {
    width: 48px;
    /* Reset animation width constraints */
  }

  .logo-text {
    opacity: 0;
    /* Hide text on mobile often best to save space, or show if needed */
    /* Optionally show it: */
    /* opacity: 1; position: static; transform: none; font-size: 1.2rem; margin-left:12px; */
  }

  /* General Layout Adjustments */
  .hero {
    padding: 100px 0 60px;
    text-align: center;
  }

  .hero .container {
    flex-direction: column;
    gap: 40px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .vm-split-layout {
    flex-direction: column;
  }

  .vm-left,
  .vm-right {
    max-width: 100%;
    flex: 0 0 100%;
  }

  /* Fix Footer Grid */
  footer .container {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer-brand p {
    margin: 0 auto;
  }

  .social-icons {
    justify-content: center;
  }

  /* Stats Section */
  .stats-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .custom-section-header h2 {
    font-size: 2rem;
  }

  .btn {
    width: 100%;
  }
}

/* Form Status Messages */
.form-status {
    margin-top: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
}

.form-status.success,
.form-status.error {
    opacity: 1;
    transform: translateY(0);
    padding: 12px 16px;
    border-radius: 8px;
    display: block;
}

.form-status.success {
    background-color: #e6f4ea;
    color: #1e8e3e;
    border: 1px solid #ceead6;
}

.form-status.error {
    background-color: #fce8e6;
    color: #d93025;
    border: 1px solid #fad2cf;
}