:root {
  /* ========================================
     "SPINE" HIGH-IMPACT INDUSTRIAL THEME
     Vibrant, Premium, Bold
     ======================================== */

  /* 1. Deep Navy - Professional, Strong Foundation */
  --color-primary: #0A2540;

  /* 2. Vibrant Orange - Energy, Action, Engineering Power */
  --color-accent: #FF6B35;

  /* 3. Warm Teal - Growth, Innovation, Trust */
  --color-secondary: #1FB8B0;

  /* 4. Deep Blue-Grey Canvas - Modern, Not Boring White */
  --color-bg: #F5F7FA;

  /* Mapping for backward compatibility */
  --bg: var(--color-bg);
  --text: #0A2540;
  --muted: #4A5568;
  --primary: var(--color-primary);
  --accent: var(--color-accent);
  --secondary: var(--color-secondary);

  /* Updated lighter shades */
  --light: #E8EDF2;
  --border: #CBD5E0;

  /* Enhanced shadows for depth */
  --shadow-sm: 0 2px 4px rgba(10, 37, 64, 0.08), 0 1px 2px rgba(10, 37, 64, 0.04);
  --shadow-md: 0 6px 12px rgba(10, 37, 64, 0.1), 0 3px 6px rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 20px 40px rgba(10, 37, 64, 0.15), 0 10px 20px rgba(10, 37, 64, 0.1);
}

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

html {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Roboto', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  /* Prevent horizontal scroll/gap */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  width: 100%;
}

/* Top Bar Styles */
.top-bar {
  background-color: #1E9CD7;
  /* Blue to match image */
  color: #fff;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  font-family: 'Roboto', sans-serif;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-info {
  display: flex;
  gap: 1.5rem;
}

.contact-info span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: #fff;
  font-size: 1rem;
  transition: opacity 0.2s;
}

.social-links a:hover {
  opacity: 0.8;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.logo img {
  height: 48px;
  transition: transform 0.3s ease;
  border-radius: 8px;
  /* Removed border for white bg */
}

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

nav ul {
  display: flex;
  list-style: none;
  gap: 1rem;
}

nav a {
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: var(--primary);
  /* Dark Navy text */
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
  font-size: 1rem;
}

nav a:hover {
  color: var(--color-accent);
  /* Orange/Amber hover */
  background: rgba(31, 184, 176, 0.05);
}

nav a.active {
  color: var(--color-accent);
  font-weight: 700;
  background: transparent;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--primary);
  /* Dark toggle for white header */
  padding: 0.5rem;
  transition: transform 0.3s ease;
  z-index: 1001;
}

.menu-toggle:hover {
  transform: scale(1.1);
}

/* Hide mobile close button on desktop */
.mobile-close-btn {
  display: none;
}

/* Main content */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.page {
  display: none;
  animation: fadeIn 0.4s ease-out;
  flex: 1;
}

.page.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section.alt {
  background: var(--light);
}

h1,
h2,
h3 {
  font-family: 'Poppins', sans-serif;
  margin-bottom: 1rem;
  color: var(--primary);
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent);
  margin-top: 0.5rem;
  border-radius: 2px;
}

/* Grid */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-1 {
  grid-template-columns: 1fr;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;

}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.card h3 {
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.card-img {
  width: 100%;
  height: 200px;
  background: var(--light);
  border-radius: 8px;
  margin-bottom: 1rem;
  object-fit: cover;
  border: 1px solid var(--border);
}

.card-img[src=""] {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.9rem;
  border: 2px dashed var(--border);
}

.card-img[src=""]:after {
  content: 'Photo placeholder';
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  /* Full viewport height */
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* Default center, can be left aligned if requested */
  overflow: hidden;
  color: #fff;
  padding: 0;
  /* Remove padding as we use flex centering */
}

/* Hero Slideshow Styles */
.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  /* Slower smooth transition */
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  /* Slight zoom for effect */
  transition: transform 10s ease;
  /* Subtle zoom animation could be added here or via JS */
}



/* Darker Overlay for better text visibility */
.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
  z-index: -1;
}

/* New Hero Content Layout */
.hero-content-layout {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1000px;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* Left align as per modern style? Or center? Prompt said "centered or aligned left". Let's go Left for impact */
  text-align: left;
}

.hero-text-container {
  width: 100%;
}

.hero-headline {
  font-family: 'Roboto', sans-serif;
  /* Or Inter if available */
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  /* Responsive huge font */
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 2.5rem;
  text-transform: capitalize;
  letter-spacing: -0.02em;
  min-height: 3.3em;
  /* Reserve space for max lines to prevent jumping */
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-cta-wrapper {
  margin-top: 1rem;
}

/* Lime Button */
.btn-lime {
  background: #c1e124;
  /* Bright Lime */
  color: #0b1f3a;
  /* Dark Navy Text */
  border: none;
  font-weight: 700;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  background: var(--color-accent);
  color: #0F172A;
  font-weight: 800;
  border: 2px solid var(--color-accent);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-lime:hover {
  background: #B45309;
  /* Deep Amber */
  border-color: #B45309;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
}

/* Hero Slideshow Dots */
.hero-slideshow-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 20;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.hero-dot.active {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.3);
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(11, 31, 58, 0.7), rgba(11, 31, 58, 0.5));
  z-index: -1;
}

.hero h1 {
  color: #fff;
  margin-bottom: 1.5rem;
  font-size: 3rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.25rem;
  color: #f1f1f1;
  margin-bottom: 2.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero .content {
  position: relative;
  z-index: 10;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  /* Industrial sharp/slightly rounded look */
  text-decoration: none;
  font-weight: 700;
  /* Bold for impact */
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  outline: none;
  text-transform: uppercase;
  /* Industrial feel */
  letter-spacing: 0.5px;
  font-size: 0.95rem;
}

/* Primary Button (Use Accent/Amber) */
.btn-primary {
  background: var(--color-accent);
  /* Safety Amber */
  color: #1a0f00;
  /* Dark text for contrast on Amber */
  box-shadow: 0 4px 6px rgba(245, 158, 11, 0.3);
  /* Subtle colored shadow */
}

.btn-primary:hover {
  background: #D97706;
  /* Darker Amber/Orange on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(245, 158, 11, 0.4);
}

/* Secondary Button (Use Primary/Slate or Outline) */
.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

/* Tabs */
.tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  justify-content: center;
}

.tab {
  padding: 0.75rem 1.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
  color: var(--muted);
}

.tab:hover {
  border-color: var(--accent);
  color: var(--primary);
}

.tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 10px rgba(11, 31, 58, 0.2);
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
  display: block;
}

/* Lists */
ul.check {
  list-style: none;
  padding-left: 0;
}

ul.check li {
  padding-left: 2rem;
  position: relative;
  margin: 0.75rem 0;
  color: var(--text);
}

ul.check li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
  font-size: 1.2rem;
}

/* Form */
form {
  display: grid;
  gap: 1.25rem;
}

label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

input,
textarea,
select {
  width: 100%;
  padding: 0.875rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fcfcfc;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 31, 58, 0.1);
  background: #fff;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.success {
  color: #0a8f3d;
  font-weight: 600;
  padding: 1rem;
  background: #e6f4ea;
  border-radius: 6px;
  text-align: center;
}

.error {
  color: #b00020;
  font-weight: 600;
  padding: 1rem;
  background: #fde7e9;
  border-radius: 6px;
  text-align: center;
}

/* Contact Info */
.contact-section {
  background: var(--light);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.contact-section a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.contact-section a:hover {
  color: var(--accent);
}

.download-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background-color: #0077b5;
  /* LinkedIn Blue style or similar professional color */
  color: #fff !important;
  text-decoration: none;
  font-size: 0.95rem;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.2s;
}

.download-btn:hover {
  background-color: #005e93;
}

/* Footer */
footer {
  background: var(--primary);
  color: #c9d3e8;
  padding: 3rem 0;
  text-align: center;
  margin-top: auto;
  border-top: 4px solid var(--accent);
}

/* Responsive */
/* ========================================
   MOBILE SLIDE-IN MENU
   ======================================== */

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 37, 64, 0.5);
  backdrop-filter: blur(3px);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.show {
  display: block;
  opacity: 1;
}

/* Mobile Responsive Adjustments for Header */
@media (max-width: 991px) {
  .top-bar-content {
    flex-direction: row;
    /* Keep row to have left/right split */
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding: 0 1rem;
    /* Add some padding */
  }

  .contact-info {
    flex-direction: column;
    /* Stack phone and email vertically */
    gap: 0.2rem;
    align-items: flex-start;
    font-size: 0.8rem;
    /* Slightly smaller font to fit email */
  }

  .social-links {
    /* Social links stay in a row on the right */
    gap: 0.8rem;
  }

  .header-content {
    padding: 0.5rem 0;
  }
}

@media (max-width: 768px) {

  /* Existing mobile styles content... */
  .menu-toggle {
    display: block;
    margin-right: 10px;
  }

  /* Close button for mobile menu */
  .mobile-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-primary);
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
    z-index: 1002;
  }

  .mobile-close-btn:hover {
    transform: rotate(90deg);
    color: var(--color-accent);
  }

  /* Slide-in Menu Panel */
  nav ul {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: linear-gradient(180deg, #fff 0%, #F5F7FA 100%);
    box-shadow: 10px 0 40px rgba(10, 37, 64, 0.3);
    padding: 80px 0 2rem 0;
    flex-direction: column;
    text-align: left;
    z-index: 999;
    transition: left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow-y: auto;
    display: flex;
    gap: 0;
  }

  nav ul.show {
    left: 0;
  }

  nav ul li {
    border-bottom: 1px solid var(--border);
    width: 100%;
  }

  nav ul li:last-child {
    border-bottom: none;
  }

  nav a {
    display: block;
    padding: 1rem 2rem;
    color: var(--color-primary);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    border-radius: 0;
    transition: all 0.3s ease;
    position: relative;
  }

  nav a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--color-accent);
    transform: scaleY(0);
    transition: transform 0.3s ease;
  }

  nav a:hover {
    background: rgba(31, 184, 176, 0.1);
    color: var(--color-accent);
    padding-left: 2.5rem;
  }

  nav a:hover::before {
    transform: scaleY(1);
  }

  nav a.active {
    background: linear-gradient(90deg, rgba(255, 107, 53, 0.15) 0%, transparent 100%);
    color: var(--color-accent);
  }

  nav a.active::before {
    transform: scaleY(1);
  }

  /* Mobile Menu Header */
  .mobile-menu-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .mobile-menu-header .logo-text {
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
  }

  /* Animation for menu items */
  nav ul.show li {
    animation: slideInMenuItem 0.4s ease forwards;
    opacity: 0;
    transform: translateX(-20px);
  }

  nav ul.show li:nth-child(1) {
    animation-delay: 0.1s;
  }

  nav ul.show li:nth-child(2) {
    animation-delay: 0.15s;
  }

  nav ul.show li:nth-child(3) {
    animation-delay: 0.2s;
  }

  nav ul.show li:nth-child(4) {
    animation-delay: 0.25s;
  }

  nav ul.show li:nth-child(5) {
    animation-delay: 0.3s;
  }

  nav ul.show li:nth-child(6) {
    animation-delay: 0.35s;
  }

  nav ul.show li:nth-child(7) {
    animation-delay: 0.4s;
  }

  nav ul.show li:nth-child(8) {
    animation-delay: 0.45s;
  }

  @keyframes slideInMenuItem {
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  .hero h1 {
    font-size: 2rem;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .tabs {
    flex-direction: column;
  }

  .tab {
    width: 100%;
    text-align: center;
  }
}

/* Clients Carousel Section */
.section-intro,
.client-relationships {
  max-width: 900px;
  margin: 0 auto 3rem;
  text-align: center;
  color: var(--text);
  font-size: 1.1rem;
}

.client-relationships {
  margin-top: 3rem;
  margin-bottom: 0;
  font-style: italic;
  color: var(--muted);
}

.clients-carousel-wrapper {
  position: relative;
  padding: 0 3rem;
  /* Space for arrows */
}

.clients-carousel-container {
  overflow: hidden;
  margin: 0 -1rem;
  /* Negative margin to counteract card padding for perfect alignment */
  padding: 1rem;
  /* Padding for shadow clipping */
}

.clients-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.client-card {
  flex: 0 0 100%;
  /* Default mobile: 1 card */
  max-width: 100%;
  padding: 0 1rem;
  /* Gap simulation */
  box-sizing: border-box;
}

.client-card-inner {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* Changed to vertical stack */
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
}

.client-card-inner:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.client-logo-wrapper {
  flex: 0 0 150px;
  /* Fixed height for the logo area */
  width: 100%;
  /* Full width */
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: none;
  border-bottom: 1px solid var(--border);
  /* Moved border to bottom */
  padding: 1rem;
}

.client-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  /* Helps logos blend if they have white bg */
}

/* Fallback for no logo */
.client-logo-placeholder {
  font-size: 2rem;
  color: var(--muted);
  font-weight: bold;
}

.client-content {
  flex: 1;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.client-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.client-desc {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
  /* Removed line clamping to show full text */
}

/* Navigation Buttons */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid var(--border);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--primary);
  font-size: 1.2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
  z-index: 10;
}

.nav-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.nav-btn.prev {
  left: 0;
}

.nav-btn.next {
  right: 0;
}

/* Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all 0.3s;
}

.dot.active {
  background: var(--accent);
  transform: scale(1.2);
}

.dot:hover {
  background: var(--muted);
}

/* Responsive Card Sizing */
@media (min-width: 768px) {
  .client-card {
    flex: 0 0 50%;
    /* 2 cards */
    max-width: 50%;
  }
}

@media (min-width: 1100px) {
  .client-card {
    flex: 0 0 33.3333%;
    /* 3 cards */
    max-width: 33.3333%;
  }
}

@media (min-width: 1400px) {
  .client-card {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

/* ========================================
   TEAM SECTION STYLES
   ======================================== */

/* Team Hero Section */
.team-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1a3a5a 100%);
  padding: 4rem 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.team-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
  opacity: 0.5;
}

.team-hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.team-hero h1 {
  color: #fff;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.team-hero h1::after {
  background: var(--accent);
  margin: 1rem auto 0;
}

.team-tagline {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.team-intro {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.team-principle-highlight {
  background: rgba(212, 175, 55, 0.15);
  border-left: 4px solid var(--accent);
  padding: 1.5rem;
  border-radius: 8px;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-top: 2rem;
}

/* Section Subtitle */
.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 800px;
  margin: -0.5rem auto 3rem;
}

/* Team Departments Grid */
.team-departments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.team-dept-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.team-dept-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.team-dept-card:hover::before {
  transform: scaleX(1);
}

.team-dept-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  border-color: var(--accent);
}

.dept-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.team-dept-card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.dept-description {
  color: var(--text);
  margin-bottom: 1rem;
  font-weight: 500;
}

.dept-note {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--light);
  border-radius: 8px;
  font-style: italic;
  color: var(--muted);
  font-size: 0.95rem;
  border-left: 3px solid var(--accent);
}

/* Team Principles Grid */
.team-principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.principle-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  text-align: center;
  transition: all 0.3s ease;
}

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

.principle-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.principle-card h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.principle-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Culture Grid */
.culture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.culture-card {
  background: linear-gradient(135deg, #fff 0%, var(--light) 100%);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  position: relative;
  transition: all 0.3s ease;
}

.culture-card:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.culture-number {
  position: absolute;
  top: -15px;
  right: 20px;
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.2;
}

.culture-card h4 {
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

.culture-card p {
  color: var(--text);
  margin: 0;
  line-height: 1.6;
}

/* Trust Factors Grid */
.trust-factors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.trust-card {
  background: #fff;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  border: 2px solid var(--border);
  text-align: center;
  transition: all 0.3s ease;
}

.trust-card:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.trust-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.trust-card h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.trust-card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

/* Team Statement */
.team-statement {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
  border: 2px solid var(--accent);
}

.team-statement p {
  font-size: 1.2rem;
  color: var(--primary);
  margin: 0.5rem 0;
}

.team-statement p:first-child {
  font-size: 1.4rem;
}

/* Team Commitment */
.team-commitment {
  text-align: center;
  margin-top: 2rem;
  font-size: 1.1rem;
  color: var(--text);
  font-style: italic;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Team CTA Section */
.team-cta {
  background: linear-gradient(135deg, var(--primary) 0%, #1a3a5a 100%);
  color: #fff;
  padding: 4rem 0;
}

.cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.cta-content h2::after {
  background: var(--accent);
  margin: 1rem auto 0;
}

.cta-content>p {
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.cta-footer {
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.cta-footer p {
  margin: 0.25rem 0;
  font-size: 1.1rem;
}

.cta-tagline {
  color: var(--accent);
  font-weight: 600;
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */

.animate-on-scroll {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
  opacity: 1;
}

/* Fade In */
.fade-in {
  transform: translateY(20px);
}

.fade-in.animated {
  transform: translateY(0);
}

/* Slide Up */
.slide-up {
  transform: translateY(40px);
}

.slide-up.animated {
  transform: translateY(0);
}

/* Slide Left */
.slide-left {
  transform: translateX(-40px);
}

.slide-left.animated {
  transform: translateX(0);
}

/* Slide Right */
.slide-right {
  transform: translateX(40px);
}

.slide-right.animated {
  transform: translateX(0);
}

/* Zoom In */
.zoom-in {
  transform: scale(0.9);
}

.zoom-in.animated {
  transform: scale(1);
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 768px) {
  .team-hero h1 {
    font-size: 2rem;
  }

  .team-tagline {
    font-size: 1.2rem;
  }

  .team-intro {
    font-size: 1rem;
  }

  .team-departments,
  .team-principles,
  .culture-grid,
  .trust-factors {
    grid-template-columns: 1fr;
  }

  .dept-icon,
  .trust-icon {
    font-size: 2.5rem;
  }

  .culture-number {
    font-size: 2rem;
  }

  .cta-content h2 {
    font-size: 1.8rem;
  }
}

/* ========================================
   ABOUT SECTION STYLES
   ======================================== */

/* About Hero Section */
.about-hero {
  background: linear-gradient(135deg, #1a3a5a 0%, var(--primary) 100%);
  padding: 4rem 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.about-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="80" height="80" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="dots" width="80" height="80" patternUnits="userSpaceOnUse"><circle cx="40" cy="40" r="2" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23dots)"/></svg>');
  opacity: 0.6;
}

.about-hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.about-hero h1 {
  color: #fff;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.about-hero h1::after {
  background: var(--accent);
  margin: 1rem auto 0;
}

.about-tagline {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.about-intro {
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.95);
}

.about-principle {
  background: rgba(212, 175, 55, 0.2);
  border: 2px solid var(--accent);
  padding: 1.5rem;
  border-radius: 8px;
  font-size: 1.15rem;
  line-height: 1.6;
  margin: 2rem 0;
  font-weight: 500;
}

.about-belief {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 1.5rem;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.service-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.service-card h3 {
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.service-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
}

.service-note {
  text-align: center;
  margin-top: 2rem;
  font-size: 1.05rem;
  color: var(--text);
  font-style: italic;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Work Process */
.work-process {
  background: #fff;
  border-left: 4px solid var(--accent);
  padding: 2rem;
  border-radius: 8px;
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
}

.work-process p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text);
  margin: 0;
}

/* Work Focus Grid */
.work-focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.focus-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  border: 2px solid var(--border);
  text-align: center;
  transition: all 0.3s ease;
}

.focus-card:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.focus-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.focus-card h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.focus-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

/* Team Overview */
.team-overview {
  background: linear-gradient(135deg, #fff 0%, var(--light) 100%);
  border-radius: 16px;
  padding: 3rem;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--border);
}

.team-overview-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.team-icon-large {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.team-overview-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.team-culture-note {
  font-weight: 600;
  color: var(--primary);
  font-size: 1.05rem;
  margin-bottom: 2rem !important;
}

/* Location Content */
.location-content {
  background: #fff;
  border-radius: 12px;
  padding: 3rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--border);
  max-width: 800px;
  margin: 0 auto;
}

.location-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.location-content p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text);
  margin: 0;
}

/* Commitment Grid */
.commitment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.commitment-card {
  background: linear-gradient(135deg, #fff 0%, var(--light) 100%);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  position: relative;
  transition: all 0.3s ease;
}

.commitment-card:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.commitment-number {
  position: absolute;
  top: -15px;
  right: 20px;
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.2;
}

.commitment-card h4 {
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

.commitment-card p {
  color: var(--text);
  margin: 0;
  line-height: 1.6;
}

/* Commitment Statement */
.commitment-statement {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
  border: 2px solid var(--accent);
}

.commitment-statement p {
  font-size: 1.2rem;
  color: var(--primary);
  margin: 0.5rem 0;
}

.commitment-statement p:first-child {
  font-size: 1.4rem;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS FOR ABOUT
   ======================================== */

@media (max-width: 768px) {
  .about-hero h1 {
    font-size: 2rem;
  }

  .about-tagline {
    font-size: 1.1rem;
  }

  .about-intro {
    font-size: 1rem;
  }

  .services-grid,
  .work-focus-grid,
  .commitment-grid {
    grid-template-columns: 1fr;
  }

  .team-overview,
  .location-content {
    padding: 2rem 1.5rem;
  }

  .team-icon-large,
  .location-icon {
    font-size: 3rem;
  }
}

/* ========================================
   SERVICES SECTION STYLES
   ======================================== */

/* Services Hero */
.services-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #2a4a6a 100%);
  padding: 4rem 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.services-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="hexagons" width="60" height="60" patternUnits="userSpaceOnUse"><path d="M30 0 L45 15 L45 45 L30 60 L15 45 L15 15 Z" fill="none" stroke="rgba(255,255,255,0.04)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23hexagons)"/></svg>');
  opacity: 0.7;
}

.services-hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.services-hero h1 {
  color: #fff;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.services-hero h1::after {
  background: var(--accent);
  margin: 1rem auto 0;
}

.services-tagline {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.services-intro {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.95);
}

/* Service Domain Cards */
.service-domain {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--border);
  transition: all 0.3s ease;
}

.service-domain:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.service-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--light);
}

.service-number {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
  min-width: 80px;
}

.service-header h2 {
  margin-bottom: 0.5rem;
  font-size: 2rem;
}

.service-header h2::after {
  display: none;
}

.service-lead {
  font-size: 1.15rem;
  color: var(--muted);
  font-style: italic;
  margin: 0;
}

/* Service Content Wrapper - Two Column Layout */
.service-content-wrapper {
  display: grid;
  grid-template-columns: 450px 1fr;
  gap: 3rem;
  align-items: start;
}

.service-image {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border: 3px solid var(--border);
  background: var(--light);
}

.service-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.service-domain:hover .service-image img {
  transform: scale(1.08);
}

.service-domain:hover .service-image {
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.3);
}

.service-content {
  color: var(--text);
}

.service-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.service-content h4 {
  color: var(--primary);
  font-size: 1.3rem;
  margin: 2rem 0 1rem;
  font-weight: 600;
}

/* Capabilities List */
.capabilities-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.capabilities-list li {
  padding-left: 2rem;
  position: relative;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.6;
}

.capabilities-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
  font-size: 1.2rem;
}

/* Key Projects Section */
.key-projects {
  margin-top: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, var(--light) 0%, #fff 100%);
  border-radius: 12px;
  border-left: 4px solid var(--accent);
}

.key-projects h4 {
  margin-top: 0;
  color: var(--primary);
  font-size: 1.4rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.project-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  border: 2px solid var(--border);
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.project-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.project-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.project-card h5 {
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.project-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS FOR SERVICES
   ======================================== */

@media (max-width: 768px) {
  .services-hero h1 {
    font-size: 2rem;
  }

  .services-tagline {
    font-size: 1.2rem;
  }

  .services-intro {
    font-size: 1rem;
  }

  .service-domain {
    padding: 1.5rem;
  }

  .service-header {
    flex-direction: column;
    gap: 1rem;
  }

  .service-number {
    font-size: 2.5rem;
    min-width: auto;
  }

  .service-header h2 {
    font-size: 1.5rem;
  }

  /* Stack image and content vertically on mobile */
  .service-content-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-image {
    position: relative;
    top: 0;
  }

  .service-image img {
    height: 280px;
  }

  .capabilities-list {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
}