:root {
  /* Colors - Light Blue Theme */
  --bg-dark: #f0f4f8;
  /* Light Grey-Blue Background */
  --bg-card: #ffffff;
  /* White Cards */
  --primary: #0077b6;
  /* Corporate Blue */
  --secondary: #0096c7;
  /* Lighter Blue */
  --accent: #023e8a;
  /* Deep Blue Accent */
  /* Updated Text Colors for High Contrast */
  --text-light: #000000;
  /* Pure Black */
  --text-dim: #1a1a1a;
  /* Almost Black */
  --border: #9ca3af;
  /* Stronger border */

  /* Gradients */
  --gradient-main: linear-gradient(135deg, #0077b6, #00b4d8);
  --gradient-glow: radial-gradient(circle at center, rgba(0, 119, 182, 0.1) 0%, transparent 70%);

  /* Typography */
  --font-head: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--accent);
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s ease;
}

ul {
  list-style: none;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: var(--font-head);
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--gradient-main);
  color: white;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.4);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a:hover {
  color: var(--primary);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: var(--gradient-glow);
  z-index: -1;
}

.hero-content {
  max-width: 800px;
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-dim);
  /* Now darker */
  margin-bottom: 2.5rem;
  font-weight: 500;
  /* Added weight */
  max-width: 600px;
}

/* Section Common */
section {
  padding: 6rem 0;
}

.section-head {
  text-align: center;
  margin-bottom: 4rem;
}

.section-head h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* Products & Services Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid #cbd5e1;
  /* Darker border */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px -10px rgba(0, 119, 182, 0.2);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* Why Us */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.feature-list li {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.check-icon {
  color: var(--accent);
  margin-right: 1rem;
  font-weight: bold;
}

/* Contact Grid Specifics */
.contact-grid {
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* Contact */
.contact {
  background: linear-gradient(to bottom, var(--bg-dark), #080f1e);
}

.cta-box {
  background: var(--gradient-main);
  padding: 4rem;
  border-radius: 24px;
  text-align: center;
  color: white;
}

.cta-box h2 {
  margin-bottom: 1rem;
  color: white;
}

/* Footer */
footer {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-dim);
}

/* Dashboard Link */
.nav-btn {
  padding: 0.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  border: 1px solid var(--border);
}

.nav-btn:hover {
  background: var(--primary);
  color: var(--bg-dark);
  border-color: var(--primary);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  box-shadow: none;
  margin-right: 0.5rem;
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Sticky CTA */
.sticky-cta {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--gradient-main);
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0, 119, 182, 0.4);
  font-weight: 700;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sticky-cta.visible {
  transform: translateY(0);
  opacity: 1;
}

.sticky-cta:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 119, 182, 0.5);
}

/* Form Styles */
input,
select,
textarea {
  width: 100%;
  padding: 0.8rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-light);
  font-family: var(--font-body);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  section {
    padding: 3rem 0;
  }

  .container {
    padding: 0 1.5rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    align-items: center;
    gap: 1.5rem;
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: block !important;
  }

  /* Mobile menu todo */
}

/* Knowledge Base / Modules Page Layout */
.kb-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 4rem;
  align-items: start;
}

.kb-sidebar {
  position: sticky;
  top: 120px;
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.kb-sidebar ul li {
  margin-bottom: 0.8rem;
}

.kb-sidebar ul li a {
  color: var(--text-dim);
  font-size: 0.95rem;
  display: block;
  padding: 0.5rem;
  border-radius: 6px;
}

.kb-sidebar ul li a:hover,
.kb-sidebar ul li a.active {
  color: var(--primary);
  background: #f0f9ff;
  font-weight: 600;
}

.module-section {
  background: white;
  padding: 3rem;
  border-radius: 16px;
  margin-bottom: 3rem;
  border: 1px solid var(--border);
  scroll-margin-top: 120px;
  /* Offset for sticky header */
}

.module-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--bg-dark);
  padding-bottom: 1.5rem;
}

.module-icon-large {
  font-size: 2.5rem;
  color: var(--primary);
  background: #f0f9ff;
  padding: 1rem;
  border-radius: 12px;
}

.insight-box {
  background: #f8fafc;
  padding: 2rem;
  border-radius: 12px;
  margin: 2rem 0;
  border-left: 4px solid var(--accent);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-item {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.feature-item i {
  color: var(--primary);
  margin-top: 3px;
}

@media (max-width: 900px) {
  .kb-layout {
    grid-template-columns: 1fr;
  }

  .kb-sidebar {
    display: none;
    /* Hide sidebar on mobile for now, or make it a dropdown */
  }
}