:root {
  --primary: #4b0082; /* deep purple */
  --secondary: #1e3a8a; /* dark blue */
  --accent: #8b5cf6; /* lighter purple */
  --text-light: #fff;
  --text-dark: #222;
  --text-gray: #666;
  --bg-light: #f8fafc;
  --bg-dark: #0f172a;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Screen reader only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip navigation link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 2000;
}

.skip-link:focus {
  top: 6px;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  background: var(--bg-light);
  color: var(--text-dark);
  scroll-behavior: smooth;
  overflow-y: scroll;
  /* Performance optimizations */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Performance: Use transform and opacity for animations */
* {
  box-sizing: border-box;
}

/* Optimize transitions for better performance */
.nav-links a,
.btn-primary,
.service,
.logo-img {
  will-change: transform;
}

/* Reduce layout shifts */
img {
  height: auto;
  max-width: 100%;
}

/* Critical font loading optimization */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Inter'), url('https://fonts.gstatic.com/s/inter/v12/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuLyfAZ9hiJ-Ek-_EeA.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.dark body {
  background: var(--bg-dark);
  color: var(--text-light);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
}

.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  color: var(--text-dark);
  padding: 1rem 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.logo-container {
  background-color: #1e3a8a; /* Dark blue background */
  padding: 8px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-img {
  height: 32px;
  width: auto;
  display: block;
  transition: transform 0.3s ease;
}

.company-name {
  display: flex;
  align-items: center;
}

.company-text {
  font-weight: 600;
  font-size: 1.1rem;
  color: #1e3a8a;
  letter-spacing: -0.025em;
}

.logo-img:hover {
  transform: scale(1.05);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  background: var(--primary);
  color: var(--text-light);
  transform: translateY(-2px);
}

.cta-button {
  background: var(--primary) !important;
  color: var(--text-light) !important;
  font-weight: 600 !important;
  box-shadow: var(--shadow);
}

.cta-button:hover {
  background: var(--secondary) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.hero {
  background: 
    linear-gradient(135deg, rgba(30, 58, 138, 0.8),rgba(45, 0, 130, 0.8)),
    url('antelope.webp') top/cover no-repeat;
  color: var(--text-light);
  text-align: center;
  padding: 8rem 2rem 6rem;
  margin-top: 80px; /* Account for fixed header */
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  color: var(--text-light);
}

.hero h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  line-height: 1.7;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-primary {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--secondary);
  transform: translateY(-3px);
  box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.2);
}

.section {
  padding: 5rem 2rem;
}

.section h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary);
  font-weight: 700;
}

.section.dark {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: var(--text-light);
}

.section.dark h2 {
  color: var(--text-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}

.service {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border-top: 4px solid var(--primary);
}

.service:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service h3 {
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.service p {
  color: var(--text-gray);
  line-height: 1.7;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonials blockquote {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 12px;
  border-left: 4px solid var(--accent);
  margin: 0;
  backdrop-filter: blur(10px);
}

.testimonials p {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.testimonials cite {
  font-weight: 600;
  color: var(--accent);
}

.logos {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 2rem;
}

.products {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.products li {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
  transition: all 0.3s ease;
}

.products li:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-lg);
}

.products strong {
  color: var(--primary);
  font-weight: 600;
}

/* Calendly styling */
.calendly-inline-widget {
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin: 2rem auto;
  max-width: 900px;
}

#contact .container {
  max-width: 1000px;
}

/* Pricing section styles */
.pricing-intro {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
  margin: 3rem 0;
}

.pricing-feature {
  background: rgba(255, 255, 255, 0.1);
  padding: 2.5rem;
  border-radius: 12px;
  border-left: 4px solid var(--accent);
  backdrop-filter: blur(10px);
}

.pricing-feature h3 {
  color: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.pricing-feature ul {
  list-style: none;
  padding: 0;
}

.pricing-feature li {
  margin: 1rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.pricing-feature li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.cost-savings {
  background: rgba(255, 255, 255, 0.05);
  padding: 2.5rem;
  border-radius: 12px;
  margin: 3rem 0;
  text-align: center;
}

.cost-savings h3 {
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.cta-pricing {
  text-align: center;
  margin-top: 3rem;
}

.cta-pricing p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.footer {
  text-align: center;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #94a3b8;
  padding: 2rem;
  font-size: 0.9rem;
  border-top: 1px solid #334155;
}

.benefit {
    h4 {
        margin: 2rem 0 1rem;
        font-size: 18px;
    }
}


/* Mobile responsive styles */
@media (max-width: 768px) {
  body {
    overflow: scroll;
  }

  .hero {
    background: 
    linear-gradient(135deg, rgba(38, 48, 138, 0.8),rgba(38, 48, 130, 0.8)),
        url('antelope.webp') center/cover no-repeat;
    color: var(--text-light);
    text-align: center;
    padding: 8rem 2rem 6rem;
    margin-top: 80px; /* Account for fixed header */
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-position: -52rem;
  }

  .header-content {
    padding: 0.5rem 1rem;
  }
  
  .logo {
    gap: 8px;
  }
  
  .logo-container {
    padding: 6px 10px;
  }
  
  .logo-img {
    height: 28px;
  }
  
  .company-text {
    font-size: 1rem;
  }
  
  .nav-links {
    display: none;
    position: fixed;
    top: 107px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 58, 138, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 1.5rem;
    padding-top: 2rem;
    padding-bottom: 4rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    min-height: calc(100vh - 75px);
    min-height: calc(100dvh - 75px);
  }

  .nav-links.mobile-menu-open {
    display: flex;
    opacity: 1;
    visibility: visible;
  }

  .nav-links li {
    margin: 0;
  }

  .nav-links a {
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
  }

  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
  }

  .cta-button {
    background: var(--accent) !important;
    box-shadow: var(--shadow-lg);
  }

  .mobile-menu-toggle {
    display: flex;
    z-index: 1000;
    position: relative;
    background: transparent;
    border: none;
    cursor: pointer;
  }

  /* Keep header visible and styled when menu is open */
  body.menu-open .header {
    background: var(--text-light);
    box-shadow: var(--shadow-md);
  }

  body.menu-open .logo-container {
    background: var(--secondary);
  }

  /* Hamburger animation */
  .mobile-menu-toggle.menu-active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .mobile-menu-toggle.menu-active .hamburger-line:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.menu-active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  /* Prevent body scroll when menu is open */
  body.menu-open {
    overflow: scroll;
  }
  
  .hero {
    padding: 6rem 1rem 4rem;
    margin-top: 70px;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .testimonials {
    grid-template-columns: 1fr;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .pricing-feature {
    padding: 2rem;
  }
  
  .section {
    padding: 3rem 1rem;
  }
  
  .container {
    padding: 1rem;
  }
}

/* Extra small mobile styles */
@media (max-width: 480px) {
  .company-text {
    font-size: 0.9rem;
  }
}

/* Cookie Consent Styles */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.98), rgba(75, 0, 130, 0.98));
  backdrop-filter: blur(10px);
  color: var(--text-light);
  padding: 1.5rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  border-top: 2px solid var(--accent);
  z-index: 10000;
  transform: translateY(100%);
  animation: slideUp 0.3s ease-out forwards;
}

@keyframes slideUp {
  to {
    transform: translateY(0);
  }
}

.cookie-consent-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cookie-consent-text h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
}

.cookie-consent-text p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.95;
}

.cookie-consent-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  border: none;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.cookie-btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.cookie-btn-primary:hover {
  background: #7c3aed;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.cookie-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.cookie-btn-text {
  background: transparent;
  color: var(--accent);
  text-decoration: underline;
  padding: 0.75rem 1rem;
}

.cookie-btn-text:hover {
  color: #a855f7;
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

/* Cookie Settings Modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cookie-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.cookie-modal-content {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.cookie-modal-header {
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.cookie-modal-header h2 {
  margin: 0;
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 600;
}

.cookie-modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #6b7280;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.cookie-modal-close:hover {
  background: #f3f4f6;
  color: var(--primary);
}

.cookie-modal-body {
  padding: 1rem 2rem;
  overflow-y: auto;
  flex: 1;
}

.cookie-policy-intro {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--accent);
  font-size: 0.95rem;
  line-height: 1.6;
}

.cookie-category {
  margin-bottom: 2rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.cookie-category-header {
  padding: 1rem 1.5rem;
  background: #f9fafb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e5e7eb;
}

.cookie-category-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-dark);
  font-weight: 600;
}

.cookie-category-status {
  font-size: 0.8rem;
  color: var(--text-gray);
  background: #e5e7eb;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-weight: 500;
}

.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 24px;
}

.cookie-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-slider {
  background-color: var(--accent);
}

.cookie-toggle input:checked + .cookie-slider:before {
  transform: translateX(26px);
}

.cookie-category-desc {
  padding: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-gray);
  margin: 0;
}

.cookie-details {
  margin: 1rem 1.5rem 1.5rem;
}

.cookie-details summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--primary);
  font-size: 0.9rem;
  padding: 0.5rem 0;
}

.cookie-details ul {
  margin: 1rem 0 0 0;
  padding-left: 1.5rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-gray);
}

.cookie-details li {
  margin-bottom: 0.5rem;
}

.cookie-privacy-info {
  background: #fef7ff;
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 1.5rem;
  border: 1px solid #e879f9;
}

.cookie-privacy-info h3 {
  margin: 0 0 1rem 0;
  color: var(--primary);
  font-size: 1.1rem;
}

.cookie-privacy-info ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.cookie-privacy-info li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.cookie-modal-footer {
  padding: 1rem 2rem 2rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  flex-shrink: 0;
}

/* Cookie Management Link */
.cookie-management {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 9999;
}

.cookie-manage-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(75, 0, 130, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cookie-manage-btn:hover {
  background: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(75, 0, 130, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .cookie-consent-content {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }
  
  .cookie-consent-actions {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .cookie-btn {
    flex: 1;
    min-width: 120px;
  }
  
  .cookie-modal-content {
    margin: 0.5rem;
    max-height: 95vh;
  }
  
  .cookie-modal-header,
  .cookie-modal-body,
  .cookie-modal-footer {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  
  .cookie-modal-footer {
    flex-direction: column;
  }
  
  .cookie-category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .cookie-management {
    bottom: 1rem;
    right: 1rem;
  }
  
  .cookie-manage-btn {
    font-size: 0.8rem;
    padding: 0.6rem 0.8rem;
  }
}
