@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --font-cairo: 'Cairo', 'Inter', sans-serif;
  --color-brand: #0066ff;
  --color-brand-dark: #004ecb;
  --color-brand-light: #eff6ff;
  --color-ink: #0a1128;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-cairo);
}

body {
  font-family: var(--font-cairo);
  background-color: #ffffff;
  color: #0f172a;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6, button, input, select, textarea, nav, a {
  font-family: var(--font-cairo);
}

/* Container Utilities */
.container-xl {
  width: 100%;
  max-width: 1380px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 1600px) {
  .container-xl {
    max-width: 1440px;
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Glassmorphism Header */
.glass-header {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.glass-header.scrolled {
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.96);
}

/* Background Grids & Animations */
.hero-grid {
  background-size: 38px 38px;
  background-image: 
    linear-gradient(to right, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
}

.dark-hero-grid {
  background-size: 38px 38px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

@keyframes pulse-subtle {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

.glow-pulse {
  animation: pulse-subtle 4s ease-in-out infinite;
}

/* Custom Text Gradient */
.gradient-text {
  background: linear-gradient(135deg, #0a1128 0%, #0066ff 50%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-blue {
  background: linear-gradient(135deg, #0066ff 0%, #38bdf8 50%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Cards & Elevate Effects */
.feature-card, .service-card, .sector-card, .pricing-card, .module-card {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover, .service-card:hover, .sector-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -15px rgba(0, 102, 255, 0.14);
  border-color: rgba(0, 102, 255, 0.3);
}

.module-card {
  min-width: 155px;
  flex: 0 0 auto;
}

.module-card:hover {
  transform: translateY(-4px);
  border-color: #0066ff;
  box-shadow: 0 12px 28px -5px rgba(0, 102, 255, 0.18);
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #0066ff;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Accordion Transitions */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  transition: max-height 0.35s ease-in-out;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* Modal Styling */
.modal-backdrop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-container {
  transform: scale(1) translateY(0);
}
