/* =========================================================
   THEME.CSS — SalasarERP custom styles
   Add AFTER bootstrap-5.0.0-beta1.min.css and LineIcons.2.0.css
   ========================================================= */

:root {
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --ink: #0f172a;
  --muted: #64748b;
  --surface: #edf6fff2;
  --border: #eef1f6;
}

body {
  color: var(--ink);
}

.section-padding { padding: 90px 0; }
.section-kicker {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.section-heading { max-width: 640px; }
.section-heading h2 { font-size: 2.1rem; font-weight: 700; color: var(--ink); }
.section-heading p { color: var(--muted); margin-top: .5rem; }
.bg-light-subtle { background: var(--surface); }

/* =========================================================
   NAVBAR
   ========================================================= */
#mainNavbar { padding: .25rem 0; box-shadow: 0 1px 12px rgba(15,23,42,.06) !important; }
#mainNavbar .brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: white; display: inline-flex; align-items: center; justify-content: center; font-size: 1rem;
}
/* Navbar Brand */
#mainNavbar .navbar-brand{
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -.5px;
    transition: all .35s ease;
}

/* SalasarERP Text */
#mainNavbar .navbar-brand > span:last-child{
    color:#111827;
    text-shadow:
        1px 1px 0 rgba(0,0,0,.06),
        2px 2px 0 rgba(0,0,0,.05),
        3px 3px 0 rgba(0,0,0,.04),
        4px 4px 8px rgba(0,0,0,.12);
}
/* ERP */
#mainNavbar .navbar-brand .text-primary{
    color: #2563eb !important;
    font-weight: 900;
    text-shadow:
        0 0 6px rgba(37,99,235,.25),
        0 0 14px rgba(37,99,235,.18);
}
#mainNavbar .nav-link { color: #475569; font-weight: 500; margin: 0 .6rem; padding: .5rem 0 !important; }
#mainNavbar .nav-link:hover, #mainNavbar .nav-link.active { color: var(--brand); }
#mainNavbar .btn-link { color: #475569 !important; font-weight: 500; }
#mainNavbar .btn-primary {
  background: var(--brand); border-color: var(--brand);
  border-radius: 8px; font-weight: 600; padding: .55rem 1.4rem;
}
#mainNavbar .btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }

/* =========================================================
   HERO / HEADER
   ========================================================= */
.hero-section {
  position: relative;
  padding-top: 130px;
  padding-bottom: 90px;
  min-height: 640px;
  background: linear-gradient(135deg, #0b1846 0%, #12245e 45%, #1a2f7a 100%);
  overflow: hidden;
}
.hero-section .hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at 30% 40%, black 40%, transparent 80%);
  pointer-events: none;
}
.hero-section .eyebrow {
  display: inline-flex; align-items: center;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  color: white; font-size: .85rem; font-weight: 500;
  padding: .4rem .9rem; border-radius: 999px;
}
.hero-section h1.display-3 {
  font-size: 3.4rem;
  font-weight: 800;         
  line-height: 1.08;
  color: white;
}
.hero-section .lead {
  font-size: 1.05rem;
  max-width: 460px;
  line-height: 1.6;
}
.hero-section .btn-primary { background: var(--brand); border-color: var(--brand); border-radius: 8px; font-weight: 600; }
.hero-section .btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.hero-section .btn-outline-light { border-radius: 8px; font-weight: 600; border-color: rgba(255,255,255,.35); }
.hero-section .btn-outline-light:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.5); }

.hero-trust .trust-item { display: flex; align-items: center; gap: .6rem; color: #e2e8f0; }
.hero-trust .trust-item i {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--brand); border: none; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0;
}
.hero-trust .trust-item strong { display: block; font-size: .85rem; }
.hero-trust .trust-item small { display: block; color: #94a3b8; font-size: .75rem; }

/* =========================================================
   DASHBOARD MOCKUP CARD
   ========================================================= */
.dashboard-window{
    display:flex;
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 15px 35px rgba(2,8,40,.15);
}
.dashboard-sidebar { flex-direction: column; align-items: center; gap: .6rem; width: 64px; background: var(--surface); border-right: 1px solid var(--border); padding: 1.1rem 0; }
.dashboard-sidebar .mini-logo {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff;
  display: flex; align-items: center; justify-content: center; margin-bottom: .75rem;
}
.dashboard-sidebar button { width: 38px; height: 38px; border: none; border-radius: 10px; background: transparent; color: #94a3b8; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.dashboard-sidebar button.active { background: #e8effe; color: var(--brand); }
.dashboard-main { flex: 1; padding: 1.5rem; min-width: 0; }
.dashboard-main .avatar { width: 34px; height: 34px; border-radius: 50%; background: #e8effe; color: var(--brand); font-weight: 600; font-size: .8rem; display: flex; align-items: center; justify-content: center; }

.metric-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: .9rem 1rem; }
.metric-card small { color: var(--muted); font-size: .72rem; }
.metric-card strong { display: block; font-size: 1.1rem; color: var(--ink); margin: .15rem 0; }
.metric-card span { font-size: .72rem; font-weight: 600; }

.chart-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1rem; }
.chart-lines { position: relative; height: 130px; }
.chart-lines span { position: absolute; left: 0; right: 0; height: 1px; background: #e5e9f2; }
.chart-lines span:nth-child(1) { top: 0; }
.chart-lines span:nth-child(2) { top: 33%; }
.chart-lines span:nth-child(3) { top: 66%; }
.chart-lines span:nth-child(4) { top: 100%; }
.chart-lines svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.chart-lines polyline { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chart-lines polyline.secondary { stroke: #93c5fd; }

.donut {
  width: 110px; height: 110px; border-radius: 50%;
  background: conic-gradient(var(--brand) 0% 45%, #f59e0b 45% 70%, #a855f7 70% 100%);
  -webkit-mask: radial-gradient(circle, transparent 55%, #000 56%);
  mask: radial-gradient(circle, transparent 55%, #000 56%);
}

.activity-card { display: flex; align-items: center; gap: .6rem; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: .7rem .8rem; }
.activity-card i { width: 32px; height: 32px; border-radius: 8px; background: #e8effe; color: var(--brand); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.activity-card span { font-size: .8rem; font-weight: 600; color: var(--ink); }
.activity-card small { display: block; font-weight: 400; color: #94a3b8; font-size: .7rem; }

/* =========================================================
   FEATURE CARDS
   ========================================================= */
.feature-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, #ffffff, #fbfcff);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.75rem 1.5rem;
    height: 100%;
    transition: all .35s ease;
    box-shadow: 0 2px 8px rgba(15,23,42,.05);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(37,99,235,.12);
}
.feature-card::before{
    content:"";
    position:absolute;
    left:0;
    bottom:0;          /* Changed from top:0 */
    width:0;
    height:4px;
    background:linear-gradient(90deg,#2563eb,#3b82f6);
    transition:.35s;
}

.feature-card:hover::before{
    width:100%;
}
.feature-card h3{
    font-size:1.08rem;
    font-weight:700;
    color:var(--ink);
    margin:1rem 0 .5rem;
    transition:.3s;
}

.feature-card:hover h3{
    color:var(--brand);
}
.feature-card p { color: var(--muted); font-size: .9rem; margin: 0; }
.icon-box{
    width:56px;
    height:56px;
    border-radius:14px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-size:1.5rem;
    color:#fff;
    position:relative;
    transition:.35s ease;
}
.icon-box.green  { background: linear-gradient(135deg,#22c55e,#16a34a); }
.icon-box.blue   { background: linear-gradient(135deg,#3b82f6,#2563eb); }
.icon-box.orange { background: linear-gradient(135deg,#fb923c,#f97316); }
.icon-box.purple { background: linear-gradient(135deg,#a78bfa,#8b5cf6); }
.icon-box.teal   { background: linear-gradient(135deg,#2dd4bf,#14b8a6); }
.icon-box.pink   { background: linear-gradient(135deg,#f472b6,#ec4899); }
.icon-box.amber  { background: linear-gradient(135deg,#fbbf24,#f59e0b); }
.icon-box.indigo { background: linear-gradient(135deg,#818cf8,#6366f1); }
.icon-box.cyan   { background: linear-gradient(135deg,#22d3ee,#06b6d4); }
.icon-box.slate  { background: linear-gradient(135deg,#94a3b8,#64748b); }

.feature-card:hover .icon-box{
    transform:rotate(-8deg) scale(1.08);
}

.icon-box::after{
    content:"";
    position:absolute;
    inset:-8px;
    background:inherit;
    border-radius:16px;
    filter:blur(16px);
    opacity:.25;
    z-index:-1;
}

/* =========================================================
   INDUSTRIES
   ========================================================= */
.industry-grid { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.industry-grid > div{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:.9rem;

    background:#fff;
    border:1px solid #edf2f7;
    border-radius:18px;

    width:165px;
    height:135px;

    transition:all .35s ease;

    box-shadow:
        0 4px 12px rgba(15,23,42,.05),
        0 12px 28px rgba(37,99,235,.04);
}
.industry-grid > div:hover{
    transform:translateY(-10px);
    box-shadow:
        0 15px 35px rgba(15,23,42,.10),
        0 20px 50px rgba(37,99,235,.12);
}
.industry-grid i{
    font-size:2rem;
    color:var(--brand);
    transition:.35s;
}

.industry-grid > div:hover i{
    transform:scale(1.15);
    text-shadow:0 0 18px rgba(37,99,235,.35);
}
.industry-grid span { font-size: .85rem; font-weight: 600; color: var(--ink); }

.stats-bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 2rem;
}
.stats-bar > div { display: flex; align-items: center; gap: .75rem; flex: 1 1 200px; }
.stats-bar i { font-size: 1.5rem; color: var(--brand); }
.stats-bar strong { font-size: 1.6rem; color: var(--ink); }
.stats-bar small { display: block; color: var(--muted); font-size: .8rem; }

/* =========================================================
   PRICING
   ========================================================= */
.pricing-section { background: var(--surface); }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; align-items: center; gap: .6rem; margin-bottom: .75rem; color: var(--ink); font-weight: 500; }
.check-list i { color: var(--brand); font-size: 1.1rem; }

.pricing-card {
  position: relative; background: #fff; border-radius: 18px; padding: 2.5rem;
  text-align: center; box-shadow: 0 20px 45px rgba(15,23,42,.08);
}
.pricing-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-size: .75rem; font-weight: 600;
  padding: .3rem 1rem; border-radius: 999px;
}
.pricing-card h3 { font-weight: 700; color: var(--ink); margin: .5rem 0; }
.pricing-card p { color: var(--muted); }
.price-label { font-size: 1.8rem; font-weight: 700; color: var(--brand); margin-top: 1rem; }
.pricing-card .btn-primary { background: var(--brand); border-color: var(--brand); border-radius: 8px; font-weight: 600; }

/* =========================================================
   CTA / ABOUT PANEL
   ========================================================= */
.cta-panel {
  background: linear-gradient(135deg, #0b1846, #1a2f7a);
  border-radius: 24px; padding: 3.5rem; color: #fff;
}
.cta-panel h2 { color: #fff; font-weight: 700; font-size: 2rem; }
.cta-panel p { color: #cbd5f5; }
.cta-panel .btn-primary { background: var(--brand); border-color: var(--brand); border-radius: 8px; font-weight: 600; }
.cta-panel .btn-outline-primary { border-radius: 8px; font-weight: 600; color: #fff; border-color: rgba(255,255,255,.4); }
.cta-panel .btn-outline-primary:hover { background: rgba(255,255,255,.1); }

.launch-illustration { position: relative; display: inline-block; }
.launch-illustration > .bi-rocket-takeoff {
  font-size: 5rem; color: #fbbf24; display: block; margin: 0 auto;
}
.launch-illustration .screen {
  width: 140px; height: 90px; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; margin: 1rem auto 0;
  font-size: 2rem; color: #93c5fd;
}
.launch-illustration .cloud { position: absolute; color: rgba(255,255,255,.25); font-size: 2rem; }
.launch-illustration .cloud-one { top: -10px; left: 0; }
.launch-illustration .cloud-two { bottom: 10px; right: 0; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer-section { background: #0b1846; color: #cbd5f5; }
.footer-section .footer-brand { color: #fff; text-decoration: none; }
.footer-section .footer-brand strong span { color: #93c5fd; }
.footer-section p { color: #94a3b8; font-size: .9rem; }
.footer-section h3 { font-size: .95rem; font-weight: 700; color: #fff; margin-bottom: 1rem; }
.footer-section a { display: block; color: #94a3b8; text-decoration: none; font-size: 1.00rem; margin-bottom: .6rem; }
.footer-section a:hover { color: #fff; }
.footer-section .social-links { display: flex; gap: .6rem; }
.footer-section .social-links a {
  width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center; margin: 0;
}
.footer-section .social-links a:hover { background: var(--brand); }

/* =========================================================
   MODAL / TOAST / BACK-TO-TOP
   ========================================================= */
.modal-content { border-radius: 16px; }
#demoModal .btn-primary { background: var(--brand); border-color: var(--brand); border-radius: 8px; font-weight: 600; }

.back-to-top {
  position: fixed; bottom: 24px; right: 24px; width: 44px; height: 44px;
  border-radius: 50%; background: var(--brand); color: #fff; border: none;
  display: none; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(37,99,235,.35);
  z-index: 999;
}
.back-to-top.show { display: flex; }

/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes fadeUpIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-up {
  opacity: 0;
  animation: fadeUpIn 0.7s ease forwards;
}
.animate-up.delay-1 { animation-delay: 0.15s; }
.animate-up.delay-2 { animation-delay: 0.3s; }
.animate-up.delay-3 { animation-delay: 0.45s; }
.animate-up.delay-4 { animation-delay: 0.6s; }

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll-triggered version (for sections below the fold) */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 991.98px) {
  .hero-section { padding-top: 110px; text-align: center; }
  .hero-section h1.display-3 { font-size: 2.4rem; }
  .hero-section .lead { max-width: 100%; margin-left: auto; margin-right: auto; }
  .cta-panel { padding: 2rem; text-align: center; }
}
