/*
 * Audiva Labs Website CSS Design System
 * Focus: Clean, premium B2B technology aesthetic
 * Typography: Space Grotesk (Headings), Inter (Body)
 */

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

/* --- Core Variables --- */
:root {
  /* Color Palette (HSL Tailored) */
  --primary: hsl(224, 90%, 54%);       /* Electric Blue (Bluetooth, Signals) */
  --primary-hover: hsl(224, 90%, 46%);
  --primary-light: hsl(224, 90%, 96%);
  --accent: hsl(180, 100%, 40%);       /* Technical Teal/Cyan */
  --accent-light: hsl(180, 100%, 97%);
  
  --dark: hsl(220, 20%, 10%);          /* Slate Charcoal (Text, Deep Accents) */
  --dark-soft: hsl(220, 15%, 20%);
  --light: hsl(0, 0%, 100%);           /* Pure Light Neutral */
  --bg-subtle: hsl(220, 12%, 97%);     /* Soft Gray Backing */
  
  /* Borders and Contours */
  --border-color: rgba(220, 20%, 10%, 0.08);
  --border-color-hover: rgba(220, 20%, 10%, 0.16);
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  
  /* Typography Variables */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Shadows and Transitions */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(220, 20%, 10%, 0.04);
  --shadow-lg: 0 16px 40px rgba(220, 20%, 10%, 0.06);
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Layout constraints */
  --max-width: 1280px;
  --header-height: 80px;
}

/* --- Document Resets --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--dark-soft);
  background-color: var(--light);
  overflow-x: hidden;
}

/* --- Typography Defaults --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--dark);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  color: hsl(220, 10%, 35%);
  font-weight: 300;
}

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

a:hover {
  color: var(--primary-hover);
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Core Layout Utilities --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 8rem 0;
  border-bottom: 1px solid var(--border-color);
}

.section-bg-subtle {
  background-color: var(--bg-subtle);
}

.section-header {
  max-width: 680px;
  margin-bottom: 5rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-title {
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.section-subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  color: hsl(220, 10%, 40%);
  line-height: 1.6;
}

/* --- Buttons & CTAs --- */
.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-normal);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--dark);
  color: var(--light);
}

.btn-primary:hover {
  background-color: var(--primary);
  color: var(--light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(36, 99, 235, 0.15);
}

.btn-secondary {
  background-color: transparent;
  color: var(--dark);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background-color: rgba(220, 20%, 10%, 0.03);
  border-color: var(--dark);
  transform: translateY(-2px);
}

/* --- Header / Navigation Bar --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: var(--transition-normal);
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  height: 70px;
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--primary);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--dark-soft);
  position: relative;
  padding: 0.5rem 0;
}

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

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

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

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

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1100;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--dark);
  position: absolute;
  left: 0;
  transition: var(--transition-normal);
}

.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 10px; }
.nav-toggle span:nth-child(3) { top: 20px; }

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg);
  top: 10px;
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg);
  top: 10px;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  padding: 11rem 0 8rem 0;
  background-color: var(--light);
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.hero-content {
  max-width: 580px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--primary-light);
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(36, 99, 235, 0.15);
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.3rem;
  font-weight: 300;
  color: hsl(220, 10%, 40%);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 520px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  background-color: var(--bg-subtle);
}

.hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: var(--transition-slow);
}

.hero-image-wrapper:hover .hero-image {
  transform: scale(1.03);
}

.hero-tech-nodes {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(36, 99, 235, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

/* --- What We Do Section --- */
.what-we-do-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

.service-card {
  background-color: var(--light);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 2.5rem 2rem;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: transparent;
  transition: var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--dark);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
  background-color: var(--primary);
}

.service-icon {
  margin-bottom: 2rem;
  width: 48px;
  height: 48px;
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-sm);
  background-color: var(--bg-subtle);
  transition: var(--transition-normal);
}

.service-card:hover .service-icon {
  background-color: var(--primary-light);
  color: var(--primary);
}

.service-card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.service-card-desc {
  font-size: 0.95rem;
  line-height: 1.5;
  color: hsl(220, 10%, 45%);
  margin-bottom: 2rem;
  flex-grow: 1;
}

.service-card-link {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
}

.service-card-link svg {
  transition: var(--transition-fast);
}

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

.service-card:hover .service-card-link svg {
  transform: translateX(4px);
}

/* --- Technology Expertise Section --- */
.tech-expert-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.tech-tabs {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tech-tab-button {
  background: none;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 1.75rem;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tech-tab-button:hover {
  border-color: rgba(220, 20%, 10%, 0.2);
  background-color: rgba(220, 20%, 10%, 0.01);
}

.tech-tab-button.active {
  border-color: var(--dark);
  background-color: var(--light);
  box-shadow: var(--shadow-md);
}

.tech-tab-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tech-tab-title svg {
  color: transparent;
  transition: var(--transition-normal);
}

.tech-tab-button.active .tech-tab-title svg {
  color: var(--primary);
}

.tech-tab-desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: hsl(220, 10%, 45%);
  font-weight: 300;
}

.tech-showcase-panel {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  background-color: var(--light);
  height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.tech-content-group {
  display: none;
  height: 100%;
  flex-direction: column;
  justify-content: space-between;
}

.tech-content-group.active {
  display: flex;
  animation: fadeIn 0.4s ease-out;
}

.tech-content-header h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.tech-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.tech-spec-tag {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  background-color: var(--bg-subtle);
  color: var(--dark-soft);
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  border: 1px solid var(--border-color);
}

.tech-visual-display {
  flex-grow: 1;
  background: radial-gradient(circle at center, rgba(36, 99, 235, 0.05) 0%, transparent 70%);
  border-radius: var(--border-radius-md);
  border: 1px dashed var(--border-color);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.tech-spec-diagram {
  max-width: 90%;
  height: auto;
  opacity: 0.85;
}

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

/* --- Industries Section --- */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.industry-card {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  height: 380px;
  border: 1px solid var(--border-color);
  transition: var(--transition-slow);
  background-color: var(--bg-subtle);
}

.industry-card:hover {
  transform: translateY(-8px);
  border-color: var(--dark);
  box-shadow: var(--shadow-lg);
}

.industry-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

.industry-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2.5rem 2rem;
  background: linear-gradient(to top, rgba(10, 12, 16, 0.95) 0%, rgba(10, 12, 16, 0.6) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--light);
}

.industry-card-title {
  font-size: 1.5rem;
  color: var(--light);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.industry-card-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
  font-weight: 300;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition-normal);
}

.industry-card:hover .industry-card-desc {
  opacity: 1;
  transform: translateY(0);
}

/* --- Ecosystem Approach Section --- */
.ecosystem-flow {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 1rem;
  position: relative;
  margin-top: 3rem;
}

.ecosystem-step {
  flex: 1;
  background-color: var(--light);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 2.5rem 1.5rem;
  text-align: center;
  transition: var(--transition-normal);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ecosystem-step:hover {
  border-color: var(--dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.ecosystem-step-num {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.ecosystem-step-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.ecosystem-step-desc {
  font-size: 0.85rem;
  color: hsl(220, 10%, 45%);
  margin-bottom: 0;
  line-height: 1.4;
}

.ecosystem-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(220, 20%, 10%, 0.15);
}

/* --- Why Audiva Labs Section --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.why-pillar {
  padding-right: 2rem;
  border-right: 1px solid var(--border-color);
}

.why-pillar:last-child {
  padding-right: 0;
  border-right: none;
}

.why-pillar-icon {
  width: 52px;
  height: 52px;
  color: var(--primary);
  background-color: var(--primary-light);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.why-pillar-title {
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}

.why-pillar-desc {
  font-size: 1.05rem;
  color: hsl(220, 10%, 40%);
  font-weight: 300;
  line-height: 1.6;
}

/* --- Engagement Models Section --- */
.engagement-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
}

.engagement-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background-color: var(--light);
}

.engagement-table th,
.engagement-table td {
  padding: 1.75rem 2rem;
  border-bottom: 1px solid var(--border-color);
}

.engagement-table th {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--dark);
  background-color: var(--bg-subtle);
  border-bottom: 2px solid var(--border-color);
}

.engagement-table tbody tr:last-child td {
  border-bottom: none;
}

.engagement-table tbody tr {
  transition: var(--transition-fast);
}

.engagement-table tbody tr:hover {
  background-color: rgba(36, 99, 235, 0.015);
}

.engagement-model-cell {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.engagement-model-cell span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary);
}

.engagement-scenarios-cell {
  font-weight: 500;
  color: var(--dark);
}

.engagement-desc-cell {
  font-size: 0.95rem;
  color: hsl(220, 10%, 45%);
}

.engagement-action-cell {
  text-align: right;
}

.engagement-btn {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.engagement-btn svg {
  transition: var(--transition-fast);
}

.engagement-table tr:hover .engagement-btn svg {
  transform: translateX(4px);
}

/* --- Contact & Lead Generation --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-info-header h2 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 2rem;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 3rem 0;
}

.contact-channel {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.contact-channel-icon {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background-color: var(--primary-light);
  flex-shrink: 0;
}

.contact-channel-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.contact-channel-value {
  font-size: 1.05rem;
  color: hsl(220, 10%, 40%);
  font-weight: 300;
}

.contact-form-container {
  background-color: var(--light);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 3.5rem;
  box-shadow: var(--shadow-lg);
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background-color: var(--bg-subtle);
  color: var(--dark);
  outline: none;
  transition: var(--transition-normal);
}

.form-input:focus {
  border-color: var(--primary);
  background-color: var(--light);
  box-shadow: 0 0 0 4px rgba(36, 99, 235, 0.08);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.25rem;
  padding-right: 2.5rem;
}

.form-submit-btn {
  background-color: var(--dark);
  color: var(--light);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: var(--border-radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.form-submit-btn:hover {
  background-color: var(--primary);
  box-shadow: 0 8px 20px rgba(36, 99, 235, 0.2);
}

/* Success Toast / Modal */
.form-success-toast {
  display: none;
  background-color: #10B981;
  color: var(--light);
  padding: 1.25rem 2rem;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-heading);
  font-weight: 500;
  text-align: center;
  animation: fadeIn 0.4s ease-out;
  margin-top: 1rem;
}

/* --- Footer --- */
.footer {
  background-color: var(--bg-subtle);
  padding: 6rem 0 3rem 0;
  border-top: 1px solid var(--border-color);
}

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

.footer-brand {
  max-width: 320px;
}

.footer-desc {
  font-size: 0.95rem;
  color: hsl(220, 10%, 45%);
  margin-top: 1.5rem;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-link {
  font-size: 0.95rem;
  color: hsl(220, 10%, 45%);
  transition: var(--transition-fast);
}

.footer-link:hover {
  color: var(--primary);
  transform: translateX(2px);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-copyright {
  font-size: 0.9rem;
  color: hsl(220, 10%, 50%);
}

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

.footer-legal-link {
  font-size: 0.9rem;
  color: hsl(220, 10%, 50%);
}

.footer-legal-link:hover {
  color: var(--dark);
}

/* --- Service Page Layout & Elements --- */
.service-hero {
  padding: 10rem 0 5rem 0;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-subtle);
}

.service-hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.service-hero-content {
  max-width: 580px;
}

.service-hero-title {
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

.service-hero-subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  color: hsl(220, 10%, 40%);
  margin-bottom: 2rem;
}

.service-hero-visual {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  background-color: var(--light);
}

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

/* Problem & Capabilities Section */
.service-split-layout {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 6rem;
}

.service-capabilities-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.capability-card {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 2.25rem;
  background-color: var(--light);
  transition: var(--transition-normal);
}

.capability-card:hover {
  border-color: var(--dark);
  box-shadow: var(--shadow-md);
}

.capability-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.capability-card-desc {
  font-size: 0.95rem;
  color: hsl(220, 10%, 45%);
  margin-bottom: 0;
  line-height: 1.5;
}

/* About Page Elements */
.about-hero {
  padding: 10rem 0 6rem 0;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-subtle);
}

.about-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-hero-title {
  font-size: 4.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 5rem;
}

.stat-item {
  border-right: 1px solid var(--border-color);
  padding: 1rem 0;
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dark);
}

/* --- Scroll Animation Classes --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive Adjustments (Media Queries) --- */
@media (max-width: 1200px) {
  .section-title { font-size: 2.75rem; }
  .what-we-do-grid { grid-template-columns: repeat(3, 1fr); }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .ecosystem-flow { flex-wrap: wrap; justify-content: center; }
  .ecosystem-step { flex: 0 0 calc(50% - 1rem); }
  .ecosystem-arrow { display: none; }
}

@media (max-width: 992px) {
  .section { padding: 6rem 0; }
  .hero .container { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
  .hero-content { max-width: 100%; margin: 0 auto; }
  .hero-title { font-size: 3.5rem; }
  .btn-group { justify-content: center; }
  .tech-expert-layout { grid-template-columns: 1fr; gap: 3rem; }
  .tech-showcase-panel { height: 420px; padding: 2rem; }
  .why-grid { grid-template-columns: 1fr; gap: 2rem; }
  .why-pillar { border-right: none; border-bottom: 1px solid var(--border-color); padding-right: 0; padding-bottom: 2rem; }
  .why-pillar:last-child { border-bottom: none; padding-bottom: 0; }
  .contact-layout { grid-template-columns: 1fr; gap: 4rem; }
  .contact-info-header h2 { font-size: 2.75rem; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .footer-brand { grid-column: span 2; max-width: 100%; }
  
  .service-hero-layout { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
  .service-hero-content { max-width: 100%; }
  .service-hero-title { font-size: 3rem; }
  .service-split-layout { grid-template-columns: 1fr; gap: 3rem; }
  
  /* Mobile Nav Bar Trigger */
  .nav {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--light);
    flex-direction: column;
    align-items: flex-start;
    padding: 3rem 2rem;
    gap: 2rem;
    transition: var(--transition-normal);
    border-top: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
  }
  
  .nav.open {
    left: 0;
  }
  
  .nav-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .section-title { font-size: 2.25rem; }
  .what-we-do-grid { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: 1fr; }
  .ecosystem-step { flex: 0 0 100%; }
  .service-capabilities-list { grid-template-columns: 1fr; }
  .form-group-row { grid-template-columns: 1fr; gap: 1.5rem; }
  .contact-form-container { padding: 2rem; }
  .about-stats { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border-color); padding-bottom: 1.5rem; }
  .stat-item:nth-child(even) { border-right: none; }
  .stat-item:last-child { border-bottom: none; padding-bottom: 0; }
  .about-hero-title { font-size: 3rem; }
}
