:root {
  /* ASM Corporate Tech Palette - Navy, Teal, and Slate */
  --primary: #003366; /* Deep Navy Blue */
  --primary-dark: #002244;
  --primary-light: #e6f0fa;
  --accent: #006666; /* Professional Teal/Forest Green from Logo */
  --accent-dark: #004d4d;
  --accent-light: #e0f2f2;
  --dark: #1a1c1e; /* Near Black */
  --dark-muted: #2d3135;
  --gray: #4a4f54;
  --gray-muted: #8e949a;
  --light: #f8f9fa; /* Soft Off-White */
  --white: #ffffff;
  --text-main: #2d3135;
  --text-muted: #5f6368;
  --border-color: #dee2e6;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.12);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.06);
  --transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.7;
  color: var(--text-main);
  background-color: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, .logo {
  font-family: 'Poppins', sans-serif;
  color: var(--dark);
  margin-top: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header & Navigation */
.sticky-top {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  display: block;
  height: auto;
  max-height: 50px;
  transition: var(--transition);
}

nav > ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}

nav a:hover {
  color: var(--primary);
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent);
  transition: var(--transition);
}

nav a:hover::after {
  width: 100%;
}

/* Dropdown Menu Styles - FIXED */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  min-width: 240px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 1100;
  display: flex;
  flex-direction: column;
}

.dropdown-menu li {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dropdown-menu a {
  display: block;
  padding: 0.4rem 1.5rem;
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.9rem;
  text-align: left;
  line-height: 1.2;
  transition: var(--transition);
}

.dropdown-menu a:hover {
  background-color: var(--primary-light);
  color: var(--primary);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hamburger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--dark);
  margin: 4px 0;
  transition: var(--transition);
}

/* Hero Section - Redesigned Split Layout */
.hero {
  padding: 3rem 0;
  background: var(--white);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  text-align: left;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1rem;
  line-height: 1.1;
  font-weight: 800;
  color: var(--dark);
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual img {
  max-width: 100%;
  height: auto;
  z-index: 2;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.1));
}

.hero-visual::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: var(--primary-light);
  border-radius: 50%;
  z-index: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Buttons & Links */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  margin-left: 1rem;
}

.btn-outline:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
}

.btn-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Sections */
section {
  padding: 2.5rem 0;
}

.section-bg-light {
  background-color: var(--light);
}

.section-bg-dark {
  background-color: var(--dark-muted);
  color: var(--white);
}

.section-bg-dark h1, .section-bg-dark h2, .section-bg-dark h3, .section-bg-dark h4 {
  color: var(--white);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--dark);
  font-weight: 700;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent);
  margin: 0.5rem auto 0;
}

/* Grid & Cards - Redesigned for Agency Feel */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
}

.card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 0;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-top: 4px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: relative;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--accent);
}

.card h4 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  transition: var(--transition);
}

.card a {
  text-decoration: none;
  color: inherit;
}

.card a:hover h4 {
  color: var(--accent);
}

/* Logo Carousel */
.logo-section {
  padding: 2rem 0;
  background-color: var(--white);
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--border-color);
}

.logo-carousel {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.logo-track {
  display: flex;
  width: max-content;
  animation: scroll 40s linear infinite;
  align-items: center;
  gap: 5rem;
}

.logo-placeholder {
  height: 45px;
  padding: 5px 50px;
  background-color: var(--light);
  color: var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: 2px;
  opacity: .6;
  transition: var(--transition);
  white-space: nowrap;
  border: 1px solid var(--border-color);
}

.logo-placeholder:hover {
  opacity: 1;
  background-color: var(--white);
  color: var(--primary);
  border-color: var(--primary);
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Metrics */
.metrics {
  background-color: var(--primary);
  color: var(--white);
  padding: 3rem 0;
}

.metrics .section-title {
  color: var(--white);
}

.metrics .section-title::after {
  background: var(--accent);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  text-align: center;
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.metric-number {
  display: block;
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent);
  font-family: 'Poppins', sans-serif;
}

.metric-label {
  display: block;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

/* Testimonials */
.testimonial-card {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem;
  background-color: var(--light);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.testimonial-text {
  font-size: 1.5rem;
  font-style: italic;
  color: var(--text-main);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.testimonial-author {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.2rem;
}

/* Content Areas */
.content-area {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.8;
  color: var(--text-main);
}

.content-area p {
  margin-bottom: 1rem;
  font-size: 1.15rem;
}

.content-area strong {
  color: var(--dark);
  font-weight: 700;
}

/* Footer */
footer {
  background-color: var(--dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 3rem 0;
  text-align: center;
  font-size: .95rem;
}

footer p {
  margin: 0;
}

.footer-spacer {
  height: 150px; /* Reduced from 40px to 150px as requested */
  background-color: var(--white);
  width: 100%;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content {
    text-align: center;
    order: 1;
  }
  
  .hero-visual {
    order: 0;
    margin-bottom: 2rem;
  }

  .hero p {
    margin: 0 auto 2rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
  
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: var(--white);
    padding: 2rem 0;
    gap: 0;
    text-align: center;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--border-color);
    overflow-y: auto;
    max-height: calc(100vh - 70px);
  }
  
  nav ul.show {
    display: flex;
  }
  
  nav a {
    color: var(--dark);
    font-size: 1.1rem;
    padding: 0.75rem 0;
    display: block;
    outline: none;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
  }
  
  .hamburger-menu {
    display: block;
  }
  
  .hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .hero {
    padding: 3rem 0;
  }

  .hero-visual {
    display: none;
  }

  .btn-outline {
    margin-left: 0;
    margin-top: 1rem;
    display: block;
    text-align: center;
  }

  /* Mobile Submenu Styles */
  .dropdown {
    width: 100%;
    text-align: center;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    display: none;
    background-color: var(--primary-light);
    width: 100%;
    padding: 0;
  }

  .dropdown-menu.show {
    display: block;
  }

  .dropdown-menu a {
    padding: 0.75rem 0;
    font-size: 1rem;
    color: var(--text-main);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    outline: none;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
    display: block;
    width: 100%;
    transition: var(--transition);
  }

  .dropdown-menu a:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--primary);
  }

  .dropdown-menu li:last-child a {
    border-bottom: none;
  }
}