:root {
  /* Precision Enterprise Intelligence - Color Palette */
  --color-primary: #0F172A; /* Slate Navy */
  --color-primary-hover: #1E293B;
  --color-secondary: #0D9488; /* Deep Teal */
  --color-secondary-hover: #0F766E;
  --color-tertiary: #4F46E5; /* Indigo Accent */
  
  --color-surface: #F8FAFC;
  --color-surface-elevated: #FFFFFF;
  --color-text-main: #0B1C30;
  --color-text-muted: #64748B;
  --color-border: #E2E8F0;
  
  /* Typography */
  --font-heading: 'Manrope', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --font-label: 'Hanken Grotesk', sans-serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  
  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.04), 0 1px 2px -1px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -1px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.07), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
}

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

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

p {
  text-align: justify;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
}

a {
  text-decoration: none;
  color: var(--color-secondary);
  transition: color 0.2s ease;
}

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

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* Header & Navigation */
header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(13, 148, 136, 0.15); /* Soft teal border */
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
}

/* Beautiful Gradient Top Accent */
header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 50%, #6BD8CB 100%);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.5px;
}

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

nav ul {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
}

nav a {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-primary);
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: var(--space-xs) 0;
  position: relative;
  transition: all 0.3s ease;
}

nav a:hover, nav a.active {
  color: var(--color-secondary);
  opacity: 1;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--color-secondary), #6BD8CB);
  transition: width 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.btn {
  display: inline-block;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 10px rgba(13, 148, 136, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-hover) 0%, #11B3A6 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(13, 148, 136, 0.3);
}

.btn-secondary {
  background-color: var(--color-surface-elevated);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background-color: var(--color-surface);
  border-color: var(--color-text-muted);
}

/* Page Sections */
section {
  padding: 8rem 0 4rem; /* Changed to 8rem to ensure space below 80px header */
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  font-family: var(--font-label);
  color: var(--color-secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.875rem;
  margin-bottom: var(--space-sm);
  display: block;
}

.section-title {
  font-size: 2.5rem;
  letter-spacing: -1px;
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: 1.125rem;
  max-width: 600px;
  margin: var(--space-md) auto 0;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1e293b 100%);
  color: #fff;
  padding: 8rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at top right, rgba(13, 148, 136, 0.15), transparent 50%);
  pointer-events: none;
}

.hero h1 {
  color: #fff;
  font-size: 3.5rem;
  letter-spacing: -1.5px;
  margin-bottom: var(--space-md);
}

.hero p {
  font-size: 1.25rem;
  color: #94a3b8;
  max-width: 700px;
  margin: 0 auto var(--space-xl);
}

.hero .btn-primary {
  background-color: var(--color-secondary);
  color: #fff;
}

.hero .btn-primary:hover {
  background-color: var(--color-secondary-hover);
}

/* Grid Layouts */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  align-items: center;
}

/* Cards */
.card {
  background-color: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
  border-color: var(--color-secondary);
}

.card-icon {
  width: 48px;
  height: 48px;
  background-color: #ECFDF5;
  color: var(--color-secondary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
  transition: transform 0.3s ease;
}

.card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

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

/* Data/Metrics Section */
.metrics {
  background-color: var(--color-surface-elevated);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 4rem 0;
}

.metric-item {
  text-align: center;
}

.metric-value {
  font-family: var(--font-heading);
  font-variant-numeric: tabular-nums;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: var(--space-xs);
}

.metric-label {
  font-family: var(--font-label);
  color: var(--color-secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.875rem;
}

/* Forms */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-family: var(--font-label);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-main);
  background-color: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-tertiary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
footer {
  background: linear-gradient(180deg, var(--color-primary) 0%, #061121 100%);
  color: #fff;
  padding: 5rem 0 2rem;
  margin-top: 6rem;
  position: relative;
}

/* Beautiful Gradient Top Accent on Footer */
footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 50%, #6BD8CB 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: #fff;
  font-family: var(--font-label);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-lg);
}

.footer-col p {
  color: #94a3b8;
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

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

.footer-col ul li {
  margin-bottom: var(--space-sm);
}

.footer-col ul a {
  color: #94a3b8;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-col ul a:hover {
  color: #6BD8CB;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #94a3b8;
  font-size: 0.875rem;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseLoader {
  0% { opacity: 0.5; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0.5; transform: scale(0.95); }
}

.page-loader {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(248, 250, 252, 0.85); /* Glassmorphism background */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), visibility 0.8s;
  visibility: hidden;
  opacity: 0;
}

.page-loader.active {
  visibility: visible;
  opacity: 1;
}

.loader-logo {
  height: 60px;
  animation: pulseLoader 1.5s infinite ease-in-out;
  transition: transform 0.6s ease;
}

.page-loader:not(.active) .loader-logo {
  transform: scale(1.2);
}

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

.animate-up {
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Staggered delays for grid items */
.grid-3 > .reveal:nth-child(1) { transition-delay: 0.1s; }
.grid-3 > .reveal:nth-child(2) { transition-delay: 0.2s; }
.grid-3 > .reveal:nth-child(3) { transition-delay: 0.3s; }

.grid-2 > .reveal:nth-child(1) { transition-delay: 0.1s; }
.grid-2 > .reveal:nth-child(2) { transition-delay: 0.2s; }

/* Dynamic Page visibility */
.page-section {
  display: none;
  animation: fadeIn 0.4s ease;
}

.page-section.active {
  display: block;
}

/* Utilities */
.text-center { text-align: center; }
.mt-2 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-xl); }



/* Desktop Nav Variant */
.nav-content {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}
.nav-content .btn {
  margin-top: 0 !important;
}

/* =========================================
   Responsive Media Queries 
   ========================================= */

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-primary);
  cursor: pointer;
  padding: 0.5rem;
}

@media (max-width: 992px) {
  /* Navigation */
  .mobile-menu-toggle {
    display: block;
    position: relative;
    z-index: 101;
  }
  
  .nav-content {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--color-surface-elevated);
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    padding: 6rem 2rem 2rem;
    transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 100;
  }
  
  .nav-content.active {
    right: 0;
  }
  
  nav ul {
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
  }
  
  nav a {
    font-size: 1.1rem;
    display: block;
    padding: var(--space-sm) 0;
  }
  
  .nav-wrapper .btn {
    width: 100%;
    text-align: center;
  }
  
  /* Grids */
  .grid-3, .grid-2, .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero h1 {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  /* Grids */
  .grid-3, .grid-2, .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .hero {
    padding: 6rem 0;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .metrics {
    padding: 2.5rem 0;
  }
  
  .metric-item {
    margin-bottom: var(--space-lg);
  }
  
  .metric-item:last-child {
    margin-bottom: 0;
  }
  
  .metric-value {
    font-size: 1.85rem;
  }
  
  .footer-col {
    margin-bottom: var(--space-md);
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}
