:root {
  --brand: #007aff;
  --brand-dark: #0055cc;
  --text-primary: #0b1720;
  --text-secondary: #6b7280;
  --bg-light: #f6fbff;
  --bg-white: #ffffff;
  --border-color: #e0e6f0;
  --radius: 12px;
  --radius-lg: 16px;
  --container: 1200px;
  --shadow-sm: 0 2px 8px rgba(11, 22, 40, 0.06);
  --shadow-md: 0 8px 24px rgba(11, 22, 40, 0.08);
  --shadow-lg: 0 16px 48px rgba(11, 22, 40, 0.1);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* Added dark mode theme variables */
html[data-theme="dark"] {
  --brand: #4da6ff;
  --brand-dark: #66b3ff;
  --text-primary: #f0f4f9;
  --text-secondary: #b3b8c4;
  --bg-light: #0f1419;
  --bg-white: #1a1f2e;
  --border-color: #2d3748;
}

/* RESET & LAYOUT */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  background: var(--bg-light);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body {
  overflow-x: hidden;
}

.container {
  width: 92%;
  max-width: var(--container);
  margin: 0 auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brand);
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  z-index: 1200;
  padding: 14px 0;
  transition: background-color 0.3s ease;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  font-weight: 800;
  color: var(--brand);
  font-size: 22px;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-link {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  position: relative;
  padding-bottom: 2px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand);
  border-radius: 999px;
}

.right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Added theme toggle button styling */
.theme-toggle {
  background: transparent;
  border: 2px solid var(--brand);
  color: var(--brand);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  background: rgba(0, 122, 255, 0.1);
  transform: scale(1.05);
}

html[data-theme="dark"] .theme-toggle {
  border-color: var(--brand);
}

.search-input {
  display: none;
}

.header-btn {
  padding: 8px 14px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}

.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 122, 255, 0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--brand);
  color: var(--brand);
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 13px;
}

.btn-outline:hover {
  background: rgba(0, 122, 255, 0.05);
}

.btn-primary.full {
  width: 100%;
  padding: 12px;
}

.btn-outline.full {
  width: 100%;
  padding: 12px;
}

/* MOBILE MENU */
.hamburger {
  display: none;
  background: none;
  border: 0;
  font-size: 20px;
  padding: 8px;
  cursor: pointer;
  color: var(--text-primary);
}

.mobile-menu {
  position: absolute;
  top: 70px;
  right: 16px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-menu a {
  padding: 10px 0;
  color: var(--text-primary);
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
}

.mobile-menu a:last-of-type {
  border-bottom: none;
}

.mobile-auth {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

/* HERO SECTION */
.hero-section {
  margin-top: 80px;
  padding: 20px 0;
}

.hero-slider {
  position: relative;
  height: 65vh;
  min-height: 500px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding: 0 5%;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 22, 40, 0.35);
}

.slide-content {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  max-width: 640px;
  box-shadow: var(--shadow-lg);
}

.slide-content h1 {
  font-size: 2.2rem;
  margin: 0 0 12px;
  color: var(--text-primary);
  line-height: 1.2;
}

.slide-content p {
  color: var(--text-secondary);
  margin: 0 0 16px;
  font-size: 15px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
}

.hero-buttons a {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
}

/* SLIDER CONTROLS */
.slider-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
  padding-bottom: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  background: #ddd;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.dot:hover {
  background: #bbb;
}

.dot.active {
  background: var(--brand);
  transform: scale(1.1);
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  font-size: 18px;
  z-index: 10;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-md);
}

.slider-nav:hover {
  background: var(--bg-white);
  transform: translateY(-50%) scale(1.05);
}

.slider-prev {
  left: 16px;
}

.slider-next {
  right: 16px;
}

/* SECTIONS */
.about-section,
.services-section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin: 0 0 12px;
  font-weight: 800;
  color: var(--text-primary);
}

.section-desc {
  text-align: center;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: 15px;
  line-height: 1.7;
}

/* SERVICES GRID */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.service-card {
  background: var(--bg-white);
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all 0.3s ease;
  border: 1.5px solid var(--border-color);
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
}

.service-card i {
  font-size: 40px;
  color: var(--brand);
  margin-bottom: 16px;
}

.service-card h3 {
  margin: 8px 0 12px;
  font-size: 18px;
  color: var(--text-primary);
}

.service-card h3 a {
  color: inherit;
}

.service-card h3 a:hover {
  color: var(--brand);
}

.service-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.read-more {
  display: inline-block;
  margin-top: 12px;
  color: var(--brand);
  font-weight: 700;
  font-size: 13px;
  transition: all 0.2s ease;
}

.read-more:hover {
  gap: 4px;
}

/* CONTACT SECTION */
.contact-section {
  padding: 60px 0;
  background: var(--bg-light);
}

/* Optimized contact-pricing-wrapper with better alignment and width */
.contact-pricing-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-wrapper {
  background: var(--bg-white);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-color);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--bg-white);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-color);
}

/* PRICING TABLE STYLES */
.pricing-wrapper {
  background: var(--bg-white);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.pricing-header {
  margin-bottom: 24px;
  text-align: center;
}

.pricing-header h3 {
  margin: 0 0 8px;
  font-size: 20px;
  color: var(--text-primary);
}

.pricing-header p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.pricing-table {
  overflow-x: auto;
}

.pricing-row {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1.2fr;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--border-color);
  align-items: center;
}

.pricing-row:last-child {
  border-bottom: none;
}

.pricing-header-row {
  background: var(--bg-light);
  font-weight: 700;
  font-size: 13px;
  color: var(--text-primary);
  padding: 16px 14px;
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1.2fr;
  gap: 12px;
}

.pricing-col {
  font-size: 14px;
  color: var(--text-primary);
}

.pricing-label {
  font-weight: 600;
  color: var(--text-primary);
}

.pricing-col strong {
  color: var(--brand);
  font-weight: 700;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--border-color);
  font-family: inherit;
  font-size: 14px;
  transition: all 0.2s ease;
  color: var(--text-primary);
  background: var(--bg-white);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

/* FOOTER */
.footer {
  margin-top: 60px;
  padding: 50px 0 30px;
  background: #0f2a3f;
  color: #fff;
}

html[data-theme="dark"] .footer {
  background: #0a1116;
}

.footer-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 30px;
  flex: 1;
}

.footer-block h3,
.footer-block h4 {
  margin-bottom: 12px;
  font-weight: 800;
  font-size: 16px;
}

.footer-block p {
  font-size: 14px;
  line-height: 1.7;
  color: #cfe8ff;
}

.footer-links,
.team-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.team-list li {
  margin: 8px 0;
  color: #b3d9ff;
  font-size: 14px;
}

.footer-links a:hover {
  color: #fff;
}

.muted {
  opacity: 0.8;
  font-size: 13px;
}

.footer-bottom {
  text-align: center;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 30px;
}

.copyright {
  margin: 0;
  color: #b3d9ff;
  font-size: 13px;
}

/* CHATBOT */
.chatbot {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1200;
}

.chat-button {
  background: var(--brand);
  color: white;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  border: dashed;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-button:hover {
  transform: scale(1.05);
  background: var(--brand-dark);
}

.chat-window {
  width: 300px;
  height: 480px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: absolute;
  bottom: 70px;
  right: 0;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.chat-window.open {
  display: flex;
}

.chat-header {
  background: var(--brand);
  color: #fff;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.chat-header h3 {
  margin: 0;
  font-size: 16px;
}

.chat-controls {
  display: flex;
  gap: 8px;
}

.chat-controls button {
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  transition: opacity 0.2s ease;
}

.chat-controls button:hover {
  opacity: 0.8;
}

.chat-settings {
  padding: 12px;
  border-bottom: 1px solid var(--border-color);
  background: #f9fbff;
}

.settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.settings-header h4 {
  margin: 0;
  font-size: 14px;
  color: var(--text-primary);
}

.close-settings {
  background: none;
  border: 0;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 18px;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-settings:hover {
  color: var(--text-primary);
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.settings-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.settings-form label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 12px;
}

.settings-form input,
.settings-form select {
  padding: 8px 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-family: inherit;
  font-size: 12px;
  transition: all 0.2s ease;
  background: var(--bg-white);
  color: var(--text-primary);
}

.settings-form input:focus,
.settings-form select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.1);
}

#saveSettings {
  padding: 8px 12px;
  font-size: 12px;
  margin-top: 4px;
}

.chat-body {
  padding: 16px;
  flex: 1;
  overflow-y: auto;
  background: #fbfdff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

html[data-theme="dark"] .chat-body {
  background: #0f1419;
}

.message {
  padding: 10px 14px;
  border-radius: 10px;
  max-width: 85%;
  font-size: 13px;
  line-height: 1.4;
}

.message.user {
  align-self: flex-end;
  background: var(--brand);
  color: #fff;
  border-radius: 12px 4px 12px 12px;
}

.message.bot {
  align-self: flex-start;
  background: #eef2ff;
  color: var(--text-primary);
  border-radius: 4px 12px 12px 12px;
}

.chat-input {
  display: flex;
  border-top: 1px solid var(--border-color);
  background: var(--bg-white);
  flex-shrink: 0;
}

.chat-input input {
  flex: 1;
  border: 0;
  padding: 12px;
  font-family: inherit;
  font-size: 13px;
  background: var(--bg-white);
  color: var(--text-primary);
}

.chat-input button {
  border: 0;
  background: none;
  padding: 12px 16px;
  color: var(--brand);
  cursor: pointer;
  transition: color 0.2s ease;
}

.chat-input button:hover {
  color: var(--brand-dark);
}

.chat-settings-btn {
  border: 0;
  background: none;
  padding: 12px 8px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s ease;
  font-size: 14px;
}

.chat-settings-btn:hover {
  color: var(--brand);
}

/* MODALS */
.nv-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1400;
}

.nv-modal.open {
  display: flex;
}

.nv-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 22, 40, 0.5);
  backdrop-filter: blur(2px);
}

.nv-panel {
  position: relative;
  width: 92%;
  max-width: 480px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  z-index: 2;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.nv-body {
  padding: 32px;
}

.nv-body h2 {
  margin: 0 0 24px;
  font-size: 20px;
  color: var(--text-primary);
}

.nv-close {
  position: absolute;
  right: 16px;
  top: 16px;
  border: 0;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nv-close:hover {
  color: var(--text-primary);
}

.nv-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nv-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nv-form label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
}

.nv-form input {
  padding: 12px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  transition: all 0.2s ease;
  background: var(--bg-white);
  color: var(--text-primary);
}

.nv-form input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.auth-options {
  margin-bottom: 20px;
}

.btn-google {
  background: var(--bg-white);
  border: 1.5px solid var(--border-color);
  padding: 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  width: 100%;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  color: var(--text-primary);
}

.btn-google:hover {
  border-color: var(--brand);
  background: rgba(0, 122, 255, 0.03);
}

.divider {
  text-align: center;
  margin: 16px 0;
  position: relative;
}

.divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-color);
}

.divider span {
  background: var(--bg-white);
  padding: 0 12px;
  color: var(--text-secondary);
  font-size: 13px;
  position: relative;
}

html[data-theme="dark"] .divider span {
  background: var(--bg-white);
}

.form-actions {
  display: flex;
  gap: 12px;
}

.form-actions button {
  flex: 1;
}

.form-help {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

.form-help a {
  color: var(--brand);
  font-weight: 600;
}

/* SECTIONS */
.about-content {
  text-align: center;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.feature-item {
  background: var(--bg-white);
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-color);
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand);
}

.feature-item i {
  font-size: 32px;
  color: var(--brand);
  margin-bottom: 12px;
}

.feature-item h4 {
  margin: 12px 0 8px;
  font-size: 16px;
  color: var(--text-primary);
}

.feature-item p {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .search-input {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-pricing-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .pricing-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .pricing-header-row {
    grid-template-columns: 1fr 1fr;
  }

  .hero-section {
    margin-top: 75px;
  }

  .hero-slider {
    height: 50vh;
    min-height: 400px;
  }

  .slide-content {
    max-width: 500px;
    padding: 24px;
  }

  .slide-content h1 {
    font-size: 1.8rem;
  }

  .slider-nav {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .about-features {
    grid-template-columns: repeat(2, 1fr);
  }
}
