/* ==========================================================================
   EFASOFT Enterprise ICT & Software Engineering Design System
   Brand Palette: Deep Royal Purple (#3b0764), Efasoft Violet (#7e22ce / #9d389a),
                  Electric Cyan (#0ea5e9), Emerald (#10b981), Coral (#f97316)
   ========================================================================== */

:root {
  --efa-purple-950: #160329;
  --efa-purple-900: #250545;
  --efa-purple-800: #3b0764;
  --efa-purple-700: #581c87;
  --efa-purple-600: #7e22ce;
  --efa-magenta: #9d389a;
  --efa-magenta-light: #c084fc;
  --efa-cyan: #0ea5e9;
  --efa-blue: #2563eb;
  --efa-emerald: #10b981;
  --efa-amber: #f59e0b;
  --efa-coral: #f97316;
  --efa-slate-900: #0f172a;
  --efa-slate-800: #1e293b;
  --efa-slate-700: #334155;
  --efa-slate-600: #475569;
  --efa-slate-500: #64748b;
  --efa-slate-200: #e2e8f0;
  --efa-slate-100: #f1f5f9;
  --efa-slate-50: #f8fafc;
  --efa-purple-tint: #faf6fe;
  --efa-radius-sm: 8px;
  --efa-radius-md: 14px;
  --efa-radius-lg: 20px;
  --efa-radius-xl: 28px;
  --efa-shadow-sm: 0 2px 10px rgba(37, 5, 69, 0.05);
  --efa-shadow-md: 0 12px 28px -6px rgba(37, 5, 69, 0.1), 0 6px 12px -4px rgba(37, 5, 69, 0.05);
  --efa-shadow-lg: 0 24px 48px -12px rgba(37, 5, 69, 0.16), 0 12px 24px -8px rgba(37, 5, 69, 0.08);
  --efa-shadow-glow: 0 0 40px rgba(126, 34, 206, 0.32);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Plus Jakarta Sans", "Segoe UI", Roboto, sans-serif;
  color: var(--efa-slate-700);
  background-color: #ffffff;
  overflow-x: hidden;
}

/* Typography & Gradients */
.efa-bg-dark {
  background-color: var(--efa-purple-950) !important;
}

.efa-bg-soft {
  background-color: var(--efa-purple-tint) !important;
}

.efa-bg-slate {
  background-color: var(--efa-slate-50) !important;
}

.efa-gradient-hero {
  background:
    radial-gradient(circle at 85% 18%, rgba(157, 56, 154, 0.28) 0%, transparent 42%),
    radial-gradient(circle at 12% 78%, rgba(14, 165, 233, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(126, 34, 206, 0.22) 0%, transparent 60%),
    linear-gradient(135deg, #160329 0%, #270549 52%, #130826 100%);
}

.efa-gradient-primary {
  background: linear-gradient(135deg, #3b0764 0%, #6b21a8 55%, #9d389a 100%) !important;
}

.efa-gradient-accent {
  background: linear-gradient(135deg, #7e22ce 0%, #9d389a 50%, #e11d48 100%) !important;
}

.efa-text-gradient-light {
  background: linear-gradient(135deg, #ffffff 0%, #f0abfc 50%, #7dd3fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.efa-text-gradient {
  background: linear-gradient(135deg, #3b0764 0%, #7e22ce 50%, #9d389a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Header & Navigation Refinements */
#header .header-logo img {
  max-height: 100px !important;
  height: auto !important;
  width: auto !important;
  transition: max-height 0.25s ease, transform 0.25s ease;
}

html.sticky-header-active #header .header-logo img {
  max-height: 60px !important;
  height: auto !important;
  width: auto !important;
}

#header .header-nav-main nav > ul > li > a {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--efa-slate-800);
}

#header .header-nav-main nav > ul > li > a:hover,
#header .header-nav-main nav > ul > li > a.active {
  color: var(--efa-purple-600) !important;
}

#header .dropdown-menu,
#header .header-nav-main nav > ul > li.dropdown .dropdown-menu {
  border: 1px solid #ede5f6 !important;
  border-radius: 16px !important;
  padding: 12px !important;
  box-shadow: 0 20px 45px rgba(22, 3, 41, 0.14) !important;
  min-width: 340px !important;
  width: max-content !important;
  max-width: none !important;
}

#header .dropdown-menu li,
#header .header-nav-main nav > ul > li.dropdown .dropdown-menu li {
  width: 100%;
  white-space: nowrap !important;
}

#header .dropdown-menu li a,
#header .header-nav-main nav > ul > li.dropdown .dropdown-menu li a {
  border-radius: 10px;
  padding: 9px 16px !important;
  font-size: 0.88rem !important;
  font-weight: 500;
  color: var(--efa-slate-700) !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 10px;
  white-space: nowrap !important;
  width: 100% !important;
  transition: all 0.2s ease;
}

#header .dropdown-menu li a span,
#header .header-nav-main nav > ul > li.dropdown .dropdown-menu li a span {
  white-space: nowrap !important;
  display: inline-block;
}

#header .dropdown-menu li a i {
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

#header .dropdown-menu li a:hover {
  background: var(--efa-purple-tint) !important;
  color: var(--efa-purple-700) !important;
  transform: translateX(3px);
}

#header .dropdown-header {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--efa-slate-500);
  padding: 6px 16px 4px;
  white-space: nowrap !important;
}

@media (max-width: 991.98px) {
  #header .dropdown-menu,
  #header .header-nav-main nav > ul > li.dropdown .dropdown-menu,
  #header .dropdown-menu li a,
  #header .header-nav-main nav > ul > li.dropdown .dropdown-menu li a,
  #header .dropdown-menu li a span {
    min-width: 0 !important;
    width: 100% !important;
    white-space: normal !important;
  }
}

/* Buttons */
.btn-efa-primary {
  background: linear-gradient(135deg, #7e22ce 0%, #9d389a 100%);
  border: none;
  color: #ffffff !important;
  font-weight: 600;
  border-radius: 50px;
  padding: 12px 28px;
  box-shadow: 0 6px 20px rgba(126, 34, 206, 0.35);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  text-decoration: none;
}

.btn-efa-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(126, 34, 206, 0.48);
  color: #ffffff !important;
  filter: brightness(1.06);
}

.btn-efa-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  color: #ffffff !important;
  font-weight: 600;
  border-radius: 50px;
  padding: 12px 28px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}

.btn-efa-secondary:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--efa-purple-800) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.btn-efa-outline {
  background: transparent;
  border: 2px solid var(--efa-purple-600);
  color: var(--efa-purple-700) !important;
  font-weight: 600;
  border-radius: 50px;
  padding: 10px 24px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-efa-outline:hover {
  background: var(--efa-purple-700);
  border-color: var(--efa-purple-700);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: var(--efa-shadow-md);
}

/* Badges */
.efa-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.efa-badge-hero {
  background: rgba(255, 255, 255, 0.12);
  color: #f3e8ff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}

.efa-badge-purple {
  background: rgba(126, 34, 206, 0.1);
  color: var(--efa-purple-700);
  border: 1px solid rgba(126, 34, 206, 0.2);
}

.efa-badge-cyan {
  background: rgba(14, 165, 233, 0.1);
  color: #0284c7;
  border: 1px solid rgba(14, 165, 233, 0.22);
}

.efa-badge-emerald {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.22);
}

/* Hero Wrapper & Grid Pattern */
.efa-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 92px;
  color: #ffffff;
}

.efa-hero-sub {
  position: relative;
  overflow: hidden;
  padding: 64px 0 72px;
  color: #ffffff;
}

.efa-grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 38px 38px;
  pointer-events: none;
}

/* Hero Command Center / UI Mockup */
.efa-command-card {
  background: rgba(22, 7, 44, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(157, 56, 154, 0.22);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.efa-command-topbar {
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.efa-dots {
  display: flex;
  gap: 7px;
}

.efa-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.efa-product-mini-pill {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 13px 15px;
  transition: all 0.25s ease;
  text-decoration: none;
  display: block;
  color: #ffffff !important;
}

.efa-product-mini-pill:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(192, 132, 252, 0.5);
  transform: translateY(-3px);
}

/* Product & Feature Cards */
.efa-card {
  background: #ffffff;
  border: 1px solid #ece4f6;
  border-radius: var(--efa-radius-lg);
  padding: 32px 28px;
  height: 100%;
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  box-shadow: var(--efa-shadow-sm);
  display: flex;
  flex-direction: column;
}

.efa-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--efa-purple-700), var(--efa-magenta), var(--efa-cyan));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.efa-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--efa-shadow-lg);
  border-color: #d8b4fe;
}

.efa-card:hover::before {
  opacity: 1;
}

.efa-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.efa-card:hover .efa-icon-box {
  transform: scale(1.08) rotate(2deg);
}

.efa-icon-purple {
  background: linear-gradient(135deg, rgba(126, 34, 206, 0.12), rgba(157, 56, 154, 0.18));
  color: var(--efa-purple-700);
}

.efa-icon-cyan {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(37, 99, 235, 0.16));
  color: var(--efa-cyan);
}

.efa-icon-emerald {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(5, 150, 105, 0.18));
  color: var(--efa-emerald);
}

.efa-icon-coral {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.12), rgba(234, 88, 12, 0.18));
  color: var(--efa-coral);
}

.efa-icon-amber {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(217, 119, 6, 0.18));
  color: var(--efa-amber);
}

.efa-icon-indigo {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(99, 102, 241, 0.18));
  color: #4f46e5;
}

/* Client Logos Bar */
.efa-client-logo-card {
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 16px;
  padding: 20px 24px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.efa-client-logo-card:hover {
  border-color: #d8b4fe;
  box-shadow: var(--efa-shadow-md);
  transform: translateY(-3px);
}

.efa-client-logo-card img {
  max-height: 62px;
  max-width: 140px;
  width: auto;
  object-fit: contain;
  transition: all 0.3s ease;
}

/* Browser / Dashboard UI Mockup Frame */
.efa-browser-mockup {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: var(--efa-shadow-lg);
  overflow: hidden;
}

.efa-browser-header {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.efa-browser-url {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 4px 14px;
  font-size: 0.78rem;
  color: var(--efa-slate-500);
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Checklists */
.efa-check-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.efa-check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: var(--efa-slate-700);
}

.efa-check-list li i {
  position: absolute;
  left: 0;
  top: 4px;
  color: var(--efa-emerald);
}

/* Timeline */
.efa-timeline-step {
  background: #ffffff;
  border: 1px solid #ece4f6;
  border-radius: 18px;
  padding: 26px 24px;
  height: 100%;
  position: relative;
  transition: all 0.3s ease;
}

.efa-timeline-step:hover {
  border-color: var(--efa-purple-600);
  box-shadow: var(--efa-shadow-md);
  transform: translateY(-4px);
}

.efa-year-badge {
  display: inline-block;
  background: linear-gradient(135deg, #3b0764, #7e22ce);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}

/* Floating CTA */
.efa-floating-cta {
  position: fixed;
  bottom: 26px;
  left: 26px;
  z-index: 9990;
  background: linear-gradient(135deg, #3b0764 0%, #7e22ce 60%, #9d389a 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 12px 22px;
  border-radius: 50px;
  box-shadow: 0 10px 28px rgba(59, 7, 100, 0.38);
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: all 0.3s ease;
}

.efa-floating-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(59, 7, 100, 0.52);
  color: #ffffff !important;
}

@media (max-width: 767px) {
  .efa-floating-cta {
    display: none;
  }
  .efa-hero {
    padding: 48px 0 64px;
  }
}

/* Filter Pills */
.efa-filter-btn {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  color: var(--efa-slate-700);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 9px 20px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.efa-filter-btn:hover,
.efa-filter-btn.active {
  background: var(--efa-purple-700);
  border-color: var(--efa-purple-700);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(88, 28, 135, 0.25);
}

/* Tech Stack Pills */
.efa-tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--efa-slate-800);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
}

.efa-tech-pill:hover {
  border-color: var(--efa-purple-600);
  transform: translateY(-2px);
  box-shadow: var(--efa-shadow-sm);
}
