/* Global Styles for Zentra Global Solutions */
:root {
  --brand-blue: #0a60ff;
  --brand-mint: #00efa0;
  --color-bg: #0f172a;
  --color-panel: #111827;
  --color-accent: var(--brand-blue);
  --color-accent-2: var(--brand-mint);
  --color-text: #e5e7eb;
  --color-muted: #9ca3af;
  --color-border: #1f2937;
  --max-w: 1100px;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* Light theme overrides */
[data-theme='light'] {
  --color-bg: #f8fafc;
  --color-panel: #ffffff;
  --color-accent: var(--brand-blue);
  --color-accent-2: var(--brand-mint);
  --color-text: #0b1020;
  --color-muted: #4b5563;
  --color-border: #e5e7eb;
  --shadow: 0 8px 24px rgba(2, 6, 23, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(1200px 800px at 80% -10%, rgba(10, 96, 255, 0.18), rgba(0, 0, 0, 0) 60%),
    radial-gradient(1000px 700px at 10% -20%, rgba(0, 239, 160, 0.16), rgba(0, 0, 0, 0) 55%), var(--color-bg);
  color: var(--color-text);
  font-family: 'Lexend', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans,
    'Helvetica Neue', Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
  line-height: 1.6;
}

/* Light theme background */
[data-theme='light'] body {
  background: radial-gradient(1200px 800px at 80% -10%, rgba(10, 96, 255, 0.15), rgba(255, 255, 255, 0) 60%),
    radial-gradient(1000px 700px at 10% -20%, rgba(0, 239, 160, 0.12), rgba(255, 255, 255, 0) 55%), var(--color-bg);
}

a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(8px);
  background: rgba(15, 23, 42, 0.6);
  border-bottom: 1px solid var(--color-border);
}

[data-theme='light'] header.site-header {
  background: rgba(255, 255, 255, 0.7);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  position: relative; /* Added for absolute positioning of nav-links on mobile */
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 36px;
  height: 36px;
}
.brand .name {
  font-weight: 700;
  letter-spacing: 0.2px;
}
.brand .sub {
  color: var(--color-muted);
  font-size: 14px;
}

.nav a {
  color: var(--color-text);
  padding: 10px 12px;
  border-radius: 8px;
}

.nav a.active,
.nav a:hover {
  background: rgba(56, 189, 248, 0.12);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Mobile Menu Toggle (Hamburger Icon) */
.mobile-menu-toggle {
  display: none; /* Hidden by default on desktop */
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  z-index: 60; /* Ensure it's above other elements */
}

.mobile-menu-toggle .icon {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  position: relative;
  transition: background 0.3s ease;
}

.mobile-menu-toggle .icon::before,
.mobile-menu-toggle .icon::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  position: absolute;
  left: 0;
  transition: transform 0.3s ease, top 0.3s ease;
}

.mobile-menu-toggle .icon::before {
  top: -8px;
}

.mobile-menu-toggle .icon::after {
  top: 8px;
}

/* Animation for active state */
.mobile-menu-toggle.is-active .icon {
  background: transparent; /* Hide middle bar */
}

.mobile-menu-toggle.is-active .icon::before {
  transform: rotate(45deg);
  top: 0;
}

.mobile-menu-toggle.is-active .icon::after {
  transform: rotate(-45deg);
  top: 0;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: 56px 0 36px;
}

.hero h1 {
  font-size: 40px;
  line-height: 1.1;
  margin: 0 0 14px 0;
}

.hero p {
  color: var(--color-muted);
  font-size: 18px;
  margin: 0 0 22px 0;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
  color: #0b1020;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 22px;
}

.card-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.card-title .icon {
  width: 20px;
  height: 20px;
  display: inline-block;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.section {
  padding: 36px 0;
}

.section h2 {
  margin: 0 0 10px;
  font-size: 28px;
}
.section p.lead {
  color: var(--color-muted);
  margin: 0 0 20px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text);
  background: rgba(167, 139, 250, 0.15);
  border: 1px solid rgba(167, 139, 250, 0.35);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
}

.company-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.company-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}

.logo-auto {
  background: rgba(10, 96, 255, 0.15);
  border: 1px solid rgba(10, 96, 255, 0.35);
}
.logo-health {
  background: rgba(0, 239, 160, 0.15);
  border: 1px solid rgba(0, 239, 160, 0.35);
}

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--color-border);
  margin-top: 40px;
  padding: 26px 0 36px;
  color: var(--color-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 14px;
}

/* Forms */
form .field {
  display: grid;
  gap: 6px;
}
form label {
  color: var(--color-text);
  font-weight: 600;
}
input,
textarea {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 10px 12px;
  border-radius: 10px;
}
textarea {
  min-height: 120px;
  resize: vertical;
}

button.btn {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
  color: #0b1020;
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

/* Theme toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--color-border);
  background: var(--color-panel);
  color: var(--color-text);
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
}
.theme-toggle .icon {
  width: 18px;
  height: 18px;
}
.theme-toggle .label {
  font-weight: 600;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .nav {
    padding: 10px 0; /* Adjust padding for mobile */
  }

  .nav-links {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    position: absolute;
    top: 100%; /* Position below the header */
    left: 0;
    width: 100%;
    background: var(--color-panel); /* Use panel background */
    border-top: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    padding: 10px 20px;
    gap: 0; /* Remove gap for stacked links */
  }

  .nav-links.nav-open {
    display: flex; /* Show when active */
  }

  .nav-links a {
    width: 100%;
    padding: 12px 15px;
    border-radius: 0; /* Full width links */
    text-align: center;
  }

  .nav-links a:hover {
    background: rgba(56, 189, 248, 0.12);
  }

  /* Move theme toggle inside the mobile menu and center it */
  .nav-links #theme-toggle {
    margin-top: 10px; /* Add some space above the toggle */
    width: fit-content; /* Adjust width */
    align-self: center; /* Center the button */
  }

  .mobile-menu-toggle {
    display: block; /* Show hamburger on mobile */
  }
}
